@digital-realty/app-shell 11.0.0 → 11.0.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bootstrap.js CHANGED
@@ -1 +1 @@
1
- import{__decorate as C}from"tslib";import{LitElement as S,html as c}from"lit";import{property as I}from"lit/decorators.js";import{ApplicationInsights as W,DistributedTracingModes as q}from"@microsoft/applicationinsights-web";import{authedUser as R}from"@digital-realty/ix-account-switcher";import{UserManager as Q}from"oidc-client-ts";import"@digital-realty/ix-app-logic/views/splash-screen.js";import{makeObservable as Z,action as ee,observable as te,toJS as se}from"mobx";const T="planbglobalportalui",ae="openid service_management_profile offline_access user_management_profile resource.notifications resource.usermanagementapi resource.servicemanagementapi resource.inventory resource.cookieconsents",O="https://login-a1.digitalrealty.com",re="https://inxn-a1-gpappshell.azureedge.net/?logout=true",P="https://api-a1.interxion.com",ne="",oe="local",ie="GTM-KXBK8CQP",ce=24,le="https://api-a1.interxion.com",pe="ui-ticket-updates-accessAt,ix-grid-,-grid,app-state,releaseNotesViewed",ue="https://gp-dev.digitalrealty.com/standalone/knowledge-base",de="https://portal.interxion.com",_e="https://inxn-a1-gpappshell.azureedge.net",Ee="https://demo.servicefabric.digitalrealty.com/",me="https://marketplaceportal.com/group/telx-new-portal",he="gp-uat.digitalrealty.com",ge=!1,Ae="/cookie-policy",Ce="1.0",Se={strict:"strictly_necessary",performance:"performance",targeting:"targeting"},Ie={accept:"accept_all",reject:"reject_all",custom:"customize",no:"no_sell"},N="globalportalappshell",l="user-authentication",d="redirect-url",Re="ui-cookie-policy",Te="date-format",f="Global Portal",w="Service Fabric",L="Marketplace Portal",b="EMEA Customer Portal",Oe="x-auth",[p,Pe,Ne,fe]=["CREATE","UPDATE","READ","APPROVE"],[y,_,we,Le,v,be,wt,ye,U,Lt,ve,Ue,k,x,M,bt,ke,yt,xe,D,V,G,Me,B,De,Ve,H,Ge]=["Cloud Connect","Cross Connect","Custom Roles","Customer Care","Customer Equipment Connection (CEC)","Customer Support","DCIM-enabled location data","Default System Roles","External User","Facility Access","Internal Roles","Internal User","Internet Exchange","Intra-Customer Connectivity (ICC)","IP Bandwidth","OSP Access","Permanent Badge","PoP/POE Room Access","Remote Hands","Remote Hands Package","Service Exchange Cloud Router","Service Exchange Port","Shipping & Receiving","Space & Power","Trouble Ticket","Visitor Access","User","ESG Reporting"],Be=[xe,be,De,Me,Ve,ke,Le],He=[_,y,v,k,x,M,D,V,G,B],je=[_,y,v,k,x,M,D,V,G,B],Fe={LocationChanged:"location-changed",VaadinRouterLocationChanged:"vaadin-router-location-changed",CreateUserClicked:"create-user-clicked"},Ke={SessionStorage:{HasOutstandingChanges:"hasOutstandingChanges"}},[$e,Ye,ze]=["Security","DCIM","Planned Site Maintenance"],Xe=[$e,Ye,ze],Je=[{label:f,href:_e,selected:!0},{label:L,href:me},{label:b,href:de},{label:w,href:Ee,target:"_blank"}],j={appInsights:"_appInsights"},We=()=>{const e=new W({config:{instrumentationKey:ne,enableCorsCorrelation:!0,enableRequestHeaderTracking:!0,enableResponseHeaderTracking:!0,enableAutoRouteTracking:!0,autoTrackPageVisitTime:!0,enableAjaxErrorStatusText:!0,enableAjaxPerfTracking:!0,enableUnhandledPromiseRejectionTracking:!0,isCookieUseDisabled:!0,distributedTracingMode:q.AI_AND_W3C,correlationHeaderExcludedDomains:he.split(",").map(t=>t.trim())}});return e.loadAppInsights(),e.trackPageView(),e.addTelemetryInitializer(t=>{t.tags["ai.cloud.role"]=N}),e},u=(e,t,s)=>(...a)=>{const[r,...n]=a;typeof r=="string"&&r.startsWith("[mobx]")&&t===4?s.trackException({exception:{message:n[0].message,stack:n[0].stack,name:r},severityLevel:4}):s.trackTrace({severityLevel:t,message:r},n),e.apply(console,[r,...n])},qe=e=>{console.log=u(console.log,2,e),console.info=u(console.info,2,e),console.warn=u(console.warn,3,e),console.error=u(console.error,4,e),window.console=console},Qe=()=>{const e=We();window[j.appInsights]=e,window.dispatchEvent(new Event("appInsightsInitialized")),qe(e)},F=async e=>{const t=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map(a=>a.toString(16).padStart(2,"0")).join("")};function Ze(){const{location:e}=window,t=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`;return{authority:O,client_id:T,redirect_uri:`${t}/auth-callback`,response_type:"code",scope:ae,post_logout_redirect_uri:re,monitorSession:!1}}const E=new Q(Ze()),et=e=>{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(t).split("").map(a=>`%${`00${a.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(s)},tt=()=>{localStorage.removeItem(l)},i=()=>{const e=localStorage.getItem(l);return e?JSON.parse(e):null},st=async()=>{const e=i();if(!e)return null;const t=(e.profile.given_name||"")+(e.profile.family_name||"")+e.profile.sub;return await F(t)},K=()=>{const e=i();return e?e.id_token:null},$=(e,t)=>{const s={...t,...e},a=et(e.access_token);return s.profile.sub=a.sub,s.profile.account_number=a.account_number,s.expires_at=a.exp,s.is_federated=a.is_federated,R.setAccount({accountNumber:a.account_number,email:a.email,name:a.name,givenName:a.given_name,familyName:a.family_name,authTime:a.exp,accessToken:e.access_token,idToken:e.id_token}),localStorage.setItem(l,JSON.stringify(s)),s},at=e=>{$(e,null)},rt=()=>{const e=i();return e?e.access_token:null},nt=()=>{const e=i();return e&&e.is_federated!==null&&e.is_federated!==void 0?String(e.is_federated).toLowerCase()==="true":!1},ot=()=>{const e=i();return e!=null&&e.expires_at?e.expires_at>Date.now()/1e3:!1},it=["authenticate","auth-callback","logout"],ct=e=>e.expires_at&&new Date(e.expires_at*1e3),lt=e=>e.expires_at&&new Date(e.expires_at*1e3+ce*60*60*1e3),Y=()=>{const e=i();if(!K())return!0;if(!e.expires_at)return!1;const t=new Date;return navigator.onLine?t>ct(e):t>lt(e)},pt=()=>{const e=window.location.pathname.split("/");return it.includes(e[e.length-1])},ut=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="authenticate"?(E.signinRedirect(),!0):!1},dt=()=>{let e="/";const t=localStorage.getItem(d);t&&(localStorage.removeItem(d),e=t),window.location.href=e},_t=e=>{if(!e.id_token)throw new Error("Missing property:id_token");return e},m=e=>{const t=pt();(!t||e)&&(t||localStorage.setItem(d,window.location.href),window.location.href="/authenticate")},Et=async e=>{const t=`${e.profile.sub}-${e.profile.customer_id}`,s=await F(t);return{...e,profile:{...e.profile,hashed_identifier:s}}},mt=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="auth-callback"?(E.signinRedirectCallback().then(_t).then(Et).then(at).then(dt).catch(m),!0):!1};class ht extends S{render(){return c` <ix-splash-screen></ix-splash-screen> `}}window.customElements.define("splash-screen",ht);var gt=Object.defineProperty,At=(e,t,s)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,h=(e,t,s)=>At(e,typeof t!="symbol"?t+"":t,s);class Ct{constructor(){h(this,"permissions",[]),h(this,"loading",!1),h(this,"getPermissions",async()=>{var t;const s=(t=R)==null?void 0:t.access_token;if(!s)return[];const a=await fetch(`${P}/usermanagement/my-permissions?exclude_parents=false&exclude_siblings=true`,{headers:{Authorization:`Bearer ${s}`}});return a.ok?a.json():[]}),Z(this,{permissions:te,setPermissions:ee})}setPermissions(t){this.permissions=t.reduce((s,a)=>(s[a.permission_name]=a.privilege,s),{})}tryLoadPermissions(){try{this.loading||(this.loading=!0,this.getPermissions().then(t=>{this.setPermissions(t),this.loading=!1}).catch(()=>{this.loading=!1}))}catch(t){this.loading=!1}}clearPermissions(){this.setPermissions([])}hasExternalUserCreate(){return this.hasPermission(U,p)||this.hasPermission(H,p)}hasConnectivityCreate(){return this.hasPermission(_,p)}hasPrivilegeLevel(t,s){const a=[fe,p,Pe,Ne],r=a.findIndex(o=>o===t),n=a.findIndex(o=>o===s);return r>=n}hasPermission(t,s){let a=!1;const r=se(this.permissions),n=Object.keys(r).find(o=>o===t);return n&&(a=this.hasPrivilegeLevel(s,r[n])),a}}const g=new Ct;class A extends S{constructor(){super(),this._currentView="splash",this.appLoaded=!1,this._onPopState=()=>{Y()&&m()};try{Qe()}catch(s){console.error("Telemetry initialization failed:",s)}const t=window.location.pathname;if(t==="/session-expired"){this._currentView="session-expired",this._loadView("session-expired");return}if(t==="/logout"){this._currentView="logout",this._loadView("logout");return}if(ut()||mt()){this._currentView="splash";return}if(Y()){this._currentView="splash",m();return}this._currentView="app",this._loadApp()}async _loadView(t){t==="session-expired"?await import("@digital-realty/ix-app-logic/views/session-expiry.js"):t==="logout"&&await import("./logout-DwQJmwiJ.js")}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this._onPopState)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._onPopState)}_getAccountNumber(){var t,s,a;return(a=new URLSearchParams(window.location.search).get("selected_account_number"))!=null?a:(s=(t=i())==null?void 0:t.profile)==null?void 0:s.account_number}_isESGAccessOnly(t,s){const a=t.filter(r=>r.account_number===s);return a.length===1&&a[0].permission_name==="ESG Reporting"}_applyMfeOverrides(t,s){const a={};for(const r of Object.keys(t))a[r]={...t[r],enabled:s.includes(r)};return a}async _loadApp(){var t;const{authedUser:s}=await import("@digital-realty/ix-account-switcher");await s.hydrateStore();const[a,r]=await Promise.allSettled([fetch("./registered-apps.json").then(J=>J.json()),g.getPermissions()]);if(a.status==="rejected"){console.error("Failed to load registered apps:",a.reason);return}if(r.status==="rejected"){console.error("Failed to load permissions:",r.reason);return}const{registeredApps:n}=a.value,o=r.value,z=(t=this._getAccountNumber())!=null?t:"",X=this._isESGAccessOnly(o,z)?this._applyMfeOverrides(n,["ui-esg"]):n;window.registeredApps=Object.freeze(X),g.setPermissions(o),await import("./app-Bjkcm8M8.js"),this.appLoaded=!0}render(){switch(this._currentView){case"session-expired":return c`<ix-session-expiry></ix-session-expiry>`;case"logout":return c`<ixp-logout></ixp-logout>`;case"app":return this.appLoaded?c`<global-portal-app appTitle="DLR" showDrawer></global-portal-app>`:c`<splash-screen></splash-screen>`;default:return c`<splash-screen></splash-screen>`}}}C([I({type:String})],A.prototype,"_currentView",void 0),C([I({type:Boolean})],A.prototype,"appLoaded",void 0),window.customElements.define("gp-bootstrap",A);export{N as A,Se as B,we as C,ye as D,oe as E,Te as F,ie as G,Re as H,He as I,Ae as J,ue as K,O as L,L as M,le as N,je as O,pe as P,Ie as Q,Xe as R,Be as S,Ce as T,H as U,ge as a,st as b,tt as c,rt as d,i as e,$ as f,K as g,T as h,P as i,Fe as j,nt as k,Ke as l,Ge as m,Ue as n,U as o,g as p,ve as q,b as r,Je as s,f as t,E as u,w as v,j as w,ot as x,l as y,Oe as z};
1
+ import{__decorate as C}from"tslib";import{LitElement as S,html as c}from"lit";import{property as I}from"lit/decorators.js";import{ApplicationInsights as W,DistributedTracingModes as q}from"@microsoft/applicationinsights-web";import{authedUser as R}from"@digital-realty/ix-account-switcher";import{UserManager as Q}from"oidc-client-ts";import"@digital-realty/ix-app-logic/views/splash-screen.js";import{makeObservable as Z,action as ee,observable as te,toJS as se}from"mobx";const T="planbglobalportalui",ae="openid service_management_profile offline_access user_management_profile resource.notifications resource.usermanagementapi resource.servicemanagementapi resource.inventory resource.cookieconsents",O="https://login.t1.globalportal.online",re="https://inxn-t1-gpappshell.azureedge.net/?logout=true",P="https://api.t1.globalportal.online",ne="",oe="local",ie="GTM-KXBK8CQP",ce=24,le="https://api.t1.globalportal.online",pe="ui-ticket-updates-accessAt,ix-grid-,-grid,app-state,releaseNotesViewed",ue="https://gp-dev.digitalrealty.com/standalone/knowledge-base",_e="https://portal.interxion.com",de="https://inxn-a1-gpappshell.azureedge.net",Ee="https://demo.servicefabric.digitalrealty.com/",me="https://marketplaceportal.com/group/telx-new-portal",he="gp-tst.digitalrealty.com",ge=!1,Ae="/cookie-policy",Ce="1.0",Se={strict:"strictly_necessary",performance:"performance",targeting:"targeting"},Ie={accept:"accept_all",reject:"reject_all",custom:"customize",no:"no_sell"},N="globalportalappshell",l="user-authentication",_="redirect-url",Re="ui-cookie-policy",Te="date-format",f="Global Portal",w="Service Fabric",L="Marketplace Portal",b="EMEA Customer Portal",Oe="x-auth",[p,Pe,Ne,fe]=["CREATE","UPDATE","READ","APPROVE"],[y,d,we,Le,v,be,wt,ye,U,Lt,ve,Ue,k,x,M,bt,ke,yt,xe,D,V,G,Me,B,De,Ve,H,Ge]=["Cloud Connect","Cross Connect","Custom Roles","Customer Care","Customer Equipment Connection (CEC)","Customer Support","DCIM-enabled location data","Default System Roles","External User","Facility Access","Internal Roles","Internal User","Internet Exchange","Intra-Customer Connectivity (ICC)","IP Bandwidth","OSP Access","Permanent Badge","PoP/POE Room Access","Remote Hands","Remote Hands Package","Service Exchange Cloud Router","Service Exchange Port","Shipping & Receiving","Space & Power","Trouble Ticket","Visitor Access","User","ESG Reporting"],Be=[xe,be,De,Me,Ve,ke,Le],He=[d,y,v,k,x,M,D,V,G,B],je=[d,y,v,k,x,M,D,V,G,B],Fe={LocationChanged:"location-changed",VaadinRouterLocationChanged:"vaadin-router-location-changed",CreateUserClicked:"create-user-clicked"},Ke={SessionStorage:{HasOutstandingChanges:"hasOutstandingChanges"}},[$e,Ye,ze]=["Security","DCIM","Planned Site Maintenance"],Xe=[$e,Ye,ze],Je=[{label:f,href:de,selected:!0},{label:L,href:me},{label:b,href:_e},{label:w,href:Ee,target:"_blank"}],j={appInsights:"_appInsights"},We=()=>{const e=new W({config:{instrumentationKey:ne,enableCorsCorrelation:!0,enableRequestHeaderTracking:!0,enableResponseHeaderTracking:!0,enableAutoRouteTracking:!0,autoTrackPageVisitTime:!0,enableAjaxErrorStatusText:!0,enableAjaxPerfTracking:!0,enableUnhandledPromiseRejectionTracking:!0,isCookieUseDisabled:!0,distributedTracingMode:q.AI_AND_W3C,correlationHeaderExcludedDomains:he.split(",").map(t=>t.trim())}});return e.loadAppInsights(),e.trackPageView(),e.addTelemetryInitializer(t=>{t.tags["ai.cloud.role"]=N}),e},u=(e,t,s)=>(...a)=>{const[r,...n]=a;typeof r=="string"&&r.startsWith("[mobx]")&&t===4?s.trackException({exception:{message:n[0].message,stack:n[0].stack,name:r},severityLevel:4}):s.trackTrace({severityLevel:t,message:r},n),e.apply(console,[r,...n])},qe=e=>{console.log=u(console.log,2,e),console.info=u(console.info,2,e),console.warn=u(console.warn,3,e),console.error=u(console.error,4,e),window.console=console},Qe=()=>{const e=We();window[j.appInsights]=e,window.dispatchEvent(new Event("appInsightsInitialized")),qe(e)},F=async e=>{const t=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map(a=>a.toString(16).padStart(2,"0")).join("")};function Ze(){const{location:e}=window,t=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`;return{authority:O,client_id:T,redirect_uri:`${t}/auth-callback`,response_type:"code",scope:ae,post_logout_redirect_uri:re,monitorSession:!1}}const E=new Q(Ze()),et=e=>{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(t).split("").map(a=>`%${`00${a.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(s)},tt=()=>{localStorage.removeItem(l)},i=()=>{const e=localStorage.getItem(l);return e?JSON.parse(e):null},st=async()=>{const e=i();if(!e)return null;const t=(e.profile.given_name||"")+(e.profile.family_name||"")+e.profile.sub;return await F(t)},K=()=>{const e=i();return e?e.id_token:null},$=(e,t)=>{const s={...t,...e},a=et(e.access_token);return s.profile.sub=a.sub,s.profile.account_number=a.account_number,s.expires_at=a.exp,s.is_federated=a.is_federated,R.setAccount({accountNumber:a.account_number,email:a.email,name:a.name,givenName:a.given_name,familyName:a.family_name,authTime:a.exp,accessToken:e.access_token,idToken:e.id_token}),localStorage.setItem(l,JSON.stringify(s)),s},at=e=>{$(e,null)},rt=()=>{const e=i();return e?e.access_token:null},nt=()=>{const e=i();return e&&e.is_federated!==null&&e.is_federated!==void 0?String(e.is_federated).toLowerCase()==="true":!1},ot=()=>{const e=i();return e!=null&&e.expires_at?e.expires_at>Date.now()/1e3:!1},it=["authenticate","auth-callback","logout"],ct=e=>e.expires_at&&new Date(e.expires_at*1e3),lt=e=>e.expires_at&&new Date(e.expires_at*1e3+ce*60*60*1e3),Y=()=>{const e=i();if(!K())return!0;if(!e.expires_at)return!1;const t=new Date;return navigator.onLine?t>ct(e):t>lt(e)},pt=()=>{const e=window.location.pathname.split("/");return it.includes(e[e.length-1])},ut=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="authenticate"?(E.signinRedirect(),!0):!1},_t=()=>{let e="/";const t=localStorage.getItem(_);t&&(localStorage.removeItem(_),e=t),window.location.href=e},dt=e=>{if(!e.id_token)throw new Error("Missing property:id_token");return e},m=e=>{const t=pt();(!t||e)&&(t||localStorage.setItem(_,window.location.href),window.location.href="/authenticate")},Et=async e=>{const t=`${e.profile.sub}-${e.profile.customer_id}`,s=await F(t);return{...e,profile:{...e.profile,hashed_identifier:s}}},mt=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="auth-callback"?(E.signinRedirectCallback().then(dt).then(Et).then(at).then(_t).catch(m),!0):!1};class ht extends S{render(){return c` <ix-splash-screen></ix-splash-screen> `}}window.customElements.define("splash-screen",ht);var gt=Object.defineProperty,At=(e,t,s)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,h=(e,t,s)=>At(e,typeof t!="symbol"?t+"":t,s);class Ct{constructor(){h(this,"permissions",[]),h(this,"loading",!1),h(this,"getPermissions",async()=>{var t;const s=(t=R)==null?void 0:t.access_token;if(!s)return[];const a=await fetch(`${P}/usermanagement/my-permissions?exclude_parents=false&exclude_siblings=true`,{headers:{Authorization:`Bearer ${s}`}});return a.ok?a.json():[]}),Z(this,{permissions:te,setPermissions:ee})}setPermissions(t){this.permissions=t.reduce((s,a)=>(s[a.permission_name]=a.privilege,s),{})}tryLoadPermissions(){try{this.loading||(this.loading=!0,this.getPermissions().then(t=>{this.setPermissions(t),this.loading=!1}).catch(()=>{this.loading=!1}))}catch(t){this.loading=!1}}clearPermissions(){this.setPermissions([])}hasExternalUserCreate(){return this.hasPermission(U,p)||this.hasPermission(H,p)}hasConnectivityCreate(){return this.hasPermission(d,p)}hasPrivilegeLevel(t,s){const a=[fe,p,Pe,Ne],r=a.findIndex(o=>o===t),n=a.findIndex(o=>o===s);return r>=n}hasPermission(t,s){let a=!1;const r=se(this.permissions),n=Object.keys(r).find(o=>o===t);return n&&(a=this.hasPrivilegeLevel(s,r[n])),a}}const g=new Ct;class A extends S{constructor(){super(),this._currentView="splash",this.appLoaded=!1,this._onPopState=()=>{Y()&&m()};try{Qe()}catch(s){console.error("Telemetry initialization failed:",s)}const t=window.location.pathname;if(t==="/session-expired"){this._currentView="session-expired",this._loadView("session-expired");return}if(t==="/logout"){this._currentView="logout",this._loadView("logout");return}if(ut()||mt()){this._currentView="splash";return}if(Y()){this._currentView="splash",m();return}this._currentView="app",this._loadApp()}async _loadView(t){t==="session-expired"?await import("@digital-realty/ix-app-logic/views/session-expiry.js"):t==="logout"&&await import("./logout-DwQJmwiJ.js")}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this._onPopState)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._onPopState)}_getAccountNumber(){var t,s,a;return(a=new URLSearchParams(window.location.search).get("selected_account_number"))!=null?a:(s=(t=i())==null?void 0:t.profile)==null?void 0:s.account_number}_isESGAccessOnly(t,s){const a=t.filter(r=>r.account_number===s);return a.length===1&&a[0].permission_name==="ESG Reporting"}_applyMfeOverrides(t,s){const a={};for(const r of Object.keys(t))a[r]={...t[r],enabled:s.includes(r)};return a}async _loadApp(){var t;const{authedUser:s}=await import("@digital-realty/ix-account-switcher");await s.hydrateStore();const[a,r]=await Promise.allSettled([fetch("./registered-apps.json").then(J=>J.json()),g.getPermissions()]);if(a.status==="rejected"){console.error("Failed to load registered apps:",a.reason);return}if(r.status==="rejected"){console.error("Failed to load permissions:",r.reason);return}const{registeredApps:n}=a.value,o=r.value,z=(t=this._getAccountNumber())!=null?t:"",X=this._isESGAccessOnly(o,z)?this._applyMfeOverrides(n,["ui-esg"]):n;window.registeredApps=Object.freeze(X),g.setPermissions(o),await import("./app-Bjkcm8M8.js"),this.appLoaded=!0}render(){switch(this._currentView){case"session-expired":return c`<ix-session-expiry></ix-session-expiry>`;case"logout":return c`<ixp-logout></ixp-logout>`;case"app":return this.appLoaded?c`<global-portal-app appTitle="DLR" showDrawer></global-portal-app>`:c`<splash-screen></splash-screen>`;default:return c`<splash-screen></splash-screen>`}}}C([I({type:String})],A.prototype,"_currentView",void 0),C([I({type:Boolean})],A.prototype,"appLoaded",void 0),window.customElements.define("gp-bootstrap",A);export{N as A,Se as B,we as C,ye as D,oe as E,Te as F,ie as G,Re as H,He as I,Ae as J,ue as K,O as L,L as M,le as N,je as O,pe as P,Ie as Q,Xe as R,Be as S,Ce as T,H as U,ge as a,st as b,tt as c,rt as d,i as e,$ as f,K as g,T as h,P as i,Fe as j,nt as k,Ke as l,Ge as m,Ue as n,U as o,g as p,ve as q,b as r,Je as s,f as t,E as u,w as v,j as w,ot as x,l as y,Oe as z};
@@ -1,8 +1,8 @@
1
1
  var GLOBAL_PORTAL_CLIENT_ID = "planbglobalportalui";
