PageSourceSearch

https://loio.com/_next/static/chunks/2089.a562b478f6c6c5be.js

js loio.com collected 2026-10-03 20:15:37 UTC 4,269 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];if(null!=t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:loio-ui":!0});var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="40cf9a29-5f0b-4d2b-9419-1c247615d56d",e._sentryDebugIdIdentifier="sentry-dbid-40cf9a29-5f0b-4d2b-9419-1c247615d56d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2089],{22089:function(e,n,t){t.r(n),t.d(n,{GoogleAuthWeb:function(){return c}});var r=t(96490),i=t(27700),a=t(23311),s=t(70206),o=t(15783),u=t(44308),c=function(e){"use strict";(0,s._)(t,e);var n=(0,o._)(t);function t(){return(0,i._)(this,t),n.call(this)}return(0,a._)(t,[{key:"loadScript",value:function(){if("undefined"!=typeof document){var e="gapi";if(!(null===document||void 0===document?void 0:document.getElementById(e))){var n=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.defer=!0,t.async=!0,t.id=e,t.onload=this.platformJsLoaded.bind(this),t.src="https://apis.google.com/js/platform.js",n.appendChild(t)}}}},{key:"initialize",value:function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clientId:"",scopes:[],grantOfflineAccess:!1},r=this;if("undefined"!=typeof window){var i=null===(e=document.getElementsByName("google-signin-client_id")[0])||void 0===e?void 0:e.content,a=t.clientId||i||"";a||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:a,grantOfflineAccess:null!==(n=t.grantOfflineAccess)&&void 0!==n&&n,scopes:t.scopes||[]},this.gapiLoaded=new Promise(function(e){window.gapiResolve=e,r.loadScript()}),this.addUserChangeListener()}}},{key:"platformJsLoaded",value:function(){var e=this;gapi.load("auth2",function(){var n={client_id:e.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};e.options.scopes.length&&(n.scope=e.options.scopes.join(" ")),gapi.auth2.init(n),window.gapiResolve()})}},{key:"signIn",value:function(){var e=this;return(0,r._)(function(){return(0,u.__generator)(this,function(n){return[2,new Promise((t=(0,r._)(function(n,t){var r,i,a,s,o,c,l;return(0,u.__generator)(this,function(u){switch(u.label){case 0:return u.trys.push([0,7,,8]),(a=null!==(r=e.options.grantOfflineAccess)&&void 0!==r&&r)?[4,gapi.auth2.getAuthInstance().grantOfflineAccess()]:[3,2];case 1:return s=u.sent(),i=s.code,[3,4];
1case 2:return[4,gapi.auth2.getAuthInstance().signIn()];case 3:u.sent(),u.label=4;case 4:return o=gapi.auth2.getAuthInstance().currentUser.get(),a?[4,o.reloadAuthResponse()]:[3,6];case 5:u.sent(),u.label=6;case 6:return(c=e.getUserFrom(o)).serverAuthCode=i,n(c),[3,8];case 7:return l=u.sent(),t(l),[3,8];case 8:return[2]}})}),function(e,n){return t.apply(this,arguments)}))];var t})})()}},{key:"refresh",value:function(){return(0,r._)(function(){var e;return(0,u.__generator)(this,function(n){switch(n.label){case 0:return[4,gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse()];case 1:return[2,{accessToken:(e=n.sent()).access_token,idToken:e.id_token,refreshToken:""}]}})})()}},{key:"signOut",value:function(){return(0,r._)(function(){return(0,u.__generator)(this,function(e){return[2,gapi.auth2.getAuthInstance().signOut()]})})()}},{key:"addUserChangeListener",value:function(){var e=this;return(0,r._)(function(){return(0,u.__generator)(this,function(n){switch(n.label){case 0:return[4,e.gapiLoaded];case 1:return n.sent(),gapi.auth2.getAuthInstance().currentUser.listen(function(n){e.notifyListeners("userChange",n.isSignedIn()?e.getUserFrom(n):null)}),[2]}})})()}},{key:"getUserFrom",value:function(e){var n={},t=e.getBasicProfile();n.email=t.getEmail(),n.familyName=t.getFamilyName(),n.givenName=t.getGivenName(),n.id=t.getId(),n.imageUrl=t.getImageUrl(),n.name=t.getName();var r=e.getAuthResponse(!0);return n.authentication={accessToken:r.access_token,idToken:r.id_token,refreshToken:""},n}}]),t}(t(47135).WebPlugin)}}]);

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.