@trintel/zooy 1.0.12 → 1.0.16

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 (152) hide show
  1. package/dist/chunks/{button-CRxkguK3.js → button-D3QMXGP6.js} +1 -1
  2. package/dist/chunks/{button-By7aRhFi.js → button-cEVHuDC9.js} +4 -4
  3. package/dist/chunks/{button-skeleton-CZmGLr_c.js → button-skeleton-BuDQrAgi.js} +1 -1
  4. package/dist/chunks/{button-skeleton-DlCzuT6h.js → button-skeleton-CxKOKEQr.js} +4 -4
  5. package/dist/chunks/{checkbox-GUazWfM6.js → checkbox-B_b_oOJ5.js} +1 -1
  6. package/dist/chunks/{checkbox-BMZ3_jkv.js → checkbox-CsuLOYIT.js} +5 -5
  7. package/dist/chunks/{class-map-Bpavh3zd.js → class-map-BwrbvkxB.js} +1 -1
  8. package/dist/chunks/{class-map-CewEiUeS.js → class-map-CgGieoOz.js} +1 -1
  9. package/dist/chunks/{content-switcher-item-BzWtaEk8.js → content-switcher-item-C1gdd6k4.js} +4 -4
  10. package/dist/chunks/{content-switcher-item-DBiwY_5f.js → content-switcher-item-c0sXBGJ-.js} +1 -1
  11. package/dist/chunks/{dropdown-item-B8fOInIi.js → dropdown-item-T1jCm1fo.js} +1 -1
  12. package/dist/chunks/{dropdown-item-C1hnXvNw.js → dropdown-item-Wc8Nj3w-.js} +6 -6
  13. package/dist/chunks/{icon-loader-BX6j0QV9.js → icon-loader-CTCoE5GC.js} +1 -1
  14. package/dist/chunks/{icon-loader-Cv5XYGqj.js → icon-loader-C_ze306U.js} +1 -1
  15. package/dist/chunks/{icon-loader-utils-C_72Dnig.js → icon-loader-utils-DSajrZop.js} +1 -1
  16. package/dist/chunks/{icon-loader-utils-CjBhA13V.js → icon-loader-utils-DxaQOvJB.js} +1 -1
  17. package/dist/chunks/{if-defined-B-VZmIag.js → if-defined-7syLabv-.js} +1 -1
  18. package/dist/chunks/{if-defined-Zq_Rpirs.js → if-defined-CfI-rREy.js} +1 -1
  19. package/dist/chunks/{if-non-empty-CaK_h1Vn.js → if-non-empty-CsjL_4Ck.js} +1 -1
  20. package/dist/chunks/if-non-empty-Dp8CFMva.js +1 -0
  21. package/dist/chunks/{index-DRYB8Q2c.js → index-24ucriY6.js} +1 -1
  22. package/dist/chunks/{index-BX1au7I9.js → index-5uuGFlSc.js} +1 -1
  23. package/dist/chunks/{index-DQhfyFM4.js → index-ACUVets3.js} +4 -4
  24. package/dist/chunks/{index-DD3tbFs9.js → index-B-VOos8Q.js} +4 -4
  25. package/dist/chunks/{index-BERUsrwS.js → index-B-qA_3dy.js} +1 -1
  26. package/dist/chunks/{index-CVH7Hv6v.js → index-B0PkuE0I.js} +5 -5
  27. package/dist/chunks/{index-BJ0SBIwX.js → index-B1QlHHpn.js} +6 -6
  28. package/dist/chunks/{index-CYLJDFiF.js → index-B2dVOGmx.js} +5 -5
  29. package/dist/chunks/{index-CwXwz8dA.js → index-BEAD73rD.js} +1 -1
  30. package/dist/chunks/{index-DhwMNjJj.js → index-BEyeMcZh.js} +4 -4
  31. package/dist/chunks/{index-BeQ7ZTCw.js → index-BJ3okuBC.js} +5 -5
  32. package/dist/chunks/{index-C6nmbFvI.js → index-BJNdKx6x.js} +1 -1
  33. package/dist/chunks/{index-DrRc4GOh.js → index-BL8xz2V4.js} +5 -5
  34. package/dist/chunks/{index-UDUbB14y.js → index-BL_Y57_H.js} +1 -1
  35. package/dist/chunks/{index-D-20UbuG.js → index-BLxE94Et.js} +1 -1
  36. package/dist/chunks/{index-DU7E0qo4.js → index-BP0bDhTG.js} +7 -7
  37. package/dist/chunks/{index-B4L1iU-L.js → index-BUXzbqzT.js} +7 -7
  38. package/dist/chunks/{index-jRYYdv4C.js → index-BVDZj6Fh.js} +5 -5
  39. package/dist/chunks/{index-Smwc4F8-.js → index-BWqDKfds.js} +1 -1
  40. package/dist/chunks/{index-yIVEgAA_.js → index-BaVSzIan.js} +1 -1
  41. package/dist/chunks/{index-f2QnoTe2.js → index-BatQ1Mfz.js} +3 -3
  42. package/dist/chunks/{index-DYtqDqPL.js → index-BefBe_sK.js} +1 -1
  43. package/dist/chunks/{index-D2B2bs5k.js → index-BekoThXC.js} +2 -2
  44. package/dist/chunks/{index-Cit60IYk.js → index-BnOH6_4r.js} +1 -1
  45. package/dist/chunks/{index-DW9xYANG.js → index-Bnfa6YBY.js} +3 -3
  46. package/dist/chunks/{index-B7CvW1Hr.js → index-BrtdLKIG.js} +9 -9
  47. package/dist/chunks/{index-B-OulI8n.js → index-BtFYirUg.js} +1 -1
  48. package/dist/chunks/{index-C6YhnCuw.js → index-BtHVJn7K.js} +1 -1
  49. package/dist/chunks/{index-ePccMpcM.js → index-Bu7ZAHDG.js} +1 -1
  50. package/dist/chunks/{index-m978pani.js → index-BxRbUwdY.js} +3 -3
  51. package/dist/chunks/{index-BmMr-B9I.js → index-ByQl0Dwz.js} +1 -1
  52. package/dist/chunks/{index-BXPG0d_k.js → index-C-PAoN2Y.js} +2 -2
  53. package/dist/chunks/{index-BIWPmvxN.js → index-C2-pFkgT.js} +6 -6
  54. package/dist/chunks/{index-1eFOI8oe.js → index-C2r3MkpB.js} +5 -5
  55. package/dist/chunks/{index-CvnLooVH.js → index-C5DwYOee.js} +1 -1
  56. package/dist/chunks/{index-1OOPg4-d.js → index-C5euLddc.js} +1 -1
  57. package/dist/chunks/{index-D1xYcspc.js → index-C89rc2i5.js} +1 -1
  58. package/dist/chunks/{index-XY3TWQ_7.js → index-C8IUL9KS.js} +1 -1
  59. package/dist/chunks/{index-C9adbF3V.js → index-C99Nf_aK.js} +1 -1
  60. package/dist/chunks/{index-DLt6oTR3.js → index-CDaECc1q.js} +1 -1
  61. package/dist/chunks/{index-UfSJPzl_.js → index-CIeU44CB.js} +5 -5
  62. package/dist/chunks/{index-BwpbR54Z.js → index-CL8Un64Y.js} +4 -4
  63. package/dist/chunks/{index-BftJaPKS.js → index-CQ1zfW-Z.js} +1 -1
  64. package/dist/chunks/{index-CW3NpEbP.js → index-CR6HxSEn.js} +1 -1
  65. package/dist/chunks/{index-CZi-f4G4.js → index-CSH8oUIN.js} +1 -1
  66. package/dist/chunks/{index-CCOIDxIB.js → index-CTB8Esah.js} +1 -1
  67. package/dist/chunks/{index-DFzKxIGc.js → index-CX6f-3xD.js} +7 -7
  68. package/dist/chunks/{index-B_Lmpm35.js → index-CXSCYGFC.js} +8 -8
  69. package/dist/chunks/{index-C0JKLTdV.js → index-CZQ45Dj9.js} +1 -1
  70. package/dist/chunks/{index-Dcs-4ouA.js → index-Cc-HBEN2.js} +4 -4
  71. package/dist/chunks/{index-Cdk8HqBZ.js → index-Cf3ALdZ-.js} +1 -1
  72. package/dist/chunks/{index-DKJCj-0F.js → index-Cid77wr3.js} +1 -1
  73. package/dist/chunks/{index-DRsjyMRL.js → index-ClBPGpC0.js} +4 -4
  74. package/dist/chunks/{index-CQY3cMqQ.js → index-CmXHpydu.js} +1 -1
  75. package/dist/chunks/{index-CVqAaFaO.js → index-CsaKV6jI.js} +5 -5
  76. package/dist/chunks/{index-CbKeQETj.js → index-CvxrJ8vE.js} +3 -3
  77. package/dist/chunks/{index-Bx5tyF27.js → index-Cy6EogCp.js} +3 -3
  78. package/dist/chunks/{index-BoIS4S70.js → index-CyTN35KA.js} +3 -3
  79. package/dist/chunks/{index-ChbKcl-Z.js → index-D3hwHwSn.js} +5 -5
  80. package/dist/chunks/{index-DW24dyDr.js → index-D6Eg6Zh4.js} +1 -1
  81. package/dist/chunks/{index-BsVpu7Ej.js → index-D7GY2E-B.js} +1 -1
  82. package/dist/chunks/{index-C2Q5YPz1.js → index-DCqxl0e0.js} +1 -1
  83. package/dist/chunks/{index-Cy5Gs96d.js → index-DDKqKtU4.js} +1 -1
  84. package/dist/chunks/{index-D2Z_PWuf.js → index-DHksIe-y.js} +1 -1
  85. package/dist/chunks/{index-CyHAdAxX.js → index-DI-PunST.js} +7 -7
  86. package/dist/chunks/{index-DScZj-56.js → index-DIWoAC3Z.js} +1 -1
  87. package/dist/chunks/{index-CuuD-d5b.js → index-DLWyvZrE.js} +2 -2
  88. package/dist/chunks/{index-DxlTsgQ8.js → index-DLa-KLg_.js} +5 -5
  89. package/dist/chunks/{index-pT9YwIX-.js → index-DLwGUJd2.js} +1 -1
  90. package/dist/chunks/index-DMIKb9St.js +2 -0
  91. package/dist/chunks/{index-BfiLUJJ3.js → index-DOfvb1f6.js} +1 -1
  92. package/dist/chunks/{index-Bb8PCTuf.js → index-DQoGlgyI.js} +1 -1
  93. package/dist/chunks/{index-BlfAhx-m.js → index-DR8UmItB.js} +1 -1
  94. package/dist/chunks/{index-o7Ly8WNV.js → index-DUiT0Yz_.js} +1 -1
  95. package/dist/chunks/{index-ScGZvs71.js → index-DW1p-hc-.js} +10 -10
  96. package/dist/chunks/{index-TelAKDy3.js → index-DbPU3mfX.js} +5 -5
  97. package/dist/chunks/{index-LSL0pD4U.js → index-DgI4_4yz.js} +1 -1
  98. package/dist/chunks/index-DhPg7DCD.js +1 -0
  99. package/dist/chunks/{index-CDpK5GU3.js → index-Dj-7w7wt.js} +1 -1
  100. package/dist/chunks/{index-DbT4fJLV.js → index-DjSdHUmw.js} +7 -7
  101. package/dist/chunks/{index-DvbDUmZp.js → index-DpCo2duE.js} +7 -7
  102. package/dist/chunks/{index-DayFRhmw.js → index-DqLDehu6.js} +8 -8
  103. package/dist/chunks/{index-DEH3Oujh.js → index-Ds3e0NlH.js} +5 -5
  104. package/dist/chunks/{index-CRvczclO.js → index-DsKNYemW.js} +6 -6
  105. package/dist/chunks/{index-Do0fzNBP.js → index-DwGKd66A.js} +4 -4
  106. package/dist/chunks/{index-ByxUjlpc.js → index-FAwjNd-C.js} +1 -1
  107. package/dist/chunks/{index-DqWolj0i.js → index-HTZtnvAV.js} +1 -1
  108. package/dist/chunks/{index-s53NHb2d.js → index-JUJu4Jsu.js} +8 -8
  109. package/dist/chunks/{index-BpfNVIsW.js → index-JmiGhJR9.js} +1 -1
  110. package/dist/chunks/{index-DVTOmcgu.js → index-K3aE8_a_.js} +2 -2
  111. package/dist/chunks/{index-DdzuoIsX.js → index-LVNWqV95.js} +6 -6
  112. package/dist/chunks/{index-ZmTVduMY.js → index-NduNWecG.js} +4 -4
  113. package/dist/chunks/{index-Bz-sh-N4.js → index-QOHPo0v8.js} +1 -1
  114. package/dist/chunks/{index-D5_-tX11.js → index-TnoTOPwm.js} +1 -1
  115. package/dist/chunks/{index-DKOcsQER.js → index-UIEjSWhu.js} +1 -1
  116. package/dist/chunks/{index-B4O0_8IT.js → index-WQ40q6Fp.js} +1 -1
  117. package/dist/chunks/{index-DYmmXHAT.js → index-a_56_OA-.js} +5 -5
  118. package/dist/chunks/{index-CyeWQ9VJ.js → index-azaqRvif.js} +1 -1
  119. package/dist/chunks/{index-BugJTHwJ.js → index-dT_yGOFJ.js} +1 -1
  120. package/dist/chunks/{index-CuZwN_ME.js → index-kjtnf5Y1.js} +3 -3
  121. package/dist/chunks/{index-Bv0Kq6vx.js → index-lOiJBnZe.js} +1 -1
  122. package/dist/chunks/{index-BATw38c7.js → index-sl9jQQX-.js} +3 -3
  123. package/dist/chunks/{index-C7bz1V4O.js → index-vkfOeAd5.js} +3 -3
  124. package/dist/chunks/{index-Cm3Uqia6.js → index-z2pAR1iR.js} +6 -6
  125. package/dist/chunks/{loading-icon-Dx2ktHir.js → loading-icon-9-L_8sVv.js} +1 -1
  126. package/dist/chunks/{loading-icon-Co-jn71c.js → loading-icon-CMPQny72.js} +1 -1
  127. package/dist/chunks/{main-BqOledN0.js → main-CXPn-jnk.js} +196 -147
  128. package/dist/chunks/{main-DHy75dVb.js → main-CZIPBRMI.js} +5 -4
  129. package/dist/chunks/{property-B0b41oBL.js → property-BIgIlh0E.js} +1 -1
  130. package/dist/chunks/{property-Dg6D0XVD.js → property-CTp3Zz2M.js} +1 -1
  131. package/dist/chunks/{register-bMHOSpvM.js → register-BgvWUC9m.js} +1 -1
  132. package/dist/chunks/{register-BH6NpHIA.js → register-CFDNay1l.js} +1 -1
  133. package/dist/chunks/{register-h6ZQPYju.js → register-DyYwnhHb.js} +1 -1
  134. package/dist/chunks/{register-DgYdd65A.js → register-HH_4Uw0Q.js} +2 -2
  135. package/dist/chunks/{search-CdbmNKGt.js → search-CC47funo.js} +6 -6
  136. package/dist/chunks/{search-hgh8azYe.js → search-DB4cjN-w.js} +1 -1
  137. package/dist/chunks/{select-item-bxxL-G6O.js → select-item-D6rKfA9z.js} +1 -1
  138. package/dist/chunks/{select-item-B7Nispm3.js → select-item-Dj2fYOn6.js} +7 -7
  139. package/dist/chunks/{state-8K5PPQVS.js → state-4XYw1ZN5.js} +1 -1
  140. package/dist/chunks/{state-C1eYNc3M.js → state-BoZ0xvIn.js} +1 -1
  141. package/dist/chunks/{text-input-BFGnBN6w.js → text-input-BUBwT5gK.js} +1 -1
  142. package/dist/chunks/{text-input-Cax4HzgZ.js → text-input-Dpl3TIYz.js} +5 -5
  143. package/dist/chunks/{tooltip-content-CF2lm8EZ.js → tooltip-content-BV1N7BVi.js} +1 -1
  144. package/dist/chunks/{tooltip-content-l8Mg7xk8.js → tooltip-content-UQcG3dlT.js} +3 -3
  145. package/dist/chunks/{unsafe-html-Dw4MFH2g.js → unsafe-html-CCJqBESk.js} +1 -1
  146. package/dist/chunks/{unsafe-html-Hoj8nqTC.js → unsafe-html-KUWR4Xn7.js} +1 -1
  147. package/dist/zooy.cjs.js +1 -1
  148. package/dist/zooy.es.js +1 -1
  149. package/package.json +3 -3
  150. package/dist/chunks/if-non-empty-Dy-cc4QJ.js +0 -1
  151. package/dist/chunks/index-CNQHUhaQ.js +0 -1
  152. package/dist/chunks/index-DjLSW4tB.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";const numericString="0123456789".split("");[...numericString];const alphaLower="abcdefghijklmnopqrstuvwxyz".split(""),alphaUpper="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");[...alphaLower,...alphaUpper,...numericString];new Map().set("true",!0).set("false",!1);const compose=(...U)=>(...w)=>U.reduce((D,O)=>F=>D(O(F)))(...w),identity=U=>U,whatType=U=>typeof U,isDef=U=>U!==void 0,isUndefined=U=>U===void 0,isDefAndNotNull=U=>U!=null,isString=U=>whatType(U)==="string",isNumber=U=>whatType(U)==="number"&&!Number.isNaN(U),isObject=U=>(U&&typeof U=="object"&&!(U instanceof Array)&&!(U instanceof Set)&&!(U instanceof Map)&&!(U instanceof Date))===!0,isArray=U=>U instanceof Array,reverse=U=>Array.from(U).reduce((w,D)=>[D,...w],[]),toLowerCase=U=>U.toLowerCase(),toString$1=U=>U+"",toNumber=U=>+U;compose(toLowerCase,toString$1);const makeRandomString=()=>{let U=2147483648;return Math.floor(Math.random()*U).toString(36)+Math.abs(Math.floor(Math.random()*U)^Date.now()).toString(36)},stripLeadingChar=U=>w=>w.startsWith(U)?w.slice(U.length):w,join=U=>w=>w.join(U);compose(join(""),reverse);const pathOr=(U,w)=>D=>{const O=w.reduce((F,q)=>{try{return F[maybeNumber(q)]}catch{return}},D);return O===void 0?U:O},objToPaths=(U,w=[],D=[])=>(Object.entries(U).forEach(([O,F])=>{isObject(F)?objToPaths(F,[...w,O],D):D.push([[...w,O],F])}),D),randomId=U=>{const w=makeRandomString();return U?w.substr(0,U):w},maybeNumber=U=>{if(U===null||whatType(U)==="string"&&U.length>1&&U.startsWith("0")&&!U.startsWith("0."))return U;const w=1*U;return w>Number.MAX_SAFE_INTEGER||Number.isNaN(w)?U:w};compose(toNumber,join(""),reverse,toString$1);class Evt extends EventTarget{#t=!1;#e=!1;#s=new Map;#r=new Set;#n=new Set;static makeEvent(w,D){return new CustomEvent(w,{detail:D})}set debugMode(w){if(typeof w!="boolean")throw new Error("This must be a boolean");this.#t=w}get debugMode(){return this.#t}get disposed(){return this.#e}get listeningTo(){return this.#s}get isObservedBy(){return this.#r}get activeIntervals(){return this.#n}debugMe(...w){this.#t&&console.log.apply(null,[this.constructor.name,"DEBUG:",...w])}isListenedToBy(w){this.#r.add(w)}listen(w,D,O,F=!1){w.addEventListener(D,O,F);const q=this.listeningTo.get(w)||{};q[D]=()=>w.removeEventListener(D,O,F),this.listeningTo.set(w,q),isDef(w.isListenedToBy)&&w.isListenedToBy(this)}stopBeingListenedTo(){for(const w of this.isObservedBy)w.stopListeningTo(this),this.isObservedBy.delete(w)}stopListeningTo(w,D){w&&this.listeningTo.has(w)&&(isDef(w.isObservedBy)&&w.isObservedBy.delete(this),isDef(D)?(Object.entries(this.listeningTo.get(w)).forEach(([O,F])=>{O===D&&F()}),Object.keys(this.listeningTo.get(w)).length||this.listeningTo.delete(w)):(Object.values(this.listeningTo.get(w)).forEach(O=>O()),this.listeningTo.delete(w)))}removeAllListener(){for(const w of this.listeningTo.keys())this.stopListeningTo(w)}clearAllIntervals(){for(const w of this.activeIntervals)clearInterval(w),this.activeIntervals.delete(w)}doOnBeat(w,D){const O=setInterval(w,D);this.activeIntervals.add(O)}disposeInternal(){this.stopBeingListenedTo(),this.removeAllListener(),this.clearAllIntervals(),this.#e=!0}dispose(){this.disposeInternal()}}class ZooyEventData{constructor(w,D){this.value_=w,this.data_=D||{}}getValue(){return this.value_}getData(){return this.data_}}const UiEventType={COMP:randomId(),COMP_DRAG_START:randomId(),COMP_DRAG_MOVE:randomId(),COMP_DRAG_END:randomId(),PANEL:randomId(),VIEW:randomId(),SPLIT:randomId(),SPLIT_WILL_OPEN:randomId(),SPLIT_DID_OPEN:randomId(),SPLIT_WILL_CLOSE:randomId(),SPLIT_DID_CLOSE:randomId(),SPLIT_TRANSITION_END:randomId(),READY:randomId(),PANEL_MINIMIZE:randomId(),FORM_SUBMIT_SUCCESS:randomId()},format=U=>{const D=Math.floor((new Date-U)/1e3),O=[{name:"year",seconds:31536e3},{name:"month",seconds:2592e3},{name:"week",seconds:604800},{name:"day",seconds:86400},{name:"hour",seconds:3600},{name:"minute",seconds:60},{name:"second",seconds:1}];if(D<0){const F=Math.abs(D);for(const q of O){const W=Math.floor(F/q.seconds);if(W>=1)return new Intl.RelativeTimeFormat("en",{numeric:"auto"}).format(W,q.name)}return"just now"}for(const F of O){const q=Math.floor(D/F.seconds);if(q>=1)return new Intl.RelativeTimeFormat("en",{numeric:"auto"}).format(-q,F.name)}return"just now"},getInputChecked_=function(U){return U.checked?U.value:null},getSelectSingle_=function(U){const w=U.selectedIndex;return w>=0?U.options[w].value:null},getSelectMultiple_=function(U){const w=[];for(let D,O=0;D=U.options[O];O++)D.selected&&w.push(D.value);return w.length?w:null},getValue=function(U){const w=U.type;switch(isString(w)&&w.toLowerCase()){case"checkbox":case"radio":return getInputChecked_(U);case"select-one":return getSelectSingle_(U);case"select-multiple":return getSelectMultiple_(U);default:return U.value!==null&&U.value!==void 0?U.value:null}},formToJSON=U=>[...U].reduce((w,D)=>(w[D.name]=D.value,w),{}),replaceNode=(U,w)=>{const D=w.parentNode;D&&D.replaceChild(U,w)},removeNode=U=>U&&U.parentNode?U.parentNode.removeChild(U):null,insertSiblingAfter=(U,w)=>{w.parentNode&&w.parentNode.insertBefore(U,w.nextSibling)},isInPage=U=>U===document.body?!1:document.body.contains(U),getPos=U=>[U.offsetLeft,U.offsetTop],randomColour=U=>[1,2,3].map(()=>Math.floor(Math.random()*256)+1).reduce((w,D)=>`${w}${D},`,"rgba(")+`${U||.5}`,totalWidth=U=>{const w=window.getComputedStyle(U),D=U.offsetWidth,O=parseFloat(w.marginLeft)+parseFloat(w.marginRight),F=parseFloat(w.paddingLeft)+parseFloat(w.paddingRight),q=parseFloat(w.borderLeftWidth)+parseFloat(w.borderRightWidth);return D+O-F+q},totalHeight=U=>{const w=window.getComputedStyle(U),D=U.offsetHeight,O=parseFloat(w.marginTop)+parseFloat(w.marginBottom),F=parseFloat(w.paddingTop)+parseFloat(w.paddingBottom),q=parseFloat(w.borderTopWidth)+parseFloat(w.borderBottomWidth);return D+O-F+q},evalScripts=comp=>arr=>{arr&&Array.from(arr).forEach(s=>{(function(){eval(s.text)}).bind(comp)()})},evalModules=U=>w=>{w&&Array.from(w).forEach(D=>{(function(){const O=document.createElement("script");O.type="module",O.textContent=D.textContent;const F=U.getElement(),q=getElDataMap(D).zv_comp_access;q&&(F.zvComponent=U,F.classList.add(q)),F.appendChild(O)}).bind(U)()})},splitScripts=U=>{const D=new DOMParser().parseFromString(U,"text/html");return{html:D.body.firstElementChild,scripts:D.querySelectorAll('script:not([type="module"])'),modules:D.querySelectorAll('script[type="module"]')}},handleTemplateProm=U=>Promise.resolve(splitScripts(U)),enableClass=(U,w,D)=>{D?U.classList.add(w):U.classList.remove(w)},toggleClass=(U,w)=>{const D=!Array.from(U.classList).includes(w);return enableClass(U,w,D),D},getElDataMap=U=>U?Object.assign({},U.dataset||{}):{},dtFormatter={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},dFormatter={year:"numeric",month:"short",day:"numeric"},dtf=new Intl.DateTimeFormat("en",{day:"2-digit",month:"short",year:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),dateToZooyStdTimeString=U=>{const[{value:w},,{value:D},,{value:O},,{value:F},,{value:q},,{value:W},,]=dtf.formatToParts(U);return`${D} ${w} ${O} ${F}:${q}:${W}`},parseMomentAgo=(U,w="both",D=void 0)=>{let O=U;isNumber(O)&&O<9466848e5?O=O*1e3:D&&(O=O+D);const F=new Date(O),q=format(F),W=dateToZooyStdTimeString(F);switch(w){case"time|ago":return`${W}|${q}`;case"ago":return`${q}`;case"datetime":case"time":return`${W}`;case"both":case"ago (time)":default:return`${q} (${W})`}},parseObfuscated=U=>{const D=(F=>q=>q<F.length-4)(U);return(F=>F.split("").map((q,W)=>D(W)?"*":q).join(""))(U)},parseMap=new Map().set(void 0,(U,w,D)=>identity(U)).set("",(U,w,D)=>identity(U)).set("class_update_only",(U,w,D)=>identity(U)).set("frac_100",(U,w,D)=>Math.round(U*100*100)/100).set("date_and_time",(U,w,D)=>new Date(U).toLocaleString(void 0,dtFormatter)).set("date",(U,w,D)=>new Date(U).toLocaleString(void 0,dFormatter)).set("moment_ago",(U,w,D)=>parseMomentAgo(U,"both",D.zdd_date_tz||void 0)).set("moment_ago_only",(U,w,D)=>parseMomentAgo(U,"ago",D.zdd_date_tz||void 0)).set("moment_ago_datetime",(U,w,D)=>parseMomentAgo(U,"datetime",D.zdd_date_tz||void 0)).set("pretty-json",(U,w,D)=>JSON.stringify(U,null,4)).set("obfuscated",(U,w,D)=>parseObfuscated(U)).set("linear-progress",(U,w,D)=>{const O=toNumber(D.zpmax),F=w.linProg;return O&&F&&(F.progress=U/O,U=void 0),U}),parseDataPropKvDef=U=>U.trim().split(",").map(O=>O.trim()).map(O=>{const[F,q]=O.split(":").map(W=>W.trim());return[F,q]}).filter(([O,F])=>O!==""&&F!==""),parseDataProps=(U,w)=>{const D=getElDataMap(U);delete U.dataset.zoodatapropkv;const O=D.zoodatapropkv||"";return parseDataPropKvDef(O).forEach(([q,W])=>{U.dataset[q]=pathOr(void 0,W.split("."))(w)}),U},mapDataToEls=(U,w,D=new Map,O=void 0)=>{if(!w)return;const F=new Map([...parseMap,...D]);[...U.querySelectorAll("[data-zdd],[data-zdd_class_update],[data-zdd_template_loop_index]")].forEach(q=>{const W=getElDataMap(q),Y=W.zdd||"",G=W.zdd_parse_as,K=W.zdd_render_effect||"",Q=W.zdd_class_update,tt=W.zdd_template_loop_index,J=W.zdd_units||"";let X=pathOr(void 0,Y.split("."))(w);if(isDefAndNotNull(X)&&(X=F.has(G)?F.get(G)(X,q,W):X),tt&&isNumber(O)&&(console.log("loopIndex: ",tt," opt_loopIndex: ",O),tt==="zero_indexed"?q.innerHTML=O:tt==="one_indexed"?q.innerHTML=O+1:q.innerHTML=O),Q){const[Z,et,st]=Q.split(":"),rt=pathOr(void 0,Z.split("."))(w);if(isDefAndNotNull(rt))switch(et){case"swap":{const nt=/\{}/gi,ot=st.replace(nt,""),ct=st.replace(nt,rt);q.classList.remove(...[...q.classList].filter(ht=>ht.includes(ot))),q.classList.add(ct);break}case"remove_on_data":q.classList.remove(st);break;case"choice_map":st.split("|").filter(nt=>nt!=="").forEach(nt=>{const[ot,ct]=nt.split(">");ot===rt+""?q.classList.add.apply(q.classList,ct.split(".")):q.classList.remove.apply(q.classList,ct.split("."))});break}}if(G==="templated-array"&&isArray(X))if(X.length===0)q.classList.add("display__none");else{q.classList.remove("display__none"),X=X||[];const Z=q.firstElementChild;Z.classList.remove("display__none"),q.replaceChildren(...X.map((et,st)=>{const rt=Z.cloneNode(!0),nt=parseDataProps(rt,et);return mapDataToEls(nt,et,void 0,st),nt}))}else if(isDefAndNotNull(X))if(K==="typewriter"){let Z=0;const et=X+J,st=5,rt=()=>{Z<et.length&&(q.innerHTML+=et.charAt(Z),Z++,setTimeout(rt,st))};q.innerHTML="",rt()}else q.innerHTML=X+J})},domUtils=Object.freeze(Object.defineProperty({__proto__:null,dateToZooyStdTimeString,dtf,enableClass,evalModules,evalScripts,formToJSON,getElDataMap,getPos,getValue,handleTemplateProm,insertSiblingAfter,isInPage,mapDataToEls,parseDataPropKvDef,parseMap,parseMomentAgo,randomColour,removeNode,replaceNode,splitScripts,toggleClass,totalHeight,totalWidth},Symbol.toStringTag,{value:"Module"}));class ComponentLibraryRegistry{static#t=new Map;static register(w,D){if(!D.render)throw new Error(`Component library '${w}' must provide a render function`);this.#t.set(w,{...D,dispose:D.dispose||null,cache:new Map,config:D.config||{}}),console.debug(`[ComponentLibraryRegistry] Registered: ${w}`)}static get(w){if(!this.#t.has(w)){const D=Array.from(this.#t.keys()).join(", ");throw new Error(`Component library '${w}' is not registered. Available: ${D||"none"}`)}return this.#t.get(w)}static has(w){return this.#t.has(w)}static getRegisteredLibraries(){return Array.from(this.#t.keys())}static getCacheStats(){const w={};for(const[D,O]of this.#t.entries())w[D]={cacheSize:O.cache.size,config:O.config};return w}static clearAllCaches(){for(const[w,D]of this.#t.entries())D.cache.clear(),console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${w}`)}static clearCache(w){this.get(w).cache.clear(),console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${w}`)}static unregister(w){return this.#t.delete(w)}static unregisterAll(){this.#t.clear()}}const ComponentError={NOT_SUPPORTED:"Method not supported",DECORATE_INVALID:"Invalid element to decorate",ALREADY_RENDERED:"Component already rendered",ALREADY_DISPOSED:"Component already disposed",PARENT_UNABLE_TO_BE_SET:"Unable to set parent component",CHILD_INDEX_OUT_OF_BOUNDS:"Child component index out of bounds",NOT_OUR_CHILD:"Child is not in parent component",NOT_IN_DOCUMENT:"Operation not supported while component is not in document",STATE_INVALID:"Invalid component state"};class Component extends Evt{static compEventCode(){return UiEventType.COMP}static compReadyCode(){return UiEventType.READY}static compErrors(){return ComponentError}#t;#e;#s;#r;#n;#i;#o;#a;constructor(){super(),this.#t=()=>document.createElement("div"),this.#e=!1,this.#s=void 0,this.#r=void 0,this.#n=void 0,this.#i=void 0,this.#o=new Map,this.outOfTreeElements=[],this.placeholderDom=void 0,this.#a=()=>{}}set target(w){this.#n=w}get target(){return this.#n}set model(w){this.#r=w}get model(){return this.#r}set isInDocument(w){this.#e=w}get isInDocument(){return this.#e}set domFunc(w){this.#t=w}set readyFunc(w){this.#a=w}setElementInternal_(w){this.#s=w}getElement(){return this.#s}createDom(){this.#s=this.#t()}assertCanRenderAsync(){if(this.disposed)throw new Error(ComponentError.ALREADY_DISPOSED)}render(w){this.render_(w)}render_(w){if(this.disposed)throw new Error(ComponentError.ALREADY_DISPOSED);if(this.isInDocument)throw new Error(ComponentError.ALREADY_RENDERED);this.#s||this.createDom();const D=this.#s;w&&(this.#n=w),this.placeholderDom&&removeNode(this.placeholderDom),this.#n?isInPage(D)||this.#n.insertBefore(D,null):isInPage(D)||document.body.appendChild(D),(!this.#i||this.#i.isInDocument)&&this.enterDocument()}hoist(w,D=void 0){D||(D=document.querySelector("body")),D.appendChild(w),this.outOfTreeElements.push(w)}executeBeforeReady(){this.#a()}enterDocument(){this.disposed?removeNode(this.getElement()):(this.isInDocument=!0,[...this.#o.values()].forEach(w=>{!w.isInDocument&&w.getElement()&&w.enterDocument()}),this.executeBeforeReady(),this.dispatchCompEvent(UiEventType.READY))}exitDocument(){[...this.#o.values()].forEach(w=>{w.isInDocument&&w.exitDocument()}),this.stopBeingListenedTo(),this.removeAllListener(),this.isInDocument=!1,removeNode(this.getElement()),this.placeholderDom&&removeNode(this.placeholderDom)}disposeInternal(){this.isInDocument&&this.exitDocument(),this.#o&&[...this.#o.values()].forEach(w=>w.disposeInternal()),this.outOfTreeElements.forEach(removeNode),this.#s&&removeNode(this.#s),this.placeholderDom&&removeNode(this.placeholderDom),this.#o=null,this.#s=void 0,this.#r=null,this.#i=null,super.disposeInternal()}dispose(){this.abortController&&this.abortController.abort();const w=this.getElement();if(w)for(const D of ComponentLibraryRegistry.getRegisteredLibraries())try{const O=ComponentLibraryRegistry.get(D);O.dispose&&O.dispose(w)}catch(O){console.debug(`[${D}] Cleanup error during component disposal (non-critical):`,O)}super.dispose()}dispatchCompEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.COMP,O);return this.dispatchEvent(F)}}const EV={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEMOVE:"mousemove",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",SUBMIT:"submit",CHANGE:"change",INPUT:"input",INVALID:"invalid",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGOVER:"dragover",DRAGENTER:"dragenter",DRAGEXIT:"dragexit",DRAGLEAVE:"dragleave",DROP:"drop",TRANSITIONEND:"transitionend"},touchEvents=[EV.TOUCHMOVE,EV.TOUCHSTART,EV.TOUCHEND],isTouchEvent=U=>touchEvents.includes(U.type),normalizeEvent=U=>(isTouchEvent(U)&&(U.clientX=U.targetTouches[0].clientX,U.clientY=U.targetTouches[0].clientY),U),dragStartListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F),W=q.currentTarget,[Y,G]=getPos(W),K=q.clientX-Y,Q=q.clientY-G,tt=U(Y,G,K,Q,W),J=D(Y,G,K,Q,W),X=w(Y,G,K,Q,W);let Z=freeMoveListener(X,W,K,Q);["x","ew"].includes(O)?Z=xMoveOnlyListener(X,W,K):["y","ns"].includes(O)&&(Z=yMoveOnlyListener(X,W,K,Q));let et=!1;const st=nt=>{et=!0,Z(nt)},rt=nt=>{document.removeEventListener(EV.MOUSEMOVE,st,!0),document.removeEventListener(EV.TOUCHMOVE,st,!0),document.removeEventListener(EV.MOUSEUP,rt,!0),document.removeEventListener(EV.TOUCHEND,rt,!0),et&&J(nt)};return document.addEventListener(EV.MOUSEUP,rt,!0),document.addEventListener(EV.TOUCHEND,rt,!0),document.addEventListener(EV.MOUSEMOVE,st,!0),document.addEventListener(EV.TOUCHMOVE,st,!0),tt(F),rt},freeMoveListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F);w.style.left=`${q.clientX-D}px`,w.style.top=`${q.clientY-O}px`,U(q)},xMoveOnlyListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F);w.style.left=`${q.clientX-D}px`,U(q)},yMoveOnlyListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F);w.style.top=`${q.clientY-O}px`,U(q)},makeEmitter=(U,w)=>(D,O,F,q,W)=>Y=>{U.dispatchCompEvent(w,{component:U,browserEvent:Y,left:D,top:O,clientX:Y.clientX,clientY:Y.clientY,xOrg:F,yOrg:q,deltaX:Y.clientX-F-D,deltaY:Y.clientY-q-O,target:W})};class Dragger extends Component{#t;#e;#s;#r;constructor(w="xy"){super(),this.#t=["x","y","xy","ew","ns"].includes(w.toLowerCase())?w.toLowerCase():"xy",this.#e=void 0,this.#s=!0,this.#r=D=>null}cancelDrag(w){this.#r(w)}set moveFreedom(w){this.#t=w,this.#s||(this.lock(),this.unlock())}get moveFreedom(){return this.#t}executeBeforeReady(){this.unlock(),super.executeBeforeReady()}unlock(){const w=D=>O=>{this.#r=D(O)};if(this.isInDocument&&this.#s){const D=makeEmitter(this,UiEventType.COMP_DRAG_MOVE),O=makeEmitter(this,UiEventType.COMP_DRAG_START),F=makeEmitter(this,UiEventType.COMP_DRAG_END),q=dragStartListener(O,D,F,this.#t);this.#s=!1,this.#e=this.#e||this.getElement(),this.listen(this.#e,EV.MOUSEDOWN,w(q)),this.listen(this.#e,EV.TOUCHSTART,q),this.#e.classList.remove("locked")}}lock(){this.stopListeningTo(this.#e,EV.MOUSEDOWN),this.stopListeningTo(this.#e,EV.TOUCHSTART),this.#s=!0,this.#e.classList.add("locked")}}const splitRe_=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),ComponentIndex={PATH:5,QUERY_DATA:6},split=U=>U.match(splitRe_),decodeOrEmpty_=(U,w)=>U?decodeURI(U.replace(/%25/g,"%2525")):"",getPath=U=>decodeOrEmpty_(split(U)[ComponentIndex.PATH]),getQueryData=U=>decodeOrEmpty_(split(U)[ComponentIndex.QUERY_DATA]),objectToUrlParms=U=>[...Object.entries(U)].map(w=>`${w[0]}=${w[1]}`).join("&"),isValidValue=U=>U!=null&&U!=="",queryDataToMap=U=>U.split("&").reduce((w,D)=>{const[O,F]=D.split("=");return isValidValue(O)&&isValidValue(F)&&w.set(O,F),w},new Map),uriUtils=Object.freeze(Object.defineProperty({__proto__:null,getPath,getQueryData,objectToUrlParms,queryDataToMap},Symbol.toStringTag,{value:"Module"})),stripLeadingSpace=stripLeadingChar(" "),stripLeadingSlash=stripLeadingChar("/"),getCookieByName=U=>document.cookie.split(";").map(w=>w.split("=")).reduce((w,D)=>w.set(stripLeadingSpace(D[0]),D[1]),new Map).get(U),spinner=U=>{let w=0,D;const O=F=>{const q=F>0;return q?w+=1:w-=1,q?w===1:w===0};return F=>{D=D||document.getElementById(U),D&&O(F)&&D.classList.toggle("viz",w>0)}},spin=spinner("the_loader"),startSpin=()=>Promise.resolve(spin(1)),stopSpin=U=>(spin(0),Promise.resolve(U)),checkStatus=U=>U.ok?Promise.resolve(U):Promise.reject(new Error(`${U.url} ${U.status} (${U.statusText})`)),checkStatusTwo=U=>w=>{if(w.type==="opaqueredirect"||w.redirected){const D=stripLeadingSlash(getPath(w.url));U.setIsRedirected(!0,D),console.log("Redirect detected",D)}return checkStatus(w)},getJson=U=>U.json(),getText=U=>U.text().then(w=>Promise.resolve(w),w=>Promise.reject(new Error(`Could not get text from response: ${w}`))),getTextOrJson=U=>U.headers.get("Content-Type")==="application/json"?getJson(U):getText(U),jsonInit=(U,w,D="POST",O=void 0)=>{const F=new Headers;F.append("Content-type","application/json"),F.append("X-Requested-With","XMLHttpRequest"),U&&U!==""&&F.append("Authorization",`Bearer ${U}`);const q={cache:"no-cache",method:D,headers:F,credentials:"include",body:JSON.stringify(w)};return O&&(q.signal=O),q},basicPutPostPatchInit=(U,w,D=!1,O=void 0)=>{const F=new Headers;if(w&&w!==""&&F.append("Authorization",`Bearer ${w}`),F.append("X-Requested-With","XMLHttpRequest"),D){const W=getCookieByName("csrftoken");W&&D&&F.append("X-CSRFToken",W)}const q={cache:"no-cache",method:U,headers:F,redirect:"follow",credentials:"include"};return O&&(q.signal=O),q},formPostInit=(U,w,D=void 0)=>{const F=basicPutPostPatchInit("POST",U,!1,D);return F.body=new FormData(w.formEl),F},basicGetInit=(U,w=void 0)=>{const D=new Headers;D.append("Authorization",`Bearer ${U}`),D.append("X-Requested-With","XMLHttpRequest");const O={cache:"no-cache",headers:D,credentials:"include"};return w&&(O.signal=w),O},putPostPatchNobody=(U,w)=>{const D=new Request(U);return fetch(D,w).then(checkStatus).then(getText)},genCatchClause=(U,w=void 0)=>D=>(stopSpin("").then(identity),D.name==="AbortError"?console.info(U,"ABORTED!"):console.error(U,D),w);class UserManager{constructor(w){this.user_={},this.jwt="",w&&this.updateProfileFromJwt(w).then(()=>{})}updateProfileFromJwt(w,D=!1){return D&&this.jwt!==""?Promise.resolve("User Profile Already exists"):w.non_field_errors?Promise.reject(new Error(`JWT ${w.non_field_errors}`)):(this.updateToken(w.token),this.updateProfile(w.user),Promise.resolve("User Profile Updated"))}updateProfile(w){this.user_=w}updateToken(w){this.jwt=w}get id(){return this.user_.id}get name(){return this.user_.name}get surname(){return this.user_.surname}get salutation(){let w=this.name;const D=this.surname;return D&&(w=w+" "+D),w}formSubmit(w){const D=new Request(w.uri.toString()),O=w.processSubmitReply.bind(w),F=genCatchClause("Form submit error");return startSpin().then(()=>fetch(D,formPostInit(this.jwt,w,w.abortController.signal))).then(checkStatusTwo(w)).then(stopSpin).then(getTextOrJson).then(O).catch(F)}putNoBody(w,D=void 0,O=!1){const F=genCatchClause("putNobody error"),q=basicPutPostPatchInit("PUT",this.jwt,O,D);return putPostPatchNobody(w,q).catch(F)}fetch(w,D=void 0){const O=new Request(w.toString()),F=genCatchClause(`UMan Text GET Fetch: ${w}`);return startSpin().then(()=>fetch(O,basicGetInit(this.jwt,D))).then(checkStatus).then(stopSpin).then(getText).catch(F)}fetchAndSplit(w,D=void 0){const O=genCatchClause(`fetchAndSplit: ${w}`);return this.fetch(w,D).then(handleTemplateProm).catch(O)}async fetchJson(w,D=void 0){const O=new Request(w.toString()),F=genCatchClause(`fetchJson: ${w}`,{}),q=basicGetInit(this.jwt,D);await startSpin();let W={};try{W=await(await fetch(O,q)).json()}catch(Y){return F(Y)}return await stopSpin(),W}patchJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`patchJson: ${w}`),W=jsonInit(this.jwt,D,"PATCH",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}postJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`postJson: ${w}`),W=jsonInit(this.jwt,D,"POST",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}putJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`putJson: ${w}`),W=jsonInit(this.jwt,D,"PUT",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}delJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`delJson: ${w}`),W=jsonInit(this.jwt,D,"DELETE",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}}class Panel extends Component{static panelEventCode(){return UiEventType.PANEL}static compReadyCode(){return UiEventType.READY}constructor(w){super(),this.qParamMap_=new Map,this.uri_="",w&&this.parseUri(w),this.evalScripts=evalScripts(this),this.evalModules=evalModules(this),this.redirected=!1,this.responseObject={html:null,scripts:null},this.user_=void 0,"AbortController"in window?this.abortController=new AbortController:this.abortController={signal:void 0,abort:()=>{}},this.listMap=new Map}get uri(){const w=this.qParamMap_.size>0?"?"+objectToUrlParms(Object.fromEntries(this.qParamMap_)):"";return this.uri_+w}set user(w){this.user_=w}get user(){return this.user_||(this.user_=new UserManager),this.user_}parseUri(w){this.uri_=getPath(w),this.qParamMap_=queryDataToMap(getQueryData(w))}addToQParams(w,D){this.qParamMap_.set(w,D)}removeFromQParams(w){this.qParamMap_.delete(w)}clearQParams(){this.qParamMap_.clear()}getCarbonComponents(w){return this.carbonComponents?.get(w)||[]}getCarbonComponentById(w){if(this.carbonComponents)for(const D of this.carbonComponents.values()){const O=D.find(F=>F.id===w);if(O)return O}}renderPlaceHolder(w){this.target&&(this.placeholderDom=w,this.target.insertBefore(this.placeholderDom,null))}renderWithTemplate(w){const D=this.user;return D?D.fetch(this.uri,this.abortController.signal).then(O=>(this.assertCanRenderAsync(),w&&w(this),this.onRenderWithTemplateReply(O).catch(F=>{F.message!==Component.compErrors().ALREADY_DISPOSED&&console.error("RenderWithTemplate Err:",F)}),this)).catch(O=>{throw console.error("Panel.renderWithTemplate fetch failed:",O),O}):Promise.reject(new Error("No UserManager instance available for Panel.renderWithTemplate()"))}onRenderWithTemplateReply(w){return this.responseObject=splitScripts(w),this.domFunc=()=>this.responseObject.html,this.render(),Promise.resolve(this)}onReplacePartialDom(w,D){const O=this.getElement();if(isUndefined(O))return;const F=w.html;if(D.startsWith("."))[...O.querySelectorAll(D)].filter(q=>isDefAndNotNull(q.id)).map(q=>[q,F.querySelector(`#${q.id}`)]).filter(([q,W])=>isDefAndNotNull(W)).forEach(([q,W])=>{q.parentNode.replaceChild(W,q),this.parseContent(W)});else if(D.startsWith("#")){const q=F.querySelector(D),W=O.querySelector(D);W.parentNode.replaceChild(q,W),this.parseContent(q)}this.evalScripts(w.scripts),this.evalModules(w.modules)}renderWithJSON(w){return this.user?this.user.fetchJson(this.uri_,this.abortController.signal).then(O=>{this.assertCanRenderAsync(),w&&w(O,this),this.onRenderWithJSON(O).then(identity)}).catch(O=>{throw console.error("Panel.renderWithJSON fetch failed:",O),O}):Promise.reject(new Error("No UserManager instance available for Panel.renderWithJSON()"))}onRenderWithJSON(w){return Promise.resolve(this)}onAsyncJsonReply(w,D,O){}onAsyncHtmlReply(w,D){}onViewDataBroadcast(w){}parseContent(w){if(this.debugMe("Enable interactions. Panel:",w),typeof window.customElements<"u"&&ComponentLibraryRegistry.has("carbon")){const J=ComponentLibraryRegistry.get("carbon");J.render.call(this,w,J.cache).catch(X=>console.error("[Zooy] Carbon initialization failed:",X))}if(ComponentLibraryRegistry.has("mdc")){const J=ComponentLibraryRegistry.get("mdc");J.render.call(this,w,J.cache)}w.classList.contains("zoo__modal-base")&&w.classList.contains("close_on_click")&&this.listen(w,EV.CLICK,J=>{J.target===w&&this.dispatchPanelEvent("destroy_me")}),[...w.querySelectorAll(".zoo__button:not(.external):not(.mdc-data-table__row)")].forEach(J=>{this.listen(J,EV.CLICK,X=>{X.stopPropagation();const Z=X.currentTarget,et=getElDataMap(Z);this.dispatchPanelEvent(et.zv,Object.assign({orgEvt:X,trigger:Z,href:Z.href||et.href},et))})}),[...w.querySelectorAll("[href]:not(.external)")].forEach(J=>{this.listen(J,EV.CLICK,X=>{const Z=X.currentTarget;X.preventDefault(),X.stopPropagation();const et=getElDataMap(Z),st=et.zv||"href";this.dispatchPanelEvent(st,Object.assign({orgEvt:X,trigger:X.target,href:Z.href||et.href},et))})}),[...w.querySelectorAll("form.intercept_submit")].forEach(J=>{J.noValidate=!0,this.listen(J,EV.SUBMIT,X=>{X.preventDefault(),X.stopPropagation();const Z=getElDataMap(J),et=formToJSON(J.elements);this.dispatchPanelEvent(Z.zv,Object.assign({orgEvt:X,trigger:X.target,formData:et,href:Z.href},Z))})}),[...w.querySelectorAll(".zoo__toggle_class_driver")].forEach(J=>{const X=getElDataMap(J),Z=X.toggle_class_target_id,et=X.toggle_class,st=w.querySelector(`#${Z}`);st&&et&&J.addEventListener(EV.CLICK,rt=>{rt.stopPropagation(),st.classList.toggle(et)})});const D=Array.from(w.querySelectorAll(".folder_drop_zone")),O=Array.from(w.querySelectorAll("[draggable]")),F=J=>{J.preventDefault(),J.target.classList.add("drag_over")},q=J=>{J.preventDefault()},W=J=>{J.preventDefault(),J.target.classList.remove("drag_over")},Y=J=>{J.preventDefault(),J.target.classList.remove("drag_over")},G=J=>{J.preventDefault(),J.target.classList.remove("drag_over")},K=J=>{J.dataTransfer.dropEffect="move";const X=getElDataMap(J.target);J.dataTransfer.setData("text/plain",JSON.stringify(X)),J.target.classList.add("drag_in_progress")},Q=J=>{J.target.classList.remove("drag_in_progress")},tt=J=>{G(J),J.stopPropagation();const X=JSON.parse(J.dataTransfer.getData("text/plain")),Z=getElDataMap(J.target);return this.dispatchPanelEvent("drop_on",{custom:{on:Z,from:X}}),!1};D.forEach(J=>{this.listen(J,EV.DRAGOVER,q),this.listen(J,EV.DRAGENTER,F),this.listen(J,EV.DRAGEXIT,Y),this.listen(J,EV.DRAGLEAVE,W),this.listen(J,EV.DROP,tt)}),O.forEach(J=>{this.listen(J,EV.DRAGSTART,K),this.listen(J,EV.DRAGEND,Q)}),[...w.querySelectorAll(".zoo_async_json")].forEach(J=>{const X=getElDataMap(J),Z=X.href,et=this.onAsyncJsonReply.bind(this,J,X);this.user.fetchJson(Z,this.abortController.signal).then(et);const st=X.z_json_reusable;st&&(this.jsonCallFuncs=this.jsonCallFuncs||{},this.jsonCallFuncs[st]=()=>{this.user.fetchJson(Z,this.abortController.signal).then(et)});const rt=toNumber(X.z_interval);isNumber(rt)&&this.doOnBeat(()=>{this.user.fetchJson(Z,this.abortController.signal).then(et)},rt*60*1e3)}),[...w.querySelectorAll(".zoo_async_html")].forEach(J=>{const X=getElDataMap(J),Z=X.href;this.user.fetchAndSplit(Z,this.abortController.signal).then(st=>{J.appendChild(st.html),this.parseContent(J),this.evalScripts(st.scripts),this.evalModules(st.modules),this.onAsyncHtmlReply(J,X)});const et=toNumber(X.z_interval);isNumber(et)&&this.doOnBeat(()=>{this.user.fetchAndSplit(Z,this.abortController.signal).then(st=>{J.replaceChildren(st.html),this.parseContent(J),this.evalScripts(st.scripts),this.evalModules(st.modules)})},et*60*1e3)})}enterDocument(){const w=this.getElement();this.parseContent(w),this.evalScripts(this.responseObject.scripts),this.evalModules(this.responseObject.modules),super.enterDocument()}exitDocument(){this.abortController.abort(),super.exitDocument()}setIsRedirected(w,D){this.redirected=w,this.redirected&&D&&(this.uri_=D)}dispatchPanelEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.PANEL,O);return this.debugMe(`PANEL EVENT FIRED:
1
+ "use strict";const numericString="0123456789".split("");[...numericString];const alphaLower="abcdefghijklmnopqrstuvwxyz".split(""),alphaUpper="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");[...alphaLower,...alphaUpper,...numericString];new Map().set("true",!0).set("false",!1);const compose=(...U)=>(...w)=>U.reduce((D,O)=>F=>D(O(F)))(...w),identity=U=>U,whatType=U=>typeof U,isDef=U=>U!==void 0,isUndefined=U=>U===void 0,isDefAndNotNull=U=>U!=null,isString=U=>whatType(U)==="string",isNumber=U=>whatType(U)==="number"&&!Number.isNaN(U),isObject=U=>(U&&typeof U=="object"&&!(U instanceof Array)&&!(U instanceof Set)&&!(U instanceof Map)&&!(U instanceof Date))===!0,isArray=U=>U instanceof Array,reverse=U=>Array.from(U).reduce((w,D)=>[D,...w],[]),toLowerCase=U=>U.toLowerCase(),toString$1=U=>U+"",toNumber=U=>+U;compose(toLowerCase,toString$1);const makeRandomString=()=>{let U=2147483648;return Math.floor(Math.random()*U).toString(36)+Math.abs(Math.floor(Math.random()*U)^Date.now()).toString(36)},stripLeadingChar=U=>w=>w.startsWith(U)?w.slice(U.length):w,join=U=>w=>w.join(U);compose(join(""),reverse);const pathOr=(U,w)=>D=>{const O=w.reduce((F,q)=>{try{return F[maybeNumber(q)]}catch{return}},D);return O===void 0?U:O},objToPaths=(U,w=[],D=[])=>(Object.entries(U).forEach(([O,F])=>{isObject(F)?objToPaths(F,[...w,O],D):D.push([[...w,O],F])}),D),randomId=U=>{const w=makeRandomString();return U?w.substr(0,U):w},maybeNumber=U=>{if(U===null||whatType(U)==="string"&&U.length>1&&U.startsWith("0")&&!U.startsWith("0."))return U;const w=1*U;return w>Number.MAX_SAFE_INTEGER||Number.isNaN(w)?U:w};compose(toNumber,join(""),reverse,toString$1);class Evt extends EventTarget{#t=!1;#e=!1;#s=new Map;#r=new Set;#n=new Set;static makeEvent(w,D){return new CustomEvent(w,{detail:D})}set debugMode(w){if(typeof w!="boolean")throw new Error("This must be a boolean");this.#t=w}get debugMode(){return this.#t}get disposed(){return this.#e}get listeningTo(){return this.#s}get isObservedBy(){return this.#r}get activeIntervals(){return this.#n}debugMe(...w){this.#t&&console.log.apply(null,[this.constructor.name,"DEBUG:",...w])}isListenedToBy(w){this.#r.add(w)}listen(w,D,O,F=!1){w.addEventListener(D,O,F);const q=this.listeningTo.get(w)||{};q[D]=()=>w.removeEventListener(D,O,F),this.listeningTo.set(w,q),isDef(w.isListenedToBy)&&w.isListenedToBy(this)}stopBeingListenedTo(){for(const w of this.isObservedBy)w.stopListeningTo(this),this.isObservedBy.delete(w)}stopListeningTo(w,D){w&&this.listeningTo.has(w)&&(isDef(w.isObservedBy)&&w.isObservedBy.delete(this),isDef(D)?(Object.entries(this.listeningTo.get(w)).forEach(([O,F])=>{O===D&&F()}),Object.keys(this.listeningTo.get(w)).length||this.listeningTo.delete(w)):(Object.values(this.listeningTo.get(w)).forEach(O=>O()),this.listeningTo.delete(w)))}removeAllListener(){for(const w of this.listeningTo.keys())this.stopListeningTo(w)}clearAllIntervals(){for(const w of this.activeIntervals)clearInterval(w),this.activeIntervals.delete(w)}doOnBeat(w,D){const O=setInterval(w,D);this.activeIntervals.add(O)}disposeInternal(){this.stopBeingListenedTo(),this.removeAllListener(),this.clearAllIntervals(),this.#e=!0}dispose(){this.disposeInternal()}}class ZooyEventData{constructor(w,D){this.value_=w,this.data_=D||{}}getValue(){return this.value_}getData(){return this.data_}}const UiEventType={COMP:randomId(),COMP_DRAG_START:randomId(),COMP_DRAG_MOVE:randomId(),COMP_DRAG_END:randomId(),PANEL:randomId(),VIEW:randomId(),SPLIT:randomId(),SPLIT_WILL_OPEN:randomId(),SPLIT_DID_OPEN:randomId(),SPLIT_WILL_CLOSE:randomId(),SPLIT_DID_CLOSE:randomId(),SPLIT_TRANSITION_END:randomId(),READY:randomId(),PANEL_MINIMIZE:randomId(),FORM_SUBMIT_SUCCESS:randomId()},format=U=>{const D=Math.floor((new Date-U)/1e3),O=[{name:"year",seconds:31536e3},{name:"month",seconds:2592e3},{name:"week",seconds:604800},{name:"day",seconds:86400},{name:"hour",seconds:3600},{name:"minute",seconds:60},{name:"second",seconds:1}];if(D<0){const F=Math.abs(D);for(const q of O){const W=Math.floor(F/q.seconds);if(W>=1)return new Intl.RelativeTimeFormat("en",{numeric:"auto"}).format(W,q.name)}return"just now"}for(const F of O){const q=Math.floor(D/F.seconds);if(q>=1)return new Intl.RelativeTimeFormat("en",{numeric:"auto"}).format(-q,F.name)}return"just now"},getInputChecked_=function(U){return U.checked?U.value:null},getSelectSingle_=function(U){const w=U.selectedIndex;return w>=0?U.options[w].value:null},getSelectMultiple_=function(U){const w=[];for(let D,O=0;D=U.options[O];O++)D.selected&&w.push(D.value);return w.length?w:null},getValue=function(U){const w=U.type;switch(isString(w)&&w.toLowerCase()){case"checkbox":case"radio":return getInputChecked_(U);case"select-one":return getSelectSingle_(U);case"select-multiple":return getSelectMultiple_(U);default:return U.value!==null&&U.value!==void 0?U.value:null}},formToJSON=U=>[...U].reduce((w,D)=>(w[D.name]=D.value,w),{}),replaceNode=(U,w)=>{const D=w.parentNode;D&&D.replaceChild(U,w)},removeNode=U=>U&&U.parentNode?U.parentNode.removeChild(U):null,insertSiblingAfter=(U,w)=>{w.parentNode&&w.parentNode.insertBefore(U,w.nextSibling)},isInPage=U=>U===document.body?!1:document.body.contains(U),getPos=U=>[U.offsetLeft,U.offsetTop],randomColour=U=>[1,2,3].map(()=>Math.floor(Math.random()*256)+1).reduce((w,D)=>`${w}${D},`,"rgba(")+`${U||.5}`,totalWidth=U=>{const w=window.getComputedStyle(U),D=U.offsetWidth,O=parseFloat(w.marginLeft)+parseFloat(w.marginRight),F=parseFloat(w.paddingLeft)+parseFloat(w.paddingRight),q=parseFloat(w.borderLeftWidth)+parseFloat(w.borderRightWidth);return D+O-F+q},totalHeight=U=>{const w=window.getComputedStyle(U),D=U.offsetHeight,O=parseFloat(w.marginTop)+parseFloat(w.marginBottom),F=parseFloat(w.paddingTop)+parseFloat(w.paddingBottom),q=parseFloat(w.borderTopWidth)+parseFloat(w.borderBottomWidth);return D+O-F+q},evalScripts=comp=>arr=>{arr&&Array.from(arr).forEach(s=>{(function(){eval(s.text)}).bind(comp)()})},evalModules=U=>w=>{w&&Array.from(w).forEach(D=>{(function(){const O=document.createElement("script");O.type="module",O.textContent=D.textContent;const F=U.getElement(),q=getElDataMap(D).zv_comp_access;q&&(F.zvComponent=U,F.classList.add(q)),F.appendChild(O)}).bind(U)()})},splitScripts=U=>{const D=new DOMParser().parseFromString(U,"text/html");return{html:D.body.firstElementChild,scripts:D.querySelectorAll('script:not([type="module"])'),modules:D.querySelectorAll('script[type="module"]')}},handleTemplateProm=U=>Promise.resolve(splitScripts(U)),enableClass=(U,w,D)=>{D?U.classList.add(w):U.classList.remove(w)},toggleClass=(U,w)=>{const D=!Array.from(U.classList).includes(w);return enableClass(U,w,D),D},getElDataMap=U=>U?Object.assign({},U.dataset||{}):{},dtFormatter={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},dFormatter={year:"numeric",month:"short",day:"numeric"},dtf=new Intl.DateTimeFormat("en",{day:"2-digit",month:"short",year:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),dateToZooyStdTimeString=U=>{const[{value:w},,{value:D},,{value:O},,{value:F},,{value:q},,{value:W},,]=dtf.formatToParts(U);return`${D} ${w} ${O} ${F}:${q}:${W}`},parseMomentAgo=(U,w="both",D=void 0)=>{let O=U;isNumber(O)&&O<9466848e5?O=O*1e3:D&&(O=O+D);const F=new Date(O),q=format(F),W=dateToZooyStdTimeString(F);switch(w){case"time|ago":return`${W}|${q}`;case"ago":return`${q}`;case"datetime":case"time":return`${W}`;case"both":case"ago (time)":default:return`${q} (${W})`}},parseObfuscated=U=>{const D=(F=>q=>q<F.length-4)(U);return(F=>F.split("").map((q,W)=>D(W)?"*":q).join(""))(U)},parseMap=new Map().set(void 0,(U,w,D)=>identity(U)).set("",(U,w,D)=>identity(U)).set("class_update_only",(U,w,D)=>identity(U)).set("frac_100",(U,w,D)=>Math.round(U*100*100)/100).set("date_and_time",(U,w,D)=>new Date(U).toLocaleString(void 0,dtFormatter)).set("date",(U,w,D)=>new Date(U).toLocaleString(void 0,dFormatter)).set("moment_ago",(U,w,D)=>parseMomentAgo(U,"both",D.zdd_date_tz||void 0)).set("moment_ago_only",(U,w,D)=>parseMomentAgo(U,"ago",D.zdd_date_tz||void 0)).set("moment_ago_datetime",(U,w,D)=>parseMomentAgo(U,"datetime",D.zdd_date_tz||void 0)).set("pretty-json",(U,w,D)=>JSON.stringify(U,null,4)).set("obfuscated",(U,w,D)=>parseObfuscated(U)).set("linear-progress",(U,w,D)=>{const O=toNumber(D.zpmax),F=w.linProg;return O&&F&&(F.progress=U/O,U=void 0),U}),parseDataPropKvDef=U=>U.trim().split(",").map(O=>O.trim()).map(O=>{const[F,q]=O.split(":").map(W=>W.trim());return[F,q]}).filter(([O,F])=>O!==""&&F!==""),parseDataProps=(U,w)=>{const D=getElDataMap(U);delete U.dataset.zoodatapropkv;const O=D.zoodatapropkv||"";return parseDataPropKvDef(O).forEach(([q,W])=>{U.dataset[q]=pathOr(void 0,W.split("."))(w)}),U},mapDataToEls=(U,w,D=new Map,O=void 0)=>{if(!w)return;const F=new Map([...parseMap,...D]);[...U.querySelectorAll("[data-zdd],[data-zdd_class_update],[data-zdd_template_loop_index]")].forEach(q=>{const W=getElDataMap(q),Y=W.zdd||"",G=W.zdd_parse_as,K=W.zdd_render_effect||"",Q=W.zdd_class_update,tt=W.zdd_template_loop_index,J=W.zdd_units||"";let X=pathOr(void 0,Y.split("."))(w);if(isDefAndNotNull(X)&&(X=F.has(G)?F.get(G)(X,q,W):X),tt&&isNumber(O)&&(console.log("loopIndex: ",tt," opt_loopIndex: ",O),tt==="zero_indexed"?q.innerHTML=O:tt==="one_indexed"?q.innerHTML=O+1:q.innerHTML=O),Q){const[Z,et,st]=Q.split(":"),rt=pathOr(void 0,Z.split("."))(w);if(isDefAndNotNull(rt))switch(et){case"swap":{const nt=/\{}/gi,ot=st.replace(nt,""),ct=st.replace(nt,rt);q.classList.remove(...[...q.classList].filter(ht=>ht.includes(ot))),q.classList.add(ct);break}case"remove_on_data":q.classList.remove(st);break;case"choice_map":st.split("|").filter(nt=>nt!=="").forEach(nt=>{const[ot,ct]=nt.split(">");ot===rt+""?q.classList.add.apply(q.classList,ct.split(".")):q.classList.remove.apply(q.classList,ct.split("."))});break}}if(G==="templated-array"&&isArray(X))if(X.length===0)q.classList.add("display__none");else{q.classList.remove("display__none"),X=X||[];const Z=q.firstElementChild;Z.classList.remove("display__none"),q.replaceChildren(...X.map((et,st)=>{const rt=Z.cloneNode(!0),nt=parseDataProps(rt,et);return mapDataToEls(nt,et,void 0,st),nt}))}else if(isDefAndNotNull(X))if(K==="typewriter"){let Z=0;const et=X+J,st=5,rt=()=>{Z<et.length&&(q.innerHTML+=et.charAt(Z),Z++,setTimeout(rt,st))};q.innerHTML="",rt()}else q.innerHTML=X+J})},domUtils=Object.freeze(Object.defineProperty({__proto__:null,dateToZooyStdTimeString,dtf,enableClass,evalModules,evalScripts,formToJSON,getElDataMap,getPos,getValue,handleTemplateProm,insertSiblingAfter,isInPage,mapDataToEls,parseDataPropKvDef,parseMap,parseMomentAgo,randomColour,removeNode,replaceNode,splitScripts,toggleClass,totalHeight,totalWidth},Symbol.toStringTag,{value:"Module"}));class ComponentLibraryRegistry{static#t=new Map;static register(w,D){if(!D.render)throw new Error(`Component library '${w}' must provide a render function`);this.#t.set(w,{...D,dispose:D.dispose||null,cache:new Map,config:D.config||{}}),console.debug(`[ComponentLibraryRegistry] Registered: ${w}`)}static get(w){if(!this.#t.has(w)){const D=Array.from(this.#t.keys()).join(", ");throw new Error(`Component library '${w}' is not registered. Available: ${D||"none"}`)}return this.#t.get(w)}static has(w){return this.#t.has(w)}static getRegisteredLibraries(){return Array.from(this.#t.keys())}static getCacheStats(){const w={};for(const[D,O]of this.#t.entries())w[D]={cacheSize:O.cache.size,config:O.config};return w}static clearAllCaches(){for(const[w,D]of this.#t.entries())D.cache.clear(),console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${w}`)}static clearCache(w){this.get(w).cache.clear(),console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${w}`)}static unregister(w){return this.#t.delete(w)}static unregisterAll(){this.#t.clear()}}const ComponentError={NOT_SUPPORTED:"Method not supported",DECORATE_INVALID:"Invalid element to decorate",ALREADY_RENDERED:"Component already rendered",ALREADY_DISPOSED:"Component already disposed",PARENT_UNABLE_TO_BE_SET:"Unable to set parent component",CHILD_INDEX_OUT_OF_BOUNDS:"Child component index out of bounds",NOT_OUR_CHILD:"Child is not in parent component",NOT_IN_DOCUMENT:"Operation not supported while component is not in document",STATE_INVALID:"Invalid component state"};class Component extends Evt{static compEventCode(){return UiEventType.COMP}static compReadyCode(){return UiEventType.READY}static compErrors(){return ComponentError}#t;#e;#s;#r;#n;#i;#o;#a;constructor(){super(),this.#t=()=>document.createElement("div"),this.#e=!1,this.#s=void 0,this.#r=void 0,this.#n=void 0,this.#i=void 0,this.#o=new Map,this.outOfTreeElements=[],this.placeholderDom=void 0,this.#a=()=>{}}set target(w){this.#n=w}get target(){return this.#n}set model(w){this.#r=w}get model(){return this.#r}set isInDocument(w){this.#e=w}get isInDocument(){return this.#e}set domFunc(w){this.#t=w}set readyFunc(w){this.#a=w}setElementInternal_(w){this.#s=w}getElement(){return this.#s}createDom(){this.#s=this.#t()}assertCanRenderAsync(){if(this.disposed)throw new Error(ComponentError.ALREADY_DISPOSED)}render(w){this.render_(w)}render_(w){if(this.disposed)throw new Error(ComponentError.ALREADY_DISPOSED);if(this.isInDocument)throw new Error(ComponentError.ALREADY_RENDERED);this.#s||this.createDom();const D=this.#s;w&&(this.#n=w),this.placeholderDom&&removeNode(this.placeholderDom),this.#n?isInPage(D)||this.#n.insertBefore(D,null):isInPage(D)||document.body.appendChild(D),(!this.#i||this.#i.isInDocument)&&this.enterDocument()}hoist(w,D=void 0){D||(D=document.querySelector("body")),D.appendChild(w),this.outOfTreeElements.push(w)}executeBeforeReady(){this.#a()}enterDocument(){this.disposed?removeNode(this.getElement()):(this.isInDocument=!0,[...this.#o.values()].forEach(w=>{!w.isInDocument&&w.getElement()&&w.enterDocument()}),this.executeBeforeReady(),this.dispatchCompEvent(UiEventType.READY))}exitDocument(){[...this.#o.values()].forEach(w=>{w.isInDocument&&w.exitDocument()}),this.stopBeingListenedTo(),this.removeAllListener(),this.isInDocument=!1,removeNode(this.getElement()),this.placeholderDom&&removeNode(this.placeholderDom)}disposeInternal(){this.isInDocument&&this.exitDocument(),this.#o&&[...this.#o.values()].forEach(w=>w.disposeInternal()),this.outOfTreeElements.forEach(removeNode),this.#s&&removeNode(this.#s),this.placeholderDom&&removeNode(this.placeholderDom),this.#o=null,this.#s=void 0,this.#r=null,this.#i=null,super.disposeInternal()}dispose(){this.abortController&&this.abortController.abort();const w=this.getElement();if(w)for(const D of ComponentLibraryRegistry.getRegisteredLibraries())try{const O=ComponentLibraryRegistry.get(D);O.dispose&&O.dispose(w)}catch(O){console.debug(`[${D}] Cleanup error during component disposal (non-critical):`,O)}super.dispose()}dispatchCompEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.COMP,O);return this.dispatchEvent(F)}}const EV={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEMOVE:"mousemove",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",SUBMIT:"submit",CHANGE:"change",INPUT:"input",INVALID:"invalid",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGOVER:"dragover",DRAGENTER:"dragenter",DRAGEXIT:"dragexit",DRAGLEAVE:"dragleave",DROP:"drop",TRANSITIONEND:"transitionend"},touchEvents=[EV.TOUCHMOVE,EV.TOUCHSTART,EV.TOUCHEND],isTouchEvent=U=>touchEvents.includes(U.type),normalizeEvent=U=>(isTouchEvent(U)&&(U.clientX=U.targetTouches[0].clientX,U.clientY=U.targetTouches[0].clientY),U),dragStartListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F),W=q.currentTarget,[Y,G]=getPos(W),K=q.clientX-Y,Q=q.clientY-G,tt=U(Y,G,K,Q,W),J=D(Y,G,K,Q,W),X=w(Y,G,K,Q,W);let Z=freeMoveListener(X,W,K,Q);["x","ew"].includes(O)?Z=xMoveOnlyListener(X,W,K):["y","ns"].includes(O)&&(Z=yMoveOnlyListener(X,W,K,Q));let et=!1;const st=nt=>{et=!0,Z(nt)},rt=nt=>{document.removeEventListener(EV.MOUSEMOVE,st,!0),document.removeEventListener(EV.TOUCHMOVE,st,!0),document.removeEventListener(EV.MOUSEUP,rt,!0),document.removeEventListener(EV.TOUCHEND,rt,!0),et&&J(nt)};return document.addEventListener(EV.MOUSEUP,rt,!0),document.addEventListener(EV.TOUCHEND,rt,!0),document.addEventListener(EV.MOUSEMOVE,st,!0),document.addEventListener(EV.TOUCHMOVE,st,!0),tt(F),rt},freeMoveListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F);w.style.left=`${q.clientX-D}px`,w.style.top=`${q.clientY-O}px`,U(q)},xMoveOnlyListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F);w.style.left=`${q.clientX-D}px`,U(q)},yMoveOnlyListener=(U,w,D,O)=>F=>{F.preventDefault();const q=normalizeEvent(F);w.style.top=`${q.clientY-O}px`,U(q)},makeEmitter=(U,w)=>(D,O,F,q,W)=>Y=>{U.dispatchCompEvent(w,{component:U,browserEvent:Y,left:D,top:O,clientX:Y.clientX,clientY:Y.clientY,xOrg:F,yOrg:q,deltaX:Y.clientX-F-D,deltaY:Y.clientY-q-O,target:W})};class Dragger extends Component{#t;#e;#s;#r;constructor(w="xy"){super(),this.#t=["x","y","xy","ew","ns"].includes(w.toLowerCase())?w.toLowerCase():"xy",this.#e=void 0,this.#s=!0,this.#r=D=>null}cancelDrag(w){this.#r(w)}set moveFreedom(w){this.#t=w,this.#s||(this.lock(),this.unlock())}get moveFreedom(){return this.#t}executeBeforeReady(){this.unlock(),super.executeBeforeReady()}unlock(){const w=D=>O=>{this.#r=D(O)};if(this.isInDocument&&this.#s){const D=makeEmitter(this,UiEventType.COMP_DRAG_MOVE),O=makeEmitter(this,UiEventType.COMP_DRAG_START),F=makeEmitter(this,UiEventType.COMP_DRAG_END),q=dragStartListener(O,D,F,this.#t);this.#s=!1,this.#e=this.#e||this.getElement(),this.listen(this.#e,EV.MOUSEDOWN,w(q)),this.listen(this.#e,EV.TOUCHSTART,q),this.#e.classList.remove("locked")}}lock(){this.stopListeningTo(this.#e,EV.MOUSEDOWN),this.stopListeningTo(this.#e,EV.TOUCHSTART),this.#s=!0,this.#e.classList.add("locked")}}const splitRe_=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),ComponentIndex={PATH:5,QUERY_DATA:6},split=U=>U.match(splitRe_),decodeOrEmpty_=(U,w)=>U?decodeURI(U.replace(/%25/g,"%2525")):"",getPath=U=>decodeOrEmpty_(split(U)[ComponentIndex.PATH]),getQueryData=U=>decodeOrEmpty_(split(U)[ComponentIndex.QUERY_DATA]),objectToUrlParms=U=>[...Object.entries(U)].map(w=>`${w[0]}=${w[1]}`).join("&"),isValidValue=U=>U!=null&&U!=="",queryDataToMap=U=>U.split("&").reduce((w,D)=>{const[O,F]=D.split("=");return isValidValue(O)&&isValidValue(F)&&w.set(O,F),w},new Map),uriUtils=Object.freeze(Object.defineProperty({__proto__:null,getPath,getQueryData,objectToUrlParms,queryDataToMap},Symbol.toStringTag,{value:"Module"})),stripLeadingSpace=stripLeadingChar(" "),stripLeadingSlash=stripLeadingChar("/"),getCookieByName=U=>document.cookie.split(";").map(w=>w.split("=")).reduce((w,D)=>w.set(stripLeadingSpace(D[0]),D[1]),new Map).get(U),spinner=U=>{let w=0,D;const O=F=>{const q=F>0;return q?w+=1:w-=1,q?w===1:w===0};return F=>{D=D||document.getElementById(U),D&&O(F)&&D.classList.toggle("viz",w>0)}},spin=spinner("the_loader"),startSpin=()=>Promise.resolve(spin(1)),stopSpin=U=>(spin(0),Promise.resolve(U)),checkStatus=U=>U.ok?Promise.resolve(U):Promise.reject(new Error(`${U.url} ${U.status} (${U.statusText})`)),checkStatusTwo=U=>w=>{if(w.type==="opaqueredirect"||w.redirected){const D=stripLeadingSlash(getPath(w.url));U.setIsRedirected(!0,D),console.log("Redirect detected",D)}return checkStatus(w)},getJson=U=>U.json(),getText=U=>U.text().then(w=>Promise.resolve(w),w=>Promise.reject(new Error(`Could not get text from response: ${w}`))),getTextOrJson=U=>U.headers.get("Content-Type")==="application/json"?getJson(U):getText(U),jsonInit=(U,w,D="POST",O=void 0)=>{const F=new Headers;F.append("Content-type","application/json"),F.append("X-Requested-With","XMLHttpRequest"),U&&U!==""&&F.append("Authorization",`Bearer ${U}`);const q={cache:"no-cache",method:D,headers:F,credentials:"include",body:JSON.stringify(w)};return O&&(q.signal=O),q},basicPutPostPatchInit=(U,w,D=!1,O=void 0)=>{const F=new Headers;if(w&&w!==""&&F.append("Authorization",`Bearer ${w}`),F.append("X-Requested-With","XMLHttpRequest"),D){const W=getCookieByName("csrftoken");W&&D&&F.append("X-CSRFToken",W)}const q={cache:"no-cache",method:U,headers:F,redirect:"follow",credentials:"include"};return O&&(q.signal=O),q},formPostInit=(U,w,D=void 0)=>{const F=basicPutPostPatchInit("POST",U,!1,D);return F.body=new FormData(w.formEl),F},basicGetInit=(U,w=void 0)=>{const D=new Headers;D.append("Authorization",`Bearer ${U}`),D.append("X-Requested-With","XMLHttpRequest");const O={cache:"no-cache",headers:D,credentials:"include"};return w&&(O.signal=w),O},putPostPatchNobody=(U,w)=>{const D=new Request(U);return fetch(D,w).then(checkStatus).then(getText)},genCatchClause=(U,w=void 0)=>D=>(stopSpin("").then(identity),D.name==="AbortError"?console.info(U,"ABORTED!"):console.error(U,D),w);class UserManager{constructor(w){this.user_={},this.jwt="",w&&this.updateProfileFromJwt(w).then(()=>{})}updateProfileFromJwt(w,D=!1){return D&&this.jwt!==""?Promise.resolve("User Profile Already exists"):w.non_field_errors?Promise.reject(new Error(`JWT ${w.non_field_errors}`)):(this.updateToken(w.token),this.updateProfile(w.user),Promise.resolve("User Profile Updated"))}updateProfile(w){this.user_=w}updateToken(w){this.jwt=w}get id(){return this.user_.id}get name(){return this.user_.name}get surname(){return this.user_.surname}get salutation(){let w=this.name;const D=this.surname;return D&&(w=w+" "+D),w}formSubmit(w){const D=new Request(w.uri.toString()),O=w.processSubmitReply.bind(w),F=genCatchClause("Form submit error");return startSpin().then(()=>fetch(D,formPostInit(this.jwt,w,w.abortController.signal))).then(checkStatusTwo(w)).then(stopSpin).then(getTextOrJson).then(O).catch(F)}putNoBody(w,D=void 0,O=!1){const F=genCatchClause("putNobody error"),q=basicPutPostPatchInit("PUT",this.jwt,O,D);return putPostPatchNobody(w,q).catch(F)}fetch(w,D=void 0){const O=new Request(w.toString()),F=genCatchClause(`UMan Text GET Fetch: ${w}`);return startSpin().then(()=>fetch(O,basicGetInit(this.jwt,D))).then(checkStatus).then(stopSpin).then(getText).catch(F)}fetchAndSplit(w,D=void 0){const O=genCatchClause(`fetchAndSplit: ${w}`);return this.fetch(w,D).then(handleTemplateProm).catch(O)}async fetchJson(w,D=void 0,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`fetchJson: ${w}`,O),W=basicGetInit(this.jwt,D);await startSpin();let Y={};try{Y=await(await fetch(F,W)).json()}catch(G){return q(G)}return await stopSpin(),Y}patchJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`patchJson: ${w}`),W=jsonInit(this.jwt,D,"PATCH",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}postJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`postJson: ${w}`),W=jsonInit(this.jwt,D,"POST",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}putJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`putJson: ${w}`),W=jsonInit(this.jwt,D,"PUT",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}delJson(w,D,O=void 0){const F=new Request(w.toString()),q=genCatchClause(`delJson: ${w}`),W=jsonInit(this.jwt,D,"DELETE",O);return fetch(F,W).then(checkStatus).then(getJson).catch(q)}}class Panel extends Component{static panelEventCode(){return UiEventType.PANEL}static compReadyCode(){return UiEventType.READY}constructor(w){super(),this.qParamMap_=new Map,this.uri_="",w&&this.parseUri(w),this.evalScripts=evalScripts(this),this.evalModules=evalModules(this),this.redirected=!1,this.responseObject={html:null,scripts:null},this.user_=void 0,"AbortController"in window?this.abortController=new AbortController:this.abortController={signal:void 0,abort:()=>{}},this.listMap=new Map}get uri(){const w=this.qParamMap_.size>0?"?"+objectToUrlParms(Object.fromEntries(this.qParamMap_)):"";return this.uri_+w}set user(w){this.user_=w}get user(){return this.user_||(this.user_=new UserManager),this.user_}parseUri(w){this.uri_=getPath(w),this.qParamMap_=queryDataToMap(getQueryData(w))}addToQParams(w,D){this.qParamMap_.set(w,D)}removeFromQParams(w){this.qParamMap_.delete(w)}clearQParams(){this.qParamMap_.clear()}getCarbonComponents(w){return this.carbonComponents?.get(w)||[]}getCarbonComponentById(w){if(this.carbonComponents)for(const D of this.carbonComponents.values()){const O=D.find(F=>F.id===w);if(O)return O}}renderPlaceHolder(w){this.target&&(this.placeholderDom=w,this.target.insertBefore(this.placeholderDom,null))}renderWithTemplate(w){const D=this.user;return D?D.fetch(this.uri,this.abortController.signal).then(O=>(this.assertCanRenderAsync(),w&&w(this),this.onRenderWithTemplateReply(O).catch(F=>{F.message!==Component.compErrors().ALREADY_DISPOSED&&console.error("RenderWithTemplate Err:",F)}),this)).catch(O=>{throw console.error("Panel.renderWithTemplate fetch failed:",O),O}):Promise.reject(new Error("No UserManager instance available for Panel.renderWithTemplate()"))}onRenderWithTemplateReply(w){return this.responseObject=splitScripts(w),this.domFunc=()=>this.responseObject.html,this.render(),Promise.resolve(this)}onReplacePartialDom(w,D){const O=this.getElement();if(isUndefined(O))return;const F=w.html;if(D.startsWith("."))[...O.querySelectorAll(D)].filter(q=>isDefAndNotNull(q.id)).map(q=>[q,F.querySelector(`#${q.id}`)]).filter(([q,W])=>isDefAndNotNull(W)).forEach(([q,W])=>{q.parentNode.replaceChild(W,q),this.parseContent(W)});else if(D.startsWith("#")){const q=F.querySelector(D),W=O.querySelector(D);W.parentNode.replaceChild(q,W),this.parseContent(q)}this.evalScripts(w.scripts),this.evalModules(w.modules)}renderWithJSON(w){return this.user?this.user.fetchJson(this.uri_,this.abortController.signal).then(O=>{this.assertCanRenderAsync(),w&&w(O,this),this.onRenderWithJSON(O).then(identity)}).catch(O=>{throw console.error("Panel.renderWithJSON fetch failed:",O),O}):Promise.reject(new Error("No UserManager instance available for Panel.renderWithJSON()"))}onRenderWithJSON(w){return Promise.resolve(this)}onAsyncJsonReply(w,D,O){}onAsyncHtmlReply(w,D){}onViewDataBroadcast(w){}parseContent(w){if(this.debugMe("Enable interactions. Panel:",w),typeof window.customElements<"u"&&ComponentLibraryRegistry.has("carbon")){const J=ComponentLibraryRegistry.get("carbon");J.render.call(this,w,J.cache).catch(X=>console.error("[Zooy] Carbon initialization failed:",X))}if(ComponentLibraryRegistry.has("mdc")){const J=ComponentLibraryRegistry.get("mdc");J.render.call(this,w,J.cache)}w.classList.contains("zoo__modal-base")&&w.classList.contains("close_on_click")&&this.listen(w,EV.CLICK,J=>{J.target===w&&this.dispatchPanelEvent("destroy_me")}),[...w.querySelectorAll(".zoo__button:not(.external):not(.mdc-data-table__row)")].forEach(J=>{this.listen(J,EV.CLICK,X=>{X.stopPropagation();const Z=X.currentTarget,et=getElDataMap(Z);this.dispatchPanelEvent(et.zv,Object.assign({orgEvt:X,trigger:Z,href:Z.href||et.href},et))})}),[...w.querySelectorAll("[href]:not(.external)")].forEach(J=>{this.listen(J,EV.CLICK,X=>{const Z=X.currentTarget;X.preventDefault(),X.stopPropagation();const et=getElDataMap(Z),st=et.zv||"href";this.dispatchPanelEvent(st,Object.assign({orgEvt:X,trigger:X.target,href:Z.href||et.href},et))})}),[...w.querySelectorAll("form.intercept_submit")].forEach(J=>{J.noValidate=!0,this.listen(J,EV.SUBMIT,X=>{X.preventDefault(),X.stopPropagation();const Z=getElDataMap(J),et=formToJSON(J.elements);this.dispatchPanelEvent(Z.zv,Object.assign({orgEvt:X,trigger:X.target,formData:et,href:Z.href},Z))})}),[...w.querySelectorAll(".zoo__toggle_class_driver")].forEach(J=>{const X=getElDataMap(J),Z=X.toggle_class_target_id,et=X.toggle_class,st=w.querySelector(`#${Z}`);st&&et&&J.addEventListener(EV.CLICK,rt=>{rt.stopPropagation(),st.classList.toggle(et)})});const D=Array.from(w.querySelectorAll(".folder_drop_zone")),O=Array.from(w.querySelectorAll("[draggable]")),F=J=>{J.preventDefault(),J.target.classList.add("drag_over")},q=J=>{J.preventDefault()},W=J=>{J.preventDefault(),J.target.classList.remove("drag_over")},Y=J=>{J.preventDefault(),J.target.classList.remove("drag_over")},G=J=>{J.preventDefault(),J.target.classList.remove("drag_over")},K=J=>{J.dataTransfer.dropEffect="move";const X=getElDataMap(J.target);J.dataTransfer.setData("text/plain",JSON.stringify(X)),J.target.classList.add("drag_in_progress")},Q=J=>{J.target.classList.remove("drag_in_progress")},tt=J=>{G(J),J.stopPropagation();const X=JSON.parse(J.dataTransfer.getData("text/plain")),Z=getElDataMap(J.target);return this.dispatchPanelEvent("drop_on",{custom:{on:Z,from:X}}),!1};D.forEach(J=>{this.listen(J,EV.DRAGOVER,q),this.listen(J,EV.DRAGENTER,F),this.listen(J,EV.DRAGEXIT,Y),this.listen(J,EV.DRAGLEAVE,W),this.listen(J,EV.DROP,tt)}),O.forEach(J=>{this.listen(J,EV.DRAGSTART,K),this.listen(J,EV.DRAGEND,Q)}),[...w.querySelectorAll(".zoo_async_json")].forEach(J=>{const X=getElDataMap(J),Z=X.href,et=this.onAsyncJsonReply.bind(this,J,X);this.user.fetchJson(Z,this.abortController.signal).then(et);const st=X.z_json_reusable;st&&(this.jsonCallFuncs=this.jsonCallFuncs||{},this.jsonCallFuncs[st]=()=>{this.user.fetchJson(Z,this.abortController.signal).then(et)});const rt=toNumber(X.z_interval);isNumber(rt)&&this.doOnBeat(()=>{this.user.fetchJson(Z,this.abortController.signal).then(et)},rt*60*1e3)}),[...w.querySelectorAll(".zoo_async_html")].forEach(J=>{const X=getElDataMap(J),Z=X.href;this.user.fetchAndSplit(Z,this.abortController.signal).then(st=>{J.appendChild(st.html),this.parseContent(J),this.evalScripts(st.scripts),this.evalModules(st.modules),this.onAsyncHtmlReply(J,X)});const et=toNumber(X.z_interval);isNumber(et)&&this.doOnBeat(()=>{this.user.fetchAndSplit(Z,this.abortController.signal).then(st=>{J.replaceChildren(st.html),this.parseContent(J),this.evalScripts(st.scripts),this.evalModules(st.modules)})},et*60*1e3)})}enterDocument(){const w=this.getElement();this.parseContent(w),this.evalScripts(this.responseObject.scripts),this.evalModules(this.responseObject.modules),super.enterDocument()}exitDocument(){this.abortController.abort(),super.exitDocument()}setIsRedirected(w,D){this.redirected=w,this.redirected&&D&&(this.uri_=D)}dispatchPanelEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.PANEL,O);return this.debugMe(`PANEL EVENT FIRED:
2
2
  value:${w}
3
3
  data:${D}`),this.dispatchEvent(F)}}class FormPanel extends Panel{#t=null;#e=new Map;#s=!0;constructor(w,D=!0){super(w),this.#s=D,this.onSubmitSucFunc=(O,F)=>null}get formEl(){return this.#t}enterDocument(){super.enterDocument(),this.formIdElementToForm_()}formIdElementToForm_(){this.#t=this.getFormFromId(),this.#t&&(this.#a(this.#t),this.#r())}getFormFromId(w){let D=null,O=this.getElement().querySelector("form");return w&&(O=document.getElementById(w)||O),O&&O.tagName.toLowerCase()==="form"&&(D=O),D}#r(){this.#t&&(this.listen(this.#t,EV.CHANGE,w=>{this.#o(w)},{passive:!0}),this.listen(this.#t,EV.INPUT,w=>{this.clearAllValidationErrors(),this.#o(w)}),this.listen(this.#t,EV.INVALID,w=>{w.preventDefault();const D=w.target;this.#i(D),this.displayFieldError(D)},{passive:!0}))}checkAllFields(){const w=[...this.#t.elements].map(D=>[this.#n(D),D]).filter(D=>!D[0]);return w.forEach(D=>this.displayFieldError(D[1])),w.length===0}clearAllValidationErrors(){[...this.#t?this.#t.elements:[]].forEach(O=>this.#i(O)),[...this.#t.querySelectorAll(".non-field-errors")].forEach(O=>O.classList.remove("alert-error"))}displayAlert_(w,D,O){const F=document.getElementById(`${w.id}-helper-text`)||document.createElement("p");F.textContent=D,this.#e.set(w,F)}#n(w){this.#i(w);let D=!w.willValidate;return w.willValidate&&(D=w.checkValidity()),D}#i(w){w.classList.remove("error"),this.#e.has(w)&&(this.#e.get(w).textContent=""),this.#e.delete(w)}displayFieldError(w,D){const O=D||w.validationMessage;w.classList.add("error"),this.displayAlert_(w,O,"alert-error")}displayFieldSuccess(w,D){this.displayAlert_(w,D,"alert-success")}displayFieldInfo(w,D){this.displayAlert_(w,D,"alert-info")}#o(w){this.#n(w.target)}#a(w){if(w&&this.#s){w.noValidate=!0;const D=this.user;this.listen(w,EV.SUBMIT,O=>{O.preventDefault(),this.debugMe("Intercepted from SUBMIT"),this.checkAllFields()&&D&&D.formSubmit(this)})}return w}onSubmitSuccess(w){this.onSubmitSucFunc=w}replaceForm(w){if(this.responseObject=splitScripts(w),this.responseObject.html){if(this.redirected){this.removeAllListener();const D=this.getElement(),O=D.parentNode;this.setElementInternal_(this.responseObject.html),O.replaceChild(this.getElement(),D)}else{const D=this.responseObject.html.querySelector("form");D&&replaceNode(D,this.#t);const O=this.responseObject.html.querySelector('button[type="submit"]'),F=this.getElement().querySelector('button[type="submit"]');O&&F&&replaceNode(O,F)}this.enterDocument()}}refreshFromFromServer(){const w=this.user,D=this.uri;return w?w.fetch(D,this.abortController.signal).then(O=>this.replaceForm(O)):Promise.reject(new Error("No UserManager instance available for FormPanel.refreshFromFromServer()"))}processSubmitReply(w){this.clearAllValidationErrors();let D=!1;if(whatType(w)==="object"&&w.success)return Promise.resolve(this).then(()=>{this.onSubmitSucFunc(this,w),this.dispatchCompEvent(UiEventType.FORM_SUBMIT_SUCCESS)});if(w==="success"?(this.debugMe(`
4
4
  1.REDIRECTED: ${this.redirected}
@@ -13,9 +13,10 @@
13
13
  5.REDIRECTED: ${this.redirected}
14
14
  SUCCESS: ${D}`),Promise.resolve(this).then(()=>{this.onSubmitSucFunc(this),this.dispatchCompEvent(UiEventType.FORM_SUBMIT_SUCCESS)});this.debugMe(`
15
15
  6.REDIRECTED: ${this.redirected}
16
- SUCCESS: ${D}`)}}class Split extends Component{static splitEventCode(){return UiEventType.SPLIT}constructor(){super(),this.dragImage_=document.createElement("canvas"),this.nestMap_=new Map,this.nestCallbackMap_=new Map,this.splitNests_=new Set}get nests(){return[...this.nestMap_.entries()].filter(([w,{nestEl:D}])=>D)}getNest(w){return this.nestMap_.get(w)?.nestEl}get nestNames(){return[...this.nestMap_.entries()].filter(([w,D])=>!this.splitNests_.has(D)).map(([w])=>w)}closeAndLockAll(w=identity,D=!1){this.nestNames.forEach(O=>this.closeAndLock(O,w,D))}openAndUnlockAll(w=identity,D=!1){this.nestNames.forEach(O=>this.openAndUnlock(O,w,D))}lock(w){const{dragEl:D}=this.nestMap_.get(w);D.classList.add("locked")}unlock(w){const{dragEl:D}=this.nestMap_.get(w);D.classList.remove("locked")}resize(w,D,O=identity,F=!1){const{sizeNow:q,nestEl:W,canResize:Y}=this.nestMap_.get(w);Y&&(F||q===D?(W.classList.remove("animated"),W.style.flexBasis=`${D}px`,this.nestMap_.get(w).sizeNow=D,O()):(W.classList.add("animated"),this.nestCallbackMap_.set(w,()=>{W.classList.remove("animated"),this.nestMap_.get(w).sizeNow=D,O()}),W.style.flexBasis=`${D}px`))}closeAndLock(w,D=identity,O=!1){const{nestEl:F,dragEl:q,canResize:W}=this.nestMap_.get(w);if(!W)return;const Y=()=>{q.classList.add("locked","closed"),F.classList.add("closed"),D()};this.resize(w,0,Y,O)}closeAndUnlock(w,D=identity,O=!1){const{nestEl:F,dragEl:q,canResize:W}=this.nestMap_.get(w);if(!W)return;const Y=()=>{F.classList.remove("closed"),q.classList.remove("closed","locked"),q.classList.add("collapsed"),D()};this.resize(w,0,Y,O)}openAndUnlock(w,D,O,F=!1){const{nestEl:q,dragEl:W,defSize:Y,lastSize:G,canResize:K}=this.nestMap_.get(w);if(!K)return;const Q=D||G||Y;q.classList.remove("closed"),W.classList.remove("closed","locked","collapsed"),setTimeout(()=>{this.resize(w,Q,O,F)},50)}openAndLock(w,D,O,F=!1){const{nestEl:q,dragEl:W,defSize:Y,lastSize:G,canResize:K}=this.nestMap_.get(w);if(!K)return;const Q=D||G||Y;q.classList.remove("closed"),W.classList.remove("closed","collapsed"),setTimeout(()=>{this.resize(w,Q,O,F)},50)}close(w,D=identity,O=!1){const{dragEl:F,canResize:q,nestEl:W}=this.nestMap_.get(w);if(!q)return;this.dispatchSplitEvent(UiEventType.SPLIT_WILL_CLOSE,{nestName:w,nestEl:W});const Y=()=>{F.classList.add("collapsed"),this.dispatchSplitEvent(UiEventType.SPLIT_DID_CLOSE,{nestName:w,nestEl:W}),D()};this.resize(w,0,Y,O)}open(w,D=identity,O=!1){const{defSize:F,lastSize:q,dragEl:W,canResize:Y,nestEl:G}=this.nestMap_.get(w);if(!Y)return;this.dispatchSplitEvent(UiEventType.SPLIT_WILL_OPEN,{nestName:w,nestEl:G}),W.classList.remove("collapsed","closed");const K=q||F,Q=()=>{this.dispatchSplitEvent(UiEventType.SPLIT_DID_OPEN,{nestName:w,nestEl:G}),D()};this.resize(w,K,Q,O)}toggle(w,D,O=!1){this.nestMap_.get(w).sizeNow===0?this.open(w,D,O):this.close(w,D,O)}addSplit(w=void 0,D="EW",O=100,F=100,q=[],W=[],Y=[],G=[],K=[]){const Q=w||this.getElement();if(this.splitNests_.has(Q))return["Already used!",Q];convertElToSplit(Q,D),this.splitNests_.add(Q);let tt="";if(w){const it=[...this.nestMap_.entries()].find(([at,{nestEl:lt}])=>lt===w);if(it)tt=it[0];else return["Element not managed by this component",w]}const J=`${tt}A`,X=makeOuterNest(O,["zoo_nest__A",J,...q]),Z=new Dragger(D);Z.domFunc=makeDraggerEl([`zoo_drag_${J}`,...G],K),Z.render(Q),this.nestMap_.set(J,{side:"A",nestEl:X,dragger:Z,dragEl:Z.getElement(),defSize:O,sizeNow:-1,canResize:!0});const et=`${tt}B`,st=makeInnerNest(["zoo_nest__B",et,...W]);this.nestMap_.set(et,{nestEl:st,canResize:!1});const rt=`${tt}C`,nt=new Dragger(D);nt.domFunc=makeDraggerEl([`zoo_drag_${rt}`,...G],K),nt.render(Q);const ot=makeOuterNest(F,["zoo_nest__C",rt,...Y]);this.nestMap_.set(rt,{side:"C",nestEl:ot,dragger:nt,dragEl:nt.getElement(),defSize:F,sizeNow:-1,canResize:!0}),[X,Z.getElement(),st,nt.getElement(),ot].forEach(it=>Q.appendChild(it));let ct=0;const ht=(it,at,lt,ft)=>{let ut;const dt=it==="NS"?"height":"width",gt=it==="NS"?"deltaY":"deltaX";return pt=>{switch(pt.detail.value_){case UiEventType.COMP_DRAG_START:ut=at.getBoundingClientRect()[dt],ct=st.getBoundingClientRect()[dt]+ut,this.nestMap_.get(lt).dragEl.classList.remove("collapsed");break;case UiEventType.COMP_DRAG_MOVE:{const mt=Math.min(ct,ut+ft*pt.detail.data_[gt]);this.nestMap_.get(lt).lastSize=mt,at.style.flexBasis=mt+"px";break}case UiEventType.COMP_DRAG_END:this.dispatchSplitEvent(UiEventType.COMP_DRAG_END,this.nestMap_.get(lt));break}}};this.listen(Z,Component.compEventCode(),ht(D,X,J,1)),this.listen(nt,Component.compEventCode(),ht(D,ot,rt,-1)),this.listen(Z.getElement(),EV.DBLCLICK,()=>this.toggle(J)),this.listen(nt.getElement(),EV.DBLCLICK,()=>this.toggle(rt)),this.listen(Z.getElement().querySelector(".zoo_grabber"),EV.CLICK,()=>this.toggle(J)),this.listen(nt.getElement().querySelector(".zoo_grabber"),EV.CLICK,()=>this.toggle(rt)),this.listen(X,EV.TRANSITIONEND,it=>{if(it.propertyName==="flex-basis"&&it.target===X){const at=this.nestCallbackMap_.get(J);this.nestCallbackMap_.delete(J),at&&at(),this.dispatchSplitEvent(UiEventType.SPLIT_TRANSITION_END,this.nestMap_.get(J))}}),this.listen(ot,EV.TRANSITIONEND,it=>{if(it.propertyName==="flex-basis"&&it.target===ot){const at=this.nestCallbackMap_.get(rt);this.nestCallbackMap_.delete(rt),at&&at(),this.dispatchSplitEvent(UiEventType.SPLIT_TRANSITION_END,this.nestMap_.get(rt))}})}dispatchSplitEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.SPLIT,O);return this.dispatchEvent(F)}}const convertElToSplit=(U,w)=>(U.classList.add("zoo_split",`zoo_split__${w.toLowerCase()}`),U),makeOuterNest=(U,w=[])=>{const D=document.createElement("div");return D.setAttribute("id",randomId(7)),D.classList.add("zoo_nest","zoo_nest__outer",...w),D.style.flexBasis=U+"px",D},makeInnerNest=(U=[])=>{const w=document.createElement("div");return w.setAttribute("id",randomId(7)),w.classList.add("zoo_nest","zoo_nest__inner",...U),w},makeDraggerEl=(U=[],w=[])=>()=>{const D=document.createElement("div");D.setAttribute("id",randomId(7)),D.classList.add("zoo_dragger",...U);const O=document.createElement("div");return O.classList.add("zoo_grabber",...w),D.appendChild(O),D},needsToScroll=U=>{const D=U.getBoundingClientRect().bottom;return O=>O.getBoundingClientRect().bottom>D},treeNodeSelect=U=>w=>{const D=U.getElement().querySelector(".zv_tree_container"),O=needsToScroll(D),F=U.getElement().querySelectorAll(".tree-node");let q;[...F].forEach(W=>{enableClass(W,"mdc-deprecated-list-item--activated",W.id===`tree-node_${w}`),W.id===`tree-node_${w}`&&(q=W)}),q&&O(q)&&q.scrollIntoView(!1)},toggleTree=(U,w)=>{const D=w.getElement().querySelector(".children"),O=U.isOn,F=w.getElement().querySelectorAll(".children"),q=w.getElement().querySelectorAll(".zoo__reveal_icon");[...F].forEach(W=>enableClass(W,"zoo__tree-children__hidden",W!==D&&!O)),[...q].forEach(W=>enableClass(W,"zoo__icon_rotated",W!==D&&!O))},toggleTreeChildren=(U,w)=>{const D=w.trigger,O=D.getAttribute("data-child-id"),F=U.getElement().querySelector(`#${O}`);toggleClass(F,"zoo__tree-children__hidden"),toggleClass(D,"zoo__icon_rotated")},_openTreeFromNodeUp=(U,w)=>{const D=w.parentElement;D.classList.contains("children")&&(enableClass(D,"zoo__tree-children__hidden",!1),_openTreeFromNodeUp(U,D))},treeUtils=Object.freeze(Object.defineProperty({__proto__:null,_openTreeFromNodeUp,toggleTree,toggleTreeChildren,treeNodeSelect},Symbol.toStringTag,{value:"Module"})),MdcTreeHandlers={toggle_tree:function(U,w){toggleTree(U,w)},"tree_toggle-children":function(U,w){toggleTreeChildren(w,U)}},SearchHandlers={search:function(U,w){let D=`${U.href}`;const O=U.formData.q,F=U.targetval;if(O!==""&&(D=`${D}?q=${O}`),F!==""){let q=F;F.includes("page=")&&(q=F.split("&").filter(W=>!W.includes("page=")).join("&")),D=O!==""?`${D}&${q}`:`${D}?${q}`}this.user.fetchAndSplit(D,w.abortController.signal).then(q=>w.onReplacePartialDom(q,U.zvptarget))},reset_search:function(U,w){const D=U.trigger.closest("form");w.removeFromQParams("q"),D.elements.q.value="",D.dispatchEvent(new Event("submit"))}},QueryParamHandlers={paginate:function(U,w){const D=`${U.href}?${U.targetval}`;this.user.fetchAndSplit(D,w.abortController.signal).then(O=>w.onReplacePartialDom(O,U.zvptarget))},list_filter:function(U,w){const D=`${U.href}?${U.targetval}`;this.user.fetchAndSplit(D,w.abortController.signal).then(O=>w.onReplacePartialDom(O,U.zvptarget))}},handlers=Object.freeze(Object.defineProperty({__proto__:null,MdcTreeHandlers,QueryParamHandlers,SearchHandlers},Symbol.toStringTag,{value:"Module"}));class View extends Evt{#t=void 0;#e=void 0;static viewEventCode(){return UiEventType.VIEW}constructor(){super(),this.panelMap=new Map,this.user_=void 0,this.split_=void 0,this.panelEventMap_=this.initPanelEventsInternal_(),this.switchViewMap_=new Map,this.metaData_=new Map}set recordHistory(w){this.#e=w}get recordHistory(){return this.#e}set registerViewConstructor(w){this.#t=w}get registerViewConstructor(){return this.#t}set split(w){this.split_=w,this.listen(this.split_,UiEventType.SPLIT,D=>{const O=D.detail.getValue(),F=D.detail.getData();switch(O){case UiEventType.SPLIT_WILL_OPEN:this.onSplitWillOpen(F);break;case UiEventType.SPLIT_WILL_CLOSE:this.onSplitWillClose(F);break;case UiEventType.SPLIT_DID_CLOSE:this.onSplitDidClose(F);break;case UiEventType.SPLIT_DID_OPEN:this.onSplitDidOpen(F);break;case UiEventType.SPLIT_TRANSITION_END:break}})}get split(){if(!this.split_)throw new Error("No SPLIT component available");return this.split_}set user(w){this.user_=w,this.panelMap.forEach(D=>D.user=w)}get user(){return this.user_||(this.user_=new UserManager),this.user_}render(){this.initPanelEvents(),this.preRender(),this.configurePanels(),this.displayPanels(),this.postRender()}initPanelEvents(){}preRender(){}configurePanels(){}displayPanels(){}postRender(){}dispose(){[...this.panelMap.values()].forEach(w=>w.dispose()),super.dispose()}addPanelToView(w,D){D.user=this.user,this.removePanelByName(w),this.panelMap.set(w,D),this.listen(D,Panel.panelEventCode(),this.onPanelEvent.bind(this))}removePanelByName(w){this.panelMap.has(w)&&this.panelMap.get(w).dispose()}removePanel(w){const[D,O]=[...this.panelMap.entries()].find(([F,q])=>q===w);D&&O&&(O.dispose(),this.panelMap.delete(D))}getPanelByName(w){return this.panelMap.get(w)}broadcastToPanels(w){[...this.panelMap.values()].forEach(D=>D.onViewDataBroadcast(w))}initPanelEventsInternal_(){const w=new Map;return w.set("destroy_me",(D,O)=>{this.removePanel(O)}),w.set("switch_view",(D,O)=>{this.debugMe("switch_view received: eventData",D);const F=D.view;this.switchViewMap_.has(F)?this.switchViewMap_.get(F)(D,O):this.debugMe("NO VIEW FOUND FOR:",F,this.switchViewMap_)}),Object.entries({...SearchHandlers,...QueryParamHandlers}).forEach(([D,O])=>{w.set(D,O.bind(this))}),w}mapPanEv(w,D){this.panelEventMap_.set(w,D)}mapSwitchView(w,D){this.switchViewMap_.set(w,D)}onPanelEvent(w){let D=w.detail.getValue();const O=w.detail.getData();D.startsWith("switch_view:")&&(O.view=D.split(":")[1],D="switch_view");const F=w.target;this.panelEventMap_.has(D)?this.panelEventMap_.get(D)(O,F):this.debugMe(`NO EVENT MATCH - This usually you are missing
16
+ SUCCESS: ${D}`)}}class Split extends Component{static splitEventCode(){return UiEventType.SPLIT}constructor(){super(),this.dragImage_=document.createElement("canvas"),this.nestMap_=new Map,this.nestCallbackMap_=new Map,this.splitNests_=new Set}get nests(){return[...this.nestMap_.entries()].filter(([w,{nestEl:D}])=>D)}getNest(w){return this.nestMap_.get(w)?.nestEl}get nestNames(){return[...this.nestMap_.entries()].filter(([w,D])=>!this.splitNests_.has(D)).map(([w])=>w)}closeAndLockAll(w=identity,D=!1){this.nestNames.forEach(O=>this.closeAndLock(O,w,D))}openAndUnlockAll(w=identity,D=!1){this.nestNames.forEach(O=>this.openAndUnlock(O,w,D))}lock(w){const{dragEl:D}=this.nestMap_.get(w);D.classList.add("locked")}unlock(w){const{dragEl:D}=this.nestMap_.get(w);D.classList.remove("locked")}resize(w,D,O=identity,F=!1){const{sizeNow:q,nestEl:W,canResize:Y}=this.nestMap_.get(w);Y&&(F||q===D?(W.classList.remove("animated"),W.style.flexBasis=`${D}px`,this.nestMap_.get(w).sizeNow=D,O()):(W.classList.add("animated"),this.nestCallbackMap_.set(w,()=>{W.classList.remove("animated"),this.nestMap_.get(w).sizeNow=D,O()}),W.style.flexBasis=`${D}px`))}closeAndLock(w,D=identity,O=!1){const{nestEl:F,dragEl:q,canResize:W}=this.nestMap_.get(w);if(!W)return;const Y=()=>{q.classList.add("locked","closed"),F.classList.add("closed"),D()};this.resize(w,0,Y,O)}closeAndUnlock(w,D=identity,O=!1){const{nestEl:F,dragEl:q,canResize:W}=this.nestMap_.get(w);if(!W)return;const Y=()=>{F.classList.remove("closed"),q.classList.remove("closed","locked"),q.classList.add("collapsed"),D()};this.resize(w,0,Y,O)}openAndUnlock(w,D,O,F=!1){const{nestEl:q,dragEl:W,defSize:Y,lastSize:G,canResize:K}=this.nestMap_.get(w);if(!K)return;const Q=D||G||Y;q.classList.remove("closed"),W.classList.remove("closed","locked","collapsed"),setTimeout(()=>{this.resize(w,Q,O,F)},50)}openAndLock(w,D,O,F=!1){const{nestEl:q,dragEl:W,defSize:Y,lastSize:G,canResize:K}=this.nestMap_.get(w);if(!K)return;const Q=D||G||Y;q.classList.remove("closed"),W.classList.remove("closed","collapsed"),setTimeout(()=>{this.resize(w,Q,O,F)},50)}close(w,D=identity,O=!1){const{dragEl:F,canResize:q,nestEl:W}=this.nestMap_.get(w);if(!q)return;this.dispatchSplitEvent(UiEventType.SPLIT_WILL_CLOSE,{nestName:w,nestEl:W});const Y=()=>{F.classList.add("collapsed"),this.dispatchSplitEvent(UiEventType.SPLIT_DID_CLOSE,{nestName:w,nestEl:W}),D()};this.resize(w,0,Y,O)}open(w,D=identity,O=!1){const{defSize:F,lastSize:q,dragEl:W,canResize:Y,nestEl:G}=this.nestMap_.get(w);if(!Y)return;this.dispatchSplitEvent(UiEventType.SPLIT_WILL_OPEN,{nestName:w,nestEl:G}),W.classList.remove("collapsed","closed");const K=q||F,Q=()=>{this.dispatchSplitEvent(UiEventType.SPLIT_DID_OPEN,{nestName:w,nestEl:G}),D()};this.resize(w,K,Q,O)}toggle(w,D,O=!1){this.nestMap_.get(w).sizeNow===0?this.open(w,D,O):this.close(w,D,O)}addSplit(w=void 0,D="EW",O=100,F=100,q=[],W=[],Y=[],G=[],K=[]){const Q=w||this.getElement();if(this.splitNests_.has(Q))return["Already used!",Q];convertElToSplit(Q,D),this.splitNests_.add(Q);let tt="";if(w){const it=[...this.nestMap_.entries()].find(([at,{nestEl:lt}])=>lt===w);if(it)tt=it[0];else return["Element not managed by this component",w]}const J=`${tt}A`,X=makeOuterNest(O,["zoo_nest__A",J,...q]),Z=new Dragger(D);Z.domFunc=makeDraggerEl([`zoo_drag_${J}`,...G],K),Z.render(Q),this.nestMap_.set(J,{side:"A",nestEl:X,dragger:Z,dragEl:Z.getElement(),defSize:O,sizeNow:-1,canResize:!0});const et=`${tt}B`,st=makeInnerNest(["zoo_nest__B",et,...W]);this.nestMap_.set(et,{nestEl:st,canResize:!1});const rt=`${tt}C`,nt=new Dragger(D);nt.domFunc=makeDraggerEl([`zoo_drag_${rt}`,...G],K),nt.render(Q);const ot=makeOuterNest(F,["zoo_nest__C",rt,...Y]);this.nestMap_.set(rt,{side:"C",nestEl:ot,dragger:nt,dragEl:nt.getElement(),defSize:F,sizeNow:-1,canResize:!0}),[X,Z.getElement(),st,nt.getElement(),ot].forEach(it=>Q.appendChild(it));let ct=0;const ht=(it,at,lt,ft)=>{let ut;const dt=it==="NS"?"height":"width",gt=it==="NS"?"deltaY":"deltaX";return pt=>{switch(pt.detail.value_){case UiEventType.COMP_DRAG_START:ut=at.getBoundingClientRect()[dt],ct=st.getBoundingClientRect()[dt]+ut,this.nestMap_.get(lt).dragEl.classList.remove("collapsed");break;case UiEventType.COMP_DRAG_MOVE:{const mt=Math.min(ct,ut+ft*pt.detail.data_[gt]);this.nestMap_.get(lt).lastSize=mt,at.style.flexBasis=mt+"px";break}case UiEventType.COMP_DRAG_END:this.dispatchSplitEvent(UiEventType.COMP_DRAG_END,this.nestMap_.get(lt));break}}};this.listen(Z,Component.compEventCode(),ht(D,X,J,1)),this.listen(nt,Component.compEventCode(),ht(D,ot,rt,-1)),this.listen(Z.getElement(),EV.DBLCLICK,()=>this.toggle(J)),this.listen(nt.getElement(),EV.DBLCLICK,()=>this.toggle(rt)),this.listen(Z.getElement().querySelector(".zoo_grabber"),EV.CLICK,()=>this.toggle(J)),this.listen(nt.getElement().querySelector(".zoo_grabber"),EV.CLICK,()=>this.toggle(rt)),this.listen(X,EV.TRANSITIONEND,it=>{if(it.propertyName==="flex-basis"&&it.target===X){const at=this.nestCallbackMap_.get(J);this.nestCallbackMap_.delete(J),at&&at(),this.dispatchSplitEvent(UiEventType.SPLIT_TRANSITION_END,this.nestMap_.get(J))}}),this.listen(ot,EV.TRANSITIONEND,it=>{if(it.propertyName==="flex-basis"&&it.target===ot){const at=this.nestCallbackMap_.get(rt);this.nestCallbackMap_.delete(rt),at&&at(),this.dispatchSplitEvent(UiEventType.SPLIT_TRANSITION_END,this.nestMap_.get(rt))}})}dispatchSplitEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.SPLIT,O);return this.dispatchEvent(F)}}const convertElToSplit=(U,w)=>(U.classList.add("zoo_split",`zoo_split__${w.toLowerCase()}`),U),makeOuterNest=(U,w=[])=>{const D=document.createElement("div");return D.setAttribute("id",randomId(7)),D.classList.add("zoo_nest","zoo_nest__outer",...w),D.style.flexBasis=U+"px",D},makeInnerNest=(U=[])=>{const w=document.createElement("div");return w.setAttribute("id",randomId(7)),w.classList.add("zoo_nest","zoo_nest__inner",...U),w},makeDraggerEl=(U=[],w=[])=>()=>{const D=document.createElement("div");D.setAttribute("id",randomId(7)),D.classList.add("zoo_dragger",...U);const O=document.createElement("div");return O.classList.add("zoo_grabber",...w),D.appendChild(O),D},needsToScroll=U=>{const D=U.getBoundingClientRect().bottom;return O=>O.getBoundingClientRect().bottom>D},treeNodeSelect=U=>w=>{const D=U.getElement().querySelector(".zv_tree_container"),O=needsToScroll(D),F=U.getElement().querySelectorAll(".tree-node");let q;[...F].forEach(W=>{enableClass(W,"mdc-deprecated-list-item--activated",W.id===`tree-node_${w}`),W.id===`tree-node_${w}`&&(q=W)}),q&&O(q)&&q.scrollIntoView(!1)},toggleTree=(U,w)=>{const D=w.getElement().querySelector(".children"),O=U.isOn,F=w.getElement().querySelectorAll(".children"),q=w.getElement().querySelectorAll(".zoo__reveal_icon");[...F].forEach(W=>enableClass(W,"zoo__tree-children__hidden",W!==D&&!O)),[...q].forEach(W=>enableClass(W,"zoo__icon_rotated",W!==D&&!O))},toggleTreeChildren=(U,w)=>{const D=w.trigger,O=D.getAttribute("data-child-id"),F=U.getElement().querySelector(`#${O}`);toggleClass(F,"zoo__tree-children__hidden"),toggleClass(D,"zoo__icon_rotated")},_openTreeFromNodeUp=(U,w)=>{const D=w.parentElement;D.classList.contains("children")&&(enableClass(D,"zoo__tree-children__hidden",!1),_openTreeFromNodeUp(U,D))},treeUtils=Object.freeze(Object.defineProperty({__proto__:null,_openTreeFromNodeUp,toggleTree,toggleTreeChildren,treeNodeSelect},Symbol.toStringTag,{value:"Module"})),MdcTreeHandlers={toggle_tree:function(U,w){toggleTree(U,w)},"tree_toggle-children":function(U,w){toggleTreeChildren(w,U)}},SearchHandlers={search:function(U,w){let D=`${U.href}`;const O=U.formData.q,F=U.targetval;if(O!==""&&(D=`${D}?q=${O}`),F!==""){let q=F;F.includes("page=")&&(q=F.split("&").filter(W=>!W.includes("page=")).join("&")),D=O!==""?`${D}&${q}`:`${D}?${q}`}this.user.fetchAndSplit(D,w.abortController.signal).then(q=>w.onReplacePartialDom(q,U.zvptarget))},reset_search:function(U,w){const D=U.trigger.closest("form");w.removeFromQParams("q"),D.elements.q.value="",D.dispatchEvent(new Event("submit"))}},QueryParamHandlers={paginate:function(U,w){const D=`${U.href}?${U.targetval}`;this.user.fetchAndSplit(D,w.abortController.signal).then(O=>w.onReplacePartialDom(O,U.zvptarget))},list_filter:function(U,w){const D=`${U.href}?${U.targetval}`;this.user.fetchAndSplit(D,w.abortController.signal).then(O=>w.onReplacePartialDom(O,U.zvptarget))}},handlers=Object.freeze(Object.defineProperty({__proto__:null,MdcTreeHandlers,QueryParamHandlers,SearchHandlers},Symbol.toStringTag,{value:"Module"}));class View extends Evt{#t=void 0;#e=void 0;#s={};static viewEventCode(){return UiEventType.VIEW}constructor(){super(),this.panelMap=new Map,this.user_=void 0,this.split_=void 0,this.panelEventMap_=this.initPanelEventsInternal_(),this.switchViewMap_=new Map,this.metaData_=new Map}set recordHistory(w){this.#e=w}get recordHistory(){return this.#e}set registerViewConstructor(w){this.#t=w}get registerViewConstructor(){return this.#t}set utils(w){this.#s=w}get utils(){return this.#s}set split(w){this.split_=w,this.listen(this.split_,UiEventType.SPLIT,D=>{const O=D.detail.getValue(),F=D.detail.getData();switch(O){case UiEventType.SPLIT_WILL_OPEN:this.onSplitWillOpen(F);break;case UiEventType.SPLIT_WILL_CLOSE:this.onSplitWillClose(F);break;case UiEventType.SPLIT_DID_CLOSE:this.onSplitDidClose(F);break;case UiEventType.SPLIT_DID_OPEN:this.onSplitDidOpen(F);break;case UiEventType.SPLIT_TRANSITION_END:break}})}get split(){if(!this.split_)throw new Error("No SPLIT component available");return this.split_}set user(w){this.user_=w,this.panelMap.forEach(D=>D.user=w)}get user(){return this.user_||(this.user_=new UserManager),this.user_}render(){this.initPanelEvents(),this.preRender(),this.configurePanels(),this.displayPanels(),this.postRender()}initPanelEvents(){}preRender(){}configurePanels(){}displayPanels(){}postRender(){}dispose(){[...this.panelMap.values()].forEach(w=>w.dispose()),super.dispose()}addPanelToView(w,D){D.user=this.user,this.removePanelByName(w),this.panelMap.set(w,D),this.listen(D,Panel.panelEventCode(),this.onPanelEvent.bind(this))}removePanelByName(w){this.panelMap.has(w)&&this.panelMap.get(w).dispose()}removePanel(w){const[D,O]=[...this.panelMap.entries()].find(([F,q])=>q===w);D&&O&&(O.dispose(),this.panelMap.delete(D))}getPanelByName(w){return this.panelMap.get(w)}broadcastToPanels(w){[...this.panelMap.values()].forEach(D=>D.onViewDataBroadcast(w))}initPanelEventsInternal_(){const w=new Map;return w.set("destroy_me",(D,O)=>{this.removePanel(O)}),w.set("switch_view",(D,O)=>{this.debugMe("switch_view received: eventData",D);const F=D.view;this.switchViewMap_.has(F)?this.switchViewMap_.get(F)(D,O):this.debugMe("NO VIEW FOUND FOR:",F,this.switchViewMap_)}),Object.entries({...SearchHandlers,...QueryParamHandlers}).forEach(([D,O])=>{w.set(D,O.bind(this))}),w}mapPanEv(w,D){this.panelEventMap_.set(w,D)}mapSwitchView(w,D){this.switchViewMap_.set(w,D)}onPanelEvent(w){let D=w.detail.getValue();if(this.debugMe(`PanelEvent Value: ${D}`),!isDefAndNotNull(D)){this.debugMe(`The panel received an event without a value.
17
+ There is nothing we can do with that.`);return}const O=w.detail.getData();D?.startsWith("switch_view:")&&(O.view=D.split(":")[1],D="switch_view");const F=w.target;this.panelEventMap_.has(D)?this.panelEventMap_.get(D)(O,F):this.debugMe(`NO EVENT MATCH - This usually you are missing
17
18
  a "mapPanEv(${D} ..." statement in your panel JS
18
- or you have a "event='${D}'" attribute in your panel HTML`,{event:w,eventValue:D,eventData:O,panel:F.constructor.name})}onSplitWillOpen(w){}onSplitWillClose(w){}onSplitDidClose(w){}onSplitDidOpen(w){}dispatchViewEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.VIEW,O);return this.dispatchEvent(F)}get metaData(){return this.metaData_}setMetaData(w,D){return this.metaData_.set(w,D),this.metaData}getMetaData(w){return this.metaData_.get(w)}hasMetaData(w){return this.metaData_.has(w)}}class Conductor extends Evt{#t=new Map;#e=null;#s=void 0;#r=void 0;#n=new Map;constructor(){super(),this.#n=this.#i(),window.addEventListener("popstate",w=>{w.state!==null&&this.navTo(w.state)}),this.doOnBeat(()=>{document.dispatchEvent(new CustomEvent("zoo-tick-60",{detail:{timestamp:Date.now()}}))},6e4)}set split(w){this.#r=w}get split(){if(!this.#r)throw new Error("No SPLIT component available");return this.#r}set user(w){this.#s=w,this.#e&&(this.#e.user=this.user)}get user(){return this.#s||(this.#s=new UserManager),this.#s}#i(){return new Map().set("switch_view",(w,D)=>{if(this.#t.has(w.view)){const O=this.#t.get(w.view)(w.pk||w.recordId,w);this.switchView(O)}})}mapViewEv(w,D){this.#n.set(w,D)}registerViewConstructor(w,D){this.#t.set(w,D)}onViewEvent(w){const D=w.detail.getValue(),O=w.detail.getData(),F=w.target;this.#n.has(D)?this.#n.get(D)(O,F):console.warn("Unhandled VIEW Event:",w,D,O,F)}setActiveView(w){this.#e&&(this.stopListeningTo(this.#e),this.#e.dispose(),this.#e=null),this.#e=w,this.#e.render()}initView(w){return w.user=this.user,w.split=this.split,w.recordHistory=this.recordHistory.bind(this),w.registerViewConstructor=this.registerViewConstructor.bind(this),this.listen(w,View.viewEventCode(),this.onViewEvent.bind(this)),w}switchView(w){this.setActiveView(this.initView(w))}recordHistory(w){this.debugMe("HISTORY",w),w.init?history.replaceState(w,"",document.location.href):w.history||history.pushState(w,"",null)}navTo=w=>{w.history=!0;const D=w.view,O=this.#e;if(O.switchViewMap_.has(D))this.debugMe("NAV:VIEW:MAP",w),O.switchViewMap_.get(D)(w);else if(this.#t.has(D)){const F=this.#t.get(D)(w.pk,w);this.debugMe("NAV:NEW:VIEW",w),this.switchView(F)}}}function _isPlaceholder(U){return U!=null&&typeof U=="object"&&U["@@functional/placeholder"]===!0}function _curry1(U){return function w(D){return arguments.length===0||_isPlaceholder(D)?w:U.apply(this,arguments)}}function _curry2(U){return function w(D,O){switch(arguments.length){case 0:return w;case 1:return _isPlaceholder(D)?w:_curry1(function(F){return U(D,F)});default:return _isPlaceholder(D)&&_isPlaceholder(O)?w:_isPlaceholder(D)?_curry1(function(F){return U(F,O)}):_isPlaceholder(O)?_curry1(function(F){return U(D,F)}):U(D,O)}}}function _concat(U,w){U=U||[],w=w||[];var D,O=U.length,F=w.length,q=[];for(D=0;D<O;)q[q.length]=U[D],D+=1;for(D=0;D<F;)q[q.length]=w[D],D+=1;return q}function _arity(U,w){switch(U){case 0:return function(){return w.apply(this,arguments)};case 1:return function(D){return w.apply(this,arguments)};case 2:return function(D,O){return w.apply(this,arguments)};case 3:return function(D,O,F){return w.apply(this,arguments)};case 4:return function(D,O,F,q){return w.apply(this,arguments)};case 5:return function(D,O,F,q,W){return w.apply(this,arguments)};case 6:return function(D,O,F,q,W,Y){return w.apply(this,arguments)};case 7:return function(D,O,F,q,W,Y,G){return w.apply(this,arguments)};case 8:return function(D,O,F,q,W,Y,G,K){return w.apply(this,arguments)};case 9:return function(D,O,F,q,W,Y,G,K,Q){return w.apply(this,arguments)};case 10:return function(D,O,F,q,W,Y,G,K,Q,tt){return w.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(U,w,D){return function(){for(var O=[],F=0,q=U,W=0,Y=!1;W<w.length||F<arguments.length;){var G;W<w.length&&(!_isPlaceholder(w[W])||F>=arguments.length)?G=w[W]:(G=arguments[F],F+=1),O[W]=G,_isPlaceholder(G)?Y=!0:q-=1,W+=1}return!Y&&q<=0?D.apply(this,O):_arity(Math.max(0,q),_curryN(U,O,D))}}var curryN=_curry2(function U(w,D){return w===1?_curry1(D):_arity(w,_curryN(w,[],D))});function _curry3(U){return function w(D,O,F){switch(arguments.length){case 0:return w;case 1:return _isPlaceholder(D)?w:_curry2(function(q,W){return U(D,q,W)});case 2:return _isPlaceholder(D)&&_isPlaceholder(O)?w:_isPlaceholder(D)?_curry2(function(q,W){return U(q,O,W)}):_isPlaceholder(O)?_curry2(function(q,W){return U(D,q,W)}):_curry1(function(q){return U(D,O,q)});default:return _isPlaceholder(D)&&_isPlaceholder(O)&&_isPlaceholder(F)?w:_isPlaceholder(D)&&_isPlaceholder(O)?_curry2(function(q,W){return U(q,W,F)}):_isPlaceholder(D)&&_isPlaceholder(F)?_curry2(function(q,W){return U(q,O,W)}):_isPlaceholder(O)&&_isPlaceholder(F)?_curry2(function(q,W){return U(D,q,W)}):_isPlaceholder(D)?_curry1(function(q){return U(q,O,F)}):_isPlaceholder(O)?_curry1(function(q){return U(D,q,F)}):_isPlaceholder(F)?_curry1(function(q){return U(D,O,q)}):U(D,O,F)}}}const _isArray=Array.isArray||function U(w){return w!=null&&w.length>=0&&Object.prototype.toString.call(w)==="[object Array]"};function _isTransformer(U){return U!=null&&typeof U["@@transducer/step"]=="function"}function _dispatchable(U,w,D){return function(){if(arguments.length===0)return D();var O=arguments[arguments.length-1];if(!_isArray(O)){for(var F=0;F<U.length;){if(typeof O[U[F]]=="function")return O[U[F]].apply(O,Array.prototype.slice.call(arguments,0,-1));F+=1}if(_isTransformer(O)){var q=w.apply(null,Array.prototype.slice.call(arguments,0,-1));return q(O)}}return D.apply(this,arguments)}}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(U){return this.xf["@@transducer/result"](U)}};function _has(U,w){return Object.prototype.hasOwnProperty.call(w,U)}var toString=Object.prototype.toString,_isArguments=(function(){return toString.call(arguments)==="[object Arguments]"?function(w){return toString.call(w)==="[object Arguments]"}:function(w){return _has("callee",w)}})(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=(function(){return arguments.propertyIsEnumerable("length")})(),contains=function U(w,D){for(var O=0;O<w.length;){if(w[O]===D)return!0;O+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function U(w){return Object(w)!==w?[]:Object.keys(w)}:function U(w){if(Object(w)!==w)return[];var D,O,F=[],q=hasArgsEnumBug&&_isArguments(w);for(D in w)_has(D,w)&&(!q||D!=="length")&&(F[F.length]=D);if(hasEnumBug)for(O=nonEnumerableProps.length-1;O>=0;)D=nonEnumerableProps[O],_has(D,w)&&!contains(F,D)&&(F[F.length]=D),O-=1;return F});function _map(U,w){for(var D=0,O=w.length,F=Array(O);D<O;)F[D]=U(w[D]),D+=1;return F}function _arrayReduce(U,w,D){for(var O=0,F=D.length;O<F;)w=U(w,D[O]),O+=1;return w}var XMap=(function(){function U(w,D){this.xf=D,this.f=w}return U.prototype["@@transducer/init"]=_xfBase.init,U.prototype["@@transducer/result"]=_xfBase.result,U.prototype["@@transducer/step"]=function(w,D){return this.xf["@@transducer/step"](w,this.f(D))},U})(),_xmap=function U(w){return function(D){return new XMap(w,D)}},map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function U(w,D){switch(Object.prototype.toString.call(D)){case"[object Function]":return curryN(D.length,function(){return w.call(this,D.apply(this,arguments))});case"[object Object]":return _arrayReduce(function(O,F){return O[F]=w(D[F]),O},{},keys(D));default:return _map(w,D)}}));const _isInteger=Number.isInteger||function U(w){return w<<0===w};function _nth(U,w){var D=U<0?w.length+U:U;return w[D]}function _prop(U,w){if(w!=null)return _isInteger(U)?_nth(U,w):w[U]}function _isString(U){return Object.prototype.toString.call(U)==="[object String]"}var _isArrayLike=_curry1(function U(w){return _isArray(w)?!0:!w||typeof w!="object"||_isString(w)?!1:w.length===0?!0:w.length>0?w.hasOwnProperty(0)&&w.hasOwnProperty(w.length-1):!1}),symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _createReduce(U,w,D){return function(F,q,W){if(_isArrayLike(W))return U(F,q,W);if(W==null)return q;if(typeof W["fantasy-land/reduce"]=="function")return w(F,q,W,"fantasy-land/reduce");if(W[symIterator]!=null)return D(F,q,W[symIterator]());if(typeof W.next=="function")return D(F,q,W);if(typeof W.reduce=="function")return w(F,q,W,"reduce");throw new TypeError("reduce: list must be array or iterable")}}var and=_curry2(function U(w,D){return w&&D});function _iterableReduce(U,w,D){for(var O=D.next();!O.done;)w=U(w,O.value),O=D.next();return w}function _methodReduce(U,w,D,O){return D[O](U,w)}var _reduce=_createReduce(_arrayReduce,_methodReduce,_iterableReduce),ap=_curry2(function U(w,D){return typeof D["fantasy-land/ap"]=="function"?D["fantasy-land/ap"](w):typeof w.ap=="function"?w.ap(D):typeof w=="function"?function(O){return w(O)(D(O))}:_reduce(function(O,F){return _concat(O,map(F,D))},[],w)});function _assoc(U,w,D){if(_isInteger(U)&&_isArray(D)){var O=U<0?D.length+U:U,F=[].concat(D);return F[O]=w,F}var q={};for(var W in D)q[W]=D[W];return q[U]=w,q}var isNil=_curry1(function U(w){return w==null}),assocPath=_curry3(function U(w,D,O){if(w.length===0)return D;var F=w[0];if(w.length>1){var q=_prop(F,O);(isNil(q)||typeof q!="object")&&(q=_isInteger(w[1])?[]:{}),D=U(Array.prototype.slice.call(w,1),D,q)}return _assoc(F,D,O)});function _isFunction(U){var w=Object.prototype.toString.call(U);return w==="[object Function]"||w==="[object AsyncFunction]"||w==="[object GeneratorFunction]"||w==="[object AsyncGeneratorFunction]"}var liftN=_curry2(function U(w,D){var O=curryN(w,D);return curryN(w,function(){return _arrayReduce(ap,map(O,arguments[0]),Array.prototype.slice.call(arguments,1))})}),lift=_curry1(function U(w){return liftN(w.length,w)}),both=_curry2(function U(w,D){return _isFunction(w)?function(){return w.apply(this,arguments)&&D.apply(this,arguments)}:lift(and)(w,D)}),hasPath=_curry2(function U(w,D){if(w.length===0||isNil(D))return!1;for(var O=D,F=0;F<w.length;)if(!isNil(O)&&_has(w[F],O))O=O[w[F]],F+=1;else return!1;return!0}),has=_curry2(function U(w,D){return hasPath([w],D)});function _path(U,w){for(var D=w,O=0;O<U.length;O+=1){if(D==null)return;var F=U[O];_isInteger(F)?D=_nth(F,D):D=D[F]}return D}var path=_curry2(_path);const DEFAULT_FORMATTERS={json:U=>JSON.stringify(U,null,2),tpl:(U,w,D)=>{const O=D?.getAttribute("zoo-bind-attr-tpl")||D?.getAttribute("zoo-bind-tpl");if(!O)return U;try{return new Function("value","data",`return \`${O}\`;`)(U,w)}catch(F){return console.warn("[Binder] Invalid template:",O,F),U}}};class Binder{#t;#e;#s;#r=null;#n;constructor(w,D,O,F={}){if(!D)throw new Error("Binder requires a URL");if(!O||!(O instanceof Element))throw new Error("Binder requires a valid rootEl Element");this.#t=w,this.#e=new URL(D,window.location.origin),this.#s=O,this.#n={...DEFAULT_FORMATTERS,...F.formatters},F.urlParams?this.#i(F.urlParams):this.#o()}get url(){return this.#e}get data(){return this.#r}get limit(){return parseInt(this.#e.searchParams.get("limit")||"0",10)}get offset(){return parseInt(this.#e.searchParams.get("offset")||"0",10)}get isPaginated(){return both(has("count"),has("results"))(this.#r)}#i(w){return Object.entries(w).forEach(([D,O])=>{if(!isDefAndNotNull(O)||O===""||Array.isArray(O)&&O.length<1){this.#e.searchParams.delete(D);return}if(Array.isArray(O)){this.#e.searchParams.set(D,O.join(","));return}this.#e.searchParams.set(D,O)}),this.#o(),this.#e}#o(){const w=this.#e.href.split(this.url.origin)[1].slice(1);this.#s.querySelectorAll("[zoo-bind-binderurl]").forEach(D=>{D.setAttribute("zoo-bind-binderurl",w)})}async fetchData(w={}){const D=await this.#t.user.fetchJson(this.#i(w).toString(),this.#t.abortController.signal);this.setData(D)}setData(w){this.#r=w,this.render()}render(){if(!isDefAndNotNull(this.#r)){console.warn("[Binder] No data to render");return}this.#o(),this.#a(this.#s,this.#r,0),this.#l()}#a(w,D,O=0,F={}){const q=F.removeAttributes??!1;w.querySelectorAll("[zoo-bind-attr]").forEach(W=>{if(W.closest("[zoo-template]"))return;W.getAttribute("zoo-bind-attr").split(",").forEach(G=>{const[K,Q]=G.split(":").map(Z=>Z.trim()),[tt,J]=Q.split("|").map(Z=>Z.trim());let X=this.#c(D,tt,O);J&&this.#n[J]&&(X=this.#n[J](X,D,W)),isDefAndNotNull(X)&&W.setAttribute(K,X)}),q&&(W.removeAttribute("zoo-bind-attr"),W.removeAttribute("zoo-bind-attr-tpl"))}),w.querySelectorAll("[zoo-bind]").forEach(W=>{if(W.closest("[zoo-template]"))return;const Y=W.getAttribute("zoo-bind"),[G,K]=Y.split("|").map(tt=>tt.trim());let Q=this.#c(D,G,O);K&&this.#n[K]&&(Q=this.#n[K](Q,D,W)),W.textContent=Q??"",q&&(W.removeAttribute("zoo-bind"),W.removeAttribute("zoo-bind-tpl"))})}#l(){this.#s.querySelectorAll("[zoo-template]").forEach(D=>{const O=D.getAttribute("zoo-template"),F=D.getAttribute("zoo-template-bind");if(!O){console.warn("[Binder] Consumer missing template ID",D);return}const q=this.#s.querySelector(`#${O}`);if(!q||q.tagName!=="TEMPLATE"){console.error(`[DataBinder] Template not found or invalid: ${O}`);return}const W=F?path(F.split("."),this.#r):this.#r;if(!W){console.warn(`[DataBinder] Data slice is undefined. Path: ${F}. Skipping render for this consumer.`);return}if(!Array.isArray(W)){console.error(`[DataBinder] Data slice is not an array. Path: ${F}`,W);return}D.innerHTML="",W.forEach((Y,G)=>{const K=this.#h(q,Y,G);D.appendChild(K)})})}#h(w,D,O){const F=w.content.cloneNode(!0);return this.#a(F,D,O,{removeAttributes:!0}),F}#c(w,D,O){const F={$index:()=>O,$index__paged:()=>this.offset+O,$index1:()=>O+1,$index1__paged:()=>this.offset+O+1};return F[D]?F[D]():path(D.split("."),w)}}const SEMANTIC_ATTRS=new Map(Object.entries({event:"event",endpoint:"endpoint",href:"href",url:"url",target:"target","record-id":"recordId","zoo-sort-field":"sortField","zoo-view":"view","zoo-event":"event","zoo-href":"href"})),getSemanticAttributes=U=>{let w={};return Array.from(U.attributes).forEach(D=>{const O=D.name,F=D.value;SEMANTIC_ATTRS.has(O)?w[SEMANTIC_ATTRS.get(O)]=F:(O.startsWith("data-")||O.startsWith("zoo-"))&&(w=assocPath(O.split("-"),F,w))}),w},getEventAttribute=(U,w,D="event")=>U.getAttribute(w)||U.getAttribute(D);/**
19
+ or you have a "event='${D}'" attribute in your panel HTML`,{event:w,eventValue:D,eventData:O,panel:F.constructor.name})}onSplitWillOpen(w){}onSplitWillClose(w){}onSplitDidClose(w){}onSplitDidOpen(w){}dispatchViewEvent(w,D){const O=new ZooyEventData(w,D),F=Evt.makeEvent(UiEventType.VIEW,O);return this.dispatchEvent(F)}get metaData(){return this.metaData_}setMetaData(w,D){return this.metaData_.set(w,D),this.metaData}getMetaData(w){return this.metaData_.get(w)}hasMetaData(w){return this.metaData_.has(w)}}function _isPlaceholder(U){return U!=null&&typeof U=="object"&&U["@@functional/placeholder"]===!0}function _curry1(U){return function w(D){return arguments.length===0||_isPlaceholder(D)?w:U.apply(this,arguments)}}function _curry2(U){return function w(D,O){switch(arguments.length){case 0:return w;case 1:return _isPlaceholder(D)?w:_curry1(function(F){return U(D,F)});default:return _isPlaceholder(D)&&_isPlaceholder(O)?w:_isPlaceholder(D)?_curry1(function(F){return U(F,O)}):_isPlaceholder(O)?_curry1(function(F){return U(D,F)}):U(D,O)}}}function _concat(U,w){U=U||[],w=w||[];var D,O=U.length,F=w.length,q=[];for(D=0;D<O;)q[q.length]=U[D],D+=1;for(D=0;D<F;)q[q.length]=w[D],D+=1;return q}function _arity(U,w){switch(U){case 0:return function(){return w.apply(this,arguments)};case 1:return function(D){return w.apply(this,arguments)};case 2:return function(D,O){return w.apply(this,arguments)};case 3:return function(D,O,F){return w.apply(this,arguments)};case 4:return function(D,O,F,q){return w.apply(this,arguments)};case 5:return function(D,O,F,q,W){return w.apply(this,arguments)};case 6:return function(D,O,F,q,W,Y){return w.apply(this,arguments)};case 7:return function(D,O,F,q,W,Y,G){return w.apply(this,arguments)};case 8:return function(D,O,F,q,W,Y,G,K){return w.apply(this,arguments)};case 9:return function(D,O,F,q,W,Y,G,K,Q){return w.apply(this,arguments)};case 10:return function(D,O,F,q,W,Y,G,K,Q,tt){return w.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(U,w,D){return function(){for(var O=[],F=0,q=U,W=0,Y=!1;W<w.length||F<arguments.length;){var G;W<w.length&&(!_isPlaceholder(w[W])||F>=arguments.length)?G=w[W]:(G=arguments[F],F+=1),O[W]=G,_isPlaceholder(G)?Y=!0:q-=1,W+=1}return!Y&&q<=0?D.apply(this,O):_arity(Math.max(0,q),_curryN(U,O,D))}}var curryN=_curry2(function U(w,D){return w===1?_curry1(D):_arity(w,_curryN(w,[],D))});function _curry3(U){return function w(D,O,F){switch(arguments.length){case 0:return w;case 1:return _isPlaceholder(D)?w:_curry2(function(q,W){return U(D,q,W)});case 2:return _isPlaceholder(D)&&_isPlaceholder(O)?w:_isPlaceholder(D)?_curry2(function(q,W){return U(q,O,W)}):_isPlaceholder(O)?_curry2(function(q,W){return U(D,q,W)}):_curry1(function(q){return U(D,O,q)});default:return _isPlaceholder(D)&&_isPlaceholder(O)&&_isPlaceholder(F)?w:_isPlaceholder(D)&&_isPlaceholder(O)?_curry2(function(q,W){return U(q,W,F)}):_isPlaceholder(D)&&_isPlaceholder(F)?_curry2(function(q,W){return U(q,O,W)}):_isPlaceholder(O)&&_isPlaceholder(F)?_curry2(function(q,W){return U(D,q,W)}):_isPlaceholder(D)?_curry1(function(q){return U(q,O,F)}):_isPlaceholder(O)?_curry1(function(q){return U(D,q,F)}):_isPlaceholder(F)?_curry1(function(q){return U(D,O,q)}):U(D,O,F)}}}const _isArray=Array.isArray||function U(w){return w!=null&&w.length>=0&&Object.prototype.toString.call(w)==="[object Array]"};function _isTransformer(U){return U!=null&&typeof U["@@transducer/step"]=="function"}function _dispatchable(U,w,D){return function(){if(arguments.length===0)return D();var O=arguments[arguments.length-1];if(!_isArray(O)){for(var F=0;F<U.length;){if(typeof O[U[F]]=="function")return O[U[F]].apply(O,Array.prototype.slice.call(arguments,0,-1));F+=1}if(_isTransformer(O)){var q=w.apply(null,Array.prototype.slice.call(arguments,0,-1));return q(O)}}return D.apply(this,arguments)}}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(U){return this.xf["@@transducer/result"](U)}};function _has(U,w){return Object.prototype.hasOwnProperty.call(w,U)}var toString=Object.prototype.toString,_isArguments=(function(){return toString.call(arguments)==="[object Arguments]"?function(w){return toString.call(w)==="[object Arguments]"}:function(w){return _has("callee",w)}})(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=(function(){return arguments.propertyIsEnumerable("length")})(),contains=function U(w,D){for(var O=0;O<w.length;){if(w[O]===D)return!0;O+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function U(w){return Object(w)!==w?[]:Object.keys(w)}:function U(w){if(Object(w)!==w)return[];var D,O,F=[],q=hasArgsEnumBug&&_isArguments(w);for(D in w)_has(D,w)&&(!q||D!=="length")&&(F[F.length]=D);if(hasEnumBug)for(O=nonEnumerableProps.length-1;O>=0;)D=nonEnumerableProps[O],_has(D,w)&&!contains(F,D)&&(F[F.length]=D),O-=1;return F});function _map(U,w){for(var D=0,O=w.length,F=Array(O);D<O;)F[D]=U(w[D]),D+=1;return F}function _arrayReduce(U,w,D){for(var O=0,F=D.length;O<F;)w=U(w,D[O]),O+=1;return w}var XMap=(function(){function U(w,D){this.xf=D,this.f=w}return U.prototype["@@transducer/init"]=_xfBase.init,U.prototype["@@transducer/result"]=_xfBase.result,U.prototype["@@transducer/step"]=function(w,D){return this.xf["@@transducer/step"](w,this.f(D))},U})(),_xmap=function U(w){return function(D){return new XMap(w,D)}},map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function U(w,D){switch(Object.prototype.toString.call(D)){case"[object Function]":return curryN(D.length,function(){return w.call(this,D.apply(this,arguments))});case"[object Object]":return _arrayReduce(function(O,F){return O[F]=w(D[F]),O},{},keys(D));default:return _map(w,D)}}));const _isInteger=Number.isInteger||function U(w){return w<<0===w};function _nth(U,w){var D=U<0?w.length+U:U;return w[D]}function _prop(U,w){if(w!=null)return _isInteger(U)?_nth(U,w):w[U]}function _isString(U){return Object.prototype.toString.call(U)==="[object String]"}var _isArrayLike=_curry1(function U(w){return _isArray(w)?!0:!w||typeof w!="object"||_isString(w)?!1:w.length===0?!0:w.length>0?w.hasOwnProperty(0)&&w.hasOwnProperty(w.length-1):!1}),symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _createReduce(U,w,D){return function(F,q,W){if(_isArrayLike(W))return U(F,q,W);if(W==null)return q;if(typeof W["fantasy-land/reduce"]=="function")return w(F,q,W,"fantasy-land/reduce");if(W[symIterator]!=null)return D(F,q,W[symIterator]());if(typeof W.next=="function")return D(F,q,W);if(typeof W.reduce=="function")return w(F,q,W,"reduce");throw new TypeError("reduce: list must be array or iterable")}}var and=_curry2(function U(w,D){return w&&D});function _iterableReduce(U,w,D){for(var O=D.next();!O.done;)w=U(w,O.value),O=D.next();return w}function _methodReduce(U,w,D,O){return D[O](U,w)}var _reduce=_createReduce(_arrayReduce,_methodReduce,_iterableReduce),ap=_curry2(function U(w,D){return typeof D["fantasy-land/ap"]=="function"?D["fantasy-land/ap"](w):typeof w.ap=="function"?w.ap(D):typeof w=="function"?function(O){return w(O)(D(O))}:_reduce(function(O,F){return _concat(O,map(F,D))},[],w)});function _assoc(U,w,D){if(_isInteger(U)&&_isArray(D)){var O=U<0?D.length+U:U,F=[].concat(D);return F[O]=w,F}var q={};for(var W in D)q[W]=D[W];return q[U]=w,q}var isNil=_curry1(function U(w){return w==null}),assocPath=_curry3(function U(w,D,O){if(w.length===0)return D;var F=w[0];if(w.length>1){var q=_prop(F,O);(isNil(q)||typeof q!="object")&&(q=_isInteger(w[1])?[]:{}),D=U(Array.prototype.slice.call(w,1),D,q)}return _assoc(F,D,O)});function _isFunction(U){var w=Object.prototype.toString.call(U);return w==="[object Function]"||w==="[object AsyncFunction]"||w==="[object GeneratorFunction]"||w==="[object AsyncGeneratorFunction]"}var liftN=_curry2(function U(w,D){var O=curryN(w,D);return curryN(w,function(){return _arrayReduce(ap,map(O,arguments[0]),Array.prototype.slice.call(arguments,1))})}),lift=_curry1(function U(w){return liftN(w.length,w)}),both=_curry2(function U(w,D){return _isFunction(w)?function(){return w.apply(this,arguments)&&D.apply(this,arguments)}:lift(and)(w,D)}),hasPath=_curry2(function U(w,D){if(w.length===0||isNil(D))return!1;for(var O=D,F=0;F<w.length;)if(!isNil(O)&&_has(w[F],O))O=O[w[F]],F+=1;else return!1;return!0}),has=_curry2(function U(w,D){return hasPath([w],D)});function _objectAssign(U){if(U==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(U),D=1,O=arguments.length;D<O;){var F=arguments[D];if(F!=null)for(var q in F)_has(q,F)&&(w[q]=F[q]);D+=1}return w}const _objectAssign$1=typeof Object.assign=="function"?Object.assign:_objectAssign;function _path(U,w){for(var D=w,O=0;O<U.length;O+=1){if(D==null)return;var F=U[O];_isInteger(F)?D=_nth(F,D):D=D[F]}return D}var mergeRight=_curry2(function U(w,D){return _objectAssign$1({},w,D)}),path=_curry2(_path);class Conductor extends Evt{#t=new Map;#e=null;#s=void 0;#r=void 0;#n=new Map;#i={};constructor(){super(),this.#n=this.#o(),window.addEventListener("popstate",w=>{w.state!==null&&this.navTo(w.state)}),this.doOnBeat(()=>{document.dispatchEvent(new CustomEvent("zoo-tick-60",{detail:{timestamp:Date.now()}}))},6e4)}set split(w){this.#r=w}get split(){if(!this.#r)throw new Error("No SPLIT component available");return this.#r}set user(w){this.#s=w,this.#e&&(this.#e.user=this.user)}get user(){return this.#s||(this.#s=new UserManager),this.#s}get utils(){return this.#i}registerUtil(w){this.#i=mergeRight(this.#i,w)}#o(){return new Map().set("switch_view",(w,D)=>{if(this.#t.has(w.view)){const O=this.#t.get(w.view)(w.pk||w.recordId,w);this.switchView(O)}})}mapViewEv(w,D){this.#n.set(w,D)}registerViewConstructor(w,D){this.#t.set(w,D)}onViewEvent(w){const D=w.detail.getValue(),O=w.detail.getData(),F=w.target;this.#n.has(D)?this.#n.get(D)(O,F):console.warn("Unhandled VIEW Event:",w,D,O,F)}setActiveView(w){this.#e&&(this.stopListeningTo(this.#e),this.#e.dispose(),this.#e=null),this.#e=w,this.#e.render()}initView(w){return w.user=this.user,w.split=this.split,w.utils=this.utils,w.recordHistory=this.recordHistory.bind(this),w.registerViewConstructor=this.registerViewConstructor.bind(this),this.listen(w,View.viewEventCode(),this.onViewEvent.bind(this)),w}switchView(w){this.setActiveView(this.initView(w))}recordHistory(w){this.debugMe("HISTORY",w),w.init?history.replaceState(w,"",document.location.href):w.history||history.pushState(w,"",null)}navTo=w=>{w.history=!0;const D=w.view,O=this.#e;if(O.switchViewMap_.has(D))this.debugMe("NAV:VIEW:MAP",w),O.switchViewMap_.get(D)(w);else if(this.#t.has(D)){const F=this.#t.get(D)(w.pk,w);this.debugMe("NAV:NEW:VIEW",w),this.switchView(F)}}}const DEFAULT_FORMATTERS={json:U=>JSON.stringify(U,null,2),tpl:(U,w,D)=>{const O=D?.getAttribute("zoo-bind-attr-tpl")||D?.getAttribute("zoo-bind-tpl");if(!O)return U;try{return new Function("value","data",`return \`${O}\`;`)(U,w)}catch(F){return console.warn("[Binder] Invalid template:",O,F),U}}};class Binder{#t;#e;#s;#r=null;#n;constructor(w,D,O,F={}){if(!D)throw new Error("Binder requires a URL");if(!O||!(O instanceof Element))throw new Error("Binder requires a valid rootEl Element");this.#t=w,this.#e=new URL(D,window.location.origin),this.#s=O,this.#n={...DEFAULT_FORMATTERS,...F.formatters},F.urlParams?this.#i(F.urlParams):this.#o()}get url(){return this.#e}get data(){return this.#r}get limit(){return parseInt(this.#e.searchParams.get("limit")||"0",10)}get offset(){return parseInt(this.#e.searchParams.get("offset")||"0",10)}get isPaginated(){return both(has("count"),has("results"))(this.#r)}#i(w){return Object.entries(w).forEach(([D,O])=>{if(!isDefAndNotNull(O)||O===""||Array.isArray(O)&&O.length<1){this.#e.searchParams.delete(D);return}if(Array.isArray(O)){this.#e.searchParams.set(D,O.join(","));return}this.#e.searchParams.set(D,O)}),this.#o(),this.#e}#o(){const w=this.#e.href.split(this.url.origin)[1].slice(1);this.#s.querySelectorAll("[zoo-bind-binderurl]").forEach(D=>{D.setAttribute("zoo-bind-binderurl",w)})}async fetchData(w={}){const D=await this.#t.user.fetchJson(this.#i(w).toString(),this.#t.abortController.signal);this.setData(D)}setData(w){this.#r=w,this.render()}render(){if(!isDefAndNotNull(this.#r)){console.warn("[Binder] No data to render");return}this.#o(),this.#a(this.#s,this.#r,0),this.#l()}#a(w,D,O=0,F={}){const q=F.removeAttributes??!1;w.querySelectorAll("[zoo-bind-attr]").forEach(W=>{if(W.closest("[zoo-template]"))return;W.getAttribute("zoo-bind-attr").split(",").forEach(G=>{const[K,Q]=G.split(":").map(Z=>Z.trim()),[tt,J]=Q.split("|").map(Z=>Z.trim());let X=this.#c(D,tt,O);J&&this.#n[J]&&(X=this.#n[J](X,D,W)),isDefAndNotNull(X)&&W.setAttribute(K,X)}),q&&(W.removeAttribute("zoo-bind-attr"),W.removeAttribute("zoo-bind-attr-tpl"))}),w.querySelectorAll("[zoo-bind]").forEach(W=>{if(W.closest("[zoo-template]"))return;const Y=W.getAttribute("zoo-bind"),[G,K]=Y.split("|").map(tt=>tt.trim());let Q=this.#c(D,G,O);K&&this.#n[K]&&(Q=this.#n[K](Q,D,W)),W.textContent=Q??"",q&&(W.removeAttribute("zoo-bind"),W.removeAttribute("zoo-bind-tpl"))})}#l(){this.#s.querySelectorAll("[zoo-template]").forEach(D=>{const O=D.getAttribute("zoo-template"),F=D.getAttribute("zoo-template-bind");if(!O){console.warn("[Binder] Consumer missing template ID",D);return}const q=this.#s.querySelector(`#${O}`);if(!q||q.tagName!=="TEMPLATE"){console.error(`[DataBinder] Template not found or invalid: ${O}`);return}const W=F?path(F.split("."),this.#r):this.#r;if(!W){console.warn(`[DataBinder] Data slice is undefined. Path: ${F}. Skipping render for this consumer.`);return}if(!Array.isArray(W)){console.error(`[DataBinder] Data slice is not an array. Path: ${F}`,W);return}D.innerHTML="",W.forEach((Y,G)=>{const K=this.#h(q,Y,G);D.appendChild(K)})})}#h(w,D,O){const F=w.content.cloneNode(!0);return this.#a(F,D,O,{removeAttributes:!0}),F}#c(w,D,O){const F={$index:()=>O,$index__paged:()=>this.offset+O,$index1:()=>O+1,$index1__paged:()=>this.offset+O+1};return F[D]?F[D]():path(D.split("."),w)}}const SEMANTIC_ATTRS=new Map(Object.entries({event:"event",endpoint:"endpoint",href:"href",url:"url",target:"target","record-id":"recordId","zoo-sort-field":"sortField","zoo-view":"view","zoo-event":"event","zoo-href":"href"})),getSemanticAttributes=U=>{let w={};return Array.from(U.attributes).forEach(D=>{const O=D.name,F=D.value;SEMANTIC_ATTRS.has(O)?w[SEMANTIC_ATTRS.get(O)]=F:(O.startsWith("data-")||O.startsWith("zoo-"))&&(w=assocPath(O.split("-"),F,w))}),w},getEventAttribute=(U,w,D="event")=>U.getAttribute(w)||U.getAttribute(D);/**
19
20
  * @license
20
21
  * Copyright 2019 Google LLC
21
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -84,4 +85,4 @@
84
85
  }
