dash-button-web 0.0.23-beta.7 → 0.0.23-beta.9

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.
@@ -2,7 +2,7 @@ const NAMESPACE = 'web-compnont';
2
2
  const BUILD = /* web-compnont */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.45.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.45.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
 
8
8
 
@@ -164,7 +164,7 @@ var queueDomReads = [];
164
164
  var queueDomWrites = [];
165
165
  var scheduleFlush = () => {
166
166
  var _a;
167
- return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
167
+ return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);
168
168
  };
169
169
  var queueTask = (queue, write) => (cb) => {
170
170
  queue.push(cb);
@@ -519,7 +519,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
519
519
  const oldClasses = parseClassList(oldValue);
520
520
  let newClasses = parseClassList(newValue);
521
521
  {
522
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
522
+ let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));
523
+ classList.remove(...removedClasses);
523
524
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
524
525
  }
525
526
  } else if (memberName === "style") {
@@ -1159,6 +1160,19 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1159
1160
  }
1160
1161
  }
1161
1162
  };
1163
+ var replayPendingSetterValues = (hostRef, cmpMeta) => {
1164
+ var _a;
1165
+ const instance = hostRef.$lazyInstance$;
1166
+ if (!instance) return;
1167
+ for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {
1168
+ if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {
1169
+ const pendingValue = hostRef.$instanceValues$.get(memberName);
1170
+ if (instance[memberName] !== pendingValue) {
1171
+ instance[memberName] = pendingValue;
1172
+ }
1173
+ }
1174
+ }
1175
+ };
1162
1176
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1163
1177
  var _a, _b;
1164
1178
  const prototype = Cstr.prototype;
@@ -1188,9 +1202,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1188
1202
  return getValue(this, memberName);
1189
1203
  }
1190
1204
  const ref = getHostRef(this);
1191
- const instance = ref ? ref.$lazyInstance$ : prototype;
1192
- if (!instance) return;
1193
- return instance[memberName];
1205
+ if (!ref) return prototype[memberName];
1206
+ return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);
1194
1207
  }
1195
1208
  },
1196
1209
  configurable: true,
@@ -1220,36 +1233,20 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1220
1233
  {
1221
1234
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1222
1235
  setValue(this, memberName, newValue, cmpMeta);
1223
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1224
- ref.$fetchedCbList$.push(() => {
1225
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1226
- ref.$lazyInstance$[memberName] = newValue;
1227
- }
1228
- });
1229
- }
1230
1236
  return;
1231
1237
  }
1232
1238
  const parsedValue = parsePropertyValue(
1233
1239
  newValue,
1234
1240
  memberFlags);
1235
- const setterSetVal = (val) => {
1241
+ if (ref.$lazyInstance$) {
1236
1242
  const currentValue = ref.$lazyInstance$[memberName];
1237
1243
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1238
1244
  ref.$instanceValues$.set(memberName, currentValue);
1239
1245
  }
1240
- ref.$lazyInstance$[memberName] = val;
1246
+ ref.$lazyInstance$[memberName] = parsedValue;
1241
1247
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1242
- };
1243
- if (ref.$lazyInstance$) {
1244
- setterSetVal(parsedValue);
1245
1248
  } else {
1246
1249
  ref.$instanceValues$.set(memberName, parsedValue);
1247
- ref.$fetchedCbList$.push(() => {
1248
- const pendingValue = ref.$instanceValues$.get(memberName);
1249
- if (ref.$lazyInstance$[memberName] !== pendingValue) {
1250
- setterSetVal(pendingValue);
1251
- }
1252
- });
1253
1250
  }
1254
1251
  }
1255
1252
  }
@@ -1289,7 +1286,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1289
1286
  const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1290
1287
  const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1291
1288
  if (isBooleanTarget) {
1292
- newValue = newValue === null || newValue === "false" ? false : true;
1289
+ newValue = newValue === null || newValue === "false" && true ? false : true;
1293
1290
  }
1294
1291
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1295
1292
  if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
