@trintel/zooy 1.0.1 → 1.0.6

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 (157) hide show
  1. package/dist/chunks/{button-B1jzfT-Z.js → button-B0pHcmMI.js} +4 -4
  2. package/dist/chunks/{button-C-oX8EmF.js → button-ipPZo47H.js} +1 -1
  3. package/dist/chunks/{button-skeleton-CK3BHdja.js → button-skeleton-B6LNPMkm.js} +1 -1
  4. package/dist/chunks/{button-skeleton-DoCp6sBb.js → button-skeleton-k3oSeCNN.js} +4 -4
  5. package/dist/chunks/{checkbox-CgFjYxQ_.js → checkbox-CbojCj7Q.js} +5 -5
  6. package/dist/chunks/{checkbox-t3G-H1NN.js → checkbox-DIl3-QIU.js} +1 -1
  7. package/dist/chunks/{class-map-D6tjF27Y.js → class-map-CzV93n0F.js} +1 -1
  8. package/dist/chunks/{class-map-FWQBIzSx.js → class-map-YDvRldcS.js} +1 -1
  9. package/dist/chunks/{content-switcher-item-c4WBWz31.js → content-switcher-item-BImKB6ec.js} +1 -1
  10. package/dist/chunks/{content-switcher-item-CedjjtvP.js → content-switcher-item-ITN6pSnn.js} +4 -4
  11. package/dist/chunks/{dropdown-item-Dh5IEXDr.js → dropdown-item-CsDrcPOQ.js} +171 -160
  12. package/dist/chunks/dropdown-item-kRfkvScw.js +69 -0
  13. package/dist/chunks/{icon-loader-ChKeNR4s.js → icon-loader-Dow8ZZc6.js} +1 -1
  14. package/dist/chunks/{icon-loader-CJxyg-lp.js → icon-loader-mGBPivE_.js} +1 -1
  15. package/dist/chunks/{icon-loader-utils-BwViqIXz.js → icon-loader-utils-Bu4uywG7.js} +1 -1
  16. package/dist/chunks/{icon-loader-utils-DK8DViXt.js → icon-loader-utils-DyTEZTmU.js} +1 -1
  17. package/dist/chunks/{if-defined-DYWhlnlE.js → if-defined-8Z59Lgbt.js} +1 -1
  18. package/dist/chunks/{if-defined-eJcDYClo.js → if-defined-BDPFnNTF.js} +1 -1
  19. package/dist/chunks/if-non-empty-D97PxarH.js +1 -0
  20. package/dist/chunks/{if-non-empty-COTeEFkK.js → if-non-empty-PXsZdrZY.js} +1 -1
  21. package/dist/chunks/{index-C2oV5vU3.js → index--36H8tEu.js} +1 -1
  22. package/dist/chunks/{index-pc36PiDY.js → index-0GgWrbOC.js} +1 -1
  23. package/dist/chunks/{index-CIiIAqrQ.js → index-3DFPYYjC.js} +130 -120
  24. package/dist/chunks/{index-CFqKkC5Z.js → index-6SYj2oOF.js} +1 -1
  25. package/dist/chunks/{index-yzFU-E6F.js → index-7GkEyUE1.js} +7 -7
  26. package/dist/chunks/{index-hn76Yo-L.js → index-AIOAeqkA.js} +1 -1
  27. package/dist/chunks/{index-i9jyrFc9.js → index-B-Yx5Hy2.js} +1 -1
  28. package/dist/chunks/{index-BAAA4wkE.js → index-B1HY13ji.js} +2 -2
  29. package/dist/chunks/{index-ClE0uX_c.js → index-B2gykqN9.js} +7 -7
  30. package/dist/chunks/{index-BwRxBdeg.js → index-B6dAUFGm.js} +1 -1
  31. package/dist/chunks/{index-CWlg_Hu2.js → index-B9EQl0eG.js} +4 -4
  32. package/dist/chunks/{index-BBWp83R-.js → index-BAoe1j9r.js} +1 -1
  33. package/dist/chunks/{index-Bb_1S0pr.js → index-BI5zwXiD.js} +5 -5
  34. package/dist/chunks/{index-BRnzFxjk.js → index-BI6a_hyH.js} +1 -1
  35. package/dist/chunks/{index-BQnyeVHX.js → index-BKZY1peh.js} +1 -1
  36. package/dist/chunks/{index-TJL02uup.js → index-BMibCYm9.js} +143 -139
  37. package/dist/chunks/{index-uxZPrL2m.js → index-BMwdiru1.js} +6 -6
  38. package/dist/chunks/{index-DrDKdYFJ.js → index-BN3-hMLP.js} +1 -1
  39. package/dist/chunks/{index-BBap1uCI.js → index-BNHMp_x_.js} +1 -1
  40. package/dist/chunks/{index-OgL1A9Rm.js → index-BWFaxGTp.js} +26 -24
  41. package/dist/chunks/{index-DfFx1Jz3.js → index-BWRKkjuC.js} +3 -3
  42. package/dist/chunks/{index-DSOPjl5x.js → index-BX6awuOJ.js} +7 -7
  43. package/dist/chunks/{index-BvdNKhJw.js → index-BXU45N6f.js} +1 -1
  44. package/dist/chunks/{index-9fmHblh5.js → index-BXkpcsH3.js} +1 -1
  45. package/dist/chunks/{index-CJdEJ8pY.js → index-BYEi67oz.js} +1 -1
  46. package/dist/chunks/index-BZa4lAPZ.js +4 -0
  47. package/dist/chunks/{index-DGw1TVFB.js → index-BbbS7f42.js} +2 -2
  48. package/dist/chunks/{index-Bls8zdHV.js → index-BbkJWRo0.js} +5 -5
  49. package/dist/chunks/{index-DYvD9xjl.js → index-BbzTQivK.js} +1 -1
  50. package/dist/chunks/{index-CV7TVQ4T.js → index-Bc6QDBfO.js} +5 -5
  51. package/dist/chunks/{index-qgl9W8eF.js → index-BfNg6Bfq.js} +39 -39
  52. package/dist/chunks/{index-DUtoSCTU.js → index-Bg7fp8eN.js} +10 -10
  53. package/dist/chunks/{index-BMquNDkd.js → index-BgL2QyGL.js} +7 -7
  54. package/dist/chunks/{index-cuMoh7qn.js → index-BnGRdxLM.js} +1 -1
  55. package/dist/chunks/{index-du3RQU31.js → index-BrES15QR.js} +7 -7
  56. package/dist/chunks/{index-QzojJs5M.js → index-Bsg-X5g6.js} +2 -2
  57. package/dist/chunks/{index-D8LE8G2j.js → index-BvewYlR6.js} +18 -18
  58. package/dist/chunks/{index-0AElqkkj.js → index-Bwg9JvxU.js} +1 -1
  59. package/dist/chunks/{index-CYIcfuAW.js → index-BxGnpgtA.js} +3 -3
  60. package/dist/chunks/{index-Dh4LYLg5.js → index-BxYuKaia.js} +11 -11
  61. package/dist/chunks/{index-C6bOvXSf.js → index-BzEYhXCp.js} +4 -4
  62. package/dist/chunks/{index-DyO3Wdy_.js → index-C4_lq5Gk.js} +1 -1
  63. package/dist/chunks/{index-CsjJntyD.js → index-C78nOW55.js} +1 -1
  64. package/dist/chunks/{index-Bt7v-zqV.js → index-C7bMRqDp.js} +1 -1
  65. package/dist/chunks/{index-C572_UKV.js → index-C8U2hhih.js} +1 -1
  66. package/dist/chunks/{index-7cXLLw89.js → index-CDogTzrE.js} +5 -5
  67. package/dist/chunks/{index-C-pfDP7B.js → index-CGgfnUw2.js} +1 -1
  68. package/dist/chunks/{index-CzAwJhyQ.js → index-CM5SpejK.js} +3 -3
  69. package/dist/chunks/{index-4XJJobHw.js → index-CTCHzPo9.js} +5 -5
  70. package/dist/chunks/{index-GbWz6fuF.js → index-CakpnEVH.js} +5 -5
  71. package/dist/chunks/index-Ck0UGXjG.js +25 -0
  72. package/dist/chunks/{index-CqQZpHti.js → index-CnMeUAwm.js} +1 -1
  73. package/dist/chunks/{index-4WNeLsiw.js → index-Cogd5TV0.js} +3 -3
  74. package/dist/chunks/index-Cp8R3aIT.js +2 -0
  75. package/dist/chunks/{index-CEy6bu7P.js → index-Cp8qvks4.js} +1 -1
  76. package/dist/chunks/{index-JWULDURW.js → index-Cqq6DFEH.js} +1 -1
  77. package/dist/chunks/{index-DWjrCygZ.js → index-CwGCzAjy.js} +34 -26
  78. package/dist/chunks/{index-CIZ3Gnmm.js → index-D0YPAPQg.js} +1 -1
  79. package/dist/chunks/{index-CKYRBtLC.js → index-D1nMSslt.js} +1 -1
  80. package/dist/chunks/{index-Bunat0DP.js → index-D6A8xmd2.js} +6 -6
  81. package/dist/chunks/{index-Bo2QmpPO.js → index-D9QkLbZ1.js} +1 -1
  82. package/dist/chunks/{index-Ctna95NT.js → index-DAp9FO-q.js} +4 -4
  83. package/dist/chunks/{index-BGGDxbLL.js → index-DDrcJDBe.js} +5 -5
  84. package/dist/chunks/{index-Bff6B9vY.js → index-DH3GxHNZ.js} +105 -75
  85. package/dist/chunks/{index-B8Ze9ISK.js → index-DHoTp3xF.js} +1 -1
  86. package/dist/chunks/{index-GDVDUQtg.js → index-DKAiRnw5.js} +86 -68
  87. package/dist/chunks/{index-Cp3P3KaW.js → index-DLLtonpF.js} +1 -1
  88. package/dist/chunks/{index-CTsGb3mD.js → index-DNAwj4nV.js} +7 -7
  89. package/dist/chunks/{index-Dk3tlz8Q.js → index-DQpYsYAB.js} +1 -1
  90. package/dist/chunks/index-DUgugnka.js +1 -0
  91. package/dist/chunks/{index-DZabSr3s.js → index-DWBna1oy.js} +3 -3
  92. package/dist/chunks/{index-CBICHiFD.js → index-DaPLGBBg.js} +219 -218
  93. package/dist/chunks/{index-Bymsj9gH.js → index-DhmD363c.js} +1 -1
  94. package/dist/chunks/{index-B4SxU_Hu.js → index-DjiQpWrp.js} +7 -7
  95. package/dist/chunks/{index-Dd9iSSXa.js → index-DlGr9Xg0.js} +3 -3
  96. package/dist/chunks/{index-MgWriQfr.js → index-DmO2xqTL.js} +1 -1
  97. package/dist/chunks/{index-CoAT1iC6.js → index-DnkzqA37.js} +1 -1
  98. package/dist/chunks/{index-Cv6qE9qP.js → index-DnqBivkj.js} +1 -1
  99. package/dist/chunks/{index-Cwb1pbm9.js → index-DotbnSU-.js} +5 -5
  100. package/dist/chunks/{index-DBsASlZI.js → index-DqcQzBNJ.js} +1 -1
  101. package/dist/chunks/{index-Z4ar01y-.js → index-DrqxeFX2.js} +4 -4
  102. package/dist/chunks/{index-_xRytR0j.js → index-Ds7klCOs.js} +1 -1
  103. package/dist/chunks/{index-Cnsy7Qk3.js → index-DtEEVxFL.js} +5 -5
  104. package/dist/chunks/{index-DbAeG1nY.js → index-DwyQjc9z.js} +1 -1
  105. package/dist/chunks/{index-BseD7Jzt.js → index-DxLh8qIT.js} +1 -1
  106. package/dist/chunks/{index-lFqOe0IJ.js → index-HDrN-36Q.js} +1 -1
  107. package/dist/chunks/{index-uwN33H1P.js → index-HZx30Dhs.js} +6 -6
  108. package/dist/chunks/{index-BeMnerDj.js → index-IFR1tBYd.js} +8 -8
  109. package/dist/chunks/{index-D9sRIKMQ.js → index-Ibt0J2Et.js} +5 -5
  110. package/dist/chunks/{index-BwFE4R87.js → index-LXKAODF5.js} +3 -3
  111. package/dist/chunks/{index-DNWjc2SJ.js → index-PFLnPKPE.js} +2 -2
  112. package/dist/chunks/{index-BbJQIwkY.js → index-QGOiUcMf.js} +9 -9
  113. package/dist/chunks/{index-CQl4NaPS.js → index-S--lY3tt.js} +1 -1
  114. package/dist/chunks/{index-DyyLrVDY.js → index-WZTepZq8.js} +4 -4
  115. package/dist/chunks/{index-B5GB0rQW.js → index-XQC8MAEe.js} +168 -152
  116. package/dist/chunks/{index-hH_m653R.js → index-Xu24xEY5.js} +5 -5
  117. package/dist/chunks/{index-Bi9WliCA.js → index-aYMyslt1.js} +6 -6
  118. package/dist/chunks/{index-pS6-humH.js → index-ahaFzumj.js} +1 -1
  119. package/dist/chunks/{index-i4heE-wx.js → index-dvBCRXrm.js} +3 -3
  120. package/dist/chunks/{index-CR3DrmQi.js → index-kxMxVHET.js} +8 -8
  121. package/dist/chunks/{index-Cu1u3Mjn.js → index-qE5bNTwO.js} +4 -4
  122. package/dist/chunks/{index-C3n83pM3.js → index-stqanTdz.js} +1 -1
  123. package/dist/chunks/{index-Dc51G1mo.js → index-uX8xG4Vo.js} +1 -1
  124. package/dist/chunks/{index-CkxGsCJy.js → index-xA7Xy6rP.js} +7 -7
  125. package/dist/chunks/{loading-icon-CPvmJvpZ.js → loading-icon-Du-W6uYg.js} +1 -1
  126. package/dist/chunks/{loading-icon-DdwpAk8-.js → loading-icon-cx8c6lGR.js} +1 -1
  127. package/dist/chunks/{main-Bx21zlkN.js → main-CzT-ERU9.js} +7 -7
  128. package/dist/chunks/{main-BGOPab-5.js → main-drDSYMFZ.js} +214 -168
  129. package/dist/chunks/{property-DAFv3PCb.js → property-BCpjYZvp.js} +1 -1
  130. package/dist/chunks/{property-BkjBVRuu.js → property-D_322E-w.js} +1 -1
  131. package/dist/chunks/{register-Bkr1UKav.js → register-BccP7PcJ.js} +1 -1
  132. package/dist/chunks/{register-BCEOkbXG.js → register-CkIAvkFm.js} +415 -376
  133. package/dist/chunks/{register-DTXmg-gw.js → register-D2Du9nP6.js} +1 -1
  134. package/dist/chunks/register-c8kclAIe.js +1 -0
  135. package/dist/chunks/{search-DDFN8-Mz.js → search-W_YGbHlx.js} +2 -1
  136. package/dist/chunks/{search-npG8ywjx.js → search-cMvVciXy.js} +8 -7
  137. package/dist/chunks/{select-DkCpQORs.js → select-CqHLAMa8.js} +105 -98
  138. package/dist/chunks/{select-CFy3MvH6.js → select-D504gjBr.js} +41 -37
  139. package/dist/chunks/{state-BdgD82MZ.js → state-BMCv3deJ.js} +1 -1
  140. package/dist/chunks/{state-uF7CZaP5.js → state-CSz_uJVe.js} +1 -1
  141. package/dist/chunks/{text-input-BUdM-ojg.js → text-input--Eu83Ioh.js} +1 -1
  142. package/dist/chunks/{text-input-DVdkm07X.js → text-input-Bj0yhsyz.js} +5 -5
  143. package/dist/chunks/{tooltip-content-BXcBmMsV.js → tooltip-content-BJ9-iov_.js} +1 -1
  144. package/dist/chunks/{tooltip-content-CWRE_NqH.js → tooltip-content-vhQrj4r2.js} +3 -3
  145. package/dist/chunks/{unsafe-html-Bg0eM3hS.js → unsafe-html-CDTy78HP.js} +1 -1
  146. package/dist/chunks/{unsafe-html-CpAqmPyx.js → unsafe-html-CjIbXhDp.js} +1 -1
  147. package/dist/zooy.cjs.js +1 -1
  148. package/dist/zooy.es.js +3 -3
  149. package/package.json +2 -2
  150. package/src/sass/carbon.scss +46 -13
  151. package/dist/chunks/dropdown-item-C0SHr4st.js +0 -69
  152. package/dist/chunks/if-non-empty-CxMysAQW.js +0 -1
  153. package/dist/chunks/index-B0nToMRj.js +0 -25
  154. package/dist/chunks/index-B5DpS-cb.js +0 -2
  155. package/dist/chunks/index-DIsXKJDH.js +0 -4
  156. package/dist/chunks/index-Do1DszoZ.js +0 -1
  157. package/dist/chunks/register-D_CXtGy1.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./main-Bx21zlkN.js");var it=r._curry2(function(e,n){for(var s={},o=0;o<e.length;)e[o]in n&&(s[e[o]]=n[e[o]]),o+=1;return s}),k={},B;function ct(){return B||(B=1,(function(t){t.TABLE_SIZE=void 0,(function(n){n.XS="xs",n.SM="sm",n.MD="md",n.LG="lg",n.XL="xl"})(t.TABLE_SIZE||(t.TABLE_SIZE={})),t.TABLE_SORT_DIRECTION=void 0,(function(n){n.NONE="none",n.ASCENDING="ascending",n.DESCENDING="descending"})(t.TABLE_SORT_DIRECTION||(t.TABLE_SORT_DIRECTION={})),t.TABLE_SORT_CYCLE=void 0,(function(n){n.BI_STATES_FROM_ASCENDING="bi-states-from-ascending",n.BI_STATES_FROM_DESCENDING="bi-states-from-descending",n.TRI_STATES_FROM_ASCENDING="tri-states-from-ascending",n.TRI_STATES_FROM_DESCENDING="tri-states-from-descending"})(t.TABLE_SORT_CYCLE||(t.TABLE_SORT_CYCLE={}));const e={[t.TABLE_SORT_CYCLE.BI_STATES_FROM_ASCENDING]:[t.TABLE_SORT_DIRECTION.ASCENDING,t.TABLE_SORT_DIRECTION.DESCENDING],[t.TABLE_SORT_CYCLE.BI_STATES_FROM_DESCENDING]:[t.TABLE_SORT_DIRECTION.DESCENDING,t.TABLE_SORT_DIRECTION.ASCENDING],[t.TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING]:[t.TABLE_SORT_DIRECTION.NONE,t.TABLE_SORT_DIRECTION.ASCENDING,t.TABLE_SORT_DIRECTION.DESCENDING],[t.TABLE_SORT_CYCLE.TRI_STATES_FROM_DESCENDING]:[t.TABLE_SORT_DIRECTION.NONE,t.TABLE_SORT_DIRECTION.DESCENDING,t.TABLE_SORT_DIRECTION.ASCENDING]};t.TABLE_SORT_CYCLES=e})(k)),k}var rt=ct();const at=()=>Promise.resolve().then(()=>require("./index-BwRxBdeg.js")),F=()=>Promise.resolve().then(()=>require("./index-Bt7v-zqV.js")),lt={"cds-pagination":{import:F,init:function(t){const e=this,n=customElements.get("cds-pagination");let s=null;e.listen(t,n.eventChangeCurrent,o=>{const i=o.detail.page,c=t.pageSize,a=(i-1)*c;a!==s&&(s=a,e.dispatchPanelEvent("pagination-changed-current",{detail:{page:i,pageSize:c,action:"page-change"}}))}),e.listen(t,n.eventPageSizeChanged,o=>{const i=t.pageSize;s=null,e.dispatchPanelEvent("pagination-changed-page-size",{detail:{page:1,pageSize:i,action:"page-size-change"}})})}}},L=(t,e,n)=>{const s=customElements.get("cds-table"),o=customElements.get("cds-pagination"),i=customElements.get(s.selectorTableBatchActions);customElements.get("cds-popover");const c=e.dataBinder,a=e.pagination,u=e.skeleton,h=e.querySelector(s.selectorTableToolbarSearch),g=e.querySelector(s.selectorTableBatchActions),S=e.querySelector(s.selectorTableToolbarContent),N=e.querySelector(s.selectorTableBody),V=["button","a","input","select","textarea",'[role="button"]',".cds--table-expand",".cds--table-column-checkbox"].join(","),w=e.querySelectorAll(s.selectorHeaderCell+"[is-sortable]"),j=e.isSortable||w.length>0,_=Symbol(),y=Symbol(),A=new Map,H=l=>{t.listen(e,"click",d=>{const m=d.target.closest(s.selectorTableRow);if(!m||d.composedPath().some(v=>v.matches&&v.matches(V)))return;d.stopPropagation();const p=r.getSemanticAttributes(m);t.dispatchPanelEvent(l,{...p})})},Y=l=>{t.listen(e,s.eventExpandoToggle,d=>{const m=d.target,p=m.tagName==="CDS-TABLE-HEADER-ROW",v=d.detail.expanded,f=r.getSemanticAttributes(m),E={tableAttrs:n,...f,target:m,allRows:p,didExpand:v};t.dispatchPanelEvent(l,E)})},W=l=>{A.set(_,d=>{t.dispatchPanelEvent(l,d)})},X=l=>{A.set(y,d=>{const m=d.detail.selectedRows,p=Math.min(m.length,g.totalRowsCount),v=d.target,f=r.getSemanticAttributes(v),E=m.map(r.getSemanticAttributes),C={tableAttrs:n,...f,target:v,selectCount:p,selection:E};t.dispatchPanelEvent(l,C)})},$=l=>{t.listen(e,s.eventTableRowSelect,d=>{const m=d.target,p=d.detail.selectedRows||[],v=p.length,f=p.map(r.getSemanticAttributes),E=r.getSemanticAttributes(m),C={tableAttrs:n,...E,selectCount:v,selection:f,target:m};t.dispatchPanelEvent(l,C)})},Z=()=>{t.listen(e,s.eventBeforeSort,l=>{const d=l.target,m=l.detail.oldSortDirection,p=l.detail.sortDirection,v=r.getSemanticAttributes(d),f=v.sortField,E=p===rt.TABLE_SORT_DIRECTION.DESCENDING?`-${f}`:f;l.cancelBubble=!0,l.stopPropagation(),l.preventDefault(),N.innerHTML="",u&&u.show(),w.forEach((P,Ve)=>{P===d?(P.setAttribute("sort-active","true"),P.setAttribute("sort-direction",p)):(P.removeAttribute("sort-active"),P.setAttribute("sort-direction","none"))});const C={ordering:E};c.fetchData(C).then(()=>{a.setData(c),u&&u.hide()}),A.has(_)&&A.get(_)({tableAttrs:n,...v,sortNow:p,sortWas:m,sortField:f,ordering:E,target:d})})},J=()=>{t.listen(e,s.eventTableRowSelectAll,l=>{l.detail.selectedRows.length===0&&e.querySelectorAll(s.selectorTableRow).forEach(d=>{d.disabled=!1,d.selected=!1}),A.has(y)&&A.get(y)(l)})},K=()=>{t.listen(e,s.eventBeforeChangeSelectionAll,l=>{l.stopPropagation(),l.detail.callback&&l.detail.callback()})},Q=l=>{const d=e.querySelector("cds-table-header-row");t.listen(l,i.eventClickSelectAll,m=>{m.stopPropagation(),d.dispatchEvent(new CustomEvent(s.eventBeforeChangeSelectionAll,{bubbles:!0,cancelable:!0,composed:!0,detail:{selected:!0,callback:()=>{l.selectedRowsCount=l.totalRowsCount,e.querySelectorAll(s.selectorTableRow).forEach(p=>{p.disabled=!0})}}}))})},tt=l=>{t.listen(l,"keydown",d=>{if(d.key==="Enter"){u&&u.show(),a.totalItems=0,e.querySelector("cds-table-body").replaceChildren();const p={search:l.value||"",offset:0};c.fetchData(p).then(()=>{a.setData(c),u&&u.hide()})}})},et=l=>{t.listen(l,s.eventSearchInput,d=>{if((d.detail.value||"")===""){const p={search:"",offset:0};u&&u.show(),c.fetchData(p).then(()=>{u&&u.hide(),a.setData(c)})}})},nt=l=>{const d=l.querySelector("cds-icon-button, button:not([slot])");if(!d)return;l.caret=!1,t.listen(d,"click",p=>{p.stopPropagation(),l.open=!l.open,l.classList.toggle("cds--overflow-menu--open",l.open)}),new MutationObserver(()=>{l.classList.toggle("cds--overflow-menu--open",l.open)}).observe(l,{attributes:!0,attributeFilter:["open"]})},st=()=>{t.listen(a,o.eventPageSizeChanged,l=>{const m={limit:a.pageSize,offset:0};c.fetchData(m).then(()=>{a.setData(c)})})},ot=()=>{let l=null;t.listen(a,o.eventChangeCurrent,d=>{const{page:m}=d.detail,p=a.pageSize,v=(m-1)*p;if(v!==l){l=v;const f={limit:p,offset:v};c.fetchData(f).then(()=>{a.setData(c),u&&u.hide()})}})};c&&a&&(st(),ot()),c&&h&&(tt(h),et(h));const R=S.querySelectorAll("cds-popover[data-batch-filter]");R&&R.forEach(nt),e.isSelectable&&(J(),K(),g&&Q(g)),c&&j&&Z();const M={zoo:{event:{row:{click:H,expand:Y,check:{one:$,all:X}},column:{sort:W}}}};r.objToPaths(n).forEach(([l,d])=>{r.hasPath(l,M)&&r.path(l,M)(d)})},dt=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}=it(["count"],n.data),o=Math.ceil(s/n.limit),i=100;e.pagesUnknown=o>i,e.totalItems=s}},e},ut=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,i=t.hasAttribute("zebra"),c=t.getAttribute("size"),a=document.createElement("cds-table-skeleton");a.showHeader=e||n,a.showToolbar=s,a.zebra=i,a.columnCount=o,a.size=c,a.show=()=>a.classList.remove("hidden"),a.hide=()=>a.classList.add("hidden");const u=document.createElement("div");return u.classList.add("zoo-datatable-skeleton-wrapper"),t.parentNode.insertBefore(u,t),u.appendChild(a),u.appendChild(t),a},mt=(t,e)=>{const n=e.getAttribute("zoo-url-api"),s=parseInt(e.getAttribute("data-page-size")||25,10);if(n)return new r.Binder(t,n,e,{urlParams:{limit:s}})},pt={selector:"cds-table",import:[at,F],init:function(t){const e=r.getSemanticAttributes(t),n=this,s=mt(n,t);if(r.isDefAndNotNull(s)){t.dataBinder=s;const o=ut(t);t.skeleton=o;const i=dt(s);t.pagination=i,t.after(i),s.fetchData().then(c=>{o.hide(),i.setData(s),L(n,t,e)})}else L(n,t,e)}},b=()=>Promise.resolve().then(()=>require("./index-C572_UKV.js")),vt={selector:"cds-modal",import:b,init:function(t){const e=customElements.get("cds-modal"),n=r.getSemanticAttributes(t),s=r.getEventAttribute(t,"open-event","event");s&&this.listen(t,"cds-modal-beingopened",c=>{this.dispatchPanelEvent(s,{...n,action:"opened"})});const o=t.getAttribute("before-close-event");o&&this.listen(t,e.eventBeforeClose,c=>{this.dispatchPanelEvent(o,{...n,action:"closing",cancelable:!0})}),this.listen(t,e.eventClose,c=>{this.dispatchPanelEvent("destroy_me",{...n,action:"closed",triggeredBy:c.detail?.triggeredBy})});const i=r.getEventAttribute(t,"primary-event","event");i&&this.listen(t,"cds-modal-primary-focus",c=>{this.dispatchPanelEvent(i,{...n,action:"primary"})})}},ht={"cds-modal-header":{import:b},"cds-modal-heading":{import:b},"cds-modal-label":{import:b},"cds-modal-close-button":{import:b},"cds-modal-body":{import:b},"cds-modal-body-content":{import:b},"cds-modal-footer":{import:b},"cds-modal-footer-button":{import:b,init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let i=t.closest("form");if(!i){const c=t.getAttribute("form");c&&(i=document.getElementById(c))}i&&i.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,e)})}}},G=()=>Promise.resolve().then(()=>require("./index-D8LE8G2j.js")),gt={selector:"cds-menu",import:G,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-menu-opened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=r.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 i=r.getSemanticAttributes(o.target),c=i.event||e.event;c&&(o.stopPropagation(),this.dispatchPanelEvent(c,{...e,...i}))}}),this.listen(t,"cds-item-changed",o=>{const i=o.detail.triggeredBy,c=r.getSemanticAttributes(i),a=c.event||e.event;a&&this.dispatchPanelEvent(a,{...e,...c,action:"selection-changed"})})}},ft={"cds-menu-button":{import:G,init:function(t){const e=r.getSemanticAttributes(t),n=t.querySelector("cds-menu");n&&this.listen(n,"click",s=>{if(s.target.tagName==="CDS-MENU-ITEM"){const o=r.getSemanticAttributes(s.target),i=o.event||e.event;i&&(s.stopPropagation(),this.dispatchPanelEvent(i,{...e,...o}))}})}}},U=()=>Promise.resolve().then(()=>require("./index-hn76Yo-L.js")),z=()=>Promise.resolve().then(()=>require("./index-DBsASlZI.js")).then(t=>t.index),bt=()=>Promise.resolve().then(()=>require("./index-Dk3tlz8Q.js")),Et=()=>Promise.resolve().then(()=>require("./index-B8Ze9ISK.js")),St={selector:"cds-button",import:U,init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let i=t.closest("form");if(!i){const c=t.getAttribute("form");c&&(i=document.getElementById(c))}i&&i.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,e)})}},At={"cds-icon-button:not([data-toggle])":{import:z,event:"click",getData:(t,e)=>e},"cds-icon-button[data-toggle]":{import:z,init:function(t){const e=r.getSemanticAttributes(t);e.event&&this.listen(t,"click",n=>{n.stopPropagation(),t.isSelected=!t.isSelected,this.dispatchPanelEvent(e.event,{...e,isOn:t.isSelected})})}},"cds-button[data-fab]":{import:U,event:"click",getData:(t,e)=>e},"cds-copy-button":{import:Et,init:function(t){const e=r.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}}},"cds-combo-button":{import:bt,init:function(t){const e=r.getSemanticAttributes(t);e.event&&this.listen(t,"click",s=>{const o=s.composedPath(),i=o.some(a=>a.tagName==="CDS-MENU-ITEM"),c=o.some(a=>a.tagName==="CDS-ICON-BUTTON");!i&&!c&&(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=r.getSemanticAttributes(s.target),i=o.event||r.getEventAttribute(t,"menu-event","event");i&&this.dispatchPanelEvent(i,{...e,...o,action:"menu-item"})}})}}},Ct=()=>Promise.resolve().then(()=>require("./index-CIZ3Gnmm.js")),Pt=()=>Promise.resolve().then(()=>require("./index-ClE0uX_c.js")),It=()=>Promise.resolve().then(()=>require("./index-du3RQU31.js")),Dt={selector:"cds-dropdown",import:Ct,init:function(t){const e=customElements.get("cds-dropdown"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,i=>{this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:i.detail?.item?.value,selectedText:i.detail?.item?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,i=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Nt={"cds-combo-box":{import:Pt,init:function(t){const e=customElements.get("cds-combo-box"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,i=>{const c=i.detail?.item;this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:c?.value,selectedText:c?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,i=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},"cds-multi-select":{import:It,init:function(t){const e=customElements.get("cds-multi-select"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,i=>{const c=t.value?t.value.split(","):[];this.dispatchPanelEvent(s,{...n,selectedItems:c})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,i=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}}},_t=()=>Promise.resolve().then(()=>require("./index-CEy6bu7P.js")),yt=()=>Promise.resolve().then(()=>require("./index-qgl9W8eF.js")),kt={selector:"cds-date-picker",import:_t,init:function(t){const e=customElements.get("cds-date-picker"),n=r.getSemanticAttributes(t),s=t.querySelector('cds-date-picker-input[kind="from"]'),o=t.querySelector('cds-date-picker-input[kind="to"]'),i=s&&o,c=n.event;c&&this.listen(t,e.eventChange,u=>{let h;i?h={from:s.value||"",to:o.value||""}:h=t.value,this.dispatchPanelEvent(c,{...n,value:h})});const a=t.getAttribute("error-event");a&&this.listen(t,e.eventFlatpickrError,u=>{this.dispatchPanelEvent(a,{...n,error:u.detail})})}},Tt={"cds-time-picker":{import:yt,event:"cds-time-picker-changed",getData:(t,e,n)=>({...e,value:n.value})}},qt=()=>Promise.resolve().then(()=>require("./index-CKYRBtLC.js")),Ot={selector:"cds-file-uploader",import:qt,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;if(n){const o=t.querySelector('input[type="file"]');o&&this.listen(o,"change",i=>{this.dispatchPanelEvent(n,{...e,files:Array.from(i.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})})}},wt=()=>Promise.resolve().then(()=>require("./index-DrDKdYFJ.js")),Rt=()=>Promise.resolve().then(()=>require("./index-Cp3P3KaW.js")),Mt=()=>Promise.resolve().then(()=>require("./index-Do1DszoZ.js")),Bt={selector:"cds-tabs",import:wt,init:function(t){const e=customElements.get("cds-tabs"),n=r.getSemanticAttributes(t),s=t.getAttribute("before-select-event");s&&this.listen(t,e.eventBeforeSelect,i=>{this.dispatchPanelEvent(s,{...n,tabValue:i.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,i=>{const c=i.detail.item,a=r.getSemanticAttributes(c);this.dispatchPanelEvent(o,{...n,...a,tabValue:i.detail.value})})}},Lt={"cds-accordion":{import:Rt,init:function(t){const e=customElements.get("cds-accordion-item"),n=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-accordion-item")].forEach(o=>{const i=r.getSemanticAttributes(o),c=i.event||n.event;c&&this.listen(o,e.eventToggle,a=>{this.dispatchPanelEvent(c,{...n,...i,open:a.detail.open})})})}},"cds-content-switcher":{import:Mt,init:function(t){const e=customElements.get("cds-content-switcher"),n=r.getSemanticAttributes(t),s=t.getAttribute("before-select-event");s&&this.listen(t,e.eventBeforeSelect,i=>{this.dispatchPanelEvent(s,{...n,value:i.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,i=>{const c=i.detail.item,a=r.getSemanticAttributes(c);this.dispatchPanelEvent(o,{...n,...a,value:c.getAttribute("value")})})}}},T=()=>Promise.resolve().then(()=>require("./index-i9jyrFc9.js")),zt={selector:"cds-breadcrumb",import:T,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;if(n){const s=i=>{this.dispatchPanelEvent(n,{...e,...i})};this.listen(t,"click",i=>{const c=i.target.closest("cds-breadcrumb-link");if(c){i.preventDefault(),i.stopPropagation();const a=r.getSemanticAttributes(c);s(a)}});const o=t.querySelector("cds-overflow-menu-body");o&&this.listen(o,"cds-overflow-menu-item-clicked",i=>{i.stopPropagation();const c=r.getSemanticAttributes(i.target);s(c)})}}},xt={"cds-breadcrumb-item":{import:T},"cds-breadcrumb-link":{import:T,event:"click",getData:(t,e,n)=>(t.preventDefault(),{...e,href:n.getAttribute("href")})}},Ft=()=>Promise.resolve().then(()=>require("./index-C2oV5vU3.js")),Gt=()=>Promise.resolve().then(()=>require("./index-DWjrCygZ.js")),Ut=()=>Promise.resolve().then(()=>require("./index-BseD7Jzt.js")),Vt=()=>Promise.resolve().then(()=>require("./index-CQl4NaPS.js")),jt=()=>Promise.resolve().then(()=>require("./index-DIsXKJDH.js")),Ht={selector:"cds-text-input",import:Ft,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})}]},Yt={"cds-textarea":{import:Gt,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})}]},"cds-number-input":{import:Ut,event:"cds-number-input",getData:(t,e,n)=>({...e,value:t.detail.value,direction:t.detail.direction})},"cds-password-input":{import:Vt,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})}]},"cds-search":{import:jt,event:"cds-search-input",getData:(t,e,n)=>({...e,value:n.value})}},Wt=()=>Promise.resolve().then(()=>require("./index-DyO3Wdy_.js")),Xt=()=>Promise.resolve().then(()=>require("./index-OgL1A9Rm.js")),$t=()=>Promise.resolve().then(()=>require("./index-CFqKkC5Z.js")),Zt=()=>Promise.resolve().then(()=>require("./index-DYvD9xjl.js")),Jt=()=>Promise.resolve().then(()=>require("./index-BBWp83R-.js")),Kt={selector:"cds-checkbox",import:Wt,event:"cds-checkbox-changed",getData:(t,e,n)=>({...e,checked:t.detail.checked,value:n.value})},Qt={"cds-radio-button-group":{import:Xt,event:"cds-radio-button-group-changed",getData:(t,e)=>({...e,value:t.detail?.value})},"cds-toggle":{import:$t,event:"cds-toggle-changed",getData:(t,e)=>({...e,isOn:t.detail.checked,value:t.detail.checked})},"cds-select":{import:Zt,event:"cds-select-selected",getData:(t,e)=>({...e,value:t.detail.value})},"cds-slider":{import:Jt,init:function(t){const e=r.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})})}}},q=()=>Promise.resolve().then(()=>require("./index-9fmHblh5.js")),te={selector:"cds-tag",import:q,event:"click",getData:(t,e)=>e},ee={"cds-dismissible-tag":{import:q,init:function(t){const e=r.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"})})}},"cds-filter-tag":{import:q,event:"cds-filter-tag-closed",getData:(t,e)=>({...e,action:"remove"})}},ne=()=>Promise.resolve().then(()=>require("./index-yzFU-E6F.js")),se=()=>Promise.resolve().then(()=>require("./index-BvdNKhJw.js")),oe=()=>Promise.resolve().then(()=>require("./index-C3n83pM3.js")),ie={selector:"cds-overflow-menu",import:ne,init:function(t){const e=r.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 i=r.getSemanticAttributes(o.target);this.dispatchPanelEvent(n,{...e,...i})})}},ce={"cds-structured-list":{import:se,init:function(t){const e=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-structured-list-row")].forEach(s=>{const o=r.getSemanticAttributes(s),i=o.event||e.event;i&&this.listen(s,"click",c=>{c.stopPropagation(),this.dispatchPanelEvent(i,{...e,...o})})}),t.hasAttribute("selection")&&this.listen(t,"cds-structured-list-selected",s=>{const o=s.detail.row,i=r.getSemanticAttributes(o),c=e.event;c&&this.dispatchPanelEvent(c,{...e,...i})})}},"cds-tree-view":{import:oe,init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-tree-node-selected",s=>{const o=s.detail.node,i=r.getSemanticAttributes(o),c=i.event||e.event;c&&this.dispatchPanelEvent(c,{...e,...i,nodeId:o.id,label:o.getAttribute("label")})});const n=r.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})})}}},O=()=>Promise.resolve().then(()=>require("./index-JWULDURW.js")),re={selector:"cds-toast-notification",import:O,event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},ae={"cds-inline-notification":{import:O,event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},"cds-actionable-notification":{import:O,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"close-event","event");n&&this.listen(t,"cds-notification-closed",o=>{this.dispatchPanelEvent(n,{...e,action:"closed"})});const s=r.getEventAttribute(t,"action-event");s&&this.listen(t,"cds-notification-actioned",o=>{this.dispatchPanelEvent(s,{...e,action:"actioned"})})}}},D=()=>Promise.resolve().then(()=>require("./index-pS6-humH.js")),le={selector:"cds-clickable-tile",import:D,event:"click",getData:(t,e)=>({...e,href:t.currentTarget.getAttribute("href")})},de={"cds-expandable-tile":{import:D,init:function(t){const e=r.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})})}},"cds-selectable-tile":{import:D,event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},"cds-radio-tile":{import:D,event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})}},ue=()=>Promise.resolve().then(()=>require("./index-Cv6qE9qP.js")),me=()=>Promise.resolve().then(()=>require("./index-MgWriQfr.js")),pe=()=>Promise.resolve().then(()=>require("./index-0AElqkkj.js")),ve={selector:"cds-progress-bar",import:ue,init:function(t){const e=r.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(()=>{const s=parseFloat(t.getAttribute("value")||"0"),o=parseFloat(t.getAttribute("max")||"100");s>=o&&this.dispatchPanelEvent(e.event,{...e,value:s,status:"complete"})});n.observe(t,{attributes:!0,attributeFilter:["value"]}),t._progressObserver=n}}},he={"cds-progress-indicator":{import:me,init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-progress-step-click",n=>{const s=n.target,o=r.getSemanticAttributes(s),i=o.event||e.event;i&&this.dispatchPanelEvent(i,{...e,...o,stepIndex:s.getAttribute("data-index"),stepLabel:s.getAttribute("label")})})}},"cds-inline-loading":{import:pe,init:function(t){const e=r.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(i=>{i.forEach(c=>{if(c.attributeName==="status"){const a=t.getAttribute("status");this.dispatchPanelEvent(s,{...e,status:a})}})});o.observe(t,{attributes:!0,attributeFilter:["status"]}),t._statusObserver=o}}}},ge=()=>Promise.resolve().then(()=>require("./index-CsjJntyD.js")),fe=()=>Promise.resolve().then(()=>require("./index-CJdEJ8pY.js")).then(t=>t.index),be=()=>Promise.resolve().then(()=>require("./index-lFqOe0IJ.js")),Ee={selector:"cds-tooltip",import:ge,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-tooltip-beingopened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=r.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-tooltip-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},Se={"cds-popover":{import:fe,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-popover-beingopened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=r.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-popover-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},"cds-toggletip":{import:be,init:function(t){const e=r.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(s=>{s.forEach(o=>{if(o.attributeName==="open"){const i=t.hasAttribute("open");this.dispatchPanelEvent(e.event,{...e,action:i?"opened":"closed",open:i})}})});n.observe(t,{attributes:!0,attributeFilter:["open"]}),t._toggletipObserver=n}}}},Ae=()=>Promise.resolve().then(()=>require("./index-BRnzFxjk.js")).then(t=>t.index),Ce=()=>Promise.resolve().then(()=>require("./index-pc36PiDY.js")),Pe={selector:"cds-link",import:Ae,event:"click",getData:(t,e,n)=>({...e,href:n.getAttribute("href")})},Ie={"cds-code-snippet":{import:Ce,event:"cds-copy-button-clicked",getData:(t,e)=>({...e,action:"copied"})}},x=()=>Promise.resolve().then(()=>require("./index-CqQZpHti.js")),De=()=>Promise.resolve().then(()=>require("./index-CoAT1iC6.js")),Ne=()=>Promise.resolve().then(()=>require("./index-Bymsj9gH.js")),_e=()=>Promise.resolve().then(()=>require("./index-_xRytR0j.js")),ye=()=>Promise.resolve().then(()=>require("./index-C-pfDP7B.js")),ke=()=>Promise.resolve().then(()=>require("./index-DbAeG1nY.js")),Te=()=>Promise.resolve().then(()=>require("./index-cuMoh7qn.js")).then(t=>t.index),qe=()=>Promise.resolve().then(()=>require("./index-Bo2QmpPO.js")).then(t=>t.index),Oe=()=>Promise.resolve().then(()=>require("./index-BBap1uCI.js")),we=()=>Promise.resolve().then(()=>require("./index-BQnyeVHX.js")),Re={"cds-form":{import:x},"cds-form-item":{import:x},"cds-form-group":{import:De},"cds-stack":{import:Ne},"cds-heading":{import:_e},"cds-icon":{import:ye},"cds-icon-indicator":{import:ke},"cds-badge-indicator":{import:we},"cds-loading":{import:Te},"cds-skeleton-text":{import:qe},"cds-skeleton-placeholder":{import:Oe}},Me=[pt,vt,gt,St,Dt,kt,Ot,Bt,zt,Ht,Kt,te,ie,re,le,ve,Ee,Pe];function Be(){const t=new Map;return Me.forEach(n=>{t.set(n.selector,n)}),[ht,ft,At,Nt,Tt,Lt,xt,lt,Yt,Qt,ee,ce,ae,de,he,Se,Ie,Re].forEach(n=>{Object.entries(n).forEach(([s,o])=>{t.set(s,o)})}),t}function Le(t){const e=new Map;if(!t||!(t instanceof Element))return e;for(const s of Object.keys(I))e.set(s,[]);for(const[s,o]of Object.entries(I))t.matches(s)&&e.get(s).push(t);const n=t.querySelectorAll("*");for(const s of n)for(const[o,i]of Object.entries(I))s.matches(o)&&e.get(o).push(s);for(const[s,o]of e.entries())o.length===0&&e.delete(s);return e}function ze(t){const e=new Set;for(const[n,s]of t.entries()){const o=I[n];o&&o.import&&s.length>0&&(Array.isArray(o.import)?o.import:[o.import]).forEach(c=>e.add(c))}return e}async function xe(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 Fe(t,e){let n=0;for(const[s,o]of t.entries()){const i=I[s];o.forEach(c=>{if(i.init){i.init.call(e,c);return}if(i.multiEvent){const h=r.getSemanticAttributes(c);i.events.forEach(g=>{const S=r.getEventAttribute(c,g.attrName,"event");S&&e.listen(c,g.type,N=>{e.dispatchPanelEvent(S,g.getData(N,h,c))})});return}const a=r.getSemanticAttributes(c),u=a.event;u&&e.listen(c,i.event,h=>{h.stopPropagation();const g=i.getData(h,a,c),S=g._eventOverride||u;delete g._eventOverride,e.dispatchPanelEvent(S,g)})}),n+=o.length}return n}const I={...Object.fromEntries(Be())},Ge=async function(t,e){const n=Le(t);if(n.size===0){this.debugMe("[Carbon] No Carbon components found in panel");return}this.carbonComponents||(this.carbonComponents=new Map);for(const[i,c]of n.entries())this.carbonComponents.set(i,c);const s=ze(n);if(s.size>0)try{await xe(s,e)}catch(i){console.error("[Carbon] Failed to load some component modules:",i)}const o=Fe(n,this);o>0&&this.debugMe(`[Carbon] Total components initialized: ${o}`)},Ue=()=>{r.ComponentLibraryRegistry.register("carbon",{render:async function(t,e){try{await Ge.call(this,t,e)}catch(n){console.error("[Carbon] Initialization error:",n)}},dispose:function(t){},config:{version:"2.0",description:"IBM Carbon Design System Web Components"}}),console.debug("[Zooy] Carbon Design System library registered")};exports.registerCarbonLibrary=Ue;