@trintel/zooy 1.2.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,27 @@
1
1
  {
2
2
  "name": "@trintel/zooy",
3
+ "version": "1.5.0",
3
4
  "description": "UI Building Blocks",
4
- "version": "1.2.0",
5
- "main": "./dist/zooy.cjs.js",
6
- "module": "./dist/zooy.es.js",
5
+ "license": "Apache-2.0",
6
+ "author": {
7
+ "name": "Jan Badenhorst",
8
+ "email": "janhendrik.badenhorst@gmail.com"
9
+ },
10
+ "contributors": [
11
+ "Andries Niemandt <andries.niemandt91@gmail.com> (https://github.com/andriesniemandt)"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/trinity-telecomms/zooy.git"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "src/sass"
20
+ ],
7
21
  "type": "module",
8
22
  "sideEffects": false,
23
+ "main": "./dist/zooy.cjs.js",
24
+ "module": "./dist/zooy.es.js",
9
25
  "exports": {
10
26
  ".": {
11
27
  "import": "./dist/zooy.es.js",
@@ -13,29 +29,13 @@
13
29
  },
14
30
  "./sass": "./src/sass/main.scss"
15
31
  },
16
- "files": [
17
- "dist",
18
- "src/sass"
19
- ],
20
- "author": {
21
- "name": "Jan Badenhorst",
22
- "email": "janhendrik.badenhorst@gmail.com"
23
- },
24
- "contributors": [
25
- "Andries Niemandt <andries.niemandt91@gmail.com> (https://github.com/andriesniemandt)"
26
- ],
27
32
  "scripts": {
28
33
  "clean": "rm -rf dist",
29
- "build": "npm run clean && vite build",
30
- "lint": "eslint src/**/*.js",
31
- "lint:fix": "eslint src/**/*.js --fix",
32
- "dev": "vite",
33
- "prepare": "husky"
34
- },
35
- "license": "Apache-2.0",
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/trinity-telecomms/zooy.git"
34
+ "build": "npm run clean && vp build",
35
+ "lint": "vp lint src/**/*.js",
36
+ "lint:fix": "vp lint src/**/*.js --fix",
37
+ "dev": "vp dev",
38
+ "prepare": "vp config"
39
39
  },
40
40
  "dependencies": {
41
41
  "@carbon/icons": "^11.77.1",
@@ -47,11 +47,15 @@
47
47
  "devDependencies": {
48
48
  "@eslint/js": "^10.0.1",
49
49
  "esbuild": "^0.28.0",
50
- "eslint": "^10.2.0",
51
50
  "esm": "^3.2.25",
52
- "husky": "^9.1.7",
53
51
  "ramda": "^0.32.0",
54
52
  "sass": "^1.99.0",
55
- "vite": "^8.0.5"
56
- }
53
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
54
+ "vite-plus": "latest"
55
+ },
56
+ "overrides": {
57
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
58
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
59
+ },
60
+ "packageManager": "npm@11.12.1"
57
61
  }
@@ -16,5 +16,5 @@
16
16
  --zoo-timestamp-separator-color: inherit;
17
17
 
18
18
  // Default themed chip font size
19
- --zoo-theme-chips-font-size: 0.75rem
19
+ --zoo-theme-chips-font-size: 0.75rem;
20
20
  }
@@ -27,10 +27,8 @@ cds-table {
27
27
  flex: 1;
28
28
  text-align: right;
29
29
  }
30
-
31
30
  }
32
31
 
33
-
34
32
  // Batch filter popover - active state styling
35
33
  // Matches Carbon's overflow menu behavior when open
36
34
  cds-popover {
@@ -71,7 +69,6 @@ cds-popover {
71
69
  }
72
70
  }
73
71
 
74
-
75
72
  .zoo-datatable-skeleton-wrapper {
76
73
  display: grid;
77
74
  grid-template-columns: 1fr;
@@ -91,7 +88,9 @@ cds-popover {
91
88
  z-index: 1;
92
89
  opacity: 1;
93
90
  visibility: visible;
94
- transition: opacity 1s ease, visibility 1s ease;
91
+ transition:
92
+ opacity 1s ease,
93
+ visibility 1s ease;
95
94
 
96
95
  &.hidden {
97
96
  opacity: 0;
@@ -99,4 +98,3 @@ cds-popover {
99
98
  }
100
99
  }
101
100
  }
102
-
@@ -0,0 +1,38 @@
1
+ // ============================================================================
2
+ // Zooy List Styles
3
+ // ============================================================================
4
+ // Styles for Carbon list variants used by zooy panels. Currently houses the
5
+ // "current page" indicator for <cds-contained-list> used as a navigation list.
6
+ //
7
+ // Example usage in Django template:
8
+ // <cds-contained-list kind="on-page" aria-label="Ops navigation">
9
+ // <cds-contained-list-item clickable event="overview" ... >…</cds-contained-list-item>
10
+ // …
11
+ // </cds-contained-list>
12
+ //
13
+ // and from JS, toggle aria-current="page" on the item representing the
14
+ // current route (e.g. from the view's setActiveRoute helper):
15
+ // item.toggleAttribute('aria-current', isActive ? 'page' : null);
16
+ // ============================================================================
17
+
18
+ // Navigation "current page" indicator.
19
+ //
20
+ // Three visual cues stacked on the host:
21
+ // 1. A subtle background tint via --cds-background-selected.
22
+ // 2. A 3px inline-start indicator bar via --cds-border-interactive, drawn
23
+ // as an inset box-shadow so it stays inside the host box and doesn't
24
+ // shift any of the sibling items' layout.
25
+ // 3. Bold text, which cascades through the flat tree into the slotted
26
+ // label content inside cds-contained-list-item's shadow DOM.
27
+ //
28
+ // Caveat: cds-contained-list-item's hover background lives in shadow DOM on
29
+ // .cds--contained-list-item__content, which paints over the host. While
30
+ // actively hovering the current item the tint and stripe are temporarily
31
+ // covered; both return as soon as the pointer leaves. Styling inside the
32
+ // shadow button is not reachable from here without ::part (which Carbon
33
+ // doesn't expose on this element), so this hover quirk is accepted.
34
+ cds-contained-list-item[aria-current="page"] {
35
+ background-color: var(--cds-background-selected, hsla(0, 0%, 55%, 0.2));
36
+ box-shadow: inset 3px 0 0 0 var(--cds-border-interactive, #0f62fe);
37
+ font-weight: 600;
38
+ }
@@ -5,5 +5,4 @@
5
5
  @use "split";
6
6
  @use "carbon";
7
7
  @use "buttons";
8
-
9
-
8
+ @use "lists";
@@ -131,23 +131,53 @@
131
131
  max-width: 90vw;
132
132
  }
133
133
 
134
- .zoo__max_height--95vh { max-height: 95vh; }
135
- .zoo__max_height--90vh { max-height: 90vh; }
136
- .zoo__max_height--85vh { max-height: 85vh; }
137
- .zoo__max_height--80vh { max-height: 80vh; }
134
+ .zoo__max_height--95vh {
135
+ max-height: 95vh;
136
+ }
137
+ .zoo__max_height--90vh {
138
+ max-height: 90vh;
139
+ }
140
+ .zoo__max_height--85vh {
141
+ max-height: 85vh;
142
+ }
143
+ .zoo__max_height--80vh {
144
+ max-height: 80vh;
145
+ }
138
146
 
139
147
  // Suggested widths (flex-basis)
140
- .zoo__suggest_width_90vw { flex-basis: 90vw; }
141
- .zoo__suggest_width_1000 { flex-basis: 1000px; }
142
- .zoo__suggest_width_950 { flex-basis: 950px; }
143
- .zoo__suggest_width_900 { flex-basis: 900px; }
144
- .zoo__suggest_width_850 { flex-basis: 850px; }
145
- .zoo__suggest_width_800 { flex-basis: 800px; }
146
- .zoo__suggest_width_750 { flex-basis: 750px; }
147
- .zoo__suggest_width_700 { flex-basis: 700px; }
148
- .zoo__suggest_width_650 { flex-basis: 650px; }
149
- .zoo__suggest_width_600 { flex-basis: 600px; }
150
- .zoo__suggest_width_550 { flex-basis: 550px; }
148
+ .zoo__suggest_width_90vw {
149
+ flex-basis: 90vw;
150
+ }
151
+ .zoo__suggest_width_1000 {
152
+ flex-basis: 1000px;
153
+ }
154
+ .zoo__suggest_width_950 {
155
+ flex-basis: 950px;
156
+ }
157
+ .zoo__suggest_width_900 {
158
+ flex-basis: 900px;
159
+ }
160
+ .zoo__suggest_width_850 {
161
+ flex-basis: 850px;
162
+ }
163
+ .zoo__suggest_width_800 {
164
+ flex-basis: 800px;
165
+ }
166
+ .zoo__suggest_width_750 {
167
+ flex-basis: 750px;
168
+ }
169
+ .zoo__suggest_width_700 {
170
+ flex-basis: 700px;
171
+ }
172
+ .zoo__suggest_width_650 {
173
+ flex-basis: 650px;
174
+ }
175
+ .zoo__suggest_width_600 {
176
+ flex-basis: 600px;
177
+ }
178
+ .zoo__suggest_width_550 {
179
+ flex-basis: 550px;
180
+ }
151
181
 
152
182
  .zoo__suggest_width_500,
153
183
  .zoo__suggest_width_450,
@@ -158,12 +188,24 @@
158
188
  min-width: initial !important;
159
189
  }
