1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-CQjdYtoU.js","assets/public-shell-B_x5oatf.js","assets/vue-1AtMcz7l.js","assets/timezone-C1WFMaLm.js","assets/vue-router-BL0W4KYo.js","assets/public-shell-Dwetdzar.css"])))=>i.map(i=>d[i]); 2import{r as A,_ as P}from"./public-shell-B_x5oatf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"8ed42405eab16ca6f21c30b45346c6f30a2e6f72"};var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e70d35b0-caae-4ec3-8ed9-1bfaeac4d890",e._sentryDebugIdIdentifier="sentry-dbid-e70d35b0-caae-4ec3-8ed9-1bfaeac4d890")}catch{}})();const I="Google refresh() is not available when using offline mode. Offline mode only returns serverAuthCode for backend token exchange. Send serverAuthCode to your backend and refresh tokens there, or switch google.mode to 'online' for client-side refresh.",t=A("SocialLogin",{web:()=>P(()=>import("./web-CQjdYtoU.js"),__vite__mapDeps([0,1,2,3,4,5])).then(e=>new e.SocialLoginWeb)});class L{constructor(){this.initialize=this.initialize.bind(this),this.refresh=this.refresh.bind(this)}async initialize(o){await t.initialize(o),this.initializeOptions=o}async login(o){return t.login(o)}async logout(o){return t.logout(o)}async isLoggedIn(o){return t.isLoggedIn(o)}async getAuthorizationCode(o){return t.getAuthorizationCode(o)}async refresh(o){var n,r;return o.provider==="google"&&((r=(n=this.initializeOptions)===null||n===void 0?void 0:n.google)===null||r===void 0?void 0:r.mode)==="offline"&&console.warn(`[SocialLogin] ${I}`),t.refresh(o)}async refreshToken(o){return t.refreshToken(o)}async handleRedirectCallback(){return t.handleRedirectCallback()}async decodeIdToken(o){return t.decodeIdToken(o)}async getAccessTokenExpirationDate(o){return t.getAccessTokenExpirationDate(o)}async isAccessTokenAvailable(o){return t.isAccessTokenAvailable(o)}async isAccessTokenExpired(o){return t.isAccessTokenExpired(o)}async isRefreshTokenAvailable(o){return t.isRefreshTokenAvailable(o)}async providerSpecificCall(o){return t.providerSpecificCall(o)}async getPluginVersion(){return t.getPluginVersion()}async openSecureWindow(o){return t.openSecureWindow(o)}}const z=t,R=new L;function j(e,o){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}const B=["auth0","azure","cognito","okta","onelogin"],D={auth0:"openid profile email offline_access",azure:"openid profile email",cognito:"openid profile email",okta:"openid profile email offline_access",onelogin:"openid profile email"},x={azure:"https://graph.microsoft.com/v1.0/me"},H="https://login.microsoftonline.com",d=e=>e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`,l=e=>e.replace(/\/+$/,""),i=(e,o)=>{const n=l(e),r=o.replace(/^\/+/,"");return`${n}/${r}`},O=(e,o)=>{if(!(!e&&!o))return Object.assign(Object.assign({},e??{}),o??{})},g=(e,o)=>{if(!o.clientId)throw new Error(`[authConnect] ${e} requires clientId.`);if(!o.redirectUrl)throw new Error(`[authConnect] ${e} requires redirectUrl.`)},$=e=>{if(g("auth0",e),!e.domain)throw new Error("[authConnect] auth0 requires domain.");const o=l(d(e.domain));return h("auth0",e,{authorizationBaseUrl:i(o,"authorize"),accessTokenEndpoint:i(o,"oauth/token"),resourceUrl:i(o,"userinfo"),logoutUrl:i(o,"v2/logout"),additionalParameters:e.audience?{audience:e.audience}:void 0})},q=e=>{var o,n;g("azure",e);const r=(o=e.tenantId)!==null&&o!==void 0?o:"common",a=l(d((n=e.authorityHost)!==null&&n!==void 0?n:H)),s=i(a,`${r}/oauth2/v2.0`);return h("azure",e,{authorizationBaseUrl:i(s,"authorize"),accessTokenEndpoint:i(s,"token"),resourceUrl:x.azure})},F=e=>{if(g("cognito",e),!e.domain)throw new Error("[authConnect] cognito requires domain.");const o=l(d(e.domain));return h("cognito",e,{authorizationBaseUrl:i(o,"oauth2/authorize"),accessTokenEndpoint:i(o,"oauth2/token"),resourceUrl:i(o,"oauth2/userInfo"),logoutUrl:i(o,"logout")})},V=e=>{if(g("okta",e),!e.issuer)throw new Error("[authConnect] okta requires issuer.");const o=l(d(e.issuer));return h("okta",e,{authorizationBaseUrl:i(o,"v1/authorize"),accessTokenEndpoint:i(o,"v1/token"),resourceUrl:i(o,"v1/userinfo"),logoutUrl:i(o,"v1/logout")})},W=e=>{if(g("onelogin",e),!e.issuer)throw new Error("[authConnect] onelogin requires issuer.");const o=l(d(e.issuer));return h("onelogin",e,{authorizationBaseUrl:i(o,"auth"),accessTokenEndpoint:i(o,"token"),resourceUrl:i(o,"me"),logoutUrl:i(o,"logout")})},h=(e,o,n)=>{var r,a,s,c,u,f,b,v,p,y,E,_;const w=O(n.additionalParameters,o.additionalParameters),S=O(n.additionalResourceHeaders,o.additionalResourceHeaders),C={appId:o.clientId,authorizationBaseUrl:(a=(r=o.authorizationBaseUrl)!==null&&r!==void 0?r:n.authorizationBaseUrl)!==null&&a!==void 0?a:"",accessTokenEndpoint:(s=o.accessTokenEndpoint)!==null&&s!==void 0?s:n.accessTokenEndpoint,redirectUrl:o.redirectUrl,resourceUrl:(c=o.resourceUrl)!==null&&c!==void 0?c:n.resourceUrl,responseType:(f=(u=o.responseType)!==null&&u!==void 0?u:n.responseType)!==null&&f!==void 0?f:"code",pkceEnabled:(v=(b=o.pkceEnabled)!==null&&b!==void 0?b:n.pkceEnabled)!==null&&v!==void 0?v:!0,scope:(y=(p=o.scope)!==null&&p!==void 0?p:n.scope)!==null&&y!==void 0?y:D[e],additionalParameters:w,additionalResourceHeaders:S,logoutUrl:(E=o.logoutUrl)!==null&&E!==void 0?E:n.logoutUrl,logsEnabled:(_=o.logsEnabled)!==null&&_!==void 0?_:n.logsEnabled};if(!C.authorizationBaseUrl)throw new Error(`[authConnect] ${e} authorizationBaseUrl is required.`);return C},G=e=>{if(!e)return{};const o={};return e.auth0&&(o.auth0=$(e.auth0)),e.azure&&(o.azure=q(e.azure)),e.cognito&&(o.cognito=F(e.cognito)),e.okta&&(o.okta=V(e.okta)),e.onelogin&&(o.onelogin=W(e.onelogin)),o},m=e=>B.includes(e),N=e=>m(e.provider),M=e=>m(e.provider),T=e=>{var o;return M(e)?{provider:"oauth2",options:Object.assign({providerId:e.provider},(o=e.options)!==null&&o!==void 0?o:{})}:e},k=e=>N(e)?{provider:"oauth2",providerId:e.provider}:e,Y=e=>T(e),J=(e,o)=>!Object.keys(e).length&&!o?o:Object.assign(Object.assign({},e),o??{}),U=e=>({initialize:async o=>{const{authConnect:n,oauth2:r}=o,a=j(o,["authConnect","oauth2"]),s=G(n),c=J(s,r),u=Object.assign(Object.assign({},a),c?{oauth2:c}:{});return e.initialize(u)},login:async o=>{if(m(o.provider)){const n=T(o),r=await e.login(n);return{provider:o.provider,result:r.result}}return e.login(o)},logout:async o=>e.logout(k(o)),isLoggedIn:async o=>e.isLoggedIn(k(o)),getAuthorizationCode:async o=>e.getAuthorizationCode(k(o)),refresh:async o=>e.refresh(Y(o)),providerSpecificCall:async o=>e.providerSpecificCall(o),getPluginVersion:async()=>e.getPluginVersion()}),K=U(z),X=Object.freeze(Object.defineProperty({__proto__:null,SocialLogin:R,SocialLoginAuthConnect:K,SocialLoginBase:z,createAuthConnectClient:U},Symbol.toStringTag,{value:"Module"}));
2export{j as _,X as i};
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.