@trintel/zooy 1.0.16 → 1.0.20

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 (394) hide show
  1. package/dist/chunks/16-B2HVhDIW.js +1 -0
  2. package/dist/chunks/{16-Drl9-5Gn.js → 16-B9Ad4Fob.js} +2 -4
  3. package/dist/chunks/{16-CqC9427V.js → 16-BXsOcjPx.js} +2 -4
  4. package/dist/chunks/16-BZCBqUx6.js +1 -0
  5. package/dist/chunks/16-BmOXGjZf.js +1 -0
  6. package/dist/chunks/{16-BTonF5Je.js → 16-BsQdCz_w.js} +2 -4
  7. package/dist/chunks/16-C-Rp3Nso.js +1 -0
  8. package/dist/chunks/{16-BiShwKPX.js → 16-C36sVk5F.js} +2 -4
  9. package/dist/chunks/16-CZycT1I8.js +1 -0
  10. package/dist/chunks/16-Ce_hDgPW.js +1 -0
  11. package/dist/chunks/{16-CSWwhDUY.js → 16-CinLDpNC.js} +2 -4
  12. package/dist/chunks/16-Cj0hOjaI.js +1 -0
  13. package/dist/chunks/{16-8pr5mbIO.js → 16-Cx-PCMJJ.js} +2 -4
  14. package/dist/chunks/16-D8XFc44J.js +110 -0
  15. package/dist/chunks/16-DVx7Niko.js +33 -0
  16. package/dist/chunks/16-DZJZDJYY.js +1 -0
  17. package/dist/chunks/{16-BFJN6B6d.js → 16-DoCnqtvj.js} +4 -8
  18. package/dist/chunks/{16-CDRTWf-C.js → 16-DyCV3lkl.js} +2 -4
  19. package/dist/chunks/{16-D3Ol0pdg.js → 16-SwMpxJpB.js} +2 -4
  20. package/dist/chunks/16-jVjxC8Bu.js +1 -0
  21. package/dist/chunks/16-ma2Q_204.js +1 -0
  22. package/dist/chunks/16-qZ3FOIw0.js +1 -0
  23. package/dist/chunks/{20-CQLnFcRb.js → 20-BwzzGcZC.js} +27 -31
  24. package/dist/chunks/20-CqNSki3g.js +1 -0
  25. package/dist/chunks/accordion-0mybViUv.js +236 -0
  26. package/dist/chunks/accordion-CvcaulG8.js +45 -0
  27. package/dist/chunks/badge-indicator-BUdDkz6Z.js +18 -0
  28. package/dist/chunks/badge-indicator-DuYbJV5o.js +1 -0
  29. package/dist/chunks/breadcrumb-CYKgjbdB.js +19 -0
  30. package/dist/chunks/breadcrumb-DB0PkiBX.js +140 -0
  31. package/dist/chunks/button-1g5b3tWS.js +268 -0
  32. package/dist/chunks/button-BKj8189A.js +4 -0
  33. package/dist/chunks/button-DAOoyQ8b.js +67 -0
  34. package/dist/chunks/button-DfRkC-OR.js +72 -0
  35. package/dist/chunks/button-skeleton-C0mW3D7v.js +44 -0
  36. package/dist/chunks/button-skeleton-KFGdwtUH.js +21 -0
  37. package/dist/chunks/carbon-element-BsPGNbmz.js +1 -0
  38. package/dist/chunks/{carbon-element-DzDuXiyl.js → carbon-element-Z5iEnFdr.js} +4 -5
  39. package/dist/chunks/checkbox-CBD8Qmjx.js +37 -0
  40. package/dist/chunks/checkbox-CewERWBu.js +40 -0
  41. package/dist/chunks/checkbox-CxxD4wgP.js +176 -0
  42. package/dist/chunks/checkbox-DKS7fw29.js +168 -0
  43. package/dist/chunks/class-map-BwUbMyhc.js +1 -0
  44. package/dist/chunks/{class-map-CgGieoOz.js → class-map-qeLb1IA_.js} +5 -10
  45. package/dist/chunks/code-snippet-BJhK27fG.js +205 -0
  46. package/dist/chunks/code-snippet-BUQFh_v7.js +53 -0
  47. package/dist/chunks/collection-helpers-DPVzwwb8.js +7 -0
  48. package/dist/chunks/collection-helpers-g7DrZSRQ.js +1 -0
  49. package/dist/chunks/combo-box-BCOUQHyG.js +39 -0
  50. package/dist/chunks/combo-box-Bms5blM6.js +325 -0
  51. package/dist/chunks/combo-button-BSBAvBIW.js +15 -0
  52. package/dist/chunks/combo-button-Bc3hx7VJ.js +92 -0
  53. package/dist/chunks/component-library-registry-CJ1Yb_8E.js +98 -0
  54. package/dist/chunks/component-library-registry-Co7WzTfw.js +1 -0
  55. package/dist/chunks/content-switcher-BuLZ3Aae.js +1 -0
  56. package/dist/chunks/content-switcher-DIODRHwc.js +2 -0
  57. package/dist/chunks/content-switcher-item-0YPDXW1z.js +27 -0
  58. package/dist/chunks/content-switcher-item-DkRD8k8n.js +272 -0
  59. package/dist/chunks/copy-button-XD4reiTK.js +121 -0
  60. package/dist/chunks/copy-button-eI9B8iKc.js +17 -0
  61. package/dist/chunks/data-table-BImLEoIA.js +1243 -0
  62. package/dist/chunks/data-table-YLNCQhJx.js +158 -0
  63. package/dist/chunks/date-picker-CWIAwkKj.js +66 -0
  64. package/dist/chunks/date-picker-CXjiOkZH.js +2167 -0
  65. package/dist/chunks/{settings-Bgpv8zuU.js → decorate-Cnz2C5jL.js} +2 -2
  66. package/dist/chunks/{settings-jvP7vP60.js → decorate-DT052P_1.js} +9 -3
  67. package/dist/chunks/decorators-CHZSYVOk.js +1 -0
  68. package/dist/chunks/decorators-CK8kfuyw.js +87 -0
  69. package/dist/chunks/deep-shadow-contains-BlQ_KSu4.js +15 -0
  70. package/dist/chunks/deep-shadow-contains-OTuAt1VE.js +1 -0
  71. package/dist/chunks/directive-CtTB8jL3.js +31 -0
  72. package/dist/chunks/directive-DWoJrOxt.js +1 -0
  73. package/dist/chunks/dropdown-Cg9JduA5.js +4 -0
  74. package/dist/chunks/dropdown-item-CYwutWei.js +677 -0
  75. package/dist/chunks/dropdown-item-H53zayYk.js +73 -0
  76. package/dist/chunks/dropdown-jdFaaXEa.js +32 -0
  77. package/dist/chunks/file-uploader-6FOP_GAh.js +79 -0
  78. package/dist/chunks/file-uploader-BTk1MqcJ.js +342 -0
  79. package/dist/chunks/floating-controller-BphaSUPY.js +1012 -0
  80. package/dist/chunks/floating-controller-C4ivnNvp.js +1 -0
  81. package/dist/chunks/focus-C1mbe9-i.js +1 -0
  82. package/dist/chunks/focus-Dpis0wA_.js +13 -0
  83. package/dist/chunks/{form-DpI-v6DA.js → form-BEmId1-D.js} +6 -6
  84. package/dist/chunks/form-BmSVyKnm.js +1 -0
  85. package/dist/chunks/form-DUzcwJO9.js +23 -0
  86. package/dist/chunks/form-crnrWPVH.js +3 -0
  87. package/dist/chunks/form-group-Dax3eYD4.js +43 -0
  88. package/dist/chunks/form-group-dIvuqjw2.js +12 -0
  89. package/dist/chunks/{index-kjtnf5Y1.js → heading-BbB6mvMG.js} +24 -43
  90. package/dist/chunks/heading-UN9MO1TN.js +5 -0
  91. package/dist/chunks/host-listener-BBI7oAFw.js +37 -0
  92. package/dist/chunks/host-listener-BzjpIsFF.js +1 -0
  93. package/dist/chunks/host-listener-CtA1D-wt.js +1 -0
  94. package/dist/chunks/host-listener-DJEakRMM.js +17 -0
  95. package/dist/chunks/icon-B_S1_kDJ.js +1 -0
  96. package/dist/chunks/icon-CINf5Icb.js +28 -0
  97. package/dist/chunks/icon-button-BtE0-oCE.js +1 -0
  98. package/dist/chunks/icon-button-CACU21y5.js +16 -0
  99. package/dist/chunks/icon-button-D2STrB4d.js +6 -0
  100. package/dist/chunks/icon-button-D569kvcZ.js +84 -0
  101. package/dist/chunks/icon-indicator-BkILzP5o.js +1 -0
  102. package/dist/chunks/icon-indicator-D_IHkSon.js +445 -0
  103. package/dist/chunks/icon-loader-B9uu2SkP.js +7 -0
  104. package/dist/chunks/icon-loader-CZ8MQjNl.js +1 -0
  105. package/dist/chunks/{icon-loader-utils-DSajrZop.js → icon-loader-utils-BKulYpY6.js} +35 -42
  106. package/dist/chunks/icon-loader-utils-C-vWa1iy.js +1 -0
  107. package/dist/chunks/if-defined-C4rY5CqG.js +1 -0
  108. package/dist/chunks/if-defined-DvPh-nZx.js +5 -0
  109. package/dist/chunks/if-non-empty-CqihXhSU.js +1 -0
  110. package/dist/chunks/if-non-empty-DIcT03Pc.js +5 -0
  111. package/dist/chunks/inline-loading-BIB-coVZ.js +83 -0
  112. package/dist/chunks/inline-loading-C4MpPNzv.js +12 -0
  113. package/dist/chunks/link-Bz8knkhr.js +1 -0
  114. package/dist/chunks/link-CyrOt3Yx.js +24 -0
  115. package/dist/chunks/link-DlDoN1r0.js +1 -0
  116. package/dist/chunks/link-MrslkhR7.js +106 -0
  117. package/dist/chunks/lit-BNk7ncU9.js +3 -0
  118. package/dist/chunks/lit-uyM4-HrV.js +552 -0
  119. package/dist/chunks/loading-CUUY8ITP.js +68 -0
  120. package/dist/chunks/loading-CX_B-YYv.js +1 -0
  121. package/dist/chunks/loading-SDDHeWof.js +1 -0
  122. package/dist/chunks/loading-icon-BsInpAjb.js +16 -0
  123. package/dist/chunks/loading-icon-iCI-C5ZG.js +24 -0
  124. package/dist/chunks/loading-xKooWNUJ.js +2 -0
  125. package/dist/chunks/menu-D2kFhclQ.js +56 -0
  126. package/dist/chunks/menu-DG7s9yXJ.js +682 -0
  127. package/dist/chunks/modal-C2EEHjQh.js +27 -0
  128. package/dist/chunks/modal-DEGWE2iT.js +414 -0
  129. package/dist/chunks/multi-select-BXST526m.js +63 -0
  130. package/dist/chunks/multi-select-CgDCOBWa.js +384 -0
  131. package/dist/chunks/notification-BEvb6zBP.js +89 -0
  132. package/dist/chunks/notification-DLOgEfr6.js +426 -0
  133. package/dist/chunks/number-input-CRIgLD3k.js +284 -0
  134. package/dist/chunks/number-input-CiXkIGVz.js +76 -0
  135. package/dist/chunks/on-D2_IwJad.js +8 -0
  136. package/dist/chunks/on-_BJL2XbM.js +1 -0
  137. package/dist/chunks/overflow-menu-BSMy7pUY.js +34 -0
  138. package/dist/chunks/overflow-menu-CGghH3Mz.js +387 -0
  139. package/dist/chunks/pagination-4SuGaSx6.js +77 -0
  140. package/dist/chunks/pagination-D7VFRyN2.js +293 -0
  141. package/dist/chunks/password-input-Cx2ItLqG.js +68 -0
  142. package/dist/chunks/password-input-NoZg_DjL.js +210 -0
  143. package/dist/chunks/popover--wvkgqdv.js +1 -0
  144. package/dist/chunks/popover-Ca4f4ZCE.js +6 -0
  145. package/dist/chunks/popover-content-BOaLSQt3.js +15 -0
  146. package/dist/chunks/popover-content-Bi-ydBhZ.js +277 -0
  147. package/dist/chunks/{index-D6Eg6Zh4.js → progress-bar-BTHREDPK.js} +96 -17
  148. package/dist/chunks/progress-bar-p0YwLsuh.js +22 -0
  149. package/dist/chunks/progress-indicator-BP8k-xTC.js +252 -0
  150. package/dist/chunks/progress-indicator-cr687P29.js +35 -0
  151. package/dist/chunks/radio-button-CNOPBUK8.js +396 -0
  152. package/dist/chunks/radio-button-CU2ngHxo.js +44 -0
  153. package/dist/chunks/radio-group-manager-iPCcbWB8.js +60 -0
  154. package/dist/chunks/radio-group-manager-zfU1GLIW.js +1 -0
  155. package/dist/chunks/register-BXKEXKsC.js +15 -0
  156. package/dist/chunks/register-Bx7SlevL.js +8198 -0
  157. package/dist/chunks/register-CnJjkv07.js +1 -0
  158. package/dist/chunks/register-DqgfpeXv.js +1399 -0
  159. package/dist/chunks/search-BYWQ80wI.js +4 -0
  160. package/dist/chunks/search-BgSG9LA9.js +22 -0
  161. package/dist/chunks/search-CET7sHGW.js +173 -0
  162. package/dist/chunks/search-CUuRRsTX.js +31 -0
  163. package/dist/chunks/select-BifhTIxt.js +37 -0
  164. package/dist/chunks/select-Dh4AFZ2v.js +4 -0
  165. package/dist/chunks/select-item-BvwJ4Wc-.js +77 -0
  166. package/dist/chunks/select-item-DLWdT1CE.js +272 -0
  167. package/dist/chunks/shared-enums-BdDASwq-.js +1 -0
  168. package/dist/chunks/shared-enums-Cd0vBQFM.js +6 -0
  169. package/dist/chunks/{index-BxRbUwdY.js → skeleton-placeholder-Czj5sAeI.js} +23 -25
  170. package/dist/chunks/{index-CTB8Esah.js → skeleton-placeholder-aS-woCl8.js} +1 -1
  171. package/dist/chunks/skeleton-text-BIHdj7Jx.js +1 -0
  172. package/dist/chunks/skeleton-text-CZ2bSuDE.js +6 -0
  173. package/dist/chunks/skeleton-text-DJrow5mh.js +1 -0
  174. package/dist/chunks/skeleton-text-INjLvc2Y.js +71 -0
  175. package/dist/chunks/slider-CoHP_UJ2.js +878 -0
  176. package/dist/chunks/slider-DhIZP9Ms.js +246 -0
  177. package/dist/chunks/stack-C66k74Zo.js +1 -0
  178. package/dist/chunks/stack-vrK3hQYJ.js +85 -0
  179. package/dist/chunks/structured-list-BWjXHFbX.js +19 -0
  180. package/dist/chunks/{index-C2r3MkpB.js → structured-list-lqhD2RqL.js} +140 -158
  181. package/dist/chunks/tabs-DixpRz83.js +58 -0
  182. package/dist/chunks/tabs-DkIGB3cC.js +316 -0
  183. package/dist/chunks/tag-DpezbQqm.js +93 -0
  184. package/dist/chunks/tag-rQOD2v2s.js +412 -0
  185. package/dist/chunks/text-input-BYjtsh0H.js +26 -0
  186. package/dist/chunks/text-input-C2jRG8Lb.js +72 -0
  187. package/dist/chunks/text-input-DvygxhCJ.js +4 -0
  188. package/dist/chunks/text-input-DzSNpORC.js +309 -0
  189. package/dist/chunks/textarea-BZ34-RaT.js +190 -0
  190. package/dist/chunks/textarea-Be3YTme6.js +57 -0
  191. package/dist/chunks/tile-CQ9nINGM.js +524 -0
  192. package/dist/chunks/tile-DNWy90OU.js +74 -0
  193. package/dist/chunks/time-picker-CJ_ONMZi.js +267 -0
  194. package/dist/chunks/time-picker-DK_Lu3AK.js +52 -0
  195. package/dist/chunks/toggle-BBdusHAx.js +36 -0
  196. package/dist/chunks/toggle-Bfx6cOUM.js +156 -0
  197. package/dist/chunks/toggle-tip-CkH7fFX4.js +46 -0
  198. package/dist/chunks/toggle-tip-DF_GKfoM.js +169 -0
  199. package/dist/chunks/tooltip-COwRDvmc.js +85 -0
  200. package/dist/chunks/tooltip-DbGsUOZ8.js +23 -0
  201. package/dist/chunks/tooltip-content-BDcgoT6r.js +1 -0
  202. package/dist/chunks/tooltip-content-CkxKIMDr.js +116 -0
  203. package/dist/chunks/tree-utils-AeNlEhIR.js +1 -0
  204. package/dist/chunks/tree-utils-D7kpr-Wj.js +266 -0
  205. package/dist/chunks/tree-view-BmoD8n0Y.js +292 -0
  206. package/dist/chunks/tree-view-Drfa7DNm.js +82 -0
  207. package/dist/chunks/unsafe-html-BP-z2WTp.js +26 -0
  208. package/dist/chunks/unsafe-html-Dego4Lbw.js +1 -0
  209. package/dist/chunks/validity-CMW3OiFU.js +31 -0
  210. package/dist/chunks/validity-zT-XWh2t.js +1 -0
  211. package/dist/chunks/zoo-Bb5HHyrn.js +721 -0
  212. package/dist/chunks/zoo-C_CBOaHL.js +52 -0
  213. package/dist/zooy.cjs.js +19 -1
  214. package/dist/zooy.es.js +1309 -20
  215. package/package.json +8 -6
  216. package/dist/chunks/16-30f5E9no.js +0 -1
  217. package/dist/chunks/16-4Ffg4DOO.js +0 -1
  218. package/dist/chunks/16-B56B50XT.js +0 -1
  219. package/dist/chunks/16-BXti8Tu-.js +0 -62
  220. package/dist/chunks/16-BwDdccyH.js +0 -33
  221. package/dist/chunks/16-C7Xs-wKv.js +0 -1
  222. package/dist/chunks/16-CMCRqVYz.js +0 -1
  223. package/dist/chunks/16-CpNRIuiB.js +0 -1
  224. package/dist/chunks/16-Cubm18Em.js +0 -1
  225. package/dist/chunks/16-DH311Of_.js +0 -1
  226. package/dist/chunks/16-Dlq3qxDh.js +0 -1
  227. package/dist/chunks/16-Dt4v0bcc.js +0 -1
  228. package/dist/chunks/16-DylBiJnm.js +0 -1
  229. package/dist/chunks/20-Df0dXwyx.js +0 -1
  230. package/dist/chunks/button-D3QMXGP6.js +0 -66
  231. package/dist/chunks/button-cEVHuDC9.js +0 -272
  232. package/dist/chunks/button-skeleton-BuDQrAgi.js +0 -21
  233. package/dist/chunks/button-skeleton-CxKOKEQr.js +0 -49
  234. package/dist/chunks/carbon-element-CbfPUYRT.js +0 -1
  235. package/dist/chunks/checkbox-B_b_oOJ5.js +0 -40
  236. package/dist/chunks/checkbox-CsuLOYIT.js +0 -201
  237. package/dist/chunks/class-map-BwrbvkxB.js +0 -5
  238. package/dist/chunks/collection-helpers-Bk68Vaau.js +0 -7
  239. package/dist/chunks/collection-helpers-afBvMQaC.js +0 -1
  240. package/dist/chunks/content-switcher-item-C1gdd6k4.js +0 -351
  241. package/dist/chunks/content-switcher-item-c0sXBGJ-.js +0 -27
  242. package/dist/chunks/defs-C88lSWuJ.js +0 -1
  243. package/dist/chunks/defs-Do0OvCKd.js +0 -1165
  244. package/dist/chunks/directive-Dp4ZTz-F.js +0 -5
  245. package/dist/chunks/directive-kLG6oqUu.js +0 -27
  246. package/dist/chunks/dropdown-item-T1jCm1fo.js +0 -69
  247. package/dist/chunks/dropdown-item-Wc8Nj3w-.js +0 -632
  248. package/dist/chunks/focus-B3iymVyL.js +0 -1
  249. package/dist/chunks/focus-WnKGH_xB.js +0 -20
  250. package/dist/chunks/form-D6Tce4-W.js +0 -1
  251. package/dist/chunks/host-listener-CN245INl.js +0 -37
  252. package/dist/chunks/host-listener-DD3oGxvg.js +0 -16
  253. package/dist/chunks/host-listener-gxrTpxgv.js +0 -1
  254. package/dist/chunks/host-listener-rUcT_LUW.js +0 -1
  255. package/dist/chunks/icon-loader-CTCoE5GC.js +0 -7
  256. package/dist/chunks/icon-loader-C_ze306U.js +0 -1
  257. package/dist/chunks/icon-loader-utils-DxaQOvJB.js +0 -5
  258. package/dist/chunks/if-defined-7syLabv-.js +0 -10
  259. package/dist/chunks/if-defined-CfI-rREy.js +0 -5
  260. package/dist/chunks/if-non-empty-CsjL_4Ck.js +0 -5
  261. package/dist/chunks/if-non-empty-Dp8CFMva.js +0 -1
  262. package/dist/chunks/index-24ucriY6.js +0 -4
  263. package/dist/chunks/index-5uuGFlSc.js +0 -1
  264. package/dist/chunks/index-ACUVets3.js +0 -188
  265. package/dist/chunks/index-B-VOos8Q.js +0 -108
  266. package/dist/chunks/index-B-qA_3dy.js +0 -52
  267. package/dist/chunks/index-B0PkuE0I.js +0 -188
  268. package/dist/chunks/index-B1QlHHpn.js +0 -381
  269. package/dist/chunks/index-B2dVOGmx.js +0 -458
  270. package/dist/chunks/index-BEAD73rD.js +0 -17
  271. package/dist/chunks/index-BEyeMcZh.js +0 -25
  272. package/dist/chunks/index-BJ3okuBC.js +0 -78
  273. package/dist/chunks/index-BJNdKx6x.js +0 -23
  274. package/dist/chunks/index-BL8xz2V4.js +0 -161
  275. package/dist/chunks/index-BL_Y57_H.js +0 -57
  276. package/dist/chunks/index-BLxE94Et.js +0 -3
  277. package/dist/chunks/index-BP0bDhTG.js +0 -2340
  278. package/dist/chunks/index-BUXzbqzT.js +0 -364
  279. package/dist/chunks/index-BVDZj6Fh.js +0 -76
  280. package/dist/chunks/index-BWqDKfds.js +0 -62
  281. package/dist/chunks/index-BaVSzIan.js +0 -79
  282. package/dist/chunks/index-BatQ1Mfz.js +0 -25
  283. package/dist/chunks/index-BefBe_sK.js +0 -19
  284. package/dist/chunks/index-BekoThXC.js +0 -49
  285. package/dist/chunks/index-BnOH6_4r.js +0 -103
  286. package/dist/chunks/index-Bnfa6YBY.js +0 -71
  287. package/dist/chunks/index-BrtdLKIG.js +0 -455
  288. package/dist/chunks/index-BtFYirUg.js +0 -44
  289. package/dist/chunks/index-BtHVJn7K.js +0 -75
  290. package/dist/chunks/index-Bu7ZAHDG.js +0 -12
  291. package/dist/chunks/index-ByQl0Dwz.js +0 -9
  292. package/dist/chunks/index-C-PAoN2Y.js +0 -25
  293. package/dist/chunks/index-C2-pFkgT.js +0 -406
  294. package/dist/chunks/index-C5DwYOee.js +0 -89
  295. package/dist/chunks/index-C5euLddc.js +0 -46
  296. package/dist/chunks/index-C89rc2i5.js +0 -35
  297. package/dist/chunks/index-C8IUL9KS.js +0 -22
  298. package/dist/chunks/index-C99Nf_aK.js +0 -15
  299. package/dist/chunks/index-CDaECc1q.js +0 -12
  300. package/dist/chunks/index-CIeU44CB.js +0 -97
  301. package/dist/chunks/index-CL8Un64Y.js +0 -150
  302. package/dist/chunks/index-CQ1zfW-Z.js +0 -22
  303. package/dist/chunks/index-CR6HxSEn.js +0 -15
  304. package/dist/chunks/index-CSH8oUIN.js +0 -36
  305. package/dist/chunks/index-CX6f-3xD.js +0 -563
  306. package/dist/chunks/index-CXSCYGFC.js +0 -452
  307. package/dist/chunks/index-CZQ45Dj9.js +0 -1
  308. package/dist/chunks/index-Cc-HBEN2.js +0 -150
  309. package/dist/chunks/index-Cf3ALdZ-.js +0 -4
  310. package/dist/chunks/index-Cid77wr3.js +0 -45
  311. package/dist/chunks/index-ClBPGpC0.js +0 -129
  312. package/dist/chunks/index-CmXHpydu.js +0 -121
  313. package/dist/chunks/index-CsaKV6jI.js +0 -511
  314. package/dist/chunks/index-CvxrJ8vE.js +0 -39
  315. package/dist/chunks/index-Cy6EogCp.js +0 -429
  316. package/dist/chunks/index-CyTN35KA.js +0 -424
  317. package/dist/chunks/index-D3hwHwSn.js +0 -243
  318. package/dist/chunks/index-D7GY2E-B.js +0 -8
  319. package/dist/chunks/index-DCqxl0e0.js +0 -26
  320. package/dist/chunks/index-DDKqKtU4.js +0 -15
  321. package/dist/chunks/index-DHksIe-y.js +0 -1
  322. package/dist/chunks/index-DI-PunST.js +0 -224
  323. package/dist/chunks/index-DIWoAC3Z.js +0 -74
  324. package/dist/chunks/index-DLWyvZrE.js +0 -21
  325. package/dist/chunks/index-DLa-KLg_.js +0 -881
  326. package/dist/chunks/index-DLwGUJd2.js +0 -25
  327. package/dist/chunks/index-DMIKb9St.js +0 -2
  328. package/dist/chunks/index-DOfvb1f6.js +0 -79
  329. package/dist/chunks/index-DQoGlgyI.js +0 -1
  330. package/dist/chunks/index-DR8UmItB.js +0 -1
  331. package/dist/chunks/index-DUiT0Yz_.js +0 -57
  332. package/dist/chunks/index-DW1p-hc-.js +0 -1604
  333. package/dist/chunks/index-DbPU3mfX.js +0 -368
  334. package/dist/chunks/index-DgI4_4yz.js +0 -37
  335. package/dist/chunks/index-DhPg7DCD.js +0 -1
  336. package/dist/chunks/index-Dj-7w7wt.js +0 -65
  337. package/dist/chunks/index-DjSdHUmw.js +0 -284
  338. package/dist/chunks/index-DpCo2duE.js +0 -87
  339. package/dist/chunks/index-DqLDehu6.js +0 -111
  340. package/dist/chunks/index-Ds3e0NlH.js +0 -285
  341. package/dist/chunks/index-DsKNYemW.js +0 -295
  342. package/dist/chunks/index-DwGKd66A.js +0 -259
  343. package/dist/chunks/index-FAwjNd-C.js +0 -4
  344. package/dist/chunks/index-HTZtnvAV.js +0 -81
  345. package/dist/chunks/index-JUJu4Jsu.js +0 -235
  346. package/dist/chunks/index-JmiGhJR9.js +0 -1
  347. package/dist/chunks/index-K3aE8_a_.js +0 -45
  348. package/dist/chunks/index-LVNWqV95.js +0 -683
  349. package/dist/chunks/index-NduNWecG.js +0 -88
  350. package/dist/chunks/index-QOHPo0v8.js +0 -19
  351. package/dist/chunks/index-TnoTOPwm.js +0 -158
  352. package/dist/chunks/index-UIEjSWhu.js +0 -58
  353. package/dist/chunks/index-WQ40q6Fp.js +0 -77
  354. package/dist/chunks/index-a_56_OA-.js +0 -776
  355. package/dist/chunks/index-azaqRvif.js +0 -27
  356. package/dist/chunks/index-dT_yGOFJ.js +0 -1
  357. package/dist/chunks/index-lOiJBnZe.js +0 -160
  358. package/dist/chunks/index-sl9jQQX-.js +0 -36
  359. package/dist/chunks/index-vkfOeAd5.js +0 -260
  360. package/dist/chunks/index-z2pAR1iR.js +0 -337
  361. package/dist/chunks/loading-icon-9-L_8sVv.js +0 -16
  362. package/dist/chunks/loading-icon-CMPQny72.js +0 -24
  363. package/dist/chunks/main-CXPn-jnk.js +0 -4260
  364. package/dist/chunks/main-CZIPBRMI.js +0 -88
  365. package/dist/chunks/on-BPhwbVf3.js +0 -10
  366. package/dist/chunks/on-XRofyGQh.js +0 -1
  367. package/dist/chunks/property-BIgIlh0E.js +0 -5
  368. package/dist/chunks/property-CTp3Zz2M.js +0 -36
  369. package/dist/chunks/query-CbRg6ZGy.js +0 -23
  370. package/dist/chunks/query-Dh8joWcT.js +0 -9
  371. package/dist/chunks/radio-group-manager-DBAEmhDM.js +0 -1
  372. package/dist/chunks/radio-group-manager-Du5wSOS1.js +0 -102
  373. package/dist/chunks/register-BgvWUC9m.js +0 -11035
  374. package/dist/chunks/register-CFDNay1l.js +0 -1
  375. package/dist/chunks/register-DyYwnhHb.js +0 -2157
  376. package/dist/chunks/register-HH_4Uw0Q.js +0 -1678
  377. package/dist/chunks/search-CC47funo.js +0 -241
  378. package/dist/chunks/search-DB4cjN-w.js +0 -31
  379. package/dist/chunks/select-item-D6rKfA9z.js +0 -80
  380. package/dist/chunks/select-item-Dj2fYOn6.js +0 -364
  381. package/dist/chunks/shared-enums-BJDDuJr7.js +0 -1
  382. package/dist/chunks/shared-enums-DALKjQ7e.js +0 -7
  383. package/dist/chunks/state-4XYw1ZN5.js +0 -12
  384. package/dist/chunks/state-BoZ0xvIn.js +0 -5
  385. package/dist/chunks/text-input-BUBwT5gK.js +0 -68
  386. package/dist/chunks/text-input-Dpl3TIYz.js +0 -372
  387. package/dist/chunks/tooltip-content-BV1N7BVi.js +0 -3
  388. package/dist/chunks/tooltip-content-UQcG3dlT.js +0 -135
  389. package/dist/chunks/tslib.es6-B07k2eac.js +0 -1
  390. package/dist/chunks/tslib.es6-C5gLNDSD.js +0 -160
  391. package/dist/chunks/unsafe-html-CCJqBESk.js +0 -5
  392. package/dist/chunks/unsafe-html-KUWR4Xn7.js +0 -27
  393. package/dist/chunks/validity-BMLNCMmP.js +0 -1
  394. package/dist/chunks/validity-CTz7ivUd.js +0 -59
