PageSourceSearch

https://www.jeevansathi.com/_next/static/chunks/7970-2fc89b39ee81fa99.js

js jeevansathi.com collected 2026-09-24 09:33:29 UTC 7,602 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7970],{37970:(e,t,l)=>{l.r(t),l.d(t,{default:()=>j});var n=l(37876),i=l(59181),s=l(45226),a=l(76006),r=l(14232),d=l(23426),c=l(66401),o=l(49995),u=l(69130),m=l(91812),v=l(4082),x=l(35243),h=l(21797),p=l(95208),f=l(81590),N=l(89099);let j=e=>{var t,l,j,_,b,A,g,y,P,L;let{onClose:I,membershipData:S,profileId:C,currencyForPaymentLink:M,userType:w,singlePage:E}=e,{isUserWithoutGstAmountEligible:O,profileDiscount:D,gstValue:k,defaultCurrency:T}=S,{selectedMainPlan:G,selectedDurationPlan:R,cartPrices:X,planType:U,selectedAddOn:W,selectedDurationId:F,isMemRevampUser:J}=(0,p.X)(),{flashError:B}=(0,h.J)(),{query:H}=(0,N.useRouter)(),K=H.flowSource,V=U===i.OL.MAIN_PLAN?null!=(P=J?null==R?void 0:R.name:void 0)?P:null==G?void 0:G.name:(null==W?void 0:W.name)||"",q=U!==i.OL.MAIN_PLAN?null==W||null==(_=W.duration)||null==(j=_[0])||null==(l=j.additionalInfo)||null==(t=l.fup)?void 0:t.value:void 0,z=(0,i.Ug)(T),Y=(null==G?void 0:G.id)===(null===i.WJ||void 0===i.WJ?void 0:i.WJ.PRO_ASSIST)?(null==D||null==(b=D.flatDiscount)?void 0:b.PA)>0?D.flatDiscount.PA:null:(null==D||null==(A=D.flatDiscount)?void 0:A.X)>0?D.flatDiscount.X:null,Q=Y&&Y>0&&i.V_.includes(null==G?void 0:G.id),Z=null==D?void 0:D.overallDiscount,$=Z&&((null==Z?void 0:Z.INR)>0||(null==Z?void 0:Z.USD)>0),ee=(0,f.useRematchSelector)(e=>e.selfDetails.details),et=(0,v.u5)({name:ee.name,charLength:10})||ee.userName,[el,en]=(0,r.useState)(X[0]),ei=null!=(L=null==el?void 0:el.gstAmount)?L:0,es=!!O&&ei>0,[ea,er]=(0,r.useState)(!1),[ed,ec]=(0,r.useState)(0),[eo,eu]=(0,r.useState)(null),em=null==(g=(null==X?void 0:X.filter(e=>(null==e?void 0:e.currency)===T))[0])?void 0:g.id,[ev,ex]=(0,r.useState)(em);(0,r.useEffect)(()=>{var e;(0,i.Cc)({currency:M,plan:(U===i.OL.ADDON?null==W||null==(e=W.duration[0])?void 0:e.id:ev)||""})},[]),(0,r.useEffect)(()=>()=>{eo&&(clearInterval(eo),eu(null))},[eo]);let eh=()=>{if(I&&I(),(0,d.wz)(!0,K),C){var e,t;let l={profileId:C,displayPage:12,userType:null==S?void 0:S.userType,mainMem:null==S||null==(t=S.subscriptions)||null==(e=t.currentSubscription)?void 0:e.mainMemberships,totalCartPrice:"",processPayment:0,selectedVas:"",trackType:""};(0,a.Jo)(l,a.XK.Enter)}};(0,r.useEffect)(()=>{let e=document.getElementById("consumption_cart");return e&&e.addEventListener("click",eh),()=>{e&&e.removeEventListener("click",eh)}},[]),(0,r.useEffect)(()=>{X.map(e=>{e.currency===T&&en(e)}),ex(em)},[X,T]);let[ep,ef]=(0,r.useState)("");return(0,r.useEffect)(()=>{ef((0,x.Gq)("showChatBotOption"))},[]),(0,n.jsxs)(n.Fragment,{children:[ea&&(0,n.jsx)("div",{className:"absolute inset-0 bg-white/70",children:(0,n.jsx)(c.A,{})}),(0,n.jsxs)("div",{className:(0,o.A)("relative rounded-lg",E?"mt-2":"mt-2 border border-neutral-300"),children:[!E&&(0,n.jsx)("div",{className:"absolute -top-2 left-1/2 -translate-x-1/2 bg-white ",children:(0,n.jsx)("p",{className:"px-4 text-xs font-semibold !leading-5 tracking-[0.045em] text-neutral-500",children:"YOUR CART"})}),(0,n.jsxs)("div",{className:"px-3 py-5",children:[(0,n.jsxs)("div",{className:"mb-2",children:[(0,n.jsxs)("div",{className:"flex justify-between text-sm text-neutral-800",children:[(0,n.jsxs)("div",{className:"font-bold",id:"plan_name_consumption_cart",children:[V,q?" (".concat(q,")"):""]}),w===i.O1.UPGRADE_ELIGIBLE?(0,n.jsx)("div",{id:"original_price_cart_upgrade",children:O?z.format(null==el?void 0:el.discountedPrice):z.format(null==el?void 0:el.discountedPriceWithGst)}):(0,n.jsx)("div",{id:"original_price_consumption_cart",children:O?z.format(null==el?void 0:el.originalPrice):z.format(null==el?void 0:el.originalPriceWithGst)})]}),U===i.OL.MAIN_PLAN&&(0,n.jsxs)("div",{className:"text-xs text-neutral-400",id:"duration_consumption_cart",children:[(0,n.jsx)("span",{children:(null==R?void 0:R.value)===1188?"Till Marriage":null==R?void 0:R.value}),(null==R?void 0:R.value)!==1188&&(0,n.jsxs)("span",{children:[" ",null==R?void 0:R.unit," validity"]})]})]}),U===i.OL.MAIN_PLAN&&(Q||$)&&(0,n.jsxs)("div",{className:"mb-1.5 flex justify-between text-sm",children:[(0,n.jsxs)("div",{className:"text-neutral-800",id:"savings_consumption_cart",children:["Savings (",Q?Y:$?T===s.oA.INR?null==Z?void 0:Z.INR:null==Z?void 0:Z.USD:"","%)"]}),(0,n.jsxs)("div",{className:"text-[#289D34]",id:"discount_price_consumption_cart",children:["-"," ",O?z.format(null==el?void 0:el.discountAmount):z.format(null==el?void 0:el.discountAmountWithGst)]})]}),U===i.OL.MAIN_PLAN&&(Q||$)&&(0,n.jsxs)("div",{className:"my-1.5 flex justify-between text-sm",children:[(0,n.jsx)("div",{className:"text-neutral-800",id:"subtotal_consumption_cart",children:"Subtotal"}),(0,n.jsx)("div",{id:"subtotal_amount",children:O?z.format(null==el?void 0:el.discountedPrice):z.format(null==el?void 0:el.discountedPriceWithGst)})]}),(0,n.jsxs)("div",{className:"mb-1.5 flex justify-between text-sm text-neutral-800",children:[es&&(0,n.jsxs)("div",{id:"gst_consumption_cart",children:["GST (",k,"%)"]}),es&&(0,n.jsxs)("div",{className:"",id:"gst_price_consumption_cart",children:["+ ",z.format(+(null==el||null==(y=el.gstAmount)?void 0:y.toFixed()))]})]}),(0,n.jsxs)("div",{className:"flex justify-between border-t border-neutral-300 pt-2 text-neutral-800",children:[(0,n.jsx)("div",{className:"text-sm font-normal",id:"total_price_heading_consumption_card",children:"Total"}),(0,n.jsx)("div",{className:"text-md font-bold",id:"total_price_consumption_cart",children:O?z.format(null==el?void 0:el.discountedPriceWithGst):z.format(null==el?void 0:el.discountedPrice)})]})]}),!O&&T===s.oA.INR&&(0,n.jsxs)("div",{className:"mx-3 mb-2 -mt-4 text-xs text-neutral-800",children:["Price includes ",k,"% GST"]})]}),(0,n.jsxs)("div",{className:"mt-8",children:[(0,n.jsx)("div",{className:"text-center text-lg font-bold text-neutral-800",id:"consumption_only_text",children:"Continue payment using the link sent to your Email/SMS"}),(0,n.jsxs)("div",{className:"mt-2 mb-6 text-center text-sm text-neutral-600",children:["or visit ",(0,n.jsx)("span",{className:"font-semibold text-neutral-700",children:"www.jeevansathi.com"})]}),(0,n.jsx)(n.Fragment,{children:ep&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"text-center text-sm !leading-6 text-neutral-500",children:ed<=0?(0,n.jsxs)(n.Fragment,{children:["Didn’t receive the link? :"," ",(0,n.jsx)("span",{className:(0,o.A)("font-bold text-primary-500"),onClick:()=>void(er(!0),(0,i.Cc)({currency:M,plan:U===i.OL.MAIN_PLAN?ev:(null==W?void 0:W.duration[0].id)||""}).then(()=>{(e=>{ec(30);let t=setInterval(()=>{ec(e=>e>0?e-1:(clearInterval(t),eu(null),e)),eu(t)},1e3)})(0)}).catch(()=>{B({message:u.y[s.tG.XXXXXXX],ttl:4e3})}).finally(()=>{er(!1)})),children:"Resend link"})]}):(0,n.jsxs)(n.Fragment,{children:["Try again in ",ed<10?"0":"",ed," seconds"]})}),(0,n.jsxs)("div",{className:"mt-12 border-t border-neutral-300 pt-3 text-center text-sm text-neutral-500",children:["Need help with payment?"," ",(0,n.jsx)("span",{className:"font-bold text-primary-500",onClick:()=>(()=>{var e;let t="https://chatclient-mobile.jeevansathi.cextractPriceom",l=Object.entries({mainMem:U===i.OL.MAIN_PLAN&&(null==G?void 0:G.id)||"",mainMemDur:U===i.OL.MAIN_PLAN?F:"",addOn:U===i.OL.MAIN_PLAN?"":(null==W?void 0:W.duration[0].id)||"",page:"CF",platform:"jsms",userName:et||"",AUTHCHECKSUM:null!=(e=(0,m.R)("AUTHCHECKSUM"))?e:""}).filter(e=>{let[t,l]=e;return""!==l}).map(e=>{let[t,l]=e;return"".concat(t,"=").concat(l)}).join("&");t+=l?"?".concat(l):"",(0,d.Gc)("openChatBotConsumptionModel",t),er(!0),setTimeout(()=>{er(!1)},1e4)})(),children:"Chat 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.