PageSourceSearch

https://static.wokiapp.com/_next/static/chunks/pages/user/payment-methods/add-new-card-ebd3e5b88bbf9a53.js

js wokiapp.com collected 2026-09-26 04:53:19 UTC 15,975 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c496409a-89bf-4c27-9f49-9253d97fca2b",e._sentryDebugIdIdentifier="sentry-dbid-c496409a-89bf-4c27-9f49-9253d97fca2b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3741],{26:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var l=r(23798);r(21462);let n=e=>(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-current",...e,children:[(0,l.jsx)("style",{children:"\n          .spinner_OSmW {\n            transform-origin: center;\n            animation: spinner_T6mA 0.75s step-end infinite;\n          }\n          @keyframes spinner_T6mA {\n            8.3% { transform: rotate(30deg); }\n            16.6% { transform: rotate(60deg); }\n            25% { transform: rotate(90deg); }\n            33.3% { transform: rotate(120deg); }\n            41.6% { transform: rotate(150deg); }\n            50% { transform: rotate(180deg); }\n            58.3% { transform: rotate(210deg); }\n            66.6% { transform: rotate(240deg); }\n            75% { transform: rotate(270deg); }\n            83.3% { transform: rotate(300deg); }\n            91.6% { transform: rotate(330deg); }\n            100% { transform: rotate(360deg); }\n          }\n        "}),(0,l.jsxs)("g",{className:"spinner_OSmW",children:[(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",fill:"currentColor",opacity:".14"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",transform:"rotate(30 12 12)",fill:"currentColor",opacity:".29"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",transform:"rotate(60 12 12)",fill:"currentColor",opacity:".43"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",transform:"rotate(90 12 12)",fill:"currentColor",opacity:".57"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",transform:"rotate(120 12 12)",fill:"currentColor",opacity:".71"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",transform:"rotate(150 12 12)",fill:"currentColor",opacity:".86"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"2",height:"5",transform:"rotate(180 12 12)",fill:"currentColor"})]})]})},16352:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});var l=r(23798);r(21462);let n=e=>{let{width:t=30,height:r=30,stroke:n="#031c32"}=e;return(0,l.jsxs)("svg",{width:t,height:r,viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M9.75 0.750732C7.96997 0.750732 6.22991 1.27857 4.74987 2.26751C3.26983 3.25644 2.11628 4.66205 1.43509 6.30658C0.7539 7.95112 0.57567 9.76072 0.922937 11.5065C1.2702 13.2524 2.12737 14.856 3.38604 16.1147C4.64472 17.3734 6.24836 18.2305 7.99419 18.5778C9.74002 18.9251 11.5496 18.7468 13.1942 18.0656C14.8387 17.3845 16.2443 16.2309 17.2332 14.7509C18.2222 13.2708 18.75 11.5308 18.75 9.75073C18.75 8.56884 18.5172 7.39851 18.0649 6.30658C17.6126 5.21465 16.9497 4.2225 16.114 3.38677C15.2782 2.55104 14.2861 1.88811 13.1942 1.43582C12.1022 0.983524 10.9319 0.750732 9.75 0.750732ZM9.75 16.9507C8.32598 16.9507 6.93393 16.5285 5.7499 15.7373C4.56586 14.9462 3.64302 13.8217 3.09807 12.5061C2.55312 11.1904 2.41054 9.74275 2.68835 8.34608C2.96616 6.94942 3.6519 5.6665 4.65883 4.65956C5.66577 3.65263 6.94869 2.96689 8.34535 2.68908C9.74202 2.41127 11.1897 2.55385 12.5053 3.0988C13.821 3.64375 14.9454 4.56659 15.7366 5.75063C16.5277 6.93466 16.95 8.32671 16.95 9.75073C16.95 11.6603 16.1914 13.4916 14.8412 14.8419C13.4909 16.1922 11.6596 16.9507 9.75 16.9507Z",fill:n}),(0,l.jsx)("path",{d:"M9.7501 14.25C10.2472 14.25 10.6501 13.847 10.6501 13.35C10.6501 12.8529 10.2472 12.45 9.7501 12.45C9.25304 12.45 8.8501 12.8529 8.8501 13.35C8.8501 13.847 9.25304 14.25 9.7501 14.25Z",fill:n}),(0,l.jsx)("path",{d:"M9.7501 5.24921C9.5114 5.24921 9.28248 5.34403 9.1137 5.51281C8.94492 5.68159 8.8501 5.91051 8.8501 6.14921V10.6492C8.8501 10.8879 8.94492 11.1168 9.1137 11.2856C9.28248 11.4544 9.5114 11.5492 9.7501 11.5492C9.98879 11.5492 10.2177 11.4544 10.3865 11.2856C10.5553 11.1168 10.6501 10.8879 10.6501 10.6492V6.14921C10.6501 5.91051 10.5553 5.68159 10.3865 5.51281C10.2177 5.34403 9.98879 5.24921 9.7501 5.24921Z",fill:n})]})}},23074:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});
1var l=r(21462);let n=l.forwardRef(function(e,t){let{title:r,titleId:n,...s}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},s),r?l.createElement("title",{id:n},r):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))})},23115:(e,t,r)=>{"use strict";r.d(t,{f:()=>l,t:()=>n});let l=e=>{if(e<0)return"00:00";let t=Math.floor(e/60),r=Math.floor(e%60);return"".concat(String(t).padStart(2,"0"),":").concat(String(r).padStart(2,"0"))},n=(e,t)=>{let r=e-(t||Date.now());return{minutes:Math.max(0,r/6e4),formatted:l(Math.max(0,r/6e4))}}},34781:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var l=r(23798),n=r(65128),s=r(70099),a=r(46001),i=r.n(a),o=r(13775);let c=r(21462).useLayoutEffect,d=e=>{let{children:t}=e,{step:r}=(0,n.mx)(),{pathname:a}=(0,o.useRouter)(),d=a.includes("widget");return c(()=>{d||(0,s.FS)({waitForFrames:0,retries:2,retryDelayMs:40})},[d,a,r]),(0,l.jsx)("section",{"aria-label":r,className:i()("flex h-full w-full flex-grow flex-col items-start justify-start gap-4 lg:col-span-6 lg:min-w-[400px] lg:max-w-[550px] lg:gap-6",{"min-h-[100vh]":!d}),children:t})}},44571:e=>{"use strict";e.exports={DevTool:()=>null}},47725:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var l=r(23798);r(21462);var n=r(39607),s=r(70612),a=r(53852),i=r(9960);let o=e=>{let{children:t,isSticky:r=!0,onClick:o,loadOnClick:c=!1,isLoading:d=!1,showLoading:u=!0,isButtonClicked:x=!1,setIsButtonClicked:f=()=>{},disableAutoLoading:m=!1,...h}=e,{isPageLoading:g,handleAction:C}=(0,n.v)(),p=e=>{m||C(),c&&f(!0),null==o||o(e)},w=u&&(c?x:g||d);return r?(0,l.jsx)(s.o,{isLoading:w,disabled:w,onClick:p,...h,children:t}):(0,l.jsx)(a.O,{disabled:w,onClick:p,...h,children:w?(0,l.jsx)(i.a,{}):t})}},48577:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>m,default:()=>h});var l=r(23798);r(21462);var n=r(14125),s=r(30067),a=r(2690),i=r(81533),o=r(13775),c=r(96196),d=r(54713),u=r(55437);let x=()=>{let e=(0,o.useRouter)(),{openSnackbar:t}=(0,s.d)(),{t:r}=(0,d.Bd)(),{isMobile:x}=(0,a.e)();return(0,l.jsx)("div",{className:"flex w-full items-start p-5 lg:max-w-[1000px] 2lg:max-w-[1100px] 3lg:max-w-[1300px]",children:(0,l.jsx)(c.R,{children:(0,l.jsx)(u.w,{handleNextStep:()=>void e.push({pathname:i.b.USER_PAYMENT_METHODS,query:{success:!0}}),handleUpdateCardState:()=>t(r("enrollment:subtitleEnrollmentSuccess"),"success","".concat(x?"bottom":"top"),"middle"),children:(0,l.jsx)(n.N,{})})})})};var f=r(44455),m=!0;let h=()=>(0,l.jsx)(f.X,{handleNext:()=>{},redirect:()=>{},updateForm:()=>{},formPaymentMethodId:"",date:"",enabled:!0,children:(0,l.jsx)(x,{})})},59145:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/payment-methods/add-new-card",function(){return r(48577)}])},63903:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var l=r(21462);let n=(e,t)=>{let[r,n]=(0,l.useState)(e&&e>0?e:0),s=(0,l.useRef)(null),a=(0,l.useRef)(null),i=(0,l.useRef)(t);(0,l.useEffect)(()=>{i.current=t},[t]);let o=(0,l.useCallback)(e=>{a.current&&clearInterval(a.current),n(e),s.current=Date.now()+1e3*e;let t=()=>{if(!s.current)return;let e=Date.now(),t=Math.max(Math.ceil((s.current-e)/1e3),0);if(t<=0){var r;n(0),s.current=null,a.current&&(clearInterval(a.current),a.current=null),null==(r=i.current)||r.call(i);return}n(t)};t(),a.current=setInterval(t,1e3)},[]);return(0,l.useEffect)(()=>{let e=()=>{if(!document.hidden&&s.current&&r>0){let e=Date.now();n(Math.max(Math.ceil((s.current-e)/1e3),0))}};return document.addEventListener("visibilitychange",e),window.addEventListener("focus",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}},[r]),(0,l.useEffect)(()=>()=>{a.current&&clearInterval(a.current),s.current=null},[]),{startTimer:o,timer:r}}},67909:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});var l=r(23798);r(21462);let n=e=>{let{width:t=33,height:r=33,stroke:n="#132F60"}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:"0 0 19 19",fill:n,children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.0802 0.432803C5.34922 0.769073 5.2947 1.25975 4.95843 1.52877L1.5276 4.27343C1.19133 4.54245 0.70065 4.48793 0.431635 4.15166C0.162619 3.8
11539 0.217139 3.32471 0.553409 3.05569L3.98424 0.311029C4.32051 0.0420139 4.81119 0.0965339 5.0802 0.432803ZM14.1549 0.432803C14.424 0.0965339 14.9146 0.0420139 15.2509 0.311029L18.6817 3.05569C19.018 3.32471 19.0725 3.81539 18.8035 4.15166C18.5345 4.48793 18.0438 4.54245 17.7076 4.27343L14.2767 1.52877C13.9405 1.25975 13.8859 0.769073 14.1549 0.432803ZM9.96066 7.00182C10.3913 7.00182 10.7404 7.35092 10.7404 7.78156V11.2124C10.7404 11.4731 10.6101 11.7165 10.3932 11.8612L8.33468 13.2335C7.97637 13.4724 7.49226 13.3755 7.25338 13.0172C7.01451 12.6589 7.11133 12.1748 7.46964 11.9359L9.18092 10.7951V7.78156C9.18092 7.35092 9.53002 7.00182 9.96066 7.00182ZM4.33652 16.1504C4.64103 16.4549 4.64103 16.9486 4.33652 17.2531L2.96419 18.6254C2.65969 18.9299 2.16599 18.9299 1.86148 18.6254C1.55698 18.3209 1.55698 17.8272 1.86148 17.5227L3.23381 16.1504C3.53832 15.8458 4.03202 15.8458 4.33652 16.1504ZM14.8986 16.1504C15.2031 15.8458 15.6968 15.8458 16.0013 16.1504L17.3737 17.5227C17.6782 17.8272 17.6782 18.3209 17.3737 18.6254C17.0692 18.9299 16.5755 18.9299 16.271 18.6254L14.8986 17.2531C14.5941 16.9486 14.5941 16.4549 14.8986 16.1504Z",fill:n}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.61729 4.44374C6.06885 4.44374 3.19228 7.32032 3.19228 10.8688C3.19228 14.4172 6.06885 17.2938 9.61729 17.2938C13.1657 17.2938 16.0423 14.4172 16.0423 10.8688C16.0423 7.32032 13.1657 4.44374 9.61729 4.44374ZM1.63281 10.8688C1.63281 6.45905 5.20758 2.88428 9.61729 2.88428C14.027 2.88428 17.6018 6.45905 17.6018 10.8688C17.6018 15.2785 14.027 18.8532 9.61729 18.8532C5.20758 18.8532 1.63281 15.2785 1.63281 10.8688Z",fill:n})]})}},70612:(e,t,r)=>{"use strict";r.d(t,{o:()=>s});var l=r(23798);r(21462);var n=r(53852);let s=e=>{let{children:t,isLoading:r,style:s,...a}=e;return(0,l.jsx)(n.O,{style:{...s,position:"sticky",bottom:"3em",zIndex:190},isLoading:r,...a,children:t})}},86487:(e,t,r)=>{"use strict";r.d(t,{M:()=>g});var l=r(23798),n=r(67909),s=r(63903),a=r(23115),i=r(13775),o=r(21462),c=r(13488),d=r(54713),u=r(69135),x=r(81533),f=r(94516);let m=e=>{let{open:t,onOpenChange:r,children:n,...s}=e;return(0,l.jsxs)(u.bL,{open:t,onOpenChange:r,...s,children:[(0,l.jsx)(u.hJ,{className:"fixed inset-0 z-[200] bg-black bg-opacity-25"}),(0,l.jsx)(u.UC,{className:"fixed inset-0 z-[201] flex items-end justify-center overflow-y-auto p-4 lg:items-center",children:n})]})},h=e=>{let{open:t,onOpenChange:r,title:n,subtitle:s,buttonText:a,children:o,onClick:c,...d}=e,{push:u}=(0,i.useRouter)(),f=()=>{c?c():u(x.b.HOME)};return(0,l.jsxs)(m,{open:t,onOpenChange:r,...d,children:[(0,l.jsx)(h.DesktopContent,{onClick:f,title:n,subtitle:s,buttonText:a}),(0,l.jsx)(h.MobileContent,{onClick:f,title:n,subtitle:s,buttonText:a})]})};h.Container=m,h.DesktopContent=e=>{let{buttonText:t,title:r,subtitle:n,onClick:s}=e;return(0,l.jsxs)("div",{className:"no-scrollbar bg-backgroundColor relative hidden h-[260px] w-[422px] flex-col items-center justify-evenly gap-4 overflow-auto rounded-lg p-8 text-center shadow-xl lg:flex",children:[(0,l.jsx)("h3",{className:"text-xl font-semibold",children:r}),(0,l.jsx)("p",{className:"text-base",children:n}),(0,l.jsx)(f.S,{backgroundColor:"bg-primaryColor",onClick:s,fontSize:"text-[14px]",children:t})]})},h.MobileContent=e=>{let{onClick:t,title:r,subtitle:n,buttonText:s}=e;return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 lg:hidden",children:[(0,l.jsxs)("div",{className:"bg-backgroundColor relative flex w-full flex-col items-center justify-between overflow-auto rounded-lg px-[10px] text-center shadow-xl",children:[(0,l.jsx)("div",{className:"flex w-full items-center justify-center border-b border-lightGray px-8 py-4 font-medium",children:(0,l.jsx)("h3",{className:"text-lg",children:r})}),(0,l.jsx)("p",{className:"px-8 py-4 text-[11px] text-darkGray",children:n})]}),(0,l.jsx)(f.S,{onClick:t,backgroundColor:"bg-backgroundColor rounded-lg",textColor:"text-primaryColor",fontSize:"text-base",children:s})]})};let g=e=>{let{text:t,title:r,subtitle:u,buttonText:x,onClick:f}=e,{isReady:m}=(0,i.useRouter)(),{temporaryToken:g,temporaryTokenInfo:C}=(0,c.A)(),{t:p}=(0,d.Bd)(),w=p("common:timer"),b=p("common:tokenExpired"),v=(0,o.useMemo)(()=>{let e=new Date().getTime();return(0,a.t)(g?C.expiryTs:0,e)},[g,C.expiryTs]),[j,y]=(0,o.useState)(!1),k=e=>{y(e)},{timer:N,startTimer:M}=(0,s.L)(60,()=>k(!0));return((0,o.useEffect)(()=>{m&&g&&M(60*v.minutes)},[m,M,g,v.minutes]),g)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between rounded-lg bg-[#E6F0F9] px-4 py-2 text-sm font-semibold lg:text-base",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(n.n,{width:16}),t||w]}),(0,a.f)(N)]}),(0,l.jsx)(h,{open:j,onOpenChange:k,title:r||"\xa1Oops!",subtitle:u||b,buttonText:x||"OK",onClick:f})]}):null}},93198:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});
1var l=r(21462);let n=l.forwardRef(function(e,t){let{title:r,titleId:n,...s}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},s),r?l.createElement("title",{id:n},r):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))})},94516:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var l=r(23798),n=r(46001),s=r.n(n);r(21462);var a=r(9960);let i=e=>{let{children:t,textColor:r="text-backgroundColor",borderColor:n="border-backgroundColor",backgroundColor:i="bg-[#132F60]",fontWeight:o="font-[500]",fontSize:c="text-[0.875rem]",padding:d="p-[10px]",onClick:u=()=>{},isLoading:x=!1,disabled:f=!1}=e;return(0,l.jsx)("button",{disabled:f,onClick:u,type:"button",className:s()("flex w-full items-center justify-center border border-solid text-center ".concat(o," ").concat(d," ").concat(r," ").concat(c," ").concat(i," z-10 ").concat(f?"border-[1px] border-mediumGray":n," }")),children:x?(0,l.jsx)("span",{className:s()("flex h-[25px] w-full items-center justify-center rounded-lg ".concat(d," ").concat(i)),children:(0,l.jsx)(a.a,{})}):(0,l.jsx)("span",{className:"flex items-center justify-center gap-2 font-[500] not-italic",children:t})})}},99407:(e,t,r)=>{"use strict";r.d(t,{O:()=>c});var l=r(23798),n=r(53852),s=r(46001),a=r.n(s),i=r(44752);r(21462);var o=r(13775);let c=e=>{let{children:t,customGoBack:r,fontSize:s="text-[22px] lg:text-[28px]",...c}=e,{back:d}=(0,o.useRouter)();return(0,l.jsxs)("span",{className:a()("-ml-2 flex min-h-10 items-center gap-2"),children:[r?r?(0,l.jsx)(n.O,{className:"p-0",onClick:r,"aria-label":"navigate back",...c,children:(0,l.jsx)(i.A,{width:32})}):null:(0,l.jsx)(n.O,{className:"p-0",onClick:()=>{d()},"aria-label":"navigate back",...c,children:(0,l.jsx)(i.A,{width:32})}),(0,l.jsx)("h1",{className:a()("text-textColor flex items-center text-balance font-semibold leading-tight",s),children:t})]})}}},e=>{e.O(0,[4629,4610,2549,329,4455,8988,2651,3700,4125,636,6593,8792],()=>e(e.s=59145)),_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.