1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1258],{55066:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/package-enrollment/[slug]",function(){return n(18593)}])},24372:function(e,t){"use strict";t.Z={src:"/_next/static/media/AlertIcon.313f3e8d.svg",height:25,width:25}},79821:function(e,t){"use strict";t.Z={src:"/_next/static/media/paymentSuccessIcon.ffc24856.svg",height:46,width:46}},89542:function(e,t){"use strict";t.Z={src:"/_next/static/media/payment_methods.2088a43a.png",height:24,width:193,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAYAAADjAO9DAAAAKklEQVR4nGNMKz/y/yMj47wfauJ+Mqf3b7R/mRc7k8HDpOyLHJOOgdY+APxPDeMBzxToAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:1}},9474:function(e,t,n){"use strict";var o=n(85893),i=n(77030),l=n(13990);let r=e=>{let{variant:t,...n}=e,r=(0,i.mq)("Card",{variant:t});return(0,o.jsx)(l.Z,{__css:r,...n})};t.Z=r},25649:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z},Q:function(){return F}});var o=n(85893),i=n(79078),l=n(68519),r=n(57747),s=n(55281),a=n(22757),c=n(93717),d=n(71293),u=n(14225),p=n(9474),x=n(39138),h=n.n(x),f=n(11163),m=n(63589);n(67294);var g=n(59927),v=n(22382),j=n(91185),y=n(61668),b=n(83671),k=n(25675),S=n.n(k),C={src:"/_next/static/media/tabler_progress.0ec853f3.svg",height:25,width:25},P=n(24372),A=n(41664),I=n.n(A),w=n(67421);let _=e=>{let{id:t,title:n,salePrice:x,url:k,type:A,regularPrice:_,banner:Z,completed:W,imgH:L=["132px","274px","132px"],showPurchaseBtn:q=!1,isLoading:H,enrollPackage:U,cardType:B="not_purchased"}=e,G=(0,f.useRouter)(),{t:M}=(0,w.$G)(),{user:O}=(0,b.Z)(),[,K]=(0,y.Z)(),{enrolledPackages:X}=(0,j.Z)(),Y=G.query.affiliate&&G.query.affiliateProductId,J=()=>{G.push("/test-packages/".concat(k||t))},$=e=>{e.stopPropagation(),e.preventDefault(),O?G.push("/package-enrollment/".concat(t).concat(Y?"?affiliateProductId=".concat(G.query.affiliateProductId,"&affiliate=").concat(G.query.affiliate):"")):K(!0)},Q=()=>{G.push("/package-content/".concat(t))};return"purchased"===B?(0,o.jsx)(I(),{href:"/package-content/".concat(t),children:(0,o.jsx)(p.Z,{...E,onClick:Q,children:(0,o.jsxs)(i.r,{templateColumns:"repeat(12, 1fr)",w:"full",children:[(0,o.jsx)(l.P,{colSpan:[3],display:["none","inherit"],children:(0,o.jsx)(r.xu,{...T,borderTopLeftRadius:"8px",borderTopRightRadius:["8px","0px"],borderBottomLeftRadius:["0px","8px"],minH:"158px",h:"full",children:(0,o.jsx)(r.xu,{...N,h:"full",children:(0,o.jsx)(v.n,{src:(null==Z?void 0:Z.fileUrl)?null==Z?void 0:Z.fileUrl:m.Z,alt:null==Z?void 0:Z.fileName,style:{objectFit:"fill",height:"100%"},fill:!0})})})}),(0,o.jsx)(l.P,{colSpan:[9],children:(0,o.jsxs)(s.K,{p:[4,4,6],h:"full",children:[(0,o.jsx)(a.X,{fontSize:"24px",fontWeight:700,lineHeight:"32px",children:n}),W?(0,o.jsxs)(c.k,{h:"full",align:"flex-end",pt:6,gap:2,children:[(0,o.jsx)(r.xu,{children:(0,o.jsx)(S(),{src:P.Z,width:24,height:24,alt:"completed"})}),(0,o.jsx)(r.xu,{children:"Completed"})]}):(0,o.jsxs)(c.k,{h:"full",align:"flex-end",pt:6,gap:2,children:[(0,o.jsx)(r.xu,{children:(0,o.jsx)(S(),{src:C,width:24,height:24,alt:"inProgress"})}),(0,o.jsx)(r.xu,{children:" In-progress"})]})]})})]})})}):"BUNDLE"===B?(0,o.jsx)(I(),{href:"/test-packages/".concat(k||t),children:(0,o.jsx)(p.Z,{...E,children:(0,o.jsxs)(i.r,{templateColumns:"repeat(12, 1fr)",w:"full",children:[(0,o.jsx)(l.P,{colSpan:[3],display:["inherit","inherit"],children:(0,o.jsx)(r.xu,{...T,borderTopLeftRadius:"8px",borderTopRightRadius:["8px","0px"],borderBottomLeftRadius:["0px","8px"],minH:"158px",h:"full",children:(0,o.jsx)(r.xu,{...N,h:"full",children:(0,o.jsx)(v.n,{src:(null==Z?void 0:Z.fileUrl)?null==Z?void 0:Z.fileUrl:m.Z,alt:null==Z?void 0:Z.fileName,style:{objectFit:"fill",height:"100%"},fill:!0})})})}),(0,o.jsx)(l.P,{colSpan:[9],children:(0,o.jsx)(s.K,{p:[4,4,6],h:"full",children:(0,o.jsx)(a.X,{fontSize:"24px",fontWeight:700,lineHeight:"32px",children:n})})})]})})}):(0,o.jsx)(I(),{href:q&&X[t]?"/package-content/".concat(t):q?"/package-enrollment/".concat(t):"/test-packages/".concat(k||t),children:(0,o.jsxs)(p.Z,{...E,onClick:e=>{q&&X[t]||(q?$(e):J())},children:[(0,o.jsx)(r.xu,{pos:"relative",w:"full",children:(0,o.jsx)(r.xu,{...T,children:(0,o.jsx)(r.xu,{...R,h:L,children:(0,o.jsx)(v.n,{loader:g.dh,src:(null==Z?void 0:Z.fileUrl)?null==Z?void 0:Z.fileUrl:m.Z,alt:null==Z?void 0:Z.fileName,fill:!0,style:{objectFit:"fill"}})})})}),(0,o.jsxs)(i.r,{h:["calc(100% - ".concat(L,")"),"calc(100% - 274px)","calc(100% - ".concat(L,")")],p:["16px"],children:[(0,o.jsx)(l.P,{children:(0,o.jsxs)(s.K,{spacing:4,w:"full",children:[(0,o.jsx)(d.x,{...D,children:h()(n,{length:q?60:40})}),"FREE"===A?(0,o.jsx)(d.x,{fontSize:"lg",fontWeight:700,children:M("TEST_PACKAGE_CARD_FREE_TEXT")}):(0,o.jsxs)(c.k,{flexGrow:1,gap:2,alignItems:"center",children:[(0,o.jsxs)(d.x,{fontSize:"lg",fontWeight:700,children:["à§³ ",x]}),0!==_&&x!=_&&(0,o.jsxs)(d.x,{fontSize:"md",fontWeight:400,textDecor:"line-through",textDecorationThickness:"1px",children:["à§³ ",_]})]})]})}),G.pathname.includes("/package-enrollment")||!q?null:(0,o.jsx)(l.P,{alignSelf:"end",mt:4,children:(0,o.jsx)(o.Fragment,{children:X[t]?(0,o.jsx)(u.z,{...F,onClick:Q,children:"Purchased"}):(0,o.jsx)(o.Fragment,{children:"FREE"===A?(0,o.jsx)(u.z,{...q?{...F}:{...z},isLoading:H,onClick:e=>U(e),children:M("TEST_PACKAGE_ENROLL_BUTTON")}):(0,o.jsx)(u.z,{...q?{...F}:{...z},onClick:e=>$(e),children:M("PURCHASE")})})})})]})]})})};var Z=_;let E={role:"group",background:"#FEFFFF",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",borderRadius:"16px",_hover:{boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)"},cursor:"pointer"},z={border:"1px solid rgba(0, 0, 0, 0.8)",color:"#000000",bg:"transparent",_hover:{bg:"secondary.900",color:"white"},_active:{outline:"0",boxShadow:"0"},fontWeight:"700",lineHeight:"28px",borderRadius:"12px",w:"full",h:["32px","40px","48px"],fontSize:["md","lg"]}
1,F={color:"white",_active:{outline:"0",boxShadow:"0"},fontWeight:"700",lineHeight:"28px",borderRadius:"12px",w:"full",h:["32px","40px","48px"],fontSize:["md","lg"]},T={overflow:"hidden",position:"relative",transition:"all 0.2s",borderTopRadius:"16px"},R={w:"full",borderRadius:"2xl",transition:"all 0.2s",transform:"scale(1)",_groupHover:{transform:"scale(1.1)"}},D={fontSize:["18px","20px"],fontWeight:700,minH:"56px"},N={w:"full",height:["full"],borderRadius:"2xl",transition:"all 0.2s",transform:"scale(1)",_groupHover:{transform:"scale(1.1)"}}},37349:function(e,t,n){"use strict";var o=n(85893),i=n(71293),l=n(93717),r=n(65028),s=n(36948),a=n(57747),c=n(74153),d=n(7405),u=n(14225),p=n(3369),x=n(67294),h=n(14208),f=n(92919),m=n(93431),g=n(86501),v=n(1604),j=n(60155),y=n(59927),b=n(1785),k=n.n(b),S=n(11163),C=n(67421),P=n(33047);let A=v.z.object({code:v.z.string()}),I=e=>{let{payload:t,courseData:n,setCoupon:v,setGift:b}=e,{t:I}=(0,C.$G)(),_=(0,S.useRouter)(),[Z,E]=(0,x.useState)(!1),[z,F]=(0,x.useState)(!1),[T,R]=(0,x.useState)(""),[D,N]=(0,x.useState)(!1),W=()=>{z?F(!1):E(!1)};console.log({data:n});let L=async e=>{console.log({formData:e});try{var o,i,l,r,s,a,c,d,u,p,x,f,m,j,S;N(!0);let C=await h.Z.applyCoupon({...e,userId:null==t?void 0:t.studentId,email:null==t?void 0:t.cusEmail,courseId:null==t?void 0:t.courseId,courseSalePrice:null==t?void 0:t.totalAmount,utcSecond:(0,y.tf)(),type:(null==_?void 0:null===(o=_.query)||void 0===o?void 0:o.type)==P._Y.BUNDLE?P._Y.BUNDLE:null==t?void 0:t.purchaseType});if((null==C?void 0:C.code)==="200"){let A;g.ZP.success(null==C?void 0:C.customMessage),console.log({coupoRes:C}),v({code:null==e?void 0:e.code,id:null==C?void 0:null===(i=C.data)||void 0===i?void 0:i.couponId,couponPartId:null==C?void 0:null===(l=C.data)||void 0===l?void 0:l.couponPartId,amount:null==C?void 0:null===(r=C.data)||void 0===r?void 0:r.discountAmount,isHundredPercent:null==C?void 0:null===(s=C.data)||void 0===s?void 0:s.hundredPercent}),d=null==C?void 0:null===(a=C.data)||void 0===a?void 0:a.couponId,u=null==e?void 0:e.code,A={items:[]},console.log("Tracking event for single course"),A.event="select_promotion",A.promotion_id=d,A.promotion_name=u,A.items.push({item_id:null==n?void 0:null===(p=n.data)||void 0===p?void 0:p.id,item_name:null==n?void 0:null===(x=n.data)||void 0===x?void 0:x.title,affiliation:"Keeron.com",discount:null==n?void 0:null===(f=n.data)||void 0===f?void 0:f.salePrice,item_brand:"Keeron",item_variant:"Course",price:null==n?void 0:null===(m=n.data)||void 0===m?void 0:m.price,quantity:1}),null==n||null===(j=n.data)||void 0===j||null===(S=j.categoryNames)||void 0===S||S.forEach((e,t)=>{A.items&&A.items&&(A.items["item_category".concat(t)]=e)}),k().dataLayer({dataLayer:A}),N(!1),E(!1),"gift"===_.query.mode&&(null==C?void 0:null===(c=C.data)||void 0===c?void 0:c.hundredPercent)&&b(e=>({...e,sendAsGift:!1}))}(null==C?void 0:C.code)==="400"&&(R(null==C?void 0:C.customMessage),N(!1),setTimeout(()=>{R(""),N(!1)},2e3))}catch(I){g.ZP.error(I.message||"Failed to apply coupon!",{style:{minWidth:"300px",maxWidth:"400px",fontSize:"14px"}})}};return(0,o.jsx)(p.Z,{size:"md",headerBorder:"1px solid #E0E8EA",openCloseIcon:!1,openModal:Z,callback:e=>E(e),btnStyle:{variant:"ghost",colorScheme:"black",padding:0,minWidth:"auto",minHeight:"14px !important",height:"14px"},btnTitle:(0,o.jsx)(i.x,{color:"brand.600",fontWeight:700,fontSize:["14px"],children:I("APPLY_COUPON")}),title:(0,o.jsxs)(l.k,{children:[(0,o.jsx)(i.x,{pb:"",fontSize:"20px",fontWeight:"600",children:"Apply Coupon"}),(0,o.jsx)(r.L,{}),(0,o.jsx)(s.J,{role:"button",as:j.Lp2,onClick:W})]}),children:(0,o.jsx)(a.xu,{py:"16px",children:(0,o.jsxs)(f.Z,{schema:A,onSubmit:L,children:[(0,o.jsx)(l.k,{gap:"16px",flexDirection:"column",children:(0,o.jsx)(m.Z,{variant:"base",name:"code",inputLabel:"Add Promo Code",placeholder:"Add promo code"})}),""!==T&&(0,o.jsxs)(c.b,{status:"error",variant:"left-accent",my:"32px",fontSize:"14px",children:[(0,o.jsx)(d.z,{}),T]}),(0,o.jsxs)(l.k,{justify:"end",alignItems:"center",w:"full",py:1,gap:"16px",mt:10,children:[(0,o.jsx)(u.z,{size:"sm",colorScheme:"gray",_hover:{bg:"gray.200"},onClick:W,children:"Cancel"}),(0,o.jsx)(u.z,{isLoading:D,px:"12px",type:"submit",...w,children:"Apply"})]})]})})})};t.Z=I;let w={minW:"64px",size:"sm",fontSize:"14px",minHeight:"32px"}},71459:function(e,t,n){"use strict";var o=n(85893),i=n(83671),l=n(61668),r=n(17209),s=n(11163),a=n(67294),c=n(59927),d=n(39491);let u=(e,t)=>
1{let{roles:n,additionalExpression:u=!0,additionalExpressionCallable:p=()=>!0,layout:x="default",redirectUrl:h}=t,f=t=>{var f,m;let{user:g,isAuthenticated:v,isInitialised:j,isLoginInProgress:y,isLogoutInProgress:b}=(0,i.Z)(),[,k]=(0,l.Z)(),S=(0,s.useRouter)(),[,C]=(0,r.Z)(),P={layout:x,user:g,isAuthenticated:v,isInitialised:j};(0,a.useEffect)(()=>{var e,o;if((null==S?void 0:null===(e=S.query)||void 0===e?void 0:e.appUserId)&&(null==S?void 0:null===(o=S.query)||void 0===o?void 0:o.requestFrom))k(!1);else if(!j||y||b||(0,c.r5)(A,n)&&u&&p(t))j&&!y&&(0,c.r5)(A,n)&&u&&p(t)&&C({layout:x});else{let i=h||("default"!==x?"/".concat(x,"/login?redirection=").concat(S.asPath):"/?redirection=".concat(S.asPath));i.includes("/transaction-history?activeTab=2&courseId=")&&localStorage.setItem("redirectTo",null==i?void 0:i.replace("/?redirection=","")),S.push(i)}return()=>{!j||y||b||(0,c.r5)(A,n)&&u&&p(P)||k(!0)}},[g,x]);let A=(null==g?void 0:g.Roles)||[];return(null==S?void 0:null===(f=S.query)||void 0===f?void 0:f.appUserId)&&(null==S?void 0:null===(m=S.query)||void 0===m?void 0:m.requestFrom)?(0,o.jsx)(e,{...t}):!j||y||b?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(d.Z,{})}):(0,c.r5)(A,n)&&u&&p(t)?(0,o.jsx)(e,{...t,data:P}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(d.Z,{})})};return f};t.Z=u},18593:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return L},default:function(){return q}});var o=n(85893),i=n(22338),l=n(79078),r=n(68519),s=n(71459),a=n(57747),c=n(25649);let d=e=>{let{packageData:t}=e;return console.log({packageData:t}),(0,o.jsx)(a.xu,{children:(0,o.jsx)(c.Z,{...t,imgH:["132px","274px","180px"]})})};var u=n(22757),p=n(93717),x=n(71293),h=n(45966),f=n(14225),m=n(36948),g=n(74153),v=n(37349),j=n(91185),y=n(25675),b=n.n(y),k=n(11163),S=n(89542),C=n(67294),P=n(53854),A=n(8883),I=n(67421),w=n(86455),_=n.n(w),Z=n(3369),E=n(40033),z=n(79821);let F={sendAsGift:!1,recipientName:"",recipientEmail:"",recipientMessage:""},T=e=>{let{payload:t,packageData:n}=e,{t:i}=(0,I.$G)(),l=(0,k.useRouter)(),{enrolledStudyResource:r}=(0,j.Z)(),[s,c]=(0,C.useState)(!1),[d,y]=(0,C.useState)(!1),[w,T]=(0,C.useState)(!1),[R,D]=(0,E.Z)(),[N,W]=(0,C.useState)({id:"",code:"",discount:"",amount:0,couponPartId:"",isHundredPercent:!1}),[L,q]=(0,C.useState)(()=>({...F,sendAsGift:"gift"===l.query.mode})),[H,U]=(0,C.useState)(!1),B=!(s&&(null==t?void 0:t.cusEmail))||r[null==t?void 0:t.productId],G=async()=>{y(!0);let e={};if(N.id&&(e.couponId=N.id,e.couponApplied=!0,e.couponPartId=N.couponPartId,e.totalAmount=t.totalAmount-(N.amount||0)),null==N?void 0:N.isHundredPercent)try{let n=await A.Z.makeSSLPayment({...t,...e});if((null==n?void 0:n.code)==="200"&&(null==N?void 0:N.isHundredPercent)&&T(!0),"400"===n.code)throw Error(n.customMessage)}catch(o){console.log(o)}finally{y(!1)}else try{let i=await A.Z.makeSSLPayment({...t,...e});if("400"===i.code)throw Error(i.customMessage);l.push(i.data.GatewayPageURL)}catch(s){var r;_().fire("Failed to Proceed!",(null==s?void 0:null===(r=s.response)||void 0===r?void 0:r.status)===500?"Some thing went wrong! please try again.":s.message,"error")}finally{y(!1)}};return(0,o.jsxs)("div",{children:[(0,o.jsxs)(a.xu,{bg:"#FAFAFA",p:"6",rounded:"8px",children:[(0,o.jsx)(u.X,{fontSize:["md","24px"],fontWeight:700,color:"#141414",children:"Summary"}),(0,o.jsxs)(a.xu,{my:"6",rounded:"9px",p:"20px",border:"1px solid #E1E4E8",bg:"#FFFFFF",children:[(0,o.jsxs)(p.k,{justify:"space-between",fontSize:"lg",fontWeight:700,color:"#141414",children:[(0,o.jsx)(x.x,{fontSize:"md",fontWeight:400,children:"Product Price"}),(0,o.jsxs)(x.x,{mr:"-5px",children:["à§³ ",t.totalAmount||0]})]}),(0,o.jsx)(a.xu,{children:(0,o.jsx)(v.Z,{courseData:n,payload:t,setCoupon:W,setGift:q})})]}),N.id&&(0,o.jsxs)(a.xu,{borderTop:"1px solid #E1E4E8",fontSize:"18px",px:"4",children:[(0,o.jsxs)(p.k,{pt:"6",justify:"space-between",children:[(0,o.jsx)(x.x,{size:"sm",children:"Subtotal"}),(0,o.jsxs)(x.x,{children:["à§³ ",t.totalAmount]})]}),(0,o.jsxs)(p.k,{pt:"14px",pb:"6",color:"#E53E3E",justify:"space-between",children:[(0,o.jsx)(x.x,{size:"sm",children:"Coupon Applied"}),(0,o.jsxs)(x.x,{children:["-à§³ ",N.amount]})]})]}),(0,o.jsxs)(p.k,{borderTop:"1px solid #E1E4E8",py:"6",px:4,justify:"space-between",fontSize:"lg",fontWeight:700,color:"#141414",children:[(0,o.jsx)(u.X,{fontSize:"lg",children:i("TOTAL_PRICE")}),(0,o.jsxs)(x.x,{mr:"-5px",children:["à§³ ",((t.totalAmount||0)-(N.amount||0)).toFixed(2)]})]}),(0,o.jsxs)(p.k,{gap:3,mt:6,mb:9,px:4,children:[(0,o.jsx)(h.X,{borderRadius:"4px",isChecked:s,onChange:e=>c(e.target.checked)}),(0,o.jsxs)(x.x,{as:"span",fontSize:"sm",fontWeight:400,pl:1,children:["I agree to the"," ",(0,o.jsx)(x.x,{as:"span",cursor:"pointer",textDecor:"underline",onClick:()=>l.push("/refund-policy"),children:"Refund policy,"})," ",(0,o.jsx)(x.x,{as:"span",cursor:"pointer",textDecor:"underline",onClick:()=>l.push("/terms-and-conditions"),children:"Terms & Conditions"})," ","and"," ",(0,o.jsx)(x.x,{as:"span",cursor:"pointer",textDecor:"underline",onClick:()=>l.push("/privacy-policy"),children:"Privacy Policy"})," ","of Keeron"]})]}
1),(0,o.jsx)(f.z,{isLoading:d,rounded:"8px",w:"full",onClick:G,h:"40px",fontSize:["16px","16px","18px"],lineHeight:["24px","24px","28px"],pl:["16px","16px","24px"],pr:["16px","16px","24px"],fontWeight:700,isDisabled:B,_disabled:{bg:"#EDF2F7",color:"#CBD5E0"},_hover:{bg:B?"#EDF2F7":"brand.600",color:B?"#CBD5E0":"white"},children:r[null==t?void 0:t.productId]?"Already Purchased":"Continue to Payment"})]}),(0,o.jsxs)(a.xu,{mt:"4",px:"5",rounded:"8px",children:[(0,o.jsxs)(u.X,{fontSize:"lg",fontWeight:700,color:"#141414",children:["Payment Method",(0,o.jsx)(m.J,{as:P.if7,fontSize:"16px",ml:"8px",color:"blackAlpha.600"})]}),(0,o.jsxs)(a.xu,{mt:"5",children:[(0,o.jsx)(b(),{alt:"paymentMethodImg_icon",src:S.Z}),(0,o.jsx)(u.X,{mb:1,mt:3,fontSize:"18px",fontWeight:700,color:"#141414",children:"Debit/Credit Card/Bkash"}),(0,o.jsx)(x.x,{color:"blackAlpha.700",fontSize:"sm",variant:"ghost",children:"Safe payment with your Debit/Credit Card and bkash account"})]})]}),(0,o.jsx)(x.x,{p:"5",fontSize:"xs",color:"blackAlpha.600",children:"Please note that your IP address, billing information and connection information will be recorded, traced and checked for fraud. All fraudulent transactions will be investigated and prosecuted in accordance with applicable law."}),(0,o.jsx)(Z.Z,{size:"freeEventModal",openModal:w,openCloseIcon:!1,btnTitle:"",title:"",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.x,{fontWeight:"700",fontSize:["xl","24px"],mt:5,lineHeight:"32px",children:"Enrollment Successful!"}),(0,o.jsx)(g.b,{bg:"brand.50",p:6,my:6,borderRadius:"8px",status:"success",children:(0,o.jsxs)(p.k,{align:"flex-start",gap:["16px","20px"],color:"#333",fontWeight:400,fontSize:["sm","md"],children:[(0,o.jsx)(a.xu,{w:["100px"],children:(0,o.jsx)(b(),{src:z.Z,alt:"paymentSuccessIcon"})}),(0,o.jsxs)(x.x,{lineHeight:"24px",children:["Thank you for choosing Keeron! You've successfully enrolled the"," ",(0,o.jsxs)(x.x,{as:"span",fontWeight:600,fontSize:"md",children:['"',null==t?void 0:t.productName,'"']})]})]})}),(0,o.jsx)(f.z,{onClick:()=>{T(!1),l.push("/"),D(!R)},borderRadius:"8px",w:"full",mt:"26px",h:"48px",type:"submit",children:"Back to Home"})]})})]})};var R=n(83671),D=n(6695),N=n(63799);let W=e=>{var t,n,s,a,c,u,p,x;let h=(0,k.useRouter)(),{user:f}=(0,R.Z)(),{packageData:m,packageId:g}=e,[v,j]=(0,C.useState)({}),y=h.query.affiliate&&h.query.affiliateProductId;(0,D.Z)({items:[{label:"Packages",link:"/test-packages"},{label:null==m?void 0:null===(t=m.data)||void 0===t?void 0:t.title,link:"/test-packages/".concat(null==m?void 0:null===(n=m.data)||void 0===n?void 0:n.url)},{label:"Package enrollment"}]}),(0,C.useEffect)(()=>{var e;if(null==h?void 0:null===(e=h.query)||void 0===e?void 0:e.appUserId){let t=async()=>{try{var e;let t=await N.Z.getStudentProfileDetailsByID(null==h?void 0:null===(e=h.query)||void 0===e?void 0:e.appUserId);j(null==t?void 0:t.data),console.log(t,"enrollMentProfileData")}catch(n){console.error("Error fetching profile data:",n)}};t()}},[null==h?void 0:null===(s=h.query)||void 0===s?void 0:s.appUserId]);let b={totalAmount:null==m?void 0:null===(a=m.data)||void 0===a?void 0:a.salePrice,currency:"BDT",tranId:"",successUrl:"".concat("https://keeron.com/api/business-keeron","/public/testpackage-success?packageId=").concat(g,"&transactionId="),failUrl:"".concat("https://keeron.com/api/business-keeron","/public/testpackage-failure?packageId=").concat(g,"&packageTitle=").concat(null==m?void 0:null===(c=m.data)||void 0===c?void 0:c.title),cancelUrl:"".concat("https://keeron.com/api/business-keeron","/public/testpackage-cancel?packageId=").concat(g,"&packageTitle=").concat(null==m?void 0:null===(u=m.data)||void 0===u?void 0:u.title),emiOption:"0",cusName:(null==f?void 0:f.DisplayName)||(null==v?void 0:v.displayName),cusEmail:(null==f?void 0:f.Email)||(null==v?void 0:v.email),cusPhone:(null==f?void 0:f.PhoneNumber)||(null==v?void 0:v.phoneNumber),requestFrom:(null==h?void 0:null===(p=h.query)||void 0===p?void 0:p.requestFrom)||"WEB",shippingMethod:"NO",numOfItem:"1.00",productName:null==m?void 0:null===(x=m.data)||void 0===x?void 0:x.title,productCategory:"no-product-category",productProfile:"non-physical-goods",courseId:g,couponId:"",couponApplied:!1,sendAsGift:!1,purchaseType:"TEST_PACKAGE",productId:g,studentId:(null==f?void 0:f.UserId)||(null==v?void 0:v.userId),trafficSource:y?"AFFILIATE":"DIRECT",affiliateProductId:h.query.affiliateProductId||"",affiliateUserKey:h.query.affiliate||""};return(0,o.jsx)(i.W,{children:(0,o.jsxs)(l.r,{my:["20px","32px"],templateColumns:["1fr","1fr","repeat(12, 1fr)"],gap:[0,0,8],children:[(0,o.jsx)(r.P,{colSpan:[12,12,5],bg:"#FFFFFF",children:(0,o.jsx)(d,{packageData:null==m?void 0:m.data})}),(0,o.jsx)(r.P,{mt:[4,4,0],colSpan:[12,12,7],children:(0,o.jsx)(T,{payload:b,packageData:null==m?void 0:m.data})})]})})};var L=!0,q=(0,s.Z)(W,{roles:["student"]})},14208:function(e,t,n){"use strict";var o=n(66613);t.Z=new class{getCoupons(){return o.Z.get("/coupon/view/coupons")}getCouponList(){return o.Z.get("/coupon/names")}addCoupon(e){return console.log(e,"api payload"),o.Z.post("/coupon/create",e,{headers:{accept:"*/*","Content-Type":"multipart/form-data"}})}editCoupon(e){return o.Z.post("/coupon/edit",e)}applyCoupon(e){return o.Z.post("/coupon/is-valid",e)}addCourses(e){return o.Z.post("/course/view-courses/categoryIds",e)}coursePrice(e){return o.Z.post("/course/price-calculation",e)}addTestPackages(e){return o.Z.post("/package/view-packages/categoryIds",e)}testPackagePrice(e){return o.Z.post("/package/price-calculation",e)}addStudyResource(e){return o.Z.post("/studyresource/view-list-for-coupon",e)}studyResourcePrice(e){return o.Z.post("/studyresource/price-calculation",e)}addEvent(e){return o.Z.post("/event/view-list-for-coupon",e)}eventPrice(e){return o.Z.post("/event/price-calculation",e)}couponList(e){return o.Z.post("/coupon/coupon-list",e)}updateCouponStatus(e){return o.Z.post("/coupon/update-status",e)}viewCoupon(e){return o.Z.get("/coupon/view/coupon?couponId=".concat(e))}getActiveHundredPercentCoupon(){return o.Z.get("/coupon/hundred-percent/names")}}},8883:function(e,t,n){"use strict";var o=n(66613);t.Z=new class{makeSSLPayment(e){return o.Z.post("/payment/create-session",e)}getPaymentHistoryById(e,t){let n=t.map(e=>"purchaseType=".concat(e)).join("&");return o.Z.get("/payment/view/payments/studentId?sendAsGift=".concat(e,"&").concat(n))}receivedGiftList(){return o.Z.get("/course-send-as-gift/view-all")}getPaymentSuccessObjByTId(e){return o.Z.get("/payment/view/payments/transactionId?transactionId=".concat(e))}redeemGift(e){return o.Z.get("/course-send-as-gift/redeem?courseId=".concat(e))}}},6789:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},v:function(){return i}});var[o,i]=(0,n(85607).eC)("Card")},13990:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var o=n(6789),i=n(25432),l=n(16554),r=n(33179),s=n(77030),a=n(2169),c=n(85893),d=(0,l.G)(function(e,t){let{className:n,children:l,direction:d="column",justify:u,align:p,...x}=(0,r.Lr)(e),h=(0,s.jC)("Card",e);return(0,c.jsx)(a.m.div,{ref:t,className:(0,i.cx)("chakra-card",
1n),__css:{display:"flex",flexDirection:d,justifyContent:u,alignItems:p,position:"relative",minWidth:0,wordWrap:"break-word",...h.container},...x,children:(0,c.jsx)(o.Y,{value:h,children:l})})})},45966:function(e,t,n){"use strict";n.d(t,{X:function(){return b}});var o=n(67294),i=n(44034),l=n(2169),r=n(85893);function s(e){return(0,r.jsx)(l.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,r.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function a(e){return(0,r.jsx)(l.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function c(e){let{isIndeterminate:t,isChecked:n,...o}=e;return n||t?(0,r.jsx)(l.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsx)(t?a:s,{...o})}):null}var d=n(8445),u=n(25432),p=n(70917),x=n(16554),h=n(77030),f=n(33179),m={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},g={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},v=(0,p.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),j=(0,p.F4)({from:{opacity:0}
1,to:{opacity:1}}),y=(0,p.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),b=(0,x.G)(function(e,t){let n=(0,i.J)(),s={...n,...e},a=(0,h.jC)("Checkbox",s),p=(0,f.Lr)(e),{spacing:x="0.5rem",className:b,children:k,iconColor:S,iconSize:C,icon:P=(0,r.jsx)(c,{}),isChecked:A,isDisabled:I=null==n?void 0:n.isDisabled,onChange:w,inputProps:_,...Z}=p,E=A;(null==n?void 0:n.value)&&p.value&&(E=n.value.includes(p.value));let z=w;(null==n?void 0:n.onChange)&&p.value&&(z=(0,u.PP)(n.onChange,w));let{state:F,getInputProps:T,getCheckboxProps:R,getLabelProps:D,getRootProps:N}=(0,d.O)({...Z,isDisabled:I,isChecked:E,onChange:z}),W=function(e){let[t,n]=(0,o.useState)(e),[i,l]=(0,o.useState)(!1);return e!==t&&(l(!0),n(e)),i}(F.isChecked),L=(0,o.useMemo)(()=>({animation:W?F.isIndeterminate?`${j} 20ms linear, ${y} 200ms linear`:`${v} 200ms linear`:void 0,fontSize:C,color:S,...a.icon}),[S,C,W,F.isIndeterminate,a.icon]),q=(0,o.cloneElement)(P,{__css:L,isIndeterminate:F.isIndeterminate,isChecked:F.isChecked});return(0,r.jsxs)(l.m.label,{__css:{...g,...a.container},className:(0,u.cx)("chakra-checkbox",b),...N(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...T(_,t)}),(0,r.jsx)(l.m.span,{__css:{...m,...a.control},className:"chakra-checkbox__control",...R(),children:q}),k&&(0,r.jsx)(l.m.span,{className:"chakra-checkbox__label",...D(),__css:{marginStart:x,...a.label},children:k})]})});b.displayName="Checkbox"},44034:function(e,t,n){"use strict";n.d(t,{J:function(){return i},z:function(){return o}});var[o,i]=(0,n(55227).k)({name:"CheckboxGroupContext",strict:!1})}},function(e){e.O(0,[6556,8166,260,8445,9774,2888,179],function(){return e(e.s=55066)}),_N_E=e.O()}]);
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.