2
2
  var GLOBAL_PORTAL_UI_SCOPES = "openid service_management_profile offline_access user_management_profile resource.notifications resource.usermanagementapi resource.servicemanagementapi resource.inventory resource.cookieconsents";
3
- var LOGIN_AUTHORITY = "https://login-a1.digitalrealty.com";
4
- var GLOBAL_PLAN_B_SHELL_POST_LOGOUT_REDIRECT_URL = "https://inxn-a1-gpappshell.azureedge.net/?logout=true";
5
- var API_BASE_URL = "https://api-a1.interxion.com";
3
+ var LOGIN_AUTHORITY = "https://login.t1.globalportal.online";
4
+ var GLOBAL_PLAN_B_SHELL_POST_LOGOUT_REDIRECT_URL = "https://inxn-t1-gpappshell.azureedge.net/?logout=true";
5
+ var API_BASE_URL = "https://api.t1.globalportal.online";
6
6
  var DISABLE_REDIRECTS = false;
7
7
  var IS_LOGIN_ENABLED = true;
8
8
  var IS_APP_DISABLED = false;
@@ -12,7 +12,7 @@ var APPLICATION_INSIGHTS_CORRELATION_HEADER_DOMAINS = "*.localtest.me";
12
12
  var GPV2_GTM_CONTAINER_ID = "GTM-KXBK8CQP";
