1import{m as a}from"./main.mixin7s_FZSSe.js";import{N as c,_ as p}from"./chunkReloadRecoveryC4XyrbqR.js";import{d as m,a4 as d,b as u,o as l,j as h}from"./vue-runtimeBcw72k-n.js";import"./refresh.storeCFjy7nst.js";import"./OperationQueueDV3oPNrt.js";import"./item-name.utilsCH3lkmjj.js";import"./dexie2jmnBxhj.js";import"./item.typesx7Q7rrX9.js";import"./content.typesCQ2lHcy0.js";import"./constantsDsHwd9pV.js";import"./extraction.pure.utilsDQPW8yIh.js";import"./url.utilsCetgXmY_.js";import"./file_utilsBz4gEirg.js";import"./agentParentalGrantCz4Xs1Ac.js";import"./common.storeB-dDF-ne.js";import"./adminsite.storeDQcNSYX0.js";import"./modal.mixinDnpIrxXn.js";import"./browserTabsDwRj8B1n.js";import"./scopedSettingsB4ZfLk-4.js";import"./subscription.storeD0D3zB45.js";import"./bootstrap-vue-nextD6HU9H8G.js";import"./cjs-helpersC4iS2aBk.js";const f=m({name:"AuthProviderRegister",mixins:[a],mounted(){},computed:{},methods:{appendParams(e,t){if(t){if(t instanceof URLSearchParams){for(const[r,o]of t.entries())e.has(r)||e.set(r,o);return}for(const[r,o]of Object.entries(t))o==null||e.has(r)||e.set(r,String(o))}},extractHashQueryParams(e){if(!e)return new URLSearchParams;const t=e.startsWith("#")?e.substring(1):e,r=t.indexOf("?");return r<0?new URLSearchParams(t):new URLSearchParams(t.substring(r+1))},parseProviderState(e){if(!e||!e.includes("="))return{loginType:null,sourceId:null};const t=e.split(",").reduce((r,o)=>{const[s,...n]=o.split("=");return!s||n.length===0||(r[decodeURIComponent(s)]=decodeURIComponent(n.join("="))),r},{});return{loginType:t.loginType||null,sourceId:t.sourceId||null}},getProviderCallbackParams(){var n;const e=new URLSearchParams(window.location.search.substring(1));this.appendParams(e,(n=this.$route)==null?void 0:n.query);const t=window.location.hash.startsWith("#")?window.location.hash.substring(1):window.location.hash,r=this.extractHashQueryParams(t);this.appendParams(e,r);const o=this.parseProviderState(e.get("state"));!e.has("loginType")&&o.loginType&&e.set("loginType",o.loginType);const s=this.$route.params.sourceId||e.get("sourceId")||o.sourceId;return s&&!e.has("sourceId")&&e.set("sourceId",s),{params:e,sourceId:s}},async closeExternalSigninSurfaceIfNeeded(e){if(!(e!=="app"||!this.isNativeClient))try{await c.sendAppRequest({action:"CLOSE_SIGNIN_WINDOW"})}catch(t){console.warn("Unable to close external sign-in surface after provider registration handoff",t)}},buildRegisterTarget(e){const t=e.toString();return`${this.appPrefix}#/register${t?`?${t}`:""}`},async handoffToRegister(){const{params:e,sourceId:t}=this.getProviderCallbackParams();await this.closeExternalSigninSurfaceIfNeeded(t),window.location.replace(this.buildRegisterTarget(e))}},created(){this.handoffToRegister()}}),g={class:"text-center"};function P(e,t,r,o,s,n){const i=d("b-container");return l(),u("div",g,[h(i,{class:"mt-5 justify-content-center"})])}const B=p(f,[["render",P]]);export{B as default};
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.