PageSourceSearch

https://esim-gsm.netlify.app/_next/static/chunks/1482.963b46c2d2f7985d.js

js esim-gsm.netlify.app collected 2026-10-03 10:43:42 UTC 4,551 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1482],{89101:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});var n=i(95155),a=i(12115),s=i(88992),o=i(70898),r=i(22954),l=i(46801),c=i(20063),u=i(18955),d=i(97618),f=i(73604),p=i(12292),h=i(62223),m=i(24093),g=i(51479),x=i(3820),b=i(90455),v=i(26497);let y=e=>{let{loading:t,provider:i}=e;return(0,n.jsx)(v.N,{children:""!==t&&(0,n.jsx)(b.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute inset-0 flex size-full items-center justify-center rounded-full bg-slate-200/40",children:t===i&&(0,n.jsx)(b.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute left-auto right-3 top-1/2 -translate-y-1/2 rtl:left-3 rtl:right-auto",children:(0,n.jsx)(f.A,{size:32})})})})},j=e=>{let{className:t,callback:i,allowedAccounts:f}=e,v=(0,u.c)(),j=(0,d.Ym)(),A=(0,g.useAuthenticationState)(),w=(0,m.v)(),[E,P]=(0,a.useState)(""),S=(0,a.useRef)(null),[k,L]=(0,a.useState)(0),[O,C]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!S.current)return;let e=new ResizeObserver(e=>{for(let t of e)L(Math.floor(t.contentRect.width))});return e.observe(S.current),()=>{e.disconnect()}},[O]);let[N,_]=(0,a.useState)(!0),[G,R]=(0,a.useState)("");(0,a.useEffect)(()=>{_(!1);let e="https://esimgsm.com";e&&R((null==e?void 0:e.endsWith("/"))?e.slice(0,-1):e)},[]);let z=e=>!f||0===f.length||f.includes(e),B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"It was impossible to sign in/sign up with this method. Please register an account first.";r.oR.error(e,{autoClose:5e3}),P(""),i&&i(!1)},F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Authentication failed.";(0,x.Bb)()&&console.log(e),B(null!=t?t:null)},M=async e=>{let t,{provider:n,data:a}=e;if((0,x.Bb)()&&console.log(a),!a)return void B();switch(n.toUpperCase()){case p.A.GOOGLE:t=a.credential;break;case p.A.APPLE:t=a.authorization.code;break;case p.A.FACEBOOK:t=a.accessToken;break;default:B()}if(!t)return void B();A.loginWithSocial(t,n,j,()=>{P("")},async e=>{w.load(!0),i?i(!0):(0,c.redirect)("/")},e=>{var t,i;B((null==(i=e.response)||null==(t=i.data)?void 0:t.error)||e.message||"")})},I=(0,a.useMemo)(()=>{switch(j){case"ko":case"kr":return"ko";default:return j}},[j]),[K,T]=(0,a.useState)(!1),U=(0,a.useRef)(null),W=async()=>{"undefined"!=typeof document&&(U.current=document.createElement("script"),U.current.src="https://accounts.google.com/gsi/client?hl=".concat(I),U.current.onload=()=>{C(!0)},document.body.appendChild(U.current))};return(0,a.useEffect)(()=>(K&&W(),()=>{document.body&&U.current&&document.body.removeChild(U.current)}),[K]),(0,n.jsx)(n.Fragment,{children:!N&&(0,n.jsxs)(b.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:(0,x.cn)("mx-auto flex w-full max-w-[400px] flex-col items-center justify-center gap-2 font-semibold md:gap-4",t),children:[z(p.A.GOOGLE)&&(0,n.jsx)(s.tH,{fallback:(0,n.jsx)(n.Fragment,{}),children:(0,n.jsx)(h.G_,{clientId:"853855267326-nh163h1j762d0u6g3p3sbj9chpdp9h1c.apps.googleusercontent.com",onScriptLoadSuccess:()=>{T(!0)},children:O&&(0,n.jsx)(b.P.div,{ref:S,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"relative w-full overflow-x-clip",children:k>0&&(0,n.jsx)(h.j,{onSuccess:e=>{console.log(e),M({provider:p.A.GOOGLE,data:{credential:e.credential}})},onError:()=>{B()},size:"large",shape:"rectangular",theme:"outline",text:"continue_with",width:String(k),useOneTap:!1})})})}),z(p.A.APPLE)&&(0,n.jsxs)("div",{className:"relative w-full",children:[(0,n.jsx)(l.L6,{client_id:"com.bnesim.esimgsm.signin",scope:"name email",redirect_uri:G,onLoginStart:()=>{P(p.A.APPLE)},onResolve:M,onReject:e=>{F(e)},children:(0,n.jsxs)("button",{type:"button",className:(0,x.cn)("focus:outline-none flex items-center justify-center rounded border border-solid border-[#dadce0] h-[38px] w-full px-3 rtl:px-5 py-0.5 transition duration-300 hover:bg-[#f0f5fe] hover:border-[#d2e3fc] focus:ring-2 focus:ring-[#06669d] focus:bg-[#f0f5fe] focus:border-[#f0f5fe] gap-2 text-sm font-normal bg-white text-[#3C4043] font-[family-name:arial]"),"aria-label":"Apple",children:[(0,n.jsx)(o.eMv,{className:"aspect-square h-full min-w-[18px]"}),(0,n.jsx)("span",{className:"grow",children:v("continue_with_social",{social:(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())(p.A.APPLE)})})]})}),(0,n.jsx)(y,{loading:E,provider:p.A.APPLE})]}),z(p.A.FACEBOOK)&&!1]})})}}}]);

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.