@3t-transform/threeteeui 0.1.8 → 0.1.19

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.
Files changed (109) hide show
  1. package/dist/cjs/{index-8ba406f6.js → index-b8a62ede.js} +80 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +24 -24
  4. package/dist/cjs/tttx-filter.cjs.entry.js +162 -0
  5. package/dist/cjs/tttx-form.cjs.entry.js +363 -363
  6. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  7. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +62 -58
  8. package/dist/cjs/tttx-list.cjs.entry.js +43 -43
  9. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +60 -60
  11. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  12. package/dist/cjs/tttx.cjs.js +2 -2
  13. package/dist/collection/collection-manifest.json +1 -0
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  18. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.css +6 -0
  19. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +111 -107
  20. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  21. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  22. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  23. package/dist/collection/components/molecules/tttx-filter/tttx-filter.css +215 -0
  24. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +325 -0
  25. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +118 -0
  26. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
  27. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
  28. package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
  29. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
  30. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  31. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  32. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +627 -627
  33. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +157 -157
  34. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  35. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  36. package/dist/collection/components/palette.stories.js +7 -7
  37. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  38. package/dist/collection/icons.js +2838 -2838
  39. package/dist/collection/index.js +1 -1
  40. package/dist/collection/shared/domsanitiser.options.js +14 -14
  41. package/dist/components/index.d.ts +1 -0
  42. package/dist/components/index.js +1 -0
  43. package/dist/components/tttx-button.js +48 -48
  44. package/dist/components/tttx-filter.d.ts +11 -0
  45. package/dist/components/tttx-filter.js +195 -0
  46. package/dist/components/tttx-form.js +380 -380
  47. package/dist/components/tttx-icon2.js +28 -28
  48. package/dist/components/tttx-keyvalue-block.js +79 -75
  49. package/dist/components/tttx-list.js +65 -65
  50. package/dist/components/tttx-loading-spinner.js +33 -33
  51. package/dist/components/tttx-standalone-input.js +107 -107
  52. package/dist/components/tttx-toolbar.js +26 -26
  53. package/dist/esm/{index-5f9b72ff.js → index-e888a5f4.js} +80 -2
  54. package/dist/esm/loader.js +3 -3
  55. package/dist/esm/polyfills/core-js.js +0 -0
  56. package/dist/esm/polyfills/dom.js +0 -0
  57. package/dist/esm/polyfills/es5-html-element.js +0 -0
  58. package/dist/esm/polyfills/index.js +0 -0
  59. package/dist/esm/polyfills/system.js +0 -0
  60. package/dist/esm/tttx-button.entry.js +24 -24
  61. package/dist/esm/tttx-filter.entry.js +158 -0
  62. package/dist/esm/tttx-form.entry.js +363 -363
  63. package/dist/esm/tttx-icon.entry.js +11 -11
  64. package/dist/esm/tttx-keyvalue-block.entry.js +62 -58
  65. package/dist/esm/tttx-list.entry.js +43 -43
  66. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  67. package/dist/esm/tttx-standalone-input.entry.js +60 -60
  68. package/dist/esm/tttx-toolbar.entry.js +10 -10
  69. package/dist/esm/tttx.js +3 -3
  70. package/dist/tttx/{p-405219b2.entry.js → p-01f4628e.entry.js} +1 -1
  71. package/dist/tttx/{p-435c62b3.entry.js → p-043f9b8a.entry.js} +1 -1
  72. package/dist/tttx/{p-9cff9c64.entry.js → p-34052e38.entry.js} +1 -1
  73. package/dist/tttx/p-41f5b296.entry.js +1 -0
  74. package/dist/tttx/{p-0342cc46.entry.js → p-4cf3e1e0.entry.js} +1 -1
  75. package/dist/tttx/{p-1290dcd7.entry.js → p-6dff6b5a.entry.js} +1 -1
  76. package/dist/tttx/p-6f535da9.entry.js +1 -0
  77. package/dist/tttx/{p-adf35f58.entry.js → p-96bbf1ed.entry.js} +1 -1
  78. package/dist/tttx/{p-4ecc9e8b.entry.js → p-b3a03986.entry.js} +1 -1
  79. package/dist/tttx/p-f764ffc4.js +2 -0
  80. package/dist/tttx/tttx.esm.js +1 -1
  81. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  82. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  83. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  84. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  85. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  86. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  87. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  88. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  89. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +37 -0
  90. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +43 -0
  91. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  92. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  93. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
  94. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
  95. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  96. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  97. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +56 -56
  98. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +123 -123
  99. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  100. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  101. package/dist/types/components/palette.stories.d.ts +6 -6
  102. package/dist/types/components.d.ts +33 -0
  103. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  104. package/dist/types/icons.d.ts +2 -2
  105. package/dist/types/index.d.ts +1 -1
  106. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  107. package/package.json +1 -1
  108. package/dist/tttx/p-1b394414.entry.js +0 -1
  109. package/dist/tttx/p-c4b803fc.js +0 -2