13
13
  var GTM_CONTAINER_ID = "GTM-NBZ9MM2";
14
14
  var TOKEN_VALID_FOR_OFFLINE_USE_POST_EXPIRY_IN_HOURS = 24;
15
- var NOTIFICATION_API_BASE_URL = "https://api-a1.interxion.com";
15
+ var NOTIFICATION_API_BASE_URL = "https://api.t1.globalportal.online";
16
16
  var PRESERVE_LOCAL_STORAGE_ITEMS = "ui-ticket-updates-accessAt,ix-grid-,-grid,app-state,releaseNotesViewed";
17
17
  var KNOWLEDGE_BASE_IFRAME_URL = "https://gp-dev.digitalrealty.com/standalone/knowledge-base";
18
18
  var PORTAL_INTERXION = "https://portal.interxion.com";
@@ -20,7 +20,7 @@ var PORTAL_GLOBAL_PORTAL = "https://inxn-a1-gpappshell.azureedge.net";
20
20
  var PORTAL_SCALE = "https://portal.digitalrealty.com";
21
21
  var PORTAL_SERVICE_FABRIC = "https://demo.servicefabric.digitalrealty.com/";
22
22
  var PORTAL_MARKETPLACE_PORTAL = "https://marketplaceportal.com/group/telx-new-portal";
23
- var APPLICATION_INSIGHTS_CORRELATION_HEADER_EXCLUDED_DOMAINS = "gp-uat.digitalrealty.com";
23
+ var APPLICATION_INSIGHTS_CORRELATION_HEADER_EXCLUDED_DOMAINS = "gp-tst.digitalrealty.com";
24
24
  var IS_INTRAPORTAL_NAVBAR_ENABLED = false;
25
25
  var PREVENT_LOGOUT_ON_TIMEOUT = false;
26
26
  var IS_INVENTORY_MANAGEMENT_ENABLED = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-realty/app-shell",
3
- "version": "11.0.0",
3
+ "version": "11.0.1-rc.1",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  "DLR"