PageSourceSearch

https://elite-minds.leadingwithsangeeta.com/_next/static/chunks/5812.38163f5660cbab51.js

js leadingwithsangeeta.com collected 2026-09-30 21:24:36 UTC 5,663 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5812],{4429:function(e,t,l){l.r(t),l.d(t,{default:function(){return h}});var a=l(9268),n=l(6006),s=l(3436),r=l(5326),i=l.n(r),o=l(2801),c=l(4253);function d(e){return e.toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"})}let m=e=>{let{isOpen:t,onClose:l,currencySymbol:s,selectedCurrency:r,installmentsFromApi:m,numberOfInstallments:x,scheduleFallbackTotal:u,flexiPayInstallMentDetails:p}=e;(0,n.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&l()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,l]);let h=(0,n.useMemo)(()=>{if(p){let e=0;return p.map((t,l)=>{let a=e;e+=t.validTillDays;let n="";return 0!==l||t.calculatedDueDate||(n="Today - "),t.calculatedDueDate&&i()(t.calculatedDueDate).format("YYYY-MM-DD")===i()().format("YYYY-MM-DD")&&(n="Today - "),{installmentNumber:t.installmentNumber,amount:t.amount["INR"===r?"inr":"USD"===r?"usd":"eur"],label:t.calculatedDueDate?d(new Date(t.calculatedDueDate)):n+d(i()().add(a,"days").toDate()),paidOn:t.paidOn?new Date(t.paidOn):void 0}})}return[]},[p,r]);return(0,a.jsx)(c.Z,{isOpen:t,onClose:l,overlayClassName:"z-[60] p-4",contentClassName:"!rounded-xl shadow-xl !max-w-md mx-4",children:(0,a.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"flexi-schedule-title",children:[(0,a.jsx)("div",{className:"px-5 pt-5 pb-4 pr-12",children:(0,a.jsx)("h2",{id:"flexi-schedule-title",className:"text-lg font-bold text-[#050505]",children:"Installment Schedule"})}),(0,a.jsx)("div",{className:"border-t border-[#e6e9f2]"}),(0,a.jsx)("div",{className:"px-5 py-4 flex flex-col gap-3",children:h.map(e=>(0,a.jsxs)("div",{className:"flex justify-between items-baseline gap-4 text-sm",children:[(0,a.jsxs)("span",{className:"text-[#050505] flex font-medium shrink min-w-0",children:["Inst. #",e.installmentNumber," ",(0,a.jsxs)("span",{className:"text-[#656565] flex items-center gap-1 font-normal",children:["(",e.label,")",(null==e?void 0:e.paidOn)?(0,a.jsx)(o.FJM,{className:"text-[var(--success)]"}):""]})]}),(0,a.jsxs)("span",{className:"text-[#050505] font-semibold tabular-nums shrink-0",children:[s,e.amount.toFixed(2)]})]},e.installmentNumber))}),(0,a.jsx)("div",{className:"px-5 pb-5 pt-1",children:(0,a.jsx)("p",{className:"text-xs text-[#656565] leading-relaxed",children:"*The installment amounts do not include the convenience fee and applicable tax."})})]})})};var x=n.memo(m);let u=e=>{let{fullPrice:t,currencySymbol:l,installments:r,paymentPlan:i,setPaymentPlan:o,selectedCurrency:c,flexiInstallments:d,scheduleFallbackTotal:m,flexiPayInstallMentDetails:u}=e,p=(0,n.useMemo)(()=>i,[i]),[h,f]=(0,n.useState)(!1),b=e=>{o(e)},y="flex items-center justify-between w-full px-[12px] py-[8px] rounded-lg border-2 cursor-pointer transition-colors text-left",v="bg-white border-gray-200 hover:border-gray-300",j="border-[var(--primary-color)] bg-[var(--primary-color-light-100)]",g=(0,n.useMemo)(()=>null==u?void 0:u.some(e=>e.paidOn),[u]);return(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(x,{isOpen:h,onClose:()=>f(!1),currencySymbol:l,selectedCurrency:c,installmentsFromApi:d,numberOfInstallments:r,scheduleFallbackTotal:m,flexiPayInstallMentDetails:u}),(0,a.jsx)("h3",{className:" text-[16px] font-medium text-gray-900 mb-3",children:"Select Payment Plan"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>b(s.e.FULL),className:"".concat(y," ").concat(p===s.e.FULL?j:v," ").concat(g?"opacity-50 cursor-not-allowed pointer-events-none":""),disabled:g,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-semibold text-[14px] text-gray-900",children:"Full Payment"}),(0,a.jsxs)("div",{className:"text-[12px] text-gray-500 mt-0.5",children:["Pay ",l,t.toLocaleString()," once"]})]}),(0,a.jsx)("span",{className:"flex-shrink-0 w-5 h-5 rounded-full border-2 flex items-center justify-center ".concat("full"===p?"border-[var(--primary-color)] bg-[var(--primary-color)]":"border-gray-300 bg-white"),children:"full"===p&&(0,a.jsx)("svg",{className:"w-3 h-3 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})})]}),(0,a.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>b(s.e.FLEXI),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),b(s.e.FLEXI))},className:"".concat(y," focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--primary-color)] ").concat("flexi"===p?j:v),children:[(0,a.jsxs)("div",{className:"min-w-0 pr-1",children:[(0,a.jsx)("div",{className:"font-semibold text-[14px] text-gray-900",children:"Flexi Pay"}),(0,a.jsxs)("div",{className:"text-[12px] text-gray-500 mt-0.5 flex flex-wrap items-baseline gap-x-1",children:[(0,a.jsxs)("span",{children:[r," easy installments"]}),(0,a.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),f(!0)},className:"text-[#1e61d6] font-medium hover:underline text-[12px] p-0 m-0 border-0 bg-transparent cursor-pointer",children:"Details"})]})]}),(0,a.jsx)("span",{className:"flex-shrink-0 w-5 h-5 rounded-full border-2 flex items-center justify-center ".concat("flexi"===p?"border-[var(--primary-color)] bg-[var(--primary-color)]":"border-gray-300 bg-white"),children:"flexi"===p&&(0,a.jsx)("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})})]})]})]})},p=n.memo(u);var h=p}}]);

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.