@digital-realty/app-shell 11.0.15-dependabot.527668 → 11.0.15

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.
@@ -1,4 +1,4 @@
1
- import{MobxLitElement as M}from"@adobe/lit-mobx";import{authedUser as ft}from"@digital-realty/ix-account-switcher";import{TimeoutController as wt}from"@digital-realty/ix-app-logic/controllers/timeout-controller.js";import{appState as g}from"@digital-realty/ix-app-logic/state/app-state.js";import"@digital-realty/ix-app-logic/views/app-versions.js";import"@digital-realty/ix-app-logic/views/auto-logout-dialog.js";import"@digital-realty/ix-app-logic/views/cookie-banner.js";import"@digital-realty/ix-app-logic/views/cookie-dialog.js";import"@digital-realty/ix-app-logic/views/cookie-policy.js";import"@digital-realty/ix-intraportal-nav/ix-intraportal-nav.js";import{__decorate as p}from"tslib";import{svg as x,css as I,html as c,nothing as b,LitElement as P}from"lit";import{property as k,customElement as z,state as $,query as J}from"lit/decorators.js";import ne from"date-fns/differenceInDays.js";import me from"date-fns/differenceInHours.js";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-drawer/ix-drawer.js";import"@digital-realty/ix-icon";import"@material/web/icon/icon.js";import{makeAutoObservable as bt,reaction as vt}from"mobx";import{makePersistable as xt,isHydrated as yt,hydrateStore as Ct,clearPersistedStore as _t,getPersistedStore as kt}from"mobx-persist-store";import Ne from"date-fns/parse.js";import At from"date-fns/subDays.js";import Z from"date-fns/format.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-icon/ix-icon.js";import Et from"date-fns/formatDistance.js";import"@digital-realty/ix-toast/ix-message-toast.js";import{unsafeSVG as St}from"lit/directives/unsafe-svg.js";import"@digital-realty/ix-switch/ix-switch.js";import"@digital-realty/ix-date/ix-date.js";import"@digital-realty/ix-divider/ix-divider.js";import{computePosition as Te}from"@floating-ui/dom";import{classMap as $t}from"lit/directives/class-map.js";import"@digital-realty/ix-toast/ix-toasters.js";import"@digital-realty/ix-tooltip/ix-tooltip.js";import{_resetQualtricsDataLayer as Nt,_setQualtricsDataLayer as Tt}from"@digital-realty/ix-app-logic/helpers/qualtrics-data-layer.js";import{baseTheme as Mt}from"@digital-realty/theme";import{g as L,b as Lt,d as Me,e as Le,f as Q,h as It,A as D,D as Ie,i as De,j as Dt,p as Y,k as re,S as Ht,I as Vt,O as Rt,R as Pt,E as zt,l as Ot,m as Ft,U as Zt,n as Bt,o as Ut,C as jt,q as ge,M as se,r as fe,G as le,s as we,t as be,v as qt,a as Gt,w as Wt,x as He,y as Kt,z as X,B as Jt,F as B}from"./bootstrap.js";import"@digital-realty/ix-menu/ix-menu-anchor.js";import"@digital-realty/ix-menu/ix-menu.js";import"@digital-realty/ix-account-switcher/ix-account-switcher.js";import{ifDefined as Qt}from"lit/directives/if-defined.js";import"@digital-realty/ix-app-logic/views/manual-logout-dialog.js";import"@microsoft/applicationinsights-web";import"oidc-client-ts";import"@digital-realty/ix-app-logic/views/splash-screen.js";const Yt=x`<svg viewBox="0 0 24 24"><path d="M3 9H7V5H3V9ZM7 14H3V10H7V14ZM7 19H3V15H7V19ZM20 14H8V10H20V14ZM8 19H20V15H8V19ZM8 9V5H20V9H8Z"/></svg>`,Ve=x`<svg viewBox="0 0 24 24"><path d="M20 0C17.791 0 16 1.791 16 4C16 6.857 20 11 20 11C20 11 24 6.857 24 4C24 1.791 22.209 0 20 0ZM12 2C6.486 2 2 6.486 2 12C2 17.514 6.486 22 12 22C17.514 22 22 17.514 22 12C22 11.93 21.9912 11.862 21.9902 11.793C21.7532 12.059 21.5575 12.2677 21.4395 12.3887L19.6504 14.3047C19.4484 14.9657 19.1695 15.5919 18.8145 16.1699C18.4985 15.4819 17.806 15 17 15H16V13C16 12.447 15.552 12 15 12H9V10H10C10.552 10 11 9.553 11 9V7.02344L13.0156 7.00781C13.5986 7.00381 14.1175 6.74289 14.4805 6.33789C14.3145 5.89389 14.1875 5.445 14.1035 5L9.99219 5.03125C9.44319 5.03525 9 5.48225 9 6.03125V8H8C7.448 8 7 8.447 7 9V10.1855L4.98047 8.16797C6.34047 5.68697 8.977 4 12 4H14C14 3.397 14.0908 2.81658 14.2578 2.26758C13.5308 2.09858 12.777 2 12 2ZM20 2.57031C20.789 2.57031 21.4297 3.211 21.4297 4C21.4297 4.789 20.789 5.42969 20 5.42969C19.211 5.42969 18.5703 4.789 18.5703 4C18.5703 3.211 19.211 2.57031 20 2.57031ZM4.20703 10.2207L9 15.0137V16C9 17.103 9.897 18 11 18V19.9316C7.06 19.4366 4 16.072 4 12C4 11.388 4.07603 10.7947 4.20703 10.2207ZM10.7793 14H14V16C14 16.553 14.448 17 15 17H17V18.2344C15.875 19.1384 14.502 19.7417 13 19.9297V17C13 16.447 12.552 16 12 16H11V14.5996C11 14.3776 10.9123 14.174 10.7793 14Z"/></svg>`,Re=x`<svg viewBox="0 0 24 24"><path d="M6 2C4.90575 2 4 2.90575 4 4V20C4 21.0943 4.90575 22 6 22H11V20H6V4H13V9H18V13H20V8L14 2H6ZM12 11V14H15C15 12.343 13.641 11.031 12 11ZM11 12C9.343 12 8 13.343 8 15C8 16.657 9.343 18 11 18C12.657 18 13.969 16.641 14 15H11V12ZM16 15V21H13C13 22.654 14.346 24 16 24H21C22.645 24 24 22.645 24 21V15H16ZM18 17H22V21C22 21.565 21.565 22 21 22C20.449 22 20 21.552 20 21H18V17Z"/></svg>`,Xt=x`<svg viewBox="0 0 24 24"><path d="M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4ZM8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8Z" /></svg>`;x`<svg viewBox="0 0 24 24"><path d="M11 12C13.21 12 15 10.21 15 8C15 5.79 13.21 4 11 4C8.79 4 7 5.79 7 8C7 10.21 8.79 12 11 12ZM9 17L12 14.06C11.61 14.02 11.32 14 11 14C8.33 14 3 15.34 3 18V20H12L9 17ZM12 17L15.47 20.5L22 13.91L20.6 12.5L15.47 17.67L13.4 15.59L12 17Z"/></svg>`;const ei=x`<svg viewbox="0 0 24 24"><path d="M 3,6 V 8 H 21 V 6 Z M 3,18 H 9 V 16 H 3 Z M 15,13 H 3 v -2 h 12 z" /><rect x="8" y="0.5" width="16" height="16" rx="8" /><path d="M 14.5,10.585 12.415,8.50001 11.705,9.20501 14.5,12 l 6,-5.99999 -0.705,-0.705 z" style="fill:#ffffff" /></svg>`,A=I` *, ::before, ::after {
1
+ import{MobxLitElement as M}from"@adobe/lit-mobx";import{authedUser as ft}from"@digital-realty/ix-account-switcher";import{TimeoutController as wt}from"@digital-realty/ix-app-logic/controllers/timeout-controller.js";import{appState as g}from"@digital-realty/ix-app-logic/state/app-state.js";import"@digital-realty/ix-app-logic/views/app-versions.js";import"@digital-realty/ix-app-logic/views/auto-logout-dialog.js";import"@digital-realty/ix-app-logic/views/cookie-banner.js";import"@digital-realty/ix-app-logic/views/cookie-dialog.js";import"@digital-realty/ix-app-logic/views/cookie-policy.js";import"@digital-realty/ix-intraportal-nav/ix-intraportal-nav.js";import{__decorate as p}from"tslib";import{svg as x,css as I,html as c,nothing as b,LitElement as P}from"lit";import{property as k,customElement as z,state as $,query as J}from"lit/decorators.js";import ne from"date-fns/differenceInDays.js";import me from"date-fns/differenceInHours.js";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-drawer/ix-drawer.js";import"@digital-realty/ix-icon";import"@material/web/icon/icon.js";import{makeAutoObservable as bt,reaction as vt}from"mobx";import{makePersistable as xt,isHydrated as yt,hydrateStore as Ct,clearPersistedStore as _t,getPersistedStore as kt}from"mobx-persist-store";import Ne from"date-fns/parse.js";import At from"date-fns/subDays.js";import Z from"date-fns/format.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-icon/ix-icon.js";import Et from"date-fns/formatDistance.js";import"@digital-realty/ix-toast/ix-message-toast.js";import{unsafeSVG as St}from"lit/directives/unsafe-svg.js";import"@digital-realty/ix-switch/ix-switch.js";import"@digital-realty/ix-date/ix-date.js";import"@digital-realty/ix-divider/ix-divider.js";import{computePosition as Te}from"@floating-ui/dom";import{classMap as $t}from"lit/directives/class-map.js";import"@digital-realty/ix-toast/ix-toasters.js";import"@digital-realty/ix-tooltip/ix-tooltip.js";import{_resetQualtricsDataLayer as Nt,_setQualtricsDataLayer as Tt}from"@digital-realty/ix-app-logic/helpers/qualtrics-data-layer.js";import{baseTheme as Mt}from"@digital-realty/theme";import{p as L,q as Lt,u as Me,o as Le,t as Q,z as It,A as D,f as Ie,s as De,x as Dt,y as Y,b as re,m as Ht,j as Vt,O as Rt,R as Pt,g as zt,i as Ot,h as Ft,U as Zt,D as Bt,I as Ut,c as jt,E as ge,M as se,k as fe,G as le,S as we,v as be,a as qt,r as Gt,w as Wt,l as He,F as Kt,d as X,C as Jt,e as B}from"./bootstrap.js";import"@digital-realty/ix-menu/ix-menu-anchor.js";import"@digital-realty/ix-menu/ix-menu.js";import"@digital-realty/ix-account-switcher/ix-account-switcher.js";import{ifDefined as Qt}from"lit/directives/if-defined.js";import"@digital-realty/ix-app-logic/views/manual-logout-dialog.js";import"@microsoft/applicationinsights-web";import"oidc-client-ts";import"@digital-realty/ix-app-logic/views/splash-screen.js";const Yt=x`<svg viewBox="0 0 24 24"><path d="M3 9H7V5H3V9ZM7 14H3V10H7V14ZM7 19H3V15H7V19ZM20 14H8V10H20V14ZM8 19H20V15H8V19ZM8 9V5H20V9H8Z"/></svg>`,Ve=x`<svg viewBox="0 0 24 24"><path d="M20 0C17.791 0 16 1.791 16 4C16 6.857 20 11 20 11C20 11 24 6.857 24 4C24 1.791 22.209 0 20 0ZM12 2C6.486 2 2 6.486 2 12C2 17.514 6.486 22 12 22C17.514 22 22 17.514 22 12C22 11.93 21.9912 11.862 21.9902 11.793C21.7532 12.059 21.5575 12.2677 21.4395 12.3887L19.6504 14.3047C19.4484 14.9657 19.1695 15.5919 18.8145 16.1699C18.4985 15.4819 17.806 15 17 15H16V13C16 12.447 15.552 12 15 12H9V10H10C10.552 10 11 9.553 11 9V7.02344L13.0156 7.00781C13.5986 7.00381 14.1175 6.74289 14.4805 6.33789C14.3145 5.89389 14.1875 5.445 14.1035 5L9.99219 5.03125C9.44319 5.03525 9 5.48225 9 6.03125V8H8C7.448 8 7 8.447 7 9V10.1855L4.98047 8.16797C6.34047 5.68697 8.977 4 12 4H14C14 3.397 14.0908 2.81658 14.2578 2.26758C13.5308 2.09858 12.777 2 12 2ZM20 2.57031C20.789 2.57031 21.4297 3.211 21.4297 4C21.4297 4.789 20.789 5.42969 20 5.42969C19.211 5.42969 18.5703 4.789 18.5703 4C18.5703 3.211 19.211 2.57031 20 2.57031ZM4.20703 10.2207L9 15.0137V16C9 17.103 9.897 18 11 18V19.9316C7.06 19.4366 4 16.072 4 12C4 11.388 4.07603 10.7947 4.20703 10.2207ZM10.7793 14H14V16C14 16.553 14.448 17 15 17H17V18.2344C15.875 19.1384 14.502 19.7417 13 19.9297V17C13 16.447 12.552 16 12 16H11V14.5996C11 14.3776 10.9123 14.174 10.7793 14Z"/></svg>`,Re=x`<svg viewBox="0 0 24 24"><path d="M6 2C4.90575 2 4 2.90575 4 4V20C4 21.0943 4.90575 22 6 22H11V20H6V4H13V9H18V13H20V8L14 2H6ZM12 11V14H15C15 12.343 13.641 11.031 12 11ZM11 12C9.343 12 8 13.343 8 15C8 16.657 9.343 18 11 18C12.657 18 13.969 16.641 14 15H11V12ZM16 15V21H13C13 22.654 14.346 24 16 24H21C22.645 24 24 22.645 24 21V15H16ZM18 17H22V21C22 21.565 21.565 22 21 22C20.449 22 20 21.552 20 21H18V17Z"/></svg>`,Xt=x`<svg viewBox="0 0 24 24"><path d="M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4ZM8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8Z" /></svg>`;x`<svg viewBox="0 0 24 24"><path d="M11 12C13.21 12 15 10.21 15 8C15 5.79 13.21 4 11 4C8.79 4 7 5.79 7 8C7 10.21 8.79 12 11 12ZM9 17L12 14.06C11.61 14.02 11.32 14 11 14C8.33 14 3 15.34 3 18V20H12L9 17ZM12 17L15.47 20.5L22 13.91L20.6 12.5L15.47 17.67L13.4 15.59L12 17Z"/></svg>`;const ei=x`<svg viewbox="0 0 24 24"><path d="M 3,6 V 8 H 21 V 6 Z M 3,18 H 9 V 16 H 3 Z M 15,13 H 3 v -2 h 12 z" /><rect x="8" y="0.5" width="16" height="16" rx="8" /><path d="M 14.5,10.585 12.415,8.50001 11.705,9.20501 14.5,12 l 6,-5.99999 -0.705,-0.705 z" style="fill:#ffffff" /></svg>`,A=I` *, ::before, ::after {
2
2
  --tw-border-spacing-x: 0;