package/dist/zooy.es.js CHANGED
@@ -1,22 +1,1311 @@
1
- import { h as r, s as e, C as i, w as n, D as o, q as t, F as l, P as d, S as g, v as y, U as m, V as p, z as C, y as U, G as b, r as u, n as v, A as L, H as P } from "./chunks/main-CXPn-jnk.js";
1
+ import { _ as le, a as q, c as Me, d as f, f as ce, h as be, i as x, m as ee, n as C, o as te, t as R } from "./chunks/component-library-registry-CJ1Yb_8E.js";
2
+ import { a as we, c as Le, d as O, f as se, i as Oe, l as Ie, m as Re, n as Ae, o as ye, p as he, s as w, t as Pe, u as ie } from "./chunks/tree-utils-D7kpr-Wj.js";
3
+ import { c as Ne, i as Ve, t as Ue, u as ke } from "./chunks/zoo-Bb5HHyrn.js";
4
+ var L = class extends EventTarget {
5
+ #e = !1;
6
+ #t = !1;
7
+ #s = /* @__PURE__ */ new Map();
8
+ #i = /* @__PURE__ */ new Set();
9
+ #r = /* @__PURE__ */ new Set();
10
+ static makeEvent(e, t) {
11
+ return new CustomEvent(e, { detail: t });
12
+ }
13
+ set debugMode(e) {
14
+ if (typeof e != "boolean") throw new Error("This must be a boolean");
15
+ this.#e = e;
16
+ }
17
+ get debugMode() {
18
+ return this.#e;
19
+ }
20
+ get disposed() {
21
+ return this.#t;
22
+ }
23
+ get listeningTo() {
24
+ return this.#s;
25
+ }
26
+ get isObservedBy() {
27
+ return this.#i;
28
+ }
29
+ get activeIntervals() {
30
+ return this.#r;
31
+ }
32
+ debugMe(...e) {
33
+ this.#e && console.log.apply(null, [
34
+ this.constructor.name,
35
+ "DEBUG:",
36
+ ...e
37
+ ]);
38
+ }
39
+ isListenedToBy(e) {
40
+ this.#i.add(e);
41
+ }
42
+ listen(e, t, s, i = !1) {
43
+ e.addEventListener(t, s, i);
44
+ const r = this.listeningTo.get(e) || {};
45
+ r[t] = () => e.removeEventListener(t, s, i), this.listeningTo.set(e, r), x(e.isListenedToBy) && e.isListenedToBy(this);
46
+ }
47
+ stopBeingListenedTo() {
48
+ for (const e of this.isObservedBy)
49
+ e.stopListeningTo(this), this.isObservedBy.delete(e);
50
+ }
51
+ stopListeningTo(e, t) {
52
+ e && this.listeningTo.has(e) && (x(e.isObservedBy) && e.isObservedBy.delete(this), x(t) ? (Object.entries(this.listeningTo.get(e)).forEach(([s, i]) => {
53
+ s === t && i();
54
+ }), Object.keys(this.listeningTo.get(e)).length || this.listeningTo.delete(e)) : (Object.values(this.listeningTo.get(e)).forEach((s) => s()), this.listeningTo.delete(e)));
55
+ }
56
+ removeAllListener() {
57
+ for (const e of this.listeningTo.keys()) this.stopListeningTo(e);
58
+ }
59
+ clearAllIntervals() {
60
+ for (const e of this.activeIntervals)
61
+ clearInterval(e), this.activeIntervals.delete(e);
62
+ }
63
+ doOnBeat(e, t) {
64
+ const s = setInterval(e, t);
65
+ this.activeIntervals.add(s);
66
+ }
67
+ disposeInternal() {
68
+ this.stopBeingListenedTo(), this.removeAllListener(), this.clearAllIntervals(), this.#t = !0;
69
+ }
70
+ dispose() {
71
+ this.disposeInternal();
72
+ }
73
+ }, k = class {
74
+ constructor(e, t) {
75
+ this.value_ = e, this.data_ = t || {};
76
+ }
77
+ getValue() {
78
+ return this.value_;
79
+ }
80
+ getData() {
81
+ return this.data_;
82
+ }
83
+ }, d = {
84
+ COMP: f(),
85
+ COMP_DRAG_START: f(),
86
+ COMP_DRAG_MOVE: f(),
87
+ COMP_DRAG_END: f(),
88
+ PANEL: f(),
89
+ VIEW: f(),
90
+ SPLIT: f(),
91
+ SPLIT_WILL_OPEN: f(),
92
+ SPLIT_DID_OPEN: f(),
93
+ SPLIT_WILL_CLOSE: f(),
94
+ SPLIT_DID_CLOSE: f(),
95
+ SPLIT_TRANSITION_END: f(),
96
+ READY: f(),
97
+ PANEL_MINIMIZE: f(),
98
+ FORM_SUBMIT_SUCCESS: f()
99
+ }, N = {
100
+ NOT_SUPPORTED: "Method not supported",
101
+ DECORATE_INVALID: "Invalid element to decorate",
102
+ ALREADY_RENDERED: "Component already rendered",
103
+ ALREADY_DISPOSED: "Component already disposed",
104
+ PARENT_UNABLE_TO_BE_SET: "Unable to set parent component",
105
+ CHILD_INDEX_OUT_OF_BOUNDS: "Child component index out of bounds",
106
+ NOT_OUR_CHILD: "Child is not in parent component",
107
+ NOT_IN_DOCUMENT: "Operation not supported while component is not in document",
108
+ STATE_INVALID: "Invalid component state"
109
+ }, A = class extends L {
110
+ static compEventCode() {
111
+ return d.COMP;
112
+ }
113
+ static compReadyCode() {
114
+ return d.READY;
115
+ }
116
+ static compErrors() {
117
+ return N;
118
+ }
119
+ #e;
120
+ #t;
121
+ #s;
122
+ #i;
123
+ #r;
124
+ #n;
125
+ #o;
126
+ #a;
127
+ constructor() {
128
+ super(), this.#e = () => document.createElement("div"), this.#t = !1, this.#s = void 0, this.#i = void 0, this.#r = void 0, this.#n = void 0, this.#o = /* @__PURE__ */ new Map(), this.outOfTreeElements = [], this.placeholderDom = void 0, this.#a = () => {
129
+ };
130
+ }
131
+ set target(e) {
132
+ this.#r = e;
133
+ }
134
+ get target() {
135
+ return this.#r;
136
+ }
137
+ set model(e) {
138
+ this.#i = e;
139
+ }
140
+ get model() {
141
+ return this.#i;
142
+ }
143
+ set isInDocument(e) {
144
+ this.#t = e;
145
+ }
146
+ get isInDocument() {
147
+ return this.#t;
148
+ }
149
+ set domFunc(e) {
150
+ this.#e = e;
151
+ }
152
+ set readyFunc(e) {
153
+ this.#a = e;
154
+ }
155
+ setElementInternal_(e) {
156
+ this.#s = e;
157
+ }
158
+ getElement() {
159
+ return this.#s;
160
+ }
161
+ createDom() {
162
+ this.#s = this.#e();
163
+ }
164
+ assertCanRenderAsync() {
165
+ if (this.disposed) throw new Error(N.ALREADY_DISPOSED);
166
+ }
167
+ render(e) {
168
+ this.render_(e);
169
+ }
170
+ render_(e) {
171
+ if (this.disposed) throw new Error(N.ALREADY_DISPOSED);
172
+ if (this.isInDocument) throw new Error(N.ALREADY_RENDERED);
173
+ this.#s || this.createDom();
174
+ const t = this.#s;
175
+ e && (this.#r = e), this.placeholderDom && O(this.placeholderDom), this.#r ? ie(t) || this.#r.insertBefore(t, null) : ie(t) || document.body.appendChild(t), (!this.#n || this.#n.isInDocument) && this.enterDocument();
176
+ }
177
+ hoist(e, t = void 0) {
178
+ t || (t = document.querySelector("body")), t.appendChild(e), this.outOfTreeElements.push(e);
179
+ }
180
+ executeBeforeReady() {
181
+ this.#a();
182
+ }
183
+ enterDocument() {
184
+ this.disposed ? O(this.getElement()) : (this.isInDocument = !0, [...this.#o.values()].forEach((e) => {
185
+ !e.isInDocument && e.getElement() && e.enterDocument();
186
+ }), this.executeBeforeReady(), this.dispatchCompEvent(d.READY));
187
+ }
188
+ exitDocument() {
189
+ [...this.#o.values()].forEach((e) => {
190
+ e.isInDocument && e.exitDocument();
191
+ }), this.stopBeingListenedTo(), this.removeAllListener(), this.isInDocument = !1, O(this.getElement()), this.placeholderDom && O(this.placeholderDom);
192
+ }
193
+ disposeInternal() {
194
+ this.isInDocument && this.exitDocument(), this.#o && [...this.#o.values()].forEach((e) => e.disposeInternal()), this.outOfTreeElements.forEach(O), this.#s && O(this.#s), this.placeholderDom && O(this.placeholderDom), this.#o = null, this.#s = void 0, this.#i = null, this.#n = null, super.disposeInternal();
195
+ }
196
+ dispose() {
197
+ this.abortController && this.abortController.abort();
198
+ const e = this.getElement();
199
+ if (e) for (const t of R.getRegisteredLibraries()) try {
200
+ const s = R.get(t);
201
+ s.dispose && s.dispose(e);
202
+ } catch (s) {
203
+ console.debug(`[${t}] Cleanup error during component disposal (non-critical):`, s);
204
+ }
205
+ super.dispose();
206
+ }
207
+ dispatchCompEvent(e, t) {
208
+ const s = new k(e, t), i = L.makeEvent(d.COMP, s);
209
+ return this.dispatchEvent(i);
210
+ }
211
+ }, l = {
212
+ CLICK: "click",
213
+ RIGHTCLICK: "rightclick",
214
+ DBLCLICK: "dblclick",
215
+ MOUSEDOWN: "mousedown",
216
+ MOUSEUP: "mouseup",
217
+ MOUSEOVER: "mouseover",
218
+ MOUSEOUT: "mouseout",
219
+ MOUSEMOVE: "mousemove",
220
+ MOUSEENTER: "mouseenter",
221
+ MOUSELEAVE: "mouseleave",
222
+ TOUCHSTART: "touchstart",
223
+ TOUCHMOVE: "touchmove",
224
+ TOUCHEND: "touchend",
225
+ TOUCHCANCEL: "touchcancel",
226
+ SUBMIT: "submit",
227
+ CHANGE: "change",
228
+ INPUT: "input",
229
+ INVALID: "invalid",
230
+ DRAGSTART: "dragstart",
231
+ DRAGEND: "dragend",
232
+ DRAGOVER: "dragover",
233
+ DRAGENTER: "dragenter",
234
+ DRAGEXIT: "dragexit",
235
+ DRAGLEAVE: "dragleave",
236
+ DROP: "drop",
237
+ TRANSITIONEND: "transitionend",
238
+ ANIMATIONEND: "animationend"
239
+ }, ze = [
240
+ l.TOUCHMOVE,
241
+ l.TOUCHSTART,
242
+ l.TOUCHEND
243
+ ], Be = (e) => ze.includes(e.type), z = (e) => (Be(e) && (e.clientX = e.targetTouches[0].clientX, e.clientY = e.targetTouches[0].clientY), e), Fe = (e, t, s, i) => (r) => {
244
+ r.preventDefault();
245
+ const n = z(r), c = n.currentTarget, [p, v] = Le(c), m = n.clientX - p, S = n.clientY - v, o = e(p, v, m, S, c), a = s(p, v, m, S, c), h = t(p, v, m, S, c);
246
+ let u = xe(h, c, m, S);
247
+ ["x", "ew"].includes(i) ? u = $e(h, c, m, S) : ["y", "ns"].includes(i) && (u = je(h, c, m, S));
248
+ let g = !1;
249
+ const E = (T) => {
250
+ g = !0, u(T);
251
+ }, _ = (T) => {
252
+ document.removeEventListener(l.MOUSEMOVE, E, !0), document.removeEventListener(l.TOUCHMOVE, E, !0), document.removeEventListener(l.MOUSEUP, _, !0), document.removeEventListener(l.TOUCHEND, _, !0), g && a(T);
253
+ };
254
+ return document.addEventListener(l.MOUSEUP, _, !0), document.addEventListener(l.TOUCHEND, _, !0), document.addEventListener(l.MOUSEMOVE, E, !0), document.addEventListener(l.TOUCHMOVE, E, !0), o(r), _;
255
+ }, xe = (e, t, s, i) => (r) => {
256
+ r.preventDefault();
257
+ const n = z(r);
258
+ t.style.left = `${n.clientX - s}px`, t.style.top = `${n.clientY - i}px`, e(n);
259
+ }, $e = (e, t, s, i) => (r) => {
260
+ r.preventDefault();
261
+ const n = z(r);
262
+ t.style.left = `${n.clientX - s}px`, e(n);
263
+ }, je = (e, t, s, i) => (r) => {
264
+ r.preventDefault();
265
+ const n = z(r);
266
+ t.style.top = `${n.clientY - i}px`, e(n);
267
+ }, $ = (e, t) => (s, i, r, n, c) => (p) => {
268
+ e.dispatchCompEvent(t, {
269
+ component: e,
270
+ browserEvent: p,
271
+ left: s,
272
+ top: i,
273
+ clientX: p.clientX,
274
+ clientY: p.clientY,
275
+ xOrg: r,
276
+ yOrg: n,
277
+ deltaX: p.clientX - r - s,
278
+ deltaY: p.clientY - n - i,
279
+ target: c
280
+ });
281
+ }, H = class extends A {
282
+ #e;
283
+ #t;
284
+ #s;
285
+ #i;
286
+ constructor(e = "xy") {
287
+ super(), this.#e = [
288
+ "x",
289
+ "y",
290
+ "xy",
291
+ "ew",
292
+ "ns"
293
+ ].includes(e.toLowerCase()) ? e.toLowerCase() : "xy", this.#t = void 0, this.#s = !0, this.#i = (t) => null;
294
+ }
295
+ cancelDrag(e) {
296
+ this.#i(e);
297
+ }
298
+ set moveFreedom(e) {
299
+ this.#e = e, this.#s || (this.lock(), this.unlock());
300
+ }
301
+ get moveFreedom() {
302
+ return this.#e;
303
+ }
304
+ executeBeforeReady() {
305
+ this.unlock(), super.executeBeforeReady();
306
+ }
307
+ unlock() {
308
+ const e = (t) => (s) => {
309
+ this.#i = t(s);
310
+ };
311
+ if (this.isInDocument && this.#s) {
312
+ const t = $(this, d.COMP_DRAG_MOVE), s = Fe($(this, d.COMP_DRAG_START), t, $(this, d.COMP_DRAG_END), this.#e);
313
+ this.#s = !1, this.#t = this.#t || this.getElement(), this.listen(this.#t, l.MOUSEDOWN, e(s)), this.listen(this.#t, l.TOUCHSTART, s), this.#t.classList.remove("locked");
314
+ }
315
+ }
316
+ lock() {
317
+ this.stopListeningTo(this.#t, l.MOUSEDOWN), this.stopListeningTo(this.#t, l.TOUCHSTART), this.#s = !0, this.#t.classList.add("locked");
318
+ }
319
+ }, qe = /* @__PURE__ */ le({
320
+ getPath: () => W,
321
+ getQueryData: () => me,
322
+ objectToUrlParms: () => ge,
323
+ queryDataToMap: () => Ee
324
+ }), He = new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"), de = {
325
+ SCHEME: 1,
326
+ USER_INFO: 2,
327
+ DOMAIN: 3,
328
+ PORT: 4,
329
+ PATH: 5,
330
+ QUERY_DATA: 6,
331
+ FRAGMENT: 7
332
+ }, ue = (e) => e.match(He), pe = (e, t) => e ? t ? decodeURI(e.replace(/%25/g, "%2525")) : decodeURIComponent(e) : "", W = (e) => pe(ue(e)[de.PATH], !0), me = (e) => pe(ue(e)[de.QUERY_DATA], !0), ge = (e) => [...Object.entries(e)].map((t) => `${t[0]}=${t[1]}`).join("&"), re = (e) => e != null && e !== "", Ee = (e) => e.split("&").reduce((t, s) => {
333
+ const [i, r] = s.split("=");
334
+ return re(i) && re(r) && t.set(i, r), t;
335
+ }, /* @__PURE__ */ new Map()), We = ce(" "), Je = ce("/"), Ge = (e) => document.cookie.split(";").map((t) => t.split("=")).reduce((t, s) => t.set(We(s[0]), s[1]), /* @__PURE__ */ new Map()).get(e), Ye = (e) => {
336
+ let t = 0, s;
337
+ const i = (r) => {
338
+ const n = r > 0;
339
+ return n ? t += 1 : t -= 1, n ? t === 1 : t === 0;
340
+ };
341
+ return (r) => {
342
+ s = s || document.getElementById(e), s && i(r) && s.classList.toggle("viz", t > 0);
343
+ };
344
+ }, fe = Ye("the_loader"), j = () => Promise.resolve(fe(1)), U = (e) => (fe(0), Promise.resolve(e)), I = (e) => e.ok ? Promise.resolve(e) : Promise.reject(/* @__PURE__ */ new Error(`${e.url} ${e.status} (${e.statusText})`)), Xe = (e) => (t) => {
345
+ if (t.type === "opaqueredirect" || t.redirected) {
346
+ const s = Je(W(t.url));
347
+ e.setIsRedirected(!0, s), console.log("Redirect detected", s);
348
+ }
349
+ return I(t);
350
+ }, P = (e) => e.json(), J = (e) => e.text().then((t) => Promise.resolve(t), (t) => Promise.reject(/* @__PURE__ */ new Error(`Could not get text from response: ${t}`))), Qe = (e) => e.headers.get("Content-Type") === "application/json" ? P(e) : J(e), V = (e, t, s = "POST", i = void 0) => {
351
+ const r = new Headers();
352
+ r.append("Content-type", "application/json"), r.append("X-Requested-With", "XMLHttpRequest"), e && e !== "" && r.append("Authorization", `Bearer ${e}`);
353
+ const n = {
354
+ cache: "no-cache",
355
+ method: s,
356
+ headers: r,
357
+ credentials: "include",
358
+ body: JSON.stringify(t)
359
+ };
360
+ return i && (n.signal = i), n;
361
+ }, ve = (e, t, s = !1, i = void 0) => {
362
+ const r = new Headers();
363
+ if (t && t !== "" && r.append("Authorization", `Bearer ${t}`), r.append("X-Requested-With", "XMLHttpRequest"), s) {
364
+ const c = Ge("csrftoken");
365
+ c && s && r.append("X-CSRFToken", c);
366
+ }
367
+ const n = {
368
+ cache: "no-cache",
369
+ method: e,
370
+ headers: r,
371
+ redirect: "follow",
372
+ credentials: "include"
373
+ };
374
+ return i && (n.signal = i), n;
375
+ }, Ke = (e, t, s = void 0) => {
376
+ const i = ve("POST", e, !1, s);
377
+ return i.body = new FormData(t.formEl), i;
378
+ }, ne = (e, t = void 0) => {
379
+ const s = new Headers();
380
+ s.append("Authorization", `Bearer ${e}`), s.append("X-Requested-With", "XMLHttpRequest");
381
+ const i = {
382
+ cache: "no-cache",
383
+ headers: s,
384
+ credentials: "include"
385
+ };
386
+ return t && (i.signal = t), i;
387
+ }, Ze = (e, t) => {
388
+ const s = new Request(e);
389
+ return fetch(s, t).then(I).then(J);
390
+ }, b = (e, t = void 0) => (s) => (U("").then(C), s.name === "AbortError" ? console.info(e, "ABORTED!") : console.error(e, s), t), B = class {
391
+ constructor(e) {
392
+ this.user_ = {}, this.jwt = "", e && this.updateProfileFromJwt(e).then(() => {
393
+ });
394
+ }
395
+ updateProfileFromJwt(e, t = !1) {
396
+ return t && this.jwt !== "" ? Promise.resolve("User Profile Already exists") : e.non_field_errors ? Promise.reject(/* @__PURE__ */ new Error(`JWT ${e.non_field_errors}`)) : (this.updateToken(e.token), this.updateProfile(e.user), Promise.resolve("User Profile Updated"));
397
+ }
398
+ updateProfile(e) {
399
+ this.user_ = e;
400
+ }
401
+ updateToken(e) {
402
+ this.jwt = e;
403
+ }
404
+ get id() {
405
+ return this.user_.id;
406
+ }
407
+ get name() {
408
+ return this.user_.name;
409
+ }
410
+ get surname() {
411
+ return this.user_.surname;
412
+ }
413
+ get salutation() {
414
+ let e = this.name;
415
+ const t = this.surname;
416
+ return t && (e = e + " " + t), e;
417
+ }
418
+ formSubmit(e) {
419
+ const t = new Request(e.uri.toString()), s = e.processSubmitReply.bind(e), i = b("Form submit error");
420
+ return j().then(() => fetch(t, Ke(this.jwt, e, e.abortController.signal))).then(Xe(e)).then(U).then(Qe).then(s).catch(i);
421
+ }
422
+ putNoBody(e, t = void 0, s = !1) {
423
+ const i = b("putNobody error");
424
+ return Ze(e, ve("PUT", this.jwt, s, t)).catch(i);
425
+ }
426
+ fetch(e, t = void 0) {
427
+ const s = new Request(e.toString()), i = b(`UMan Text GET Fetch: ${e}`);
428
+ return j().then(() => fetch(s, ne(this.jwt, t))).then(I).then(U).then(J).catch(i);
429
+ }
430
+ fetchAndSplit(e, t = void 0) {
431
+ const s = b(`fetchAndSplit: ${e}`);
432
+ return this.fetch(e, t).then(Ie).catch(s);
433
+ }
434
+ async fetchJson(e, t = void 0, s = void 0) {
435
+ const i = new Request(e.toString()), r = b(`fetchJson: ${e}`, s), n = ne(this.jwt, t);
436
+ await j();
437
+ let c;
438
+ try {
439
+ c = await (await fetch(i, n)).json();
440
+ } catch (p) {
441
+ return r(p);
442
+ }
443
+ return await U(), c;
444
+ }
445
+ patchJson(e, t, s = void 0) {
446
+ const i = new Request(e.toString()), r = b(`patchJson: ${e}`), n = V(this.jwt, t, "PATCH", s);
447
+ return fetch(i, n).then(I).then(P).catch(r);
448
+ }
449
+ postJson(e, t, s = void 0) {
450
+ const i = new Request(e.toString()), r = b(`postJson: ${e}`), n = V(this.jwt, t, "POST", s);
451
+ return fetch(i, n).then(I).then(P).catch(r);
452
+ }
453
+ putJson(e, t, s = void 0) {
454
+ const i = new Request(e.toString()), r = b(`putJson: ${e}`), n = V(this.jwt, t, "PUT", s);
455
+ return fetch(i, n).then(I).then(P).catch(r);
456
+ }
457
+ delJson(e, t, s = void 0) {
458
+ const i = new Request(e.toString()), r = b(`delJson: ${e}`), n = V(this.jwt, t, "DELETE", s);
459
+ return fetch(i, n).then(I).then(P).catch(r);
460
+ }
461
+ }, G = class extends A {
462
+ static panelEventCode() {
463
+ return d.PANEL;
464
+ }
465
+ static compReadyCode() {
466
+ return d.READY;
467
+ }
468
+ constructor(e) {
469
+ super(), this.qParamMap_ = /* @__PURE__ */ new Map(), this.uri_ = "", e && this.parseUri(e), this.evalScripts = we(this), this.evalModules = Oe(this), this.redirected = !1, this.responseObject = {
470
+ html: null,
471
+ scripts: null
472
+ }, this.user_ = void 0, "AbortController" in window ? this.abortController = new AbortController() : this.abortController = {
473
+ signal: void 0,
474
+ abort: () => {
475
+ }
476
+ }, this.listMap = /* @__PURE__ */ new Map();
477
+ }
478
+ get uri() {
479
+ const e = this.qParamMap_.size > 0 ? "?" + ge(Object.fromEntries(this.qParamMap_)) : "";
480
+ return this.uri_ + e;
481
+ }
482
+ set user(e) {
483
+ this.user_ = e;
484
+ }
485
+ get user() {
486
+ return this.user_ || (this.user_ = new B()), this.user_;
487
+ }
488
+ parseUri(e) {
489
+ this.uri_ = W(e), this.qParamMap_ = Ee(me(e));
490
+ }
491
+ addToQParams(e, t) {
492
+ this.qParamMap_.set(e, t);
493
+ }
494
+ removeFromQParams(e) {
495
+ this.qParamMap_.delete(e);
496
+ }
497
+ clearQParams() {
498
+ this.qParamMap_.clear();
499
+ }
500
+ getCarbonComponents(e) {
501
+ return this.carbonComponents?.get(e) || [];
502
+ }
503
+ getCarbonComponentById(e) {
504
+ if (this.carbonComponents)
505
+ for (const t of this.carbonComponents.values()) {
506
+ const s = t.find((i) => i.id === e);
507
+ if (s) return s;
508
+ }
509
+ }
510
+ renderPlaceHolder(e) {
511
+ this.target && (this.placeholderDom = e, this.target.insertBefore(this.placeholderDom, null));
512
+ }
513
+ renderWithTemplate(e) {
514
+ const t = this.user;
515
+ return t ? t.fetch(this.uri, this.abortController.signal).then((s) => (this.assertCanRenderAsync(), e && e(this), this.onRenderWithTemplateReply(s).catch((i) => {
516
+ i.message !== A.compErrors().ALREADY_DISPOSED && console.error("RenderWithTemplate Err:", i);
517
+ }), this)).catch((s) => {
518
+ throw console.error("Panel.renderWithTemplate fetch failed:", s), s;
519
+ }) : Promise.reject(/* @__PURE__ */ new Error("No UserManager instance available for Panel.renderWithTemplate()"));
520
+ }
521
+ onRenderWithTemplateReply(e) {
522
+ return this.responseObject = he(e), this.domFunc = () => this.responseObject.html, this.render(), Promise.resolve(this);
523
+ }
524
+ onReplacePartialDom(e, t) {
525
+ const s = this.getElement();
526
+ if (Me(s)) return;
527
+ const i = e.html;
528
+ if (t.startsWith(".")) [...s.querySelectorAll(t)].filter((r) => q(r.id)).map((r) => [r, i.querySelector(`#${r.id}`)]).filter(([r, n]) => q(n)).forEach(([r, n]) => {
529
+ r.parentNode.replaceChild(n, r), this.parseContent(n);
530
+ });
531
+ else if (t.startsWith("#")) {
532
+ const r = i.querySelector(t), n = s.querySelector(t);
533
+ n.parentNode.replaceChild(r, n), this.parseContent(r);
534
+ }
535
+ this.evalScripts(e.scripts), this.evalModules(e.modules);
536
+ }
537
+ renderWithJSON(e) {
538
+ return this.user ? this.user.fetchJson(this.uri_, this.abortController.signal).then((t) => {
539
+ this.assertCanRenderAsync(), e && e(t, this), this.onRenderWithJSON(t).then(C);
540
+ }).catch((t) => {
541
+ throw console.error("Panel.renderWithJSON fetch failed:", t), t;
542
+ }) : Promise.reject(/* @__PURE__ */ new Error("No UserManager instance available for Panel.renderWithJSON()"));
543
+ }
544
+ onRenderWithJSON(e) {
545
+ return Promise.resolve(this);
546
+ }
547
+ onAsyncJsonReply(e, t, s) {
548
+ }
549
+ onAsyncHtmlReply(e, t) {
550
+ }
551
+ onViewDataBroadcast(e) {
552
+ }
553
+ parseContent(e) {
554
+ if (this.debugMe("Enable interactions. Panel:", e), typeof window.customElements < "u" && R.has("carbon")) {
555
+ const o = R.get("carbon");
556
+ o.render.call(this, e, o.cache).catch((a) => console.error("[Zooy] Carbon initialization failed:", a));
557
+ }
558
+ if (R.has("mdc")) {
559
+ const o = R.get("mdc");
560
+ o.render.call(this, e, o.cache);
561
+ }
562
+ e.classList.contains("zoo__modal-base") && e.classList.contains("close_on_click") && this.listen(e, l.CLICK, (o) => {
563
+ o.target === e && this.dispatchPanelEvent("destroy_me");
564
+ }), [...e.querySelectorAll(".zoo__button:not(.external):not(.mdc-data-table__row)")].forEach((o) => {
565
+ this.listen(o, l.CLICK, (a) => {
566
+ a.stopPropagation();
567
+ const h = a.currentTarget, u = w(h);
568
+ this.dispatchPanelEvent(u.zv, Object.assign({
569
+ orgEvt: a,
570
+ trigger: h,
571
+ href: h.href || u.href
572
+ }, u));
573
+ });
574
+ }), [...e.querySelectorAll("[href]:not(.external)")].forEach((o) => {
575
+ this.listen(o, l.CLICK, (a) => {
576
+ const h = a.currentTarget;
577
+ a.preventDefault(), a.stopPropagation();
578
+ const u = w(h), g = u.zv || "href";
579
+ this.dispatchPanelEvent(g, Object.assign({
580
+ orgEvt: a,
581
+ trigger: a.target,
582
+ href: h.href || u.href
583
+ }, u));
584
+ });
585
+ }), [...e.querySelectorAll("form.intercept_submit")].forEach((o) => {
586
+ o.noValidate = !0, this.listen(o, l.SUBMIT, (a) => {
587
+ a.preventDefault(), a.stopPropagation();
588
+ const h = w(o), u = ye(o.elements);
589
+ this.dispatchPanelEvent(h.zv, Object.assign({
590
+ orgEvt: a,
591
+ trigger: a.target,
592
+ formData: u,
593
+ href: h.href
594
+ }, h));
595
+ });
596
+ }), [...e.querySelectorAll(".zoo__toggle_class_driver")].forEach((o) => {
597
+ const a = w(o), h = a.toggle_class_target_id, u = a.toggle_class, g = e.querySelector(`#${h}`);
598
+ g && u && o.addEventListener(l.CLICK, (E) => {
599
+ E.stopPropagation(), g.classList.toggle(u);
600
+ });
601
+ });
602
+ const t = Array.from(e.querySelectorAll(".folder_drop_zone")), s = Array.from(e.querySelectorAll("[draggable]")), i = (o) => {
603
+ o.preventDefault(), o.target.classList.add("drag_over");
604
+ }, r = (o) => {
605
+ o.preventDefault();
606
+ }, n = (o) => {
607
+ o.preventDefault(), o.target.classList.remove("drag_over");
608
+ }, c = (o) => {
609
+ o.preventDefault(), o.target.classList.remove("drag_over");
610
+ }, p = (o) => {
611
+ o.preventDefault(), o.target.classList.remove("drag_over");
612
+ }, v = (o) => {
613
+ o.dataTransfer.dropEffect = "move";
614
+ const a = w(o.target);
615
+ o.dataTransfer.setData("text/plain", JSON.stringify(a)), o.target.classList.add("drag_in_progress");
616
+ }, m = (o) => {
617
+ o.target.classList.remove("drag_in_progress");
618
+ }, S = (o) => {
619
+ p(o), o.stopPropagation();
620
+ const a = JSON.parse(o.dataTransfer.getData("text/plain")), h = w(o.target);
621
+ return this.dispatchPanelEvent("drop_on", { custom: {
622
+ on: h,
623
+ from: a
624
+ } }), !1;
625
+ };
626
+ t.forEach((o) => {
627
+ this.listen(o, l.DRAGOVER, r), this.listen(o, l.DRAGENTER, i), this.listen(o, l.DRAGEXIT, c), this.listen(o, l.DRAGLEAVE, n), this.listen(o, l.DROP, S);
628
+ }), s.forEach((o) => {
629
+ this.listen(o, l.DRAGSTART, v), this.listen(o, l.DRAGEND, m);
630
+ }), [...e.querySelectorAll(".zoo_async_json")].forEach((o) => {
631
+ const a = w(o), h = a.href, u = this.onAsyncJsonReply.bind(this, o, a);
632
+ this.user.fetchJson(h, this.abortController.signal).then(u);
633
+ const g = a.z_json_reusable;
634
+ g && (this.jsonCallFuncs = this.jsonCallFuncs || {}, this.jsonCallFuncs[g] = () => {
635
+ this.user.fetchJson(h, this.abortController.signal).then(u);
636
+ });
637
+ const E = ee(a.z_interval);
638
+ te(E) && this.doOnBeat(() => {
639
+ this.user.fetchJson(h, this.abortController.signal).then(u);
640
+ }, E * 60 * 1e3);
641
+ }), [...e.querySelectorAll(".zoo_async_html")].forEach((o) => {
642
+ const a = w(o), h = a.href;
643
+ this.user.fetchAndSplit(h, this.abortController.signal).then((g) => {
644
+ o.appendChild(g.html), this.parseContent(o), this.evalScripts(g.scripts), this.evalModules(g.modules), this.onAsyncHtmlReply(o, a);
645
+ });
646
+ const u = ee(a.z_interval);
647
+ te(u) && this.doOnBeat(() => {
648
+ this.user.fetchAndSplit(h, this.abortController.signal).then((g) => {
649
+ o.replaceChildren(g.html), this.parseContent(o), this.evalScripts(g.scripts), this.evalModules(g.modules);
650
+ });
651
+ }, u * 60 * 1e3);
652
+ });
653
+ }
654
+ enterDocument() {
655
+ const e = this.getElement();
656
+ this.parseContent(e), this.evalScripts(this.responseObject.scripts), this.evalModules(this.responseObject.modules), super.enterDocument();
657
+ }
658
+ exitDocument() {
659
+ this.abortController.abort(), super.exitDocument();
660
+ }
661
+ setIsRedirected(e, t) {
662
+ this.redirected = e, this.redirected && t && (this.uri_ = t);
663
+ }
664
+ dispatchPanelEvent(e, t) {
665
+ const s = new k(e, t), i = L.makeEvent(d.PANEL, s);
666
+ return this.debugMe(`PANEL EVENT FIRED:
667
+ value:${e}
668
+ data:${t}`), this.dispatchEvent(i);
669
+ }
670
+ }, et = class extends G {
671
+ #e = null;
672
+ #t = /* @__PURE__ */ new Map();
673
+ #s = !0;
674
+ constructor(e, t = !0) {
675
+ super(e), this.#s = t, this.onSubmitSucFunc = (s, i) => null;
676
+ }
677
+ get formEl() {
678
+ return this.#e;
679
+ }
680
+ enterDocument() {
681
+ super.enterDocument(), this.formIdElementToForm_();
682
+ }
683
+ formIdElementToForm_() {
684
+ this.#e = this.getFormFromId(), this.#e && (this.#a(this.#e), this.#i());
685
+ }
686
+ getFormFromId(e) {
687
+ let t = null, s = this.getElement().querySelector("form");
688
+ return e && (s = document.getElementById(e) || s), s && s.tagName.toLowerCase() === "form" && (t = s), t;
689
+ }
690
+ #i() {
691
+ this.#e && (this.listen(this.#e, l.CHANGE, (e) => {
692
+ this.#o(e);
693
+ }, { passive: !0 }), this.listen(this.#e, l.INPUT, (e) => {
694
+ this.clearAllValidationErrors(), this.#o(e);
695
+ }), this.listen(this.#e, l.INVALID, (e) => {
696
+ e.preventDefault();
697
+ const t = e.target;
698
+ this.#n(t), this.displayFieldError(t);
699
+ }, { passive: !0 }));
700
+ }
701
+ checkAllFields() {
702
+ const e = [...this.#e.elements].map((t) => [this.#r(t), t]).filter((t) => !t[0]);
703
+ return e.forEach((t) => this.displayFieldError(t[1])), e.length === 0;
704
+ }
705
+ clearAllValidationErrors() {
706
+ [...this.#e ? this.#e.elements : []].forEach((e) => this.#n(e)), [...this.#e.querySelectorAll(".non-field-errors")].forEach((e) => e.classList.remove("alert-error"));
707
+ }
708
+ displayAlert_(e, t, s) {
709
+ const i = document.getElementById(`${e.id}-helper-text`) || document.createElement("p");
710
+ i.textContent = t, this.#t.set(e, i);
711
+ }
712
+ #r(e) {
713
+ this.#n(e);
714
+ let t = !e.willValidate;
715
+ return e.willValidate && (t = e.checkValidity()), t;
716
+ }
717
+ #n(e) {
718
+ e.classList.remove("error"), this.#t.has(e) && (this.#t.get(e).textContent = ""), this.#t.delete(e);
719
+ }
720
+ displayFieldError(e, t) {
721
+ const s = t || e.validationMessage;
722
+ e.classList.add("error"), this.displayAlert_(e, s, "alert-error");
723
+ }
724
+ displayFieldSuccess(e, t) {
725
+ this.displayAlert_(e, t, "alert-success");
726
+ }
727
+ displayFieldInfo(e, t) {
728
+ this.displayAlert_(e, t, "alert-info");
729
+ }
730
+ #o(e) {
731
+ this.#r(e.target);
732
+ }
733
+ #a(e) {
734
+ if (e && this.#s) {
735
+ e.noValidate = !0;
736
+ const t = this.user;
737
+ this.listen(e, l.SUBMIT, (s) => {
738
+ s.preventDefault(), this.debugMe("Intercepted from SUBMIT"), this.checkAllFields() && t && t.formSubmit(this);
739
+ });
740
+ }
741
+ return e;
742
+ }
743
+ onSubmitSuccess(e) {
744
+ this.onSubmitSucFunc = e;
745
+ }
746
+ replaceForm(e) {
747
+ if (this.responseObject = he(e), this.responseObject.html) {
748
+ if (this.redirected) {
749
+ this.removeAllListener();
750
+ const t = this.getElement(), s = t.parentNode;
751
+ this.setElementInternal_(this.responseObject.html), s.replaceChild(this.getElement(), t);
752
+ } else {
753
+ const t = this.responseObject.html.querySelector("form");
754
+ t && se(t, this.#e);
755
+ const s = this.responseObject.html.querySelector('button[type="submit"]'), i = this.getElement().querySelector('button[type="submit"]');
756
+ s && i && se(s, i);
757
+ }
758
+ this.enterDocument();
759
+ }
760
+ }
761
+ refreshFromFromServer() {
762
+ const e = this.user, t = this.uri;
763
+ return e ? e.fetch(t, this.abortController.signal).then((s) => this.replaceForm(s)) : Promise.reject(/* @__PURE__ */ new Error("No UserManager instance available for FormPanel.refreshFromFromServer()"));
764
+ }
765
+ processSubmitReply(e) {
766
+ this.clearAllValidationErrors();
767
+ let t = !1;
768
+ if (be(e) === "object" && e.success) return Promise.resolve(this).then(() => {
769
+ this.onSubmitSucFunc(this, e), this.dispatchCompEvent(d.FORM_SUBMIT_SUCCESS);
770
+ });
771
+ if (e === "success" ? (this.debugMe(`
772
+ 1.REDIRECTED: ${this.redirected}
773
+ REPLY: ${e}`), t = !0) : e === `redirected_success
774
+ ` ? (this.debugMe(`
775
+ 2.REDIRECTED: ${this.redirected}
776
+ REPLY: ${e}`), t = !0, this.redirected = !1) : (this.debugMe(`
777
+ 3.REDIRECTED: ${this.redirected}
778
+ REPLY: Some form HTML`), this.replaceForm(e)), t && this.redirected)
779
+ return this.debugMe(`
780
+ 4.REDIRECTED: ${this.redirected}
781
+ SUCCESS: ${t}`), this.redirected = !1, Promise.resolve(this);
782
+ if (t)
783
+ return this.debugMe(`
784
+ 5.REDIRECTED: ${this.redirected}
785
+ SUCCESS: ${t}`), Promise.resolve(this).then(() => {
786
+ this.onSubmitSucFunc(this), this.dispatchCompEvent(d.FORM_SUBMIT_SUCCESS);
787
+ });
788
+ this.debugMe(`
789
+ 6.REDIRECTED: ${this.redirected}
790
+ SUCCESS: ${t}`);
791
+ }
792
+ }, tt = class extends A {
793
+ static splitEventCode() {
794
+ return d.SPLIT;
795
+ }
796
+ constructor() {
797
+ super(), this.dragImage_ = document.createElement("canvas"), this.nestMap_ = /* @__PURE__ */ new Map(), this.nestCallbackMap_ = /* @__PURE__ */ new Map(), this.splitNests_ = /* @__PURE__ */ new Set();
798
+ }
799
+ get nests() {
800
+ return [...this.nestMap_.entries()].filter(([e, { nestEl: t }]) => t);
801
+ }
802
+ getNest(e) {
803
+ return this.nestMap_.get(e)?.nestEl;
804
+ }
805
+ get nestNames() {
806
+ return [...this.nestMap_.entries()].filter(([e, t]) => !this.splitNests_.has(t)).map(([e]) => e);
807
+ }
808
+ closeAndLockAll(e = C, t = !1) {
809
+ this.nestNames.forEach((s) => this.closeAndLock(s, e, t));
810
+ }
811
+ openAndUnlockAll(e = C, t = !1) {
812
+ this.nestNames.forEach((s) => this.openAndUnlock(s, e, t));
813
+ }
814
+ lock(e) {
815
+ const { dragEl: t } = this.nestMap_.get(e);
816
+ t.classList.add("locked");
817
+ }
818
+ unlock(e) {
819
+ const { dragEl: t } = this.nestMap_.get(e);
820
+ t.classList.remove("locked");
821
+ }
822
+ resize(e, t, s = C, i = !1) {
823
+ const { sizeNow: r, nestEl: n, canResize: c } = this.nestMap_.get(e);
824
+ c && (i || r === t ? (n.classList.remove("animated"), n.style.flexBasis = `${t}px`, this.nestMap_.get(e).sizeNow = t, s()) : (n.classList.add("animated"), this.nestCallbackMap_.set(e, () => {
825
+ n.classList.remove("animated"), this.nestMap_.get(e).sizeNow = t, s();
826
+ }), n.style.flexBasis = `${t}px`));
827
+ }
828
+ closeAndLock(e, t = C, s = !1) {
829
+ const { nestEl: i, dragEl: r, canResize: n } = this.nestMap_.get(e);
830
+ if (!n) return;
831
+ const c = () => {
832
+ r.classList.add("locked", "closed"), i.classList.add("closed"), t();
833
+ };
834
+ this.resize(e, 0, c, s);
835
+ }
836
+ closeAndUnlock(e, t = C, s = !1) {
837
+ const { nestEl: i, dragEl: r, canResize: n } = this.nestMap_.get(e);
838
+ if (!n) return;
839
+ const c = () => {
840
+ i.classList.remove("closed"), r.classList.remove("closed", "locked"), r.classList.add("collapsed"), t();
841
+ };
842
+ this.resize(e, 0, c, s);
843
+ }
844
+ openAndUnlock(e, t, s, i = !1) {
845
+ const { nestEl: r, dragEl: n, defSize: c, lastSize: p, canResize: v } = this.nestMap_.get(e);
846
+ if (!v) return;
847
+ const m = t || p || c;
848
+ r.classList.remove("closed"), n.classList.remove("closed", "locked", "collapsed"), setTimeout(() => {
849
+ this.resize(e, m, s, i);
850
+ }, 50);
851
+ }
852
+ openAndLock(e, t, s, i = !1) {
853
+ const { nestEl: r, dragEl: n, defSize: c, lastSize: p, canResize: v } = this.nestMap_.get(e);
854
+ if (!v) return;
855
+ const m = t || p || c;
856
+ r.classList.remove("closed"), n.classList.remove("closed", "collapsed"), setTimeout(() => {
857
+ this.resize(e, m, s, i);
858
+ }, 50);
859
+ }
860
+ close(e, t = C, s = !1) {
861
+ const { dragEl: i, canResize: r, nestEl: n } = this.nestMap_.get(e);
862
+ if (!r) return;
863
+ this.dispatchSplitEvent(d.SPLIT_WILL_CLOSE, {
864
+ nestName: e,
865
+ nestEl: n
866
+ });
867
+ const c = () => {
868
+ i.classList.add("collapsed"), this.dispatchSplitEvent(d.SPLIT_DID_CLOSE, {
869
+ nestName: e,
870
+ nestEl: n
871
+ }), t();
872
+ };
873
+ this.resize(e, 0, c, s);
874
+ }
875
+ open(e, t = C, s = !1) {
876
+ const { defSize: i, lastSize: r, dragEl: n, canResize: c, nestEl: p } = this.nestMap_.get(e);
877
+ if (!c) return;
878
+ this.dispatchSplitEvent(d.SPLIT_WILL_OPEN, {
879
+ nestName: e,
880
+ nestEl: p
881
+ }), n.classList.remove("collapsed", "closed");
882
+ const v = r || i, m = () => {
883
+ this.dispatchSplitEvent(d.SPLIT_DID_OPEN, {
884
+ nestName: e,
885
+ nestEl: p
886
+ }), t();
887
+ };
888
+ this.resize(e, v, m, s);
889
+ }
890
+ toggle(e, t, s = !1) {
891
+ this.nestMap_.get(e).sizeNow === 0 ? this.open(e, t, s) : this.close(e, t, s);
892
+ }
893
+ addSplit(e = void 0, t = "EW", s = 100, i = 100, r = [], n = [], c = [], p = [], v = []) {
894
+ const m = e || this.getElement();
895
+ if (this.splitNests_.has(m)) return ["Already used!", m];
896
+ st(m, t), this.splitNests_.add(m);
897
+ let S = "";
898
+ if (e) {
899
+ const D = [...this.nestMap_.entries()].find(([M, { nestEl: y }]) => y === e);
900
+ if (D) S = D[0];
901
+ else return ["Element not managed by this component", e];
902
+ }
903
+ const o = `${S}A`, a = oe(s, ["zoo_nest__A", o, ...r]), h = new H(t);
904
+ h.domFunc = ae([`zoo_drag_${o}`, ...p], v), h.render(m), this.nestMap_.set(o, {
905
+ side: "A",
906
+ nestEl: a,
907
+ dragger: h,
908
+ dragEl: h.getElement(),
909
+ defSize: s,
910
+ sizeNow: -1,
911
+ canResize: !0
912
+ });
913
+ const u = `${S}B`, g = it(["zoo_nest__B", u, ...n]);
914
+ this.nestMap_.set(u, {
915
+ nestEl: g,
916
+ canResize: !1
917
+ });
918
+ const E = `${S}C`, _ = new H(t);
919
+ _.domFunc = ae([`zoo_drag_${E}`, ...p], v), _.render(m);
920
+ const T = oe(i, ["zoo_nest__C", E, ...c]);
921
+ this.nestMap_.set(E, {
922
+ side: "C",
923
+ nestEl: T,
924
+ dragger: _,
925
+ dragEl: _.getElement(),
926
+ defSize: i,
927
+ sizeNow: -1,
928
+ canResize: !0
929
+ }), [
930
+ a,
931
+ h.getElement(),
932
+ g,
933
+ _.getElement(),
934
+ T
935
+ ].forEach((D) => m.appendChild(D));
936
+ let Y = 0;
937
+ const X = (D, M, y, Ce) => {
938
+ let F;
939
+ const Q = D === "NS" ? "height" : "width", Te = D === "NS" ? "deltaY" : "deltaX";
940
+ return (K) => {
941
+ switch (K.detail.value_) {
942
+ case d.COMP_DRAG_START:
943
+ F = M.getBoundingClientRect()[Q], Y = g.getBoundingClientRect()[Q] + F, this.nestMap_.get(y).dragEl.classList.remove("collapsed");
944
+ break;
945
+ case d.COMP_DRAG_MOVE: {
946
+ const Z = Math.min(Y, F + Ce * K.detail.data_[Te]);
947
+ this.nestMap_.get(y).lastSize = Z, M.style.flexBasis = Z + "px";
948
+ break;
949
+ }
950
+ case d.COMP_DRAG_END:
951
+ this.dispatchSplitEvent(d.COMP_DRAG_END, this.nestMap_.get(y));
952
+ break;
953
+ default:
954
+ break;
955
+ }
956
+ };
957
+ };
958
+ this.listen(h, A.compEventCode(), X(t, a, o, 1)), this.listen(_, A.compEventCode(), X(t, T, E, -1)), this.listen(h.getElement(), l.DBLCLICK, () => this.toggle(o)), this.listen(_.getElement(), l.DBLCLICK, () => this.toggle(E)), this.listen(h.getElement().querySelector(".zoo_grabber"), l.CLICK, () => this.toggle(o)), this.listen(_.getElement().querySelector(".zoo_grabber"), l.CLICK, () => this.toggle(E)), this.listen(a, l.TRANSITIONEND, (D) => {
959
+ if (D.propertyName === "flex-basis" && D.target === a) {
960
+ const M = this.nestCallbackMap_.get(o);
961
+ this.nestCallbackMap_.delete(o), M && M(), this.dispatchSplitEvent(d.SPLIT_TRANSITION_END, this.nestMap_.get(o));
962
+ }
963
+ }), this.listen(T, l.TRANSITIONEND, (D) => {
964
+ if (D.propertyName === "flex-basis" && D.target === T) {
965
+ const M = this.nestCallbackMap_.get(E);
966
+ this.nestCallbackMap_.delete(E), M && M(), this.dispatchSplitEvent(d.SPLIT_TRANSITION_END, this.nestMap_.get(E));
967
+ }
968
+ });
969
+ }
970
+ dispatchSplitEvent(e, t) {
971
+ const s = new k(e, t), i = L.makeEvent(d.SPLIT, s);
972
+ return this.dispatchEvent(i);
973
+ }
974
+ }, st = (e, t) => (e.classList.add("zoo_split", `zoo_split__${t.toLowerCase()}`), e), oe = (e, t = []) => {
975
+ const s = document.createElement("div");
976
+ return s.setAttribute("id", f(7)), s.classList.add("zoo_nest", "zoo_nest__outer", ...t), s.style.flexBasis = e + "px", s;
977
+ }, it = (e = []) => {
978
+ const t = document.createElement("div");
979
+ return t.setAttribute("id", f(7)), t.classList.add("zoo_nest", "zoo_nest__inner", ...e), t;
980
+ }, ae = (e = [], t = []) => () => {
981
+ const s = document.createElement("div");
982
+ s.setAttribute("id", f(7)), s.classList.add("zoo_dragger", ...e);
983
+ const i = document.createElement("div");
984
+ return i.classList.add("zoo_grabber", ...t), s.appendChild(i), s;
985
+ }, rt = {
986
+ toggle_tree: function(e, t) {
987
+ Pe(e, t);
988
+ },
989
+ "tree_toggle-children": function(e, t) {
990
+ Ae(t, e);
991
+ }
992
+ }, _e = {
993
+ search: function(e, t) {
994
+ let s = `${e.href}`;
995
+ const i = e.formData.q, r = e.targetval;
996
+ if (i !== "" && (s = `${s}?q=${i}`), r !== "") {
997
+ let n = r;
998
+ r.includes("page=") && (n = r.split("&").filter((c) => !c.includes("page=")).join("&")), s = i !== "" ? `${s}&${n}` : `${s}?${n}`;
999
+ }
1000
+ this.user.fetchAndSplit(s, t.abortController.signal).then((n) => t.onReplacePartialDom(n, e.zvptarget));
1001
+ },
1002
+ reset_search: function(e, t) {
1003
+ const s = e.trigger.closest("form");
1004
+ t.removeFromQParams("q"), s.elements.q.value = "", s.dispatchEvent(new Event("submit"));
1005
+ }
1006
+ }, Se = {
1007
+ paginate: function(e, t) {
1008
+ const s = `${e.href}?${e.targetval}`;
1009
+ this.user.fetchAndSplit(s, t.abortController.signal).then((i) => t.onReplacePartialDom(i, e.zvptarget));
1010
+ },
1011
+ list_filter: function(e, t) {
1012
+ const s = `${e.href}?${e.targetval}`;
1013
+ this.user.fetchAndSplit(s, t.abortController.signal).then((i) => t.onReplacePartialDom(i, e.zvptarget));
1014
+ }
1015
+ }, nt = /* @__PURE__ */ le({
1016
+ MdcTreeHandlers: () => rt,
1017
+ QueryParamHandlers: () => Se,
1018
+ SearchHandlers: () => _e
1019
+ }), De = class extends L {
1020
+ #e = void 0;
1021
+ #t = void 0;
1022
+ #s = {};
1023
+ static viewEventCode() {
1024
+ return d.VIEW;
1025
+ }
1026
+ constructor() {
1027
+ super(), this.panelMap = /* @__PURE__ */ new Map(), this.user_ = void 0, this.split_ = void 0, this.panelEventMap_ = this.initPanelEventsInternal_(), this.switchViewMap_ = /* @__PURE__ */ new Map(), this.metaData_ = /* @__PURE__ */ new Map();
1028
+ }
1029
+ set recordHistory(e) {
1030
+ this.#t = e;
1031
+ }
1032
+ get recordHistory() {
1033
+ return this.#t;
1034
+ }
1035
+ set registerViewConstructor(e) {
1036
+ this.#e = e;
1037
+ }
1038
+ get registerViewConstructor() {
1039
+ return this.#e;
1040
+ }
1041
+ set utils(e) {
1042
+ this.#s = e;
1043
+ }
1044
+ get utils() {
1045
+ return this.#s;
1046
+ }
1047
+ set split(e) {
1048
+ this.split_ = e, this.listen(this.split_, d.SPLIT, (t) => {
1049
+ const s = t.detail.getValue(), i = t.detail.getData();
1050
+ switch (s) {
1051
+ case d.SPLIT_WILL_OPEN:
1052
+ this.onSplitWillOpen(i);
1053
+ break;
1054
+ case d.SPLIT_WILL_CLOSE:
1055
+ this.onSplitWillClose(i);
1056
+ break;
1057
+ case d.SPLIT_DID_CLOSE:
1058
+ this.onSplitDidClose(i);
1059
+ break;
1060
+ case d.SPLIT_DID_OPEN:
1061
+ this.onSplitDidOpen(i);
1062
+ break;
1063
+ case d.SPLIT_TRANSITION_END:
1064
+ break;
1065
+ default:
1066
+ C();
1067
+ }
1068
+ });
1069
+ }
1070
+ get split() {
1071
+ if (!this.split_) throw new Error("No SPLIT component available");
1072
+ return this.split_;
1073
+ }
1074
+ set user(e) {
1075
+ this.user_ = e, this.panelMap.forEach((t) => t.user = e);
1076
+ }
1077
+ get user() {
1078
+ return this.user_ || (this.user_ = new B()), this.user_;
1079
+ }
1080
+ render() {
1081
+ this.initPanelEvents(), this.preRender(), this.configurePanels(), this.displayPanels(), this.postRender();
1082
+ }
1083
+ initPanelEvents() {
1084
+ }
1085
+ preRender() {
1086
+ }
1087
+ configurePanels() {
1088
+ }
1089
+ displayPanels() {
1090
+ }
1091
+ postRender() {
1092
+ }
1093
+ dispose() {
1094
+ [...this.panelMap.values()].forEach((e) => e.dispose()), super.dispose();
1095
+ }
1096
+ addPanelToView(e, t) {
1097
+ t.user = this.user, this.removePanelByName(e), this.panelMap.set(e, t), this.listen(t, G.panelEventCode(), this.onPanelEvent.bind(this));
1098
+ }
1099
+ removePanelByName(e) {
1100
+ this.panelMap.has(e) && this.panelMap.get(e).dispose();
1101
+ }
1102
+ removePanel(e) {
1103
+ const [t, s] = [...this.panelMap.entries()].find(([i, r]) => r === e);
1104
+ t && s && (s.dispose(), this.panelMap.delete(t));
1105
+ }
1106
+ getPanelByName(e) {
1107
+ return this.panelMap.get(e);
1108
+ }
1109
+ broadcastToPanels(e) {
1110
+ [...this.panelMap.values()].forEach((t) => t.onViewDataBroadcast(e));
1111
+ }
1112
+ initPanelEventsInternal_() {
1113
+ const e = /* @__PURE__ */ new Map();
1114
+ return e.set("destroy_me", (t, s) => {
1115
+ this.removePanel(s);
1116
+ }), e.set("switch_view", (t, s) => {
1117
+ this.debugMe("switch_view received: eventData", t);
1118
+ const i = t.view;
1119
+ this.switchViewMap_.has(i) ? this.switchViewMap_.get(i)(t, s) : this.debugMe("NO VIEW FOUND FOR:", i, this.switchViewMap_);
1120
+ }), Object.entries({
1121
+ ..._e,
1122
+ ...Se
1123
+ }).forEach(([t, s]) => {
1124
+ e.set(t, s.bind(this));
1125
+ }), e;
1126
+ }
1127
+ mapPanEv(e, t) {
1128
+ this.panelEventMap_.set(e, t);
1129
+ }
1130
+ mapSwitchView(e, t) {
1131
+ this.switchViewMap_.set(e, t);
1132
+ }
1133
+ onPanelEvent(e) {
1134
+ let t = e.detail.getValue();
1135
+ if (this.debugMe(`PanelEvent Value: ${t}`), !q(t)) {
1136
+ this.debugMe(`The panel received an event without a value.
1137
+ There is nothing we can do with that.`);
1138
+ return;
1139
+ }
1140
+ const s = e.detail.getData();
1141
+ t?.startsWith("switch_view:") && (s.view = t.split(":")[1], t = "switch_view");
1142
+ const i = e.target;
1143
+ this.panelEventMap_.has(t) ? this.panelEventMap_.get(t)(s, i) : this.debugMe(`NO EVENT MATCH - This usually you are missing
1144
+ a "mapPanEv(${t} ..." statement in your panel JS
1145
+ or you have a "event='${t}'" attribute in your panel HTML`, {
1146
+ event: e,
1147
+ eventValue: t,
1148
+ eventData: s,
1149
+ panel: i.constructor.name
1150
+ });
1151
+ }
1152
+ onSplitWillOpen(e) {
1153
+ }
1154
+ onSplitWillClose(e) {
1155
+ }
1156
+ onSplitDidClose(e) {
1157
+ }
1158
+ onSplitDidOpen(e) {
1159
+ }
1160
+ dispatchViewEvent(e, t) {
1161
+ const s = new k(e, t), i = L.makeEvent(d.VIEW, s);
1162
+ return this.dispatchEvent(i);
1163
+ }
1164
+ get metaData() {
1165
+ return this.metaData_;
1166
+ }
1167
+ setMetaData(e, t) {
1168
+ return this.metaData_.set(e, t), this.metaData;
1169
+ }
1170
+ getMetaData(e) {
1171
+ return this.metaData_.get(e);
1172
+ }
1173
+ hasMetaData(e) {
1174
+ return this.metaData_.has(e);
1175
+ }
1176
+ };
1177
+ function ot(e) {
1178
+ if (e == null) throw new TypeError("Cannot convert undefined or null to object");
1179
+ for (var t = Object(e), s = 1, i = arguments.length; s < i; ) {
1180
+ var r = arguments[s];
1181
+ if (r != null)
1182
+ for (var n in r) Ne(n, r) && (t[n] = r[n]);
1183
+ s += 1;
1184
+ }
1185
+ return t;
1186
+ }
1187
+ var at = typeof Object.assign == "function" ? Object.assign : ot, lt = /* @__PURE__ */ ke(function(t, s) {
1188
+ return at({}, t, s);
1189
+ }), ct = class extends L {
1190
+ #e = /* @__PURE__ */ new Map();
1191
+ #t = null;
1192
+ #s = void 0;
1193
+ #i = void 0;
1194
+ #r = /* @__PURE__ */ new Map();
1195
+ #n = {};
1196
+ constructor() {
1197
+ super(), this.#r = this.#o(), window.addEventListener("popstate", (e) => {
1198
+ e.state !== null && this.navTo(e.state);
1199
+ }), this.doOnBeat(() => {
1200
+ document.dispatchEvent(new CustomEvent("zoo-tick-60", { detail: { timestamp: Date.now() } }));
1201
+ }, 6e4);
1202
+ }
1203
+ set split(e) {
1204
+ this.#i = e;
1205
+ }
1206
+ get split() {
1207
+ if (!this.#i) throw new Error("No SPLIT component available");
1208
+ return this.#i;
1209
+ }
1210
+ set user(e) {
1211
+ this.#s = e, this.#t && (this.#t.user = this.user);
1212
+ }
1213
+ get user() {
1214
+ return this.#s || (this.#s = new B()), this.#s;
1215
+ }
1216
+ get utils() {
1217
+ return this.#n;
1218
+ }
1219
+ registerUtil(e) {
1220
+ this.#n = lt(this.#n, e);
1221
+ }
1222
+ #o() {
1223
+ return (/* @__PURE__ */ new Map()).set("switch_view", (e, t) => {
1224
+ if (this.#e.has(e.view)) {
1225
+ const s = this.#e.get(e.view)(e.pk || e.recordId, e);
1226
+ this.switchView(s);
1227
+ }
1228
+ });
1229
+ }
1230
+ mapViewEv(e, t) {
1231
+ this.#r.set(e, t);
1232
+ }
1233
+ registerViewConstructor(e, t) {
1234
+ this.#e.set(e, t);
1235
+ }
1236
+ onViewEvent(e) {
1237
+ const t = e.detail.getValue(), s = e.detail.getData(), i = e.target;
1238
+ this.#r.has(t) ? this.#r.get(t)(s, i) : console.warn("Unhandled VIEW Event:", e, t, s, i);
1239
+ }
1240
+ setActiveView(e) {
1241
+ this.#t && (this.stopListeningTo(this.#t), this.#t.dispose(), this.#t = null), this.#t = e, this.#t.render();
1242
+ }
1243
+ initView(e) {
1244
+ return e.user = this.user, e.split = this.split, e.utils = this.utils, e.recordHistory = this.recordHistory.bind(this), e.registerViewConstructor = this.registerViewConstructor.bind(this), this.listen(e, De.viewEventCode(), this.onViewEvent.bind(this)), e;
1245
+ }
1246
+ switchView(e) {
1247
+ this.setActiveView(this.initView(e));
1248
+ }
1249
+ recordHistory(e) {
1250
+ this.debugMe("HISTORY", e), e.init ? history.replaceState(e, "", document.location.href) : e.history || history.pushState(e, "", null);
1251
+ }
1252
+ navTo = (e) => {
1253
+ e.history = !0;
1254
+ const t = e.view, s = this.#t;
1255
+ if (s.switchViewMap_.has(t))
1256
+ this.debugMe("NAV:VIEW:MAP", e), s.switchViewMap_.get(t)(e);
1257
+ else if (this.#e.has(t)) {
1258
+ const i = this.#e.get(t)(e.pk, e);
1259
+ this.debugMe("NAV:NEW:VIEW", e), this.switchView(i);
1260
+ }
1261
+ };
1262
+ };
1263
+ async function ht(e = {}) {
1264
+ const { registerCarbonLibrary: t } = await import("./chunks/register-DqgfpeXv.js");
1265
+ return t(e);
1266
+ }
1267
+ async function dt() {
1268
+ const { registerMdcLibrary: e } = await import("./chunks/register-Bx7SlevL.js");
1269
+ return e();
1270
+ }
1271
+ var gt = {
1272
+ Evt: L,
1273
+ Component: A,
1274
+ Dragger: H,
1275
+ Panel: G,
1276
+ FormPanel: et,
1277
+ Split: tt,
1278
+ UserManager: B,
1279
+ View: De,
1280
+ Conductor: ct,
1281
+ DataBinder: Ve,
1282
+ UiEventType: d,
1283
+ domUtils: Re,
1284
+ uriUtils: qe,
1285
+ registerCarbonLibrary: ht,
1286
+ registerMdcLibrary: dt,
1287
+ ComponentLibraryRegistry: R,
1288
+ handlers: nt,
1289
+ zoo: Ue
1290
+ };
2
1291
  export {
3
- r as Binder,
4
- e as Component,
5
- i as ComponentLibraryRegistry,
6
- n as Conductor,
7
- o as Dragger,
8
- t as Evt,
9
- l as FormPanel,
10
- d as Panel,
11
- g as Split,
12
- y as UiEventType,
13
- m as UserManager,
14
- p as View,
15
- C as default,
16
- U as domUtils,
17
- b as handlers,
18
- u as registerCarbonLibrary,
19
- v as registerMdcLibrary,
20
- L as uriUtils,
21
- P as zoo
1292
+ Ve as Binder,
1293
+ A as Component,
1294
+ R as ComponentLibraryRegistry,
1295
+ ct as Conductor,
1296
+ H as Dragger,
1297
+ L as Evt,
1298
+ et as FormPanel,
1299
+ G as Panel,
1300
+ tt as Split,
1301
+ d as UiEventType,
1302
+ B as UserManager,
1303
+ De as View,
1304
+ gt as default,
1305
+ Re as domUtils,
1306
+ nt as handlers,
1307
+ ht as registerCarbonLibrary,
1308
+ dt as registerMdcLibrary,
1309
+ qe as uriUtils,
1310
+ Ue as zoo
22
1311
  };