@@ -1358,6 +1355,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1358
1355
  }
1359
1356
  {
1360
1357
  hostRef.$flags$ &= -9 /* isConstructingInstance */;
1358
+ replayPendingSetterValues(hostRef, cmpMeta);
1361
1359
  }
1362
1360
  {
1363
1361
  hostRef.$flags$ |= 128 /* isWatchReady */;
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-p0GxQx6x.js';
2
- export { s as setNonce } from './index-p0GxQx6x.js';
1
+ import { b as bootstrapLazy } from './index-NLvZO6-E.js';
2
+ export { s as setNonce } from './index-NLvZO6-E.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"showNotification":[4,"show-notification"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
8
+ return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"showNotification":[4,"show-notification"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32],"collapsedModuleSection":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"loadingNew":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"notificationType":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32],"timeoutId":[32],"cancelRequest":[32],"cancelCountRequest":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-p0GxQx6x.js';
2
- export { s as setNonce } from './index-p0GxQx6x.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-NLvZO6-E.js';
2
+ export { s as setNonce } from './index-NLvZO6-E.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.45.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.45.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -17,5 +17,5 @@ var patchBrowser = () => {
17
17
 
18
18
  patchBrowser().then(async (options) => {
19
19
  await globalScripts();
20
- return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"showNotification":[4,"show-notification"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
20
+ return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"showNotification":[4,"show-notification"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32],"collapsedModuleSection":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"loadingNew":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"notificationType":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32],"timeoutId":[32],"cancelRequest":[32],"cancelCountRequest":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
21
21
  });
@@ -1,6 +1,12 @@
1
1
  import { AppConfig } from '../../services/config';
2
2
  import { MenuLink } from '../../services/menu';
3
3
  import 'ice-notification-component';
