PageSourceSearch

https://www.zable.com/credit-cards/_next/static/chunks/pages/magic-link/[path]-26f701918b0ac0bb.js

js zable.com collected 2026-09-24 12:43:52 UTC 12,281 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];if(null!=o)for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:cards-app":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="496368f1-87ca-4f04-9f0e-88aa762cdfc0",e._sentryDebugIdIdentifier="sentry-dbid-496368f1-87ca-4f04-9f0e-88aa762cdfc0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4494],{2744:e=>{e.exports={layout:"Layout_layout__AU2d9","gray-background":"Layout_gray-background__XpoZP",grayBackground:"Layout_gray-background__XpoZP",content:"Layout_content__Z_OBU","without-content-inner":"Layout_without-content-inner__1Ii9e",withoutContentInner:"Layout_without-content-inner__1Ii9e","content-inner":"Layout_content-inner__baoGK",contentInner:"Layout_content-inner__baoGK"}},5326:e=>{e.exports={container:"MagicLinkRedirect_container__VMscl","center-content":"MagicLinkRedirect_center-content__AHVsq",centerContent:"MagicLinkRedirect_center-content__AHVsq","qr-code-container":"MagicLinkRedirect_qr-code-container__2RY5O",qrCodeContainer:"MagicLinkRedirect_qr-code-container__2RY5O","button-container":"MagicLinkRedirect_button-container__uixcD",buttonContainer:"MagicLinkRedirect_button-container__uixcD"}},6334:(e,t,o)=>{"use strict";o.d(t,{P:()=>v});var i=o(6029),n=o(32988),a=o.n(n),r=o(5700),c=o(91573),s=o(96649);let d=({app:e,message:t})=>c.Ps.includes(e)?(0,i.jsx)(s.A,{variant:"warning",size:"small",iconLeft:"status-warning-exclamation",style:{width:"100%",textAlign:"center",borderRadius:0,justifyContent:"center"},children:t}):null;var l=o(35464),u=o(29651),h=o(78653),_=o(55729),p=o(64166),m=o(80631),g=o(52331),y=o(39582),f=o.n(y);let k=({targetIso:e,logoImgSrc:t,isDismissed:o,onModalClose:n,onRedirectAccepted:a,modalTitle:r,bodyText:s,buttonLabel:d,flagAriaLabel:l})=>{let{flag:u,url:h}=c.A[e];return(0,i.jsxs)(g.a,{className:f().modal,open:!o,onClose:()=>null,shouldCloseOnOverlayClick:!1,shouldForceHighIndex:!0,children:[(0,i.jsx)(g.a.Title,{className:f().visuallyHidden,children:r}),(0,i.jsxs)("div",{className:f().mainWrapper,children:[t?(0,i.jsx)("img",{className:f().logo,src:t,alt:c.KR,width:76,height:26}):null,(0,i.jsx)("p",{children:s.itLooksLikeYoureInAnotherCountry}),(0,i.jsx)("p",{children:s.wouldYouLikeToSwitchToAnotherWebsite}),(0,i.jsxs)("div",{className:f().switchPrompt,children:[(0,i.jsx)("span",{className:f().flag,role:"img","aria-label":l,children:u}),(0,i.jsx)(p.$,{type:"link",color:"cta",href:h,onClick:a,children:d.accept})]}),(0,i.jsx)(m.U,{className:f().dismissAndContinue,onClick:n,children:d.dismiss})]})]})},x=({targetIso:e,currentIso:t})=>{let{[c.pY]:o}=(0,h.parseCookies)(),[n,a]=(0,_.useState)(!!o),s=(0,r.c)("common"),{displayNameKey:d,context:l,shortNameKey:u}=c.A[e];return(0,i.jsx)(k,{modalTitle:s("confirmLocation"),bodyText:{itLooksLikeYoureInAnotherCountry:s("itLooksLikeYoureInAnotherCountry",{context:l??"",displayName:s(d)}),wouldYouLikeToSwitchToAnotherWebsite:s("wouldYouLikeToSwitchToAnotherWebsite",{productTerritory:s(u)})},buttonLabel:{accept:s("yesTakeMeToProductNameWithTerritory",{productName:c.KR,productTerritory:s(u)}),dismiss:s("noContinueToProductNameWithTerritory",{productName:c.KR,productTerritory:s(c.A[t].shortNameKey)})},flagAriaLabel:`${s(d)} flag`,targetIso:e,logoImgSrc:"/credit-cards/images/logos/zable-logo-wordmark.svg",isDismissed:n,onModalClose:()=>((0,h.setCookie)(null,c.pY,e,{maxAge:c.SM,path:"/"}),a(!0))})};var w=o(92306),b=o(2744),j=o.n(b);let v=({isStaticPage:e,omitContentWrapper:t,withOverlayContent:o=!0,withGeolocationRoadblock:n=!0,hideHeaderButtons:s=!1,children:h})=>{let _=(0,r.c)("common"),p=(0,w.GV)(e=>e.auth.userGeolocation),m=p&&!!c.J0[p];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:a()(j().layout,o&&j().grayBackgroun
1d),children:[(0,i.jsx)(d,{app:"cards",message:_("technicalIssuesNotification")}),(0,i.jsx)(u.D,{hasLoginButton:!e&&!s,withOverlayContent:o,showDirectApplyLink:!s}),t?(0,i.jsx)("main",{id:"main",className:a()([j().content,j().withoutContentInner]),children:h}):(0,i.jsx)("main",{id:"main",className:j().content,children:(0,i.jsx)("div",{className:j().contentInner,children:h})}),(0,i.jsx)(l.D,{})]}),n&&m&&(0,i.jsx)(x,{currentIso:c.zj,targetIso:p})]})}},17701:()=>{},18525:(e,t,o)=>{"use strict";o.d(t,{V:()=>f});var i=o(6029),n=o(6334),a=o(78653),r=o.n(a),c=o(29143);let s=async e=>{if(!c.env.GEOLOCATION_API_ROOT)return;let t=await fetch(`${c.env.GEOLOCATION_API_ROOT}/locate`,{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({ip_address:e})}).then(e=>e.json()).catch(e=>console.warn("Pinpoint Geolocation API request error",e));return t?t.country?.iso_code:"UNKNOWN"};var d=o(91573);let l={utm_source:!0,utm_source_platform:!0,utm_medium:!0,utm_campaign:!0,utm_term:!0,utm_content:!0};var u=o(67690),h=o(14179),_=o(23748),p=o(97663),m=o(12971),g=o(8609);async function y(e,t){let o=(0,a.parseCookies)(t),i=o[u.m5],n=o[u._$],r=o[u.Jv];if((i||n)&&e.dispatch(_.A.actions.tokenReceived({...i&&{access_token:{value:i}},...n&&{refresh_token:{value:n}}})),n&&(0,m.nH)(r)){let o=await (0,m.$u)({token:n,type:"refresh",context:{res:t.res}});o.success&&o.auth?e.dispatch(_.A.actions.tokenReceived(o.auth)):((0,g.vV)("Token refresh failed - invalidating auth",{error:o.error,statusCode:o.statusCode}),e.dispatch(_.A.actions.invalidateAuth()),(0,m.yN)(t))}}function f(e){return function(t){return(0,i.jsx)(n.P,{isStaticPage:!!t.layoutProps?.isStaticPage,omitContentWrapper:t.layoutProps?.omitContentWrapper,withOverlayContent:t.layoutProps?.withOverlayContent,withGeolocationRoadblock:t.layoutProps?.withGeolocationRoadblock,children:(0,i.jsx)(e,{...t})})}}f.getServerSideProps=(e,{loginRequired:t=!1}={})=>async o=>{let i=(0,h.yO)(),n={...o,store:i,locale:o.locale||o.defaultLocale,loginRequired:t};if(o.req){((e,t,o=d.mg)=>{if("req"in e){let{query:i}=e;if(i){let n=((e,t={})=>{let o;return o=Object.assign(l,t),Object.fromEntries(Object.entries(e).filter(([e])=>o[e]))})(i);Object.keys(n).length>0&&r().set(e,o,JSON.stringify(n),{maxAge:86400,path:"/",sameSite:"lax",secure:t})}}})(n,!0);let e=(e=>{if("req"in e){let t,{req:o}=e,i=o.headers["x-forwarded-for"],n="string"==typeof i?i:o.socket.remoteAddress;return n&&(t=n&&n.match(/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g))&&t.length>0&&t[0]}})(n);if(await y(i,o),(0,p.U)(i.getState,o.res),e&&i.dispatch(_.A.actions.setForwardedIp(e)),e&&!i.getState().auth.userGeolocation){let t=await s(e);t&&i.dispatch(_.A.actions.setUserGeolocation(t))}}let a=i.getState().auth.isAuthenticated,c=await e(n);return(o.req&&a&&!i.getState().auth.isAuthenticated&&(0,m.yN)(n),"notFound"in c||"redirect"in c)?c:{props:{...c.props,initialReduxState:(0,h.mp)(i)}}}},39582:e=>{e.exports={"visually-hidden":"GeolocationRoadblockModal_visually-hidden__UI4KF",visuallyHidden:"GeolocationRoadblockModal_visually-hidden__UI4KF",modal:"GeolocationRoadblockModal_modal__0h5oV","main-wrapper":"GeolocationRoadblockModal_main-wrapper__cwuHJ",mainWrapper:"GeolocationRoadblockModal_main-wrapper__cwuHJ",logo:"GeolocationRoadblockModal_logo__wIUPj","switch-prompt":"GeolocationRoadblockModal_switch-prompt__PXIo4",switchPrompt:"GeolocationRoadblockModal_switch-prompt__PXIo4",flag:"GeolocationRoadblockModal_flag__AhHSm","dismiss-and-continue":"GeolocationRoadblockModal_dismiss-and-continue__JsLp9",dismissAndContinue:"GeolocationRoadblockModal_dismiss-and-continue__JsLp9"}},43560:()=>{},59003:(e,t,o)=>{"use strict";o.r(t),o.d(t,{__N_SSP:()=>x,default:()=>b,getRedirectUrl:()=>w});var i=o(6029),n=o(81278),a=o(5700),r=o(55729),c=o(11963),s=o(37474),d=o(91573),l=o(64166),u=o(5326),h=o.n(u);let _=({redirectUrl:e,title:t,description:o,ctaText:n,imageAlt:a,autoRedirect:c=!0,imageSrc:s="/images/illustrations/magic-link-redirect-arrow.svg",onButtonClick:d})=>(r.useEffect(()=>{c&&(location.href=e)},[e,c]),(0,i.jsx)("div",{className:h().container,children:(0,i.jsxs)("div",{className:h().centerContent,children:[(0,i.jsx)("img",{src:s,alt:a,width:200,height:200}),(0,i.jsx)("h1",{children:t}),(0,i.jsx)("p",{children:o}),(0,i.jsx)("div",{className:h().buttonContainer,children:(0,i.jsx)(l.$,{onClick:()=>{d?d():location.href=e},color:"cta",children:n})})]})})),p=({title:e,description:t,ctaText:o,onClick:n,children:a})=>(0,i.jsx)("div",{className:h().container,children:(0,i.jsxs)("div",{className:h().centerContent,children:[(0,i.jsx)("h1",{children:e}),(0,i.jsx)("p",{children:t}),(0,i.jsx)("div",{className:h().qrCodeContainer,children:a}),(0,i.jsx)("div",{className:h().buttonContainer,children:(0,i.jsx)(l.$,{onClick:n,color:"cta",children:o})})]})});
1var m=o(98067),g=o(17197),y=o(376),f=o(18525),k=o(10606),x=!0;let w=e=>{let t=e.replace("/credit-cards/magic-link/","").replace("/magic-link/","").replace(String(d.tS),String(d.Oq));return`${y.i.APP_SCHEME}://${t}`},b=(0,f.V)(({deviceType:e})=>{let t=(0,n.useRouter)(),o=(0,a.c)(),d=w(t.asPath),l=(0,m.N6)(e);return(0,r.useEffect)(()=>{let e=(0,m.X5)(navigator.userAgent);(0,k.Zq)(e.name??"unknown",e.version??"unknown")},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.e,{titleParts:[o("common.magicLinkRedirect.headTitle")]}),l?(0,i.jsx)(p,{title:o("common.magicLinkRedirect.desktopTitle"),description:o.rich("common.magicLinkRedirect.desktopDescription",s.D),ctaText:o("common.magicLinkRedirect.cta"),onClick:()=>window.open(d),children:(0,i.jsx)(c.Ay,{value:d,size:200,style:{height:"auto",maxWidth:"100%",width:"100%"},"data-testid":"qr-code"})}):(0,i.jsx)(_,{redirectUrl:d,title:o("common.magicLinkRedirect.mobileTitle"),description:o.rich("common.magicLinkRedirect.mobileDescription",s.D),ctaText:o("common.magicLinkRedirect.cta"),imageAlt:o("common.magicLinkRedirect.imageAlt"),imageSrc:"/credit-cards/images/illustrations/magic-link-redirect-arrow.svg"})]})})},73881:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/magic-link/[path]",function(){return o(59003)}])},96649:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var i=o(6029);function n(){for(var e,t,o=0,i="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=function e(t){var o,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(o=0;o<a;o++)t[o]&&(i=e(t[o]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}(e))&&(i&&(i+=" "),i+=t);return i}o(17701);let a=({type:e,className:t,style:o,children:a,ariaHidden:r=!0,...c})=>(0,i.jsx)("span",{"aria-hidden":r,className:n("_icon_1j6dh_1",`icons-${e}`,t),style:o,...c,children:a});o(43560);let r={chip:"_chip_1yofd_311","chip-small":"_chip-small_1yofd_323","chip-medium":"_chip-medium_1yofd_328","chip-large":"_chip-large_1yofd_338",content:"_content_1yofd_348",icon:"_icon_1yofd_351","chip-default":"_chip-default_1yofd_358","chip-success":"_chip-success_1yofd_362","chip-warning":"_chip-warning_1yofd_366","chip-danger":"_chip-danger_1yofd_370","chip-dark":"_chip-dark_1yofd_374","chip-light":"_chip-light_1yofd_378","chip-rounded-all":"_chip-rounded-all_1yofd_382","chip-rounded-top":"_chip-rounded-top_1yofd_385","chip-rounded-bottom":"_chip-rounded-bottom_1yofd_389","chip-rounded-left":"_chip-rounded-left_1yofd_393","chip-rounded-right":"_chip-rounded-right_1yofd_397","chip-rounded-top-left":"_chip-rounded-top-left_1yofd_401","chip-rounded-top-right":"_chip-rounded-top-right_1yofd_404","chip-rounded-bottom-left":"_chip-rounded-bottom-left_1yofd_407","chip-rounded-bottom-right":"_chip-rounded-bottom-right_1yofd_410","chip-rounded-none":"_chip-rounded-none_1yofd_413"},c=({size:e="small",variant:t="default",iconLeft:o,iconRight:c,rounded:s="all",children:d,className:l,...u})=>{let h=e=>(0,i.jsx)("span",{className:r.icon,"aria-hidden":"true",children:(0,i.jsx)(a,{type:e})}),_=n(r.chip,r[`chip-${e}`],r[`chip-${t}`],r[`chip-rounded-${s}`],l);return(0,i.jsxs)("div",{className:_,role:"status",...u,children:[o&&h(o),(0,i.jsx)("span",{className:r.content,children:d}),c&&h(c)]})}}},e=>{e.O(0,[5098,1963,7140,2869,636,6593,8792],()=>e(e.s=73881)),_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.