@trintel/zooy 1.0.20 → 1.1.1

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 (224) hide show
  1. package/dist/chunks/component-library-registry-BBQV6Kpv.js +1 -0
  2. package/dist/chunks/component-library-registry-DB5UeqC2.js +58 -0
  3. package/dist/chunks/register-D3pWAXhm.js +266 -0
  4. package/dist/chunks/register-D7SMu1Gy.js +1372 -0
  5. package/dist/chunks/register-HYODt48Q.js +1 -0
  6. package/dist/chunks/register-g5KUNRdI.js +1 -0
  7. package/dist/chunks/{tree-utils-D7kpr-Wj.js → tree-utils-B2JEGXHR.js} +2 -1
  8. package/dist/chunks/tree-utils-BYnipT-p.js +1 -0
  9. package/dist/chunks/zoo-CY2QpG41.js +52 -0
  10. package/dist/chunks/zoo-DgdxBjlN.js +390 -0
  11. package/dist/zooy.cjs.js +4 -4
  12. package/dist/zooy.es.js +226 -237
  13. package/package.json +1 -1
  14. package/dist/chunks/16-B2HVhDIW.js +0 -1
  15. package/dist/chunks/16-B9Ad4Fob.js +0 -19
  16. package/dist/chunks/16-BXsOcjPx.js +0 -19
  17. package/dist/chunks/16-BZCBqUx6.js +0 -1
  18. package/dist/chunks/16-BmOXGjZf.js +0 -1
  19. package/dist/chunks/16-BsQdCz_w.js +0 -27
  20. package/dist/chunks/16-C-Rp3Nso.js +0 -1
  21. package/dist/chunks/16-C36sVk5F.js +0 -26
  22. package/dist/chunks/16-CZycT1I8.js +0 -1
  23. package/dist/chunks/16-Ce_hDgPW.js +0 -1
  24. package/dist/chunks/16-CinLDpNC.js +0 -19
  25. package/dist/chunks/16-Cj0hOjaI.js +0 -1
  26. package/dist/chunks/16-Cx-PCMJJ.js +0 -26
  27. package/dist/chunks/16-D8XFc44J.js +0 -110
  28. package/dist/chunks/16-DVx7Niko.js +0 -33
  29. package/dist/chunks/16-DZJZDJYY.js +0 -1
  30. package/dist/chunks/16-DoCnqtvj.js +0 -35
  31. package/dist/chunks/16-DyCV3lkl.js +0 -19
  32. package/dist/chunks/16-SwMpxJpB.js +0 -19
  33. package/dist/chunks/16-jVjxC8Bu.js +0 -1
  34. package/dist/chunks/16-ma2Q_204.js +0 -1
  35. package/dist/chunks/16-qZ3FOIw0.js +0 -1
  36. package/dist/chunks/20-BwzzGcZC.js +0 -80
  37. package/dist/chunks/20-CqNSki3g.js +0 -1
  38. package/dist/chunks/accordion-0mybViUv.js +0 -236
  39. package/dist/chunks/accordion-CvcaulG8.js +0 -45
  40. package/dist/chunks/badge-indicator-BUdDkz6Z.js +0 -18
  41. package/dist/chunks/badge-indicator-DuYbJV5o.js +0 -1
  42. package/dist/chunks/breadcrumb-CYKgjbdB.js +0 -19
  43. package/dist/chunks/breadcrumb-DB0PkiBX.js +0 -140
  44. package/dist/chunks/button-1g5b3tWS.js +0 -268
  45. package/dist/chunks/button-BKj8189A.js +0 -4
  46. package/dist/chunks/button-DAOoyQ8b.js +0 -67
  47. package/dist/chunks/button-DfRkC-OR.js +0 -72
  48. package/dist/chunks/button-skeleton-C0mW3D7v.js +0 -44
  49. package/dist/chunks/button-skeleton-KFGdwtUH.js +0 -21
  50. package/dist/chunks/carbon-element-BsPGNbmz.js +0 -1
  51. package/dist/chunks/carbon-element-Z5iEnFdr.js +0 -24
  52. package/dist/chunks/checkbox-CBD8Qmjx.js +0 -37
  53. package/dist/chunks/checkbox-CewERWBu.js +0 -40
  54. package/dist/chunks/checkbox-CxxD4wgP.js +0 -176
  55. package/dist/chunks/checkbox-DKS7fw29.js +0 -168
  56. package/dist/chunks/class-map-BwUbMyhc.js +0 -1
  57. package/dist/chunks/class-map-qeLb1IA_.js +0 -27
  58. package/dist/chunks/code-snippet-BJhK27fG.js +0 -205
  59. package/dist/chunks/code-snippet-BUQFh_v7.js +0 -53
  60. package/dist/chunks/collection-helpers-DPVzwwb8.js +0 -7
  61. package/dist/chunks/collection-helpers-g7DrZSRQ.js +0 -1
  62. package/dist/chunks/combo-box-BCOUQHyG.js +0 -39
  63. package/dist/chunks/combo-box-Bms5blM6.js +0 -325
  64. package/dist/chunks/combo-button-BSBAvBIW.js +0 -15
  65. package/dist/chunks/combo-button-Bc3hx7VJ.js +0 -92
  66. package/dist/chunks/component-library-registry-CJ1Yb_8E.js +0 -98
  67. package/dist/chunks/component-library-registry-Co7WzTfw.js +0 -1
  68. package/dist/chunks/content-switcher-BuLZ3Aae.js +0 -1
  69. package/dist/chunks/content-switcher-DIODRHwc.js +0 -2
  70. package/dist/chunks/content-switcher-item-0YPDXW1z.js +0 -27
  71. package/dist/chunks/content-switcher-item-DkRD8k8n.js +0 -272
  72. package/dist/chunks/copy-button-XD4reiTK.js +0 -121
  73. package/dist/chunks/copy-button-eI9B8iKc.js +0 -17
  74. package/dist/chunks/data-table-BImLEoIA.js +0 -1243
  75. package/dist/chunks/data-table-YLNCQhJx.js +0 -158
  76. package/dist/chunks/date-picker-CWIAwkKj.js +0 -66
  77. package/dist/chunks/date-picker-CXjiOkZH.js +0 -2167
  78. package/dist/chunks/decorate-Cnz2C5jL.js +0 -62
  79. package/dist/chunks/decorate-DT052P_1.js +0 -72
  80. package/dist/chunks/decorators-CHZSYVOk.js +0 -1
  81. package/dist/chunks/decorators-CK8kfuyw.js +0 -87
  82. package/dist/chunks/deep-shadow-contains-BlQ_KSu4.js +0 -15
  83. package/dist/chunks/deep-shadow-contains-OTuAt1VE.js +0 -1
  84. package/dist/chunks/directive-CtTB8jL3.js +0 -31
  85. package/dist/chunks/directive-DWoJrOxt.js +0 -1
  86. package/dist/chunks/dropdown-Cg9JduA5.js +0 -4
  87. package/dist/chunks/dropdown-item-CYwutWei.js +0 -677
  88. package/dist/chunks/dropdown-item-H53zayYk.js +0 -73
  89. package/dist/chunks/dropdown-jdFaaXEa.js +0 -32
  90. package/dist/chunks/file-uploader-6FOP_GAh.js +0 -79
  91. package/dist/chunks/file-uploader-BTk1MqcJ.js +0 -342
  92. package/dist/chunks/floating-controller-BphaSUPY.js +0 -1012
  93. package/dist/chunks/floating-controller-C4ivnNvp.js +0 -1
  94. package/dist/chunks/focus-C1mbe9-i.js +0 -1
  95. package/dist/chunks/focus-Dpis0wA_.js +0 -13
  96. package/dist/chunks/form-BEmId1-D.js +0 -20
  97. package/dist/chunks/form-BmSVyKnm.js +0 -1
  98. package/dist/chunks/form-DUzcwJO9.js +0 -23
  99. package/dist/chunks/form-crnrWPVH.js +0 -3
  100. package/dist/chunks/form-group-Dax3eYD4.js +0 -43
  101. package/dist/chunks/form-group-dIvuqjw2.js +0 -12
  102. package/dist/chunks/heading-BbB6mvMG.js +0 -47
  103. package/dist/chunks/heading-UN9MO1TN.js +0 -5
  104. package/dist/chunks/host-listener-BBI7oAFw.js +0 -37
  105. package/dist/chunks/host-listener-BzjpIsFF.js +0 -1
  106. package/dist/chunks/host-listener-CtA1D-wt.js +0 -1
  107. package/dist/chunks/host-listener-DJEakRMM.js +0 -17
  108. package/dist/chunks/icon-B_S1_kDJ.js +0 -1
  109. package/dist/chunks/icon-CINf5Icb.js +0 -28
  110. package/dist/chunks/icon-button-BtE0-oCE.js +0 -1
  111. package/dist/chunks/icon-button-CACU21y5.js +0 -16
  112. package/dist/chunks/icon-button-D2STrB4d.js +0 -6
  113. package/dist/chunks/icon-button-D569kvcZ.js +0 -84
  114. package/dist/chunks/icon-indicator-BkILzP5o.js +0 -1
  115. package/dist/chunks/icon-indicator-D_IHkSon.js +0 -445
  116. package/dist/chunks/icon-loader-B9uu2SkP.js +0 -7
  117. package/dist/chunks/icon-loader-CZ8MQjNl.js +0 -1
  118. package/dist/chunks/icon-loader-utils-BKulYpY6.js +0 -110
  119. package/dist/chunks/icon-loader-utils-C-vWa1iy.js +0 -1
  120. package/dist/chunks/if-defined-C4rY5CqG.js +0 -1
  121. package/dist/chunks/if-defined-DvPh-nZx.js +0 -5
  122. package/dist/chunks/if-non-empty-CqihXhSU.js +0 -1
  123. package/dist/chunks/if-non-empty-DIcT03Pc.js +0 -5
  124. package/dist/chunks/inline-loading-BIB-coVZ.js +0 -83
  125. package/dist/chunks/inline-loading-C4MpPNzv.js +0 -12
  126. package/dist/chunks/link-Bz8knkhr.js +0 -1
  127. package/dist/chunks/link-CyrOt3Yx.js +0 -24
  128. package/dist/chunks/link-DlDoN1r0.js +0 -1
  129. package/dist/chunks/link-MrslkhR7.js +0 -106
  130. package/dist/chunks/lit-BNk7ncU9.js +0 -3
  131. package/dist/chunks/lit-uyM4-HrV.js +0 -552
  132. package/dist/chunks/loading-CUUY8ITP.js +0 -68
  133. package/dist/chunks/loading-CX_B-YYv.js +0 -1
  134. package/dist/chunks/loading-SDDHeWof.js +0 -1
  135. package/dist/chunks/loading-icon-BsInpAjb.js +0 -16
  136. package/dist/chunks/loading-icon-iCI-C5ZG.js +0 -24
  137. package/dist/chunks/loading-xKooWNUJ.js +0 -2
  138. package/dist/chunks/menu-D2kFhclQ.js +0 -56
  139. package/dist/chunks/menu-DG7s9yXJ.js +0 -682
  140. package/dist/chunks/modal-C2EEHjQh.js +0 -27
  141. package/dist/chunks/modal-DEGWE2iT.js +0 -414
  142. package/dist/chunks/multi-select-BXST526m.js +0 -63
  143. package/dist/chunks/multi-select-CgDCOBWa.js +0 -384
  144. package/dist/chunks/notification-BEvb6zBP.js +0 -89
  145. package/dist/chunks/notification-DLOgEfr6.js +0 -426
  146. package/dist/chunks/number-input-CRIgLD3k.js +0 -284
  147. package/dist/chunks/number-input-CiXkIGVz.js +0 -76
  148. package/dist/chunks/on-D2_IwJad.js +0 -8
  149. package/dist/chunks/on-_BJL2XbM.js +0 -1
  150. package/dist/chunks/overflow-menu-BSMy7pUY.js +0 -34
  151. package/dist/chunks/overflow-menu-CGghH3Mz.js +0 -387
  152. package/dist/chunks/pagination-4SuGaSx6.js +0 -77
  153. package/dist/chunks/pagination-D7VFRyN2.js +0 -293
  154. package/dist/chunks/password-input-Cx2ItLqG.js +0 -68
  155. package/dist/chunks/password-input-NoZg_DjL.js +0 -210
  156. package/dist/chunks/popover--wvkgqdv.js +0 -1
  157. package/dist/chunks/popover-Ca4f4ZCE.js +0 -6
  158. package/dist/chunks/popover-content-BOaLSQt3.js +0 -15
  159. package/dist/chunks/popover-content-Bi-ydBhZ.js +0 -277
  160. package/dist/chunks/progress-bar-BTHREDPK.js +0 -101
  161. package/dist/chunks/progress-bar-p0YwLsuh.js +0 -22
  162. package/dist/chunks/progress-indicator-BP8k-xTC.js +0 -252
  163. package/dist/chunks/progress-indicator-cr687P29.js +0 -35
  164. package/dist/chunks/radio-button-CNOPBUK8.js +0 -396
  165. package/dist/chunks/radio-button-CU2ngHxo.js +0 -44
  166. package/dist/chunks/radio-group-manager-iPCcbWB8.js +0 -60
  167. package/dist/chunks/radio-group-manager-zfU1GLIW.js +0 -1
  168. package/dist/chunks/register-BXKEXKsC.js +0 -15
  169. package/dist/chunks/register-Bx7SlevL.js +0 -8198
  170. package/dist/chunks/register-CnJjkv07.js +0 -1
  171. package/dist/chunks/register-DqgfpeXv.js +0 -1399
  172. package/dist/chunks/search-BYWQ80wI.js +0 -4
  173. package/dist/chunks/search-BgSG9LA9.js +0 -22
  174. package/dist/chunks/search-CET7sHGW.js +0 -173
  175. package/dist/chunks/search-CUuRRsTX.js +0 -31
  176. package/dist/chunks/select-BifhTIxt.js +0 -37
  177. package/dist/chunks/select-Dh4AFZ2v.js +0 -4
  178. package/dist/chunks/select-item-BvwJ4Wc-.js +0 -77
  179. package/dist/chunks/select-item-DLWdT1CE.js +0 -272
  180. package/dist/chunks/shared-enums-BdDASwq-.js +0 -1
  181. package/dist/chunks/shared-enums-Cd0vBQFM.js +0 -6
  182. package/dist/chunks/skeleton-placeholder-Czj5sAeI.js +0 -28
  183. package/dist/chunks/skeleton-placeholder-aS-woCl8.js +0 -1
  184. package/dist/chunks/skeleton-text-BIHdj7Jx.js +0 -1
  185. package/dist/chunks/skeleton-text-CZ2bSuDE.js +0 -6
  186. package/dist/chunks/skeleton-text-DJrow5mh.js +0 -1
  187. package/dist/chunks/skeleton-text-INjLvc2Y.js +0 -71
  188. package/dist/chunks/slider-CoHP_UJ2.js +0 -878
  189. package/dist/chunks/slider-DhIZP9Ms.js +0 -246
  190. package/dist/chunks/stack-C66k74Zo.js +0 -1
  191. package/dist/chunks/stack-vrK3hQYJ.js +0 -85
  192. package/dist/chunks/structured-list-BWjXHFbX.js +0 -19
  193. package/dist/chunks/structured-list-lqhD2RqL.js +0 -234
  194. package/dist/chunks/tabs-DixpRz83.js +0 -58
  195. package/dist/chunks/tabs-DkIGB3cC.js +0 -316
  196. package/dist/chunks/tag-DpezbQqm.js +0 -93
  197. package/dist/chunks/tag-rQOD2v2s.js +0 -412
  198. package/dist/chunks/text-input-BYjtsh0H.js +0 -26
  199. package/dist/chunks/text-input-C2jRG8Lb.js +0 -72
  200. package/dist/chunks/text-input-DvygxhCJ.js +0 -4
  201. package/dist/chunks/text-input-DzSNpORC.js +0 -309
  202. package/dist/chunks/textarea-BZ34-RaT.js +0 -190
  203. package/dist/chunks/textarea-Be3YTme6.js +0 -57
  204. package/dist/chunks/tile-CQ9nINGM.js +0 -524
  205. package/dist/chunks/tile-DNWy90OU.js +0 -74
  206. package/dist/chunks/time-picker-CJ_ONMZi.js +0 -267
  207. package/dist/chunks/time-picker-DK_Lu3AK.js +0 -52
  208. package/dist/chunks/toggle-BBdusHAx.js +0 -36
  209. package/dist/chunks/toggle-Bfx6cOUM.js +0 -156
  210. package/dist/chunks/toggle-tip-CkH7fFX4.js +0 -46
  211. package/dist/chunks/toggle-tip-DF_GKfoM.js +0 -169
  212. package/dist/chunks/tooltip-COwRDvmc.js +0 -85
  213. package/dist/chunks/tooltip-DbGsUOZ8.js +0 -23
  214. package/dist/chunks/tooltip-content-BDcgoT6r.js +0 -1
  215. package/dist/chunks/tooltip-content-CkxKIMDr.js +0 -116
  216. package/dist/chunks/tree-utils-AeNlEhIR.js +0 -1
  217. package/dist/chunks/tree-view-BmoD8n0Y.js +0 -292
  218. package/dist/chunks/tree-view-Drfa7DNm.js +0 -82
  219. package/dist/chunks/unsafe-html-BP-z2WTp.js +0 -26
  220. package/dist/chunks/unsafe-html-Dego4Lbw.js +0 -1
  221. package/dist/chunks/validity-CMW3OiFU.js +0 -31
  222. package/dist/chunks/validity-zT-XWh2t.js +0 -1
  223. package/dist/chunks/zoo-Bb5HHyrn.js +0 -721
  224. package/dist/chunks/zoo-C_CBOaHL.js +0 -52
