PageSourceSearch

https://rasjunction.com/_next/static/chunks/pages/p/[orderId]-ed986c55d4b0356f.js

js rasjunction.com collected 2026-09-24 14:53:29 UTC 23,444 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4478],{9404:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},92509:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},56953:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},19769:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},94933:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(91373).Z)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},70841:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/p/[orderId]",function(){return r(92302)}])},12801:function(e,t,r){"use strict";var n=r(26042),s=r(69396),a=r(85893),i=r(67294),l=r(40828);function c(e,t){return(0,a.jsx)(l.Z,(0,s.Z)((0,n.Z)({ref:t},e),{primaryButtonText:e.primaryButtonText||"Proceed to pay",compactAddToCart:!0}))}t.Z=(0,i.forwardRef)(c)},78510:function(e,t,r){"use strict";r.d(t,{$0:function(){return l},bL:function(){return i},qE:function(){return c}});var n=r(85893),s=r(8971),a=r(67294),i="h-[46px] rounded-[14px] border px-4 py-3";function l(e){var t=e.title,r=e.subtext,s=e.children;return(0,n.jsxs)("div",{className:"flex flex-col gap-4 mb-3",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("h3",{className:"mb-0 text-sm font-bold uppercase tracking-wide text-muted-foreground",children:t}),r&&(0,n.jsx)("p",{className:"mb-0 text-xs text-muted-foreground",children:r})]}),s]})}function c(e){var t=e.title,r=e.badge,i=e.children,l=e.collapsible,c=void 0!==l&&l,o=e.defaultOpen,d=void 0!==o&&o,u=(0,a.useState)(d),m=u[0],p=u[1];return(0,n.jsx)("div",{className:"overflow-hidden rounded-xl border border-border bg-panel-surface",children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{type:"button",onClick:function(){return p((function(e){return!e}))},className:"flex w-full items-center justify-between px-5 py-3 text-left",children:[(0,n.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:t}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[r&&(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:r}),(0,n.jsx)(s.Z,{className:"h-4 w-4 text-muted-foreground transition-transform duration-300 ".concat(m?"rotate-180":"")})]})]}),(0,n.jsx)("div",{className:"grid transition-all duration-300 ease-in-out ".concat(m?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)("div",{className:"-mt-px flex flex-col gap-3 rounded-t-xl bg-card px-5 py-4",children:i})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"px-5 py-3",children:(0,n.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:t})}),(0,n.jsx)("div",{className:"-mt-px flex flex-col gap-3 rounded-t-xl bg-background px-5 py-4",children:i})]})})}},80135:function(e,t,r){"use strict";r.d(t,{J:function(){return s},T:function(){return n.ZP}});var n=r(75253),s={LAST_EMI_VALIDITY:"valid till course validity"}}
1,75253:function(e,t,r){"use strict";r.d(t,{$_:function(){return n}});var n={UNREVIEWED:"0",UNATTEMPTED:"1",ATTEMPTED:"2",MARKED_FOR_REVIEW:"3"},s="correct_options",a="total_options",i=new Map([[0,{label:"Correct Options Based Scoring",description:"Correct options will be rewarded with 1 mark each.",value:s}],[1,{label:"Total Options Based Scoring",description:"Total options will be rewarded with 1 mark each.",value:a}]]),l={FIXED_TIMING_ERROR_MESSAGE:"Please wait till the end time of this section.",QUESTION_STATES:n,PER_OPTION_PARTIAL_MARKS:1,CORRECT_OPTIONS_BASED_SCORING:s,TOTAL_OPTIONS_BASED_SCORING:a,TEST_SERIES_PARTIAL_SCORING_SCHEME:i};t.ZP=l},92302:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return V}});var n=r(47568),s=r(14924),a=r(26042),i=r(69396),l=r(29815),c=r(97582),o=r(85893),d=r(29061),u=r(47041),m=r(96486),p=r(67294),x=r(72685),f=r(93223),h=r(35739),g=r(78510),v=r(12801),y=r(39240),b=r(83609),_=r(96754),j=r(9888),N=r(94933),w=r(56953),k=r(19769),P=r(69875),E=r(47628),C=r(89885),S=r(96076),T=r(15322),I=r(30381),Z=r.n(I),O=r(15702),A=r(77585),R=r(73716),M=r(49902),B=r(93520),L=r(11163),D=r(19201);function V(e){var t,r,T,I,Z,V,F=e.product,U=e.itemType,z=(e.itemId,e.orderDetails),H=(0,p.useContext)(C.Z),$=H.appConfig,q=H.setCurrentUser,J=H.setHasSession,K=H.setAppConfig,G=((0,L.useRouter)(),(0,p.useState)({email:null!==(r=null!==(t=z.email)&&void 0!==t?t:z.user_email)&&void 0!==r?r:"",name:null!==(I=null!==(T=z.name)&&void 0!==T?T:z.user_name)&&void 0!==I?I:"",phone:null!==(Z=z.submitted_phoneno)&&void 0!==Z?Z:"",userid:null!==(V=z.user_id)&&void 0!==V?V:""})),W=G[0],X=G[1],Y=(0,p.useState)(Number(F.mrp)),Q=(Y[0],Y[1],(0,p.useState)(Number(F.price))),ee=Q[0],te=Q[1],re=(0,p.useState)(z.coupon_code),ne=re[0],se=re[1],ae=(0,p.useState)(),ie=(ae[0],ae[1]),le=(0,p.useState)(0),ce=le[0],oe=le[1],de=(0,p.useState)({}),ue=de[0],me=de[1],pe=(0,p.useState)(0),xe=(pe[0],pe[1]),fe=(0,p.useState)(0),he=(fe[0],fe[1]),ge=(0,p.useState)("INR"),ve=ge[0],ye=ge[1],be=(0,p.useState)(0),_e=be[0],je=be[1],Ne=(0,p.useState)(!1),we=Ne[0],ke=Ne[1],Pe=(0,p.useState)(Array(4).fill("")),Ee=Pe[0],Ce=Pe[1],Se=(0,p.useState)(!1),Te=Se[0],Ie=Se[1],Ze=(0,p.useState)(!1),Oe=Ze[0],Ae=Ze[1],Re=(0,p.useState)(),Me=Re[0],Be=Re[1],Le=(0,p.useRef)(null),De="0"!=$.web_enablecouponcode&&!(0,B.hb)(F.disable_discount_code),Ve=S.rW[$.web_paymentgateway||S.Bn.RAZORPAY]||"Secure Payment",Fe=(0,p.useRef)([]),Ue=(0,p.useRef)(null),ze=(0,p.useRef)(null),He=(0,p.useRef)(null),$e=(0,p.useMemo)((function(){return{name:Ue,email:ze,phone:He}}),[]);F.price_without_gst>0&&(F.gst=F.price-F.price_without_gst);var qe=(0,p.useMemo)((function(){return"INR"==ve}),[ve]),Je=function(){var e={};Object.keys($e).forEach((function(t){var r;e[t]=null===(r=$e[t].current)||void 0===r?void 0:r.value})),(0,R.n6)(e.phone)?(0,P.XL)(e.phone).then((function(){D.A.success("OTP sent successfully to your phone number."),ke(!0)})).catch((function(e){D.A.error("OTP not sent. Please try again later.")})):D.A.error("Invalid phone number")},Ke=function(e){return e.userid=e.id?e.id:e.userid,q(e),localStorage.setItem(S.gm,JSON.stringify(e)),J(!0),(0,u.setCookie)(S.KH,e.token,{sameSite:"none",secure:!0}),(0,u.setCookie)(S.JR,e.userid,{sameSite:"none",secure:!0}),d.Z.defaults.headers[S.KH]=e.token,d.Z.defaults.headers[S.JR]=e.userid,!0};(0,p.useEffect)((function(){Fe.current=Fe.current.slice(0,4).map((function(e,t){return Fe.current[t]||(0,p.createRef)().current}))}),[]),(0,p.useEffect)((function(){$.web_enableclientrazorpay="1",$.web_apiurl=z.base_url,$.web_razorpaykey=z.rzp_key,K($)}),[]);var Ge=function(e){var t=e.target,r=t.name,n=t.value;X((function(e){return(0,i.Z)((0,a.Z)({},e),(0,s.Z)({},r,n))}))},We=function(){var e=(0,n.Z)((function(){var e,t,r,n;return(0,c.__generator)(this,(function(s){switch(s.label){case 0:if(e={},Object.keys($e).forEach((function(t){var r;e[t]=null===(r=$e[t].current)||void 0===r?void 0:r.value})),t={},!(0,m.isEmpty)(ne)&&ce<=0&&function(e){e&&(0,E.zL)(e,F.itemId,F.itemType).then((function(e){ie(!0);var t=e.percent_off>0?F.price*e.percent_off/100:e.flat_price;if(e.maxdiscount>0&&t>e.maxdiscount&&(t=e.maxdiscount),oe(qe?Math.round(t):t),F.price_without_gst>0){var r=e.percent_off>0?1-e.percent_off/100:1-e.flat_price/F.price,n=qe?Math.round(F.price_without_gst*r):F.price_without_gst*r,s=qe?Math.round(F.gst*r):F.gst*r;xe(n),he(s)}})).catch((function(e){ie(!1),se("")}))}(ne),["name","phone"].forEach((function(r){(0,m.isEmpty)(e[r])&&(t[r]="Please enter your ".concat(r))})),(0,R.vV)(e.email)||(t.email="Please enter a valid email-id"),(0,R.n6)(e.ph
1one)||(t.phone="Please enter a valid mobile number"),4!==Ee.join("").length&&(t.otp="Please enter the OTP sent to your phone number."),Te)return[3,7];s.label=1;case 1:return s.trys.push([1,6,,7]),[4,(0,P.Mu)(e.phone,Number(Ee.join("")))];case 2:return(r=s.sent())?[3,3]:(Ie(!1),t.otp="Invalid OTP. Please try again.",[3,5]);case 3:return Ie(!0),Ke(r.user),[4,(0,M.m)(e,r.user)];case 4:return n=s.sent().updatedUser,Qe(n),q(n),[2,!0];case 5:return[3,7];case 6:return s.sent(),Ie(!1),t.otp="Invalid OTP. Please try again.",[3,7];case 7:return me(t),(0,m.isEmpty)(t)?[2,!0]:[2,!1]}}))}));return function(){return e.apply(this,arguments)}}(),Xe=function(){var e=(0,n.Z)((function(e){var t;return(0,c.__generator)(this,(function(e){switch(e.label){case 0:return t={},Object.keys($e).forEach((function(e){var r;t[e]=null===(r=$e[e].current)||void 0===r?void 0:r.value})),t.phone&&(0,R.n6)(t.phone)&&!we?[2,Je()]:[4,We()];case 1:return[2,e.sent()]}}))}));return function(t){return e.apply(this,arguments)}}(),Ye=function(){var e=(0,n.Z)((function(e){var t;return(0,c.__generator)(this,(function(r){switch(r.label){case 0:return t={order_id:z.order_id,order_status:"PAID",payable_amount:e.finalPrice,rzp_order_id:e.orderId},(0,m.isEmpty)(ne)||(t.coupon_code=ne),[4,(0,E.q5)(t)];case 1:return r.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){(null===W||void 0===W?void 0:W.phone)&&(0,R.n6)(null===W||void 0===W?void 0:W.phone)&&!we&&Je()}),[null===W||void 0===W?void 0:W.phone,(0,R.n6)(null===W||void 0===W?void 0:W.phone),we]);var Qe=function(){var e=(0,n.Z)((function(e){var t;return(0,c.__generator)(this,(function(r){switch(r.label){case 0:if(!(0,R.vV)(null===e||void 0===e?void 0:e.email))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,E._J)(z.base_url,z.item_type,z.item_id,e.email,z.is_extended)];case 2:return"0"!=r.sent()&&Ae(!0),[3,4];case 3:return t=r.sent(),console.error("Error checking purchase:",t),[3,4];case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();return Oe?(0,o.jsx)("div",{className:"bg-background min-h-screen",id:"quickPayContainer",children:(0,o.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("h4",{className:"mb-3",children:"Item has already been purchased"}),(0,o.jsx)("p",{className:"text-muted-foreground",children:"This item has already been purchased with your account."})]})})}):(0,o.jsxs)("main",{className:"grid grid-cols-1 md:grid-cols-[6fr_4fr] md:min-h-screen gap-1 max-w-7xl mx-auto bg-[#FAFCFE] dark:bg-[#1E1E1E]",children:[(0,o.jsx)("div",{className:"relative bg-background md:px-6 lg:px-12 xl:px-16 2xl:-px-18 lg:min-h-screen order-1 md:order-2",children:(0,o.jsxs)("div",{className:"relative w-full md:max-w-md md:mt-20 md:ml-auto px-4 md:px-0 md:mb-16 mb-0 flex flex-col gap-3",children:[(0,o.jsxs)("div",{className:"rounded-xl border overflow-hidden flex flex-col gap-3 pb-3 bg-muted/40",children:[(0,o.jsx)("div",{className:"w-full h-48",children:(0,o.jsx)(_.L,{imageStr:F.image,title:F.title,imgHeight:"192",mode:"blur-bg",fallbackSeed:F.title})}),(0,o.jsxs)("div",{className:"flex flex-col gap-3 px-3",children:[(0,o.jsx)("h3",{className:"text-base font-semibold mb-0",children:F.title}),(0,o.jsx)("div",{className:"border-t border-dashed"}),(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsx)("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground mb-0",children:"Price"}),(0,o.jsx)(j.Z,{price:ee,mrp:F.mrp,currency:ve,className:"!text-foreground text-3xl font-semibold mb-0"})]})]})]}),(0,o.jsx)(A.Z,{validity:F.validity,validityType:F.validity_type}),(0,o.jsx)(g.qE,{title:"Order Summary",children:(0,o.jsx)(O.Z,{ref:Le,product:F,couponCode:ne,setCouponCode:se,setFinalPrice:te,currency:ve,setCurrency:ye,studyMaterialSelected:z.studyMaterialSelected,selectedInstallments:z.installmentPlans,creditsApplied:_e,setCreditsApplied:je,disableAffiliateCode:!0,selectedPlan:z.selectedPlan,onBeforeCouponApply:Xe,hideCoupon:!0,onCouponValidChange:Be,hideTitle:!0})}),(0,o.jsx)(v.Z,{onBeforePurchase:We,disableCouponModal:!0,product:F,couponCode:ne,addressDetails:z.address,selectedPlan:z.selectedPlan,creditsApplied:z.refer_credits,selectedInstallments:z.installmentPlans,studyMaterialSelected:z.studyMaterialSelected,onPaymentSuccess:Ye,hideCurrencySelect:!0,finalPrice:ee,btnColor:"dark",postPurchaseLink:"7"==U?F.c_link:"",isExtend:"1"==z.is_extended,skipAddToCart:!0,disableBuyButton:!Te})]})}),(0,o.jsx)("div",{className:"relative md:px-6 lg:px-8 xl:px-12 2xl:-px-14 order-2 md:order-1 w-full",children:(0,o.jsxs)("div",{className:"relative w-full md:mt-20 px-4 sm:px-0 mb-8 md:mb-24 flex flex-col gap-4",children:[!(0,m.isEmpty)($.web_logo)&&(0,o.jsx)("img",{width:50,src:$.web_logo,className:"hidden md:block w-auto max-w-32 max-h-11 object-contain",alt:"Logo"}),(0,o.jsx)("div",{className:"flex items-center gap-3 mb-6 md:hidden justify-center border-b p-3",children:!(0,m.isEmpty)($.web_logo)&&(0,o.jsx)("img",{width:40,src:$.web_logo,className:"w-auto max-w-32 max-h-11 object-contain",alt:"Logo"})}),(0,o.jsx)(b.Z,{breadcrumbs:[{label:"Orders",href:"/purchases"},{label:"Checkout"}],showCategoryRow:!1}),(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsx)("h2",{className:"text-xl lg:text-2xl font-semibold mb-0",children:F.title}),(0,o.jsxs)("p",{className:"text-sm text-muted-foreground mb-0",children:["by ",(0,o.jsx)("span",{className:"font-medium",children:$.web_clientname})]})]}),(0,o.jsxs)(g.$0,{title:"Contact Details",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsxs)(f._,{className:"flex items-center gap-2 mb-1",children:[(0,o.jsx)(N.Z,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Full name"]}),(0,o.jsx)(x.I,{type:"text",name:"name",placeholder:"Enter your name",defaultValue:null===W||void 0===W?void 0:W.name,readOnly:!(0,m.isEmpty)(null===W||void 0===W?void 0:W.name),onBlur:Ge,className:"rounded-xl bg-card ".concat(ue.name?"border-red-500":""),ref:Ue}),ue.name&&(0,o.jsx)("p",{className:"text-sm text-red-500",children:ue.name})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsxs)(f._,{className:"flex items-center gap-2 mb-1",children:[(0,o.jsx)(w.Z,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Email Address"]}),(0,o.jsx)(x.I,{type:"text",name:"email",placeholder:"Enter your email",defaultValue:W.email,onBlur:Ge,className:"rounded-xl bg-card ".concat(ue.email?"border-red-500":""),ref:ze}),ue.email&&(0,o.jsx)("p",{className:"text-sm text-red-500",children:ue.email})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsxs)(f._,{className:"flex items-center gap-2 mb-1",children:[(0,o.jsx)(k.Z,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Phone number"]}),(0,o.jsx)(x.I,{type:"text",name:"phone",placeholder:"Enter your phone number",defaultValue:null===W||void 0===W?void 0:W.phone,readOnly:!(0,m.isEmpty)(null===W||void 0===W?void 0:W.phone),onBlur:Ge,className:"rounded-xl bg-card ".concat(ue.phone?"border-red-500":""),ref:He}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground mb-0",children:$.
1web_phoneinputnote?$.web_phoneinputnote:S.Rl}),ue.phone&&(0,o.jsx)("p",{className:"text-sm text-red-500",children:ue.phone})]}),(null===W||void 0===W?void 0:W.phone)&&(0,R.n6)(null===W||void 0===W?void 0:W.phone)&&!Te&&(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)(f._,{children:"OTP"}),(0,o.jsx)("button",{onClick:Je,className:"text-sm font-medium text-primary",children:we?"Resend OTP":"Send OTP"})]}),we&&(0,o.jsxs)("div",{className:"flex items-center gap-4 justify-between",children:[(0,o.jsx)("div",{className:"flex gap-2",children:Array.from({length:4}).map((function(e,t){return(0,o.jsx)(x.I,{id:"otp-".concat(t),name:"otp-".concat(t),type:"text",maxLength:1,ref:function(e){e&&(Fe.current[t]=e)},onChange:function(e){return function(e,t){var r=e.target.value,n=(0,l.Z)(Ee);if(n[t]=r,Ce(n),/^\d$/.test(r)){if(t<Fe.current.length-1){var s,a=document.getElementById("otp-".concat(t+1));a?a.focus():null===(s=Fe.current[t+1])||void 0===s||s.focus()}}else e.target.value=""}(e,t)},onKeyDown:function(e){return function(e,t){if("Backspace"===e.key&&!e.target.value&&t>0){var r,n=document.getElementById("otp-".concat(t-1));n?n.focus():null===(r=Fe.current[t-1])||void 0===r||r.focus()}}(e,t)},className:"w-12 h-12 text-center text-lg rounded-xl bg-card"},t)}))}),(0,o.jsx)(h.z,{onClick:function(){var e={};Object.keys($e).forEach((function(t){var r;e[t]=null===(r=$e[t].current)||void 0===r?void 0:r.value}));var t=Ee.join("");4===t.length?Te||(Ie(!1),(0,P.Mu)(e.phone,Number(t)).then(function(){var t=(0,n.Z)((function(t){var r;return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return D.A.success("OTP verified successfully."),Ie(!0),Ke(t.user),[4,(0,M.m)(e,t.user)];case 1:return r=n.sent().updatedUser,Qe(r),q(r),[2,!0]}}))}));return function(e){return t.apply(this,arguments)}}()).catch((function(e){return Ie(!1),me({otp:"Invalid OTP. Please try again."}),!1}))):me({otp:"Please enter the OTP sent to your phone number."})},disabled:Te,variant:Te?"outline":"default",children:Te?"OTP Verified":"Verify OTP"})]}),ue.otp&&(0,o.jsx)("p",{className:"text-sm text-red-500",children:ue.otp})]})]}),De&&(0,o.jsx)(g.$0,{title:"Coupon Code",children:(0,o.jsx)(y.Z,{couponCode:ne,setCouponCode:se,onApply:function(e){var t;se(e),null===(t=Le.current)||void 0===t||t.applyCoupon(e)},isCouponValid:Me,product:F,appConfig:$,couponBtnColor:"dark",inputClassName:"rounded-xl"})}),(0,o.jsx)(g.$0,{title:"Payment",subtext:"All transactions are secure and encrypted.",children:(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border bg-secondary px-4 py-3",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("div",{className:"flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 border-primary",children:(0,o.jsx)("div",{className:"h-2 w-2 rounded-full bg-primary"})}),(0,o.jsxs)("span",{className:"text-sm font-medium flex gap-x-2 items-center",children:[Ve," ",(0,o.jsx)("span",{className:"font-normal text-muted-foreground text-xs",children:"(UPI, Cards, Int'l Cards, Wallets)"})]})]}),(0,o.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,o.jsx)("span",{className:"rounded border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:"UPI"}),(0,o.jsx)("span",{className:"rounded border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:"VISA"}),(0,o.jsx)("span",{className:"rounded border bg-background px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:"MC"})]})]}),(0,o.jsxs)("p",{className:"text-xs text-muted-foreground mb-0",children:["You'll be redirected to ",Ve," to complete your purchase."]})]})})]})})]})}V.getInitialProps=function(){var e=(0,n.Z)((function(e){var t,r,n,s,l,o,d,p,x,f,h;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:t=e.query,r=e.res,n=(0,u.getCookie)(S.z1,e),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,(0,E.s$)(n,t.orderId)];case 2:return(s=c.sent()).base_url="https://"+s.base_url,[3,4];case 3:return l=c.sent(),[2,{statusCode:502,message:(null===(o=l.response)||void 0===o||null===(d=o.data)||void 0===d?void 0:d.message)||l.message}];case 4:return Z()(s.date_added).isBefore(Z()().subtract(1,"week"))?[2,{statusCode:502,message:"This link has expired, please generate a new payment link"}]:"PAID"==s.order_status?[2,{statusCode:502,message:"Item has already been purchased"}]:"FAILED"==s.order_status?[2,{statusCode:502,message:"Payment has failed, please generate a new payment link"}]:(delete s.address.id,delete s.address.email,p=s.item_type,x=s.item_id,20===Number(p)&&(r.writeHead(307,{Location:"/c/".concat(t.orderId)}),r.end()),[4,(0,T.rV)(s.base_url,p,x)]);case 5:return f=c.sent(),(0,m.isEmpty)(f)?[2,{statusCode:404}]:("1"==p||"10"==p||"11"==p?(f=(0,a.Z)({title:f.course_name,pricingPlans:f.pricing_plans,price:f.price,image:f.course_thumbnail,showEmiPay:!1,installmentPlans:f.installmentplan},f),s.is_studymaterial_selected>0&&(s.studyMaterialSelected=f.study_material),s.is_book_selected>0&&(s.studyMaterialSelected=f.book),!(0,m.isEmpty)(s.installment_no)&&s.installment_no>0&&(s.installmentPlans=s.installment_no.split(",").map((function(e){return Number(e)}))),!(0,m.isEmpty)(s.pricing_plan_id)&&s.pricing_plan_id>0&&(s.selectedPlan=f.pricingPlans.find((function(e){return e.id==s.pricing_plan_id})),s.selectedPlan&&(f.price=s.selectedPlan.price,f.validity=s.selectedPlan.validity,f.validity_type=s.selectedPlan.validity_type,f.mrp=s.selectedPlan.mrp))):"3"==p?f=(0,i.Z)((0,a.Z)({},f),{pricingPlans:f.pricing_plans,price:f.offer_price,mrp:f.price,image:f.logo}):"7"==p&&(f=(0,i.Z)((0,a.Z)({},f),{id:f.c_id,title:f.c_title,price:f.c_price,image:f.c_image})),h="11"==p,f.itemType=p,f.itemId=x,f.priceKicker=h?f.linked_price_kicker:f.price_kicker,"1"==s.is_extended&&s.extended_validity>0&&"-1"!=s.extended_validity_price&&(f.price=s.extended_validity_price,f.validity=s.extended_validity),[2,{product:f,orderDetails:s,itemType:p,itemId:x}])}}))}));return function(t){return e.apply(this,arguments)}}(),V.layout=function(e){var t=e.children;return(0,o.jsx)("div",{children:t})},V.layoutTagmango=function(e){var t=e.children;return(0,o.jsx)("div",{children:t})}},49902:function(e,t,r){"use strict";r.d(t,{m:function(){return d}});var n=r(47568),s=r(26042),a=r(29815),i=r(97582),l=r(96486),c=r(69875),o=r(96076),d=function(){var e=(0,n.Z)((function(e,t){var r,n,d,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(!("user"===t.name.toLowerCase()||(0,l.isEmpty)(t.name)||(0,l.isEmpty)(t.state)||(m=e,o.vE.some((function(e){return void 0!==m[e]&&""!==m[e]})))))return[3,4];i.label=1;
1case 1:return i.trys.push([1,3,,4]),r=["name","email","phone","username","state","info_1","password","gender","dob","height","weight"].concat((0,a.Z)(o.vE)),n={},r.forEach((function(r){n[r]="password"===r?void 0!==e.password?e.password:"":e[r]||t[r]})),[4,(0,c.ck)(n)];case 2:return i.sent(),d=JSON.parse(localStorage.getItem(o.gm)||"{}"),[2,{updatedUser:(0,s.Z)({},d,n)}];case 3:return u=i.sent(),console.error("Failed to update user profile",u),[3,4];case 4:return[2,{updatedUser:t}]}var m}))}));return function(t,r){return e.apply(this,arguments)}}()}},function(e){e.O(0,[4885,8534,7432,5495,6436,2965,1483,3609,366,5328,4380,7518,5531,828,9774,2888,179],(function(){return t=70841,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.