160
190
 
161
- .zoo__suggest_width_500 { flex-basis: 500px; }
162
- .zoo__suggest_width_450 { flex-basis: 450px; }
163
- .zoo__suggest_width_400 { flex-basis: 400px; }
164
- .zoo__suggest_width_350 { flex-basis: 350px; }
165
- .zoo__suggest_width_300 { flex-basis: 300px; }
166
- .zoo__suggest_width_200 { flex-basis: 200px; }
191
+ .zoo__suggest_width_500 {
192
+ flex-basis: 500px;
193
+ }
194
+ .zoo__suggest_width_450 {
195
+ flex-basis: 450px;
196
+ }
197
+ .zoo__suggest_width_400 {
198
+ flex-basis: 400px;
199
+ }
200
+ .zoo__suggest_width_350 {
201
+ flex-basis: 350px;
202
+ }
203
+ .zoo__suggest_width_300 {
204
+ flex-basis: 300px;
205
+ }
206
+ .zoo__suggest_width_200 {
207
+ flex-basis: 200px;
208
+ }
167
209
 
168
210
  // -----------------------------------------------------------------------------
169
211
  // Visual Utilities
@@ -172,9 +214,15 @@
172
214
  box-shadow: none !important;
173
215
  }
174
216
 
175
- .zoo__border-radius--10 { border-radius: 10px; }
176
- .zoo__border-radius--15 { border-radius: 15px; }
177
- .zoo__border-radius--20 { border-radius: 20px; }
217
+ .zoo__border-radius--10 {
218
+ border-radius: 10px;
219
+ }
220
+ .zoo__border-radius--15 {
221
+ border-radius: 15px;
222
+ }
223
+ .zoo__border-radius--20 {
224
+ border-radius: 20px;
225
+ }
178
226
 
179
227
  // -----------------------------------------------------------------------------
180
228
  // FAB Positioning
@@ -212,27 +260,53 @@
212
260
  flex-flow: column nowrap;
213
261
 
214
262
  // Flow modifiers
215
- .flex-flow__row_wrap { flex-flow: row wrap; }
216
- .flex-flow__row_nowrap { flex-flow: row nowrap; }
217
- .flex-flow__column_wrap { flex-flow: column wrap; }
263
+ .flex-flow__row_wrap {
264
+ flex-flow: row wrap;
265
+ }
266
+ .flex-flow__row_nowrap {
267
+ flex-flow: row nowrap;
268
+ }
269
+ .flex-flow__column_wrap {
270
+ flex-flow: column wrap;
271
+ }
218
272
 
219
273
  // Direction modifiers
220
- .flex-direction__row { flex-direction: row; }
221
- .flex-direction__column { flex-direction: column; }
274
+ .flex-direction__row {
275
+ flex-direction: row;
276
+ }
277
+ .flex-direction__column {
278
+ flex-direction: column;
279
+ }
222
280
 
223
281
  // Wrap modifiers
224
- .wrap { flex-wrap: wrap; }
225
- .nowrap { flex-wrap: nowrap; }
282
+ .wrap {
283
+ flex-wrap: wrap;
284
+ }
285
+ .nowrap {
286
+ flex-wrap: nowrap;
287
+ }
226
288
 
227
289
  // Alignment modifiers
228
- .align-items__center { align-items: center; }
229
- .justify-content__center { justify-content: center; }
230
- .justify-content__space-between { justify-content: space-between; }
231
- .align-content__flex-start { align-content: flex-start; }
232
- .align-content__flex-end { align-content: flex-end; }
290
+ .align-items__center {
291
+ align-items: center;
292
+ }
293
+ .justify-content__center {
294
+ justify-content: center;
295
+ }
296
+ .justify-content__space-between {
297
+ justify-content: space-between;
298
+ }
299
+ .align-content__flex-start {
300
+ align-content: flex-start;
301
+ }
302
+ .align-content__flex-end {
303
+ align-content: flex-end;
304
+ }
233
305
 
234
306
  // Padding utilities
235
- .padding_0_24 { padding: 0 24px; }
307
+ .padding_0_24 {
308
+ padding: 0 24px;
309
+ }
236
310
 