@@ -1,52 +0,0 @@
1
- const y=require("./component-library-registry-Co7WzTfw.js"),h=require("./lit-BNk7ncU9.js");function o(r){return r!=null&&typeof r=="object"&&r["@@functional/placeholder"]===!0}function f(r){return function t(e){return arguments.length===0||o(e)?t:r.apply(this,arguments)}}function u(r){return function t(e,n){switch(arguments.length){case 0:return t;case 1:return o(e)?t:f(function(i){return r(e,i)});default:return o(e)&&o(n)?t:o(e)?f(function(i){return r(i,n)}):o(n)?f(function(i){return r(e,i)}):r(e,n)}}}function U(r,t){r=r||[],t=t||[];var e,n=r.length,i=t.length,a=[];for(e=0;e<n;)a[a.length]=r[e],e+=1;for(e=0;e<i;)a[a.length]=t[e],e+=1;return a}function I(r,t){switch(r){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,i){return t.apply(this,arguments)};case 4:return function(e,n,i,a){return t.apply(this,arguments)};case 5:return function(e,n,i,a,s){return t.apply(this,arguments)};case 6:return function(e,n,i,a,s,c){return t.apply(this,arguments)};case 7:return function(e,n,i,a,s,c,l){return t.apply(this,arguments)};case 8:return function(e,n,i,a,s,c,l,m){return t.apply(this,arguments)};case 9:return function(e,n,i,a,s,c,l,m,p){return t.apply(this,arguments)};case 10:return function(e,n,i,a,s,c,l,m,p,d){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function L(r,t,e){return function(){for(var n=[],i=0,a=r,s=0,c=!1;s<t.length||i<arguments.length;){var l;s<t.length&&(!o(t[s])||i>=arguments.length)?l=t[s]:(l=arguments[i],i+=1),n[s]=l,o(l)?c=!0:a-=1,s+=1}return!c&&a<=0?e.apply(this,n):I(Math.max(0,a),L(r,n,e))}}var _=u(function(t,e){return t===1?f(e):I(t,L(t,[],e))});function j(r){return function t(e,n,i){switch(arguments.length){case 0:return t;case 1:return o(e)?t:u(function(a,s){return r(e,a,s)});case 2:return o(e)&&o(n)?t:o(e)?u(function(a,s){return r(a,n,s)}):o(n)?u(function(a,s){return r(e,a,s)}):f(function(a){return r(e,n,a)});default:return o(e)&&o(n)&&o(i)?t:o(e)&&o(n)?u(function(a,s){return r(a,s,i)}):o(e)&&o(i)?u(function(a,s){return r(a,n,s)}):o(n)&&o(i)?u(function(a,s){return r(e,a,s)}):o(e)?f(function(a){return r(a,n,i)}):o(n)?f(function(a){return r(e,a,i)}):o(i)?f(function(a){return r(e,n,a)}):r(e,n,i)}}}var z=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function H(r){return r!=null&&typeof r["@@transducer/step"]=="function"}function Z(r,t,e){return function(){if(arguments.length===0)return e();var n=arguments[arguments.length-1];if(!z(n)){for(var i=0;i<r.length;){if(typeof n[r[i]]=="function")return n[r[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=1}if(H(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return e.apply(this,arguments)}}var k={init:function(){return this.xf["@@transducer/init"]()},result:function(r){return this.xf["@@transducer/result"](r)}};function g(r,t){return Object.prototype.hasOwnProperty.call(t,r)}var P=Object.prototype.toString,G=(function(){return P.call(arguments)==="[object Arguments]"?function(t){return P.call(t)==="[object Arguments]"}:function(t){return g("callee",t)}})(),J=!{toString:null}.propertyIsEnumerable("toString"),S=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],E=(function(){"use strict";return arguments.propertyIsEnumerable("length")})(),V=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},W=f(typeof Object.keys=="function"&&!E?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,n,i=[],a=E&&G(t);for(e in t)g(e,t)&&(!a||e!=="length")&&(i[i.length]=e);if(J)for(n=S.length-1;n>=0;)e=S[n],g(e,t)&&!V(i,e)&&(i[i.length]=e),n-=1;return i});function K(r,t){for(var e=0,n=t.length,i=Array(n);e<n;)i[e]=r(t[e]),e+=1;return i}function T(r,t,e){for(var n=0,i=e.length;n<i;)t=r(t,e[n]),n+=1;return t}var Q=(function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=k.init,r.prototype["@@transducer/result"]=k.result,r.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},r})(),Y=function(t){return function(e){return new Q(t,e)}},D=u(Z(["fantasy-land/map","map"],Y,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return _(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return T(function(n,i){return n[i]=t(e[i]),n},{},W(e));default:return K(t,e)}})),v=Number.isInteger||function(t){return t<<0===t};function N(r,t){return t[r<0?t.length+r:r]}function X(r,t){if(t!=null)return v(r)?N(r,t):t[r]}function tt(r){return Object.prototype.toString.call(r)==="[object String]"}var et=f(function(t){return z(t)?!0:!t||typeof t!="object"||tt(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),O=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function rt(r,t,e){return function(i,a,s){if(et(s))return r(i,a,s);if(s==null)return a;if(typeof s["fantasy-land/reduce"]=="function")return t(i,a,s,"fantasy-land/reduce");if(s[O]!=null)return e(i,a,s[O]());if(typeof s.next=="function")return e(i,a,s);if(typeof s.reduce=="function")return t(i,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}var nt=u(function(t,e){return t&&e});function it(r,t,e){for(var n=e.next();!n.done;)t=r(t,n.value),n=e.next();return t}function at(r,t,e,n){return e[n](r,t)}var st=rt(T,at,it),ot=u(function(t,e){return typeof e["fantasy-land/ap"]=="function"?e["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(e):typeof t=="function"?function(n){return t(n)(e(n))}:st(function(n,i){return U(n,D(i,e))},[],t)});function ut(r,t,e){if(v(r)&&z(e)){var n=r<0?e.length+r:r,i=[].concat(e);return i[n]=t,i}var a={};for(var s in e)a[s]=e[s];return a[r]=t,a}var A=f(function(t){return t==null}),ct=j(function r(t,e,n){if(t.length===0)return e;var i=t[0];if(t.length>1){var a=X(i,n);(A(a)||typeof a!="object")&&(a=v(t[1])?[]:{}),e=r(Array.prototype.slice.call(t,1),e,a)}return ut(i,e,n)});function lt(r){var t=Object.prototype.toString.call(r);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var ft=u(function(t,e){var n=_(t,e);return _(t,function(){return T(ot,D(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),ht=f(function(t){return ft(t.length,t)}),mt=u(function(t,e){return lt(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:ht(nt)(t,e)}),B=u(function(t,e){if(t.length===0||A(e))return!1;for(var n=e,i=0;i<t.length;)if(!A(n)&&g(t[i],n))n=n[t[i]],i+=1;else return!1;return!0}),$=u(function(t,e){return B([t],e)});function F(r,t){for(var e=t,n=0;n<r.length;n+=1){if(e==null)return;var i=r[n];v(i)?e=N(i,e):e=e[i]}return e}var w=u(F),pt={json:r=>JSON.stringify(r,null,2),tpl:(r,t,e)=>{const n=e?.getAttribute("zoo-bind-attr-tpl")||e?.getAttribute("zoo-bind-tpl");if(!n)return r;try{return new Function("value","data",`return \`${n}\`;`)(r,t)}catch(i){return console.warn("[Binder] Invalid template:",n,i),r}}},dt=class{#i;#t;#r;#e=null;#n;constructor(r,t,e,n={}){if(!t)throw new Error("Binder requires a URL");if(!e||!(e instanceof Element))throw new Error("Binder requires a valid rootEl Element");this.#i=r,this.#t=new URL(t,window.location.origin),this.#r=e,this.#n={...pt,...n.formatters},n.urlParams?this.#s(n.urlParams):this.#a()}get url(){return this.#t}get data(){return this.#e}get limit(){return parseInt(this.#t.searchParams.get("limit")||"0",10)}get offset(){return parseInt(this.#t.searchParams.get("offset")||"0",10)}get isPaginated(){return mt($("count"),$("results"))(this.#e)}#s(r){return Object.entries(r).forEach(([t,e])=>{if(!y.isDefAndNotNull(e)||e===""||Array.isArray(e)&&e.length<1){this.#t.searchParams.delete(t);return}if(Array.isArray(e)){this.#t.searchParams.set(t,e.join(","));return}this.#t.searchParams.set(t,e)}),this.#a(),this.#t}#a(){const r=this.#t.href.split(this.url.origin)[1].slice(1);this.#r.querySelectorAll("[zoo-bind-binderurl]").forEach(t=>{t.setAttribute("zoo-bind-binderurl",r)})}async fetchData(r={}){const t=await this.#i.user.fetchJson(this.#s(r).toString(),this.#i.abortController.signal);this.setData(t)}setData(r){this.#e=r,this.render()}render(){if(!y.isDefAndNotNull(this.#e)){console.warn("[Binder] No data to render");return}this.#a(),this.#o(this.#r,this.#e,0),this.#c()}#o(r,t,e=0,n={}){const i=n.removeAttributes??!1;r.querySelectorAll("[zoo-bind-attr]").forEach(a=>{a.closest("[zoo-template]")||(a.getAttribute("zoo-bind-attr").split(",").forEach(s=>{const[c,l]=s.split(":").map(b=>b.trim()),[m,p]=l.split("|").map(b=>b.trim());let d=this.#u(t,m,e);p&&this.#n[p]&&(d=this.#n[p](d,t,a)),y.isDefAndNotNull(d)&&a.setAttribute(c,d)}),i&&(a.removeAttribute("zoo-bind-attr"),a.removeAttribute("zoo-bind-attr-tpl")))}),r.querySelectorAll("[zoo-bind]").forEach(a=>{if(a.closest("[zoo-template]"))return;const[s,c]=a.getAttribute("zoo-bind").split("|").map(m=>m.trim());let l=this.#u(t,s,e);c&&this.#n[c]&&(l=this.#n[c](l,t,a)),a.textContent=l??"",i&&(a.removeAttribute("zoo-bind"),a.removeAttribute("zoo-bind-tpl"))})}#c(){this.#r.querySelectorAll("[zoo-template]").forEach(r=>{const t=r.getAttribute("zoo-template"),e=r.getAttribute("zoo-template-bind");if(!t){console.warn("[Binder] Consumer missing template ID",r);return}const n=this.#r.querySelector(`#${t}`);if(!n||n.tagName!=="TEMPLATE"){console.error(`[DataBinder] Template not found or invalid: ${t}`);return}const i=e?w(e.split("."),this.#e):this.#e;if(!i){console.warn(`[DataBinder] Data slice is undefined. Path: ${e}. Skipping render for this consumer.`);return}if(!Array.isArray(i)){console.error(`[DataBinder] Data slice is not an array. Path: ${e}`,i);return}r.innerHTML="",i.forEach((a,s)=>{const c=this.#l(n,a,s);r.appendChild(c)})})}#l(r,t,e){const n=r.content.cloneNode(!0);return this.#o(n,t,e,{removeAttributes:!0}),n}#u(r,t,e){const n={$index:()=>e,$index__paged:()=>this.offset+e,$index1:()=>e+1,$index1__paged:()=>this.offset+e+1};return n[t]?n[t]():w(t.split("."),r)}},x=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"})),q=r=>{let t={};return Array.from(r.attributes).forEach(e=>{const n=e.name,i=e.value;x.has(n)?t[x.get(n)]=i:(n.startsWith("data-")||n.startsWith("zoo-"))&&(t=ct(n.split("-"),i,t))}),t},M=(r,t,e="event")=>r.getAttribute(t)||r.getAttribute(e),C=class extends h.i{static properties={token:{type:String},prefix:{type:String},postfix:{type:String}};static styles=h.i$1`
2
- :host {
3
- display: inline-block;
4
- }
5
-
6
- .tag {
7
- text-align: center;
8
- display: inline-flex;
9
- align-items: center;
10
- justify-content: center;
11
- line-height: initial;
12
- width: max-content;
13
- padding: .2em 1em;
14
- border-radius: 1em;
15
- font-size: var(--zoo-theme-chips-font-size, 0.75rem);
16
- white-space: nowrap;
17
- word-break: break-word;
18
- box-sizing: border-box;
19
- }
20
- `;render(){const r=`${this.prefix??""}${this.token??"default"}${this.postfix??""}`;return h.x`
21
- <span
22
- class="tag"
23
- style="
24
- background-color: var(--zoo-tag-${r}-bg, var(--zoo-tag-default-bg, #9e9e9e));
25
- color: var(--zoo-tag-${r}-fg, var(--zoo-tag-default-fg, #ffffff));
26
- "
27
- >
28
- <slot></slot>
29
- </span>
30
- `}};customElements.get("zoo-tag")||customElements.define("zoo-tag",C);var gt=r=>{const t=Math.floor((new Date-r)/1e3),e=[{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(t<0){const n=Math.abs(t);for(const i of e){const a=Math.floor(n/i.seconds);if(a>=1)return new Intl.RelativeTimeFormat("en",{numeric:"auto"}).format(a,i.name)}return"just now"}for(const n of e){const i=Math.floor(t/n.seconds);if(i>=1)return new Intl.RelativeTimeFormat("en",{numeric:"auto"}).format(-i,n.name)}return"just now"},yt=r=>{const[{value:t},,{value:e},,{value:n},,{value:i},,{value:a},,{value:s}]=new Intl.DateTimeFormat("en",{day:"2-digit",month:"short",year:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}).formatToParts(r);return`${e} ${t} ${n} ${i}:${a}:${s}`},vt=r=>{const[{value:t},,{value:e},,{value:n}]=new Intl.DateTimeFormat("en",{day:"2-digit",month:"short",year:"2-digit"}).formatToParts(r);return`${e} ${t} ${n}`},R=class extends h.i{static properties={timestamp:{type:Number},kind:{type:String},concat:{type:String}};static styles=h.i$1`
31
- :host {
32
- display: inline;
33
- }
34
-
35
- .relative {
36
- color: var(--zoo-timestamp-relative-color, inherit);
37
- font-weight: var(--zoo-timestamp-relative-weight, inherit);
38
- font-size: var(--zoo-timestamp-relative-size, inherit);
39
- }
40
-
41
- .static {
42
- color: var(--zoo-timestamp-static-color, inherit);
43
- font-weight: var(--zoo-timestamp-static-weight, inherit);
44
- font-size: var(--zoo-timestamp-static-size, inherit);
45
- }
46
-
47
- .separator {
48
- color: var(--zoo-timestamp-separator-color, inherit);
49
- }
50
- `;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(r){super.updated(r),r.has("kind")&&this._updateTickListener()}_updateTickListener(){const r=this._shouldListenToTicks();r&&!this._isListening?(document.addEventListener("zoo-tick-60",this._boundTickHandler),this._isListening=!0):!r&&this._isListening&&this._removeTickListener()}_removeTickListener(){this._isListening&&(document.removeEventListener("zoo-tick-60",this._boundTickHandler),this._isListening=!1)}_onTimeTick(){this.requestUpdate()}_parseTemplate(r){const t=[];let e=r;for(;e.length>0;){const n=e.indexOf("r"),i=[n,e.indexOf("s")].filter(a=>a!==-1).sort((a,s)=>a-s)[0];if(i===void 0){e.length>0&&t.push({type:"text",value:e});break}i>0&&t.push({type:"text",value:e.substring(0,i)}),i===n?t.push({type:"relative",value:""}):t.push({type:"static",value:""}),e=e.substring(i+1)}return t}_getFormattedParts(){let r=this.timestamp;r<9466848e5&&(r=r*1e3);const t=new Date(r),e=gt(t),n=yt(t),i=vt(t);switch(this.kind){case"relative":return[{type:"relative",value:e}];case"datetime":return[{type:"static",value:n}];case"date":return[{type:"static",value:i}];case"both":return this._parseTemplate(this.concat).map(a=>a.type==="relative"?{type:"relative",value:e}:a.type==="static"?{type:"static",value:n}:a);default:return this._parseTemplate(this.concat).map(a=>a.type==="relative"?{type:"relative",value:e}:a.type==="static"?{type:"static",value:n}:a)}}render(){let r=this.timestamp;r<9466848e5&&(r=r*1e3);const t=new Date(r),e=this._getFormattedParts();return h.x`<time datetime="${t.toISOString()}">
51
- ${e.map(n=>n.type==="relative"?h.x`<span class="relative">${n.value}</span>`:n.type==="static"?h.x`<span class="static">${n.value}</span>`:h.x`<span class="separator">${n.value}</span>`)}
52
- </time>`}};customElements.get("zoo-timestamp")||customElements.define("zoo-timestamp",R);var bt=y.__exportAll({ZooTag:()=>C,ZooTimestamp:()=>R,getEventAttribute:()=>M,getSemanticAttributes:()=>q});Object.defineProperty(exports,"Binder",{enumerable:!0,get:function(){return dt}});Object.defineProperty(exports,"_curry2",{enumerable:!0,get:function(){return u}});Object.defineProperty(exports,"_curry3",{enumerable:!0,get:function(){return j}});Object.defineProperty(exports,"_has",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"_path",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"getEventAttribute",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"getSemanticAttributes",{enumerable:!0,get:function(){return q}});Object.defineProperty(exports,"hasPath",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"path",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"zoo_exports",{enumerable:!0,get:function(){return bt}});