PageSourceSearch

https://adresim.it/_next/static/chunks/9101.8eae7dd91d476bba.js

js adresim.it collected 2026-09-24 14:24:01 UTC 4,572 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9101],{89101:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});var n=i(95155),r=i(12115),a=i(88992),o=i(70898),s=i(22954),l=i(46801),c=i(20063),u=i(18955),d=i(97618);i(49738);var f=i(73604),p=i(12292),h=i(62223),m=i(24093),g=i(51479),x=i(16727),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-grey-lighter/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,r.useState)(""),S=(0,r.useRef)(null),[k,L]=(0,r.useState)(0),[O,C]=(0,r.useState)(!1);(0,r.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,r.useState)(!0),[G,R]=(0,r.useState)("");(0,r.useEffect)(()=>{_(!1);let e="https://adresim.it";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.";s.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:r}=e;if((0,x.Bb)()&&console.log(r),!r)return void B();switch(n.toUpperCase()){case p.A.GOOGLE:t=r.credential;break;case p.A.APPLE:t=r.authorization.code;break;case p.A.FACEBOOK:t=r.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)("/#get-esim")},e=>{var t,i;B((null==(i=e.response)||null==(t=i.data)?void 0:t.error)||e.message||"")})},q=(0,r.useMemo)(()=>{switch(j){case"ko":case"kr":return"ko";default:return j}},[j]),[I,K]=(0,r.useState)(!1),T=(0,r.useRef)(null),U=async()=>{"undefined"!=typeof document&&(T.current=document.createElement("script"),T.current.src="https://accounts.google.com/gsi/client?hl=".concat(q),T.current.onload=()=>{C(!0)},document.body.appendChild(T.current))};return(0,r.useEffect)(()=>(I&&U(),()=>{document.body&&T.current&&document.body.removeChild(T.current)}),[I]),(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)(a.tH,{fallback:(0,n.jsx)(n.Fragment,{}),children:(0,n.jsx)(h.G_,{clientId:"714394278653-csf0r3etogn8jtfg841sshrjgq5f5hep.apps.googleusercontent.com",onScriptLoadSuccess:()=>{K(!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.adr.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.