237
311
  & > .dashboard_grid_element {
238
312
  background-color: #e1e2e1;
@@ -245,10 +319,18 @@
245
319
  // -----------------------------------------------------------------------------
246
320
  // General Utilities
247
321
  // -----------------------------------------------------------------------------
248
- .overflow-scroll { overflow: scroll; }
249
- .overflow-auto { overflow: auto; }
250
- .display__none { display: none !important; }
251
- .margin-bottom__24 { margin-bottom: 24px; }
322
+ .overflow-scroll {
323
+ overflow: scroll;
324
+ }
325
+ .overflow-auto {
326
+ overflow: auto;
327
+ }
328
+ .display__none {
329
+ display: none !important;
330
+ }
331
+ .margin-bottom__24 {
332
+ margin-bottom: 24px;
333
+ }
252
334
 
253
335
  .zoo__flex-item {
254
336
  flex: 1;
@@ -5,19 +5,87 @@ html {
5
5
  //*, *:before, *:after {
6
6
  // box-sizing: inherit;
7
7
  //}
8
- html, body, div, span, applet, object, iframe,
9
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10
- a, abbr, acronym, address, big, cite, code,
11
- del, dfn, em, img, ins, kbd, q, s, samp,
12
- small, strike, strong, sub, sup, tt, var,
13
- b, u, i, center,
14
- dl, dt, dd, ol, ul, li,
15
- fieldset, form, label, legend,
16
- table, caption, tbody, tfoot, thead, tr, th, td,
17
- article, aside, canvas, details, embed,
18
- figure, figcaption, footer, header, hgroup,
19
- menu, nav, output, ruby, section, summary,
20
- time, mark, audio, video {
8
+ html,
9
+ body,
10
+ div,
11
+ span,
12
+ applet,
13
+ object,
14
+ iframe,
15
+ h1,
16
+ h2,
17
+ h3,
18
+ h4,
19
+ h5,
20
+ h6,
21
+ p,
22
+ blockquote,
23
+ pre,
24
+ a,
25
+ abbr,
26
+ acronym,
27
+ address,
28
+ big,
29
+ cite,
30
+ code,
31
+ del,
32
+ dfn,
33
+ em,
34
+ img,
35
+ ins,
36
+ kbd,
37
+ q,
38
+ s,
39
+ samp,
40
+ small,
41
+ strike,
42
+ strong,
43
+ sub,
44
+ sup,
45
+ tt,
46
+ var,
47
+ b,
48
+ u,
49
+ i,
50
+ center,
51
+ dl,
52
+ dt,
53
+ dd,
54
+ ol,
55
+ ul,
56
+ li,
57
+ fieldset,
58
+ form,
59
+ label,
60
+ legend,
61
+ table,
62
+ caption,
63
+ tbody,
64
+ tfoot,
65
+ thead,
66
+ tr,
67
+ th,
68
+ td,
69
+ article,
70
+ aside,
71
+ canvas,
72
+ details,
73
+ embed,
74
+ figure,
75
+ figcaption,
76
+ footer,
77
+ header,
78
+ hgroup,
79
+ menu,
80
+ nav,
81
+ output,
82
+ ruby,
83
+ section,
84
+ summary,
85
+ time,
86
+ mark,
87
+ audio,
88
+ video {
21
89
  margin: 0;
22
90
  padding: 0;
23
91
  border: 0;
@@ -40,4 +108,3 @@ time, mark, audio, video {
40
108
  ::-webkit-scrollbar-thumb:window-inactive {
41
109
  background: rgba(0, 0, 0, 0.05);
42
110
  }
43
-
@@ -27,7 +27,6 @@
27
27
  width: 0;
28
28
  }
29
29
  }
30
-
31
30
  }
32
31
 
33
32
  .zoo_nest {
@@ -79,7 +78,8 @@
79
78
  flex-basis: 0;
80
79
  }
81
80
 
82
- &:hover, &:active {
81
+ &:hover,
82
+ &:active {
83
83
  opacity: 1;
84
84
  }
85
85
  }
@@ -128,5 +128,3 @@
128
128
  cursor: ew-resize;
129
129
  }
130
130
  }
131
-
132
-
@@ -1 +0,0 @@
1
- var Et=Object.create;var K=Object.defineProperty;var St=Object.getOwnPropertyDescriptor;var At=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf,It=Object.prototype.hasOwnProperty;var Pt=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of At(e))!It.call(t,o)&&o!==n&&K(t,o,{get:()=>e[o],enumerable:!(s=St(e,o))||s.enumerable});return t};var l=(t,e,n)=>(n=t!=null?Et(Wt(t)):{},Pt(e||!t||!t.__esModule?K(n,"default",{value:t,enumerable:!0}):n,t));const m=require("./component-library-registry-BBQV6Kpv.js"),c=require("./zoo-CY2QpG41.js");let nt=require("badu"),D=require("ramda");D=m.__toESM(D);let kt=require("@carbon/web-components/lib/components/data-table/defs.js");var _t=m.__exportAll({cdsTableWrap:()=>wt}),Q=(t,e,n)=>{const s=customElements.get("cds-table"),o=customElements.get("cds-pagination"),a=customElements.get(s.selectorTableBatchActions);customElements.get("cds-popover");const r=e.dataBinder,d=e.pagination,u=e.skeleton,A=e.querySelector(s.selectorTableToolbarSearch),W=e.querySelector(s.selectorTableBatchActions),x=e.querySelector(s.selectorTableBody),O=["button","a","input","select","textarea",'[role="button"]',".cds--table-expand",".cds--table-column-checkbox"].join(","),V=e.querySelectorAll(s.selectorHeaderCell+"[is-sortable]"),ot=e.isSortable||V.length>0,z=Symbol(),F=Symbol(),w=new Map,at=i=>{t.listen(e,"click",p=>{const v=p.target.closest(s.selectorTableRow);if(!v||p.composedPath().some(f=>f.matches&&f.matches(O)))return;p.stopPropagation();const g=c.getSemanticAttributes(v);t.dispatchPanelEvent(i,{...g})})},rt=i=>{t.listen(e,s.eventExpandoToggle,p=>{const v=p.target,g=v.tagName==="CDS-TABLE-HEADER-ROW",f=p.detail.expanded,E={tableAttrs:n,...c.getSemanticAttributes(v),target:v,allRows:g,didExpand:f};t.dispatchPanelEvent(i,E)})},ct=i=>{w.set(z,p=>{t.dispatchPanelEvent(i,p)})},it=i=>{w.set(F,p=>{const v=p.detail.selectedRows,g=Math.min(v.length,W.totalRowsCount),f=p.target,E=c.getSemanticAttributes(f),I=v.map(c.getSemanticAttributes),_={tableAttrs:n,...E,target:f,selectCount:g,selection:I};t.dispatchPanelEvent(i,_)})},lt=i=>{t.listen(e,s.eventTableRowSelect,p=>{const v=p.target,g=p.detail.selectedRows||[],f=g.length,E=g.map(c.getSemanticAttributes),I={tableAttrs:n,...c.getSemanticAttributes(v),selectCount:f,selection:E,target:v};t.dispatchPanelEvent(i,I)})},dt=()=>{t.listen(e,s.eventBeforeSort,i=>{const p=i.target,v=i.detail.oldSortDirection,g=i.detail.sortDirection,f=c.getSemanticAttributes(p),E=f.sortField,I=g===kt.TABLE_SORT_DIRECTION.DESCENDING?`-${E}`:E;i.cancelBubble=!0,i.stopPropagation(),i.preventDefault(),x.innerHTML="",u&&u.show(),V.forEach((C,b)=>{C===p?(C.setAttribute("sort-active","true"),C.setAttribute("sort-direction",g)):(C.removeAttribute("sort-active"),C.setAttribute("sort-direction","none"))});const _={ordering:I};r.fetchData(_).then(()=>{d.setData(r),u&&u.hide()}),w.has(z)&&w.get(z)({tableAttrs:n,...f,sortNow:g,sortWas:v,sortField:E,ordering:I,target:p})})},pt=()=>{t.listen(e,s.eventTableRowSelectAll,i=>{i.detail.selectedRows.length===0&&e.querySelectorAll(s.selectorTableRow).forEach(p=>{p.disabled=!1,p.selected=!1}),w.has(F)&&w.get(F)(i)})},ut=()=>{t.listen(e,s.eventBeforeChangeSelectionAll,i=>{i.stopPropagation(),i.detail.callback&&i.detail.callback()})},vt=i=>{const p=e.querySelector("cds-table-header-row");t.listen(i,a.eventClickSelectAll,v=>{v.stopPropagation(),p.dispatchEvent(new CustomEvent(s.eventBeforeChangeSelectionAll,{bubbles:!0,cancelable:!0,composed:!0,detail:{selected:!0,callback:()=>{i.selectedRowsCount=i.totalRowsCount,e.querySelectorAll(s.selectorTableRow).forEach(g=>{g.disabled=!0})}}}))})},mt=i=>{t.listen(i,"keydown",p=>{if(p.key==="Enter"){u&&u.show(),d.totalItems=0,e.querySelector("cds-table-body").replaceChildren();const v={search:i.value||"",offset:0};r.fetchData(v).then(()=>{d.setData(r),u&&u.hide()})}})},gt=i=>{t.listen(i,s.eventSearchInput,p=>{if((p.detail.value||"")===""){const v={search:"",offset:0};u&&u.show(),r.fetchData(v).then(()=>{u&&u.hide(),d.setData(r)})}})},ht=i=>{i.caret=!1;const p=i.querySelector("cds-icon-button, button:not([slot])"),v=i.querySelectorAll("cds-checkbox"),g=i.querySelectorAll("cds-modal-footer-button"),f=[...i.querySelectorAll("cds-checkbox-group")].map(c.getSemanticAttributes).map(D.pathOr("noop",["zoo","filter","field"])).reduce((b,S)=>(b[S]=null,b),{offset:0});if(!p||!g){console.error("Improperly configured Batch Filter popover");return}new MutationObserver(()=>{i.classList.toggle("cds--overflow-menu--open",i.open)}).observe(i,{attributes:!0,attributeFilter:["open"]});const E=Symbol(),I=Symbol(),_=[...g].reduce((b,S,y)=>(S.hasAttribute("reset-filter")&&b.set(E,S),S.hasAttribute("apply-filter")&&b.set(I,S),b),new Map),C=()=>{const b=new Map;return v.forEach(S=>{const y=S.getAttribute("id");if(!y||!y.includes(":"))return;const[B,M]=y.split(":");b.has(B)||b.set(B,[]),S.checked&&b.get(B).push(M)}),b};if(_.has(E)){const b=S=>S.checked=!1;t.listen(_.get(E),"click",S=>{S.stopPropagation(),v.forEach(b),u&&u.show(),r.fetchData(f).then(()=>{d&&d.setData(r),u&&u.hide(),i.open=!1})})}_.has(I)&&t.listen(_.get(I),"click",b=>{b.stopPropagation();const S=[...C()].reduce((y,[B,M])=>(y[B]=M===[]?null:M,y),{offset:0});u&&u.show(),r.fetchData(S).then(()=>{d&&d.setData(r),u&&u.hide(),i.open=!1})}),t.listen(p,"click",b=>{b.stopPropagation(),i.open=!i.open,i.classList.toggle("cds--overflow-menu--open",i.open)})},ft=()=>{t.listen(d,o.eventPageSizeChanged,i=>{const p={limit:d.pageSize,offset:0};r.fetchData(p).then(()=>{d.setData(r)})})},bt=()=>{let i=null;t.listen(d,o.eventChangeCurrent,p=>{const{page:v}=p.detail,g=d.pageSize,f=(v-1)*g;if(f!==i){i=f;const E={limit:g,offset:f};r.fetchData(E).then(()=>{d.setData(r),u&&u.hide()})}})};r&&d&&(ft(),bt()),r&&A&&(mt(A),gt(A));const Z=e.querySelector(s.selectorTableToolbarContent);if(Z){const i=Z.querySelectorAll("cds-popover[data-batch-filter]");r&&i&&i.forEach(ht)}e.isSelectable&&(pt(),ut(),W&&vt(W)),r&&ot&&dt();const J={zoo:{event:{row:{click:at,expand:rt,check:{one:lt,all:it}},column:{sort:ct}}}};(0,nt.objToPaths)(n).forEach(([i,p])=>{D.hasPath(i,J)&&D.path(i,J)(p)})},Ct=t=>{const e=document.createElement("cds-pagination");return e.backwardText="Previous page",e.forwardText="Next page",e.itemsPerPageText="Items per page:",e.pageSize=t.limit,e.size="lg",[10,25,50,100,500].forEach(n=>{const s=document.createElement("cds-select-item");s.value=n.toString(),s.textContent=n.toString(),e.appendChild(s)}),e.setData=n=>{if(n.isPaginated){const{count:s}=D.pick(["count"],n.data);e.pagesUnknown=Math.ceil(s/n.limit)>100,e.totalItems=s,e.pagesUnknown?e.formatStatusWithIndeterminateTotal=({start:o,end:a})=>`${o}–${a} of ${s} item${s<=1?"":"s"}`:delete e.formatStatusWithIndeterminateTotal}},e},yt=t=>{if(!t.parentNode){console.error("[Carbon Table] Cannot create skeleton: table has no parent node");return}const e=!!t.querySelector("cds-table-header-title"),n=!!t.querySelector("cds-table-header-description"),s=!!t.querySelector("cds-table-toolbar"),o=[...t.querySelectorAll("cds-table-header-cell")].length,a=t.hasAttribute("zebra"),r=t.getAttribute("size"),d=document.createElement("cds-table-skeleton");d.showHeader=e||n,d.showToolbar=s,d.zebra=a,d.columnCount=o,d.size=r,d.show=()=>d.classList.remove("hidden"),d.hide=()=>d.classList.add("hidden");const u=document.createElement("div");return u.classList.add("zoo-datatable-skeleton-wrapper"),t.parentNode.insertBefore(u,t),u.appendChild(d),u.appendChild(t),d},xt=(t,e)=>{const n=e.getAttribute("zoo-url-api"),s=parseInt(e.getAttribute("data-page-size")||25,10);if(n)return new c.Binder(t,n,e,{urlParams:{limit:s}})},wt={selector:"cds-table",init:function(t){const e=c.getSemanticAttributes(t),n=this,s=xt(n,t);if((0,nt.isDefAndNotNull)(s)){t.dataBinder=s;const o=yt(t);t.skeleton=o;const a=Ct(s);t.pagination=a,t.after(a),s.fetchData().then(r=>{o.hide(),a.setData(s),Q(n,t,e)})}else Q(n,t,e)}},Dt=m.__exportAll({cdsPaginationWrap:()=>Bt}),Bt={selector:"cds-pagination",init:function(t){const e=this,n=customElements.get("cds-pagination");let s=null;e.listen(t,n.eventChangeCurrent,o=>{const a=o.detail.page,r=t.pageSize,d=(a-1)*r;d!==s&&(s=d,e.dispatchPanelEvent("pagination-changed-current",{detail:{page:a,pageSize:r,action:"page-change"}}))}),e.listen(t,n.eventPageSizeChanged,o=>{const a=t.pageSize;s=null,e.dispatchPanelEvent("pagination-changed-page-size",{detail:{page:1,pageSize:a,action:"page-size-change"}})})}},Mt=m.__exportAll({cdsModalBodyContentWrap:()=>Rt,cdsModalBodyWrap:()=>Ft,cdsModalCloseButWrap:()=>zt,cdsModalFooterButWrap:()=>Ht,cdsModalFooterWrap:()=>Lt,cdsModalHeaderWrap:()=>Tt,cdsModalHeadingWrap:()=>qt,cdsModalLabelWrap:()=>Ot,cdsModalWrap:()=>Nt}),Nt={selector:"cds-modal",init:function(t){const e=customElements.get("cds-modal"),n=c.getSemanticAttributes(t),s=c.getEventAttribute(t,"open-event","event");s&&this.listen(t,"cds-modal-beingopened",r=>{this.dispatchPanelEvent(s,{...n,action:"opened"})});const o=t.getAttribute("before-close-event");o&&this.listen(t,e.eventBeforeClose,r=>{this.dispatchPanelEvent(o,{...n,action:"closing",cancelable:!0})}),this.listen(t,e.eventClose,r=>{this.dispatchPanelEvent("destroy_me",{...n,action:"closed",triggeredBy:r.detail?.triggeredBy})});const a=c.getEventAttribute(t,"primary-event","event");a&&this.listen(t,"cds-modal-primary-focus",r=>{this.dispatchPanelEvent(a,{...n,action:"primary"})})}},Tt={selector:"cds-modal-header"},qt={selector:"cds-modal-heading"},Ot={selector:"cds-modal-label"},zt={selector:"cds-modal-close-button"},Ft={selector:"cds-modal-body"},Rt={selector:"cds-modal-body-content"},Lt={selector:"cds-modal-footer"},Ht={selector:"cds-modal-footer-button",init:function(t){const e=c.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",s=>{let o=t.closest("form");if(!o){const a=t.getAttribute("form");a&&(o=document.getElementById(a))}o&&o.requestSubmit()});return}const n=e.event;n&&this.listen(t,"click",s=>{s.stopPropagation(),this.dispatchPanelEvent(n,e)})}},Ut=m.__exportAll({cdsMenuButtonWrap:()=>$t,cdsMenuWrap:()=>jt}),jt={selector:"cds-menu",init:function(t){const e=c.getSemanticAttributes(t),n=c.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-menu-opened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=c.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-menu-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})}),this.listen(t,"click",o=>{if(o.target.tagName==="CDS-MENU-ITEM"){const a=c.getSemanticAttributes(o.target),r=a.event||e.event;r&&(o.stopPropagation(),this.dispatchPanelEvent(r,{...e,...a}))}}),this.listen(t,"cds-item-changed",o=>{const a=o.detail.triggeredBy,r=c.getSemanticAttributes(a),d=r.event||e.event;d&&this.dispatchPanelEvent(d,{...e,...r,action:"selection-changed"})})}},$t={selector:"cds-menu-button",init:function(t){const e=c.getSemanticAttributes(t),n=t.querySelector("cds-menu");n&&this.listen(n,"click",s=>{if(s.target.tagName==="CDS-MENU-ITEM"){const o=c.getSemanticAttributes(s.target),a=o.event||e.event;a&&(s.stopPropagation(),this.dispatchPanelEvent(a,{...e,...o}))}})}},Gt=m.__exportAll({cdsButFabWrap:()=>Kt,cdsButtonWrap:()=>Vt,cdsComboButWrap:()=>Xt,cdsCopyButWrap:()=>Qt,cdsIconButToggleWrap:()=>Jt,cdsIconButWrap:()=>Zt}),Vt={selector:"cds-button",init:function(t){const e=c.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",s=>{let o=t.closest("form");if(!o){const a=t.getAttribute("form");a&&(o=document.getElementById(a))}o&&o.requestSubmit()});return}const n=e.event;n&&this.listen(t,"click",s=>{s.stopPropagation(),this.dispatchPanelEvent(n,c.getSemanticAttributes(t))})}},Zt={selector:"cds-icon-button:not([data-toggle])",event:"click",getData:(t,e)=>e},Jt={selector:"cds-icon-button[data-toggle]",init:function(t){const e=c.getSemanticAttributes(t);e.event&&this.listen(t,"click",n=>{n.stopPropagation(),t.isSelected=!t.isSelected,this.dispatchPanelEvent(e.event,{...e,isOn:t.isSelected})})}},Kt={selector:"cds-button[data-fab]",event:"click",getData:(t,e)=>e},Qt={selector:"cds-copy-button",init:function(t){const e=c.getSemanticAttributes(t),n=e.event;n&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(n,{...e,action:"copy"})});const s=t.getAttribute("success-event");if(s){const o=new MutationObserver(()=>{t.hasAttribute("feedback-shown")&&this.dispatchPanelEvent(s,{...e,action:"copied"})});o.observe(t,{attributes:!0,attributeFilter:["feedback-shown"]}),t._copyObserver=o}}},Xt={selector:"cds-combo-button",init:function(t){const e=c.getSemanticAttributes(t);e.event&&this.listen(t,"click",s=>{const o=s.composedPath(),a=o.some(d=>d.tagName==="CDS-MENU-ITEM"),r=o.some(d=>d.tagName==="CDS-ICON-BUTTON");!a&&!r&&(s.stopPropagation(),this.dispatchPanelEvent(e.event,{...e,action:"primary"}))});const n=t.querySelector("cds-menu");n&&this.listen(n,"click",s=>{if(s.target.tagName==="CDS-MENU-ITEM"){const o=c.getSemanticAttributes(s.target),a=o.event||c.getEventAttribute(t,"menu-event","event");a&&this.dispatchPanelEvent(a,{...e,...o,action:"menu-item"})}})}},Yt=m.__exportAll({cdsComboBoxWrap:()=>ee,cdsDropdownWrap:()=>te,cdsMultiSelectWrap:()=>se}),te={selector:"cds-dropdown",init:function(t){const e=customElements.get("cds-dropdown"),n=c.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,a=>{this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:a.detail?.item?.value,selectedText:a.detail?.item?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,a=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},ee={selector:"cds-combo-box",init:function(t){const e=customElements.get("cds-combo-box"),n=c.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,a=>{const r=a.detail?.item;this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:r?.value,selectedText:r?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,a=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},se={selector:"cds-multi-select",init:function(t){const e=customElements.get("cds-multi-select"),n=c.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,a=>{const r=t.value?t.value.split(","):[];this.dispatchPanelEvent(s,{...n,selectedItems:r})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,a=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},ne=m.__exportAll({cdsDatePickerWrap:()=>oe,cdsTimePickerWrap:()=>ae}),oe={selector:"cds-date-picker",init:function(t){const e=customElements.get("cds-date-picker"),n=c.getSemanticAttributes(t),s=t.querySelector('cds-date-picker-input[kind="from"]'),o=t.querySelector('cds-date-picker-input[kind="to"]'),a=s&&o,r=n.event;r&&this.listen(t,e.eventChange,u=>{let A;a?A={from:s.value||"",to:o.value||""}:A=t.value,this.dispatchPanelEvent(r,{...n,value:A})});const d=t.getAttribute("error-event");d&&this.listen(t,e.eventFlatpickrError,u=>{this.dispatchPanelEvent(d,{...n,error:u.detail})})}},ae={selector:"cds-time-picker",event:"cds-time-picker-changed",getData:(t,e,n)=>({...e,value:n.value})},re=m.__exportAll({cdsFileUploaderWrap:()=>ce}),ce={selector:"cds-file-uploader",init:function(t){const e=c.getSemanticAttributes(t),n=e.event;if(n){const o=t.querySelector('input[type="file"]');o&&this.listen(o,"change",a=>{this.dispatchPanelEvent(n,{...e,files:Array.from(a.target.files||[])})})}const s=t.getAttribute("delete-event");s&&this.listen(t,"cds-file-uploader-item-deleted",o=>{this.dispatchPanelEvent(s,{...e,fileName:o.detail?.fileName,fileId:o.detail?.fileId})})}},ie=m.__exportAll({cdsAccordionWrap:()=>de,cdsContentSwitcherWrap:()=>pe,cdsTabsWrap:()=>le}),le={selector:"cds-tabs",init:function(t){const e=customElements.get("cds-tabs"),n=c.getSemanticAttributes(t),s=t.getAttribute("before-select-event");s&&this.listen(t,e.eventBeforeSelect,a=>{this.dispatchPanelEvent(s,{...n,tabValue:a.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,a=>{const r=a.detail.item,d=c.getSemanticAttributes(r);this.dispatchPanelEvent(o,{...n,...d,tabValue:a.detail.value})})}},de={selector:"cds-accordion",init:function(t){const e=customElements.get("cds-accordion-item"),n=c.getSemanticAttributes(t);[...t.querySelectorAll("cds-accordion-item")].forEach(s=>{const o=c.getSemanticAttributes(s),a=o.event||n.event;a&&this.listen(s,e.eventToggle,r=>{this.dispatchPanelEvent(a,{...n,...o,open:r.detail.open})})})}},pe={selector:"cds-content-switcher",init:function(t){const e=customElements.get("cds-content-switcher"),n=c.getSemanticAttributes(t),s=t.getAttribute("before-select-event");s&&this.listen(t,e.eventBeforeSelect,a=>{this.dispatchPanelEvent(s,{...n,value:a.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,a=>{const r=a.detail.item,d=c.getSemanticAttributes(r);this.dispatchPanelEvent(o,{...n,...d,value:r.getAttribute("value")})})}},ue=m.__exportAll({cdsBreadCrumbWrap:()=>ge,cdsBreadcrumbItemWrap:()=>ve,cdsBreadcrumbLinkWrap:()=>me}),ve={selector:"cds-breadcrumb-item"},me={selector:"cds-breadcrumb-link",event:"click",getData:(t,e,n)=>(t.preventDefault(),{...e,href:n.getAttribute("href")})},ge={selector:"cds-breadcrumb",init:function(t){const e=this,n=c.getSemanticAttributes(t),s=n.event;if(s){const o=r=>{e.dispatchPanelEvent(s,{...n,...r})};e.listen(t,"click",r=>{const d=r.target.closest("cds-breadcrumb-link");d&&(r.preventDefault(),r.stopPropagation(),o(c.getSemanticAttributes(d)))});const a=t.querySelector("cds-overflow-menu-body");a&&e.listen(a,"cds-overflow-menu-item-clicked",r=>{r.stopPropagation(),o(c.getSemanticAttributes(r.target))})}}},he=m.__exportAll({cdsNumberInputWrap:()=>Ee,cdsPasswordInputWrap:()=>Se,cdsSearchWrap:()=>Ae,cdsTextAreaWrap:()=>be,cdsTextInputWrap:()=>fe}),fe={selector:"cds-text-input",multiEvent:!0,events:[{type:"input",attrName:"event",getData:(t,e)=>({...e,value:t.currentTarget.value})},{type:"change",attrName:"change-event",getData:(t,e)=>({...e,value:t.currentTarget.value})}]},be={selector:"cds-textarea",multiEvent:!0,events:[{type:"input",attrName:"event",getData:(t,e)=>({...e,value:t.currentTarget.value})},{type:"change",attrName:"change-event",getData:(t,e)=>({...e,value:t.currentTarget.value})}]},Ee={selector:"cds-number-input",event:"cds-number-input",getData:(t,e,n)=>({...e,value:t.detail.value,direction:t.detail.direction})},Se={selector:"cds-password-input",multiEvent:!0,events:[{type:"input",attrName:"event",getData:(t,e)=>({...e,value:t.currentTarget.value})},{type:"change",attrName:"change-event",getData:(t,e)=>({...e,value:t.currentTarget.value})}]},Ae={selector:"cds-search",event:"cds-search-input",getData:(t,e,n)=>({...e,value:n.value})},We=m.__exportAll({cdsCheckboxWrap:()=>Ie,cdsRadioButGroupWrap:()=>Pe,cdsSelectWrap:()=>_e,cdsSliderWrap:()=>Ce,cdsToggleWrap:()=>ke}),Ie={selector:"cds-checkbox",event:"cds-checkbox-changed",getData:(t,e,n)=>({...e,checked:t.detail.checked,value:n.value})},Pe={selector:"cds-radio-button-group",event:"cds-radio-button-group-changed",getData:(t,e)=>({...e,value:t.detail?.value})},ke={selector:"cds-toggle",event:"cds-toggle-changed",getData:(t,e)=>({...e,isOn:t.detail.checked,value:t.detail.checked})},_e={selector:"cds-select",event:"cds-select-selected",getData:(t,e)=>({...e,value:t.detail.value})},Ce={selector:"cds-slider",init:function(t){const e=c.getSemanticAttributes(t),n=e.event;n&&this.listen(t,"cds-slider-changed",o=>{this.dispatchPanelEvent(n,{...e,value:o.detail.value})});const s=t.getAttribute("input-event");s&&this.listen(t,"cds-slider-input-changed",o=>{this.dispatchPanelEvent(s,{...e,value:o.detail.value})})}},ye=m.__exportAll({cdsFilterTagWrap:()=>De,cdsSDismissibleTagWrap:()=>we,cdsTagsWrap:()=>xe}),xe={selector:"cds-tag",event:"click",getData:(t,e)=>e},we={selector:"cds-dismissible-tag",init:function(t){const e=c.getSemanticAttributes(t),n=t.getAttribute("click-event");n&&this.listen(t,"click",o=>{o.target.closest("button")||this.dispatchPanelEvent(n,{...e})});const s=e.event;s&&this.listen(t,"cds-dismissible-tag-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},De={selector:"cds-filter-tag",event:"cds-filter-tag-closed",getData:(t,e)=>({...e,action:"remove"})},Be=m.__exportAll({cdsContainedListDescriptionWrap:()=>qe,cdsContainedListItemWrap:()=>Oe,cdsContainedListWrap:()=>Te,cdsOverflowMenuWrap:()=>Me,cdsStructuredListWrap:()=>Ne,cdsTreeViewWrap:()=>ze}),Me={selector:"cds-overflow-menu",init:function(t){const e=c.getSemanticAttributes(t),n=e.event,s=t.querySelector("cds-overflow-menu-body");n&&s&&this.listen(s,"cds-overflow-menu-item-clicked",o=>{o.stopPropagation();const a=c.getSemanticAttributes(o.target);this.dispatchPanelEvent(n,{...e,...a})})}},Ne={selector:"cds-structured-list",init:function(t){const e=c.getSemanticAttributes(t);[...t.querySelectorAll("cds-structured-list-row")].forEach(n=>{const s=c.getSemanticAttributes(n),o=s.event||e.event;o&&this.listen(n,"click",a=>{a.stopPropagation(),this.dispatchPanelEvent(o,{...e,...s})})}),t.hasAttribute("selection")&&this.listen(t,"cds-structured-list-selected",n=>{const s=n.detail.row,o=c.getSemanticAttributes(s),a=e.event;a&&this.dispatchPanelEvent(a,{...e,...o})})}},Te={selector:"cds-contained-list"},qe={selector:"cds-contained-list-description"},Oe={selector:"cds-contained-list-item",event:"cds-contained-list-item-click",getData:(t,e)=>e},ze={selector:"cds-tree-view",init:function(t){const e=c.getSemanticAttributes(t);this.listen(t,"cds-tree-node-selected",s=>{const o=s.detail.node,a=c.getSemanticAttributes(o),r=a.event||e.event;r&&this.dispatchPanelEvent(r,{...e,...a,nodeId:o.id,label:o.getAttribute("label")})});const n=c.getEventAttribute(t,"expand-event");n&&this.listen(t,"cds-tree-node-expanded",s=>{this.dispatchPanelEvent(n,{...e,nodeId:s.detail.node.id,expanded:s.detail.expanded})})}},Fe=m.__exportAll({cdsActionableNotificationWrap:()=>He,cdsInlineNotificationWrap:()=>Le,cdsToastNotificationWrap:()=>Re}),Re={selector:"cds-toast-notification",event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},Le={selector:"cds-inline-notification",event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},He={selector:"cds-actionable-notification",init:function(t){const e=c.getSemanticAttributes(t),n=c.getEventAttribute(t,"close-event","event");n&&this.listen(t,"cds-notification-closed",o=>{this.dispatchPanelEvent(n,{...e,action:"closed"})});const s=c.getEventAttribute(t,"action-event");s&&this.listen(t,"cds-notification-actioned",o=>{this.dispatchPanelEvent(s,{...e,action:"actioned"})})}},Ue=m.__exportAll({cdsClickableTileWrap:()=>je,cdsExpandableTileWrap:()=>$e,cdsRadioTileWrap:()=>Ve,cdsSelectableTileWrap:()=>Ge}),je={selector:"cds-clickable-tile",init:function(t){const e=c.getSemanticAttributes(t),n=e.event;if(n){const s=e.href||t.getAttribute("href")||"";t.removeAttribute("href"),t.addEventListener("click",o=>{o.preventDefault(),o.stopPropagation(),this.dispatchPanelEvent(n,{...e,href:s})},!0)}}},$e={selector:"cds-expandable-tile",init:function(t){const e=c.getSemanticAttributes(t),n=t.getAttribute("before-toggle-event");n&&this.listen(t,"cds-expandable-tile-beingtoggled",o=>{this.dispatchPanelEvent(n,{...e,expanded:o.detail.expanded,cancelable:!0})});const s=e.event;s&&this.listen(t,"cds-expandable-tile-toggled",o=>{this.dispatchPanelEvent(s,{...e,expanded:o.detail.expanded})})}},Ge={selector:"cds-selectable-tile",event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},Ve={selector:"cds-radio-tile",event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},Ze=m.__exportAll({cdsInlineLoadingWrap:()=>Qe,cdsProgressBarWrap:()=>Je,cdsProgressIndicatorWrap:()=>Ke}),Je={selector:"cds-progress-bar",init:function(t){const e=c.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(()=>{const s=parseFloat(t.getAttribute("value")||"0");s>=parseFloat(t.getAttribute("max")||"100")&&this.dispatchPanelEvent(e.event,{...e,value:s,status:"complete"})});n.observe(t,{attributes:!0,attributeFilter:["value"]}),t._progressObserver=n}}},Ke={selector:"cds-progress-indicator",init:function(t){const e=c.getSemanticAttributes(t);this.listen(t,"cds-progress-step-click",n=>{const s=n.target,o=c.getSemanticAttributes(s),a=o.event||e.event;a&&this.dispatchPanelEvent(a,{...e,...o,stepIndex:s.getAttribute("data-index"),stepLabel:s.getAttribute("label")})})}},Qe={selector:"cds-inline-loading",init:function(t){const e=c.getSemanticAttributes(t),n=e.event;n&&this.listen(t,"cds-inline-loading-onsuccess",o=>{this.dispatchPanelEvent(n,{...e,status:"finished"})});const s=t.getAttribute("status-event");if(s){const o=new MutationObserver(a=>{a.forEach(r=>{if(r.attributeName==="status"){const d=t.getAttribute("status");this.dispatchPanelEvent(s,{...e,status:d})}})});o.observe(t,{attributes:!0,attributeFilter:["status"]}),t._statusObserver=o}}},Xe=m.__exportAll({cdsPopoverWrap:()=>ts,cdsToggletipWrap:()=>es,cdsTooltipWrap:()=>Ye}),Ye={selector:"cds-tooltip",init:function(t){const e=c.getSemanticAttributes(t),n=c.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-tooltip-beingopened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=c.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-tooltip-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},ts={selector:"cds-popover",init:function(t){const e=c.getSemanticAttributes(t),n=c.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-popover-beingopened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=c.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-popover-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},es={selector:"cds-toggletip",init:function(t){const e=c.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(s=>{s.forEach(o=>{if(o.attributeName==="open"){const a=t.hasAttribute("open");this.dispatchPanelEvent(e.event,{...e,action:a?"opened":"closed",open:a})}})});n.observe(t,{attributes:!0,attributeFilter:["open"]}),t._toggletipObserver=n}}},ss=m.__exportAll({cdsCodeSnipWrap:()=>os,cdsLinkWrap:()=>ns}),ns={selector:"cds-link",event:"click",getData:(t,e,n)=>({...e,href:n.getAttribute("href")})},os={selector:"cds-code-snippet",event:"cds-copy-button-clicked",getData:(t,e)=>({...e,action:"copied"})},as=m.__exportAll({cdsBadgeIndicatorWrap:()=>vs,cdsFormGroupWrap:()=>is,cdsFormItemWrap:()=>cs,cdsFormWrap:()=>rs,cdsHeadingWrap:()=>ds,cdsIconIndicatorWrap:()=>us,cdsIconWrap:()=>ps,cdsLoadingWrap:()=>ms,cdsSkeletonPlaceholderWrap:()=>hs,cdsSkeletonTextWrap:()=>gs,cdsStackWrap:()=>ls}),rs={selector:"cds-form"},cs={selector:"cds-form-item"},is={selector:"cds-form-group"},ls={selector:"cds-stack"},ds={selector:"cds-heading"},ps={selector:"cds-icon"},us={selector:"cds-icon-indicator"},vs={selector:"cds-badge-indicator"},ms={selector:"cds-loading"},gs={selector:"cds-skeleton-text"},hs={selector:"cds-skeleton-placeholder"};function h(t){return Object.values(t).filter(e=>typeof e=="object"&&e!==null&&e.selector)}var fs=[...h(Dt),...h(_t),...h(Mt),...h(Ut),...h(Gt),...h(Yt),...h(ne),...h(re),...h(ie),...h(ue),...h(he),...h(We),...h(ye),...h(Be),...h(Fe),...h(Ue),...h(Ze),...h(Xe),...h(ss),...h(as)];function bs(){const t=new Map;return fs.forEach(e=>{t.set(e.selector,e)}),t}var Es=()=>import("@carbon/web-components/es/components/accordion/index.js"),R=()=>import("@carbon/web-components/es/components/breadcrumb/index.js"),Ss=()=>import("@carbon/web-components/es/components/stack/index.js"),As=()=>import("@carbon/web-components/es/components/structured-list/index.js"),L=()=>import("@carbon/web-components/es/components/contained-list/index.js"),N=()=>import("@carbon/web-components/es/components/tile/index.js"),Ws=()=>import("@carbon/web-components/es/components/tree-view/index.js"),Is=()=>import("@carbon/web-components/es/components/link/index.js"),Ps=()=>import("@carbon/web-components/es/components/tabs/index.js"),ks=()=>import("@carbon/web-components/es/components/content-switcher/index.js"),X=()=>import("@carbon/web-components/es/components/menu/index.js"),_s=()=>import("@carbon/web-components/es/components/overflow-menu/index.js"),H=()=>import("@carbon/web-components/es/components/button/index.js"),Y=()=>import("@carbon/web-components/es/components/icon-button/index.js"),Cs=()=>import("@carbon/web-components/es/components/combo-button/index.js"),ys=()=>import("@carbon/web-components/es/components/copy-button/index.js"),xs=()=>import("@carbon/web-components/es/components/checkbox/index.js"),ws=()=>import("@carbon/web-components/es/components/radio-button/index.js"),Ds=()=>import("@carbon/web-components/es/components/toggle/index.js"),U=()=>import("@carbon/web-components/es/components/select/index.js"),Bs=()=>import("@carbon/web-components/es/components/slider/index.js"),j=()=>import("@carbon/web-components/es/components/text-input/index.js"),Ms=()=>import("@carbon/web-components/es/components/textarea/index.js"),Ns=()=>import("@carbon/web-components/es/components/number-input/index.js"),Ts=()=>import("@carbon/web-components/es/components/password-input/index.js"),tt=()=>import("@carbon/web-components/es/components/search/index.js"),qs=()=>import("@carbon/web-components/es/components/combo-box/index.js"),Os=()=>import("@carbon/web-components/es/components/dropdown/index.js"),zs=()=>import("@carbon/web-components/es/components/multi-select/index.js"),Fs=()=>import("@carbon/web-components/es/components/date-picker/index.js"),Rs=()=>import("@carbon/web-components/es/components/time-picker/index.js"),Ls=()=>import("@carbon/web-components/es/components/file-uploader/index.js"),et=()=>import("@carbon/web-components/es/components/form/index.js"),Hs=()=>import("@carbon/web-components/es/components/form-group/index.js"),Us=()=>import("@carbon/web-components/es/components/data-table/index.js"),st=()=>import("@carbon/web-components/es/components/pagination/index.js"),js=()=>import("@carbon/web-components/es/components/code-snippet/index.js"),$=()=>import("@carbon/web-components/es/components/tag/index.js"),$s=()=>import("@carbon/web-components/es/components/badge-indicator/index.js"),G=()=>import("@carbon/web-components/es/components/notification/index.js"),Gs=()=>import("@carbon/web-components/es/components/loading/index.js"),Vs=()=>import("@carbon/web-components/es/components/inline-loading/index.js"),Zs=()=>import("@carbon/web-components/es/components/progress-bar/index.js"),Js=()=>import("@carbon/web-components/es/components/progress-indicator/index.js"),Ks=()=>import("@carbon/web-components/es/components/skeleton-placeholder/index.js"),Qs=()=>import("@carbon/web-components/es/components/skeleton-text/index.js"),P=()=>import("@carbon/web-components/es/components/modal/index.js"),k=()=>import("@carbon/web-components/es/components/tooltip/index.js"),Xs=()=>import("@carbon/web-components/es/components/popover/index.js"),Ys=()=>import("@carbon/web-components/es/components/toggle-tip/index.js"),tn=()=>import("@carbon/web-components/es/components/heading/index.js"),en=()=>import("@carbon/web-components/es/components/icon/index.js"),sn=()=>import("@carbon/web-components/es/components/icon-indicator/index.js"),q={"cds-table":[k,H,j,tt,U,st,Us],"cds-pagination":[U,j,st],"cds-button":[k,H],"cds-icon-button:not([data-toggle])":[k,Y],"cds-icon-button[data-toggle]":[k,Y],"cds-button[data-fab]":[k,H],"cds-copy-button":[k,ys],"cds-combo-button":[k,Cs],"cds-checkbox":[xs],"cds-radio-button-group":[ws],"cds-toggle":[Ds],"cds-select":[U],"cds-slider":[Bs],"cds-text-input":[j],"cds-textarea":[Ms],"cds-number-input":[Ns],"cds-password-input":[k,Ts],"cds-search":[tt],"cds-dropdown":[Os],"cds-combo-box":[qs],"cds-multi-select":[zs],"cds-date-picker":[Fs],"cds-time-picker":[Rs],"cds-file-uploader":[Ls],"cds-tabs":[Ps],"cds-accordion":[Es],"cds-content-switcher":[ks],"cds-breadcrumb":[R],"cds-breadcrumb-item":[R],"cds-breadcrumb-link":[R],"cds-menu":[X],"cds-menu-button":[X],"cds-overflow-menu":[_s],"cds-structured-list":[As],"cds-contained-list":[L],"cds-contained-list-item":[L],"cds-contained-list-description":[L],"cds-tree-view":[Ws],"cds-modal":[P],"cds-modal-header":[P],"cds-modal-heading":[P],"cds-modal-label":[P],"cds-modal-close-button":[P],"cds-modal-body":[P],"cds-modal-body-content":[P],"cds-modal-footer":[P],"cds-modal-footer-button":[P],"cds-toast-notification":[G],"cds-inline-notification":[G],"cds-actionable-notification":[G],"cds-clickable-tile":[N],"cds-expandable-tile":[N],"cds-selectable-tile":[N],"cds-radio-tile":[N],"cds-progress-bar":[Zs],"cds-progress-indicator":[Js],"cds-inline-loading":[Vs],"cds-tooltip":[k],"cds-popover":[Xs],"cds-toggletip":[Ys],"cds-tag":[$],"cds-dismissible-tag":[$],"cds-filter-tag":[$],"cds-link":[Is],"cds-code-snippet":[js],"cds-form":[et],"cds-form-item":[et],"cds-form-group":[Hs],"cds-stack":[Ss],"cds-heading":[tn],"cds-icon":[en],"cds-icon-indicator":[sn],"cds-badge-indicator":[$s],"cds-loading":[Gs],"cds-skeleton-text":[Qs],"cds-skeleton-placeholder":[Ks]};function nn(t){const e=new Map;if(!t||!(t instanceof Element))return e;for(const s of Object.keys(T))e.set(s,[]);for(const[s,o]of Object.entries(T))t.matches(s)&&e.get(s).push(t);const n=t.querySelectorAll("*");for(const s of n)for(const[o,a]of Object.entries(T))s.matches(o)&&e.get(o).push(s);for(const[s,o]of e.entries())o.length===0&&e.delete(s);return e}function on(t){const e=new Set;for(const[n,s]of t.entries())s.length>0&&q[n]&&q[n].forEach(o=>e.add(o));return e}async function an(t,e){if(t.size===0)return;const n=Array.from(t).map(async s=>(e.has(s)||e.set(s,s()),e.get(s)));await Promise.all(n)}function rn(t,e){let n=0;for(const[s,o]of t.entries()){const a=T[s];o.forEach(r=>{if(a.init){a.init.call(e,r);return}if(a.multiEvent){const A=c.getSemanticAttributes(r);a.events.forEach(W=>{const x=c.getEventAttribute(r,W.attrName,"event");x&&e.listen(r,W.type,O=>{e.dispatchPanelEvent(x,W.getData(O,A,r))})});return}const d=c.getSemanticAttributes(r),u=d.event;u&&e.listen(r,a.event,A=>{A.stopPropagation();const W=a.getData(A,d,r),x=W._eventOverride||u;delete W._eventOverride,e.dispatchPanelEvent(x,W)})}),n+=o.length}return n}var T={...Object.fromEntries(bs())},cn=async function(t,e){const n=nn(t);if(n.size===0){this.debugMe("[Carbon] No Carbon components found in panel");return}this.carbonComponents||(this.carbonComponents=new Map);for(const[a,r]of n.entries())this.carbonComponents.set(a,r);const s=on(n);if(s.size>0)try{await an(s,e)}catch(a){console.error("[Carbon] Failed to load some component modules:",a)}const o=rn(n,this);o>0&&this.debugMe(`[Carbon] Total components initialized: ${o}`)},ln=(t={})=>{const{preload:e=[]}=t,n=new Map;if(e.length>0){const s=e.filter(a=>q[a]?!0:(console.warn(`[Carbon] No import found for selector: ${a}`),!1)),o=s.flatMap(a=>q[a].map(r=>(n.has(r)||n.set(r,r()),n.get(r))));Promise.all(o).then(()=>console.debug(`[Carbon] Preloaded: ${s.join(", ")}`)).catch(a=>console.warn("[Carbon] Preload error:",a))}m.ComponentLibraryRegistry.register("carbon",{cache:n,render:async function(s,o){try{await cn.call(this,s,o)}catch(a){console.error("[Carbon] Initialization error:",a)}},dispose:function(s){},config:{version:"2.0",description:"IBM Carbon Design System Web Components"}}),console.debug("[Zooy] Carbon Design System library registered")};exports.registerCarbonLibrary=ln;
@@ -1 +0,0 @@
1
- const M=require("./component-library-registry-BBQV6Kpv.js"),l=require("./tree-utils-BYnipT-p.js");let u=require("badu"),i=require("material-components-web");i=M.__toESM(i);var D=function(t){[...t.querySelectorAll(".mdc-ripple-surface")].forEach(i.ripple.MDCRipple.attachTo)},E=function(t){[...t.querySelectorAll(".mdc-button")].forEach(o=>{i.ripple.MDCRipple.attachTo(o),this.listen(o,"click",n=>{const r=n.currentTarget,e=l.getElDataMap(r);this.dispatchPanelEvent(e.zv,Object.assign({orgEvt:n,trigger:r,href:r.href||e.href},e))})})},v=function(t){[...t.querySelectorAll(".mdc-fab")].forEach(o=>{i.ripple.MDCRipple.attachTo(o),this.listen(o,"click",n=>{n.stopPropagation();const r=n.currentTarget,e=l.getElDataMap(r);this.dispatchPanelEvent(e.zv,Object.assign({orgEvt:n,trigger:r,href:r.href||e.href},e))})})},b=function(t){[...t.querySelectorAll(".mdc-icon-button:not(.mdc-icon-toggle)")].forEach(o=>{const n=new i.ripple.MDCRipple(o);o.zComponent=n,n.unbounded=!0,this.listen(o,"click",r=>{const e=r.currentTarget,c=l.getElDataMap(e),a=c.zv;(0,u.isDefAndNotNull)(a)&&(r.stopPropagation(),this.dispatchPanelEvent(c.zv,Object.assign({orgEvt:r,trigger:e,href:e.href||c.href},c)))})})},y=function(t){[...t.querySelectorAll(".mdc-icon-toggle")].forEach(o=>{const n=o.ariaPressed==="true",r=new i.iconButton.MDCIconButtonToggle(o);r.on=n,o.zComponent=r,this.listen(o,"click",e=>e.stopPropagation()),this.listen(o,"MDCIconButtonToggle:change",e=>{e.stopPropagation();const c=e.currentTarget,a=e.detail.isOn,s=l.getElDataMap(c);this.dispatchPanelEvent(s.zv,Object.assign({orgEvt:e,trigger:c,href:c.href||s.href,isOn:a},s))})})},S=function(t){const o="mdc-checkbox__native-control";[...t.querySelectorAll(".mdc-data-table")].forEach(n=>{const r=new i.dataTable.MDCDataTable(n);r.selectedAllAcrossPages=!1,r.onSomeSelected=c=>{},r.onNoneSelected=c=>{},r.onAllSelected=c=>{},r.toggleSelectAcrossPages=()=>(r.selectedAllAcrossPages=!r.selectedAllAcrossPages,r.selectedAllAcrossPages),r.setSelectAcrossPages=c=>(r.selectedAllAcrossPages=c,r.selectedAllAcrossPages),r.getSelectAcrossPages=()=>r.selectedAllAcrossPages,n.zComponent=r,n.dataTable=r;const e=c=>{const a=r.getSelectedRowIds().length;c.type==="MDCDataTable:selectedAll"?r.onAllSelected(a):a===0?r.onNoneSelected(a):r.onSomeSelected(a)};["MDCDataTable:rowSelectionChanged","MDCDataTable:selectedAll","MDCDataTable:unselectedAll"].forEach(c=>{this.listen(n,c,e)}),[...n.querySelectorAll(".mdc-data-table__row")].forEach(c=>{this.listen(c,"click",a=>{if(!a.target.classList.contains(o)){a.stopPropagation();const s=a.currentTarget,d=l.getElDataMap(s);this.dispatchPanelEvent(d.zv,Object.assign({orgEvt:a,trigger:s,href:s.href||d.href},d))}})})})},w=function(t){[...t.querySelectorAll(".mdc-tab-bar")].forEach(o=>{const n=new i.tabBar.MDCTabBar(o);o.zComponent=n,this.listen(o,"MDCTabBar:activated",r=>{const e=n.tabList[r.detail.index].root,c=l.getElDataMap(e);this.dispatchPanelEvent(c.zv,Object.assign({orgEvt:r,trigger:e,href:e.href||c.href},c))})})},A=function(t){[...t.querySelectorAll(".mdc-switch")].forEach(o=>{const n=o.querySelector("input"),r=l.getElDataMap(n);this.listen(n,"change",e=>{e.stopPropagation(),this.dispatchPanelEvent(r.zv,Object.assign({orgEvt:e,trigger:n,href:n.href||r.href,isOn:n.checked},r))})})},T=function(t){[...t.querySelectorAll(".mdc-chip-set")].forEach(o=>{const n=i.chips.MDCChipSet.attachTo(o);o.zComponent=n,n.listen("MDCChip:interaction",r=>{const e=n.chips.find(s=>s.id===r.detail.chipId),c=e.root,a=l.getElDataMap(c);this.dispatchPanelEvent(a.zv,Object.assign({orgEvt:r,trigger:c,href:c.href||a.href,isOn:e.selected},a))})})},P=function(t){[...t.querySelectorAll(".mdc-menu-surface")].forEach(i.menuSurface.MDCMenuSurface.attachTo)},q=function(t){[...t.querySelectorAll(".mdc-menu-surface--anchor:not(.mdc-select__menu)")].forEach(o=>{const n=o.querySelector(".mdc-menu"),r=l.getElDataMap(n).corner||"BOTTOM_START",e=new i.menu.MDCMenu(n);if(n.zComponent=e,e.setAnchorCorner(i.menuSurface.Corner[r]),e.items.forEach(i.ripple.MDCRipple.attachTo),e.quickOpen=!1,e.listen("click",c=>c.stopPropagation()),e.listen("MDCMenu:selected",c=>{c.stopPropagation();const a=c.detail.item,s=l.getElDataMap(a);this.dispatchPanelEvent(s.zv,Object.assign({orgEvt:c,trigger:a,href:a.href||s.href},s))}),o.addEventListener("click",()=>e.open=!e.open),n.classList.contains("z2-filter-on-keydown")){const c=()=>{s="",e.items.forEach(h=>h.classList.remove("hidden-list-itme"))},a=[...e.items].map(h=>(0,u.toLowerCase)(h.querySelector(".mdc-deprecated-list-item__text").textContent));let s="";const d="abcdefghijklmnopqrstuvwxyz0123456789 -_",g=h=>{const f=(0,u.toLowerCase)(h.key);h.defaultPrevented||(d.includes(f)?s=`${s}${f}`:f==="escape"?c():f==="backspace"&&(s=s.slice(0,-1)),s!==""&&a.forEach((C,m)=>{C.includes(s)?e.items[m].classList.remove("hidden-list-itme"):e.items[m].classList.add("hidden-list-itme")}))};e.listen("MDCMenuSurface:closed",()=>{c(),document.removeEventListener("keydown",g,!0)}),e.listen("MDCMenuSurface:opened",()=>{c(),document.addEventListener("keydown",g,!0)})}})},_=function(t){[...t.querySelectorAll(".mdc-deprecated-list:not(.mdc-menu__items)")].forEach(o=>{const n=new i.list.MDCList(o);o.zComponent=n,(0,u.isDefAndNotNull)(o.id)&&this.listMap.set(o.id,n),n.listElements.forEach(r=>i.ripple.MDCRipple.attachTo(r)),this.listen(o,"click",r=>{const e=r.target.closest("li"),c=l.getElDataMap(e);this.dispatchPanelEvent(c.zv,Object.assign({orgEvt:r,trigger:e,href:e.href||c.href},c))})})},x=function(t){[...t.querySelectorAll(".mdc-slider")].forEach(o=>{const n=new i.slider.MDCSlider(o);o.zComponent=n;const r=l.getElDataMap(o),e=o.parentElement.querySelector(`#${r.inputid}`);this.listen(o,"MDCSlider:change",()=>{e.value=n.value})})},k=function(t){[...t.querySelectorAll(".mdc-linear-progress")].forEach(o=>{o.linProg=i.linearProgress.MDCLinearProgress.attachTo(o)})},L=function(t){[...t.querySelectorAll(".mdc-text-field")].forEach(i.textField.MDCTextField.attachTo)},O=function(t){[...t.querySelectorAll(".mdc-text-field-icon")].forEach(i.textField.MDCTextFieldIcon.attachTo)},z=function(t,o){const n=e=>{const c=document.createElement("li");c.classList.add("mdc-deprecated-list-item"),c.dataset.value=e.value;const a=document.createElement("span");a.classList.add("mdc-deprecated-list-item__ripple"),c.appendChild(a);const s=document.createElement("span");return s.classList.add("mdc-deprecated-list-item__text"),s.textContent=e.textContent,c.appendChild(s),e.selected&&c.classList.add("mdc-deprecated-list-item--selected"),c},r=(e,c,a)=>()=>{for(;e.firstChild;)e.removeChild(e.lastChild);[...c.options].forEach(s=>e.appendChild(n(s))),a.layoutOptions();try{a.selectedIndex=c.options.selectedIndex}catch(s){console.error("MDC Select index sync error:",{targetIndex:c.options.selectedIndex,htmSelectField:c,mdcSelect:a,currentIndex:a.selectedIndex,error:s})}};[...t.querySelectorAll(".mdc-select")].forEach(e=>{const c=e.querySelector("ul.mdc-deprecated-list"),a=e.querySelector("select"),s=new i.select.MDCSelect(e);e.zComponent=s,a.buildMenu=r(c,a,s),a.buildMenu();const d=s.menu;o.hoist(d.menuSurface.root),d.setIsHoisted(!0),s.listen("MDCSelect:change",()=>{a.options[s.selectedIndex].selected=!0,a.dispatchEvent(new Event("custom:select:change"))})})},F=function(t){[...t.querySelectorAll(".mdc-form-field:not(.for-radio):not(.for-checkbox)")].forEach(i.formField.MDCFormField.attachTo)},I=function(t){[...t.querySelectorAll(".mdc-form-field.for-radio")].forEach(o=>{const n=new i.formField.MDCFormField(o),r=o.querySelector(".mdc-radio");r.querySelector('input[type="radio"]').classList.add("mdc-radio__native-control"),n.input=new i.radio.MDCRadio(r)})},B=function(t){[...t.querySelectorAll(".mdc-form-field.for-checkbox")].forEach(o=>{const n=o.querySelector(".mdc-checkbox"),r=new i.checkbox.MDCCheckbox(n),e=new i.formField.MDCFormField(o);e.input=r})},p=null;function j(){return p||((0,u.isDefAndNotNull)(window.mdc)&&Object.prototype.hasOwnProperty.call(window.mdc,"autoInit")?(p=Promise.resolve(),p):(p=new Promise((t,o)=>{const n=window.__MDC_CDN_URL__||"https://unpkg.com/material-components-web@14.0.0/dist/material-components-web.min.js",r=document.createElement("script");r.src=n,r.async=!0,r.onload=()=>{(0,u.isDefAndNotNull)(window.mdc)&&Object.prototype.hasOwnProperty.call(window.mdc,"autoInit")?t():o(new Error("MDC library loaded but window.mdc is not available"))},r.onerror=()=>{o(new Error(`Failed to load MDC library from ${n}`))},document.head.appendChild(r)}),p))}async function R(){try{await j()}catch(t){throw t}M.ComponentLibraryRegistry.register("mdc",{render:function(t,o){(0,u.isDefAndNotNull)(window.mdc)&&Object.prototype.hasOwnProperty.call(window.mdc,"autoInit")&&(D.call(this,t),E.call(this,t),v.call(this,t),b.call(this,t),y.call(this,t),w.call(this,t),A.call(this,t),T.call(this,t),P.call(this,t),q.call(this,t),_.call(this,t),x.call(this,t),k.call(this,t),F.call(this,t),z.call(this,t,this),O.call(this,t),L.call(this,t),I.call(this,t),B.call(this,t),S.call(this,t))},dispose:function(t){[...t.querySelectorAll("[data-mdc-auto-init]")].forEach(o=>{try{o[o.getAttribute("data-mdc-auto-init")].destroy()}catch{}})},config:{version:"1.0",description:"Google Material Design Components (legacy, being phased out)"},utils:l.tree_utils_exports}),console.debug("[Zooy] MDC library registered")}exports.registerMdcLibrary=R;