1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7601,469,738],{30469:function(n,t,e){e.r(t),e.d(t,{consumeRedirectResult:function(){return f},getFirebaseApp:function(){return l},getFirebaseAuth:function(){return s},getIdToken:function(){return b},onAuthStateChanged:function(){return m},saveMyName:function(){return p},sendPasswordReset:function(){return g},signInWithEmail:function(){return h},signInWithGoogle:function(){return d},signOutCallOS:function(){return y},signUpWithEmail:function(){return w}});var r=e(738),i=e(61466);function a(){let n=(window.location.hostname||"").toLowerCase();return"localhost"===n||"127.0.0.1"===n||n.endsWith(".localhost")?"uplink-hub.firebaseapp.com":"uplink-hub.com"===n||n.endsWith(".uplink-hub.com")?"uplink-hub.com":"owner-iq.com"===n||n.endsWith(".owner-iq.com")?"owner-iq.com":"call-os.com"}let o={apiKey:"AIzaSyCSg8ETeyGc0-Q5M1g729iYMy0Iqce6yEw",authDomain:a(),databaseURL:"https://uplink-hub-default-rtdb.firebaseio.com",projectId:"uplink-hub",storageBucket:"uplink-hub.firebasestorage.app",messagingSenderId:"50848918769",appId:"1:50848918769:web:0a6c3d6b2b29aec8c58d50"},u=null,c=null;function l(){return u||(u=0===(0,r.getApps)().length?(0,r.initializeApp)(o):(0,r.getApps)()[0])}function s(){return c||(c=(0,i.v0)(l()))}async function d(){let n=new i.hJ;n.setCustomParameters({prompt:"select_account"});let t=s();if(!0===window.navigator.standalone||window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||(window.location.hostname||"").toLowerCase()!==a())try{await (0,i.F6)(t,n);return}catch(t){let n=(null==t?void 0:t.code)||"unknown";throw console.error("[firebase] signInWithRedirect failed:",n,t),alert("Sign-in failed: ".concat(n)),t}try{return(await (0,i.rh)(t,n)).user}catch(a){let e=(null==a?void 0:a.code)||"unknown",r=(null==a?void 0:a.message)||String(a);if(console.error("[firebase] signInWithGoogle failed:",e,r),"auth/popup-blocked"===e)try{await (0,i.F6)(t,n);return}catch(n){throw alert("Sign-in failed (popup blocked + redirect failed): ".concat(n.message)),n}else"auth/popup-closed-by-user"===e||"auth/cancelled-popup-request"===e||("auth/unauthorized-domain"===e?alert("This domain (".concat(window.location.hostname,") is not authorized for Google sign-in in the Firebase console. Add it under Authentication â Settings â Authorized domains.")):alert("Sign-in failed: ".concat(e,"\n").concat(r)));throw a}}async function f(){try{var n;let t=await (0,i.cx)(s());return null!==(n=null==t?void 0:t.user)&&void 0!==n?n:null}catch(n){return console.error("[firebase] getRedirectResult failed:",n),null}}async function h(n,t){return(await (0,i.e5)(s(),n,t)).user}async function w(n,t,e){let r=await (0,i.Xb)(s(),n,t);if(e&&e.trim())try{await (0,i.ck)(r.user,{displayName:e.trim()})}catch(n){}return r.user}async function p(n,t){let e=await b();if(!e)throw Error("Could not save your name â you are not signed in.");let r=await fetch("https://call-os.com/api/callos/identity",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({first_name:n,last_name:t})}),i=await r.json().catch(()=>null);if(!r.ok||!(null==i?void 0:i.ok))throw Error(String((null==i?void 0:i.detail)||"Could not save your name. Your account was created â please sign in and try again."))}async function g(n){await (0,i.LS)(s(),n)}async function y(){await (0,i.w7)(s())}function m(n){return(0,i.Aj)(s(),n)}async function b(){let n=s();if(n.currentUser)return n.currentUser.getIdToken();let t=await new Promise(t=>{let e=!1,r=n=>{if(!e){e=!0;try{a()}catch(n){}t(n)}},a=(0,i.Aj)(n,n=>r(n),()=>r(null));setTimeout(()=>{var t;return r(null!==(t=n.currentUser)&&void 0!==t?t:null)},5e3)});return t?t.getIdToken():null}},37601:function(n,t,e){e.d(t,{r:function(){return i},rallyJson:function(){return a}});var r=e(42064);async function i(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=new Headers(t.headers||{}),i=await (0,r.lI)().catch(()=>null);return i&&e.set("Authorization","Bearer ".concat(i)),t.body&&!e.has("content-type")&&e.set("content-type","application/json"),fetch(n,{...t,headers:e,cache:"no-store"})}async function a(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=await i(n,t);if(!e.ok){let t=await e.text().catch(()=>"");throw Error("".concat(n," ").concat(e.status,": ").concat(t.slice(0,200))
1)}return e.json()}},42064:function(n,t,e){e.d(t,{Aj:function(){return l},Ry:function(){return o},Yb:function(){return u},lI:function(){return s},qj:function(){return a},x9:function(){return c}});var r=e(30469),i=e(61466);async function a(){var n,t;let e=(0,r.getFirebaseAuth)(),a=new i.hJ;if((null===(n=(t=window).matchMedia)||void 0===n?void 0:n.call(t,"(display-mode: standalone)").matches)||!0===window.navigator.standalone)throw await (0,i.F6)(e,a),Error("redirect-pending");return(await (0,i.rh)(e,a)).user}async function o(n,t){let e=(0,r.getFirebaseAuth)();return(await (0,i.e5)(e,n,t)).user}async function u(n,t,e){let a=(0,r.getFirebaseAuth)(),o=await (0,i.Xb)(a,n,t);if(e)try{await (0,i.ck)(o.user,{displayName:e})}catch(n){}return o.user}async function c(n){let t=(0,r.getFirebaseAuth)();await (0,i.LS)(t,n)}function l(n){let t=(0,r.getFirebaseAuth)();return(0,i.Aj)(t,n)}async function s(){let n=(0,r.getFirebaseAuth)().currentUser;if(!n)return null;try{return await n.getIdToken()}catch(n){return null}}},738:function(n,t,e){e.d(t,{getApps:function(){return r.C6},initializeApp:function(){return r.ZF}});var r=e(18858);(0,r.KN)("firebase","12.12.1","app")},61466:function(n,t,e){e.d(t,{hJ:function(){return r.Y},Xb:function(){return r.ab},h8:function(){return r.G},v0:function(){return r.p},cx:function(){return r.k},Aj:function(){return r.z},LS:function(){return r.a6},_p:function(){return r.a5},e5:function(){return r.ac},rh:function(){return r.d},F6:function(){return r.g},w7:function(){return r.D},ck:function(){return r.al}});var r=e(83670);e(18858),e(8582),e(59665),e(57350)}}]);
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.