4
+ interface ModuleLinkItem {
5
+ name: string;
6
+ url?: string;
7
+ icon?: string;
8
+ disabled: boolean;
9
+ }
4
10
  export declare class DashButtonComponent {
5
11
  el: any;
6
12
  showPostLoginText: boolean;
@@ -12,8 +18,6 @@ export declare class DashButtonComponent {
12
18
  showUnauthorizedModal: boolean;
13
19
  primaryColor: string;
14
20
  accentColor: string;
15
- showNotification: boolean;
16
- notificationPosition: "left" | "right";
17
21
  keycloak: any;
18
22
  isAuth: boolean;
19
23
  givenUserName: string;
@@ -25,7 +29,17 @@ export declare class DashButtonComponent {
25
29
  localMenuLinks: MenuLink[];
26
30
  organizationUrl: any;
27
31
  isRestricted: boolean;
32
+ showNotification: boolean;
33
+ notificationPosition: 'left' | 'right';
34
+ collapsedModuleSection: 'global' | 'local' | null;
35
+ private gridLocalListEl?;
36
+ private listLocalScrollEl?;
37
+ toggleGlobalModules: () => void;
38
+ toggleLocalModules: () => void;
39
+ handleDropdownMouseEnter: () => void;
40
+ componentDidRender(): void;
28
41
  componentDidLoad(): void;
42
+ private capToRowPeek;
29
43
  disconnectedCallback(): void;
30
44
  handleNotificationLinkClick: (event: MouseEvent) => void;
31
45
  componentWillLoad(): Promise<void>;
@@ -34,8 +48,12 @@ export declare class DashButtonComponent {
34
48
  validateAppAccessByUrl(): void;
35
49
  login(): void;
36
50
  logout(): void;
37
- showModal(): void;
38
- closeModal(): void;
51
+ get moduleLinks(): ModuleLinkItem[];
52
+ private isContainerizationModule;
53
+ get containerizationModule(): ModuleLinkItem | undefined;
54
+ get visibleModuleLinks(): ModuleLinkItem[];
55
+ renderSectionLabel(icon: string, label: string, count: number, collapsed: boolean, onToggle: () => void, shortcut?: ModuleLinkItem): any;
39
56
  renderNotificationComponent(): any;
40
57
  render(): any;
41
58
  }
59
+ export {};
@@ -16,9 +16,9 @@ export namespace Components {
16
16
  */
17
17
  "authMethod": string;
18
18
  /**
19
- * @default "left"
19
+ * @default 'left'
20
20
  */
21
- "notificationPosition": "left" | "right";
21
+ "notificationPosition": 'left' | 'right';
22
22
  /**
23
23
  * @default "https://productlicensemanager-zdzw.cloud.zdzw-project.com"
24
24
  */
@@ -74,9 +74,9 @@ declare namespace LocalJSX {
74
74
  */
75
75
  "authMethod"?: string;
76
76
  /**
77
- * @default "left"
77
+ * @default 'left'
78
78
  */
79
- "notificationPosition"?: "left" | "right";
79
+ "notificationPosition"?: 'left' | 'right';
80
80
  /**
81
81
  * @default "https://productlicensemanager-zdzw.cloud.zdzw-project.com"
82
82
  */
@@ -119,7 +119,7 @@ declare namespace LocalJSX {
119
119
  "primaryColor": string;
120
120
  "accentColor": string;
121
121
  "showNotification": boolean;
122
- "notificationPosition": "left" | "right";
122
+ "notificationPosition": 'left' | 'right';
123
123
  }
124
124
 
125
125
  interface IntrinsicElements {
@@ -1,6 +1,7 @@
1
1
  export interface InstalledChartMetadata {
2
2
  category?: string;
3
3
  frontendUrlPrefix?: string;
4
+ icon?: string;
4
5
  }
5
6
  export interface InstalledChart {
6
7
  id: number;
@@ -18,6 +19,7 @@ export interface MenuLink {
18
19
  name: string;
19
20
  url: string;
20
21
  category?: string;
22
+ icon?: string;
21
23
  }
22
24
  declare class MenuService {
23
25
  getMenuConfig(url: any): Promise<PaginatedInstalledChartsResponse>;
@@ -0,0 +1,3 @@
1
+ function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],i=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},o=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},i=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,c=new Map,u=new Map,f="undefined"!=typeof window?window:{},a={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},d=t=>Promise.resolve(t),p=(()=>{try{return!!f.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),h=!!p&&(()=>!!f.document&&Object.getOwnPropertyDescriptor(f.document.adoptedStyleSheets,"length").writable)(),m=!1,v=[],b=[],y=()=>{var t;return(null==(t=f.document)?void 0:t.hidden)?setTimeout(g,16):a.raf(g)},w=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&a.u?j(g):y())},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},g=()=>{$(v),$(b),(m=v.length>0)&&y()},j=t=>d().then(t),O=w(b,!0);function S(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(h?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}function k(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var M,E=new WeakMap,C=t=>"sc-"+t.h,x=t=>"object"==(t=typeof t)||"function"===t,N=(t,e,...n)=>{let o=null,l=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)if(o=e[n],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(i="function"!=typeof t&&!x(o))o+="";else if("function"!=typeof t&&void 0===o.u){s("Invalid vNode child");continue}i&&r?c[c.length-1].m+=o:c.push(i?T(null,o):o),r=i}};if(u(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const f=T(t,null);return f.v=e,c.length>0&&(f.$=c),f.j=l,f},T=(t,e)=>({u:0,O:t,m:null!=e?e:null,S:null,$:null,v:null,j:null}),L={},R=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},D=(t,e)=>null==t||x(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,P=t=>{var e;return null==(e=o(t))?void 0:e.$hostElement$},A=(t,e)=>{const n=P(t);return{emit:t=>H(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},H=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},U=(t,e,n,l,s,r)=>{if(n===l)return;let c=i(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,o=V(n);let i=V(l);{let t=o.filter((t=>t&&!i.includes(t)));e.remove(...t),e.add(...i.filter((t=>t&&!o.includes(t))))}}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&nt(l,t);else if(c||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let i;{const e=o(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(i=t[1])}}return i||(i=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const o=x(l);if((c||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]===o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?(!1!==l||""===t.getAttribute(e)||4&r&&!z(e))&&t.removeAttribute(e):(!c||4&r||s)&&!o&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}else if(e="-"===e[2]?e.slice(3):i(f,u)?u.slice(2):u[2]+e.slice(3),n||l){const o=e.endsWith(q);e=e.replace(B,""),n&&a.rel(t,e,n,o),l&&a.ael(t,e,l,o)}},W=new Set(["draggable","contenteditable","spellcheck"]),z=t=>W.has(t)||t.startsWith("aria-"),F=/\s/,V=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),q="Capture",B=RegExp(q+"$"),G=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.v||{},i=e.v||{};for(const t of I(Object.keys(l)))t in i||U(o,t,l[t],void 0,n,e.u);for(const t of I(Object.keys(i)))U(o,t,l[t],i[t],n,e.u)};function I(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Y=!1,Z=[],_=[],J=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.m)l=o.S=f.document.createTextNode(o.m);else{if(Y||(Y="svg"===o.O),!f.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=f.document.createElementNS(Y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),Y&&"foreignObject"===o.O&&(Y=!1),G(null,o,Y),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=J(t,o,s),i&&e.appendChild(i)}"svg"===o.O?Y=!1:"foreignObject"===l.tagName&&(Y=!0)}return l["s-hn"]=M,l},K=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=J(null,n,l),s&&(o[l].S=s,ot(r,s,e)))},Q=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;et(e),t&&t.remove()}}},X=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),tt=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O,r=e.m;null==r?(G(t,e,Y="svg"===s||"foreignObject"!==s&&Y),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],p=e[a],h=o.length-1,m=o[0],v=o[h];const b="template"===n.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(X(d,m,l))tt(d,m,l),d=e[++r],m=o[++c];else if(X(p,v,l))tt(p,v,l),p=e[--a],v=o[--h];else if(X(d,v,l))tt(d,v,l),ot(b,d.S,p.S.nextSibling),d=e[++r],v=o[--h];else if(X(p,m,l))tt(p,m,l),ot(b,p.S,d.S),p=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(s=e[u],s.O!==m.O?i=J(e&&e[c],n,c):(tt(s,m,l),e[u]=void 0,i=s.S),m=o[++c]):(i=J(e&&e[c],n,c),m=o[++c]),i&&ot(d.S.parentNode,i,d.S)}r>a?K(t,null==o[h+1]?null:o[h+1].S,n,o,c,h):c>h&&Q(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.m&&(o.textContent=""),K(o,null,e,i,0,i.length-1)):!n&&null!==l&&Q(l,0,l.length-1),Y&&"svg"===s&&(Y=!1)):t.m!==r&&(o.data=r)},et=t=>{t.v&&t.v.ref&&Z.push((()=>t.v.ref(null))),t.$&&t.$.map(et)},nt=(t,e)=>{_.push((()=>t(e)))},ot=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),lt=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},it=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);lt(t,t.M);const n=()=>st(t,e);if(!e)return O(n);queueMicrotask((()=>{n()}))},st=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.C.length&&t.C.forEach((t=>t(n))),l=pt(o,"componentWillLoad",void 0,n)):l=pt(o,"componentWillUpdate",void 0,n),l=rt(l,(()=>pt(o,"componentWillRender",void 0,n))),rt(l,(()=>ut(t,o,e)))},rt=(t,e)=>ct(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ct=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ut=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=C(e),s=u.get(i);if(!f.document)return i;if(t=11===t.nodeType?t:f.document,s)if("string"==typeof s){let l,r=E.get(t=t.head||t);if(r||E.set(t,r=new Set),!r.has(i)){l=f.document.createElement("style"),l.textContent=s;const c=null!=(n=a.N)?n:k(f.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(p){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),h?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=E.get(t);if(e||E.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}h?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ft(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>at(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},ft=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.T||T(null,null),i=(t=>t&&t.O===L)(e)?e:N(null,null,e);if(M=o.tagName,n&&i.v)for(const t of Object.keys(i.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.v[t]=o[t]);i.O=null,i.u|=4,t.T=i,i.S=l.S=o.shadowRoot||o,tt(l,i,n),Z.forEach((t=>t())),Z.length=0,_.forEach((t=>t())),_.length=0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},at=t=>{const e=t.$hostElement$,n=t.i,o=t.M;pt(n,"componentDidRender",void 0,e),64&t.u?pt(n,"componentDidUpdate",void 0,e):(t.u|=64,ht(e),pt(n,"componentDidLoad",void 0,e),t.L(e),o||dt()),t.k&&(t.k(),t.k=void 0),512&t.u&&j((()=>it(t,!1))),t.u&=-517},dt=()=>{j((()=>H(f,"appload",{detail:{namespace:"web-compnont"}})))},pt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ht=t=>t.classList.add("hydrated"),mt=(t,e)=>o(t).l.get(e),vt=(t,e,n,l)=>{const i=o(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.l.get(e),u=i.u,f=i.i;if(n=D(n,l.t[e][0]),!(8&u&&void 0!==c||n===c||Number.isNaN(c)&&Number.isNaN(n))){if(i.l.set(e,n),l.R){const t=l.R[e];t&&t.map((t=>{try{const[[o,l]]=Object.entries(t);(128&u||1&l)&&(f?f[o](n,c,e):i.C.push((()=>{i.i[o](n,c,e)})))}catch(t){s(t,r)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,c,e)&&!(16&u))return;16&u||it(i,!1)}}},bt=(e,n,l)=>{var i,s;const r=e.prototype;{e.watchers&&!n.R&&(n.R=R(e.watchers)),e.deserializers&&!n.D&&(n.D=e.deserializers),e.serializers&&!n.P&&(n.P=e.serializers);const c=Object.entries(null!=(i=n.t)?i:{});if(c.map((([e,[i]])=>{if(31&i||2&l&&32&i){const{get:s,set:c}=t(r,e)||{};s&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&l||!s)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return mt(this,e);const t=o(this);return t?t.i?t.i[e]:mt(this,e):r[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const s=o(this);if(s){if(c)return void 0===(32&i?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(t=s.l.get(e)),c.call(this,D(t,i)),void vt(this,e,t=32&i?this[e]:s.$hostElement$[e],n);{if(!(1&l&&4096&n.t[e][0]))return void vt(this,e,t,n);const o=D(t,i);if(s.i){const t=s.i[e];!s.l.get(e)&&t&&s.l.set(e,t),s.i[e]=o,vt(this,e,s.i[e],n)}else s.l.set(e,o)}}}})}})),1&l){const t=new Map;r.attributeChangedCallback=function(e,l,i){a.jmp((()=>{var s;const u=t.get(e),f=o(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&i!==l){const o=f.i,r=null==(s=n.R)?void 0:s[e];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&t||1&r)&&o[s].call(o,i,l,e)}))}return}const a=c.find((([t])=>t===u)),d=4&(a?a[1][0]:0),p=d&&null===i&&void 0===this[u];d&&(i=null!==i&&"false"!==i);const h=Object.getOwnPropertyDescriptor(r,u);p||i==this[u]||h.get&&!h.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.R)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([e,n])=>{const o=n[1]||e;return t.set(o,e),o}))]))}}return e},yt=async(t,e,n)=>{var o;let l;try{if(!(32&e.u)){if(e.u|=32,e.u&=-1025,n.A){const i=((t,e)=>{var n;const o=t.h.replace(/-/g,"_"),l=t.A;if(!l)return;const i=r.get(l);if(i)return i[o];const u=null!=(n=c.get(l))?n:0,f=[u>0?"s-retry="+u:"",""].filter(Boolean).join("&");
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
3
+ return import(`./${l}.entry.js${f?"?"+f:""}`).then((t=>(c.delete(l),r.set(l,t),t[o])),(t=>{c.set(l,u+1),s(t,e.$hostElement$)}))})(n,e);if(i&&"then"in i){const t=()=>{};l=await i,t()}else l=i;if(!l)throw e.u&=-33,e.H=(null!=(o=e.H)?o:0)+1,e.H<3&&(e.u|=1024),Error(`Constructor for "${n.h}#${e.U}" was not found`);l.isProxied||(n.R=R(l.watchers),n.P=l.serializers,n.D=l.deserializers,bt(l,n,2),l.isProxied=!0);const u=()=>{};e.u|=8;try{new l(e)}catch(e){s(e,t)}e.u&=-9,((t,e)=>{var n;const o=t.i;if(o)for(const[l,[i]]of Object.entries(null!=(n=e.t)?n:{}))if(4096&i&&t.l.has(l)){const e=t.l.get(l);o[l]!==e&&(o[l]=e)}})(e,n),e.u|=128,u(),wt(e.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=C(n);if(!u.has(e)){const o=()=>{};((t,e,n)=>{let o=u.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,u.set(t,o)})(e,t,!!(1&n.u)),o()}}}const i=e.M,f=()=>it(e,!0);i&&i["s-rc"]?i["s-rc"].push(f):f()}catch(n){s(n,t),e.k&&(e.k(),e.k=void 0),!e.L||1024&e.u||e.L(t)}},wt=(t,e)=>{pt(t,"connectedCallback",void 0,e)},$t=(t,e)=>{pt(t,"disconnectedCallback",void 0,e||t)},gt=(t,e={})=>{var n;if(!f.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],i=e.exclude||[],s=f.customElements,r=f.document.head,c=r.querySelector("meta[charset]"),u=f.document.createElement("style"),d=[];let p,h=!0;if(Object.assign(a,e),a.p=new URL(e.resourcesUrl||"./",f.document.baseURI).href,t.map((t=>{t[1].map((e=>{var n,r;const c={u:e[0],h:e[1],t:e[2],W:e[3]};c.t=e[2],c.R=R(e[4]),c.P=null!=(n=e[5])?n:{},c.D=null!=(r=e[6])?r:{};const u=c.h,f=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,F:new Map};n.V=new Promise((t=>n.L=t)),t["s-p"]=[],t["s-rc"]=[],n.C=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else S.call(t,c)}connectedCallback(){o(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),p&&(clearTimeout(p),p=null),h?d.push(this):a.jmp((()=>(t=>{if(!(1&a.u)){const e=o(t);if(!e)return;const n=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?wt(e.i,t):1024&e.u?setTimeout((()=>yt(t,e,n)),1e3):(null==e?void 0:e.V)&&e.V.then((()=>wt(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){lt(e,e.M=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),yt(t,e,n)}l()}})(this))))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.u)){const e=o(t);(null==e?void 0:e.i)?$t(e.i,t):(null==e?void 0:e.V)&&e.V.then((()=>$t(e.i,t)))}E.has(t)&&E.delete(t),t.shadowRoot&&E.has(t.shadowRoot)&&E.delete(t.shadowRoot)})(this))),j((()=>{var t;const e=o(this);if(!e)return;const n=d.findIndex((t=>t===this));n>-1&&d.splice(n,1),(null==(t=null==e?void 0:e.T)?void 0:t.S)instanceof Node&&!e.T.S.isConnected&&delete e.T.S}))}componentOnReady(){var t;return null==(t=o(this))?void 0:t.V}};c.A=t[0],i.includes(u)||s.get(u)||(l.push(u),s.define(u,bt(f,c,1)))}))})),l.length>0&&(u.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=a.N)?n:k(f.document);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,c?c.nextSibling:r.firstChild)}h=!1,d.length?d.map((t=>t.connectedCallback())):a.jmp((()=>p=setTimeout(dt,30)))},jt=t=>a.N=t;export{gt as b,A as c,P as g,N as h,d as p,l as r,jt as s}