"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3315],{15322:function(e,n,t){t.d(n,{JU:function(){return d},PC:function(){return o},UU:function(){return m},XG:function(){return h},rV:function(){return c},sR:function(){return u}});var r=t(47568),s=t(97582),a=t(9669),i=t.n(a),c=function(e,n,t){return i().get("/get/get_items_by_type",{baseURL:e,params:{item_type:n,item_id:t}}).then((function(e){return e.data.data}))},o=function(e){return i().get("/get/get_currency_conversion",{params:{base_currency:"INR",currencies:e},transformRequest:function(e,n){return Object.keys(n).forEach((function(e){delete n[e]})),e}}).then((function(e){return e.data.data}))};function u(e){return l.apply(this,arguments)}function l(){return(l=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return[4,i().post("https://tempapi.appx.co.in/Livepush/get_schedule_id_by_meetingid",{meeting_id:"",stream_id:e}).then((function(e){return e.data.data}))];case 1:return[2,n.sent()]}}))}))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(n){return[2,i().post("https://tempapi.appx.co.in/post/dyte_change_app_status",{meeting_id:e,stream_id:e})]}))}))).apply(this,arguments)}function h(e){return f.apply(this,arguments)}function f(){return(f=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(n){return[2,i().post("https://tempapi.appx.co.in/Livepush/endHundredMsStream",{meeting_id:e,stream_id:e})]}))}))).apply(this,arguments)}function m(e,n,t,r,s){return x.apply(this,arguments)}function x(){return(x=(0,r.Z)((function(e,n,t,r,a){return(0,s.__generator)(this,(function(s){return[2,i().post("".concat(window.location.origin,"/api/update-sheet-data"),{url:e,userid:n,orderid:t,code:r,amount:a})]}))}))).apply(this,arguments)}},47628:function(e,n,t){t.d(n,{nf:function(){return Z},zL:function(){return y},_J:function(){return k},LV:function(){return d},$M:function(){return p},$9:function(){return g},Pv:function(){return m},cA:function(){return j},s$:function(){return N},TJ:function(){return S},GP:function(){return _},An:function(){return f},AS:function(){return v},M_:function(){return b},AK:function(){return E},Cg:function(){return w},JH:function(){return h},q5:function(){return C},vk:function(){return x}});var r=t(26042),s=t(69396),a=t(9669),i=t.n(a),c=t(47041),o=t(96076),u=t(81354),l=t.n(u);var d=function(e){var n=new FormData,t={};Object.keys(e).forEach((function(r){t[r]="".concat(e[r]),n.append(r,e[r])}));var a=function(e){return l().SHA256(e).toString()}(JSON.stringify(t));return i().post("/post/createOrderv2",n).then((function(e){var n;return(null===(n=e.data)||void 0===n?void 0:n.signature)===a?(0,s.Z)((0,r.Z)({},e.data),{encryptedString:a}):null}))},p=function(e){return i().post("/post/createOrderForCart",e).then((function(e){return e.data}))},h=function(e){return i().post("https://tempapi.classx.co.in/post/insert_rzp_options",e).then((function(e){return e.data}))},f=function(e){return i().get("https://tempapi.classx.co.in/get/get_rzp_options",{params:{id:e}}).then((function(e){return e.data}))},m=function(e){var n=new FormData;return Object.keys(e).forEach((function(t){n.append(t,e[t])})),i().post("/post/add_free_purchase",n).then((function(e){return e.data}))},x=function(e){return i().get("/get/verify_pincode",{params:{pincode:e}}).then((function(e){return e.data}))},g=function(e){return fetch("https://api.postalpincode.in/pincode/".concat(e)).then((function(e){return e.json()}))},_=function(e,n,t){return i().get("/get/get_all_purchases",{baseURL:e,params:{userid:n,item_type:t}}).then((function(e){return e.data.data}))},j=function(e,n){return i().get("/get/mycourseweb",{baseURL:e,params:{userid:n}}).then((function(e){return e.data.data}))},v=function(e,n){return i().get("/get/purchasedtest_series",{baseURL:e,params:{userid:n}}).then((function(e){return e.data.data}))},y=function(e,n,t,r,s,a){var u=(0,c.getCookie)(o.JR)||-1;return i().get("/get/discount_coupon",{params:{coupon_code:e,user_id:u,item_id:n,item_type:t,installment_no:r,pricing_plan_id:s,is_cart_coupon:a}}).then((function(e){return e.data.discount}))},Z=function(e){var n=new FormData;return Object.keys(e).forEach((function(t){n.append(t,e[t])})),i().post("post/validate_broker_id_and_add_purchase",n).then((function(e){return e.data}))},b=function(e,n){return i().get("/get/get_user_dt",{baseURL:e,params:{userid:n}}).then((function(e){return e.data.data}))},N=function(e,n){return i().get("https://tempapi.classx.co.in/get/get_order_details",{baseURL:e,params:{order_id:n}}).then((function(e){return e.data.data}))},C=function(e){var n=new FormData;return Object.keys(e).forEach((function(t){n.append(t,e[t])})),i().post("/post/update_order_detail",n).then((function(e){return e.data}))},k=function(e,n,t,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0";return i().get("/get/checkemailforpurchase",{baseURL:e,params:{itemtype:n,itemid:t,email:r,is_extended:s}}).then((function(e){return e.data.data}))},w=function(e,n){var t=new FormData;return Object.keys(n).forEach((function(e){t.append(e,n[e])})),i().post("/post/insertleadsdata",t,{baseURL:e}).then((function(e){return e.data}))},E=function(e){return i().post("/post/savepaymentaddressdetails",e).then((function(e){var n;return null===(n=e.data)||void 0===n?void 0:n.data}))},S=function(e,n){return i().get("/get/payment_page",{baseURL:e,params:{slug:n}}).then((function(e){return e.data.data}))}},9888:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(85893);function s(e){var n=e.price,t=e.mrp;n=parseInt(n);var s=((t=parseInt(t))-n)/t*100;return n<0?null:(0,r.jsxs)("div",{className:"d-flex",children:["\u20b9",n," ",t>n?(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between flex-grow-1 ms-1",children:[(0,r.jsx)("div",{className:"font-sm text-gray font-regular text-decoration-line-through",children:t}),(0,r.jsxs)("div",{className:"text-success ms-2",children:[null===s||void 0===s?void 0:s.toFixed(2),"% off"]})]}):""]})}},50526:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(14924),s=t(26042),a=t(69396),i=t(85893),c=t(96486),o=t(67294),u=t(95719),l=t(83024),d=t(60766),p=t(89163),h=t(3126),f=t(87261),m=t(60994),x=t(84082),g=t(23149),_=t(47628),j=t(85313),v=t(96076),y=t(59417),Z=t(67814),b=function(e){return new RegExp(/^[1-9]{1}[0-9]{2}\s{0,1}[0-9]{3}$/).test(e)};function N(e){var n=e.isOpen,t=e.toggle,N=e.onBuyNow,C=e.isLoading,k=(0,o.useState)({}),w=k[0],E=k[1],S=(0,o.useState)({}),P=S[0],R=S[1],L=(0,o.useState)(!1),O=L[0],M=L[1],F=function(e){var n=e.target,t=n.name,i=n.value;R((0,a.Z)((0,s.Z)({},P),(0,r.Z)({},t,i)))},A=function(){var e={};if(M(!1),!b(P.pincode))return e.pincode="Please enter a valid pincode",void E(e);(0,_.vk)(P.pincode).then((function(e){M(!0),E({})})).catch((function(n){var t,r;e.pincode=null===(t=n.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.message,M(!1),E(e)}))},I=function(e){var n=parseInt(e.target.value);Number.isNaN(n)&&(n=""),e.target.value=n,F(e),b(n)&&(0,_.$9)(n).then((function(e){var t;e.length>0&&"success"===(null===(t=e[0].Status)||void 0===t?void 0:t.toLowerCase())&&R((0,a.Z)((0,s.Z)({},P),{pincode:n,city:e[0].PostOffice[0].District,state:e[0].PostOffice[0].State}))})).catch((function(e){}))};return(0,i.jsxs)(u.Z,{isOpen:n,toggle:t,scrollable:!0,children:[(0,i.jsx)(l.Z,{toggle:t,children:"Enter Address"}),(0,i.jsxs)(d.Z,{children:[(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"Full name"}),(0,i.jsx)(f.Z,{type:"text",name:"name",placeholder:"Enter your name",value:P.name,onChange:F,invalid:w.name}),w.name&&(0,i.jsx)("small",{className:"text-danger",children:w.name})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"Phone number"}),(0,i.jsx)(f.Z,{type:"text",name:"phone",placeholder:"Enter your phone number",invalid:w.phone,value:P.phone,onChange:I}),w.phone&&(0,i.jsx)("small",{className:"text-danger",children:w.phone})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"Address"}),(0,i.jsx)(f.Z,{type:"text",name:"address",placeholder:"Enter your address",value:P.address,onChange:F,invalid:w.address}),w.address&&(0,i.jsx)("small",{className:"text-danger",children:w.address})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"Pincode"}),(0,i.jsxs)(m.Z,{children:[(0,i.jsx)(f.Z,{type:"text",name:"pincode",placeholder:"Enter your pincode",value:P.pincode,onChange:I,onBlur:A,onKeyDown:function(e){"Enter"===e.key&&A()},invalid:w.pincode,valid:O}),(0,i.jsx)(x.Z,{color:"primary",onClick:A,children:"Check"})]}),O&&(0,i.jsx)("small",{className:"text-success",children:"Delivering to this pincode"}),w.pincode&&(0,i.jsx)("small",{className:"text-danger",children:w.pincode})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"City"}),(0,i.jsx)(f.Z,{type:"text",name:"city",placeholder:"Enter your city",value:P.city,onChange:F,invalid:w.city}),w.city&&(0,i.jsx)("small",{className:"text-danger",children:w.city})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"State"}),(0,i.jsxs)(f.Z,{type:"select",name:"state",invalid:w.state,onChange:F,value:P.state,defaultValue:"",children:[(0,i.jsx)("option",{value:"",disabled:!0,children:"Select state"}),v.PO.map((function(e){return(0,i.jsx)("option",{children:e},e)}))]}),w.state&&(0,i.jsx)("small",{className:"text-danger",children:w.state})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{className:"required",children:"Landmark"}),(0,i.jsx)(f.Z,{type:"text",name:"landmark",placeholder:"Enter your landmark",value:P.landmark,onChange:F,invalid:w.landmark}),w.landmark&&(0,i.jsx)("small",{className:"text-danger",children:w.landmark})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{children:"Phone number 2"}),(0,i.jsx)(f.Z,{type:"text",name:"phone_number_2",placeholder:"Enter your phone number",invalid:w.phone_number_2,value:P.phone_number_2,onChange:I}),w.phone_number_2&&(0,i.jsx)("small",{className:"text-danger",children:w.phone_number_2})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{children:"Care of (Father's Name/Husband's Name)"}),(0,i.jsx)(f.Z,{type:"text",name:"care_of",placeholder:"Enter care of",value:P.care_of,onChange:F,invalid:w.care_of}),w.care_of&&(0,i.jsx)("small",{className:"text-danger",children:w.care_of})]}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(h.Z,{children:"Post Office"}),(0,i.jsx)(f.Z,{type:"text",name:"post_office",placeholder:"Enter your post office",value:P.post_office,onChange:F,invalid:w.post_office}),w.post_office&&(0,i.jsx)("small",{className:"text-danger",children:w.post_office})]})]}),(0,i.jsx)(g.Z,{children:(0,i.jsxs)(x.Z,{color:"primary",disabled:!O,onClick:function(){var e,n={};["name","phone","address","city","state","pincode","landmark"].forEach((function(e){(0,c.has)(P,e)||(n[e]="Please enter ".concat(e))})),["phone","phone_number_2"].forEach((function(e){(0,j.n6)(P[e])||(n[e]="Please enter a valid mobile number")})),new RegExp(/^[1-9]{1}[0-9]{2}\s{0,1}[0-9]{3}$/).test(P.pincode)||(n.pincode="Please enter a valid pincode"),(null===(e=P.address)||void 0===e?void 0:e.trim().length)<15&&(n.address="Address must have atleast 15 characters"),E(n),(0,c.isEmpty)(n)&&N(P)},block:!0,children:[C&&(0,i.jsx)(Z.G,{icon:y.LM3,className:"me-2",spin:!0}),"Buy now"]})})]})}},79535:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(85893),s=t(59417),a=t(67814),i=t(67294),c=t(95719);function o(e){var n=e.isOpen,t=e.toggle,o=e.isLoading,u=e.setIsLoading,l=(0,i.useRef)(),d="https://tempnewwebsite.classx.co.in";return(0,r.jsxs)(c.Z,{size:"sm",className:"razorpay-modal",toggle:t,isOpen:n,children:[o&&(0,r.jsx)(a.G,{icon:s.LM3,className:"position-absolute center",spin:!0}),(0,r.jsx)("iframe",{allowpaymentrequest:"true",ref:l,height:599,width:"310",src:"".concat(d,"/buy"),onLoad:function(){var e=localStorage.getItem("rzp_options");if(null!=e){var n=JSON.parse(e);l.current.contentWindow.postMessage({options:n},d),u(!1)}}})]})}},15702:function(e,n,t){t.d(n,{Z:function(){return C}});var r=t(47568),s=t(97582),a=t(85893),i=(t(67814),t(96486)),c=t(30381),o=t.n(c),u=t(67294),l=t(35773),d=t(95305),p=t(87261),h=t(89163),f=t(3126),m=t(60994),x=t(84082),g=t(78076),_=t(39886),j=t(54610),v=t(47628),y=t(89885),Z=t(47041),b=t(96076),N=(t(15322),t(22490));function C(e){var n,t=e.product,c=e.couponCode,C=e.setCouponCode,k=e.studyMaterialSelected,w=e.creditsApplied,E=e.setCreditsApplied,S=e.setFinalPrice,P=e.currency,R=e.setCurrency,L=e.alignEnd,O=e.disableAffiliateCode,M=e.selectedInstallments,F=e.exchangeRates,A=e.selectedPlan,I=e.couponBtnColor,z=void 0===I?"primary":I,U=e.hideCouponSelect,D=e.testPass,q=(0,u.useState)(0),G=q[0],J=q[1],T=(0,u.useState)(),$=T[0],B=T[1],H=(0,u.useContext)(y.Z).appConfig,K=(0,u.useState)(0),V=K[0],Y=K[1],W=(0,u.useState)(0),X=W[0],Q=W[1],ee=(0,u.useState)(0),ne=ee[0],te=ee[1],re=(0,u.useState)(),se=re[0],ae=re[1],ie=(0,u.useState)(),ce=ie[0],oe=ie[1],ue=(0,u.useState)(1),le=(ue[0],ue[1],0);if((null===M||void 0===M?void 0:M.length)>0){var de=t.installmentPlans.filter((function(e){return M.includes(e.ins_no)})).map((function(e){return e.ins_price}));le=(0,i.sum)(de)}t.price_without_gst>0&&(t.gst=t.price-t.price_without_gst);var pe=0,he=t.price;le>0&&(he=le),k&&(he=Number(he)+Number(k.price)),pe=G>0?(he-G)*t.priceKicker/100:he*t.priceKicker/100,t.uhs_price=Number(t.uhs_price),t.uhs_price>0&&(pe+=t.uhs_price),(0,u.useEffect)((function(){var n=O?null:localStorage.getItem("discount_code");(n||e.couponCode)&&(C(e.couponCode||n),me(e.couponCode||n)),xe(),S(ge())}),[]),(0,u.useEffect)((function(){S(ce||ge()),null==ne||ne<=0||(ne>ge()?ae(ge()-11):ae(ne))}),[ne,G,ce]),(0,u.useEffect)((function(){"INR"!=P&&oe(F[P]*ge())}),[P]);var fe,me=function(){var n=(0,r.Z)((function(n){return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return n?[4,(0,v.zL)(n,t.itemId,t.itemType,null===M||void 0===M?void 0:M.join(","),null===A||void 0===A?void 0:A.id).then((function(n){B(!0),E(0),e.setCouponResponse&&e.setCouponResponse(n);var r=n.percent_off>0?he*n.percent_off/100:n.flat_price;if(n.maxdiscount>0&&r>n.maxdiscount&&(r=n.maxdiscount),J(Math.round(r)),t.price_without_gst>0){var s=n.percent_off>0?1-n.percent_off/100:1-n.flat_price/t.price,a=Math.round(t.price_without_gst*s),i=Math.round(t.gst*s);Y(a),Q(i)}})).catch((function(e){return B(!1)}))]:[2];case 1:return r.sent(),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),xe=function(){var e=(0,r.Z)((function(){var e,n,t,r;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:e=(0,Z.getCookie)(b.JR)||-1,s.label=1;case 1:return s.trys.push([1,3,,4]),-1==e?[2]:[4,(0,v.M_)("",e)];case 2:return t=s.sent(),r=Number(null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.refer_credits),isNaN(r)||te(r),[3,4];case 3:return s.sent(),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=(null===M||void 0===M?void 0:M.length)>0?le:Number(t.price);return G>0&&(e-=G),pe>0&&(e+=pe),k&&(e+=Number(k.price)),w&&(e-=w),D&&(e+=Number(D.price)),Math.ceil(e)};return(0,a.jsxs)("div",{className:L?"payment-align-end":"",children:[(0,a.jsx)("div",{className:"font-semi-bold mb-2",children:"Summary"}),"1"==H.web_enableinternationalpayments&&F&&(0,a.jsxs)(l.Z,{className:"mb-1 align-items-end",children:[(0,a.jsx)(d.Z,{children:"Payment Currency"}),(0,a.jsx)(d.Z,{className:"font-xl font-bold ",children:(0,a.jsx)(p.Z,{type:"select",size:"sm",className:"py-0 ".concat(L?"ms-auto":""),style:{width:"80px"},onChange:function(e){return R(e.target.value)},value:P,children:Object.keys(F).map((function(e){return(0,a.jsx)("option",{children:e},e)}))})})]}),0==(null===M||void 0===M?void 0:M.length)&&t.price_without_gst>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"Price (Excluding GST)"}),(0,a.jsxs)(d.Z,{children:[(0,a.jsxs)("span",{className:V>0?"text-gray text-decoration-line-through me-2":"",children:["\u20b9 ",t.price_without_gst]}),V>0?"\u20b9".concat(V):""]})]}),(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"GST"}),(0,a.jsxs)(d.Z,{children:[(0,a.jsxs)("span",{className:X>0?"text-gray text-decoration-line-through me-2":"",children:["\u20b9 ",t.gst]}),X>0?"\u20b9".concat(X):""]})]})]}):(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"Price (Including GST)"}),(0,a.jsxs)(d.Z,{children:["\u20b9 ",le>0?le:t.price]})]}),k&&(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"Book Price"}),(0,a.jsxs)(d.Z,{children:["\u20b9 ",k.price]})]}),D&&(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"Test Pass Subscription"}),(0,a.jsxs)(d.Z,{children:["\u20b9 ",D.price]})]}),(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"Net Discount"}),(0,a.jsxs)(d.Z,{className:G>0?"text-success":"",children:["\u20b9 ",G]})]}),Number(pe)>0&&(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{children:"Internet Handling Fees"}),(0,a.jsxs)(d.Z,{children:["\u20b9 ",pe>0?Math.ceil(pe):"0"]})]}),(0,a.jsxs)(l.Z,{className:L?"border-top border-dark pt-2 mt-2":"",children:[(0,a.jsx)(d.Z,{children:"Total"}),(0,a.jsxs)(d.Z,{className:"font-xl font-bold",children:["\u20b9 ",ge()]})]}),"INR"!=P&&ce>0&&(0,a.jsxs)(l.Z,{children:[(0,a.jsxs)(d.Z,{children:["Total in ",P," (approx.)"]}),(0,a.jsx)(d.Z,{className:"font-xl font-bold",children:ce.toFixed(2)})]}),se>=10&&!(0,i.isEmpty)(H.web_menuitems)?(0,i.some)(H.web_menuitems,{type:"REFERRAL"}):"1"==H.web_enablemenureferral&&(0,a.jsxs)(h.Z,{check:!0,children:[(0,a.jsx)(p.Z,{id:"applyCredits",type:"checkbox",checked:w>0,onChange:function(){E(w>0?0:se)}}),(0,a.jsxs)(f.Z,{for:"applyCredits",className:"mb-0",children:["Apply Credits - \u20b9",se]})]}),!("0"==H.web_enablecouponcode||U||(0,N.h)(null!==(fe=t.disable_discount_code)&&void 0!==fe?fe:"0"))&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-3 mb-3",children:[(0,a.jsx)(f.Z,{children:"Coupon"}),(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(p.Z,{onChange:function(e){return C(e.target.value)},bsSize:"sm",value:c,className:"border-end-0",onKeyPress:function(e){return"Enter"==e.key&&me(c)}}),(0,a.jsx)(x.Z,{onClick:function(){return me(c)},color:z,size:"sm",children:"Apply"})]}),null!=$&&(0,a.jsx)(g.Z,{color:$?"success":"danger",children:$?"Coupon applied successfully":"Invalid coupon applied"})]}),(0,a.jsx)(l.Z,{className:"mb-3",children:null===(n=t.featured_discounts)||void 0===n?void 0:n.map((function(e){return(0,a.jsx)(d.Z,{md:"6",className:"p-2 cursor-pointer",children:(0,a.jsx)(_.Z,{onClick:function(){C(e.coupon_code),me(e.coupon_code)},children:(0,a.jsxs)(j.Z,{className:"py-2",children:[(0,a.jsxs)("div",{className:"font-bold font-lg",children:[e.percent_off>0?"".concat(e.percent_off,"% off"):"\u20b9".concat(e.flat_price," off")," ",e.maxdiscount>0?(0,a.jsxs)("span",{className:"font-sm font-regular",children:["upto \u20b9 ",e.maxdiscount]}):""," ",(0,a.jsx)("img",{src:"/icons/coupon.svg",width:"30",className:"float-end"})," "]}),(0,a.jsx)("div",{children:e.coupon_code}),"1"!=H.web_disablecouponexpiry&&(0,a.jsxs)("div",{className:"font-xs",children:["Expires on: ",o()(e.expiry_date).format("DD MMM, YY")]})]})})},e.id)}))})]})]})}},40703:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(85893),s=t(59417),a=t(67814),i=t(95719),c=t(60766),o=t(84082),u=t(41664),l=t.n(u),d=t(96486);function p(e){var n=e.isOpen,t=e.toggle,u=e.onClose,p=e.link;return(0,r.jsx)(i.Z,{id:"successModal",isOpen:n,centered:!0,toggle:t,onClosed:u,children:(0,r.jsxs)(c.Z,{className:"text-center",children:[(0,r.jsx)(a.G,{icon:s.f8k,className:"text-success mb-4",size:"5x"}),(0,r.jsx)("h5",{children:"Purchase Successful"}),(0,r.jsx)("div",{className:"font-lg font-semi-bold mb-4",children:"Your purchased content will be available to access in your account"}),!(0,d.isEmpty)(p)&&(0,r.jsx)(r.Fragment,{children:p.startsWith("/")?(0,r.jsx)(l(),{href:p,children:(0,r.jsx)(o.Z,{color:"primary",size:"lg",className:"text-white",tag:"a",children:"View Content"})}):(0,r.jsx)(o.Z,{color:"primary",size:"lg",className:"text-white",target:"_blank",href:p,tag:"a",children:"Open Link"})})]})})}}}]);