85
86
  `;constructor(){super(),this.timestamp=Date.now(),this.kind="both",this.concat="r (s)",this._boundTickHandler=this._onTimeTick.bind(this),this._isListening=!1}_shouldListenToTicks(){return this.kind==="relative"||this.kind==="both"}connectedCallback(){super.connectedCallback(),this._updateTickListener()}disconnectedCallback(){this._removeTickListener(),super.disconnectedCallback()}updated(w){super.updated(w),w.has("kind")&&this._updateTickListener()}_updateTickListener(){const w=this._shouldListenToTicks();w&&!this._isListening?(document.addEventListener("zoo-tick-60",this._boundTickHandler),this._isListening=!0):!w&&this._isListening&&this._removeTickListener()}_removeTickListener(){this._isListening&&(document.removeEventListener("zoo-tick-60",this._boundTickHandler),this._isListening=!1)}_onTimeTick(){this.requestUpdate()}_parseTemplate(w){const D=[];let O=w;for(;O.length>0;){const F=O.indexOf("r"),q=O.indexOf("s"),W=[F,q].filter(Y=>Y!==-1).sort((Y,G)=>Y-G)[0];if(W===void 0){O.length>0&&D.push({type:"text",value:O});break}W>0&&D.push({type:"text",value:O.substring(0,W)}),W===F?D.push({type:"relative",value:""}):D.push({type:"static",value:""}),O=O.substring(W+1)}return D}_getFormattedParts(){let w=this.timestamp;w<9466848e5&&(w=w*1e3);const D=new Date(w),O=formatRelativeTime(D),F=formatDatetime(D),q=formatDate(D);switch(this.kind){case"relative":return[{type:"relative",value:O}];case"datetime":return[{type:"static",value:F}];case"date":return[{type:"static",value:q}];case"both":return this._parseTemplate(this.concat).map(G=>G.type==="relative"?{type:"relative",value:O}:G.type==="static"?{type:"static",value:F}:G);default:return this._parseTemplate(this.concat).map(G=>G.type==="relative"?{type:"relative",value:O}:G.type==="static"?{type:"static",value:F}:G)}}render(){let w=this.timestamp;w<9466848e5&&(w=w*1e3);const D=new Date(w),O=this._getFormattedParts();return x`<time datetime="${D.toISOString()}">
