System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js"],(function(t){"use strict";var e,n,o,i,r,c,u,l,a;return{setters:[function(t){e=t.r;n=t.e;o=t.h;i=t.g},function(t){r=t.k;c=t.f;u=t.n},function(t){l=t.g;a=t.i}],execute:function(){function s(t){var e=r(false),n=e[0],o=e[1];var i=r(null),u=i[0],a=i[1];var s=r(400),f=s[0],g=s[1];var d=null;var v=function(){if(u){g(u.clientWidth)}};c((function(){if(!u)return;var t=new ResizeObserver((function(){if(d){clearTimeout(d)}d=setTimeout((function(){v()}),50)}));t.observe(u);v();return function(){return t.disconnect()}}),[u]);c((function(){var e=function(){window.onGoogleLibraryLoad=null;var e=l();if(e.type!=="SquatchPortal")return;var n=function(e){t.initComplete.emit(e)};google.accounts.id.initialize({client_id:e.env.googleOAuthId,callback:n});o(true)};if(window.google)e();window.onGoogleLibraryLoad=e}),[]);c((function(){if(!u||!n)return;google.accounts.id.renderButton(u,{theme:"outline",size:"large",text:t.text,height:40,width:f})}),[u,n,f]);return{setGoogleButtonDiv:a}}var f=t("sqm_google_sign_in",function(){function t(t){e(this,t);this.initComplete=n(this,"initComplete",7);this.googleButtonDiv=null;u(this)}t.prototype.disconnectedCallback=function(){};t.prototype.connectedCallback=function(){var t="https://accounts.google.com/gsi/client";if(!document.head.querySelector('script[src="'+t+'"]')){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client";e.async=true;document.head.appendChild(e)}};t.prototype.render=function(){var t=(a()?g(this):s(this)).setGoogleButtonDiv;return o("div",{ref:t,style:{width:"100%"}})};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());function g(t){var e=r(false),n=e[0],o=e[1];var i=r(null),u=i[0],l=i[1];c((function(){var t=function(){window.onGoogleLibraryLoad=null;o(true)};if(window.google)t();window.onGoogleLibraryLoad=t}),[]);c((function(){if(!u||!n)return;var e=function(){t.initComplete.emit({credential:null})};google.accounts.id.initialize({client_id:"PLACEHOLDER",cb:function(){}});google.accounts.id.renderButton(u,{theme:"outline",size:"large",text:t.text,click_listener:e})}),[u,n]);return{setGoogleButtonDiv:l}}}}}));