1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8499],{11013:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/firebaseLogin",function(){return n(78792)}])},78792:function(e,t,n){"use strict";n.r(t);var r=n(23842),i=n(19989),s=n(85556),u=n(24246),a=n(27378),c=n(88038),o=n.n(c),f=n(28228),h=n(43218),l=n.n(h),d=n(80682),w=n(77095),b=n(16198),p=n.n(b),g=n(18885),_=n(47061),v=n(90087);function j(){var e=(0,i.Z)(["\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background-image: url('/static/images/KKTV_branding_bg.svg');\n background-size: cover;\n background-position: center center;\n\n .firebaseui-id-country-selector-code {\n font-family: unset;\n }\n"]);return j=function(){return e},e}var m,y=g.RB,x=f.ZP.div.withConfig({componentId:"sc-5d0bd127-0"})(j()),I=function(e){var t=e.pageProps,n=t.firebaseSrc,r=t.query,i=r.redirect,s=r.state,c=r.phone_number,f=e.host,h=(0,a.useState)(!0),w=h[0],b=h[1],g=(0,a.useState)(!1),j=g[0],m=g[1],y=(0,a.useState)(!1),I=y[0],S=y[1],E=(0,a.useState)(!1),k=E[0],P=E[1];return(0,a.useEffect)(function(){if(j&&I&&k){var e=window.firebase,t=window.firebaseui;e.initializeApp(p().FIREBASE_CONFIG);var n={signInOptions:[{defaultCountry:"TW",provider:e.auth.PhoneAuthProvider.PROVIDER_ID,defaultNationalNumber:c}],tosUrl:"/service",privacyPolicyUrl:"/privacy",callbacks:{signInSuccessWithAuthResult:function(e){return e.user.getIdToken().then(function(e){b(!0);var t=(0,v.QD)(i)?f+i:f;window.location=(null==i?void 0:i.startsWith(f))?"".concat(i,"?state=").concat(s,"&code=").concat(e):t}),!1},uiShown:function(){return b(!1)}}},r=e.auth();r.useDeviceLanguage(),new t.auth.AuthUI(r).start("#firebaseui-auth-container",n)}},[j,I,k,c,i,s]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.Z,{title:"PAGE_LOGIN_TITLE"}),(0,u.jsx)(l(),{src:"https://www.gstatic.com/firebasejs/7.7.0/firebase-app.js",onLoad:function(){return m(!0)}}),(0,u.jsx)(l(),{src:"https://www.gstatic.com/firebasejs/7.7.0/firebase-auth.js",onLoad:function(){return S(!0)}}),(0,u.jsx)(l(),{src:n,onLoad:function(){return P(!0)}}),(0,u.jsx)(o(),{children:(0,u.jsx)("link",{type:"text/css",rel:"stylesheet",href:"https://www.gstatic.com/firebasejs/ui/4.4.0/firebase-ui-auth.css"})}),(0,u.jsxs)(x,{children:[(0,u.jsx)("div",{id:"firebaseui-auth-container"}),(0,u.jsx)(_.Z,{isShow:w})]})]})};I.getInitialProps=(m=(0,r.Z)(function(e){var t,n,r,i,u,a,c,o;return(0,s.__generator)(this,function(s){return t=e.query,n=e.res,r=e.req,i=e.isServer,(0,w.eD)({res:n,req:r,redirectUrl:null==t?void 0:t.redirectUrl,isServer:i}),a=(0,t.locale||"").toLowerCase(),c=y.some(function(e){return e===a})?a:"zh_tw",[2,{firebaseSrc:"https://www.gstatic.com/firebasejs/ui/4.4.0/firebase-ui-auth__".concat(c,".js"),query:t}]})}),function(e){return m.apply(this,arguments)}),t.default=I}},function(e){e.O(0,[5208,612,7877,3421,7701,5401,598,8868,8665,5323,7451,8752,9103,5060,7e3,5873,179],function(){return e(e.s=11013)}),_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.