@@ -1,4 +1,4 @@
1
- export declare class TttxToolbar {
2
- border: boolean;
3
- render(): any;
4
- }
1
+ export declare class TttxToolbar {
2
+ border: boolean;
3
+ render(): any;
4
+ }
@@ -1,13 +1,13 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- argTypes: {
5
- border: {
6
- control: {
7
- type: string;
8
- };
9
- };
10
- };
11
- };
12
- export default _default;
13
- export declare const BasicStringList: any;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ border: {
6
+ control: {
7
+ type: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ export default _default;
13
+ export declare const BasicStringList: any;
@@ -1,6 +1,6 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- };
5
- export default _default;
6
- export declare const Default: any;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ };
5
+ export default _default;
6
+ export declare const Default: any;
@@ -5,6 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { FilterChangeEvent, FilterSettings } from "./components/molecules/tttx-filter/tttx-filter";
8
9
  import { ListItem } from "./components/molecules/tttx-list/interfaces";
9
10
  import { MinMaxDates } from "./components/molecules/tttx-standalone-input/tttx-standalone-input";
10
11
  export namespace Components {
@@ -14,6 +15,15 @@ export namespace Components {
14
15
  "iconposition": 'left' | 'right';
15
16
  "notext": boolean;
16
17
  }
18
+ interface TttxFilter {
19
+ "filterButtonStyle": 'list filter' | 'list icon' | 'table icon';
20
+ "filterHeader": string;
21
+ "filterKey": string;
22
+ "filterOptions": FilterSettings[];
23
+ "showOptionIcons": boolean;
24
+ "showSearchField": boolean;
25
+ "showSelectAll": boolean;
26
+ }
17
27
  interface TttxForm {
18
28
  "formschema": any;
19
29
  "submitValue": any;
@@ -76,6 +86,10 @@ export namespace Components {
76
86
  "border": boolean;
77
87
  }
78
88
  }
89
+ export interface TttxFilterCustomEvent<T> extends CustomEvent<T> {
90
+ detail: T;
91
+ target: HTMLTttxFilterElement;
92
+ }
79
93
  export interface TttxFormCustomEvent<T> extends CustomEvent<T> {
80
94
  detail: T;
81
95
  target: HTMLTttxFormElement;
@@ -95,6 +109,12 @@ declare global {
95
109
  prototype: HTMLTttxButtonElement;
96
110
  new (): HTMLTttxButtonElement;
97
111
  };
112
+ interface HTMLTttxFilterElement extends Components.TttxFilter, HTMLStencilElement {
113
+ }
114
+ var HTMLTttxFilterElement: {
115
+ prototype: HTMLTttxFilterElement;
116
+ new (): HTMLTttxFilterElement;
117
+ };
98
118
  interface HTMLTttxFormElement extends Components.TttxForm, HTMLStencilElement {
99
119
  }
100
120
  var HTMLTttxFormElement: {
@@ -139,6 +159,7 @@ declare global {
139
159
  };
140
160
  interface HTMLElementTagNameMap {
141
161
  "tttx-button": HTMLTttxButtonElement;
162
+ "tttx-filter": HTMLTttxFilterElement;
142
163
  "tttx-form": HTMLTttxFormElement;
143
164
  "tttx-icon": HTMLTttxIconElement;
144
165
  "tttx-keyvalue-block": HTMLTttxKeyvalueBlockElement;
@@ -155,6 +176,16 @@ declare namespace LocalJSX {
155
176
  "iconposition"?: 'left' | 'right';
156
177
  "notext"?: boolean;
157
178
  }
179
+ interface TttxFilter {
180
+ "filterButtonStyle"?: 'list filter' | 'list icon' | 'table icon';
181
+ "filterHeader"?: string;
182
+ "filterKey"?: string;
183
+ "filterOptions"?: FilterSettings[];
184
+ "onFilterChangeEvent"?: (event: TttxFilterCustomEvent<FilterChangeEvent>) => void;
185
+ "showOptionIcons"?: boolean;
186
+ "showSearchField"?: boolean;
187
+ "showSelectAll"?: boolean;
188
+ }
158
189
  interface TttxForm {
159
190
  "formschema"?: any;
160
191
  "onDataChanged"?: (event: TttxFormCustomEvent<{ name: string, value: any }>) => void;
@@ -225,6 +256,7 @@ declare namespace LocalJSX {
225
256
  }
226
257
  interface IntrinsicElements {
227
258
  "tttx-button": TttxButton;
259
+ "tttx-filter": TttxFilter;
228
260
  "tttx-form": TttxForm;
229
261
  "tttx-icon": TttxIcon;
230
262
  "tttx-keyvalue-block": TttxKeyvalueBlock;
@@ -239,6 +271,7 @@ declare module "@stencil/core" {
239
271
  export namespace JSX {
240
272
  interface IntrinsicElements {
241
273
  "tttx-button": LocalJSX.TttxButton & JSXBase.HTMLAttributes<HTMLTttxButtonElement>;
274
+ "tttx-filter": LocalJSX.TttxFilter & JSXBase.HTMLAttributes<HTMLTttxFilterElement>;
242
275
  "tttx-form": LocalJSX.TttxForm & JSXBase.HTMLAttributes<HTMLTttxFormElement>;
243
276
  "tttx-icon": LocalJSX.TttxIcon & JSXBase.HTMLAttributes<HTMLTttxIconElement>;
244
277
  "tttx-keyvalue-block": LocalJSX.TttxKeyvalueBlock & JSXBase.HTMLAttributes<HTMLTttxKeyvalueBlockElement>;
@@ -1,5 +1,5 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const Default: any;
1
+ declare const _default: {
2
+ title: string;
3
+ };
4
+ export default _default;
5
+ export declare const Default: any;
@@ -1,2 +1,2 @@
1
- declare const icons: string[];
2
- export default icons;
1
+ declare const icons: string[];
2
+ export default icons;
@@ -1 +1 @@
1
- export { Components, JSX } from './components';
1
+ export { Components, JSX } from './components';
@@ -1,10 +1,10 @@
1
- declare function tagRegXp(tagName: string): RegExpExecArray;
2
- declare function attributeNameCheck(): boolean;
3
- declare const domSanitiserOptions: {
4
- CUSTOM_ELEMENT_HANDLING: {
5
- tagNameCheck: typeof tagRegXp;
6
- attributeNameCheck: typeof attributeNameCheck;
7
- allowCustomizedBuiltInElements: boolean;
8
- };
9
- };
10
- export default domSanitiserOptions;
1
+ declare function tagRegXp(tagName: string): RegExpExecArray;
2
+ declare function attributeNameCheck(): boolean;
3
+ declare const domSanitiserOptions: {
4
+ CUSTOM_ELEMENT_HANDLING: {
5
+ tagNameCheck: typeof tagRegXp;
6
+ attributeNameCheck: typeof attributeNameCheck;
7
+ allowCustomizedBuiltInElements: boolean;
8
+ };
9
+ };
10
+ export default domSanitiserOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.1.8",
3
+ "version": "0.1.19",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as t,h as l,H as i}from"./p-c4b803fc.js";const d=class{constructor(l){t(this,l),this.keyvalues=void 0,this.horizontal=void 0}renderSingleElements(t){const i=Object.keys(t),d=[];for(let o=0;o<i.length;o++)this.horizontal?d.push(l("div",null,l("dt",null,i[o]),l("dd",null,t[i[o]]))):(d.push(l("dt",null,i[o])),d.push(l("dd",null,t[i[o]])));return d}renderArrayElements(t){const i=[];for(let d=0;d<t.length;d++){const o=t[d];this.horizontal?i.push(l("div",null,l("dt",{class:"mainTitle"},o.title),l("dt",{class:"subTitle"},o.subTitle),l("dd",null,o.data))):(i.push(l("dt",{class:"mainTitle"},o.title)),i.push(l("dt",{class:"subTitle"},o.subTitle)),i.push(l("dd",null,o.data)))}return i}render(){if(!this.keyvalues)return;let t,d;return t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,d=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t),l(i,null,l("dl",{class:this.horizontal?"horizontal":null},d))}};d.style=':host{display:block}dl{margin:0;padding:0;font-family:"Roboto", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}';export{d as tttx_keyvalue_block}
@@ -1,2 +0,0 @@
1
- let e,n,t=!1;const l={},o=e=>"object"==(e=typeof e)||"function"===e;function s(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const c=(e,n,...t)=>{let l=null,s=!1,c=!1;const r=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!o(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?i(null,l):l),c=s)};if(u(t),n){const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}const a=i(e,null);return a.l=n,r.length>0&&(a.o=r),a},i=(e,n)=>({i:0,u:e,t:n,m:null,o:null,l:null}),r={},u=(e,n,t)=>{const l=(e=>H(e).p)(e);return{emit:e=>a(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},a=(e,n,t)=>{const l=I.ce(n,t);return e.dispatchEvent(l),l},f=new WeakMap,d=e=>"sc-"+e.$,m=(e,n,t,l,s,c)=>{if(t!==l){let i=D(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=$(t),s=$(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const r=o(l);if((i||r&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&c||s)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):D(B,r)?r.slice(2):r[2]+n.slice(3),t&&I.rel(e,n,t,!1),l&&I.ael(e,n,l,!1)}},p=/\s/,$=e=>e?e.split(p):[],h=(e,n,t,o)=>{const s=11===n.m.nodeType&&n.m.host?n.m.host:n.m,c=e&&e.l||l,i=n.l||l;for(o in c)o in i||m(s,o,c[o],void 0,t,n.i);for(o in i)m(s,o,c[o],i[o],t,n.i)},y=(n,t,l)=>{const o=t.o[l];let s,c,i=0;if(null!==o.t)s=o.m=G.createTextNode(o.t);else if(s=o.m=G.createElement(o.u),h(null,o,!1),null!=e&&s["s-si"]!==e&&s.classList.add(s["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=y(n,o,i),c&&s.appendChild(c);return s},b=(e,t,l,o,s,c)=>{let i,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=y(null,l,s),i&&(o[s].m=i,r.insertBefore(i,t)))},w=(e,n,t,l,o)=>{for(;n<=t;++n)(l=e[n])&&(o=l.m,g(l),o.remove())},v=(e,n)=>e.u===n.u,S=(e,n)=>{const t=n.m=e.m,l=e.o,o=n.o,s=n.t;null===s?("slot"===n.u||h(e,n,!1),null!==l&&null!==o?((e,n,t,l)=>{let o,s=0,c=0,i=n.length-1,r=n[0],u=n[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=n[++s]:null==u?u=n[--i]:null==f?f=l[++c]:null==d?d=l[--a]:v(r,f)?(S(r,f),r=n[++s],f=l[++c]):v(u,d)?(S(u,d),u=n[--i],d=l[--a]):v(r,d)?(S(r,d),e.insertBefore(r.m,u.m.nextSibling),r=n[++s],d=l[--a]):v(u,f)?(S(u,f),e.insertBefore(u.m,r.m),u=n[--i],f=l[++c]):(o=y(n&&n[c],t,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?b(e,null==l[a+1]?null:l[a+1].m,t,l,c,a):c>a&&w(n,s,i)})(t,l,n,o):null!==o?(null!==e.t&&(t.textContent=""),b(t,null,n,o,0,o.length-1)):null!==l&&w(l,0,l.length-1)):e.t!==s&&(t.data=s)},g=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(g)},j=(e,n)=>{n&&!e.h&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.h=n)))},M=(e,n)=>{if(e.i|=16,!(4&e.i))return j(e,e.v),te((()=>k(e,n)));e.i|=512},k=(e,n)=>{const t=e.S;let l;return n&&(l=R(t,"componentWillLoad")),l=W(l,(()=>R(t,"componentWillRender"))),W(l,(()=>C(e,t,n)))},C=async(e,n,t)=>{const l=e.p,o=l["s-rc"];t&&(e=>{const n=e.g,t=e.p,l=n.i,o=((e,n)=>{var t;let l=d(n);const o=z.get(l);if(e=11===e.nodeType?e:G,o)if("string"==typeof o){let n,c=f.get(e=e.head||e);if(c||f.set(e,c=new Set),!c.has(l)){{n=G.createElement("style"),n.innerHTML=o;const l=null!==(t=I.j)&&void 0!==t?t:s(G);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}c&&c.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"),2&l&&t.classList.add(o+"-s"))})(e);O(e,n),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>x(e);0===n.length?t():(Promise.all(n).then(t),e.i|=4,n.length=0)}},O=(t,l)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l)=>{const o=t.p,s=t.M||i(null,null),u=(e=>e&&e.u===r)(l)?l:c(null,null,l);n=o.tagName,u.u=null,u.i|=4,t.M=u,u.m=s.m=o.shadowRoot||o,e=o["s-sc"],S(s,u)})(t,l)}catch(e){F(e,t.p)}return null},x=e=>{const n=e.p,t=e.v;R(e.S,"componentDidRender"),64&e.i||(e.i|=64,E(n),e.k(n),t||P()),e.h&&(e.h(),e.h=void 0),512&e.i&&ne((()=>M(e,!1))),e.i&=-517},P=()=>{E(G.documentElement),ne((()=>a(B,"appload",{detail:{namespace:"tttx"}})))},R=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){F(e)}},W=(e,n)=>e&&e.then?e.then(n):n(),E=e=>e.classList.add("hydrated"),L=(e,n,t)=>{if(n.C){e.watchers&&(n.O=e.watchers);const l=Object.entries(n.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(s,e,{get(){return((e,n)=>H(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const s=H(e),c=s.p,i=s.P.get(n),r=s.i,u=s.S;if(t=((e,n)=>null==e||o(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,l.C[n][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(s.P.set(n,t),u)){if(l.O&&128&r){const e=l.O[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){F(e,c)}}))}2==(18&r)&&M(s,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const n=new Map;s.attributeChangedCallback=function(e,t,l){I.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},N=(e,n={})=>{var t;const l=[],o=n.exclude||[],c=B.customElements,i=G.head,r=i.querySelector("meta[charset]"),u=G.createElement("style"),a=[];let f,m=!0;Object.assign(I,n),I.R=new URL(n.resourcesUrl||"./",G.baseURI).href,e.map((e=>{e[1].map((t=>{const s={i:t[0],$:t[1],C:t[2],W:t[3]};s.C=t[2],s.O={};const i=n.transformTagName?n.transformTagName(s.$):s.$,r=class extends HTMLElement{constructor(e){super(e),q(e=this,s),1&s.i&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),m?a.push(this):I.jmp((()=>(e=>{if(0==(1&I.i)){const n=H(e),t=n.g,l=()=>{};if(!(1&n.i)){n.i|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){j(n,n.v=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.i)){{if(n.i|=32,(o=_(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(t.O=o.watchers,L(o,t,2),o.isProxied=!0);const e=()=>{};n.i|=8;try{new o(n)}catch(e){F(e)}n.i&=-9,n.i|=128,e()}if(o.style){let e=o.style;const n=d(t);if(!z.has(n)){const l=()=>{};((e,n,t)=>{let l=z.get(e);K&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,z.set(e,l)})(n,e,!!(1&t.i)),l()}}}const s=n.v,c=()=>M(n,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,n,t)}l()}})(this)))}disconnectedCallback(){I.jmp((()=>{}))}componentOnReady(){return H(this).L}};s.N=e[0],o.includes(i)||c.get(i)||(l.push(i),c.define(i,L(r,s,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=I.j)&&void 0!==t?t:s(G);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,r?r.nextSibling:i.firstChild)}m=!1,a.length?a.map((e=>e.connectedCallback())):I.jmp((()=>f=setTimeout(P,30)))},T=e=>I.j=e,A=new WeakMap,H=e=>A.get(e),U=(e,n)=>A.set(n.S=e,n),q=(e,n)=>{const t={i:0,p:e,g:n,P:new Map};return t.L=new Promise((e=>t.k=e)),e["s-p"]=[],e["s-rc"]=[],A.set(e,t)},D=(e,n)=>n in e,F=(e,n)=>(0,console.error)(e,n),V=new Map,_=e=>{const n=e.$.replace(/-/g,"_"),t=e.N,l=V.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(V.set(t,e),e[n])),F)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},G=B.document||{head:{}},I={i:0,R:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},J=e=>Promise.resolve(e),K=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Q=[],X=[],Y=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&I.i?ne(ee):I.raf(ee))},Z=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){F(e)}e.length=0},ee=()=>{Z(Q),Z(X),(t=Q.length>0)&&I.raf(ee)},ne=e=>J().then(e),te=Y(X,!0);export{r as H,N as b,u as c,c as h,J as p,U as r,T as s}