86
87
  ${O.map(F=>F.type==="relative"?x`<span class="relative">${F.value}</span>`:F.type==="static"?x`<span class="static">${F.value}</span>`:x`<span class="separator">${F.value}</span>`)}
87
- </time>`}}customElements.get("zoo-timestamp")||customElements.define("zoo-timestamp",ZooTimestamp);const zoo=Object.freeze(Object.defineProperty({__proto__:null,ZooTag,ZooTimestamp,getEventAttribute,getSemanticAttributes},Symbol.toStringTag,{value:"Module"}));async function registerCarbonLibrary(U={}){const{registerCarbonLibrary:w}=await Promise.resolve().then(()=>require("./register-BH6NpHIA.js"));return w(U)}async function registerMdcLibrary(){const{registerMdcLibrary:U}=await Promise.resolve().then(()=>require("./register-h6ZQPYju.js"));return U()}const zooy={Evt,Component,Dragger,Panel,FormPanel,Split,UserManager,View,Conductor,DataBinder:Binder,UiEventType,domUtils,uriUtils,registerCarbonLibrary,registerMdcLibrary,ComponentLibraryRegistry,handlers,zoo};exports.B=B;exports.Binder=Binder;exports.Component=Component;exports.ComponentLibraryRegistry=ComponentLibraryRegistry;exports.Conductor=Conductor;exports.Dragger=Dragger;exports.E=E;exports.Evt=Evt;exports.FormPanel=FormPanel;exports.Panel=Panel;exports.Split=Split;exports.T=T;exports.UiEventType=UiEventType;exports.UserManager=UserManager;exports.View=View;exports._curry2=_curry2;exports._curry3=_curry3;exports._path=_path;exports.b=b;exports.domUtils=domUtils;exports.f=f$1;exports.getElDataMap=getElDataMap;exports.getEventAttribute=getEventAttribute;exports.getSemanticAttributes=getSemanticAttributes;exports.handlers=handlers;exports.hasPath=hasPath;exports.i=i;exports.i$1=i$3;exports.isDefAndNotNull=isDefAndNotNull;exports.objToPaths=objToPaths;exports.path=path;exports.registerCarbonLibrary=registerCarbonLibrary;exports.registerMdcLibrary=registerMdcLibrary;exports.toLowerCase=toLowerCase;exports.treeUtils=treeUtils;exports.u=u$1;exports.uriUtils=uriUtils;exports.x=x;exports.zoo=zoo;exports.zooy=zooy;
88
+ </time>`}}customElements.get("zoo-timestamp")||customElements.define("zoo-timestamp",ZooTimestamp);const zoo=Object.freeze(Object.defineProperty({__proto__:null,ZooTag,ZooTimestamp,getEventAttribute,getSemanticAttributes},Symbol.toStringTag,{value:"Module"}));async function registerCarbonLibrary(U={}){const{registerCarbonLibrary:w}=await Promise.resolve().then(()=>require("./register-CFDNay1l.js"));return w(U)}async function registerMdcLibrary(){const{registerMdcLibrary:U}=await Promise.resolve().then(()=>require("./register-DyYwnhHb.js"));return U()}const zooy={Evt,Component,Dragger,Panel,FormPanel,Split,UserManager,View,Conductor,DataBinder:Binder,UiEventType,domUtils,uriUtils,registerCarbonLibrary,registerMdcLibrary,ComponentLibraryRegistry,handlers,zoo};exports.B=B;exports.Binder=Binder;exports.Component=Component;exports.ComponentLibraryRegistry=ComponentLibraryRegistry;exports.Conductor=Conductor;exports.Dragger=Dragger;exports.E=E;exports.Evt=Evt;exports.FormPanel=FormPanel;exports.Panel=Panel;exports.Split=Split;exports.T=T;exports.UiEventType=UiEventType;exports.UserManager=UserManager;exports.View=View;exports._curry2=_curry2;exports._curry3=_curry3;exports._path=_path;exports.b=b;exports.domUtils=domUtils;exports.f=f$1;exports.getElDataMap=getElDataMap;exports.getEventAttribute=getEventAttribute;exports.getSemanticAttributes=getSemanticAttributes;exports.handlers=handlers;exports.hasPath=hasPath;exports.i=i;exports.i$1=i$3;exports.isDefAndNotNull=isDefAndNotNull;exports.objToPaths=objToPaths;exports.path=path;exports.registerCarbonLibrary=registerCarbonLibrary;exports.registerMdcLibrary=registerMdcLibrary;exports.toLowerCase=toLowerCase;exports.treeUtils=treeUtils;exports.u=u$1;exports.uriUtils=uriUtils;exports.x=x;exports.zoo=zoo;exports.zooy=zooy;
@@ -1,4 +1,4 @@
1
- "use strict";const u=require("./main-DHy75dVb.js");/**
1
+ "use strict";const u=require("./main-CZIPBRMI.js");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import { f as p, u as l } from "./main-BqOledN0.js";
1
+ import { f as p, u as l } from "./main-CXPn-jnk.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- import { l as J, e as Gt, t as me, C as Cn, m as vn } from "./main-BqOledN0.js";
1
+ import { l as J, e as Gt, t as me, C as Cn, m as vn } from "./main-CXPn-jnk.js";
2
2
  import { a as $e, b as Zt, c as E, d as h, e as P, f as Tn, g as yn } from "./tslib.es6-C5gLNDSD.js";
3
3
  /**
4
4
  * @license
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./main-DHy75dVb.js");var vt=r._curry2(function(e,n){return n==null||n!==n?e:n}),ht=r._curry3(function(e,n,s){return vt(e,r._path(n,s))}),ft=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}),B={},$;function bt(){return $||($=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})(B)),B}var St=bt();const Y=(t,e,n)=>{const s=customElements.get("cds-table"),o=customElements.get("cds-pagination"),c=customElements.get(s.selectorTableBatchActions);customElements.get("cds-popover");const i=e.dataBinder,a=e.pagination,d=e.skeleton,S=e.querySelector(s.selectorTableToolbarSearch),A=e.querySelector(s.selectorTableBatchActions),T=e.querySelector(s.selectorTableBody),M=["button","a","input","select","textarea",'[role="button"]',".cds--table-expand",".cds--table-column-checkbox"].join(","),U=e.querySelectorAll(s.selectorHeaderCell+"[is-sortable]"),tt=e.isSortable||U.length>0,W=Symbol(),R=Symbol(),D=new Map,et=l=>{t.listen(e,"click",u=>{const p=u.target.closest(s.selectorTableRow);if(!p||u.composedPath().some(v=>v.matches&&v.matches(M)))return;u.stopPropagation();const m=r.getSemanticAttributes(p);t.dispatchPanelEvent(l,{...m})})},nt=l=>{t.listen(e,s.eventExpandoToggle,u=>{const p=u.target,m=p.tagName==="CDS-TABLE-HEADER-ROW",v=u.detail.expanded,f=r.getSemanticAttributes(p),E={tableAttrs:n,...f,target:p,allRows:m,didExpand:v};t.dispatchPanelEvent(l,E)})},st=l=>{D.set(W,u=>{t.dispatchPanelEvent(l,u)})},ot=l=>{D.set(R,u=>{const p=u.detail.selectedRows,m=Math.min(p.length,A.totalRowsCount),v=u.target,f=r.getSemanticAttributes(v),E=p.map(r.getSemanticAttributes),P={tableAttrs:n,...f,target:v,selectCount:m,selection:E};t.dispatchPanelEvent(l,P)})},ct=l=>{t.listen(e,s.eventTableRowSelect,u=>{const p=u.target,m=u.detail.selectedRows||[],v=m.length,f=m.map(r.getSemanticAttributes),E=r.getSemanticAttributes(p),P={tableAttrs:n,...E,selectCount:v,selection:f,target:p};t.dispatchPanelEvent(l,P)})},it=()=>{t.listen(e,s.eventBeforeSort,l=>{const u=l.target,p=l.detail.oldSortDirection,m=l.detail.sortDirection,v=r.getSemanticAttributes(u),f=v.sortField,E=m===St.TABLE_SORT_DIRECTION.DESCENDING?`-${f}`:f;l.cancelBubble=!0,l.stopPropagation(),l.preventDefault(),T.innerHTML="",d&&d.show(),U.forEach((y,h)=>{y===u?(y.setAttribute("sort-active","true"),y.setAttribute("sort-direction",m)):(y.removeAttribute("sort-active"),y.setAttribute("sort-direction","none"))});const P={ordering:E};i.fetchData(P).then(()=>{a.setData(i),d&&d.hide()}),D.has(W)&&D.get(W)({tableAttrs:n,...v,sortNow:m,sortWas:p,sortField:f,ordering:E,target:u})})},rt=()=>{t.listen(e,s.eventTableRowSelectAll,l=>{l.detail.selectedRows.length===0&&e.querySelectorAll(s.selectorTableRow).forEach(u=>{u.disabled=!1,u.selected=!1}),D.has(R)&&D.get(R)(l)})},at=()=>{t.listen(e,s.eventBeforeChangeSelectionAll,l=>{l.stopPropagation(),l.detail.callback&&l.detail.callback()})},lt=l=>{const u=e.querySelector("cds-table-header-row");t.listen(l,c.eventClickSelectAll,p=>{p.stopPropagation(),u.dispatchEvent(new CustomEvent(s.eventBeforeChangeSelectionAll,{bubbles:!0,cancelable:!0,composed:!0,detail:{selected:!0,callback:()=>{l.selectedRowsCount=l.totalRowsCount,e.querySelectorAll(s.selectorTableRow).forEach(m=>{m.disabled=!0})}}}))})},dt=l=>{t.listen(l,"keydown",u=>{if(u.key==="Enter"){d&&d.show(),a.totalItems=0,e.querySelector("cds-table-body").replaceChildren();const m={search:l.value||"",offset:0};i.fetchData(m).then(()=>{a.setData(i),d&&d.hide()})}})},ut=l=>{t.listen(l,s.eventSearchInput,u=>{if((u.detail.value||"")===""){const m={search:"",offset:0};d&&d.show(),i.fetchData(m).then(()=>{d&&d.hide(),a.setData(i)})}})},pt=l=>{l.caret=!1;const u=l.querySelector("cds-icon-button, button:not([slot])"),p=l.querySelectorAll("cds-checkbox"),m=l.querySelectorAll("cds-modal-footer-button"),v=[...l.querySelectorAll("cds-checkbox-group")].map(r.getSemanticAttributes).map(ht("noop",["zoo","filter","field"])).reduce((h,b)=>(h[b]=null,h),{offset:0});if(!u||!m){console.error("Improperly configured Batch Filter popover");return}new MutationObserver(()=>{l.classList.toggle("cds--overflow-menu--open",l.open)}).observe(l,{attributes:!0,attributeFilter:["open"]});const f=Symbol(),E=Symbol(),P=[...m].reduce((h,b,C)=>(b.hasAttribute("reset-filter")&&h.set(f,b),b.hasAttribute("apply-filter")&&h.set(E,b),h),new Map),y=()=>{const h=new Map;return p.forEach(b=>{const C=b.getAttribute("id");if(!C||!C.includes(":"))return;const[O,N]=C.split(":");h.has(O)||h.set(O,[]),b.checked&&h.get(O).push(N)}),h};if(P.has(f)){const h=b=>b.checked=!1;t.listen(P.get(f),"click",b=>{b.stopPropagation(),p.forEach(h),d&&d.show(),i.fetchData(v).then(()=>{a&&a.setData(i),d&&d.hide(),l.open=!1})})}P.has(E)&&t.listen(P.get(E),"click",h=>{h.stopPropagation();const b=[...y()].reduce((C,[O,N])=>(C[O]=N===[]?null:N,C),{offset:0});d&&d.show(),i.fetchData(b).then(()=>{a&&a.setData(i),d&&d.hide(),l.open=!1})}),t.listen(u,"click",h=>{h.stopPropagation(),l.open=!l.open,l.classList.toggle("cds--overflow-menu--open",l.open)})},mt=()=>{t.listen(a,o.eventPageSizeChanged,l=>{const p={limit:a.pageSize,offset:0};i.fetchData(p).then(()=>{a.setData(i)})})},gt=()=>{let l=null;t.listen(a,o.eventChangeCurrent,u=>{const{page:p}=u.detail,m=a.pageSize,v=(p-1)*m;if(v!==l){l=v;const f={limit:m,offset:v};i.fetchData(f).then(()=>{a.setData(i),d&&d.hide()})}})};i&&a&&(mt(),gt()),i&&S&&(dt(S),ut(S));const H=e.querySelector(s.selectorTableToolbarContent);if(H){const l=H.querySelectorAll("cds-popover[data-batch-filter]");i&&l&&l.forEach(pt)}e.isSelectable&&(rt(),at(),A&&lt(A)),i&&tt&&it();const V={zoo:{event:{row:{click:et,expand:nt,check:{one:ct,all:ot}},column:{sort:st}}}};r.objToPaths(n).forEach(([l,u])=>{r.hasPath(l,V)&&r.path(l,V)(u)})},Et=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}=ft(["count"],n.data),o=Math.ceil(s/n.limit),c=100;e.pagesUnknown=o>c,e.totalItems=s,e.pagesUnknown?e.formatStatusWithIndeterminateTotal=({start:i,end:a})=>`${i}–${a} of ${s} item${s<=1?"":"s"}`:delete e.formatStatusWithIndeterminateTotal}},e},At=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,c=t.hasAttribute("zebra"),i=t.getAttribute("size"),a=document.createElement("cds-table-skeleton");a.showHeader=e||n,a.showToolbar=s,a.zebra=c,a.columnCount=o,a.size=i,a.show=()=>a.classList.remove("hidden"),a.hide=()=>a.classList.add("hidden");const d=document.createElement("div");return d.classList.add("zoo-datatable-skeleton-wrapper"),t.parentNode.insertBefore(d,t),d.appendChild(a),d.appendChild(t),a},Pt=(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}})},_t={selector:"cds-table",init:function(t){const e=r.getSemanticAttributes(t),n=this,s=Pt(n,t);if(r.isDefAndNotNull(s)){t.dataBinder=s;const o=At(t);t.skeleton=o;const c=Et(s);t.pagination=c,t.after(c),s.fetchData().then(i=>{o.hide(),c.setData(s),Y(n,t,e)})}else Y(n,t,e)}},It=Object.freeze(Object.defineProperty({__proto__:null,cdsTableWrap:_t},Symbol.toStringTag,{value:"Module"})),yt={selector:"cds-pagination",init:function(t){const e=this,n=customElements.get("cds-pagination");let s=null;e.listen(t,n.eventChangeCurrent,o=>{const c=o.detail.page,i=t.pageSize,a=(c-1)*i;a!==s&&(s=a,e.dispatchPanelEvent("pagination-changed-current",{detail:{page:c,pageSize:i,action:"page-change"}}))}),e.listen(t,n.eventPageSizeChanged,o=>{const c=t.pageSize;s=null,e.dispatchPanelEvent("pagination-changed-page-size",{detail:{page:1,pageSize:c,action:"page-size-change"}})})}},Ct=Object.freeze(Object.defineProperty({__proto__:null,cdsPaginationWrap:yt},Symbol.toStringTag,{value:"Module"})),Tt={selector:"cds-modal",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",i=>{this.dispatchPanelEvent(s,{...n,action:"opened"})});const o=t.getAttribute("before-close-event");o&&this.listen(t,e.eventBeforeClose,i=>{this.dispatchPanelEvent(o,{...n,action:"closing",cancelable:!0})}),this.listen(t,e.eventClose,i=>{this.dispatchPanelEvent("destroy_me",{...n,action:"closed",triggeredBy:i.detail?.triggeredBy})});const c=r.getEventAttribute(t,"primary-event","event");c&&this.listen(t,"cds-modal-primary-focus",i=>{this.dispatchPanelEvent(c,{...n,action:"primary"})})}},Dt={selector:"cds-modal-header"},Ot={selector:"cds-modal-heading"},Nt={selector:"cds-modal-label"},kt={selector:"cds-modal-close-button"},wt={selector:"cds-modal-body"},qt={selector:"cds-modal-body-content"},Mt={selector:"cds-modal-footer"},Wt={selector:"cds-modal-footer-button",init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let c=t.closest("form");if(!c){const i=t.getAttribute("form");i&&(c=document.getElementById(i))}c&&c.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,e)})}},Rt=Object.freeze(Object.defineProperty({__proto__:null,cdsModalBodyContentWrap:qt,cdsModalBodyWrap:wt,cdsModalCloseButWrap:kt,cdsModalFooterButWrap:Wt,cdsModalFooterWrap:Mt,cdsModalHeaderWrap:Dt,cdsModalHeadingWrap:Ot,cdsModalLabelWrap:Nt,cdsModalWrap:Tt},Symbol.toStringTag,{value:"Module"})),Bt={selector:"cds-menu",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 c=r.getSemanticAttributes(o.target),i=c.event||e.event;i&&(o.stopPropagation(),this.dispatchPanelEvent(i,{...e,...c}))}}),this.listen(t,"cds-item-changed",o=>{const c=o.detail.triggeredBy,i=r.getSemanticAttributes(c),a=i.event||e.event;a&&this.dispatchPanelEvent(a,{...e,...i,action:"selection-changed"})})}},zt={selector:"cds-menu-button",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),c=o.event||e.event;c&&(s.stopPropagation(),this.dispatchPanelEvent(c,{...e,...o}))}})}},jt=Object.freeze(Object.defineProperty({__proto__:null,cdsMenuButtonWrap:zt,cdsMenuWrap:Bt},Symbol.toStringTag,{value:"Module"})),xt={selector:"cds-button",init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let c=t.closest("form");if(!c){const i=t.getAttribute("form");i&&(c=document.getElementById(i))}c&&c.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,r.getSemanticAttributes(t))})}},Lt={selector:"cds-icon-button:not([data-toggle])",event:"click",getData:(t,e)=>e},Ft={selector:"cds-icon-button[data-toggle]",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})})}},Gt={selector:"cds-button[data-fab]",event:"click",getData:(t,e)=>e},Ut={selector:"cds-copy-button",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}}},Ht={selector:"cds-combo-button",init:function(t){const e=r.getSemanticAttributes(t);e.event&&this.listen(t,"click",s=>{const o=s.composedPath(),c=o.some(a=>a.tagName==="CDS-MENU-ITEM"),i=o.some(a=>a.tagName==="CDS-ICON-BUTTON");!c&&!i&&(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),c=o.event||r.getEventAttribute(t,"menu-event","event");c&&this.dispatchPanelEvent(c,{...e,...o,action:"menu-item"})}})}},Vt=Object.freeze(Object.defineProperty({__proto__:null,cdsButFabWrap:Gt,cdsButtonWrap:xt,cdsComboButWrap:Ht,cdsCopyButWrap:Ut,cdsIconButToggleWrap:Ft,cdsIconButWrap:Lt},Symbol.toStringTag,{value:"Module"})),$t={selector:"cds-dropdown",init:function(t){const e=customElements.get("cds-dropdown"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,c=>{this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:c.detail?.item?.value,selectedText:c.detail?.item?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,c=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Yt={selector:"cds-combo-box",init:function(t){const e=customElements.get("cds-combo-box"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,c=>{const i=c.detail?.item;this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:i?.value,selectedText:i?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,c=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Xt={selector:"cds-multi-select",init:function(t){const e=customElements.get("cds-multi-select"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,c=>{const i=t.value?t.value.split(","):[];this.dispatchPanelEvent(s,{...n,selectedItems:i})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,c=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Zt=Object.freeze(Object.defineProperty({__proto__:null,cdsComboBoxWrap:Yt,cdsDropdownWrap:$t,cdsMultiSelectWrap:Xt},Symbol.toStringTag,{value:"Module"})),Jt={selector:"cds-date-picker",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"]'),c=s&&o,i=n.event;i&&this.listen(t,e.eventChange,d=>{let S;c?S={from:s.value||"",to:o.value||""}:S=t.value,this.dispatchPanelEvent(i,{...n,value:S})});const a=t.getAttribute("error-event");a&&this.listen(t,e.eventFlatpickrError,d=>{this.dispatchPanelEvent(a,{...n,error:d.detail})})}},Kt={selector:"cds-time-picker",event:"cds-time-picker-changed",getData:(t,e,n)=>({...e,value:n.value})},Qt=Object.freeze(Object.defineProperty({__proto__:null,cdsDatePickerWrap:Jt,cdsTimePickerWrap:Kt},Symbol.toStringTag,{value:"Module"})),te={selector:"cds-file-uploader",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",c=>{this.dispatchPanelEvent(n,{...e,files:Array.from(c.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})})}},ee=Object.freeze(Object.defineProperty({__proto__:null,cdsFileUploaderWrap:te},Symbol.toStringTag,{value:"Module"})),ne={selector:"cds-tabs",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,c=>{this.dispatchPanelEvent(s,{...n,tabValue:c.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,c=>{const i=c.detail.item,a=r.getSemanticAttributes(i);this.dispatchPanelEvent(o,{...n,...a,tabValue:c.detail.value})})}},se={selector:"cds-accordion",init:function(t){const e=customElements.get("cds-accordion-item"),n=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-accordion-item")].forEach(o=>{const c=r.getSemanticAttributes(o),i=c.event||n.event;i&&this.listen(o,e.eventToggle,a=>{this.dispatchPanelEvent(i,{...n,...c,open:a.detail.open})})})}},oe={selector:"cds-content-switcher",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,c=>{this.dispatchPanelEvent(s,{...n,value:c.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,c=>{const i=c.detail.item,a=r.getSemanticAttributes(i);this.dispatchPanelEvent(o,{...n,...a,value:i.getAttribute("value")})})}},ce=Object.freeze(Object.defineProperty({__proto__:null,cdsAccordionWrap:se,cdsContentSwitcherWrap:oe,cdsTabsWrap:ne},Symbol.toStringTag,{value:"Module"})),ie={selector:"cds-breadcrumb-item"},re={selector:"cds-breadcrumb-link",event:"click",getData:(t,e,n)=>(t.preventDefault(),{...e,href:n.getAttribute("href")})},ae={selector:"cds-breadcrumb",init:function(t){const e=this,n=r.getSemanticAttributes(t),s=n.event;if(s){const o=i=>{e.dispatchPanelEvent(s,{...n,...i})};e.listen(t,"click",i=>{const a=i.target.closest("cds-breadcrumb-link");if(a){i.preventDefault(),i.stopPropagation();const d=r.getSemanticAttributes(a);o(d)}});const c=t.querySelector("cds-overflow-menu-body");c&&e.listen(c,"cds-overflow-menu-item-clicked",i=>{i.stopPropagation();const a=r.getSemanticAttributes(i.target);o(a)})}}},le=Object.freeze(Object.defineProperty({__proto__:null,cdsBreadCrumbWrap:ae,cdsBreadcrumbItemWrap:ie,cdsBreadcrumbLinkWrap:re},Symbol.toStringTag,{value:"Module"})),de={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})}]},ue={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})}]},pe={selector:"cds-number-input",event:"cds-number-input",getData:(t,e,n)=>({...e,value:t.detail.value,direction:t.detail.direction})},me={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})}]},ge={selector:"cds-search",event:"cds-search-input",getData:(t,e,n)=>({...e,value:n.value})},ve=Object.freeze(Object.defineProperty({__proto__:null,cdsNumberInputWrap:pe,cdsPasswordInputWrap:me,cdsSearchWrap:ge,cdsTextAreaWrap:ue,cdsTextInputWrap:de},Symbol.toStringTag,{value:"Module"})),he={selector:"cds-checkbox",event:"cds-checkbox-changed",getData:(t,e,n)=>({...e,checked:t.detail.checked,value:n.value})},fe={selector:"cds-radio-button-group",event:"cds-radio-button-group-changed",getData:(t,e)=>({...e,value:t.detail?.value})},be={selector:"cds-toggle",event:"cds-toggle-changed",getData:(t,e)=>({...e,isOn:t.detail.checked,value:t.detail.checked})},Se={selector:"cds-select",event:"cds-select-selected",getData:(t,e)=>({...e,value:t.detail.value})},Ee={selector:"cds-slider",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})})}},Ae=Object.freeze(Object.defineProperty({__proto__:null,cdsCheckboxWrap:he,cdsRadioButGroupWrap:fe,cdsSelectWrap:Se,cdsSliderWrap:Ee,cdsToggleWrap:be},Symbol.toStringTag,{value:"Module"})),Pe={selector:"cds-tag",event:"click",getData:(t,e)=>e},_e={selector:"cds-dismissible-tag",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"})})}},Ie={selector:"cds-filter-tag",event:"cds-filter-tag-closed",getData:(t,e)=>({...e,action:"remove"})},ye=Object.freeze(Object.defineProperty({__proto__:null,cdsFilterTagWrap:Ie,cdsSDismissibleTagWrap:_e,cdsTagsWrap:Pe},Symbol.toStringTag,{value:"Module"})),Ce={selector:"cds-overflow-menu",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 c=r.getSemanticAttributes(o.target);this.dispatchPanelEvent(n,{...e,...c})})}},Te={selector:"cds-structured-list",init:function(t){const e=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-structured-list-row")].forEach(s=>{const o=r.getSemanticAttributes(s),c=o.event||e.event;c&&this.listen(s,"click",i=>{i.stopPropagation(),this.dispatchPanelEvent(c,{...e,...o})})}),t.hasAttribute("selection")&&this.listen(t,"cds-structured-list-selected",s=>{const o=s.detail.row,c=r.getSemanticAttributes(o),i=e.event;i&&this.dispatchPanelEvent(i,{...e,...c})})}},De={selector:"cds-tree-view",init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-tree-node-selected",s=>{const o=s.detail.node,c=r.getSemanticAttributes(o),i=c.event||e.event;i&&this.dispatchPanelEvent(i,{...e,...c,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})})}},Oe=Object.freeze(Object.defineProperty({__proto__:null,cdsOverflowMenuWrap:Ce,cdsStructuredListWrap:Te,cdsTreeViewWrap:De},Symbol.toStringTag,{value:"Module"})),Ne={selector:"cds-toast-notification",event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},ke={selector:"cds-inline-notification",event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},we={selector:"cds-actionable-notification",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"})})}},qe=Object.freeze(Object.defineProperty({__proto__:null,cdsActionableNotificationWrap:we,cdsInlineNotificationWrap:ke,cdsToastNotificationWrap:Ne},Symbol.toStringTag,{value:"Module"})),Me={selector:"cds-clickable-tile",event:"click",getData:(t,e)=>({...e,href:t.currentTarget.getAttribute("href")})},We={selector:"cds-expandable-tile",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})})}},Re={selector:"cds-selectable-tile",event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},Be={selector:"cds-radio-tile",event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},ze=Object.freeze(Object.defineProperty({__proto__:null,cdsClickableTileWrap:Me,cdsExpandableTileWrap:We,cdsRadioTileWrap:Be,cdsSelectableTileWrap:Re},Symbol.toStringTag,{value:"Module"})),je={selector:"cds-progress-bar",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}}},xe={selector:"cds-progress-indicator",init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-progress-step-click",n=>{const s=n.target,o=r.getSemanticAttributes(s),c=o.event||e.event;c&&this.dispatchPanelEvent(c,{...e,...o,stepIndex:s.getAttribute("data-index"),stepLabel:s.getAttribute("label")})})}},Le={selector:"cds-inline-loading",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(c=>{c.forEach(i=>{if(i.attributeName==="status"){const a=t.getAttribute("status");this.dispatchPanelEvent(s,{...e,status:a})}})});o.observe(t,{attributes:!0,attributeFilter:["status"]}),t._statusObserver=o}}},Fe=Object.freeze(Object.defineProperty({__proto__:null,cdsInlineLoadingWrap:Le,cdsProgressBarWrap:je,cdsProgressIndicatorWrap:xe},Symbol.toStringTag,{value:"Module"})),Ge={selector:"cds-tooltip",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"})})}},Ue={selector:"cds-popover",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"})})}},He={selector:"cds-toggletip",init:function(t){const e=r.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(s=>{s.forEach(o=>{if(o.attributeName==="open"){const c=t.hasAttribute("open");this.dispatchPanelEvent(e.event,{...e,action:c?"opened":"closed",open:c})}})});n.observe(t,{attributes:!0,attributeFilter:["open"]}),t._toggletipObserver=n}}},Ve=Object.freeze(Object.defineProperty({__proto__:null,cdsPopoverWrap:Ue,cdsToggletipWrap:He,cdsTooltipWrap:Ge},Symbol.toStringTag,{value:"Module"})),$e={selector:"cds-link",event:"click",getData:(t,e,n)=>({...e,href:n.getAttribute("href")})},Ye={selector:"cds-code-snippet",event:"cds-copy-button-clicked",getData:(t,e)=>({...e,action:"copied"})},Xe=Object.freeze(Object.defineProperty({__proto__:null,cdsCodeSnipWrap:Ye,cdsLinkWrap:$e},Symbol.toStringTag,{value:"Module"})),Ze={selector:"cds-form"},Je={selector:"cds-form-item"},Ke={selector:"cds-form-group"},Qe={selector:"cds-stack"},tn={selector:"cds-heading"},en={selector:"cds-icon"},nn={selector:"cds-icon-indicator"},sn={selector:"cds-badge-indicator"},on={selector:"cds-loading"},cn={selector:"cds-skeleton-text"},rn={selector:"cds-skeleton-placeholder"},an=Object.freeze(Object.defineProperty({__proto__:null,cdsBadgeIndicatorWrap:sn,cdsFormGroupWrap:Ke,cdsFormItemWrap:Je,cdsFormWrap:Ze,cdsHeadingWrap:tn,cdsIconIndicatorWrap:nn,cdsIconWrap:en,cdsLoadingWrap:on,cdsSkeletonPlaceholderWrap:rn,cdsSkeletonTextWrap:cn,cdsStackWrap:Qe},Symbol.toStringTag,{value:"Module"}));function g(t){return Object.values(t).filter(e=>typeof e=="object"&&e!==null&&e.selector)}const ln=[...g(Ct),...g(It),...g(Rt),...g(jt),...g(Vt),...g(Zt),...g(Qt),...g(ee),...g(ce),...g(le),...g(ve),...g(Ae),...g(ye),...g(Oe),...g(qe),...g(ze),...g(Fe),...g(Ve),...g(Xe),...g(an)];function dn(){const t=new Map;return ln.forEach(e=>{t.set(e.selector,e)}),t}const un=()=>Promise.resolve().then(()=>require("./index-DKJCj-0F.js")),z=()=>Promise.resolve().then(()=>require("./index-DYtqDqPL.js")),pn=()=>Promise.resolve().then(()=>require("./index-C0JKLTdV.js")),mn=()=>Promise.resolve().then(()=>require("./index-Bz-sh-N4.js")),k=()=>Promise.resolve().then(()=>require("./index-DScZj-56.js")),gn=()=>Promise.resolve().then(()=>require("./index-Cit60IYk.js")),vn=()=>Promise.resolve().then(()=>require("./index-pT9YwIX-.js")).then(t=>t.index),hn=()=>Promise.resolve().then(()=>require("./index-DKOcsQER.js")),fn=()=>Promise.resolve().then(()=>require("./index-CNQHUhaQ.js")),X=()=>Promise.resolve().then(()=>require("./index-DqWolj0i.js")),bn=()=>Promise.resolve().then(()=>require("./index-XY3TWQ_7.js")),j=()=>Promise.resolve().then(()=>require("./index-BX1au7I9.js")),Z=()=>Promise.resolve().then(()=>require("./index-Cy5Gs96d.js")).then(t=>t.index),Sn=()=>Promise.resolve().then(()=>require("./index-C9adbF3V.js")),En=()=>Promise.resolve().then(()=>require("./index-CwXwz8dA.js")),An=()=>Promise.resolve().then(()=>require("./index-LSL0pD4U.js")),Pn=()=>Promise.resolve().then(()=>require("./index-B-OulI8n.js")),_n=()=>Promise.resolve().then(()=>require("./index-CZi-f4G4.js")),x=()=>Promise.resolve().then(()=>require("./index-ByxUjlpc.js")),In=()=>Promise.resolve().then(()=>require("./index-Bv0Kq6vx.js")),L=()=>Promise.resolve().then(()=>require("./index-DRYB8Q2c.js")),yn=()=>Promise.resolve().then(()=>require("./index-o7Ly8WNV.js")),Cn=()=>Promise.resolve().then(()=>require("./index-C6YhnCuw.js")),Tn=()=>Promise.resolve().then(()=>require("./index-CDpK5GU3.js")),J=()=>Promise.resolve().then(()=>require("./index-Cdk8HqBZ.js")),Dn=()=>Promise.resolve().then(()=>require("./index-CyeWQ9VJ.js")),On=()=>Promise.resolve().then(()=>require("./index-BsVpu7Ej.js")),Nn=()=>Promise.resolve().then(()=>require("./index-Smwc4F8-.js")),kn=()=>Promise.resolve().then(()=>require("./index-yIVEgAA_.js")),wn=()=>Promise.resolve().then(()=>require("./index-BERUsrwS.js")),qn=()=>Promise.resolve().then(()=>require("./index-BfiLUJJ3.js")),K=()=>Promise.resolve().then(()=>require("./index-D-20UbuG.js")),Mn=()=>Promise.resolve().then(()=>require("./index-DLt6oTR3.js")),Wn=()=>Promise.resolve().then(()=>require("./index-D5_-tX11.js")),Q=()=>Promise.resolve().then(()=>require("./index-B4O0_8IT.js")),Rn=()=>Promise.resolve().then(()=>require("./index-UDUbB14y.js")),F=()=>Promise.resolve().then(()=>require("./index-CQY3cMqQ.js")),Bn=()=>Promise.resolve().then(()=>require("./index-Bb8PCTuf.js")),G=()=>Promise.resolve().then(()=>require("./index-CvnLooVH.js")),zn=()=>Promise.resolve().then(()=>require("./index-BpfNVIsW.js")).then(t=>t.index),jn=()=>Promise.resolve().then(()=>require("./index-ePccMpcM.js")),xn=()=>Promise.resolve().then(()=>require("./index-DW24dyDr.js")),Ln=()=>Promise.resolve().then(()=>require("./index-D1xYcspc.js")),Fn=()=>Promise.resolve().then(()=>require("./index-D2Z_PWuf.js")),Gn=()=>Promise.resolve().then(()=>require("./index-CCOIDxIB.js")).then(t=>t.index),_=()=>Promise.resolve().then(()=>require("./index-BftJaPKS.js")),I=()=>Promise.resolve().then(()=>require("./index-C6nmbFvI.js")),Un=()=>Promise.resolve().then(()=>require("./index-CW3NpEbP.js")).then(t=>t.index),Hn=()=>Promise.resolve().then(()=>require("./index-1OOPg4-d.js")),Vn=()=>Promise.resolve().then(()=>require("./index-BmMr-B9I.js")),$n=()=>Promise.resolve().then(()=>require("./index-BugJTHwJ.js")),Yn=()=>Promise.resolve().then(()=>require("./index-BlfAhx-m.js")),q={"cds-table":[I,j,L,J,x,Q,Wn],"cds-pagination":[x,L,Q],"cds-button":[I,j],"cds-icon-button:not([data-toggle])":[I,Z],"cds-icon-button[data-toggle]":[I,Z],"cds-button[data-fab]":[I,j],"cds-copy-button":[I,En],"cds-combo-button":[I,Sn],"cds-checkbox":[An],"cds-radio-button-group":[Pn],"cds-toggle":[_n],"cds-select":[x],"cds-slider":[In],"cds-text-input":[L],"cds-textarea":[yn],"cds-number-input":[Cn],"cds-password-input":[I,Tn],"cds-search":[J],"cds-dropdown":[On],"cds-combo-box":[Dn],"cds-multi-select":[Nn],"cds-date-picker":[kn],"cds-time-picker":[wn],"cds-file-uploader":[qn],"cds-tabs":[hn],"cds-accordion":[un],"cds-content-switcher":[fn],"cds-breadcrumb":[z],"cds-breadcrumb-item":[z],"cds-breadcrumb-link":[z],"cds-menu":[X],"cds-menu-button":[X],"cds-overflow-menu":[bn],"cds-structured-list":[mn],"cds-tree-view":[gn],"cds-modal":[_],"cds-modal-header":[_],"cds-modal-heading":[_],"cds-modal-label":[_],"cds-modal-close-button":[_],"cds-modal-body":[_],"cds-modal-body-content":[_],"cds-modal-footer":[_],"cds-modal-footer-button":[_],"cds-toast-notification":[G],"cds-inline-notification":[G],"cds-actionable-notification":[G],"cds-clickable-tile":[k],"cds-expandable-tile":[k],"cds-selectable-tile":[k],"cds-radio-tile":[k],"cds-progress-bar":[xn],"cds-progress-indicator":[Ln],"cds-inline-loading":[jn],"cds-tooltip":[I],"cds-popover":[Un],"cds-toggletip":[Hn],"cds-tag":[F],"cds-dismissible-tag":[F],"cds-filter-tag":[F],"cds-link":[vn],"cds-code-snippet":[Rn],"cds-form":[K],"cds-form-item":[K],"cds-form-group":[Mn],"cds-stack":[pn],"cds-heading":[Vn],"cds-icon":[$n],"cds-icon-indicator":[Yn],"cds-badge-indicator":[Bn],"cds-loading":[zn],"cds-skeleton-text":[Gn],"cds-skeleton-placeholder":[Fn]};function Xn(t){const e=new Map;if(!t||!(t instanceof Element))return e;for(const s of Object.keys(w))e.set(s,[]);for(const[s,o]of Object.entries(w))t.matches(s)&&e.get(s).push(t);const n=t.querySelectorAll("*");for(const s of n)for(const[o,c]of Object.entries(w))s.matches(o)&&e.get(o).push(s);for(const[s,o]of e.entries())o.length===0&&e.delete(s);return e}function Zn(t){const e=new Set;for(const[n,s]of t.entries())s.length>0&&q[n]&&q[n].forEach(c=>e.add(c));return e}async function Jn(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 Kn(t,e){let n=0;for(const[s,o]of t.entries()){const c=w[s];o.forEach(i=>{if(c.init){c.init.call(e,i);return}if(c.multiEvent){const S=r.getSemanticAttributes(i);c.events.forEach(A=>{const T=r.getEventAttribute(i,A.attrName,"event");T&&e.listen(i,A.type,M=>{e.dispatchPanelEvent(T,A.getData(M,S,i))})});return}const a=r.getSemanticAttributes(i),d=a.event;d&&e.listen(i,c.event,S=>{S.stopPropagation();const A=c.getData(S,a,i),T=A._eventOverride||d;delete A._eventOverride,e.dispatchPanelEvent(T,A)})}),n+=o.length}return n}const w={...Object.fromEntries(dn())},Qn=async function(t,e){const n=Xn(t);if(n.size===0){this.debugMe("[Carbon] No Carbon components found in panel");return}this.carbonComponents||(this.carbonComponents=new Map);for(const[c,i]of n.entries())this.carbonComponents.set(c,i);const s=Zn(n);if(s.size>0)try{await Jn(s,e)}catch(c){console.error("[Carbon] Failed to load some component modules:",c)}const o=Kn(n,this);o>0&&this.debugMe(`[Carbon] Total components initialized: ${o}`)},ts=(t={})=>{const{preload:e=[]}=t;if(e.length>0){const n=e.filter(o=>q[o]?!0:(console.warn(`[Carbon] No import found for selector: ${o}`),!1)),s=n.flatMap(o=>q[o].map(c=>c()));Promise.all(s).then(()=>console.debug(`[Carbon] Preloaded: ${n.join(", ")}`)).catch(o=>console.warn("[Carbon] Preload error:",o))}r.ComponentLibraryRegistry.register("carbon",{render:async function(n,s){try{await Qn.call(this,n,s)}catch(o){console.error("[Carbon] Initialization error:",o)}},dispose:function(n){},config:{version:"2.0",description:"IBM Carbon Design System Web Components"}}),console.debug("[Zooy] Carbon Design System library registered")};exports.registerCarbonLibrary=ts;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./main-CZIPBRMI.js");var vt=r._curry2(function(e,n){return n==null||n!==n?e:n}),ht=r._curry3(function(e,n,s){return vt(e,r._path(n,s))}),ft=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}),B={},$;function bt(){return $||($=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})(B)),B}var St=bt();const Y=(t,e,n)=>{const s=customElements.get("cds-table"),o=customElements.get("cds-pagination"),c=customElements.get(s.selectorTableBatchActions);customElements.get("cds-popover");const i=e.dataBinder,a=e.pagination,d=e.skeleton,S=e.querySelector(s.selectorTableToolbarSearch),A=e.querySelector(s.selectorTableBatchActions),T=e.querySelector(s.selectorTableBody),M=["button","a","input","select","textarea",'[role="button"]',".cds--table-expand",".cds--table-column-checkbox"].join(","),U=e.querySelectorAll(s.selectorHeaderCell+"[is-sortable]"),tt=e.isSortable||U.length>0,W=Symbol(),R=Symbol(),D=new Map,et=l=>{t.listen(e,"click",u=>{const p=u.target.closest(s.selectorTableRow);if(!p||u.composedPath().some(v=>v.matches&&v.matches(M)))return;u.stopPropagation();const m=r.getSemanticAttributes(p);t.dispatchPanelEvent(l,{...m})})},nt=l=>{t.listen(e,s.eventExpandoToggle,u=>{const p=u.target,m=p.tagName==="CDS-TABLE-HEADER-ROW",v=u.detail.expanded,f=r.getSemanticAttributes(p),E={tableAttrs:n,...f,target:p,allRows:m,didExpand:v};t.dispatchPanelEvent(l,E)})},st=l=>{D.set(W,u=>{t.dispatchPanelEvent(l,u)})},ot=l=>{D.set(R,u=>{const p=u.detail.selectedRows,m=Math.min(p.length,A.totalRowsCount),v=u.target,f=r.getSemanticAttributes(v),E=p.map(r.getSemanticAttributes),P={tableAttrs:n,...f,target:v,selectCount:m,selection:E};t.dispatchPanelEvent(l,P)})},ct=l=>{t.listen(e,s.eventTableRowSelect,u=>{const p=u.target,m=u.detail.selectedRows||[],v=m.length,f=m.map(r.getSemanticAttributes),E=r.getSemanticAttributes(p),P={tableAttrs:n,...E,selectCount:v,selection:f,target:p};t.dispatchPanelEvent(l,P)})},it=()=>{t.listen(e,s.eventBeforeSort,l=>{const u=l.target,p=l.detail.oldSortDirection,m=l.detail.sortDirection,v=r.getSemanticAttributes(u),f=v.sortField,E=m===St.TABLE_SORT_DIRECTION.DESCENDING?`-${f}`:f;l.cancelBubble=!0,l.stopPropagation(),l.preventDefault(),T.innerHTML="",d&&d.show(),U.forEach((y,h)=>{y===u?(y.setAttribute("sort-active","true"),y.setAttribute("sort-direction",m)):(y.removeAttribute("sort-active"),y.setAttribute("sort-direction","none"))});const P={ordering:E};i.fetchData(P).then(()=>{a.setData(i),d&&d.hide()}),D.has(W)&&D.get(W)({tableAttrs:n,...v,sortNow:m,sortWas:p,sortField:f,ordering:E,target:u})})},rt=()=>{t.listen(e,s.eventTableRowSelectAll,l=>{l.detail.selectedRows.length===0&&e.querySelectorAll(s.selectorTableRow).forEach(u=>{u.disabled=!1,u.selected=!1}),D.has(R)&&D.get(R)(l)})},at=()=>{t.listen(e,s.eventBeforeChangeSelectionAll,l=>{l.stopPropagation(),l.detail.callback&&l.detail.callback()})},lt=l=>{const u=e.querySelector("cds-table-header-row");t.listen(l,c.eventClickSelectAll,p=>{p.stopPropagation(),u.dispatchEvent(new CustomEvent(s.eventBeforeChangeSelectionAll,{bubbles:!0,cancelable:!0,composed:!0,detail:{selected:!0,callback:()=>{l.selectedRowsCount=l.totalRowsCount,e.querySelectorAll(s.selectorTableRow).forEach(m=>{m.disabled=!0})}}}))})},dt=l=>{t.listen(l,"keydown",u=>{if(u.key==="Enter"){d&&d.show(),a.totalItems=0,e.querySelector("cds-table-body").replaceChildren();const m={search:l.value||"",offset:0};i.fetchData(m).then(()=>{a.setData(i),d&&d.hide()})}})},ut=l=>{t.listen(l,s.eventSearchInput,u=>{if((u.detail.value||"")===""){const m={search:"",offset:0};d&&d.show(),i.fetchData(m).then(()=>{d&&d.hide(),a.setData(i)})}})},pt=l=>{l.caret=!1;const u=l.querySelector("cds-icon-button, button:not([slot])"),p=l.querySelectorAll("cds-checkbox"),m=l.querySelectorAll("cds-modal-footer-button"),v=[...l.querySelectorAll("cds-checkbox-group")].map(r.getSemanticAttributes).map(ht("noop",["zoo","filter","field"])).reduce((h,b)=>(h[b]=null,h),{offset:0});if(!u||!m){console.error("Improperly configured Batch Filter popover");return}new MutationObserver(()=>{l.classList.toggle("cds--overflow-menu--open",l.open)}).observe(l,{attributes:!0,attributeFilter:["open"]});const f=Symbol(),E=Symbol(),P=[...m].reduce((h,b,C)=>(b.hasAttribute("reset-filter")&&h.set(f,b),b.hasAttribute("apply-filter")&&h.set(E,b),h),new Map),y=()=>{const h=new Map;return p.forEach(b=>{const C=b.getAttribute("id");if(!C||!C.includes(":"))return;const[O,N]=C.split(":");h.has(O)||h.set(O,[]),b.checked&&h.get(O).push(N)}),h};if(P.has(f)){const h=b=>b.checked=!1;t.listen(P.get(f),"click",b=>{b.stopPropagation(),p.forEach(h),d&&d.show(),i.fetchData(v).then(()=>{a&&a.setData(i),d&&d.hide(),l.open=!1})})}P.has(E)&&t.listen(P.get(E),"click",h=>{h.stopPropagation();const b=[...y()].reduce((C,[O,N])=>(C[O]=N===[]?null:N,C),{offset:0});d&&d.show(),i.fetchData(b).then(()=>{a&&a.setData(i),d&&d.hide(),l.open=!1})}),t.listen(u,"click",h=>{h.stopPropagation(),l.open=!l.open,l.classList.toggle("cds--overflow-menu--open",l.open)})},mt=()=>{t.listen(a,o.eventPageSizeChanged,l=>{const p={limit:a.pageSize,offset:0};i.fetchData(p).then(()=>{a.setData(i)})})},gt=()=>{let l=null;t.listen(a,o.eventChangeCurrent,u=>{const{page:p}=u.detail,m=a.pageSize,v=(p-1)*m;if(v!==l){l=v;const f={limit:m,offset:v};i.fetchData(f).then(()=>{a.setData(i),d&&d.hide()})}})};i&&a&&(mt(),gt()),i&&S&&(dt(S),ut(S));const H=e.querySelector(s.selectorTableToolbarContent);if(H){const l=H.querySelectorAll("cds-popover[data-batch-filter]");i&&l&&l.forEach(pt)}e.isSelectable&&(rt(),at(),A&&lt(A)),i&&tt&&it();const V={zoo:{event:{row:{click:et,expand:nt,check:{one:ct,all:ot}},column:{sort:st}}}};r.objToPaths(n).forEach(([l,u])=>{r.hasPath(l,V)&&r.path(l,V)(u)})},Et=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}=ft(["count"],n.data),o=Math.ceil(s/n.limit),c=100;e.pagesUnknown=o>c,e.totalItems=s,e.pagesUnknown?e.formatStatusWithIndeterminateTotal=({start:i,end:a})=>`${i}–${a} of ${s} item${s<=1?"":"s"}`:delete e.formatStatusWithIndeterminateTotal}},e},At=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,c=t.hasAttribute("zebra"),i=t.getAttribute("size"),a=document.createElement("cds-table-skeleton");a.showHeader=e||n,a.showToolbar=s,a.zebra=c,a.columnCount=o,a.size=i,a.show=()=>a.classList.remove("hidden"),a.hide=()=>a.classList.add("hidden");const d=document.createElement("div");return d.classList.add("zoo-datatable-skeleton-wrapper"),t.parentNode.insertBefore(d,t),d.appendChild(a),d.appendChild(t),a},Pt=(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}})},_t={selector:"cds-table",init:function(t){const e=r.getSemanticAttributes(t),n=this,s=Pt(n,t);if(r.isDefAndNotNull(s)){t.dataBinder=s;const o=At(t);t.skeleton=o;const c=Et(s);t.pagination=c,t.after(c),s.fetchData().then(i=>{o.hide(),c.setData(s),Y(n,t,e)})}else Y(n,t,e)}},It=Object.freeze(Object.defineProperty({__proto__:null,cdsTableWrap:_t},Symbol.toStringTag,{value:"Module"})),yt={selector:"cds-pagination",init:function(t){const e=this,n=customElements.get("cds-pagination");let s=null;e.listen(t,n.eventChangeCurrent,o=>{const c=o.detail.page,i=t.pageSize,a=(c-1)*i;a!==s&&(s=a,e.dispatchPanelEvent("pagination-changed-current",{detail:{page:c,pageSize:i,action:"page-change"}}))}),e.listen(t,n.eventPageSizeChanged,o=>{const c=t.pageSize;s=null,e.dispatchPanelEvent("pagination-changed-page-size",{detail:{page:1,pageSize:c,action:"page-size-change"}})})}},Ct=Object.freeze(Object.defineProperty({__proto__:null,cdsPaginationWrap:yt},Symbol.toStringTag,{value:"Module"})),Tt={selector:"cds-modal",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",i=>{this.dispatchPanelEvent(s,{...n,action:"opened"})});const o=t.getAttribute("before-close-event");o&&this.listen(t,e.eventBeforeClose,i=>{this.dispatchPanelEvent(o,{...n,action:"closing",cancelable:!0})}),this.listen(t,e.eventClose,i=>{this.dispatchPanelEvent("destroy_me",{...n,action:"closed",triggeredBy:i.detail?.triggeredBy})});const c=r.getEventAttribute(t,"primary-event","event");c&&this.listen(t,"cds-modal-primary-focus",i=>{this.dispatchPanelEvent(c,{...n,action:"primary"})})}},Dt={selector:"cds-modal-header"},Ot={selector:"cds-modal-heading"},Nt={selector:"cds-modal-label"},kt={selector:"cds-modal-close-button"},wt={selector:"cds-modal-body"},qt={selector:"cds-modal-body-content"},Mt={selector:"cds-modal-footer"},Wt={selector:"cds-modal-footer-button",init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let c=t.closest("form");if(!c){const i=t.getAttribute("form");i&&(c=document.getElementById(i))}c&&c.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,e)})}},Rt=Object.freeze(Object.defineProperty({__proto__:null,cdsModalBodyContentWrap:qt,cdsModalBodyWrap:wt,cdsModalCloseButWrap:kt,cdsModalFooterButWrap:Wt,cdsModalFooterWrap:Mt,cdsModalHeaderWrap:Dt,cdsModalHeadingWrap:Ot,cdsModalLabelWrap:Nt,cdsModalWrap:Tt},Symbol.toStringTag,{value:"Module"})),Bt={selector:"cds-menu",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 c=r.getSemanticAttributes(o.target),i=c.event||e.event;i&&(o.stopPropagation(),this.dispatchPanelEvent(i,{...e,...c}))}}),this.listen(t,"cds-item-changed",o=>{const c=o.detail.triggeredBy,i=r.getSemanticAttributes(c),a=i.event||e.event;a&&this.dispatchPanelEvent(a,{...e,...i,action:"selection-changed"})})}},zt={selector:"cds-menu-button",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),c=o.event||e.event;c&&(s.stopPropagation(),this.dispatchPanelEvent(c,{...e,...o}))}})}},jt=Object.freeze(Object.defineProperty({__proto__:null,cdsMenuButtonWrap:zt,cdsMenuWrap:Bt},Symbol.toStringTag,{value:"Module"})),xt={selector:"cds-button",init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let c=t.closest("form");if(!c){const i=t.getAttribute("form");i&&(c=document.getElementById(i))}c&&c.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,r.getSemanticAttributes(t))})}},Lt={selector:"cds-icon-button:not([data-toggle])",event:"click",getData:(t,e)=>e},Ft={selector:"cds-icon-button[data-toggle]",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})})}},Gt={selector:"cds-button[data-fab]",event:"click",getData:(t,e)=>e},Ut={selector:"cds-copy-button",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}}},Ht={selector:"cds-combo-button",init:function(t){const e=r.getSemanticAttributes(t);e.event&&this.listen(t,"click",s=>{const o=s.composedPath(),c=o.some(a=>a.tagName==="CDS-MENU-ITEM"),i=o.some(a=>a.tagName==="CDS-ICON-BUTTON");!c&&!i&&(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),c=o.event||r.getEventAttribute(t,"menu-event","event");c&&this.dispatchPanelEvent(c,{...e,...o,action:"menu-item"})}})}},Vt=Object.freeze(Object.defineProperty({__proto__:null,cdsButFabWrap:Gt,cdsButtonWrap:xt,cdsComboButWrap:Ht,cdsCopyButWrap:Ut,cdsIconButToggleWrap:Ft,cdsIconButWrap:Lt},Symbol.toStringTag,{value:"Module"})),$t={selector:"cds-dropdown",init:function(t){const e=customElements.get("cds-dropdown"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,c=>{this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:c.detail?.item?.value,selectedText:c.detail?.item?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,c=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Yt={selector:"cds-combo-box",init:function(t){const e=customElements.get("cds-combo-box"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,c=>{const i=c.detail?.item;this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:i?.value,selectedText:i?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,c=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Xt={selector:"cds-multi-select",init:function(t){const e=customElements.get("cds-multi-select"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,c=>{const i=t.value?t.value.split(","):[];this.dispatchPanelEvent(s,{...n,selectedItems:i})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,c=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Zt=Object.freeze(Object.defineProperty({__proto__:null,cdsComboBoxWrap:Yt,cdsDropdownWrap:$t,cdsMultiSelectWrap:Xt},Symbol.toStringTag,{value:"Module"})),Jt={selector:"cds-date-picker",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"]'),c=s&&o,i=n.event;i&&this.listen(t,e.eventChange,d=>{let S;c?S={from:s.value||"",to:o.value||""}:S=t.value,this.dispatchPanelEvent(i,{...n,value:S})});const a=t.getAttribute("error-event");a&&this.listen(t,e.eventFlatpickrError,d=>{this.dispatchPanelEvent(a,{...n,error:d.detail})})}},Kt={selector:"cds-time-picker",event:"cds-time-picker-changed",getData:(t,e,n)=>({...e,value:n.value})},Qt=Object.freeze(Object.defineProperty({__proto__:null,cdsDatePickerWrap:Jt,cdsTimePickerWrap:Kt},Symbol.toStringTag,{value:"Module"})),te={selector:"cds-file-uploader",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",c=>{this.dispatchPanelEvent(n,{...e,files:Array.from(c.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})})}},ee=Object.freeze(Object.defineProperty({__proto__:null,cdsFileUploaderWrap:te},Symbol.toStringTag,{value:"Module"})),ne={selector:"cds-tabs",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,c=>{this.dispatchPanelEvent(s,{...n,tabValue:c.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,c=>{const i=c.detail.item,a=r.getSemanticAttributes(i);this.dispatchPanelEvent(o,{...n,...a,tabValue:c.detail.value})})}},se={selector:"cds-accordion",init:function(t){const e=customElements.get("cds-accordion-item"),n=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-accordion-item")].forEach(o=>{const c=r.getSemanticAttributes(o),i=c.event||n.event;i&&this.listen(o,e.eventToggle,a=>{this.dispatchPanelEvent(i,{...n,...c,open:a.detail.open})})})}},oe={selector:"cds-content-switcher",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,c=>{this.dispatchPanelEvent(s,{...n,value:c.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,c=>{const i=c.detail.item,a=r.getSemanticAttributes(i);this.dispatchPanelEvent(o,{...n,...a,value:i.getAttribute("value")})})}},ce=Object.freeze(Object.defineProperty({__proto__:null,cdsAccordionWrap:se,cdsContentSwitcherWrap:oe,cdsTabsWrap:ne},Symbol.toStringTag,{value:"Module"})),ie={selector:"cds-breadcrumb-item"},re={selector:"cds-breadcrumb-link",event:"click",getData:(t,e,n)=>(t.preventDefault(),{...e,href:n.getAttribute("href")})},ae={selector:"cds-breadcrumb",init:function(t){const e=this,n=r.getSemanticAttributes(t),s=n.event;if(s){const o=i=>{e.dispatchPanelEvent(s,{...n,...i})};e.listen(t,"click",i=>{const a=i.target.closest("cds-breadcrumb-link");if(a){i.preventDefault(),i.stopPropagation();const d=r.getSemanticAttributes(a);o(d)}});const c=t.querySelector("cds-overflow-menu-body");c&&e.listen(c,"cds-overflow-menu-item-clicked",i=>{i.stopPropagation();const a=r.getSemanticAttributes(i.target);o(a)})}}},le=Object.freeze(Object.defineProperty({__proto__:null,cdsBreadCrumbWrap:ae,cdsBreadcrumbItemWrap:ie,cdsBreadcrumbLinkWrap:re},Symbol.toStringTag,{value:"Module"})),de={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})}]},ue={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})}]},pe={selector:"cds-number-input",event:"cds-number-input",getData:(t,e,n)=>({...e,value:t.detail.value,direction:t.detail.direction})},me={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})}]},ge={selector:"cds-search",event:"cds-search-input",getData:(t,e,n)=>({...e,value:n.value})},ve=Object.freeze(Object.defineProperty({__proto__:null,cdsNumberInputWrap:pe,cdsPasswordInputWrap:me,cdsSearchWrap:ge,cdsTextAreaWrap:ue,cdsTextInputWrap:de},Symbol.toStringTag,{value:"Module"})),he={selector:"cds-checkbox",event:"cds-checkbox-changed",getData:(t,e,n)=>({...e,checked:t.detail.checked,value:n.value})},fe={selector:"cds-radio-button-group",event:"cds-radio-button-group-changed",getData:(t,e)=>({...e,value:t.detail?.value})},be={selector:"cds-toggle",event:"cds-toggle-changed",getData:(t,e)=>({...e,isOn:t.detail.checked,value:t.detail.checked})},Se={selector:"cds-select",event:"cds-select-selected",getData:(t,e)=>({...e,value:t.detail.value})},Ee={selector:"cds-slider",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})})}},Ae=Object.freeze(Object.defineProperty({__proto__:null,cdsCheckboxWrap:he,cdsRadioButGroupWrap:fe,cdsSelectWrap:Se,cdsSliderWrap:Ee,cdsToggleWrap:be},Symbol.toStringTag,{value:"Module"})),Pe={selector:"cds-tag",event:"click",getData:(t,e)=>e},_e={selector:"cds-dismissible-tag",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"})})}},Ie={selector:"cds-filter-tag",event:"cds-filter-tag-closed",getData:(t,e)=>({...e,action:"remove"})},ye=Object.freeze(Object.defineProperty({__proto__:null,cdsFilterTagWrap:Ie,cdsSDismissibleTagWrap:_e,cdsTagsWrap:Pe},Symbol.toStringTag,{value:"Module"})),Ce={selector:"cds-overflow-menu",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 c=r.getSemanticAttributes(o.target);this.dispatchPanelEvent(n,{...e,...c})})}},Te={selector:"cds-structured-list",init:function(t){const e=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-structured-list-row")].forEach(s=>{const o=r.getSemanticAttributes(s),c=o.event||e.event;c&&this.listen(s,"click",i=>{i.stopPropagation(),this.dispatchPanelEvent(c,{...e,...o})})}),t.hasAttribute("selection")&&this.listen(t,"cds-structured-list-selected",s=>{const o=s.detail.row,c=r.getSemanticAttributes(o),i=e.event;i&&this.dispatchPanelEvent(i,{...e,...c})})}},De={selector:"cds-tree-view",init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-tree-node-selected",s=>{const o=s.detail.node,c=r.getSemanticAttributes(o),i=c.event||e.event;i&&this.dispatchPanelEvent(i,{...e,...c,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})})}},Oe=Object.freeze(Object.defineProperty({__proto__:null,cdsOverflowMenuWrap:Ce,cdsStructuredListWrap:Te,cdsTreeViewWrap:De},Symbol.toStringTag,{value:"Module"})),Ne={selector:"cds-toast-notification",event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},ke={selector:"cds-inline-notification",event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},we={selector:"cds-actionable-notification",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"})})}},qe=Object.freeze(Object.defineProperty({__proto__:null,cdsActionableNotificationWrap:we,cdsInlineNotificationWrap:ke,cdsToastNotificationWrap:Ne},Symbol.toStringTag,{value:"Module"})),Me={selector:"cds-clickable-tile",event:"click",getData:(t,e)=>({...e,href:t.currentTarget.getAttribute("href")})},We={selector:"cds-expandable-tile",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})})}},Re={selector:"cds-selectable-tile",event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},Be={selector:"cds-radio-tile",event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},ze=Object.freeze(Object.defineProperty({__proto__:null,cdsClickableTileWrap:Me,cdsExpandableTileWrap:We,cdsRadioTileWrap:Be,cdsSelectableTileWrap:Re},Symbol.toStringTag,{value:"Module"})),je={selector:"cds-progress-bar",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}}},xe={selector:"cds-progress-indicator",init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-progress-step-click",n=>{const s=n.target,o=r.getSemanticAttributes(s),c=o.event||e.event;c&&this.dispatchPanelEvent(c,{...e,...o,stepIndex:s.getAttribute("data-index"),stepLabel:s.getAttribute("label")})})}},Le={selector:"cds-inline-loading",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(c=>{c.forEach(i=>{if(i.attributeName==="status"){const a=t.getAttribute("status");this.dispatchPanelEvent(s,{...e,status:a})}})});o.observe(t,{attributes:!0,attributeFilter:["status"]}),t._statusObserver=o}}},Fe=Object.freeze(Object.defineProperty({__proto__:null,cdsInlineLoadingWrap:Le,cdsProgressBarWrap:je,cdsProgressIndicatorWrap:xe},Symbol.toStringTag,{value:"Module"})),Ge={selector:"cds-tooltip",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"})})}},Ue={selector:"cds-popover",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"})})}},He={selector:"cds-toggletip",init:function(t){const e=r.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(s=>{s.forEach(o=>{if(o.attributeName==="open"){const c=t.hasAttribute("open");this.dispatchPanelEvent(e.event,{...e,action:c?"opened":"closed",open:c})}})});n.observe(t,{attributes:!0,attributeFilter:["open"]}),t._toggletipObserver=n}}},Ve=Object.freeze(Object.defineProperty({__proto__:null,cdsPopoverWrap:Ue,cdsToggletipWrap:He,cdsTooltipWrap:Ge},Symbol.toStringTag,{value:"Module"})),$e={selector:"cds-link",event:"click",getData:(t,e,n)=>({...e,href:n.getAttribute("href")})},Ye={selector:"cds-code-snippet",event:"cds-copy-button-clicked",getData:(t,e)=>({...e,action:"copied"})},Xe=Object.freeze(Object.defineProperty({__proto__:null,cdsCodeSnipWrap:Ye,cdsLinkWrap:$e},Symbol.toStringTag,{value:"Module"})),Ze={selector:"cds-form"},Je={selector:"cds-form-item"},Ke={selector:"cds-form-group"},Qe={selector:"cds-stack"},tn={selector:"cds-heading"},en={selector:"cds-icon"},nn={selector:"cds-icon-indicator"},sn={selector:"cds-badge-indicator"},on={selector:"cds-loading"},cn={selector:"cds-skeleton-text"},rn={selector:"cds-skeleton-placeholder"},an=Object.freeze(Object.defineProperty({__proto__:null,cdsBadgeIndicatorWrap:sn,cdsFormGroupWrap:Ke,cdsFormItemWrap:Je,cdsFormWrap:Ze,cdsHeadingWrap:tn,cdsIconIndicatorWrap:nn,cdsIconWrap:en,cdsLoadingWrap:on,cdsSkeletonPlaceholderWrap:rn,cdsSkeletonTextWrap:cn,cdsStackWrap:Qe},Symbol.toStringTag,{value:"Module"}));function g(t){return Object.values(t).filter(e=>typeof e=="object"&&e!==null&&e.selector)}const ln=[...g(Ct),...g(It),...g(Rt),...g(jt),...g(Vt),...g(Zt),...g(Qt),...g(ee),...g(ce),...g(le),...g(ve),...g(Ae),...g(ye),...g(Oe),...g(qe),...g(ze),...g(Fe),...g(Ve),...g(Xe),...g(an)];function dn(){const t=new Map;return ln.forEach(e=>{t.set(e.selector,e)}),t}const un=()=>Promise.resolve().then(()=>require("./index-Cid77wr3.js")),z=()=>Promise.resolve().then(()=>require("./index-BefBe_sK.js")),pn=()=>Promise.resolve().then(()=>require("./index-CZQ45Dj9.js")),mn=()=>Promise.resolve().then(()=>require("./index-QOHPo0v8.js")),k=()=>Promise.resolve().then(()=>require("./index-DIWoAC3Z.js")),gn=()=>Promise.resolve().then(()=>require("./index-BnOH6_4r.js")),vn=()=>Promise.resolve().then(()=>require("./index-DLwGUJd2.js")).then(t=>t.index),hn=()=>Promise.resolve().then(()=>require("./index-UIEjSWhu.js")),fn=()=>Promise.resolve().then(()=>require("./index-DhPg7DCD.js")),X=()=>Promise.resolve().then(()=>require("./index-HTZtnvAV.js")),bn=()=>Promise.resolve().then(()=>require("./index-C8IUL9KS.js")),j=()=>Promise.resolve().then(()=>require("./index-5uuGFlSc.js")),Z=()=>Promise.resolve().then(()=>require("./index-DDKqKtU4.js")).then(t=>t.index),Sn=()=>Promise.resolve().then(()=>require("./index-C99Nf_aK.js")),En=()=>Promise.resolve().then(()=>require("./index-BEAD73rD.js")),An=()=>Promise.resolve().then(()=>require("./index-DgI4_4yz.js")),Pn=()=>Promise.resolve().then(()=>require("./index-BtFYirUg.js")),_n=()=>Promise.resolve().then(()=>require("./index-CSH8oUIN.js")),x=()=>Promise.resolve().then(()=>require("./index-FAwjNd-C.js")),In=()=>Promise.resolve().then(()=>require("./index-lOiJBnZe.js")),L=()=>Promise.resolve().then(()=>require("./index-24ucriY6.js")),yn=()=>Promise.resolve().then(()=>require("./index-DUiT0Yz_.js")),Cn=()=>Promise.resolve().then(()=>require("./index-BtHVJn7K.js")),Tn=()=>Promise.resolve().then(()=>require("./index-Dj-7w7wt.js")),J=()=>Promise.resolve().then(()=>require("./index-Cf3ALdZ-.js")),Dn=()=>Promise.resolve().then(()=>require("./index-azaqRvif.js")),On=()=>Promise.resolve().then(()=>require("./index-D7GY2E-B.js")),Nn=()=>Promise.resolve().then(()=>require("./index-BWqDKfds.js")),kn=()=>Promise.resolve().then(()=>require("./index-BaVSzIan.js")),wn=()=>Promise.resolve().then(()=>require("./index-B-qA_3dy.js")),qn=()=>Promise.resolve().then(()=>require("./index-DOfvb1f6.js")),K=()=>Promise.resolve().then(()=>require("./index-BLxE94Et.js")),Mn=()=>Promise.resolve().then(()=>require("./index-CDaECc1q.js")),Wn=()=>Promise.resolve().then(()=>require("./index-TnoTOPwm.js")),Q=()=>Promise.resolve().then(()=>require("./index-WQ40q6Fp.js")),Rn=()=>Promise.resolve().then(()=>require("./index-BL_Y57_H.js")),F=()=>Promise.resolve().then(()=>require("./index-CmXHpydu.js")),Bn=()=>Promise.resolve().then(()=>require("./index-DQoGlgyI.js")),G=()=>Promise.resolve().then(()=>require("./index-C5DwYOee.js")),zn=()=>Promise.resolve().then(()=>require("./index-JmiGhJR9.js")).then(t=>t.index),jn=()=>Promise.resolve().then(()=>require("./index-Bu7ZAHDG.js")),xn=()=>Promise.resolve().then(()=>require("./index-D6Eg6Zh4.js")),Ln=()=>Promise.resolve().then(()=>require("./index-C89rc2i5.js")),Fn=()=>Promise.resolve().then(()=>require("./index-DHksIe-y.js")),Gn=()=>Promise.resolve().then(()=>require("./index-CTB8Esah.js")).then(t=>t.index),_=()=>Promise.resolve().then(()=>require("./index-CQ1zfW-Z.js")),I=()=>Promise.resolve().then(()=>require("./index-BJNdKx6x.js")),Un=()=>Promise.resolve().then(()=>require("./index-CR6HxSEn.js")).then(t=>t.index),Hn=()=>Promise.resolve().then(()=>require("./index-C5euLddc.js")),Vn=()=>Promise.resolve().then(()=>require("./index-ByQl0Dwz.js")),$n=()=>Promise.resolve().then(()=>require("./index-dT_yGOFJ.js")),Yn=()=>Promise.resolve().then(()=>require("./index-DR8UmItB.js")),q={"cds-table":[I,j,L,J,x,Q,Wn],"cds-pagination":[x,L,Q],"cds-button":[I,j],"cds-icon-button:not([data-toggle])":[I,Z],"cds-icon-button[data-toggle]":[I,Z],"cds-button[data-fab]":[I,j],"cds-copy-button":[I,En],"cds-combo-button":[I,Sn],"cds-checkbox":[An],"cds-radio-button-group":[Pn],"cds-toggle":[_n],"cds-select":[x],"cds-slider":[In],"cds-text-input":[L],"cds-textarea":[yn],"cds-number-input":[Cn],"cds-password-input":[I,Tn],"cds-search":[J],"cds-dropdown":[On],"cds-combo-box":[Dn],"cds-multi-select":[Nn],"cds-date-picker":[kn],"cds-time-picker":[wn],"cds-file-uploader":[qn],"cds-tabs":[hn],"cds-accordion":[un],"cds-content-switcher":[fn],"cds-breadcrumb":[z],"cds-breadcrumb-item":[z],"cds-breadcrumb-link":[z],"cds-menu":[X],"cds-menu-button":[X],"cds-overflow-menu":[bn],"cds-structured-list":[mn],"cds-tree-view":[gn],"cds-modal":[_],"cds-modal-header":[_],"cds-modal-heading":[_],"cds-modal-label":[_],"cds-modal-close-button":[_],"cds-modal-body":[_],"cds-modal-body-content":[_],"cds-modal-footer":[_],"cds-modal-footer-button":[_],"cds-toast-notification":[G],"cds-inline-notification":[G],"cds-actionable-notification":[G],"cds-clickable-tile":[k],"cds-expandable-tile":[k],"cds-selectable-tile":[k],"cds-radio-tile":[k],"cds-progress-bar":[xn],"cds-progress-indicator":[Ln],"cds-inline-loading":[jn],"cds-tooltip":[I],"cds-popover":[Un],"cds-toggletip":[Hn],"cds-tag":[F],"cds-dismissible-tag":[F],"cds-filter-tag":[F],"cds-link":[vn],"cds-code-snippet":[Rn],"cds-form":[K],"cds-form-item":[K],"cds-form-group":[Mn],"cds-stack":[pn],"cds-heading":[Vn],"cds-icon":[$n],"cds-icon-indicator":[Yn],"cds-badge-indicator":[Bn],"cds-loading":[zn],"cds-skeleton-text":[Gn],"cds-skeleton-placeholder":[Fn]};function Xn(t){const e=new Map;if(!t||!(t instanceof Element))return e;for(const s of Object.keys(w))e.set(s,[]);for(const[s,o]of Object.entries(w))t.matches(s)&&e.get(s).push(t);const n=t.querySelectorAll("*");for(const s of n)for(const[o,c]of Object.entries(w))s.matches(o)&&e.get(o).push(s);for(const[s,o]of e.entries())o.length===0&&e.delete(s);return e}function Zn(t){const e=new Set;for(const[n,s]of t.entries())s.length>0&&q[n]&&q[n].forEach(c=>e.add(c));return e}async function Jn(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 Kn(t,e){let n=0;for(const[s,o]of t.entries()){const c=w[s];o.forEach(i=>{if(c.init){c.init.call(e,i);return}if(c.multiEvent){const S=r.getSemanticAttributes(i);c.events.forEach(A=>{const T=r.getEventAttribute(i,A.attrName,"event");T&&e.listen(i,A.type,M=>{e.dispatchPanelEvent(T,A.getData(M,S,i))})});return}const a=r.getSemanticAttributes(i),d=a.event;d&&e.listen(i,c.event,S=>{S.stopPropagation();const A=c.getData(S,a,i),T=A._eventOverride||d;delete A._eventOverride,e.dispatchPanelEvent(T,A)})}),n+=o.length}return n}const w={...Object.fromEntries(dn())},Qn=async function(t,e){const n=Xn(t);if(n.size===0){this.debugMe("[Carbon] No Carbon components found in panel");return}this.carbonComponents||(this.carbonComponents=new Map);for(const[c,i]of n.entries())this.carbonComponents.set(c,i);const s=Zn(n);if(s.size>0)try{await Jn(s,e)}catch(c){console.error("[Carbon] Failed to load some component modules:",c)}const o=Kn(n,this);o>0&&this.debugMe(`[Carbon] Total components initialized: ${o}`)},ts=(t={})=>{const{preload:e=[]}=t;if(e.length>0){const n=e.filter(o=>q[o]?!0:(console.warn(`[Carbon] No import found for selector: ${o}`),!1)),s=n.flatMap(o=>q[o].map(c=>c()));Promise.all(s).then(()=>console.debug(`[Carbon] Preloaded: ${n.join(", ")}`)).catch(o=>console.warn("[Carbon] Preload error:",o))}r.ComponentLibraryRegistry.register("carbon",{render:async function(n,s){try{await Qn.call(this,n,s)}catch(o){console.error("[Carbon] Initialization error:",o)}},dispose:function(n){},config:{version:"2.0",description:"IBM Carbon Design System Web Components"}}),console.debug("[Zooy] Carbon Design System library registered")};exports.registerCarbonLibrary=ts;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./main-DHy75dVb.js"),l=require("./tslib.es6-B07k2eac.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./main-CZIPBRMI.js"),l=require("./tslib.es6-B07k2eac.js");/**
2
2
  * @license
3
3
  * Copyright 2016 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { _ as et, c as vt, d as bt, g as l, e as Et, h as St, o as _t, j as It, p as yt, k as E, C as Pt } from "./main-BqOledN0.js";
1
+ import { _ as et, c as vt, d as bt, g as l, e as Et, h as St, o as _t, j as It, p as yt, k as E, C as Pt } from "./main-CXPn-jnk.js";
2
2
  var Ct = /* @__PURE__ */ et(function(e, n) {
3
3
  return n == null || n !== n ? e : n;
4
4
  }), At = /* @__PURE__ */ vt(function(e, n, o) {
@@ -1461,7 +1461,7 @@ function Sn() {
1461
1461
  t.set(e.selector, e);
1462
1462
  }), t;
1463
1463
  }
