PageSourceSearch

https://www.curiousjr.com/_next/static/chunks/1133.4f8e399fcf561df9.js

js curiousjr.com collected 2026-09-24 10:26:35 UTC 5,662 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1133],{81133:function(e,l,i){i.r(l);var d=i(61706),o=i(5972),t=i(651),a=i(90882),n=i(84792),r=i(13818),u=i(37812),s=i(8558),c=i(31037),v=i(28605),m=i(32077),h=i(22718),f=i(93409),_=i(39557),p=i(59397),g=i(92379),b=i(31665),x=i(42624),y=i(83300);l.default=function(e){var l,i,N,j,w,F,I,S,E,D=e.batchDetails,B=e.refetchBatchDetails,C=void 0===B?function(){}:B,P=(0,p.useRouter)(),Z=(0,v.ZP)().showNotification,k=(0,a.l8)(),O=k.refetchPurchasedBatches,R=k.user,T=k.batchCategoryIds,G=(0,_.Z)().enrollFree,L=(0,b.b5)(),K=(0,g.useState)(!1),M=K[0],Y=K[1],q=(0,b.fU)(!0),U=q.utm_source,V=q.utm_medium,A=q.utm_campaign,J=q.utm_term,W=q.utm_content,z=q.gclid,H=q.fbclid,Q=q.igshid,X=P.query,$=X.campaign_code,ee=X.mlp_type,le=X.triggeredFrom,ie=X.came_from,de=localStorage.getItem("paidData"),oe=JSON.parse(de||"{}").paid_batch_type,te=(0,f.P)().deviceManufacturer,ae=(0,s.ZP)({batchSlug:null===D||void 0===D?void 0:D._id,enabled:!!(null===D||void 0===D?void 0:D._id)}),ne=ae.data,re=(ae.isLoading,ae.error,(0,c.q)({batchId:null===D||void 0===D?void 0:D._id,planId:null===ne||void 0===ne||null===(l=ne[0])||void 0===l?void 0:l._id,utm_source:U,utm_medium:V,utm_campaign:A,device:te,enabled:!1})),ue=(re.data,re.error,re.refetch),se=(0,y.p)({batchData:D,pageType:"mlp"===ie?"MLP":"blp"===ie?"BLP":"WEBSITE",cameFrom:"batch",pageId:$,mlpType:ee,source:"POST_LOGIN"}),ce=se.meta,ve=se.extendedParams;return(0,t.jsxs)("div",{className:"flex flex-row justify-between bg-white p-3.5 gap-6",children:[(0,t.jsx)("div",{className:"flex flex-row gap-2.5 items-center",children:0!==(null===D||void 0===D||null===(i=D.fee)||void 0===i?void 0:i.total)?(0,t.jsxs)("div",{className:"flex flex-row flex-wrap gap-2 items-center justify-start",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)(n.Z,{variant:"heading3",weight:600,children:(0,t.jsxs)("span",{className:"pr-2 text-xl md:text-2xl",children:[(0,m.Dp)(null===D||void 0===D||null===(N=D.fee)||void 0===N?void 0:N.currency)," ",null===D||void 0===D||null===(j=D.fee)||void 0===j||null===(w=j.total)||void 0===w?void 0:w.toFixed()]})}),(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(n.Z,{variant:"regular",weight:500,children:(0,t.jsx)("span",{className:"text-[#757575] text-sm md:text-base",children:(0,t.jsx)("s",{children:null===D||void 0===D||null===(F=D.fee)||void 0===F||null===(I=F.amount)||void 0===I?void 0:I.toFixed()})})})})]}),(0,t.jsxs)("div",{className:"font-bold bg-[#DFF1E4] text-[#125226] px-2 py-[2px] rounded-md",children:[(0,t.jsxs)("span",{children:[Math.round(null===D||void 0===D||null===(S=D.fee)||void 0===S?void 0:S.discount),"%"]}),(0,t.jsx)("span",{children:"OFF"})]})]}):(0,t.jsx)("div",{className:"text-xl font-semibold",children:"Free"})}),(0,t.jsx)(r.Z,{style:{background:"linear-gradient(0deg, #FF6D0A -11.36%, #FF9D5B 109.09%)"},className:"!border-none mt-2 w-full self-center",onClick:function(){var e;if(ue(),(null===D||void 0===D?void 0:D.countryGroup)===(null===R||void 0===R?void 0:R.countryGroup))if(null===D||void 0===D||null===(e=D.fee)||void 0===e?void 0:e.total){var l,i,t,a;u.Z.buyNowClick({from:"batch_page",batch_id:null===D||void 0===D?void 0:D._id,batch_class:null===D||void 0===D?void 0:D.class,batch_tagged_classes:(0,x.lR)((null===D||void 0===D||null===(l=D.config)||void 0===l?void 0:l.cjrClasses)||[]),batch_name:null===D||void 0===D?void 0:D.name,sub_total:null===D||void 0===D||null===(i=D.fee)||void 0===i?void 0:i.amount,discount:null===D||void 0===D||null===(t=D.fee)||void 0===t?void 0:t.discount,total_amount:null===D||void 0===D||null===(a=D.fee)||void 0===a?void 0:a.total,batch_type:(0,h.SV)(D),page:"batch_page",triggered_from:le,paid_batch_type:oe||""}),P.push(le?"/batches/".concat(null===D||void 0===D?void 0:D.slug,"/order-summary?triggeredFrom=").concat(le):"/batches/".concat(null===D||void 0===D?void 0:D.slug,"/order-summary"))}else{if(Y(!0),T.includes(null===D||void 0===D?void 0:D.batchCategoryId)&&(null===D||void 0===D?void 0:D.masterBatchId))return Z({type:v.KY.INFO,title:"Not valid for free batch enroll!"}),void Y(!1);G({batchId:null===D||void 0===D?void 0:D._id,registrationEndDate:null===D||void 0===D?void 0:D.registrationEndDate,batchEndDate:null===D||void 0===D?void 0:D.endDate,meta:ce,extendedParams:ve,onSuccess:(0,d.Z)((function(){var e,l,i;return(0,o.__generator)(this,(function(d){return u.Z.freeBatchEnroll({batch_id:null===D||void 0===D?void 0:D._id,batch_name:null===D||void 0===D?void 0:D.name,batch_type:(0,h.SV)(D),batch_country_name:(null===D||void 0===D?void 0:D.countryGroup)||"",user_id:null===R||void 0===R||null===(e=R.profileId)||void 0===e?void 0:e._id,pw_user_id:null===R||void 0===R?void 0:R.id,user_cohort:null===R||void 0===R||null===(l=R.profileId)||void 0===l?void 0:l.cohortId,user_class:null===R||void 0===R||null===(i=R.profileId)||void 0===i?void 0:i.class,user_name:(null===R||void 0===R?void 0:R.lastName)?(null===R||void 0===R?void 0:R.firstName)+(null===R||void 0===R?void 0:R.lastName):null===R||void 0===R?void 0:R.firstName,page_id:$,utm_source:U,utm_medium:V,utm_campaign:A,utm_term:J,utm_content:W,gclid:z,fbclid:H,igshid:Q,source:L,mlp_type:ee,came_from:(0,x.wi)(ie)}),Z({type:v.KY.SUCCESS,title:"Batch Enrolled Successfully!"}),O(),C(),[2]}))}
1)),onSettled:function(){Y(!1)},showSuccessNotification:!1})}else Z({type:v.KY.ERROR,title:"This batch is not available for your region"})},loading:M,disabled:M,children:(0,t.jsx)("span",{className:"font-semibold text-lg",children:0!==(null===D||void 0===D||null===(E=D.fee)||void 0===E?void 0:E.total)?"Buy Now":"Enroll Now"})})]})}}}]);

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.