3
3
  --tw-border-spacing-y: 0;
4
4
  --tw-translate-x: 0;
package/dist/bootstrap.js CHANGED
@@ -1 +1 @@
1
- import{__decorate as C}from"tslib";import{LitElement as A,html as c}from"lit";import{property as w}from"lit/decorators.js";import{ApplicationInsights as W,DistributedTracingModes as X}from"@microsoft/applicationinsights-web";import{authedUser as P}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";function a(){var e;const t=(e=window.gpConfig)==null?void 0:e["app-shell"];if(!t)throw new Error("App-shell config not loaded. Ensure config.json is fetched before app bootstrap.");return t}const{PortalInterxion:oe,PortalGlobalPortal:re,PortalServiceFabric:ne,PortalMarketplacePortal:ae}=a(),ie={strict:"strictly_necessary",performance:"performance",targeting:"targeting"},le={accept:"accept_all",reject:"reject_all",custom:"customize",no:"no_sell"},I="globalportalappshell",p="user-authentication",h="redirect-url",ce="ui-cookie-policy",pe="date-format",R="Global Portal",T="Service Fabric",b="Marketplace Portal",N="EMEA Customer Portal",v="x-auth",[u,ue,de,he]=["CREATE","UPDATE","READ","APPROVE"],[O,g,ge,me,y,_e,mt,Ee,k,_t,Se,fe,L,x,U,Et,Ce,St,Ae,D,M,V,we,G,Pe,Ie,j,Re]=["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"],Te=[Ae,_e,Pe,we,Ie,Ce,me],be=[g,O,y,L,x,U,D,M,V,G],Ne=[g,O,y,L,x,U,D,M,V,G],ve={LocationChanged:"location-changed",VaadinRouterLocationChanged:"vaadin-router-location-changed",CreateUserClicked:"create-user-clicked"},H={SessionStorage:{HasOutstandingChanges:"hasOutstandingChanges",ShowLastLoginPopup:"showLastLoginPopup"}},[Oe,ye,ke]=["Security","DCIM","Planned Site Maintenance"],Le=[Oe,ye,ke],xe=[{label:R,href:re,selected:!0},{label:b,href:ae},{label:N,href:oe},{label:T,href:ne,target:"_blank"}],$={appInsights:"_appInsights"},Ue=()=>{const{ApplicationInsightsInstrumentationKey:e,ApplicationInsightsCorrelationHeaderExcludedDomains:t}=a(),s=new W({config:{instrumentationKey:e,enableCorsCorrelation:!0,enableRequestHeaderTracking:!0,enableResponseHeaderTracking:!0,enableAutoRouteTracking:!0,autoTrackPageVisitTime:!0,enableAjaxErrorStatusText:!0,enableAjaxPerfTracking:!0,enableUnhandledPromiseRejectionTracking:!0,isCookieUseDisabled:!0,distributedTracingMode:X.AI_AND_W3C,correlationHeaderExcludedDomains:t.split(",").map(o=>o.trim())}});return s.loadAppInsights(),s.trackPageView(),s.addTelemetryInitializer(o=>{o.tags["ai.cloud.role"]=I}),s},d=(e,t,s)=>(...o)=>{const[r,...n]=o;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])},De=e=>{console.log=d(console.log,2,e),console.info=d(console.info,2,e),console.warn=d(console.warn,3,e),console.error=d(console.error,4,e),window.console=console},Me=()=>{const e=Ue();window[$.appInsights]=e,window.dispatchEvent(new Event("appInsightsInitialized")),De(e)},B=async e=>{const t=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map(o=>o.toString(16).padStart(2,"0")).join("")};function Ve(){const{location:e}=window,t=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`,{LoginAuthority:s,GlobalPortalClientId:o,GlobalPortalUIScopes:r,GlobalPlanBShellPostLogoutRedirectUrl:n}=a();return{authority:s,client_id:o,redirect_uri:`${t}/auth-callback`,response_type:"code",scope:r,post_logout_redirect_uri:n,monitorSession:!1}}const m=new Q(Ve()),Ge=e=>{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(t).split("").map(o=>`%${`00${o.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(s)},je=()=>{localStorage.removeItem(p)},i=()=>{const e=localStorage.getItem(p);return e?JSON.parse(e):null},He=()=>{var e;const t=localStorage.getItem(v);return t?(e=JSON.parse(t))==null?void 0:e.email:null},$e=async()=>{const e=i();if(!e)return null;const t=(e.profile.given_name||"")+(e.profile.family_name||"")+e.profile.sub;return await B(t)},F=()=>{const e=i();return e?e.id_token:null},K=(e,t)=>{const s={...t,...e},o=Ge(e.access_token);return s.profile.sub=o.sub,s.profile.account_number=o.account_number,s.expires_at=o.exp,s.is_federated=o.is_federated,o.previous_login_date&&(s.profile.previous_login_date=o.previous_login_date),P.setAccount({accountNumber:o.account_number,email:o.email,name:o.name,givenName:o.given_name,familyName:o.family_name,authTime:o.exp,accessToken:e.access_token,idToken:e.id_token}),localStorage.setItem(p,JSON.stringify(s)),s},Be=e=>{K(e,null)},Fe=()=>{const e=i();return e?e.access_token:null},Ke=()=>{const e=i();return e&&e.is_federated!==null&&e.is_federated!==void 0?String(e.is_federated).toLowerCase()==="true":!1},ze=()=>{const e=i();return e!=null&&e.expires_at?e.expires_at>Date.now()/1e3:!1},Je=()=>{var e;const t=i();return((e=t==null?void 0:t.profile)==null?void 0:e.previous_login_date)||null},Ye=["authenticate","auth-callback","logout"],qe=e=>e.expires_at&&new Date(e.expires_at*1e3),We=e=>e.expires_at&&new Date(e.expires_at*1e3+a().TokenValidForOfflineUsePostExpiryInHours*60*60*1e3),z=()=>{if(!a().IsLoginEnabled)return!1;const e=i();if(!F())return!0;if(!e.expires_at)return!1;const t=new Date;return navigator.onLine?t>qe(e):t>We(e)},Xe=()=>{const e=window.location.pathname.split("/");return Ye.includes(e[e.length-1])},Qe=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="authenticate"?(a().IsLoginEnabled?m.signinRedirect():window.location.href="/",!0):!1},Ze=()=>{let e="/";const t=localStorage.getItem(h);t&&(localStorage.removeItem(h),e=t),sessionStorage.setItem(H.SessionStorage.ShowLastLoginPopup,"true"),window.location.href=e},et=e=>{if(!e.id_token)throw new Error("Missing property:id_token");return e},_=e=>{const t=Xe();(!t||e)&&(t||localStorage.setItem(h,window.location.href),window.location.href="/authenticate")},tt=async e=>{const t=`${e.profile.sub}-${e.profile.customer_id}`,s=await B(t);return{...e,profile:{...e.profile,hashed_identifier:s}}},st=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="auth-callback"?(m.signinRedirectCallback().then(et).then(tt).then(Be).then(Ze).catch(_),!0):!1};class ot extends A{render(){return c` <ix-splash-screen></ix-splash-screen> `}}window.customElements.define("splash-screen",ot);var rt=Object.defineProperty,nt=(e,t,s)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,E=(e,t,s)=>nt(e,typeof t!="symbol"?t+"":t,s);class at{constructor(){E(this,"permissions",[]),E(this,"loading",!1),E(this,"getPermissions",async()=>{var t;const s=(t=P)==null?void 0:t.access_token;if(!s)return[];const{ApiBaseUrl:o}=a(),r=await fetch(`${o}/usermanagement/my-permissions?exclude_parents=false&exclude_siblings=true`,{headers:{Authorization:`Bearer ${s}`}});return r.ok?r.json():[]}),Z(this,{permissions:te,setPermissions:ee})}setPermissions(t){this.permissions=t.reduce((s,o)=>(s[o.permission_name]=o.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(k,u)||this.hasPermission(j,u)}hasConnectivityCreate(){return this.hasPermission(g,u)}hasPrivilegeLevel(t,s){const o=[he,u,ue,de],r=o.findIndex(l=>l===t),n=o.findIndex(l=>l===s);return r>=n}hasPermission(t,s){let o=!1;const r=se(this.permissions),n=Object.keys(r).find(l=>l===t);return n&&(o=this.hasPrivilegeLevel(s,r[n])),o}}const S=new at;class f extends A{constructor(){super(),this._currentView="splash",this.appLoaded=!1,this._onPopState=()=>{a().IsLoginEnabled&&z()&&_()};try{Me()}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(Qe()||st()){this._currentView="splash";return}if(z()){this._currentView="splash",_();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-CEMELcLl.js")}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this._onPopState)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._onPopState)}_getAccountNumber(){var t,s,o;return(o=new URLSearchParams(window.location.search).get("selected_account_number"))!=null?o:(s=(t=i())==null?void 0:t.profile)==null?void 0:s.account_number}_isESGAccessOnly(t,s){const o=t.filter(r=>r.account_number===s);return o.length===1&&o[0].permission_name==="ESG Reporting"}_applyMfeOverrides(t,s){const o={};for(const r of Object.keys(t))o[r]={...t[r],enabled:s.includes(r)};return o}async _loadApp(){var t;const{authedUser:s}=await import("@digital-realty/ix-account-switcher");await s.hydrateStore();const[o,r]=await Promise.allSettled([fetch("./registered-apps.json").then(q=>q.json()),S.getPermissions()]);if(o.status==="rejected"){console.error("Failed to load registered apps:",o.reason);return}if(r.status==="rejected"){console.error("Failed to load permissions:",r.reason);return}const{registeredApps:n}=o.value,l=r.value,J=(t=this._getAccountNumber())!=null?t:"",Y=this._isESGAccessOnly(l,J)?this._applyMfeOverrides(n,["ui-esg"]):n;window.registeredApps=Object.freeze(Y),S.setPermissions(l),await import("./app-Cv9jcCDz.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([w({type:String})],f.prototype,"_currentView",void 0),C([w({type:Boolean})],f.prototype,"appLoaded",void 0),window.customElements.define("gp-bootstrap",f);export{ve as A,ce as B,ge as C,pe as D,Re as E,le as F,R as G,be as I,b as M,Ne as O,Le as R,Te as S,j as U,F as a,$e as b,je as c,He as d,Fe as e,i as f,a as g,K as h,Je as i,Ke as j,H as k,fe as l,k as m,Ee as n,Se as o,S as p,N as q,xe as r,T as s,$ as t,m as u,I as v,ze as w,p as x,v as y,ie as z};
1
+ import{__decorate as C}from"tslib";import{LitElement as A,html as c}from"lit";import{property as w}from"lit/decorators.js";import{ApplicationInsights as W,DistributedTracingModes as X}from"@microsoft/applicationinsights-web";import{authedUser as P}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";function a(){var e;const t=(e=window.gpConfig)==null?void 0:e["app-shell"];if(!t)throw new Error("App-shell config not loaded. Ensure config.json is fetched before app bootstrap.");return t}const{PortalInterxion:oe,PortalGlobalPortal:re,PortalServiceFabric:ne,PortalMarketplacePortal:ae}=a(),ie={strict:"strictly_necessary",performance:"performance",targeting:"targeting"},le={accept:"accept_all",reject:"reject_all",custom:"customize",no:"no_sell"},I="globalportalappshell",p="user-authentication",h="redirect-url",ce="ui-cookie-policy",pe="date-format",R="Global Portal",T="Service Fabric",b="Marketplace Portal",N="EMEA Customer Portal",v="x-auth",[u,ue,de,he]=["CREATE","UPDATE","READ","APPROVE"],[O,g,ge,me,y,_e,mt,Ee,k,_t,Se,fe,L,x,U,Et,Ce,St,Ae,D,M,V,we,G,Pe,Ie,j,Re]=["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"],Te=[Ae,_e,Pe,we,Ie,Ce,me],be=[g,O,y,L,x,U,D,M,V,G],Ne=[g,O,y,L,x,U,D,M,V,G],ve={LocationChanged:"location-changed",VaadinRouterLocationChanged:"vaadin-router-location-changed",CreateUserClicked:"create-user-clicked"},H={SessionStorage:{HasOutstandingChanges:"hasOutstandingChanges",ShowLastLoginPopup:"showLastLoginPopup"}},[Oe,ye,ke]=["Security","DCIM","Planned Site Maintenance"],Le=[Oe,ye,ke],xe=[{label:R,href:re,selected:!0},{label:b,href:ae},{label:N,href:oe},{label:T,href:ne,target:"_blank"}],$={appInsights:"_appInsights"},Ue=()=>{const{ApplicationInsightsInstrumentationKey:e,ApplicationInsightsCorrelationHeaderExcludedDomains:t}=a(),s=new W({config:{instrumentationKey:e,enableCorsCorrelation:!0,enableRequestHeaderTracking:!0,enableResponseHeaderTracking:!0,enableAutoRouteTracking:!0,autoTrackPageVisitTime:!0,enableAjaxErrorStatusText:!0,enableAjaxPerfTracking:!0,enableUnhandledPromiseRejectionTracking:!0,isCookieUseDisabled:!0,distributedTracingMode:X.AI_AND_W3C,correlationHeaderExcludedDomains:t.split(",").map(o=>o.trim())}});return s.loadAppInsights(),s.trackPageView(),s.addTelemetryInitializer(o=>{o.tags["ai.cloud.role"]=I}),s},d=(e,t,s)=>(...o)=>{const[r,...n]=o;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])},De=e=>{console.log=d(console.log,2,e),console.info=d(console.info,2,e),console.warn=d(console.warn,3,e),console.error=d(console.error,4,e),window.console=console},Me=()=>{const e=Ue();window[$.appInsights]=e,window.dispatchEvent(new Event("appInsightsInitialized")),De(e)},B=async e=>{const t=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map(o=>o.toString(16).padStart(2,"0")).join("")};function Ve(){const{location:e}=window,t=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`,{LoginAuthority:s,GlobalPortalClientId:o,GlobalPortalUIScopes:r,GlobalPlanBShellPostLogoutRedirectUrl:n}=a();return{authority:s,client_id:o,redirect_uri:`${t}/auth-callback`,response_type:"code",scope:r,post_logout_redirect_uri:n,monitorSession:!1}}const m=new Q(Ve()),Ge=e=>{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(t).split("").map(o=>`%${`00${o.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(s)},je=()=>{localStorage.removeItem(p)},i=()=>{const e=localStorage.getItem(p);return e?JSON.parse(e):null},He=()=>{var e;const t=localStorage.getItem(v);return t?(e=JSON.parse(t))==null?void 0:e.email:null},$e=async()=>{const e=i();if(!e)return null;const t=(e.profile.given_name||"")+(e.profile.family_name||"")+e.profile.sub;return await B(t)},F=()=>{const e=i();return e?e.id_token:null},K=(e,t)=>{const s={...t,...e},o=Ge(e.access_token);return s.profile.sub=o.sub,s.profile.account_number=o.account_number,s.expires_at=o.exp,s.is_federated=o.is_federated,o.previous_login_date&&(s.profile.previous_login_date=o.previous_login_date),P.setAccount({accountNumber:o.account_number,email:o.email,name:o.name,givenName:o.given_name,familyName:o.family_name,authTime:o.exp,accessToken:e.access_token,idToken:e.id_token}),localStorage.setItem(p,JSON.stringify(s)),s},Be=e=>{K(e,null)},Fe=()=>{const e=i();return e?e.access_token:null},Ke=()=>{const e=i();return e&&e.is_federated!==null&&e.is_federated!==void 0?String(e.is_federated).toLowerCase()==="true":!1},ze=()=>{const e=i();return e!=null&&e.expires_at?e.expires_at>Date.now()/1e3:!1},Je=()=>{var e;const t=i();return((e=t==null?void 0:t.profile)==null?void 0:e.previous_login_date)||null},Ye=["authenticate","auth-callback","logout"],qe=e=>e.expires_at&&new Date(e.expires_at*1e3),We=e=>e.expires_at&&new Date(e.expires_at*1e3+a().TokenValidForOfflineUsePostExpiryInHours*60*60*1e3),z=()=>{if(!a().IsLoginEnabled)return!1;const e=i();if(!F())return!0;if(!e.expires_at)return!1;const t=new Date;return navigator.onLine?t>qe(e):t>We(e)},Xe=()=>{const e=window.location.pathname.split("/");return Ye.includes(e[e.length-1])},Qe=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="authenticate"?(a().IsLoginEnabled?m.signinRedirect():window.location.href="/",!0):!1},Ze=()=>{let e="/";const t=localStorage.getItem(h);t&&(localStorage.removeItem(h),e=t),sessionStorage.setItem(H.SessionStorage.ShowLastLoginPopup,"true"),window.location.href=e},et=e=>{if(!e.id_token)throw new Error("Missing property:id_token");return e},_=e=>{const t=Xe();(!t||e)&&(t||localStorage.setItem(h,window.location.href),window.location.href="/authenticate")},tt=async e=>{const t=`${e.profile.sub}-${e.profile.customer_id}`,s=await B(t);return{...e,profile:{...e.profile,hashed_identifier:s}}},st=()=>{const e=window.location.pathname.split("/");return e[e.length-1]==="auth-callback"?(m.signinRedirectCallback().then(et).then(tt).then(Be).then(Ze).catch(_),!0):!1};class ot extends A{render(){return c` <ix-splash-screen></ix-splash-screen> `}}window.customElements.define("splash-screen",ot);var rt=Object.defineProperty,nt=(e,t,s)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,E=(e,t,s)=>nt(e,typeof t!="symbol"?t+"":t,s);class at{constructor(){E(this,"permissions",[]),E(this,"loading",!1),E(this,"getPermissions",async()=>{var t;const s=(t=P)==null?void 0:t.access_token;if(!s)return[];const{ApiBaseUrl:o}=a(),r=await fetch(`${o}/usermanagement/my-permissions?exclude_parents=false&exclude_siblings=true`,{headers:{Authorization:`Bearer ${s}`}});return r.ok?r.json():[]}),Z(this,{permissions:te,setPermissions:ee})}setPermissions(t){this.permissions=t.reduce((s,o)=>(s[o.permission_name]=o.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(k,u)||this.hasPermission(j,u)}hasConnectivityCreate(){return this.hasPermission(g,u)}hasPrivilegeLevel(t,s){const o=[he,u,ue,de],r=o.findIndex(l=>l===t),n=o.findIndex(l=>l===s);return r>=n}hasPermission(t,s){let o=!1;const r=se(this.permissions),n=Object.keys(r).find(l=>l===t);return n&&(o=this.hasPrivilegeLevel(s,r[n])),o}}const S=new at;class f extends A{constructor(){super(),this._currentView="splash",this.appLoaded=!1,this._onPopState=()=>{a().IsLoginEnabled&&z()&&_()};try{Me()}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(Qe()||st()){this._currentView="splash";return}if(z()){this._currentView="splash",_();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-CjljBIWK.js")}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this._onPopState)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._onPopState)}_getAccountNumber(){var t,s,o;return(o=new URLSearchParams(window.location.search).get("selected_account_number"))!=null?o:(s=(t=i())==null?void 0:t.profile)==null?void 0:s.account_number}_isESGAccessOnly(t,s){const o=t.filter(r=>r.account_number===s);return o.length===1&&o[0].permission_name==="ESG Reporting"}_applyMfeOverrides(t,s){const o={};for(const r of Object.keys(t))o[r]={...t[r],enabled:s.includes(r)};return o}async _loadApp(){var t;const{authedUser:s}=await import("@digital-realty/ix-account-switcher");await s.hydrateStore();const[o,r]=await Promise.allSettled([fetch("./registered-apps.json").then(q=>q.json()),S.getPermissions()]);if(o.status==="rejected"){console.error("Failed to load registered apps:",o.reason);return}if(r.status==="rejected"){console.error("Failed to load permissions:",r.reason);return}const{registeredApps:n}=o.value,l=r.value,J=(t=this._getAccountNumber())!=null?t:"",Y=this._isESGAccessOnly(l,J)?this._applyMfeOverrides(n,["ui-esg"]):n;window.registeredApps=Object.freeze(Y),S.setPermissions(l),await import("./app-BSbUMaBZ.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([w({type:String})],f.prototype,"_currentView",void 0),C([w({type:Boolean})],f.prototype,"appLoaded",void 0),window.customElements.define("gp-bootstrap",f);export{ve as A,m as B,ce as C,Ee as D,N as E,v as F,R as G,Se as I,b as M,Ne as O,Le as R,T as S,j as U,I as a,H as b,ge as c,ie as d,le as e,pe as f,Re as g,k as h,fe as i,be as j,xe as k,p as l,Te as m,je as n,Fe as o,a as p,$e as q,F as r,Je as s,i as t,He as u,$ as v,ze as w,Ke as x,S as y,K as z};
@@ -1 +1 @@
1
- import{LitElement as g,html as m}from"lit";import{appState as i}from"@digital-realty/ix-app-logic/state/app-state.js";import{g as u,a as h,u as n,c as d}from"./bootstrap.js";import"tslib";import"lit/decorators.js";import"@microsoft/applicationinsights-web";import"@digital-realty/ix-account-switcher";import"oidc-client-ts";import"@digital-realty/ix-app-logic/views/splash-screen.js";import"mobx";var p=Object.defineProperty,S=(o,e,t)=>e in o?p(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,a=(o,e,t)=>S(o,typeof e!="symbol"?e+"":e,t);class c extends g{constructor(){super(...arguments),a(this,"isIdle",!1),a(this,"clearLocalStorageExcept",e=>{const t=new Set((typeof e=="string"?e.split(","):[]).map(r=>r.trim().toLowerCase())),s=[];Object.keys(window.localStorage).forEach(r=>{Array.from(t).some(l=>r.toLowerCase().includes(l))||s.push(r)}),s.forEach(r=>window.localStorage.removeItem(r))}),a(this,"clearGridSessionStorage",()=>{Object.keys(sessionStorage).filter(e=>e.startsWith("grid-")).forEach(e=>sessionStorage.removeItem(e))}),a(this,"logout",async()=>{const{PreserveLocalStorageItems:e,PreventLogoutOnTimeout:t}=u();i.lastActive=-1,await i.hydrateStore(),await i.getStoredData();const s=h();this.clearState(),this.clearLocalStorageExcept(e),this.clearGridSessionStorage(),sessionStorage.removeItem("accountSelection:lastAll"),sessionStorage.removeItem("accountSelection:lastFiltered"),this.unregisterServiceWorkers().then(async()=>{if(this.isIdle)try{t||await n.signoutSilent(s),window.location.href="/session-expired"}catch(r){window.location.href="/session-expired"}else{if(!s){await n.clearStaleState(),window.location.href="/authenticate";return}n.signoutRedirect(s)}})}),a(this,"unregisterServiceWorkers",async()=>{const e=await navigator.serviceWorker.getRegistrations();for(const t of e)t.unregister()}),a(this,"clearState",()=>{d()})}firstUpdated(){const{searchParams:e}=new URL(document.location.toString());this.isIdle=e.has("isIdle"),this.logout()}render(){return m` <splash-screen></splash-screen> `}}window.customElements.define("ixp-logout",c);export{c as Logout};
1
+ import{LitElement as m,html as g}from"lit";import{appState as i}from"@digital-realty/ix-app-logic/state/app-state.js";import{p as h,r as u,B as n,n as d}from"./bootstrap.js";import"tslib";import"lit/decorators.js";import"@microsoft/applicationinsights-web";import"@digital-realty/ix-account-switcher";import"oidc-client-ts";import"@digital-realty/ix-app-logic/views/splash-screen.js";import"mobx";var p=Object.defineProperty,S=(o,e,t)=>e in o?p(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,a=(o,e,t)=>S(o,typeof e!="symbol"?e+"":e,t);class c extends m{constructor(){super(...arguments),a(this,"isIdle",!1),a(this,"clearLocalStorageExcept",e=>{const t=new Set((typeof e=="string"?e.split(","):[]).map(r=>r.trim().toLowerCase())),s=[];Object.keys(window.localStorage).forEach(r=>{Array.from(t).some(l=>r.toLowerCase().includes(l))||s.push(r)}),s.forEach(r=>window.localStorage.removeItem(r))}),a(this,"clearGridSessionStorage",()=>{Object.keys(sessionStorage).filter(e=>e.startsWith("grid-")).forEach(e=>sessionStorage.removeItem(e))}),a(this,"logout",async()=>{const{PreserveLocalStorageItems:e,PreventLogoutOnTimeout:t}=h();i.lastActive=-1,await i.hydrateStore(),await i.getStoredData();const s=u();this.clearState(),this.clearLocalStorageExcept(e),this.clearGridSessionStorage(),sessionStorage.removeItem("accountSelection:lastAll"),sessionStorage.removeItem("accountSelection:lastFiltered"),this.unregisterServiceWorkers().then(async()=>{if(this.isIdle)try{t||await n.signoutSilent(s),window.location.href="/session-expired"}catch(r){window.location.href="/session-expired"}else{if(!s){await n.clearStaleState(),window.location.href="/authenticate";return}n.signoutRedirect(s)}})}),a(this,"unregisterServiceWorkers",async()=>{const e=await navigator.serviceWorker.getRegistrations();for(const t of e)t.unregister()}),a(this,"clearState",()=>{d()})}firstUpdated(){const{searchParams:e}=new URL(document.location.toString());this.isIdle=e.has("isIdle"),this.logout()}render(){return g` <splash-screen></splash-screen> `}}window.customElements.define("ixp-logout",c);export{c as Logout};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-realty/app-shell",
3
- "version": "11.0.15-dependabot.527668",
3
+ "version": "11.0.15",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  "DLR"
@@ -29,7 +29,7 @@
29
29
  "generate-import-map": "ix-import-map write-import-map --latest-packages=true && node build_scripts/inject-mfe-importmap.cjs",
30
30
  "inject-mfe-importmap": "node build_scripts/inject-mfe-importmap.cjs",
31
31
  "build": "run-s build:step:*",
32
- "build:step:generate": "npm run generate-config && npm run generate-api:notifications && npm run compile-less-to-styles && npm run tailwindcss:build && npm run twlit:build",
32
+ "build:step:generate": "npm run generate-api:notifications && npm run compile-less-to-styles && npm run tailwindcss:build && npm run twlit:build",
33
33
  "build:step:package": "rimraf dist && tsc && rollup -c rollup.config.mjs",
34
34
  "serve:dist": "web-dev-server --config web-dist-server.config.mjs",
35
35
  "ts:watch": "concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"npm run tailwindcss:watch\" \"npm run twlit:watch\"",
@@ -37,10 +37,9 @@
37
37
  "start:pre-serve": "rimraf lib && rollup -c preserve.rollup.config.mjs && tsc",
38
38
  "start:serve": "web-dev-server",
39
39
  "compile-less-to-styles": "rimraf --glob \"src/styles/*.js\" && node build_scripts/compile-less-to-styles.cjs",
40
- "generate-config": "node build_scripts/generate-config.cjs",
41
40
  "serve": "npm run build && prpl-server --root dist",
42
41
  "test": "npm run test:prebuild && web-test-runner --coverage",
43
- "test:prebuild": "rimraf lib && tsc && rollup -c preserve.rollup.config.mjs && npm run compile-less-to-styles && npm run tailwindcss:build && npm run twlit:build && npm run generate-config --use_test_settings=true",
42
+ "test:prebuild": "rimraf lib && tsc && rollup -c preserve.rollup.config.mjs && npm run compile-less-to-styles && npm run tailwindcss:build && npm run twlit:build",
44
43
  "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
45
44
  "lint": "npm run lint:eslint && npm run lint:prettier",
46
45
  "lint:eslint": "eslint --ext .js,.html .",
@@ -86,7 +85,7 @@
86
85
  "@webcomponents/custom-elements": "^1.4.2",
87
86
  "@webcomponents/webcomponentsjs": "^2.4.3",
88
87
  "cross-fetch": "^4.0.0",
89
- "date-fns": "^4.1.0",
88
+ "date-fns": "4.1.0",
90
89
  "http-request-mock": "^1.8.28",
91
90
  "http-status-codes": "^1.4.0",
92
91
  "lit": "^3.1.0",
@@ -106,7 +105,7 @@
106
105
  "redux-persist": "^6.0.0",
107
106
  "toastify-js": "^1.12.0",
108
107
  "tslib": "^2.8.1",
109
- "uuid": "^14.0.0",
108
+ "uuid": "^10.0.0",
110
109
  "validator": "^13.12.0",
111
110
  "workbox-window": "^7.3.0"
112
111
  },
@@ -1,113 +0,0 @@
1
- {
2
- "registeredApps": {
3
- "ui-service-management": {
4
- "path": "/service-management",
5
- "host": "http://localhost:8083",
6
- "blob": "http://localhost:8083",
7
- "entry": "/ui-service-management.js",
8
- "serviceWorker": "",
9
- "enabled": true,
10
- "copyNS": "sm"
11
- },
12
- "ui-user-management": {
13
- "path": "/user-management",
14
- "host": "http://localhost:8082",
15
- "blob": "http://localhost:8082",
16
- "entry": "/ui-user-management.js",
17
- "serviceWorker": "",
18
- "enabled": true,
19
- "copyNS": "um"
20
- },
21
- "ui-knowledge-base": {
22
- "path": "/knowledge-base",
23
- "enabled": true,
24
- "copyNS": "kb"
25
- },
26
- "ui-inventory": {
27
- "path": "/inventory/",
28
- "host": "http://localhost:8089",
29
- "blob": "http://localhost:8089",
30
- "entry": "/ui-inventory.js",
31
- "serviceWorker": "",
32
- "enabled": true,
33
- "copyNS": "inv"
34
- },
35
- "ui-gom": {
36
- "path": [
37
- "/inventory",
38
- "/order-management"
39
- ],
40
- "pathAndQuerystring": [
41
- {
42
- "path": "/inventory",
43
- "mppProcessQueryString": "Inventory"
44
- },
45
- {
46
- "path": "/order-management",
47
- "mppProcessQueryString": "Cross_connect"
48
- }
49
- ],
50
- "host": "http://localhost:8090",
51
- "blob": "http://localhost:8090",
52
- "entry": "/ui-mfe-gom.js",
53
- "enabled": true,
54
- "copyNS": "gom"
55
- },
56
- "ui-sites": {
57
- "path": "/sites/",
58
- "host": "http://localhost:8089",
59
- "blob": "http://localhost:8089",
60
- "entry": "/ui-inventory.js",
61
- "serviceWorker": "",
62
- "enabled": true,
63
- "copyNS": "sit"
64
- },
65
- "ui-dcim-charts": {
66
- "path": "/charts",
67
- "host": "http://localhost:8084",
68
- "blob": "http://localhost:8084",
69
- "entry": "/ui-mfe-dcim.js",
70
- "serviceWorker": "",
71
- "enabled": true,
72
- "copyNS": "dc"
73
- },
74
- "ui-dcim-reports": {
75
- "path": "/reports",
76
- "host": "http://localhost:8085",
77
- "blob": "http://localhost:8085",
78
- "entry": "/ui-mfe-reports.js",
79
- "serviceWorker": "",
80
- "enabled": true,
81
- "copyNS": "dr"
82
- },
83
- "ui-launchpad": {
84
- "path": "/lp",
85
- "host": "http://localhost:8087",
86
- "blob": "http://localhost:8087",
87
- "entry": "/ui-launchpad.js",
88
- "enabled": true,
89
- "copyNS": "lp"
90
- },
91
- "ui-my-account": {
92
- "path": "/my-account",
93
- "host": "http://localhost:8088",
94
- "blob": "http://localhost:8088",
95
- "entry": "/ui-my-account.js",
96
- "enabled": true,
97
- "copyNS": "acc"
98
- },
99
- "ui-cookie-policy": {
100
- "path": "/cookie-policy",
101
- "enabled": true,
102
- "copyNS": "cp"
103
- },
104
- "ui-esg": {
105
- "path": "/esg-reporting",
106
- "host": "http://localhost:8091",
107
- "blob": "http://localhost:8091",
108
- "entry": "/ui-mfe-esg.js",
109
- "enabled": true,
110
- "copyNS": "esg"
111
- }
112
- }
113
- }
@@ -1,32 +0,0 @@
1
- var GLOBAL_PORTAL_CLIENT_ID = "planbglobalportalui";
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";
6
- var DISABLE_REDIRECTS = false;
7
- var IS_LOGIN_ENABLED = true;
8
- var IS_APP_DISABLED = false;
9
- var APPLICATION_INSIGHTS_INSTRUMENTATION_KEY = "";
10
- var ENVIRONMENT_TYPE = "local";
11
- var APPLICATION_INSIGHTS_CORRELATION_HEADER_DOMAINS = "*.localtest.me";
12
- var GPV2_GTM_CONTAINER_ID = "GTM-KXBK8CQP";
13
- var GTM_CONTAINER_ID = "GTM-NBZ9MM2";
14
- var TOKEN_VALID_FOR_OFFLINE_USE_POST_EXPIRY_IN_HOURS = 24;
15
- var NOTIFICATION_API_BASE_URL = "https://api-a1.interxion.com";
16
- var PRESERVE_LOCAL_STORAGE_ITEMS = "ui-ticket-updates-accessAt,ix-grid-,-grid,app-state,releaseNotesViewed";
17
- var KNOWLEDGE_BASE_IFRAME_URL = "https://gp-dev.digitalrealty.com/standalone/knowledge-base";
18
- var PORTAL_INTERXION = "https://portal.interxion.com";
19
- var PORTAL_GLOBAL_PORTAL = "https://inxn-a1-gpappshell.azureedge.net";
20
- var PORTAL_SCALE = "https://portal.digitalrealty.com";
21
- var PORTAL_SERVICE_FABRIC = "https://demo.servicefabric.digitalrealty.com/";
22
- var PORTAL_MARKETPLACE_PORTAL = "https://marketplaceportal.com/group/telx-new-portal";
23
- var APPLICATION_INSIGHTS_CORRELATION_HEADER_EXCLUDED_DOMAINS = "gp-uat.digitalrealty.com";
24
- var IS_INTRAPORTAL_NAVBAR_ENABLED = false;
25
- var PREVENT_LOGOUT_ON_TIMEOUT = false;
26
- var IS_INVENTORY_MANAGEMENT_ENABLED = true;
27
- var GPV2_COOKIE_POLICY_URL = "/cookie-policy";
28
- var ENABLE_COOKIE_POLICY = true;
29
- var ENABLE_QUALTRICS = false;
30
- var COOKIE_POLICY_VERSION = "1.0";
31
- var ANALYTICS_EMAIL_BLACKLIST = "*digitalrealty.com,gpportaltests-b@yahoo.com";
32
- var TRANSLATION_DEBUG = true;
@@ -1 +0,0 @@
1
- const registeredServiceWorkers = [];