1464
- const _n = () => import("./index-DEH3Oujh.js"), x = () => import("./index-BwpbR54Z.js"), In = () => import("./index-D2B2bs5k.js"), yn = () => import("./index-1eFOI8oe.js"), w = () => import("./index-DdzuoIsX.js"), Pn = () => import("./index-TelAKDy3.js"), Cn = () => import("./index-Dcs-4ouA.js").then((t) => t.i), An = () => import("./index-BIWPmvxN.js"), Tn = () => import("./index-DjLSW4tB.js"), Z = () => import("./index-DYmmXHAT.js"), Dn = () => import("./index-BoIS4S70.js"), L = () => import("./index-jRYYdv4C.js"), J = () => import("./index-DvbDUmZp.js").then((t) => t.i), kn = () => import("./index-DayFRhmw.js"), Nn = () => import("./index-DRsjyMRL.js"), On = () => import("./index-DrRc4GOh.js"), wn = () => import("./index-CYLJDFiF.js"), Mn = () => import("./index-CVH7Hv6v.js"), F = () => import("./index-CbKeQETj.js"), Wn = () => import("./index-DxlTsgQ8.js"), q = () => import("./index-f2QnoTe2.js"), Rn = () => import("./index-CyHAdAxX.js"), Bn = () => import("./index-Cm3Uqia6.js"), zn = () => import("./index-s53NHb2d.js"), K = () => import("./index-DhwMNjJj.js"), jn = () => import("./index-DbT4fJLV.js"), xn = () => import("./index-CuuD-d5b.js"), Ln = () => import("./index-B_Lmpm35.js"), Fn = () => import("./index-DU7E0qo4.js"), qn = () => import("./index-CRvczclO.js"), Gn = () => import("./index-B7CvW1Hr.js"), Q = () => import("./index-C2Q5YPz1.js"), Un = () => import("./index-DVTOmcgu.js"), Hn = () => import("./index-ScGZvs71.js"), tt = () => import("./index-B4L1iU-L.js"), Vn = () => import("./index-ChbKcl-Z.js"), G = () => import("./index-DFzKxIGc.js"), $n = () => import("./index-BXPG0d_k.js"), U = () => import("./index-CVqAaFaO.js"), Yn = () => import("./index-ZmTVduMY.js").then((t) => t.i), Xn = () => import("./index-UfSJPzl_.js"), Zn = () => import("./index-DD3tbFs9.js"), Jn = () => import("./index-Do0fzNBP.js"), Kn = () => import("./index-m978pani.js"), Qn = () => import("./index-DW9xYANG.js").then((t) => t.i), P = () => import("./index-BJ0SBIwX.js"), C = () => import("./index-BeQ7ZTCw.js"), to = () => import("./index-C7bz1V4O.js").then((t) => t.i), eo = () => import("./index-DQhfyFM4.js"), no = () => import("./index-CuZwN_ME.js"), oo = () => import("./index-BATw38c7.js"), so = () => import("./index-Bx5tyF27.js"), W = {
1464
+ const _n = () => import("./index-Ds3e0NlH.js"), x = () => import("./index-CL8Un64Y.js"), In = () => import("./index-BekoThXC.js"), yn = () => import("./index-C2r3MkpB.js"), w = () => import("./index-LVNWqV95.js"), Pn = () => import("./index-DbPU3mfX.js"), Cn = () => import("./index-Cc-HBEN2.js").then((t) => t.i), An = () => import("./index-C2-pFkgT.js"), Tn = () => import("./index-DMIKb9St.js"), Z = () => import("./index-a_56_OA-.js"), Dn = () => import("./index-CyTN35KA.js"), L = () => import("./index-BVDZj6Fh.js"), J = () => import("./index-DpCo2duE.js").then((t) => t.i), kn = () => import("./index-DqLDehu6.js"), Nn = () => import("./index-ClBPGpC0.js"), On = () => import("./index-BL8xz2V4.js"), wn = () => import("./index-B2dVOGmx.js"), Mn = () => import("./index-B0PkuE0I.js"), F = () => import("./index-CvxrJ8vE.js"), Wn = () => import("./index-DLa-KLg_.js"), q = () => import("./index-BatQ1Mfz.js"), Rn = () => import("./index-DI-PunST.js"), Bn = () => import("./index-z2pAR1iR.js"), zn = () => import("./index-JUJu4Jsu.js"), K = () => import("./index-BEyeMcZh.js"), jn = () => import("./index-DjSdHUmw.js"), xn = () => import("./index-DLWyvZrE.js"), Ln = () => import("./index-CXSCYGFC.js"), Fn = () => import("./index-BP0bDhTG.js"), qn = () => import("./index-DsKNYemW.js"), Gn = () => import("./index-BrtdLKIG.js"), Q = () => import("./index-DCqxl0e0.js"), Un = () => import("./index-K3aE8_a_.js"), Hn = () => import("./index-DW1p-hc-.js"), tt = () => import("./index-BUXzbqzT.js"), Vn = () => import("./index-D3hwHwSn.js"), G = () => import("./index-CX6f-3xD.js"), $n = () => import("./index-C-PAoN2Y.js"), U = () => import("./index-CsaKV6jI.js"), Yn = () => import("./index-NduNWecG.js").then((t) => t.i), Xn = () => import("./index-CIeU44CB.js"), Zn = () => import("./index-B-VOos8Q.js"), Jn = () => import("./index-DwGKd66A.js"), Kn = () => import("./index-BxRbUwdY.js"), Qn = () => import("./index-Bnfa6YBY.js").then((t) => t.i), P = () => import("./index-B1QlHHpn.js"), C = () => import("./index-BJ3okuBC.js"), to = () => import("./index-vkfOeAd5.js").then((t) => t.i), eo = () => import("./index-ACUVets3.js"), no = () => import("./index-kjtnf5Y1.js"), oo = () => import("./index-sl9jQQX-.js"), so = () => import("./index-Cy6EogCp.js"), W = {
1465
1465
  // Tables & Pagination
1466
1466
  "cds-table": [C, L, q, K, F, tt, Hn],
1467
1467
  "cds-pagination": [F, q, tt],