@paperless/core 3.28.5 → 3.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/build/{p-ea2deb46.entry.js → p-0025fed7.entry.js} +1 -1
  2. package/dist/{paperless/p-b190b534.entry.js → build/p-10524bb8.entry.js} +1 -1
  3. package/dist/build/{p-a035467d.entry.js → p-1bf1c531.entry.js} +1 -1
  4. package/dist/{paperless/p-78244c70.entry.js → build/p-1f7088e0.entry.js} +1 -1
  5. package/dist/build/{p-8c141cb8.entry.js → p-20bbd9f7.entry.js} +1 -1
  6. package/dist/build/{p-c9b79bd8.entry.js → p-2815c450.entry.js} +1 -1
  7. package/dist/build/{p-3efce878.entry.js → p-406978fd.entry.js} +1 -1
  8. package/dist/{paperless/p-688afaf3.entry.js → build/p-42a9d7a9.entry.js} +1 -1
  9. package/dist/build/{p-92910dad.entry.js → p-458a1300.entry.js} +1 -1
  10. package/dist/build/p-45f64a83.entry.js +1 -0
  11. package/dist/build/{p-fadcfc9f.entry.js → p-56807646.entry.js} +1 -1
  12. package/dist/build/p-669c6727.entry.js +1 -0
  13. package/dist/build/{p-6ac8c0c1.entry.js → p-66aa349f.entry.js} +1 -1
  14. package/dist/build/{p-51312a8f.entry.js → p-6da143ff.entry.js} +1 -1
  15. package/dist/build/{p-91686988.entry.js → p-707ec953.entry.js} +1 -1
  16. package/dist/build/{p-ec0a6d22.entry.js → p-75a9889e.entry.js} +1 -1
  17. package/dist/build/p-9245172e.entry.js +1 -0
  18. package/dist/build/p-92f92a42.entry.js +1 -0
  19. package/dist/build/{p-7c8ec514.entry.js → p-98bc206c.entry.js} +1 -1
  20. package/dist/build/{p-93a57d38.entry.js → p-a2725e3b.entry.js} +1 -1
  21. package/dist/{paperless/p-d21a8908.entry.js → build/p-bc15eb99.entry.js} +1 -1
  22. package/dist/{paperless/p-31cf13c6.entry.js → build/p-cc99ef0c.entry.js} +2 -2
  23. package/dist/build/p-cf13f533.entry.js +1 -0
  24. package/dist/build/{p-d7d2411e.entry.js → p-d10cdb57.entry.js} +1 -1
  25. package/dist/build/{p-055b6209.entry.js → p-d4970495.entry.js} +1 -1
  26. package/dist/build/p-fa24e216.js +1 -0
  27. package/dist/build/paperless.esm.js +1 -1
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/p-accordion.cjs.entry.js +2 -2
  30. package/dist/cjs/p-attachment.cjs.entry.js +8 -8
  31. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  32. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  33. package/dist/cjs/p-checkbox_3.cjs.entry.js +18 -16
  34. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  35. package/dist/cjs/p-cropper.cjs.entry.js +1 -1
  36. package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
  37. package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -12
  38. package/dist/cjs/p-field_3.cjs.entry.js +4 -4
  39. package/dist/cjs/p-listing.cjs.entry.js +2 -2
  40. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  41. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  42. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  43. package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
  44. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  45. package/dist/cjs/p-range.cjs.entry.js +3 -3
  46. package/dist/cjs/p-submenu-item.cjs.entry.js +3 -3
  47. package/dist/cjs/p-submenu.cjs.entry.js +9 -9
  48. package/dist/cjs/p-tab-container.cjs.entry.js +10 -1
  49. package/dist/cjs/p-tab-item.cjs.entry.js +11 -3
  50. package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
  51. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  52. package/dist/cjs/p-toggle.cjs.entry.js +3 -3
  53. package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
  54. package/dist/cjs/paperless.cjs.js +1 -1
  55. package/dist/collection/components/atoms/tab/container/tab-container.component.js +33 -1
  56. package/dist/collection/components/atoms/tab/container/tab-container.stories.js +18 -0
  57. package/dist/collection/components/atoms/tab/item/tab-item.component.css +1 -1
  58. package/dist/collection/components/atoms/tab/item/tab-item.component.js +50 -2
  59. package/dist/collection/components/atoms/tab/item/tab-item.stories.js +5 -1
  60. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  61. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
  62. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  63. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  64. package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
  65. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  66. package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
  67. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  68. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  69. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  70. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  71. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  72. package/dist/collection/components/molecules/dropdown/dropdown.component.js +18 -16
  73. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  74. package/dist/collection/components/molecules/field/field/field.component.js +4 -4
  75. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
  76. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  77. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  78. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  79. package/dist/collection/components/molecules/range/range.component.js +3 -3
  80. package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +3 -3
  81. package/dist/collection/components/molecules/submenu/menu/submenu.component.js +9 -9
  82. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  83. package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
  84. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  85. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  86. package/dist/collection/components/organisms/listing/listing.component.js +2 -2
  87. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  88. package/dist/components/{p-Dg_DgmLY.js → p-2-4yuHR1.js} +1 -1
  89. package/dist/components/{p-BDWOQXx7.js → p-4KZlY5xH.js} +1 -1
  90. package/dist/components/{p-CxrxqKhq.js → p-B3Dks732.js} +1 -1
  91. package/dist/components/{p-DHJIvL0U.js → p-B7pLpkL0.js} +1 -1
  92. package/dist/components/{p-c6u4OYf0.js → p-BAVMxgJn.js} +1 -1
  93. package/dist/components/{p-C_ImoJA8.js → p-CklXrITo.js} +1 -1
  94. package/dist/components/p-D8Cwg2-6.js +1 -0
  95. package/dist/components/{p-Cmltn24W.js → p-D9Vv2Jg9.js} +1 -1
  96. package/dist/components/{p-Bh3wcvje.js → p-DZzA60Dx.js} +1 -1
  97. package/dist/components/{p-CVR1NJF5.js → p-DcIQGfEt.js} +1 -1
  98. package/dist/components/{p-9XjFw7wO.js → p-DpkIrMz9.js} +1 -1
  99. package/dist/components/{p-B2SjLmdM.js → p-DrGWvXqN.js} +1 -1
  100. package/dist/components/{p-DxuTDs4a.js → p-DsgO2Ufk.js} +1 -1
  101. package/dist/components/{p-ByJPQrlL.js → p-GGeQLkOT.js} +1 -1
  102. package/dist/components/{p-BmsR-djQ.js → p-PISPo1NR.js} +1 -1
  103. package/dist/components/p-accordion.js +1 -1
  104. package/dist/components/p-attachment.js +1 -1
  105. package/dist/components/p-button-group.js +1 -1
  106. package/dist/components/p-calendar.js +1 -1
  107. package/dist/components/p-content-slider.js +1 -1
  108. package/dist/components/p-cropper.js +2 -2
  109. package/dist/components/p-datepicker.js +1 -1
  110. package/dist/components/p-dropdown.js +1 -1
  111. package/dist/components/p-empty-state.js +1 -1
  112. package/dist/components/{p-BJyXdiHc.js → p-eo0MmU1s.js} +1 -1
  113. package/dist/components/p-field-container.js +1 -1
  114. package/dist/components/p-field.js +1 -1
  115. package/dist/components/p-helper.js +1 -1
  116. package/dist/components/p-listing.js +1 -1
  117. package/dist/components/p-navbar.js +1 -1
  118. package/dist/components/p-navigation-item.js +1 -1
  119. package/dist/components/p-navigation-section.js +1 -1
  120. package/dist/components/p-pagination-pages.js +1 -1
  121. package/dist/components/p-pagination-size.js +1 -1
  122. package/dist/components/p-pagination.js +1 -1
  123. package/dist/components/p-profile.js +1 -1
  124. package/dist/components/p-range.js +1 -1
  125. package/dist/components/p-select.js +1 -1
  126. package/dist/components/p-submenu-item.js +1 -1
  127. package/dist/components/p-submenu.js +1 -1
  128. package/dist/components/p-tab-container.js +1 -1
  129. package/dist/components/p-tab-item.js +1 -1
  130. package/dist/components/p-table-cell.js +1 -1
  131. package/dist/components/p-table-container.js +1 -1
  132. package/dist/components/p-table-footer.js +1 -1
  133. package/dist/components/p-table-header.js +1 -1
  134. package/dist/components/p-table-row-actions-container.js +1 -1
  135. package/dist/components/p-table-row.js +1 -1
  136. package/dist/components/p-table.js +1 -1
  137. package/dist/components/p-toast-container.js +1 -1
  138. package/dist/components/p-toast.js +1 -1
  139. package/dist/components/p-toggle.js +1 -1
  140. package/dist/components/p-tooltip.js +1 -1
  141. package/dist/components/p-vlEpgOl1.js +1 -0
  142. package/dist/esm/loader.js +1 -1
  143. package/dist/esm/p-accordion.entry.js +2 -2
  144. package/dist/esm/p-attachment.entry.js +8 -8
  145. package/dist/esm/p-button-group.entry.js +1 -1
  146. package/dist/esm/p-calendar.entry.js +1 -1
  147. package/dist/esm/p-checkbox_3.entry.js +18 -16
  148. package/dist/esm/p-content-slider.entry.js +2 -2
  149. package/dist/esm/p-cropper.entry.js +1 -1
  150. package/dist/esm/p-datepicker.entry.js +2 -2
  151. package/dist/esm/p-empty-state_8.entry.js +12 -12
  152. package/dist/esm/p-field_3.entry.js +4 -4
  153. package/dist/esm/p-listing.entry.js +2 -2
  154. package/dist/esm/p-navbar.entry.js +1 -1
  155. package/dist/esm/p-navigation-item.entry.js +3 -3
  156. package/dist/esm/p-navigation-section.entry.js +1 -1
  157. package/dist/esm/p-pagination_3.entry.js +3 -3
  158. package/dist/esm/p-profile.entry.js +1 -1
  159. package/dist/esm/p-range.entry.js +3 -3
  160. package/dist/esm/p-submenu-item.entry.js +3 -3
  161. package/dist/esm/p-submenu.entry.js +9 -9
  162. package/dist/esm/p-tab-container.entry.js +10 -1
  163. package/dist/esm/p-tab-item.entry.js +11 -3
  164. package/dist/esm/p-toast-container.entry.js +2 -2
  165. package/dist/esm/p-toast.entry.js +1 -1
  166. package/dist/esm/p-toggle.entry.js +3 -3
  167. package/dist/esm/p-tooltip.entry.js +2 -2
  168. package/dist/esm/paperless.js +1 -1
  169. package/dist/index.html +1 -1
  170. package/dist/paperless/{p-ea2deb46.entry.js → p-0025fed7.entry.js} +1 -1
  171. package/dist/{build/p-b190b534.entry.js → paperless/p-10524bb8.entry.js} +1 -1
  172. package/dist/paperless/{p-a035467d.entry.js → p-1bf1c531.entry.js} +1 -1
  173. package/dist/{build/p-78244c70.entry.js → paperless/p-1f7088e0.entry.js} +1 -1
  174. package/dist/paperless/{p-8c141cb8.entry.js → p-20bbd9f7.entry.js} +1 -1
  175. package/dist/paperless/{p-c9b79bd8.entry.js → p-2815c450.entry.js} +1 -1
  176. package/dist/paperless/{p-3efce878.entry.js → p-406978fd.entry.js} +1 -1
  177. package/dist/{build/p-688afaf3.entry.js → paperless/p-42a9d7a9.entry.js} +1 -1
  178. package/dist/paperless/{p-92910dad.entry.js → p-458a1300.entry.js} +1 -1
  179. package/dist/paperless/p-45f64a83.entry.js +1 -0
  180. package/dist/paperless/{p-fadcfc9f.entry.js → p-56807646.entry.js} +1 -1
  181. package/dist/paperless/p-669c6727.entry.js +1 -0
  182. package/dist/paperless/{p-6ac8c0c1.entry.js → p-66aa349f.entry.js} +1 -1
  183. package/dist/paperless/{p-51312a8f.entry.js → p-6da143ff.entry.js} +1 -1
  184. package/dist/paperless/{p-91686988.entry.js → p-707ec953.entry.js} +1 -1
  185. package/dist/paperless/{p-ec0a6d22.entry.js → p-75a9889e.entry.js} +1 -1
  186. package/dist/paperless/p-9245172e.entry.js +1 -0
  187. package/dist/paperless/p-92f92a42.entry.js +1 -0
  188. package/dist/paperless/{p-7c8ec514.entry.js → p-98bc206c.entry.js} +1 -1
  189. package/dist/paperless/{p-93a57d38.entry.js → p-a2725e3b.entry.js} +1 -1
  190. package/dist/{build/p-d21a8908.entry.js → paperless/p-bc15eb99.entry.js} +1 -1
  191. package/dist/{build/p-31cf13c6.entry.js → paperless/p-cc99ef0c.entry.js} +2 -2
  192. package/dist/paperless/p-cf13f533.entry.js +1 -0
  193. package/dist/paperless/{p-d7d2411e.entry.js → p-d10cdb57.entry.js} +1 -1
  194. package/dist/paperless/{p-055b6209.entry.js → p-d4970495.entry.js} +1 -1
  195. package/dist/paperless/paperless.esm.js +1 -1
  196. package/dist/sw.js +1 -1
  197. package/dist/sw.js.map +1 -1
  198. package/dist/types/components/atoms/tab/container/tab-container.component.d.ts +4 -0
  199. package/dist/types/components/atoms/tab/container/tab-container.stories.d.ts +3 -0
  200. package/dist/types/components/atoms/tab/item/tab-item.component.d.ts +8 -0
  201. package/dist/types/components/atoms/tab/item/tab-item.stories.d.ts +7 -1
  202. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +1 -1
  203. package/dist/types/components.d.ts +30 -0
  204. package/hydrate/index.js +110 -90
  205. package/hydrate/index.mjs +110 -90
  206. package/package.json +1 -1
  207. package/dist/build/p-014ef0e1.entry.js +0 -1
  208. package/dist/build/p-1a424b04.entry.js +0 -1
  209. package/dist/build/p-571575d2.entry.js +0 -1
  210. package/dist/build/p-9430fadc.js +0 -1
  211. package/dist/build/p-9f684244.entry.js +0 -1
  212. package/dist/build/p-a395e9e0.entry.js +0 -1
  213. package/dist/components/p-BG1plx2A.js +0 -1
  214. package/dist/components/p-zBwPEKhI.js +0 -1
  215. package/dist/paperless/p-014ef0e1.entry.js +0 -1
  216. package/dist/paperless/p-1a424b04.entry.js +0 -1
  217. package/dist/paperless/p-571575d2.entry.js +0 -1
  218. package/dist/paperless/p-9f684244.entry.js +0 -1
  219. package/dist/paperless/p-a395e9e0.entry.js +0 -1
@@ -1 +1 @@
1
- import{F as o,d as s}from"./p-DHJIvL0U.js";const p=o,r=s;export{p as PFieldContainer,r as defineCustomElement}
1
+ import{F as p,d as o}from"./p-B7pLpkL0.js";const s=p,r=o;export{s as PFieldContainer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{F as o,d as s}from"./p-Cmltn24W.js";const t=o,m=s;export{t as PField,m as defineCustomElement}
1
+ import{F as o,d as s}from"./p-D9Vv2Jg9.js";const p=o,r=s;export{p as PField,r as defineCustomElement}
@@ -1 +1 @@
1
- import{H as o,d as r}from"./p-ByJPQrlL.js";const s=o,p=r;export{s as PHelper,p as defineCustomElement}
1
+ import{H as o,d as s}from"./p-GGeQLkOT.js";const p=o,r=s;export{p as PHelper,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as i,h as s}from"./p-CySg37XO.js";import{c as n}from"./p-xs4N_Y-0.js";import{d as l}from"./p-L0a3qALZ.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get _el(){return this}_generatedOnce=!1;_generateTimeout;_resizeObserver;componentDidLoad(){this._resizeObserver=new ResizeObserver((()=>this._generateLinesOnce())),this._resizeObserver.observe(this._el)}disconnectCallback(){this._resizeObserver&&this._resizeObserver.disconnect()}render(){return s("div",{key:"f1a202de4615b4d854fa78e27cdc77b71aa09b64",class:n("flex w-full flex-col flex-wrap items-start gap-1",{"opacity-100":this._generatedOnce,"opacity-0":!this._generatedOnce})},s("slot",{key:"52d133d71700c7a08cbba824844cd88a9a20adb2",onSlotchange:()=>this._generateLinesOnce()}))}_generateLinesOnce(){this._generateTimeout&&(clearTimeout(this._generateTimeout),this._generateTimeout=null),this._generateTimeout=setTimeout((()=>this._generateLines()),20)}_generateLines(){if(!this._el)return;const t=this._el.querySelectorAll("p-listing-item");for(let e=0;e<t?.length;e++){const i=t.item(e);if(e<t.length-1){let t=i.nextElementSibling;if(t&&"p-listing-item"===t.tagName.toLowerCase()){const e=document.createElement("p-listing-line");this._el.insertBefore(e,t),this._setLineData(e,i,t);const s=e.previousElementSibling;s&&"p-listing-line"===s.tagName.toLowerCase()&&s.remove();continue}if(t&&"p-listing-line"===t.tagName.toLowerCase()){const e=t;t=t.nextElementSibling,t&&"p-listing-item"===t.tagName.toLowerCase()&&this._setLineData(e,i,t)}}}const e=this._el.querySelectorAll("p-listing-line:not(:has(+ p-listing-item)), p-listing-line:first-child");for(let t=e.length-1;t>=0;t--)e.item(t).remove();this._generatedOnce||setTimeout((()=>this._generatedOnce=!0),50)}_setLineData(t,e,i){let s=(e.clientHeight-16)/2,n=(i.clientHeight-16)/2;if(s>0){let e=s+n;t.style.marginTop=`-${s/16}rem`,t.style.marginBottom=`-${n/16}rem`,t.style.minHeight=`calc(1.5rem + ${(e-16)/16}rem)`}}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.gap-1{gap:.25rem}.opacity-0{opacity:0}.opacity-100{opacity:1}"}},[769,"p-listing",{_generatedOnce:[32]}]);function o(){"undefined"!=typeof customElements&&["p-listing","p-listing-line"].forEach((e=>{switch(e){case"p-listing":customElements.get(t(e))||customElements.define(t(e),a);break;case"p-listing-line":customElements.get(t(e))||l()}}))}o();const c=a,r=o;export{c as PListing,r as defineCustomElement}
1
+ import{t,p as e,H as i,h as s}from"./p-CySg37XO.js";import{c as n}from"./p-xs4N_Y-0.js";import{d as l}from"./p-L0a3qALZ.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get _el(){return this}_generatedOnce=!1;_generateTimeout;_resizeObserver;componentDidLoad(){this._resizeObserver=new ResizeObserver((()=>this._generateLinesOnce())),this._resizeObserver.observe(this._el)}disconnectCallback(){this._resizeObserver&&this._resizeObserver.disconnect()}render(){return s("div",{key:"ed45a2e778aba5ec905b3229ead141fdcdfea198",class:n("flex w-full flex-col flex-wrap items-start gap-1",{"opacity-100":this._generatedOnce,"opacity-0":!this._generatedOnce})},s("slot",{key:"2a18a4366d054d65412d8b28a70abca0ad2ee649",onSlotchange:()=>this._generateLinesOnce()}))}_generateLinesOnce(){this._generateTimeout&&(clearTimeout(this._generateTimeout),this._generateTimeout=null),this._generateTimeout=setTimeout((()=>this._generateLines()),20)}_generateLines(){if(!this._el)return;const t=this._el.querySelectorAll("p-listing-item");for(let e=0;e<t?.length;e++){const i=t.item(e);if(e<t.length-1){let t=i.nextElementSibling;if(t&&"p-listing-item"===t.tagName.toLowerCase()){const e=document.createElement("p-listing-line");this._el.insertBefore(e,t),this._setLineData(e,i,t);const s=e.previousElementSibling;s&&"p-listing-line"===s.tagName.toLowerCase()&&s.remove();continue}if(t&&"p-listing-line"===t.tagName.toLowerCase()){const e=t;t=t.nextElementSibling,t&&"p-listing-item"===t.tagName.toLowerCase()&&this._setLineData(e,i,t)}}}const e=this._el.querySelectorAll("p-listing-line:not(:has(+ p-listing-item)), p-listing-line:first-child");for(let t=e.length-1;t>=0;t--)e.item(t).remove();this._generatedOnce||setTimeout((()=>this._generatedOnce=!0),50)}_setLineData(t,e,i){let s=(e.clientHeight-16)/2,n=(i.clientHeight-16)/2;if(s>0){let e=s+n;t.style.marginTop=`-${s/16}rem`,t.style.marginBottom=`-${n/16}rem`,t.style.minHeight=`calc(1.5rem + ${(e-16)/16}rem)`}}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.gap-1{gap:.25rem}.opacity-0{opacity:0}.opacity-100{opacity:1}"}},[769,"p-listing",{_generatedOnce:[32]}]);function o(){"undefined"!=typeof customElements&&["p-listing","p-listing-line"].forEach((e=>{switch(e){case"p-listing":customElements.get(t(e))||customElements.define(t(e),a);break;case"p-listing-line":customElements.get(t(e))||l()}}))}o();const c=a,r=o;export{c as PListing,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as a,H as t,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as n}from"./p-Au2WuEGF.js";import{d as i}from"./p-bZ3k4UvK.js";import{d as s}from"./p-DHKJDm0J.js";import{d as l}from"./p-gEaqH36V.js";import{d as c}from"./p-D8faiybE.js";const d=o(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),b=o(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","\n layout-1280:relative layout-1280:z-0 layout-1280:h-full\n layout-1280:max-w-none\n ","gap-6","transition-all","will-change-transform","\n -translate-x-full transform-gpu\n layout-1280:translate-x-0\n ","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),f=o(["flex w-full items-center justify-between","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),p=o(["\n relative z-navbar-backdrop transition-opacity\n layout-1280:hidden\n "],{variants:{show:{false:"pointer-events-none opacity-0",true:"opacity-100"}}}),m=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}_show=!1;render(){return r(n,{key:"fe2de332dfdc64399f90e88e1595bcb7ca95a901"},r("p-backdrop",{key:"c2f8a860ee2026cc0430fe2b3557119010e02f9b",class:p({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=!1}),r("div",{key:"c01fe9cc8d2a3342e7358b298a1e7807e7612019",class:b({class:d(),show:this._show})},r("div",{key:"78535c4470591c2ae2fe9464902bd4f54baa12bd",class:"\n flex w-full items-center justify-end\n layout-1280:hidden\n "},r("p-button",{key:"6d50a2f05639094b429c616820272e7ce744ab72",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!1})),r("div",{key:"93a332c6fa4046dab5a3bf8d4dd2de5f8d909d3a",class:"flex w-full flex-shrink-0 flex-col items-stretch"},r("slot",{key:"49e41e442a8b33f826fb210578c9169981b4062d",name:"company"})),r("div",{key:"2def55a3be3a2220058f1cf61a61cae73ef793b2",class:"flex w-full flex-1 flex-col gap-6 overflow-y-auto"},r("slot",{key:"9eca0f94e4eb271ea1c3ac625213f6a2271e0ca2",name:"content"})),r("div",{key:"c5b9d2be190f64059f03dcfba0f094d797bad910",class:"\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n "},r("slot",{key:"521d4b932bbb0bfcc5512e2b79f620c2db659e29",name:"user"}))),r("div",{key:"657811cf4dfe72bd0d2935e773ea1d7fbbd45373",class:f({class:d()})},r("p-button",{key:"81357f0eef70cce8f73e7c96eb7a7fe68fc4ae7d",icon:"menu-arrow",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!0}),r("slot",{key:"db2742453f251f54f8fb94f1ea3c18e628b883ca",name:"topbar"})))}handleCloseNavbar(){this._show=!1}handleOpenNavbar(){this._show=!0}static get style(){return".w-full{width:100%}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\\:w-60{width:15rem}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-navbar{z-index:300}.z-navbar-backdrop{z-index:290}.z-navbar-topbar{z-index:280}.mt-auto{margin-top:auto}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.w-60{width:15rem}.max-w-\\[16\\.5rem\\]{max-width:16.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-6{gap:1.5rem}.overflow-y-auto{overflow-y:auto}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}@media (min-width:80rem){.layout-1280\\:relative{position:relative}.layout-1280\\:z-0{z-index:0}.layout-1280\\:flex{display:flex}.layout-1280\\:hidden{display:none}.layout-1280\\:h-full{height:100%}.layout-1280\\:max-w-none{max-width:none}.layout-1280\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}"}},[769,"p-navbar",{_show:[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]);function w(){"undefined"!=typeof customElements&&["p-navbar","p-backdrop","p-button","p-icon","p-loader"].forEach((a=>{switch(a){case"p-navbar":customElements.get(e(a))||customElements.define(e(a),m);break;case"p-backdrop":customElements.get(e(a))||i();break;case"p-button":customElements.get(e(a))||s();break;case"p-icon":customElements.get(e(a))||l();break;case"p-loader":customElements.get(e(a))||c()}}))}w();const h=m,y=w;export{h as PNavbar,y as defineCustomElement}
1
+ import{t as e,p as a,H as t,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as n}from"./p-Au2WuEGF.js";import{d as i}from"./p-bZ3k4UvK.js";import{d as s}from"./p-DHKJDm0J.js";import{d as l}from"./p-gEaqH36V.js";import{d as c}from"./p-D8faiybE.js";const d=o(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),b=o(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","\n layout-1280:relative layout-1280:z-0 layout-1280:h-full\n layout-1280:max-w-none\n ","gap-6","transition-all","will-change-transform","\n -translate-x-full transform-gpu\n layout-1280:translate-x-0\n ","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),f=o(["flex w-full items-center justify-between","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),p=o(["\n relative z-navbar-backdrop transition-opacity\n layout-1280:hidden\n "],{variants:{show:{false:"pointer-events-none opacity-0",true:"opacity-100"}}}),m=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}_show=!1;render(){return r(n,{key:"7619eeefa9ea944a63289912cd81cf78b6e811b5"},r("p-backdrop",{key:"595791a894b53d4a9b2129b56f4f0f3486c57d3c",class:p({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=!1}),r("div",{key:"780b7fc75b411b8f29f75a6ae407b4362fd35c7e",class:b({class:d(),show:this._show})},r("div",{key:"0c66a30858b20cd7eec21468e8458ca1a418aacb",class:"\n flex w-full items-center justify-end\n layout-1280:hidden\n "},r("p-button",{key:"5ccd0baad2faea3f4f45e41e016a00b0e8eab362",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!1})),r("div",{key:"7a9fe638e83dc4ffca39dc6a393c4e1d65e7a8d6",class:"flex w-full flex-shrink-0 flex-col items-stretch"},r("slot",{key:"25958b6ef7b0a6dc2cd7e12908e59422b049ddc0",name:"company"})),r("div",{key:"568ab6c376b7c3db2902778f97a35176d5bfdcf0",class:"flex w-full flex-1 flex-col gap-6 overflow-y-auto"},r("slot",{key:"d7b085c1043b107e883e058f5501d5e33e4c8581",name:"content"})),r("div",{key:"68c47441d63f5a640027a7eadd237c182b0c6f60",class:"\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n "},r("slot",{key:"736dbba0b3fea35a30c6be8e9845650fdb325b08",name:"user"}))),r("div",{key:"7eb3b90ad16257344d0857e22e9d8864f6675438",class:f({class:d()})},r("p-button",{key:"38db319651a5ec5287d50011186dca5e02619c34",icon:"menu-arrow",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!0}),r("slot",{key:"3d1e5dd3d203c15b6748be563a929e9451747d82",name:"topbar"})))}handleCloseNavbar(){this._show=!1}handleOpenNavbar(){this._show=!0}static get style(){return".w-full{width:100%}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\\:w-60{width:15rem}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-navbar{z-index:300}.z-navbar-backdrop{z-index:290}.z-navbar-topbar{z-index:280}.mt-auto{margin-top:auto}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.w-60{width:15rem}.max-w-\\[16\\.5rem\\]{max-width:16.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-6{gap:1.5rem}.overflow-y-auto{overflow-y:auto}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}@media (min-width:80rem){.layout-1280\\:relative{position:relative}.layout-1280\\:z-0{z-index:0}.layout-1280\\:flex{display:flex}.layout-1280\\:hidden{display:none}.layout-1280\\:h-full{height:100%}.layout-1280\\:max-w-none{max-width:none}.layout-1280\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}"}},[769,"p-navbar",{_show:[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]);function w(){"undefined"!=typeof customElements&&["p-navbar","p-backdrop","p-button","p-icon","p-loader"].forEach((a=>{switch(a){case"p-navbar":customElements.get(e(a))||customElements.define(e(a),m);break;case"p-backdrop":customElements.get(e(a))||i();break;case"p-button":customElements.get(e(a))||s();break;case"p-icon":customElements.get(e(a))||l();break;case"p-loader":customElements.get(e(a))||c()}}))}w();const h=m,y=w;export{h as PNavbar,y as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as i,H as a,h as e}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as o}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{c}from"./p-xs4N_Y-0.js";import{d as m}from"./p-CpRKUhuF.js";import{d as s}from"./p-gEaqH36V.js";import{d}from"./p-D8faiybE.js";const p=n(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),h=n(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),g=i(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,i=r(this.active)||this.class?.includes("active");return e(o,{key:"9dbc90d066c5c8af033baeadfd56b0d6fc97b8e8",class:c("inline-block",this.class)},e(t,{key:"54794c49462a1695aa7ab2aac1798ebd7e659775",class:p({icon:!!this.icon,active:i}),href:this.href,target:this.target},e("div",{key:"a64642008da3eb90fabef41ff4f7849bd5990769",class:h({active:i})},e("p-icon",{key:"5717e6bab1ccaff30409cdc470a5e26c0453abc3",variant:this.icon})),e("span",{key:"10724de271347188676041a4d3d34abda19570fe",class:c({"has-counter":!!this.counter,"w-full":this.applyFullWidth})},e("slot",{key:"c28eb7ba26a618dcd80cfb53a9b6e99f202be44c"})),!!this.counter&&"0"!==this.counter&&e("p-badge",{key:"3c75ef84bea0f90c136544c30aa32bc3bb5de311"},this.counter),!!this.loading&&e("p-loader",{key:"0039f85358dcdd014ba98415256dc49be0daf366",class:"ml-auto"})))}static get style(){return"*.sc-p-navigation-item{box-sizing:border-box}.static.sc-p-navigation-item{position:static}.ml-auto.sc-p-navigation-item{margin-left:auto}.inline-block.sc-p-navigation-item{display:inline-block}.flex.sc-p-navigation-item{display:flex}.aspect-branding.sc-p-navigation-item{aspect-ratio:23/24}.h-6.sc-p-navigation-item{height:1.5rem}.h-8.sc-p-navigation-item{height:2rem}.w-\\[inherit\\].sc-p-navigation-item{width:inherit}.w-full.sc-p-navigation-item{width:100%}.cursor-pointer.sc-p-navigation-item{cursor:pointer}.items-center.sc-p-navigation-item{align-items:center}.justify-center.sc-p-navigation-item{justify-content:center}.gap-2.sc-p-navigation-item{gap:.5rem}.rounded-full.sc-p-navigation-item{border-radius:9999px}.rounded-lg.sc-p-navigation-item{border-radius:.5rem}.bg-indigo-500.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-600.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))}.px-2.sc-p-navigation-item{padding-left:.5rem;padding-right:.5rem}.py-1.sc-p-navigation-item{padding-bottom:.25rem;padding-top:.25rem}.pl-1.sc-p-navigation-item{padding-left:.25rem}.text-sm.sc-p-navigation-item{font-size:.875rem;line-height:1.25rem}.font-medium.sc-p-navigation-item{font-weight:500}.font-semibold.sc-p-navigation-item{font-weight:600}.text-storm-400.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.container.sc-p-navigation-item{width:100%}@media (min-width:40rem){.container.sc-p-navigation-item{max-width:40rem}}@media (min-width:64rem){.container.sc-p-navigation-item{max-width:64rem}}@media (min-width:80rem){.container.sc-p-navigation-item{max-width:80rem}}@media (min-width:85.375rem){.container.sc-p-navigation-item{max-width:85.375rem}}@media (min-width:90rem){.container.sc-p-navigation-item{max-width:90rem}}@media (min-width:96rem){.container.sc-p-navigation-item{max-width:96rem}}@media (min-width:105rem){.container.sc-p-navigation-item{max-width:105rem}}@media (min-width:120rem){.container.sc-p-navigation-item{max-width:120rem}}@media (min-width:160rem){.container.sc-p-navigation-item{max-width:160rem}}@media (min-width:640px){.container.sc-p-navigation-item{max-width:640px}}@media (min-width:768px){.container.sc-p-navigation-item{max-width:768px}}@media (min-width:1024px){.container.sc-p-navigation-item{max-width:1024px}}@media (min-width:1280px){.container.sc-p-navigation-item{max-width:1280px}}@media (min-width:1536px){.container.sc-p-navigation-item{max-width:1536px}}.hover\\:bg-off-white-500.sc-p-navigation-item:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:text-storm-500.sc-p-navigation-item:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[774,"p-navigation-item",{icon:[1],active:[4],loading:[4],as:[1],counter:[8],href:[1],target:[1],class:[1],applyFullWidth:[4,"apply-full-width"]}]);function v(){"undefined"!=typeof customElements&&["p-navigation-item","p-badge","p-icon","p-loader"].forEach((i=>{switch(i){case"p-navigation-item":customElements.get(t(i))||customElements.define(t(i),g);break;case"p-badge":customElements.get(t(i))||m();break;case"p-icon":customElements.get(t(i))||s();break;case"p-loader":customElements.get(t(i))||d()}}))}v();const w=g,l=v;export{w as PNavigationItem,l as defineCustomElement}
1
+ import{t,p as i,H as a,h as e}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as o}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{c}from"./p-xs4N_Y-0.js";import{d as m}from"./p-CpRKUhuF.js";import{d as s}from"./p-gEaqH36V.js";import{d}from"./p-D8faiybE.js";const p=n(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),h=n(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),g=i(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,i=r(this.active)||this.class?.includes("active");return e(o,{key:"347b0fff17aa518408c501e0f36c1705b10748c6",class:c("inline-block",this.class)},e(t,{key:"5ef2af324e413caafb7315dc4b13d30c42267b6c",class:p({icon:!!this.icon,active:i}),href:this.href,target:this.target},e("div",{key:"6313d3de316f39dfc24bc5d4a53f5153c0413a35",class:h({active:i})},e("p-icon",{key:"a1598b69de4fe59e6831d53948c55dc0f685b9ad",variant:this.icon})),e("span",{key:"fa7e13deabd7b690fc5be427bf86538b1889cef9",class:c({"has-counter":!!this.counter,"w-full":this.applyFullWidth})},e("slot",{key:"86dc19d97dd2a19d056f1e33c0fba9d94e4f2218"})),!!this.counter&&"0"!==this.counter&&e("p-badge",{key:"ebfafb0aea1e0b38757f28b8118d4f54b8388582"},this.counter),!!this.loading&&e("p-loader",{key:"83cb991e82cf7fe34531f4c7c7a1a1167b38a8d3",class:"ml-auto"})))}static get style(){return"*.sc-p-navigation-item{box-sizing:border-box}.static.sc-p-navigation-item{position:static}.ml-auto.sc-p-navigation-item{margin-left:auto}.inline-block.sc-p-navigation-item{display:inline-block}.flex.sc-p-navigation-item{display:flex}.aspect-branding.sc-p-navigation-item{aspect-ratio:23/24}.h-6.sc-p-navigation-item{height:1.5rem}.h-8.sc-p-navigation-item{height:2rem}.w-\\[inherit\\].sc-p-navigation-item{width:inherit}.w-full.sc-p-navigation-item{width:100%}.cursor-pointer.sc-p-navigation-item{cursor:pointer}.items-center.sc-p-navigation-item{align-items:center}.justify-center.sc-p-navigation-item{justify-content:center}.gap-2.sc-p-navigation-item{gap:.5rem}.rounded-full.sc-p-navigation-item{border-radius:9999px}.rounded-lg.sc-p-navigation-item{border-radius:.5rem}.bg-indigo-500.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-600.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))}.px-2.sc-p-navigation-item{padding-left:.5rem;padding-right:.5rem}.py-1.sc-p-navigation-item{padding-bottom:.25rem;padding-top:.25rem}.pl-1.sc-p-navigation-item{padding-left:.25rem}.text-sm.sc-p-navigation-item{font-size:.875rem;line-height:1.25rem}.font-medium.sc-p-navigation-item{font-weight:500}.font-semibold.sc-p-navigation-item{font-weight:600}.text-storm-400.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.container.sc-p-navigation-item{width:100%}@media (min-width:40rem){.container.sc-p-navigation-item{max-width:40rem}}@media (min-width:64rem){.container.sc-p-navigation-item{max-width:64rem}}@media (min-width:80rem){.container.sc-p-navigation-item{max-width:80rem}}@media (min-width:85.375rem){.container.sc-p-navigation-item{max-width:85.375rem}}@media (min-width:90rem){.container.sc-p-navigation-item{max-width:90rem}}@media (min-width:96rem){.container.sc-p-navigation-item{max-width:96rem}}@media (min-width:105rem){.container.sc-p-navigation-item{max-width:105rem}}@media (min-width:120rem){.container.sc-p-navigation-item{max-width:120rem}}@media (min-width:160rem){.container.sc-p-navigation-item{max-width:160rem}}@media (min-width:640px){.container.sc-p-navigation-item{max-width:640px}}@media (min-width:768px){.container.sc-p-navigation-item{max-width:768px}}@media (min-width:1024px){.container.sc-p-navigation-item{max-width:1024px}}@media (min-width:1280px){.container.sc-p-navigation-item{max-width:1280px}}@media (min-width:1536px){.container.sc-p-navigation-item{max-width:1536px}}.hover\\:bg-off-white-500.sc-p-navigation-item:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:text-storm-500.sc-p-navigation-item:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[774,"p-navigation-item",{icon:[1],active:[4],loading:[4],as:[1],counter:[8],href:[1],target:[1],class:[1],applyFullWidth:[4,"apply-full-width"]}]);function v(){"undefined"!=typeof customElements&&["p-navigation-item","p-badge","p-icon","p-loader"].forEach((i=>{switch(i){case"p-navigation-item":customElements.get(t(i))||customElements.define(t(i),g);break;case"p-badge":customElements.get(t(i))||m();break;case"p-icon":customElements.get(t(i))||s();break;case"p-loader":customElements.get(t(i))||d()}}))}v();const w=g,l=v;export{w as PNavigationItem,l as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as c,h as s}from"./p-CySg37XO.js";import{T as a}from"./p-Au2WuEGF.js";import{d as i}from"./p-DaPWhcRy.js";const o=t(class extends c{constructor(e){super(),!1!==e&&this.__registerHost()}header;render(){return s(a,{key:"a0ca4e59eecc786d21f19b5cf19109ff2ecff9c2",class:"flex flex-col gap-2"},this.header?.length>0&&s("p-navigation-title",{key:"2c01baaaff7f298d2589c62571cc765c885c7c21"},this.header),s("div",{key:"e92d1f46d8fb376f93097bb29d47983055d0657d",class:"flex flex-col"},s("slot",{key:"6e68b9723d5ae4f738c3f56d6c8c73fbb824e497"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:.5rem}"}},[772,"p-navigation-section",{header:[1]}]);function n(){"undefined"!=typeof customElements&&["p-navigation-section","p-navigation-title"].forEach((t=>{switch(t){case"p-navigation-section":customElements.get(e(t))||customElements.define(e(t),o);break;case"p-navigation-title":customElements.get(e(t))||i()}}))}n();const f=o,l=n;export{f as PNavigationSection,l as defineCustomElement}
1
+ import{t as e,p as t,H as c,h as s}from"./p-CySg37XO.js";import{T as a}from"./p-Au2WuEGF.js";import{d as i}from"./p-DaPWhcRy.js";const o=t(class extends c{constructor(e){super(),!1!==e&&this.__registerHost()}header;render(){return s(a,{key:"ef9bc5a34ec30fddac926c6eb32225ad29933a6b",class:"flex flex-col gap-2"},this.header?.length>0&&s("p-navigation-title",{key:"c2247b566e622687b63cc461b4d18383c4657c87"},this.header),s("div",{key:"214b7cdcc8425ae88ac667f2fabaf74e08e4dbc8",class:"flex flex-col"},s("slot",{key:"26833f9c31a682f58160fc54063ecb7459f3f0b1"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:.5rem}"}},[772,"p-navigation-section",{header:[1]}]);function n(){"undefined"!=typeof customElements&&["p-navigation-section","p-navigation-title"].forEach((t=>{switch(t){case"p-navigation-section":customElements.get(e(t))||customElements.define(e(t),o);break;case"p-navigation-title":customElements.get(e(t))||i()}}))}n();const l=o,f=n;export{l as PNavigationSection,f as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as s}from"./p-Bh3wcvje.js";const p=o,r=s;export{p as PPaginationPages,r as defineCustomElement}
1
+ import{P as o,d as s}from"./p-DZzA60Dx.js";const p=o,r=s;export{p as PPaginationPages,r as defineCustomElement}
@@ -1 +1 @@
1
- import{P as s,d as o}from"./p-BmsR-djQ.js";const m=s,p=o;export{m as PPaginationSize,p as defineCustomElement}
1
+ import{P as o,d as s}from"./p-PISPo1NR.js";const p=o,r=s;export{p as PPaginationSize,r as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as s}from"./p-BDWOQXx7.js";const p=o,r=s;export{p as PPagination,r as defineCustomElement}
1
+ import{P as o,d as s}from"./p-4KZlY5xH.js";const p=o,r=s;export{p as PPagination,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as o,h as a}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{d as i}from"./p-DHKJDm0J.js";import{d as n}from"./p-BG1plx2A.js";import{d as p}from"./p-CQnWpHIs.js";import{d as l}from"./p-gEaqH36V.js";import{d}from"./p-D8faiybE.js";const m=s(["flex min-w-0 flex-1 items-center gap-2"],{variants:{dropdown:{false:"h-10 py-1",true:null}}}),c=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}dropdownLocation="bottom-end";get _el(){return this}_dropdownOpen=!1;_hasDropdownSlot=!1;componentWillLoad(){this._checkDropdownSlot()}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return a(r,{key:"acfcfd3ddb3bae8247f1df99884ac155be45aa86"},this._hasDropdownSlot?a("p-dropdown",{applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,manualChevron:!0,placement:this.dropdownLocation,strategy:"absolute",onIsOpen:t=>this._dropdownOpen=t.detail},a("p-button",{active:this._dropdownOpen,chevron:this._dropdownOpen?"up":"down",class:"w-full",size:"lg",slot:"trigger",variant:"dropdown"},t),a("div",{slot:"items"},a("slot",{name:"dropdown",onSlotchange:()=>this._checkDropdownSlot()}))):t)}slotchange(){this._checkDropdownSlot()}_checkDropdownSlot(){this._hasDropdownSlot=!!this._el.querySelector(':scope > [slot="dropdown"]'),!this._hasDropdownSlot&&this._dropdownOpen&&(this._dropdownOpen=!1)}_getContent(){return a("div",{class:m({dropdown:this._hasDropdownSlot})},a("slot",{name:"avatar"}),a("div",{class:"flex min-w-0 flex-1 flex-col items-start"},a("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-sm font-semibold text-storm-500\n dark:text-white\n "},a("slot",{name:"title"})),a("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-xs font-medium text-storm-400\n dark:text-hurricane-200\n "},a("slot",{name:"subtitle"}))),a("slot",{name:"post-title"}))}_updateAvatar(){const t=this._el.querySelector('p-avatar[slot="avatar"]');t&&(t.size=this._hasDropdownSlot?"sm":t.size)}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-10{height:2.5rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-profile",{dropdownLocation:[1,"dropdown-location"],_dropdownOpen:[32],_hasDropdownSlot:[32]},[[0,"slotchange","slotchange"]]]);function h(){"undefined"!=typeof customElements&&["p-profile","p-button","p-dropdown","p-dropdown-menu-container","p-icon","p-loader"].forEach((e=>{switch(e){case"p-profile":customElements.get(t(e))||customElements.define(t(e),c);break;case"p-button":customElements.get(t(e))||i();break;case"p-dropdown":customElements.get(t(e))||n();break;case"p-dropdown-menu-container":customElements.get(t(e))||p();break;case"p-icon":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||d()}}))}h();const w=c,x=h;export{w as PProfile,x as defineCustomElement}
1
+ import{t,p as e,H as o,h as a}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{d as i}from"./p-DHKJDm0J.js";import{d as n}from"./p-vlEpgOl1.js";import{d as p}from"./p-CQnWpHIs.js";import{d as l}from"./p-gEaqH36V.js";import{d}from"./p-D8faiybE.js";const m=s(["flex min-w-0 flex-1 items-center gap-2"],{variants:{dropdown:{false:"h-10 py-1",true:null}}}),c=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}dropdownLocation="bottom-end";get _el(){return this}_dropdownOpen=!1;_hasDropdownSlot=!1;componentWillLoad(){this._checkDropdownSlot()}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return a(r,{key:"c71ae75aee86e05fc18b7a726993bb8b8a914396"},this._hasDropdownSlot?a("p-dropdown",{applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,manualChevron:!0,placement:this.dropdownLocation,strategy:"absolute",onIsOpen:t=>this._dropdownOpen=t.detail},a("p-button",{active:this._dropdownOpen,chevron:this._dropdownOpen?"up":"down",class:"w-full",size:"lg",slot:"trigger",variant:"dropdown"},t),a("div",{slot:"items"},a("slot",{name:"dropdown",onSlotchange:()=>this._checkDropdownSlot()}))):t)}slotchange(){this._checkDropdownSlot()}_checkDropdownSlot(){this._hasDropdownSlot=!!this._el.querySelector(':scope > [slot="dropdown"]'),!this._hasDropdownSlot&&this._dropdownOpen&&(this._dropdownOpen=!1)}_getContent(){return a("div",{class:m({dropdown:this._hasDropdownSlot})},a("slot",{name:"avatar"}),a("div",{class:"flex min-w-0 flex-1 flex-col items-start"},a("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-sm font-semibold text-storm-500\n dark:text-white\n "},a("slot",{name:"title"})),a("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-xs font-medium text-storm-400\n dark:text-hurricane-200\n "},a("slot",{name:"subtitle"}))),a("slot",{name:"post-title"}))}_updateAvatar(){const t=this._el.querySelector('p-avatar[slot="avatar"]');t&&(t.size=this._hasDropdownSlot?"sm":t.size)}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-10{height:2.5rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-profile",{dropdownLocation:[1,"dropdown-location"],_dropdownOpen:[32],_hasDropdownSlot:[32]},[[0,"slotchange","slotchange"]]]);function h(){"undefined"!=typeof customElements&&["p-profile","p-button","p-dropdown","p-dropdown-menu-container","p-icon","p-loader"].forEach((e=>{switch(e){case"p-profile":customElements.get(t(e))||customElements.define(t(e),c);break;case"p-button":customElements.get(t(e))||i();break;case"p-dropdown":customElements.get(t(e))||n();break;case"p-dropdown-menu-container":customElements.get(t(e))||p();break;case"p-icon":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||d()}}))}h();const w=c,x=h;export{w as PProfile,x as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-c6u4OYf0.js";const p=o,r=s;export{p as PRange,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-BAVMxgJn.js";const p=o,r=s;export{p as PRange,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as i,c as s,h as a,F as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as h}from"./p-Au2WuEGF.js";import{a as n}from"./p-TyZ7uPES.js";import{c as l}from"./p-xs4N_Y-0.js";import{S as d}from"./p-CEaB2BT0.js";import{d as c}from"./p-c4v-m6AC.js";import{d as p}from"./p-DHKJDm0J.js";import{d as m}from"./p-CZ8afGMO.js";import{d as u}from"./p-CPSiExRl.js";import{d as y}from"./p-BG1plx2A.js";import{d as x}from"./p-CQnWpHIs.js";import{d as w}from"./p-CZEHKnpM.js";import{d as g}from"./p-Cmltn24W.js";import{d as v}from"./p-DHJIvL0U.js";import{d as f}from"./p-ByJPQrlL.js";import{d as b}from"./p-gEaqH36V.js";import{d as k}from"./p-D8faiybE.js";import{d as C}from"./p-CxrxqKhq.js";const _=o(["flex items-center gap-2","h-full min-w-0 flex-1","pointer-events-none overflow-hidden"]),I=o(["item group/item","pointer-events-auto cursor-pointer","flex h-[1.625rem] items-center gap-2","h-[1.625rem] px-2","whitespace-nowrap text-sm font-semibold","rounded-lg","bg-indigo-100","dark:bg-white/15"]),S=o("block w-full overflow-hidden text-start",{variants:{variant:{placeholder:"text-storm-400",default:null},enableTextWrap:{true:!1,false:"text-ellipsis whitespace-nowrap"},error:{true:!1,false:"dark:text-white"}},compoundVariants:[{variant:"placeholder",error:!0,class:"\n text-negative-red-700\n group-hover/button:text-negative-red-800\n dark:text-negative-red-alternative\n "},{variant:"default",error:!0,class:"dark:text-negative-red-alternative"}]}),K=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.queryChange=s(this,"queryChange",3),this.valueChange=s(this,"valueChange",3),this.selectAllChange=s(this,"selectAllChange",3),this.dropdownShown=s(this,"dropdownShown",3),this.itemHover=s(this,"itemHover",3),this.add=s(this,"add",3),this._internals=this.attachInternals()}items;multi;strategy="absolute";icon;query;placeholder;autocompletePlaceholder="Search...";value;displayKey="text";dropdownDisplayKey;selectionDisplayKey;valueKey;avatarKey;iconKey="icon";iconClassKey="iconClass";showIconOnSelectedItem;classKey="class";applyClassOnSelectedItem;applyClassOnSelectedItemInMenu;avatarLettersKey;identifierKey;queryKey;autoSelectFirst=!0;showChevron=!0;maxDisplayedItems=d;enableAutocomplete=!0;enableTextWrap=!1;asyncFilter=!1;loading=!1;enableSelectAll=!1;selectAllText="Select all";selectAllIcon;queryChange;valueChange;selectAllChange;dropdownShown;itemHover;size="base";prefix;label;helper;required=!0;showOptional=!0;error;disabled=!1;showAddItem=!1;addItemText="Add item";add;emptyStateText="No items available";get _el(){return this}_showDropdown=!1;_selectedItem=null;_allSelected=!1;_amountHidden=0;_internals;_inputRef;autocompleteInputRef;_multiContainerRef;_resizeObserver;_resizeDebounceTimer;_checkSelectedItemsTimeout;get _items(){return this._getParsedItems()}get _displayValue(){const t=a("div",{class:S({variant:"placeholder",error:!!this.error?.length})},this.placeholder);return this._selectedItem?this.multi?0===this._selectedItem?.length?t:a("div",{class:_(),ref:t=>this._multiContainerRef=t},this._selectedItem.map((t=>a("div",{class:I(),onClick:()=>this._selectValue(t)},t[this.selectionDisplayKey??this.displayKey],a("p-icon",{class:"\n text-xs text-indigo-500\n group-hover/item:text-indigo-800\n dark:text-white/15\n dark:group-hover/item:text-white\n ",variant:"negative"})))),a("div",{class:"extra pointer-events-none hidden text-sm text-storm-100"},"+",this._amountHidden)):this._getDisplay(this._selectedItem,!0):t}get _identifierKey(){return this.identifierKey??this.valueKey??"value"}formResetCallback(){this._selectValue(null)}componentDidLoad(){if(!this.valueKey&&!this.identifierKey)throw Error("You must provide a valueKey or identifierKey");this.multi&&(this._setMultiContainerMaxWidth(),this._resizeObserver=new ResizeObserver((()=>{this._resizeDebounceTimer&&(clearTimeout(this._resizeDebounceTimer),this._resizeDebounceTimer=null),this._resizeDebounceTimer=setTimeout((()=>{this._setMultiContainerMaxWidth(),this._setCheckSelectedItemsTimeout()}),200)})),this._resizeObserver.observe(this._el)),this.value?this._valueChange():this.itemChanges()}componentDidRender(){this.multi&&this._setMultiContainerMaxWidth()}disconnectedCallback(){this.multi&&this._resizeObserver.disconnect()}render(){let t=this.icon;return this._selectedItem&&!this.avatarKey&&this.iconKey&&this._selectedItem?.[this.iconKey]&&!this.showIconOnSelectedItem&&(t=this._selectedItem[this.iconKey]),(this.avatarKey&&this._selectedItem?.[this.avatarKey]||this.avatarLettersKey&&this._selectedItem?.[this.avatarLettersKey])&&(t=null),this.error?.length&&(t="warning"),a(h,{key:"b23bf53949366811ec68b34250ddd36d3d86efc0"},a("p-field-container",{key:"1429705940cd1ec6f88d28be966273731f6e4f4e",error:this.error,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,label:this.label,prefix:this.prefix,required:this.required,showOptional:this.showOptional,variant:"write"},a("p-dropdown",{key:"d006fc242b99db8979509be0eaf2aba96d6a5051",applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,"disable-trigger-click":this.disabled,insideClick:!0,manual:!0,manualChevron:!0,scrollable:!this.enableAutocomplete||"large",show:this._showDropdown,slot:"content",strategy:this.strategy,onIsOpen:t=>this._onDropdownOpen(t)},a("p-button",{key:"6bf30b07753477e8ce4ff9f60d739c71f1ab3388",active:this._showDropdown,chevron:!!this.showChevron&&(this._showDropdown?"up":"down"),class:"w-full",error:!!this.error?.length,icon:t,iconClass:this.applyClassOnSelectedItem&&this._selectedItem?.[this.iconClassKey],size:this.size,slot:"trigger",variant:"secondary",onClick:t=>this._onClick(t)},a("div",{key:"b940d807179e88c328366bcc671eaf467736ed38",class:"relative min-w-0 flex-1",ref:t=>this._inputRef=t},this._displayValue)),this.loading?this._getLoadingItems():this._getItems(),this.showAddItem&&this._getAddItem())))}documentClickHandler(t){this._showDropdown&&!n(t,this._el)&&(this._showDropdown=!1)}_valueChange(){setTimeout((()=>{this._preselectItem(),this._setCheckSelectedItemsTimeout()}))}itemChanges(){setTimeout((()=>this._preselectItem()))}_showDropdownChanges(){this.dropdownShown.emit({value:this._showDropdown,query:this.query})}multiChanges(){this._selectedItem&&!Array.isArray(this._selectedItem)&&(this._selectedItem=[])}_preselectItem(){let t="string"==typeof this.value&&this.multi?JSON.parse(this.value):this.value;if(this.multi)return Array.isArray(t)?(this.value=t,0===t.length?void(this._selectedItem=[]):void(this._selectedItem=this.valueKey&&"false"!==this.valueKey?this._items.filter((e=>t.includes(e?.[this.valueKey]))):[...t])):(this.value=[],void this.valueChange.emit(this.value));this._selectedItem||t||!this.autoSelectFirst||(t=this._items[0],"category"===t?.type&&(t=this._items[1]));const e="object"==typeof t&&null!==t?t[this._identifierKey]:t,i="string"==typeof e||"number"==typeof e?e:JSON.stringify(e),s=this._selectedItem?this._selectedItem?.[this._identifierKey]:null,a="string"==typeof s||"number"==typeof s?s:JSON.stringify(s);if(this._selectedItem&&a===i)return;if(!this._items?.length&&t)return void this._selectValue(t,!1);const r=this._getParsedItems(!1).find((t=>{const e=t?.[this._identifierKey];return("string"==typeof e||"number"==typeof e?e:JSON.stringify(e))===i}));this._selectValue(r??t,!1)}_selectValue(t,e=!0){let i=this.valueKey&&"false"!==this.valueKey&&null!==t&&!this.loading?t?.[this.valueKey]:t;if(this.multi){this._selectedItem&&Array.isArray(this._selectedItem)||(this._selectedItem=[]),this.value&&Array.isArray(this.value)||(this.value=[]);const e=[...this._selectedItem],s=[...this.value],a=e.findIndex((e=>e[this._identifierKey]===t[this._identifierKey]));return-1===a?(e.push(t),s.push(i)):(e.splice(a,1),s.splice(a,1)),this._selectedItem=e,this.value=s,void this.valueChange.emit(s)}this._selectedItem=t,this._onBlur(e),i!==this.value&&(this.value=i,this.valueChange.emit(i))}_onClick(t){const e=t?.composedPath();for(const t of e){if("p-button"===t.nodeName.toLowerCase())break;if(t.classList?.contains("item"))return}this._showDropdown=!this._showDropdown}_onBlur(t=!1){this.enableAutocomplete&&!t||(this._showDropdown=!1)}_onAutoComplete(t){this.enableAutocomplete&&(this._showDropdown=!0,this.query=t.detail,this.queryChange.emit(t.detail))}_checkvalue(t,e){return e?.[t]?.toString()?.toLowerCase().indexOf(this.query?.toLowerCase())>=0}_getItems(){let t=this._items.map(((t,e)=>{if("category"===t.type)return a("p-dropdown-menu-item",{slot:"items",useContainer:!1,variant:"category"},t.text);const i=this.multi&&this._selectedItem&&Array.isArray(this._selectedItem)?this._selectedItem.some((e=>e[this._identifierKey]===t[this._identifierKey])):t[this._identifierKey]===this._selectedItem?.[this._identifierKey];return a("p-dropdown-menu-item",{active:i,checkbox:!!this.multi,enableTextWrap:this.enableTextWrap,slot:"items",useContainer:!1,onClick:()=>this._selectValue(t),onMouseEnter:i=>this.itemHover.emit({event:i,ref:i.target,item:t,index:e})},this._getDisplay(t,!1,i))}));return 0!==this._items.length||this.showAddItem||(t=[a("p",{class:"\n w-full p-2 text-center text-sm text-storm-400\n dark:text-hurricane-200\n ",slot:"items"},this.emptyStateText)]),this.enableSelectAll&&this._items.length>0&&t.unshift(a("p-dropdown-menu-item",{active:this._allSelected,slot:"items",useContainer:!1,checkbox:!0,onClick:()=>this._selectAllChange()},this.selectAllIcon?.length?a("span",{class:"flex items-center gap-2"},a("div",{class:"flex w-6 justify-center text-lg"},a("p-icon",{variant:this.selectAllIcon}))," ",this.selectAllText):this.selectAllText)),this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAddItem(){return a(r,null,this._items.length>0&&a("p-divider",{class:"my-1 px-2",slot:"items"}),a("p-dropdown-menu-item",{slot:"items",useContainer:!1,onClick:()=>this.add.emit()},a("span",{class:"flex items-center gap-1 font-semibold text-indigo-600"},this.addItemText,a("p-icon",{variant:"plus"}))))}_getLoadingItems(){const t=[0,0,0].map((()=>a("p-dropdown-menu-item",{enableHover:!1,slot:"items"},a("p-loader",{class:"h-6 w-full rounded",variant:"ghost"}))));return this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAutoCompleteItem(){return a("div",{class:"sticky top-0 z-10 mb-3 h-8",slot:"items"},a("p-field",{class:"block",placeholder:this.autocompletePlaceholder,value:this.query,onInputRefChange:t=>this.autocompleteInputRef=t.detail,onValueChange:t=>this._onAutoComplete(t)}))}_setMultiContainerMaxWidth(){this._inputRef&&this._multiContainerRef&&(this._multiContainerRef.style.maxWidth=Math.max(this._inputRef.clientWidth-16,16)+"px")}_setCheckSelectedItemsTimeout(){this._checkSelectedItemsTimeout&&clearTimeout(this._checkSelectedItemsTimeout),this._checkSelectedItemsTimeout=setTimeout((()=>this._checkSelectedItems()),50)}_checkSelectedItems(){if(!this._multiContainerRef)return;const t=this._multiContainerRef.getBoundingClientRect(),e=this._multiContainerRef.querySelectorAll(".item");let i=0;for(const s of e)s.classList.remove("hidden"),s.classList.add("flex"),s.getBoundingClientRect().right>t.right&&(s.classList.remove("flex"),s.classList.add("hidden"),i++);this._amountHidden=i;const s=this._multiContainerRef.querySelector(".extra");s&&(s.classList.contains("hidden")||s.classList.add("hidden"),i>0&&s.classList.remove("hidden"))}_onDropdownOpen(t){t.detail&&this.autocompleteInputRef&&setTimeout((()=>this.autocompleteInputRef.focus()),100)}_selectAllChange(){this._allSelected=!this._allSelected,this.selectAllChange.emit(this._allSelected)}_getDisplay(t,e=!1,i=!1){let s=a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[e?this.selectionDisplayKey??this.displayKey:this.displayKey]);return this.avatarKey&&(s=a("span",{class:"flex items-center gap-2"},a("p-avatar",{letters:t[this.avatarLettersKey],size:"sm",src:t[this.avatarKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),!this.iconKey||e&&!this.showIconOnSelectedItem||(s=a("span",{class:"flex items-center gap-2"},t[this.iconKey]&&a("p-icon",{class:l("\n text-storm-300\n dark:text-hurricane-200\n ",e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu?"":t?.[this.iconClassKey]??""),variant:t[this.iconKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu||!t?.[this.classKey]?.length?s:a("div",{class:t[this.classKey]},s)}_getParsedItems(t=!0){if(!this.items||this.loading)return[];let e=this.items;if("string"==typeof this.items&&(e=JSON.parse(this.items)),"object"==typeof e&&!Array.isArray(e)){const t=[];for(const i in e){let s=e[i];"string"==typeof e[i]?.[0]&&(this.displayKey="text",this.valueKey="value",s=e[i].map((t=>({value:t,text:t})))),t.push({type:"category",text:i},...s)}e=t}"string"==typeof e?.[0]&&(this.displayKey="text",this.valueKey="value",e=e.map((t=>({value:t,text:t}))));let i=e;return this.query?.length&&!this.asyncFilter&&(i=i.filter((t=>"category"===t.type||(this.queryKey?this._checkvalue(this.queryKey,t):this._checkvalue(this._identifierKey,t)||this._checkvalue(this.displayKey,t))))),t?i?.slice(0,this.maxDisplayedItems):i}static get formAssociated(){return!0}static get watchers(){return{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}}static get style(){return"*{box-sizing:border-box}:host{--tw-translate-y:0px!important;--tw-translate-x:0px!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.my-1{margin-bottom:.25rem;margin-top:.25rem}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[1\\.625rem\\]{height:1.625rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/item:hover .group-hover\\/item\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[576,"p-select",{items:[1],multi:[516],strategy:[1],icon:[1],query:[1],placeholder:[1],autocompletePlaceholder:[1,"autocomplete-placeholder"],value:[8],displayKey:[1,"display-key"],dropdownDisplayKey:[1,"dropdown-display-key"],selectionDisplayKey:[1,"selection-display-key"],valueKey:[1,"value-key"],avatarKey:[1,"avatar-key"],iconKey:[1,"icon-key"],iconClassKey:[1,"icon-class-key"],showIconOnSelectedItem:[1,"show-icon-on-selected-item"],classKey:[1,"class-key"],applyClassOnSelectedItem:[4,"apply-class-on-selected-item"],applyClassOnSelectedItemInMenu:[4,"apply-class-on-selected-item-in-menu"],avatarLettersKey:[1,"avatar-letters-key"],identifierKey:[1,"identifier-key"],queryKey:[1,"query-key"],autoSelectFirst:[4,"auto-select-first"],showChevron:[4,"show-chevron"],maxDisplayedItems:[2,"max-displayed-items"],enableAutocomplete:[4,"enable-autocomplete"],enableTextWrap:[4,"enable-text-wrap"],asyncFilter:[4,"async-filter"],loading:[4],enableSelectAll:[4,"enable-select-all"],selectAllText:[1,"select-all-text"],selectAllIcon:[1,"select-all-icon"],size:[1],prefix:[1],label:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],showAddItem:[4,"show-add-item"],addItemText:[1,"add-item-text"],emptyStateText:[1,"empty-state-text"],_showDropdown:[32],_selectedItem:[32],_allSelected:[32],_amountHidden:[32]},[[6,"click","documentClickHandler"]],{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}]);function A(){"undefined"!=typeof customElements&&["p-select","p-avatar","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-select":customElements.get(t(e))||customElements.define(t(e),K);break;case"p-avatar":customElements.get(t(e))||c();break;case"p-button":customElements.get(t(e))||p();break;case"p-checkbox":customElements.get(t(e))||m();break;case"p-divider":customElements.get(t(e))||u();break;case"p-dropdown":customElements.get(t(e))||y();break;case"p-dropdown-menu-container":customElements.get(t(e))||x();break;case"p-dropdown-menu-item":customElements.get(t(e))||w();break;case"p-field":customElements.get(t(e))||g();break;case"p-field-container":customElements.get(t(e))||v();break;case"p-helper":customElements.get(t(e))||f();break;case"p-icon":customElements.get(t(e))||b();break;case"p-loader":customElements.get(t(e))||k();break;case"p-tooltip":customElements.get(t(e))||C()}}))}A();const T=K,j=A;export{T as PSelect,j as defineCustomElement}
1
+ import{t,p as e,H as i,c as s,h as a,F as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as h}from"./p-Au2WuEGF.js";import{a as n}from"./p-TyZ7uPES.js";import{c as l}from"./p-xs4N_Y-0.js";import{S as d}from"./p-CEaB2BT0.js";import{d as c}from"./p-c4v-m6AC.js";import{d as p}from"./p-DHKJDm0J.js";import{d as m}from"./p-CZ8afGMO.js";import{d as u}from"./p-CPSiExRl.js";import{d as y}from"./p-vlEpgOl1.js";import{d as g}from"./p-CQnWpHIs.js";import{d as w}from"./p-CZEHKnpM.js";import{d as v}from"./p-D9Vv2Jg9.js";import{d as x}from"./p-B7pLpkL0.js";import{d as f}from"./p-GGeQLkOT.js";import{d as b}from"./p-gEaqH36V.js";import{d as k}from"./p-D8faiybE.js";import{d as C}from"./p-B3Dks732.js";const _=o(["flex items-center gap-2","h-full min-w-0 flex-1","pointer-events-none overflow-hidden"]),I=o(["item group/item","pointer-events-auto cursor-pointer","flex h-[1.625rem] items-center gap-2","h-[1.625rem] px-2","whitespace-nowrap text-sm font-semibold","rounded-lg","bg-indigo-100","dark:bg-white/15"]),S=o("block w-full overflow-hidden text-start",{variants:{variant:{placeholder:"text-storm-400",default:null},enableTextWrap:{true:!1,false:"text-ellipsis whitespace-nowrap"},error:{true:!1,false:"dark:text-white"}},compoundVariants:[{variant:"placeholder",error:!0,class:"\n text-negative-red-700\n group-hover/button:text-negative-red-800\n dark:text-negative-red-alternative\n "},{variant:"default",error:!0,class:"dark:text-negative-red-alternative"}]}),T=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.queryChange=s(this,"queryChange",3),this.valueChange=s(this,"valueChange",3),this.selectAllChange=s(this,"selectAllChange",3),this.dropdownShown=s(this,"dropdownShown",3),this.itemHover=s(this,"itemHover",3),this.add=s(this,"add",3),this._internals=this.attachInternals()}items;multi;strategy="absolute";icon;query;placeholder;autocompletePlaceholder="Search...";value;displayKey="text";dropdownDisplayKey;selectionDisplayKey;valueKey;avatarKey;iconKey="icon";iconClassKey="iconClass";showIconOnSelectedItem;classKey="class";applyClassOnSelectedItem;applyClassOnSelectedItemInMenu;avatarLettersKey;identifierKey;queryKey;autoSelectFirst=!0;showChevron=!0;maxDisplayedItems=d;enableAutocomplete=!0;enableTextWrap=!1;asyncFilter=!1;loading=!1;enableSelectAll=!1;selectAllText="Select all";selectAllIcon;queryChange;valueChange;selectAllChange;dropdownShown;itemHover;size="base";prefix;label;helper;required=!0;showOptional=!0;error;disabled=!1;showAddItem=!1;addItemText="Add item";add;emptyStateText="No items available";get _el(){return this}_showDropdown=!1;_selectedItem=null;_allSelected=!1;_amountHidden=0;_internals;_inputRef;autocompleteInputRef;_multiContainerRef;_resizeObserver;_resizeDebounceTimer;_checkSelectedItemsTimeout;get _items(){return this._getParsedItems()}get _displayValue(){const t=a("div",{class:S({variant:"placeholder",error:!!this.error?.length})},this.placeholder);return this._selectedItem?this.multi?0===this._selectedItem?.length?t:a("div",{class:_(),ref:t=>this._multiContainerRef=t},this._selectedItem.map((t=>a("div",{class:I(),onClick:()=>this._selectValue(t)},t[this.selectionDisplayKey??this.displayKey],a("p-icon",{class:"\n text-xs text-indigo-500\n group-hover/item:text-indigo-800\n dark:text-white/15\n dark:group-hover/item:text-white\n ",variant:"negative"})))),a("div",{class:"extra pointer-events-none hidden text-sm text-storm-100"},"+",this._amountHidden)):this._getDisplay(this._selectedItem,!0):t}get _identifierKey(){return this.identifierKey??this.valueKey??"value"}formResetCallback(){this._selectValue(null)}componentDidLoad(){if(!this.valueKey&&!this.identifierKey)throw Error("You must provide a valueKey or identifierKey");this.multi&&(this._setMultiContainerMaxWidth(),this._resizeObserver=new ResizeObserver((()=>{this._resizeDebounceTimer&&(clearTimeout(this._resizeDebounceTimer),this._resizeDebounceTimer=null),this._resizeDebounceTimer=setTimeout((()=>{this._setMultiContainerMaxWidth(),this._setCheckSelectedItemsTimeout()}),200)})),this._resizeObserver.observe(this._el)),this.value?this._valueChange():this.itemChanges()}componentDidRender(){this.multi&&this._setMultiContainerMaxWidth()}disconnectedCallback(){this.multi&&this._resizeObserver.disconnect()}render(){let t=this.icon;return this._selectedItem&&!this.avatarKey&&this.iconKey&&this._selectedItem?.[this.iconKey]&&!this.showIconOnSelectedItem&&(t=this._selectedItem[this.iconKey]),(this.avatarKey&&this._selectedItem?.[this.avatarKey]||this.avatarLettersKey&&this._selectedItem?.[this.avatarLettersKey])&&(t=null),this.error?.length&&(t="warning"),a(h,{key:"b23bf53949366811ec68b34250ddd36d3d86efc0"},a("p-field-container",{key:"1429705940cd1ec6f88d28be966273731f6e4f4e",error:this.error,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,label:this.label,prefix:this.prefix,required:this.required,showOptional:this.showOptional,variant:"write"},a("p-dropdown",{key:"d006fc242b99db8979509be0eaf2aba96d6a5051",applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,"disable-trigger-click":this.disabled,insideClick:!0,manual:!0,manualChevron:!0,scrollable:!this.enableAutocomplete||"large",show:this._showDropdown,slot:"content",strategy:this.strategy,onIsOpen:t=>this._onDropdownOpen(t)},a("p-button",{key:"6bf30b07753477e8ce4ff9f60d739c71f1ab3388",active:this._showDropdown,chevron:!!this.showChevron&&(this._showDropdown?"up":"down"),class:"w-full",error:!!this.error?.length,icon:t,iconClass:this.applyClassOnSelectedItem&&this._selectedItem?.[this.iconClassKey],size:this.size,slot:"trigger",variant:"secondary",onClick:t=>this._onClick(t)},a("div",{key:"b940d807179e88c328366bcc671eaf467736ed38",class:"relative min-w-0 flex-1",ref:t=>this._inputRef=t},this._displayValue)),this.loading?this._getLoadingItems():this._getItems(),this.showAddItem&&this._getAddItem())))}documentClickHandler(t){this._showDropdown&&!n(t,this._el)&&(this._showDropdown=!1)}_valueChange(){setTimeout((()=>{this._preselectItem(),this._setCheckSelectedItemsTimeout()}))}itemChanges(){setTimeout((()=>this._preselectItem()))}_showDropdownChanges(){this.dropdownShown.emit({value:this._showDropdown,query:this.query})}multiChanges(){this._selectedItem&&!Array.isArray(this._selectedItem)&&(this._selectedItem=[])}_preselectItem(){let t="string"==typeof this.value&&this.multi?JSON.parse(this.value):this.value;if(this.multi)return Array.isArray(t)?(this.value=t,0===t.length?void(this._selectedItem=[]):void(this._selectedItem=this.valueKey&&"false"!==this.valueKey?this._items.filter((e=>t.includes(e?.[this.valueKey]))):[...t])):(this.value=[],void this.valueChange.emit(this.value));this._selectedItem||t||!this.autoSelectFirst||(t=this._items[0],"category"===t?.type&&(t=this._items[1]));const e="object"==typeof t&&null!==t?t[this._identifierKey]:t,i="string"==typeof e||"number"==typeof e?e:JSON.stringify(e),s=this._selectedItem?this._selectedItem?.[this._identifierKey]:null,a="string"==typeof s||"number"==typeof s?s:JSON.stringify(s);if(this._selectedItem&&a===i)return;if(!this._items?.length&&t)return void this._selectValue(t,!1);const r=this._getParsedItems(!1).find((t=>{const e=t?.[this._identifierKey];return("string"==typeof e||"number"==typeof e?e:JSON.stringify(e))===i}));this._selectValue(r??t,!1)}_selectValue(t,e=!0){let i=this.valueKey&&"false"!==this.valueKey&&null!==t&&!this.loading?t?.[this.valueKey]:t;if(this.multi){this._selectedItem&&Array.isArray(this._selectedItem)||(this._selectedItem=[]),this.value&&Array.isArray(this.value)||(this.value=[]);const e=[...this._selectedItem],s=[...this.value],a=e.findIndex((e=>e[this._identifierKey]===t[this._identifierKey]));return-1===a?(e.push(t),s.push(i)):(e.splice(a,1),s.splice(a,1)),this._selectedItem=e,this.value=s,void this.valueChange.emit(s)}this._selectedItem=t,this._onBlur(e),i!==this.value&&(this.value=i,this.valueChange.emit(i))}_onClick(t){const e=t?.composedPath();for(const t of e){if("p-button"===t.nodeName.toLowerCase())break;if(t.classList?.contains("item"))return}this._showDropdown=!this._showDropdown}_onBlur(t=!1){this.enableAutocomplete&&!t||(this._showDropdown=!1)}_onAutoComplete(t){this.enableAutocomplete&&(this._showDropdown=!0,this.query=t.detail,this.queryChange.emit(t.detail))}_checkvalue(t,e){return e?.[t]?.toString()?.toLowerCase().indexOf(this.query?.toLowerCase())>=0}_getItems(){let t=this._items.map(((t,e)=>{if("category"===t.type)return a("p-dropdown-menu-item",{slot:"items",useContainer:!1,variant:"category"},t.text);const i=this.multi&&this._selectedItem&&Array.isArray(this._selectedItem)?this._selectedItem.some((e=>e[this._identifierKey]===t[this._identifierKey])):t[this._identifierKey]===this._selectedItem?.[this._identifierKey];return a("p-dropdown-menu-item",{active:i,checkbox:!!this.multi,enableTextWrap:this.enableTextWrap,slot:"items",useContainer:!1,onClick:()=>this._selectValue(t),onMouseEnter:i=>this.itemHover.emit({event:i,ref:i.target,item:t,index:e})},this._getDisplay(t,!1,i))}));return 0!==this._items.length||this.showAddItem||(t=[a("p",{class:"\n w-full p-2 text-center text-sm text-storm-400\n dark:text-hurricane-200\n ",slot:"items"},this.emptyStateText)]),this.enableSelectAll&&this._items.length>0&&t.unshift(a("p-dropdown-menu-item",{active:this._allSelected,slot:"items",useContainer:!1,checkbox:!0,onClick:()=>this._selectAllChange()},this.selectAllIcon?.length?a("span",{class:"flex items-center gap-2"},a("div",{class:"flex w-6 justify-center text-lg"},a("p-icon",{variant:this.selectAllIcon}))," ",this.selectAllText):this.selectAllText)),this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAddItem(){return a(r,null,this._items.length>0&&a("p-divider",{class:"my-1 px-2",slot:"items"}),a("p-dropdown-menu-item",{slot:"items",useContainer:!1,onClick:()=>this.add.emit()},a("span",{class:"flex items-center gap-1 font-semibold text-indigo-600"},this.addItemText,a("p-icon",{variant:"plus"}))))}_getLoadingItems(){const t=[0,0,0].map((()=>a("p-dropdown-menu-item",{enableHover:!1,slot:"items"},a("p-loader",{class:"h-6 w-full rounded",variant:"ghost"}))));return this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAutoCompleteItem(){return a("div",{class:"sticky top-0 z-10 mb-3 h-8",slot:"items"},a("p-field",{class:"block",placeholder:this.autocompletePlaceholder,value:this.query,onInputRefChange:t=>this.autocompleteInputRef=t.detail,onValueChange:t=>this._onAutoComplete(t)}))}_setMultiContainerMaxWidth(){this._inputRef&&this._multiContainerRef&&(this._multiContainerRef.style.maxWidth=Math.max(this._inputRef.clientWidth-16,16)+"px")}_setCheckSelectedItemsTimeout(){this._checkSelectedItemsTimeout&&clearTimeout(this._checkSelectedItemsTimeout),this._checkSelectedItemsTimeout=setTimeout((()=>this._checkSelectedItems()),50)}_checkSelectedItems(){if(!this._multiContainerRef)return;const t=this._multiContainerRef.getBoundingClientRect(),e=this._multiContainerRef.querySelectorAll(".item");let i=0;for(const s of e)s.classList.remove("hidden"),s.classList.add("flex"),s.getBoundingClientRect().right>t.right&&(s.classList.remove("flex"),s.classList.add("hidden"),i++);this._amountHidden=i;const s=this._multiContainerRef.querySelector(".extra");s&&(s.classList.contains("hidden")||s.classList.add("hidden"),i>0&&s.classList.remove("hidden"))}_onDropdownOpen(t){t.detail&&this.autocompleteInputRef&&setTimeout((()=>this.autocompleteInputRef.focus()),100)}_selectAllChange(){this._allSelected=!this._allSelected,this.selectAllChange.emit(this._allSelected)}_getDisplay(t,e=!1,i=!1){let s=a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[e?this.selectionDisplayKey??this.displayKey:this.displayKey]);return this.avatarKey&&(s=a("span",{class:"flex items-center gap-2"},a("p-avatar",{letters:t[this.avatarLettersKey],size:"sm",src:t[this.avatarKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),!this.iconKey||e&&!this.showIconOnSelectedItem||(s=a("span",{class:"flex items-center gap-2"},t[this.iconKey]&&a("p-icon",{class:l("\n text-storm-300\n dark:text-hurricane-200\n ",e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu?"":t?.[this.iconClassKey]??""),variant:t[this.iconKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu||!t?.[this.classKey]?.length?s:a("div",{class:t[this.classKey]},s)}_getParsedItems(t=!0){if(!this.items||this.loading)return[];let e=this.items;if("string"==typeof this.items&&(e=JSON.parse(this.items)),"object"==typeof e&&!Array.isArray(e)){const t=[];for(const i in e){let s=e[i];"string"==typeof e[i]?.[0]&&(this.displayKey="text",this.valueKey="value",s=e[i].map((t=>({value:t,text:t})))),t.push({type:"category",text:i},...s)}e=t}"string"==typeof e?.[0]&&(this.displayKey="text",this.valueKey="value",e=e.map((t=>({value:t,text:t}))));let i=e;return this.query?.length&&!this.asyncFilter&&(i=i.filter((t=>"category"===t.type||(this.queryKey?this._checkvalue(this.queryKey,t):this._checkvalue(this._identifierKey,t)||this._checkvalue(this.displayKey,t))))),t?i?.slice(0,this.maxDisplayedItems):i}static get formAssociated(){return!0}static get watchers(){return{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}}static get style(){return"*{box-sizing:border-box}:host{--tw-translate-y:0px!important;--tw-translate-x:0px!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.my-1{margin-bottom:.25rem;margin-top:.25rem}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[1\\.625rem\\]{height:1.625rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/item:hover .group-hover\\/item\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[576,"p-select",{items:[1],multi:[516],strategy:[1],icon:[1],query:[1],placeholder:[1],autocompletePlaceholder:[1,"autocomplete-placeholder"],value:[8],displayKey:[1,"display-key"],dropdownDisplayKey:[1,"dropdown-display-key"],selectionDisplayKey:[1,"selection-display-key"],valueKey:[1,"value-key"],avatarKey:[1,"avatar-key"],iconKey:[1,"icon-key"],iconClassKey:[1,"icon-class-key"],showIconOnSelectedItem:[1,"show-icon-on-selected-item"],classKey:[1,"class-key"],applyClassOnSelectedItem:[4,"apply-class-on-selected-item"],applyClassOnSelectedItemInMenu:[4,"apply-class-on-selected-item-in-menu"],avatarLettersKey:[1,"avatar-letters-key"],identifierKey:[1,"identifier-key"],queryKey:[1,"query-key"],autoSelectFirst:[4,"auto-select-first"],showChevron:[4,"show-chevron"],maxDisplayedItems:[2,"max-displayed-items"],enableAutocomplete:[4,"enable-autocomplete"],enableTextWrap:[4,"enable-text-wrap"],asyncFilter:[4,"async-filter"],loading:[4],enableSelectAll:[4,"enable-select-all"],selectAllText:[1,"select-all-text"],selectAllIcon:[1,"select-all-icon"],size:[1],prefix:[1],label:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],showAddItem:[4,"show-add-item"],addItemText:[1,"add-item-text"],emptyStateText:[1,"empty-state-text"],_showDropdown:[32],_selectedItem:[32],_allSelected:[32],_amountHidden:[32]},[[6,"click","documentClickHandler"]],{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}]);function K(){"undefined"!=typeof customElements&&["p-select","p-avatar","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-select":customElements.get(t(e))||customElements.define(t(e),T);break;case"p-avatar":customElements.get(t(e))||c();break;case"p-button":customElements.get(t(e))||p();break;case"p-checkbox":customElements.get(t(e))||m();break;case"p-divider":customElements.get(t(e))||u();break;case"p-dropdown":customElements.get(t(e))||y();break;case"p-dropdown-menu-container":customElements.get(t(e))||g();break;case"p-dropdown-menu-item":customElements.get(t(e))||w();break;case"p-field":customElements.get(t(e))||v();break;case"p-field-container":customElements.get(t(e))||x();break;case"p-helper":customElements.get(t(e))||f();break;case"p-icon":customElements.get(t(e))||b();break;case"p-loader":customElements.get(t(e))||k();break;case"p-tooltip":customElements.get(t(e))||C()}}))}K();const A=T,E=K;export{A as PSelect,E as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as r,c as i,h as c}from"./p-CySg37XO.js";import{T as o}from"./p-Au2WuEGF.js";import{c as a}from"./p-xs4N_Y-0.js";import{d as s}from"./p-gEaqH36V.js";const n=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activeChange=i(this,"activeChange",3)}active=!1;icon="placeholder";activeChange;_lastActiveState=this.active;componentDidRender(){this._lastActiveState!==this.active&&(this._lastActiveState=this.active,this.activeChange.emit(this.active))}render(){return c(o,{key:"90bce86bc100210f8491a1a2301813046fd7de1b"},c("div",{key:"51e0542d7e19c609fec475cbbbb0115be419fbf1",class:a(["flex items-center","h-8 w-full pl-[calc(3rem+2px)]","cursor-pointer","group/submenu-item"])},c("div",{key:"a0d12ac8717ed69491bcdf4dd08b650f39aee67c",class:a("flex items-center gap-2 transition-colors",{"text-storm-400 dark:text-hurricane-100":!this.active,"text-indigo-600":this.active})},c("p-icon",{key:"45354d39e6b24c0202bcc476c02b7b1d017f91ac",variant:this.icon}),c("slot",{key:"762d3933cb5b6145aea1c07d2c3187e5401f5a50"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.pl-\\[calc\\(3rem\\+2px\\)\\]{padding-left:calc(3rem + 2px)}.text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}"}},[769,"p-submenu-item",{active:[516],icon:[513]}]);function p(){"undefined"!=typeof customElements&&["p-submenu-item","p-icon"].forEach((e=>{switch(e){case"p-submenu-item":customElements.get(t(e))||customElements.define(t(e),n);break;case"p-icon":customElements.get(t(e))||s()}}))}p();const d=n,l=p;export{d as PSubmenuItem,l as defineCustomElement}
1
+ import{t,p as e,H as r,c as a,h as i}from"./p-CySg37XO.js";import{T as o}from"./p-Au2WuEGF.js";import{c}from"./p-xs4N_Y-0.js";import{d as s}from"./p-gEaqH36V.js";const n=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activeChange=a(this,"activeChange",3)}active=!1;icon="placeholder";activeChange;_lastActiveState=this.active;componentDidRender(){this._lastActiveState!==this.active&&(this._lastActiveState=this.active,this.activeChange.emit(this.active))}render(){return i(o,{key:"4579daf4e68ade03abd2af7983535d369ba4e7d0"},i("div",{key:"23b987c8c93ac1df5ce9676971d5cd93665cabb1",class:c(["flex items-center","h-8 w-full pl-[calc(3rem+2px)]","cursor-pointer","group/submenu-item"])},i("div",{key:"e988f4eb07e19ef11020fdda727a1c30e748120f",class:c("flex items-center gap-2 transition-colors",{"text-storm-400 dark:text-hurricane-100":!this.active,"text-indigo-600":this.active})},i("p-icon",{key:"315cae7459d9340a47970834ada637ac52059897",variant:this.icon}),i("slot",{key:"78cdd4b6a7caaf4f5e23f3921fb478f16e979b8f"}))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.pl-\\[calc\\(3rem\\+2px\\)\\]{padding-left:calc(3rem + 2px)}.text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}"}},[769,"p-submenu-item",{active:[516],icon:[513]}]);function p(){"undefined"!=typeof customElements&&["p-submenu-item","p-icon"].forEach((e=>{switch(e){case"p-submenu-item":customElements.get(t(e))||customElements.define(t(e),n);break;case"p-icon":customElements.get(t(e))||s()}}))}p();const d=n,l=p;export{d as PSubmenuItem,l as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as s}from"./p-xs4N_Y-0.js";import{d}from"./p-gEaqH36V.js";const c=o(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors","relative"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),n=o(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),h=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return this}_activeItemPosition=-1;_showItemIndicator=!1;_headerOffset=0;_submenuItems=[];_hoveringItem=void 0;_itemActiveListener=()=>{const t=this._submenuItems.findIndex((t=>!0===t.active));this.active=-1!==t,-1!==t?(!this.open&&this.active&&(this.open=!0),this._setItemPosition(this._submenuItems[t])):this._showItemIndicator=!1};_itemMouseEnterListener=t=>{this._hoveringItem&&this._hoveringItem===t.target||(this._hoveringItem=t.target,this._setItemPosition(this._hoveringItem))};_itemMouseLeaveListener=t=>{setTimeout((()=>{this._hoveringItem&&this._hoveringItem!==t.target||(this._hoveringItem=void 0,this._itemActiveListener())}),100)};componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}componentDidRender(){this._calculateHeaderOffset()}disconnectedCallback(){this._removeListeners()}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),a=t.length*Number.parseInt(e.height.replace("px",""))+16;return r(i,{key:"c3a6ed7e5cba465d7e338e2a99bdec41f45c736e"},r("div",{key:"d77a6a78c054a1f955e4f1c154a3e3a1b5d7f378",class:"flex w-full flex-col"},r("div",{key:"a0067a2ed9695507201f7deaa38dcb9170a483ea",class:s(c({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"2a963f6d3a2db3bb32cb9b84a46646dec2a97934",class:n({active:this.active,open:this.open})},this.index),r("div",{key:"9a42e0938ffbae07a7b1674eca31551f11eb3c6b",class:"flex flex-1 flex-col"},r("p",{key:"7bc3f1d8a62e8358d40a86e48e50a240ca90e861",class:s("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),r("p",{key:"06412fdc6a1bf7a5f78f4a6fb2c7589d9188dc32",class:s("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),r("p-icon",{key:"2762789b5f442e836521cd4b89f5e23d48c17634",class:s({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),r("div",{key:"b050ce61b92e1185797035f7977a60c0b258e6fa",class:s("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:(this.open?a:0)+"px"}},r("div",{key:"5211381342902807ced13d616fb9ac6f396f20f5",class:s("absolute left-6 top-0 z-0 w-px",{"bg-off-white-400 dark:bg-storm-500/30":!this.active,"bg-indigo-100 dark:bg-hurricane-400":this.active}),style:{height:a+"px"}}),r("div",{key:"81eb625408a052fec4e005c3774e99b5bed26035",class:s("absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all",{"bg-indigo-600":this._showItemIndicator,"bg-transparent":!this._showItemIndicator}),style:{transform:`translateY(${this._activeItemPosition}px)`}}),r("div",{key:"68eb6a12f619fefd296a71e3573f49f7f582fa18",class:"z-10 my-2 flex flex-col"},r("slot",{key:"b60634f606158986b86df75c4fc637eef7c48410",onSlotchange:()=>this._slotChanged()})))))}onWindowResize(){this._calculateHeaderOffset(),this._itemActiveListener()}_calculateHeaderOffset(){const t=this._el.shadowRoot?.querySelector(String.raw`.group\/submenu-header`);t?this._headerOffset=t.getBoundingClientRect().bottom:this._activeItemPosition=-1}_setItemPosition(t){t&&(this._activeItemPosition=t.getBoundingClientRect().top-this._headerOffset,this._showItemIndicator||setTimeout((()=>this._showItemIndicator=!0),50))}_slotChanged(){this._removeListeners();const t=[...this._el.querySelectorAll("p-submenu-item")];for(const e of t)e.addEventListener("activeChange",this._itemActiveListener),e.addEventListener("mouseenter",this._itemMouseEnterListener),e.addEventListener("mouseleave",this._itemMouseLeaveListener);this._submenuItems=t}_removeListeners(){if(this._submenuItems.length>0)for(const t of this._submenuItems)t.removeEventListener("activeChange",this._itemActiveListener),t.removeEventListener("mouseenter",this._itemMouseEnterListener),t.removeEventListener("mouseleave",this._itemMouseLeaveListener)}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-6{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-\\[1\\]{z-index:1}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.h-8{height:2rem}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\\/30{background-color:rgba(24,30,41,.3)}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-submenu",{title:[513],subtitle:[513],index:[514],showIndex:[516,"show-index"],active:[516],open:[516],_activeItemPosition:[32],_showItemIndicator:[32]},[[9,"resize","onWindowResize"]]]);function g(){"undefined"!=typeof customElements&&["p-submenu","p-icon"].forEach((e=>{switch(e){case"p-submenu":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-icon":customElements.get(t(e))||d()}}))}g();const b=h,m=g;export{b as PSubmenu,m as defineCustomElement}
1
+ import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as s}from"./p-xs4N_Y-0.js";import{d}from"./p-gEaqH36V.js";const c=o(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors","relative"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),n=o(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),h=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return this}_activeItemPosition=-1;_showItemIndicator=!1;_headerOffset=0;_submenuItems=[];_hoveringItem=void 0;_itemActiveListener=()=>{const t=this._submenuItems.findIndex((t=>!0===t.active));this.active=-1!==t,-1!==t?(!this.open&&this.active&&(this.open=!0),this._setItemPosition(this._submenuItems[t])):this._showItemIndicator=!1};_itemMouseEnterListener=t=>{this._hoveringItem&&this._hoveringItem===t.target||(this._hoveringItem=t.target,this._setItemPosition(this._hoveringItem))};_itemMouseLeaveListener=t=>{setTimeout((()=>{this._hoveringItem&&this._hoveringItem!==t.target||(this._hoveringItem=void 0,this._itemActiveListener())}),100)};componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}componentDidRender(){this._calculateHeaderOffset()}disconnectedCallback(){this._removeListeners()}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),a=t.length*Number.parseInt(e.height.replace("px",""))+16;return r(i,{key:"b0155aacc6f39b156f88b570a4041194480a8655"},r("div",{key:"7bd0395cf764d93d4dc648d0da4b284d57dd618b",class:"flex w-full flex-col"},r("div",{key:"0b45f8696cb04f47e43cbfe50b327c0900e7d01f",class:s(c({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"d4c204a8b0e770bffb99e47c5d5c04e488141df9",class:n({active:this.active,open:this.open})},this.index),r("div",{key:"95c73c9fdc7f8084e73b2134eff8010a9d40778c",class:"flex flex-1 flex-col"},r("p",{key:"a551eeba3a348fffdbbbcb3580022cd72959f9f5",class:s("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),r("p",{key:"bda3aaacf1a1cecb877fb80dbc7ac32ecc7d5a7f",class:s("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),r("p-icon",{key:"3eac0ca8b452b654bd0089c4879e9089dd6fba36",class:s({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),r("div",{key:"8edaeafa660c40d03c615e0aa2d60e7711c37b96",class:s("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:(this.open?a:0)+"px"}},r("div",{key:"2668b4bdf209968453bb97ced1b888ae2dc67bf1",class:s("absolute left-6 top-0 z-0 w-px",{"bg-off-white-400 dark:bg-storm-500/30":!this.active,"bg-indigo-100 dark:bg-hurricane-400":this.active}),style:{height:a+"px"}}),r("div",{key:"fa5056cc735706f26d0ca4a03d9d03fd5767e4fb",class:s("absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all",{"bg-indigo-600":this._showItemIndicator,"bg-transparent":!this._showItemIndicator}),style:{transform:`translateY(${this._activeItemPosition}px)`}}),r("div",{key:"ba73b20686349f4ca3b71b06f5147e6f972b5b0a",class:"z-10 my-2 flex flex-col"},r("slot",{key:"5dd58c5ba434e9749cbd93c4d0164e1cdb71fd69",onSlotchange:()=>this._slotChanged()})))))}onWindowResize(){this._calculateHeaderOffset(),this._itemActiveListener()}_calculateHeaderOffset(){const t=this._el.shadowRoot?.querySelector(String.raw`.group\/submenu-header`);t?this._headerOffset=t.getBoundingClientRect().bottom:this._activeItemPosition=-1}_setItemPosition(t){t&&(this._activeItemPosition=t.getBoundingClientRect().top-this._headerOffset,this._showItemIndicator||setTimeout((()=>this._showItemIndicator=!0),50))}_slotChanged(){this._removeListeners();const t=[...this._el.querySelectorAll("p-submenu-item")];for(const e of t)e.addEventListener("activeChange",this._itemActiveListener),e.addEventListener("mouseenter",this._itemMouseEnterListener),e.addEventListener("mouseleave",this._itemMouseLeaveListener);this._submenuItems=t}_removeListeners(){if(this._submenuItems.length>0)for(const t of this._submenuItems)t.removeEventListener("activeChange",this._itemActiveListener),t.removeEventListener("mouseenter",this._itemMouseEnterListener),t.removeEventListener("mouseleave",this._itemMouseLeaveListener)}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-6{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-\\[1\\]{z-index:1}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.h-8{height:2rem}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\\/30{background-color:rgba(24,30,41,.3)}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-submenu",{title:[513],subtitle:[513],index:[514],showIndex:[516,"show-index"],active:[516],open:[516],_activeItemPosition:[32],_showItemIndicator:[32]},[[9,"resize","onWindowResize"]]]);function b(){"undefined"!=typeof customElements&&["p-submenu","p-icon"].forEach((e=>{switch(e){case"p-submenu":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-icon":customElements.get(t(e))||d()}}))}b();const g=h,m=b;export{g as PSubmenu,m as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as a,h as o}from"./p-CySg37XO.js";import{d as r}from"./p-CPSiExRl.js";const l=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return o("div",{key:"e89642efdbdac9c36ea1b79ed2f3f7002975b4d9",class:"relative flex h-8 w-full flex-col"},o("div",{key:"4e11ddb4ad1adbb1b5f6c8f13ceabd7417c5cd2f",class:"flex w-full gap-5 overflow-x-auto scrollbar-hide"},o("slot",{key:"e1a80331ad4b1e1dd4a93b6c06e2d7e1df68d8d7"})),o("p-divider",{key:"317e13b7257271335a4e68596a6269e6bf4ae865",class:"\n absolute bottom-0 left-0 m-0 w-full text-off-white-700\n dark:text-hurricane-400\n "}))}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.m-0{margin:0}.flex{display:flex}.h-8{height:2rem}.w-full{width:100%}.flex-col{flex-direction:column}.gap-5{gap:1.25rem}.overflow-x-auto{overflow-x:auto}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}"}},[257,"p-tab-container"]);function i(){"undefined"!=typeof customElements&&["p-tab-container","p-divider"].forEach((t=>{switch(t){case"p-tab-container":customElements.get(e(t))||customElements.define(e(t),l);break;case"p-divider":customElements.get(e(t))||r()}}))}i();const s=l,c=i;export{s as PTabContainer,c as defineCustomElement}
1
+ import{t as e,p as t,H as o,h as a}from"./p-CySg37XO.js";import{c as r}from"./p-xs4N_Y-0.js";import{a as l}from"./p-C5CTp9IA.js";import{d as s}from"./p-CPSiExRl.js";const i=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}enableScroll=!0;render(){return a("div",{key:"1b5aabd360facf84eb92465a4c97ba7e277346c2",class:"relative flex h-8 w-full flex-col"},a("div",{key:"cf478ed95026aae7c02416d8322c72371ffea585",class:r("flex w-full gap-5 scrollbar-hide",{"overflow-x-auto":l(this.enableScroll)})},a("slot",{key:"43597e5b985e144bb99803ed125f91918d830fd2"})),a("p-divider",{key:"c61b5b15edaea91c68e736b6bb56739fb91c8024",class:"\n absolute bottom-0 left-0 m-0 w-full text-off-white-700\n dark:text-hurricane-400\n "}))}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.m-0{margin:0}.flex{display:flex}.h-8{height:2rem}.w-full{width:100%}.flex-col{flex-direction:column}.gap-5{gap:1.25rem}.overflow-x-auto{overflow-x:auto}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}"}},[769,"p-tab-container",{enableScroll:[4,"enable-scroll"]}]);function c(){"undefined"!=typeof customElements&&["p-tab-container","p-divider"].forEach((t=>{switch(t){case"p-tab-container":customElements.get(e(t))||customElements.define(e(t),i);break;case"p-divider":customElements.get(e(t))||s()}}))}c();const n=i,d=c;export{n as PTabContainer,d as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as r,h as a}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as n}from"./p-Au2WuEGF.js";const c=o(["flex h-8 flex-col justify-between text-sm","cursor-pointer","\n after:content-['\n ']\n after:h-[2px]\n "],{variants:{active:{true:"\n text-indigo-600\n after:bg-indigo-600\n ",false:["\n text-storm-300\n after:bg-transparent\n hover:text-storm-400\n hover:after:bg-storm-400\n ","\n dark:text-hurricane-200\n dark:hover:text-white\n dark:hover:after:bg-white\n "]}}}),i=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}active=!1;render(){return a(n,{key:"9c61f2d31392fe6b36493d1ae717ce6e02fe4f21"},a("div",{key:"f673837150832946c4186588e8e92ba1534d2f32",class:c({active:this.active})},a("slot",{key:"82eb84bfb66d1ed93bec1d8925dece7cd15411de"})))}static get style(){return'*{box-sizing:border-box}:host{--tw-content:" "}.static{position:static}.flex{display:flex}.h-8{height:2rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.text-sm{font-size:.875rem;line-height:1.25rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.after\\:h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:bg-indigo-600:after{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:bg-transparent:after{background-color:transparent;content:var(--tw-content)}.hover\\:text-storm-400:hover{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.hover\\:after\\:bg-storm-400:hover:after{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}'}},[769,"p-tab-item",{active:[4]}]);function h(){"undefined"!=typeof customElements&&["p-tab-item"].forEach((e=>{"p-tab-item"===e&&(customElements.get(t(e))||customElements.define(t(e),i))}))}h();const s=i,d=h;export{s as PTabItem,d as defineCustomElement}
1
+ import{t,p as e,H as r,h as a}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as c}from"./p-Au2WuEGF.js";import{d as n}from"./p-gEaqH36V.js";const i=o(["flex h-8 items-center justify-center gap-2 text-sm","cursor-pointer","\n after:content-['\n ']\n after:h-[2px]\n "],{variants:{active:{true:"\n text-indigo-600\n after:bg-indigo-600\n ",false:["\n text-storm-300\n after:bg-transparent\n hover:text-storm-400\n hover:after:bg-storm-400\n ","\n dark:text-hurricane-200\n dark:hover:text-white\n dark:hover:after:bg-white\n "]}}}),s=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}active=!1;chevron=!1;chevronPosition="end";render(){return a(c,{key:"bbcccea54feff997f547cb924e7a32a6be9672fc"},a("div",{key:"a2ab472cdd47d15a9b231e0c4f1757800130c078",class:i({active:this.active})},this.chevron&&"start"===this.chevronPosition&&a("p-icon",{key:"cd3a11b8fc0bba0f0318bac8e7ba6eb4037a9f25",rotate:"up"===this.chevron?180:0,variant:"caret"}),a("slot",{key:"e9f495d5bcdd55d5a0e106ed1ade959e5f361e8c"}),this.chevron&&"end"===this.chevronPosition&&a("p-icon",{key:"de000972354a9a4dd3ce3bab3a0ce2b6d880b944",rotate:"up"===this.chevron?180:0,variant:"caret"})))}static get style(){return'*{box-sizing:border-box}:host{--tw-content:" "}.static{position:static}.flex{display:flex}.h-8{height:2rem}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.after\\:h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:bg-indigo-600:after{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:bg-transparent:after{background-color:transparent;content:var(--tw-content)}.hover\\:text-storm-400:hover{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.hover\\:after\\:bg-storm-400:hover:after{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}'}},[769,"p-tab-item",{active:[4],chevron:[8],chevronPosition:[1,"chevron-position"]}]);function h(){"undefined"!=typeof customElements&&["p-tab-item","p-icon"].forEach((e=>{switch(e){case"p-tab-item":customElements.get(t(e))||customElements.define(t(e),s);break;case"p-icon":customElements.get(t(e))||n()}}))}h();const d=s,p=h;export{d as PTabItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{T as o,d as s}from"./p-B2SjLmdM.js";const m=o,p=s;export{m as PTableCell,p as defineCustomElement}
1
+ import{T as o,d as r}from"./p-DrGWvXqN.js";const s=o,p=r;export{s as PTableCell,p as defineCustomElement}
@@ -1 +1 @@
1
- import{T as o,d as s}from"./p-C_ImoJA8.js";const m=o,p=s;export{m as PTableContainer,p as defineCustomElement}
1
+ import{T as o,d as r}from"./p-CklXrITo.js";const s=o,p=r;export{s as PTableContainer,p as defineCustomElement}
@@ -1 +1 @@
1
- import{T as o,d as s}from"./p-CVR1NJF5.js";const p=o,r=s;export{p as PTableFooter,r as defineCustomElement}
1
+ import{T as o,d as s}from"./p-DcIQGfEt.js";const t=o,p=s;export{t as PTableFooter,p as defineCustomElement}
@@ -1 +1 @@
1
- import{T as o,d as s}from"./p-9XjFw7wO.js";const p=o,r=s;export{p as PTableHeader,r as defineCustomElement}
1
+ import{T as o,d as p}from"./p-DpkIrMz9.js";const r=o,s=p;export{r as PTableHeader,s as defineCustomElement}
@@ -1 +1 @@
1
- import{T as s,d as o}from"./p-DxuTDs4a.js";const a=s,p=o;export{a as PTableRowActionsContainer,p as defineCustomElement}
1
+ import{T as s,d as o}from"./p-DsgO2Ufk.js";const p=s,r=o;export{p as PTableRowActionsContainer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{T as o,d as s}from"./p-zBwPEKhI.js";const p=o,r=s;export{p as PTableRow,r as defineCustomElement}
1
+ import{T as o,d as s}from"./p-D8Cwg2-6.js";const p=o,r=s;export{p as PTableRow,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as i,c as s,h as o,d as a}from"./p-CySg37XO.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{f as r}from"./p-PGY9gVyt.js";import{f as c}from"./p-CWO2YJCh.js";import{i as h}from"./p-CzUyWlXA.js";import{c as p}from"./p-xs4N_Y-0.js";import{P as m,a as d,T as u}from"./p-CEaB2BT0.js";import{d as b}from"./p-CpRKUhuF.js";import{d as f}from"./p-DHKJDm0J.js";import{d as g}from"./p-CZ8afGMO.js";import{d as w}from"./p-CPSiExRl.js";import{d as k}from"./p-BG1plx2A.js";import{d as y}from"./p-CQnWpHIs.js";import{d as S}from"./p-CZEHKnpM.js";import{d as _}from"./p-Dg_DgmLY.js";import{d as x}from"./p-Cmltn24W.js";import{d as C}from"./p-DHJIvL0U.js";import{d as E}from"./p-D5BA_qF7.js";import{d as v}from"./p-BskFLFSo.js";import{d as R}from"./p-ByJPQrlL.js";import{d as j}from"./p-gEaqH36V.js";import{d as F}from"./p-V1uzM_gT.js";import{d as A}from"./p-D8faiybE.js";import{d as D}from"./p-BDWOQXx7.js";import{d as L}from"./p-Bh3wcvje.js";import{d as z}from"./p-B9klDtR-.js";import{d as B}from"./p-BmsR-djQ.js";import{d as H}from"./p-B47sjbpK.js";import{d as T}from"./p-CSnOLBSV.js";import{d as P}from"./p-B2SjLmdM.js";import{d as I}from"./p-C_ImoJA8.js";import{d as O}from"./p-CVR1NJF5.js";import{d as q}from"./p-9XjFw7wO.js";import{d as K}from"./p-zBwPEKhI.js";import{d as M}from"./p-DxuTDs4a.js";import{d as Q}from"./p-CxrxqKhq.js";const J=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.selectedRowsChange=s(this,"selectedRowsChange",3),this.rowClick=s(this,"rowClick",3),this.rowSelected=s(this,"rowSelected",3),this.rowDeselected=s(this,"rowDeselected",3),this.hasRendered=s(this,"hasRendered",3),this.quickFilter=s(this,"quickFilter",3),this.queryChange=s(this,"queryChange",3),this.filter=s(this,"filter",3),this.action=s(this,"action",3),this.pageChange=s(this,"pageChange",3),this.pageSizeChange=s(this,"pageSizeChange",3),this.export=s(this,"export",3),this.emptyStateActionClick=s(this,"emptyStateActionClick",3)}items;loading=!1;headerLoading=!1;footerLoading=!1;amountOfLoadingRows=6;enableRowSelection=!0;rowSelectionLimit;enableRowClick=!0;selectedRows=[];enableFloatingMenu=!0;floatingMenuAmountSelectedTemplate=t=>n((1===t?this._locales.floating_menu?.amount_selected:this._locales.floating_menu?.amount_selected_plural)?.replace("{{amount}}",t));selectedRowsChange;selectionKey;canSelectKey;rowClick;rowSelected;rowDeselected;hasRendered;enableHeader=!0;quickFilters=[];activeQuickFilterIdentifier;enableSearch=!0;query;enableFilter=!0;enableFilterDesktop=!0;selectedFiltersAmount;filterButtonTemplate;enableAction=!1;actionButtonLoading=!1;actionButtonEnabled=!1;actionButtonIcon="pencil";actionButtonText;actionButtonTemplate;quickFilter;queryChange;filter;action;enableFooter=!0;enablePaginationSize=!0;enablePaginationPages=!0;enableExport=!0;page=1;total;pageChange;pageSize=m;pageSizeOptions=d;pageSizeChange;export;hideOnSinglePage=!0;emptyStateHeader=()=>n(this._locales.empty_state?.no_filter.header);emptyStateContent=()=>n(this._locales.empty_state?.no_filter.content);emptyStateAction=()=>n(this._locales.empty_state?.no_filter.action);enableEmptyStateAction=!0;emptyStateFilteredHeader=()=>n(this._locales.empty_state.filtered.header);emptyStateFilteredContent=()=>n(this._locales.empty_state.filtered.content);emptyStateActionClick;shadow=!0;get _el(){return this}_locales={};_extraHeaders=[];_columns=[];_items=[];_enableRowSelection=this.enableRowSelection;_rowSelectionLimit;_rowActionsFloatingAll=[];_rowActionsFloating=[];_rowActionsRow=[];_footerHidden=!1;_ctrlDown=!1;_hasCustomFilterSlot=!1;_hasCustomActionsSlot=!1;_floatingMenuShown=!1;_resizeTimeout;componentWillLoad(){this._hasCustomFilterSlot=!!this._el.querySelector(':scope > [slot="custom-filter"]'),this._hasCustomActionsSlot=!!this._el.querySelector(':scope > [slot="custom-actions"]'),this._setRowSelectionData(),this._setLocales(),this._parseItems(this.items),this._generateExtraHeaders(),this._generateColumns()}componentDidRender(){this.hasRendered.emit()}render(){return o(a,{key:"d479eadd465ca89cb946b49a57baa2a9b59662f3",class:"z-0 flex flex-col"},o("p-table-container",{key:"4561faab83f090f8b2a93b2020851d8bdca654bf"},this.enableHeader&&o("p-table-header",{key:"42f64f4650998137028ac3364842dd4637682ca1",actionButtonTemplate:this.actionButtonTemplate,actionIcon:this.actionButtonIcon,actionLoading:this.actionButtonLoading,actionText:this.actionButtonText,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,canUseAction:this.actionButtonEnabled,class:"mb-8",enableAction:this.enableAction,enableExport:this.enableExport,enableFilter:this.enableFilter,enableFilterDesktop:this.enableFilterDesktop,enableSearch:this.enableSearch,filterButtonTemplate:this.filterButtonTemplate,itemsSelectedAmount:this.selectedRows?.length,loading:this.headerLoading,query:this.query,quickFilters:this.quickFilters,selectedFiltersAmount:this.selectedFiltersAmount,onAction:()=>this.action.emit(),onExport:()=>this.export.emit(),onFilter:()=>this.filter.emit(),onQueryChange:({detail:t})=>this.queryChange.emit(t),onQuickFilter:({detail:t})=>this.quickFilter.emit(t)},this._hasCustomFilterSlot&&o("slot",{key:"4330a128ee1880c45651cce01c455043ab3d9358",name:"custom-filter",slot:"custom-filter"}),this._hasCustomActionsSlot&&o("slot",{key:"5842f3baaf1c0b5a1731412b3867b4aa3e75f473",name:"custom-actions",slot:"custom-actions"})),this._getExtraHeader(),this._getHeader(),o("div",{key:"4ebfe041d95457578b879604ffc42edd5ebf109d",class:"flex flex-1 flex-col"},this._getRows(),o("slot",{key:"86102819a49542a813f5ab19d5f028b144547096",name:"custom-rows"})),this.enableFloatingMenu&&this._enableRowSelection?o("p-floating-menu-container",{amount:this.selectedRows?.length,amountSelectedTemplate:this.floatingMenuAmountSelectedTemplate,class:r({hasFooter:this.enableFooter&&!this._footerHidden,active:!!this.selectedRows?.length,shown:this._floatingMenuShown}),enableAmountSelected:!!this._rowActionsFloating?.length,usedInTable:!0,onClose:()=>this._selectAllChange(null,!1)},this._rowActionsFloating?.length&&this._rowActionsFloating.map((t=>o("p-floating-menu-item",{disabled:t.disabled,icon:t.icon,iconFlip:t.iconFlip,iconRotate:t.iconRotate,loading:t.loading,slot:"floating-menu-item",onClick:()=>t.disabled||t.loading||!t.action||"single"!==t.type?t.action(this.selectedRows,!0):t.action(this.selectedRows[0],!1)},t.label)))):"",this.enableFooter&&o("p-table-footer",{key:"5134a20cac241a36ec3c9e63af654e8c911379c4",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,loading:this.footerLoading,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,tableHeaderHasAction:this.enableHeader&&this.enableAction&&this.actionButtonEnabled,total:this.total,onHiddenChange:({detail:t})=>this._footerHidden=t,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t)})))}async _setLocales(){this._locales=await l(this._el)}onTableDefinitionUpdated(){this._generateColumns()}keyDown({ctrlKey:t,metaKey:e}){const i=h();(e&&i||t&&!i)&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({code:t}){const e=h();(["MetaLeft","MetaRight"].includes(t)&&e||["ControlLeft","ControlRight"].includes(t)&&!e)&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_setRowSelectionData(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout((()=>{const t=c(),e=[...this._el.querySelectorAll(":scope > p-table-row-action")];this._rowActionsRow=e.filter((t=>"both"===t.type||"single"===t.type)),this._rowActionsFloatingAll=e.filter((e=>this.enableRowSelection&&("both"===e.type||"multi"===e.type)||t&&"single"===e.type)).map((t=>("single"===t.type&&(t.disabled=this.selectedRows?.length>1),t)));let i=this.rowSelectionLimit;t&&this._rowActionsFloatingAll?.length&&(void 0!==i&&this.enableRowSelection||!this.enableRowSelection)&&(i=1),this._rowSelectionLimit=i;let s=this.enableRowSelection;t&&this._rowActionsFloatingAll?.length&&!s&&(s=!0),this._enableRowSelection=s,this._floatingMenuShown&&this._showFloatingMenu()}),200)}_generateExtraHeaders(){let t=[...this._el.querySelectorAll("p-table-extra-header")];t=this._parseDefinitions(t),this._extraHeaders=t}_generateColumns(){let t=[...this._el.querySelectorAll("p-table-column")];t=this._parseDefinitions(t),this._columns=t}_getExtraHeader(){return this._extraHeaders?.length?o("p-table-row",{isLast:!0,variant:"header-secondary"},this._extraHeaders.map(((t,e)=>o("p-table-cell",{checkboxOffset:0===e&&this._enableRowSelection,definition:t,index:e,variant:"header-secondary"},o("b",null,t.name))))):null}_getHeader(){return o("p-table-row",{variant:"header"},this._columns.map(((t,e)=>o("p-table-cell",{checkbox:0===e||t.hasCheckbox?this._getCheckbox(null,this.loading?"loading":"header"):null,definition:t,index:e,value:t.name,variant:"header"}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,e)=>o("p-table-row",{enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this.amountOfLoadingRows-1},this._getLoadingColumns(e)))):0===this._items.length?this._getEmptyState():this._items.map(((t,e)=>{const i=this._rowActionsRow.filter((e=>!e.showFunction||e.showFunction(t)));return o("p-table-row",{checked:this._selectionContains(e),enableHover:this._enableRowSelection||this.enableRowClick||!!i?.length,isLast:e===this._items.length-1,onClick:t=>this._rowClick(t,e)},this._getRowColumns(t,e),this._getActions(t,e,i))}))}_getActions(t,e,i){return i?.length&&!c()?o("p-table-row-actions-container",{checked:this._selectionContains(e),slot:"actions"},i.map((e=>o("p-tooltip",{content:e.label,strategy:"fixed"},o("p-button",{icon:e.icon,iconFlip:e.iconFlip,iconOnly:!0,iconRotate:e.iconRotate,size:"sm",slot:"trigger",variant:"secondary","data-is-action":!0,onClick:()=>"function"==typeof e.action&&e.action?.(t,!1)}))))):null}_getRowColumns(t,e){return this._columns.map(((i,s)=>o("p-table-cell",{checkbox:0===s||i.hasCheckbox?this._getCheckbox(e):null,definition:i,index:s,item:t,rowIndex:e})))}_getLoadingColumns(t){return this._columns.map(((e,i)=>o("p-table-cell",{checkbox:0===i||e.hasCheckbox?this._getCheckbox(t,"loading"):null,definition:e,index:i,rowIndex:t,variant:"loading"})))}_getCheckbox(t,e="default"){if(!this._enableRowSelection||!this.selectionKey&&!this._rowActionsFloating?.length)return;if("loading"===e)return o("p-loader",{class:"h-6 w-6 rounded",variant:"ghost"});if("header"===e)return o("p-checkbox",{checked:this._selectionContainsAll(),class:p({"opacity-0":void 0!==this._rowSelectionLimit}),disabled:void 0!==this._rowSelectionLimit,indeterminate:this._selectionIndeterminate(),onCheckedChange:t=>this._selectAllChange(t)});const i=this._items[t],s=this._selectionContains(t);return o("p-checkbox",{checked:s,class:"flex-shrink-0",disabled:this.canSelectKey&&!i[this.canSelectKey]||void 0!==this._rowSelectionLimit&&!s&&this.selectedRows.length===this._rowSelectionLimit,onCheckedChange:e=>this._checkboxChange(e,t)})}_getEmptyState(){return o("p-empty-state",this.query?.length||this.selectedFiltersAmount?{class:"my-16 self-center",content:this.emptyStateFilteredContent(),header:this.emptyStateFilteredHeader(),illustration:"search"}:{actionIcon:"plus",actionText:this.emptyStateAction(),class:"my-16 self-center",content:this.emptyStateContent(),enableAction:this.enableEmptyStateAction,header:this.emptyStateHeader(),illustration:"table",onAction:()=>this.enableAction&&this.action.emit()})}_selectAllChange(t,e){if(this._enableRowSelection){if(void 0===e?t?.detail??e:e){const t=[];for(let e=0;e<this._items.length;e++){const i=this._items[e];if((!this.canSelectKey||i[this.canSelectKey])&&!this._selectionContains(e)&&(t.push(i),this.rowSelected.emit(i),void 0!==this._rowSelectionLimit&&this.selectedRows.length+t.length===this._rowSelectionLimit))break}return this.selectedRows=[...this.selectedRows,...t],this.selectedRowsChange.emit(this.selectedRows),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu())}for(let t=0;t<this.selectedRows.length;t++){const e=this.selectedRows[t],i=this._items.find((i=>this._getSelectionValue(i,t)===this._getSelectionValue(e,t)));i&&this.rowDeselected.emit(i)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange({detail:t,target:e},i){if(!this._enableRowSelection)return;if(t&&void 0!==this._rowSelectionLimit&&this.selectedRows.length>=this._rowSelectionLimit)return void(e.checked=!1);const s=this._items[i];if(this.canSelectKey&&!s[this.canSelectKey])return void(e.checked=!1);if(t)return this.selectedRows=[...this.selectedRows,{...s,index:i}],this.selectedRowsChange.emit(this.selectedRows),this.rowSelected.emit(s),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu());const o=this._selectionContains(i,!0),a=[...this.selectedRows];a.splice(o,1),this.selectedRows=a,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(s)}_getSelectionValue(t,e){return this.selectionKey&&t?.[this.selectionKey]||e}_selectionContains(t,e=!1){const i=this.selectedRows.findIndex((e=>e.index===t));return e?i:-1!==i}_selectionContainsAll(){let t=!0;if(!this._items?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!0;for(let e=0;e<this._items?.length;e++)if(!this._selectionContains(e)){t=!1;break}return t}_selectionIndeterminate(){if(!this._items?.length||!this.selectedRows?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!1;let t=0;for(let e=0;e<this._items?.length;e++)this._selectionContains(e)&&t++;return t>0&&t!==this._items.length}_rowClick(t,e){const i=t.target;if("input"===i.tagName.toLowerCase()||"checkbox"===i.type)return;const s=this._findRow(t.target);if(this._findRowAction(t.target))return;if(this.enableRowClick)return void this.rowClick.emit({item:this._items[e],ctrlDown:this._ctrlDown});if(!this._enableRowSelection)return;const o=s?.querySelector('input[type="checkbox"]');o&&(o.checked=!o.checked,this._checkboxChange(o,e))}_findRow(t){return t?"p-table-row"===t?.tagName?.toLowerCase()?t:this._findRow(t?.parentElement):t}_findRowAction(t){return t?null!==t.dataset.isAction&&"false"!==t.dataset.isAction?t:"p-table-row"===t?.tagName?.toLowerCase()?null:this._findRowAction(t?.parentElement):null}_showFloatingMenu(){let t=this._rowActionsFloatingAll;1===this.rowSelectionLimit&&t.some((t=>("single"===t.type||"both"===t.type)&&t.showFunction))&&(t=t.filter((t=>"multi"===t.type||!t.showFunction||t.showFunction(this.selectedRows[0])))),this._rowActionsFloating=t,this._floatingMenuShown=!0}_parseDefinitions(t){return t.map((t=>this._parseDefinitionSizes(t)))}_parseDefinitionSizes(t){const e=t;let i={default:"full"};"string"!=typeof t.sizes||["auto","hidden","full"].includes(t.sizes)||(t.sizes=JSON.parse(t.sizes));for(const[t,s]of u.entries())i[s]="auto"!==e.sizes&&"hidden"!==e.sizes&&"full"!==e.sizes&&"number"!=typeof e.sizes?e.sizes[s]??i[u[t-1]]:"auto"===e.sizes?"full":e.sizes;return t.parsedSizes=i,t}static get watchers(){return{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.z-0{z-index:0}.my-16{margin-bottom:4rem;margin-top:4rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.table{display:table}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.resize{resize:both}.flex-col{flex-direction:column}.self-center{align-self:center}.rounded{border-radius:.25rem}.opacity-0{opacity:0}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[772,"p-table",{items:[1],loading:[4],headerLoading:[4,"header-loading"],footerLoading:[4,"footer-loading"],amountOfLoadingRows:[2,"amount-of-loading-rows"],enableRowSelection:[4,"enable-row-selection"],rowSelectionLimit:[2,"row-selection-limit"],enableRowClick:[4,"enable-row-click"],selectedRows:[16],enableFloatingMenu:[4,"enable-floating-menu"],floatingMenuAmountSelectedTemplate:[16],selectionKey:[1,"selection-key"],canSelectKey:[1,"can-select-key"],enableHeader:[4,"enable-header"],quickFilters:[1,"quick-filters"],activeQuickFilterIdentifier:[1,"active-quick-filter-identifier"],enableSearch:[4,"enable-search"],query:[1025],enableFilter:[4,"enable-filter"],enableFilterDesktop:[4,"enable-filter-desktop"],selectedFiltersAmount:[2,"selected-filters-amount"],filterButtonTemplate:[16],enableAction:[4,"enable-action"],actionButtonLoading:[4,"action-button-loading"],actionButtonEnabled:[4,"action-button-enabled"],actionButtonIcon:[1,"action-button-icon"],actionButtonText:[1,"action-button-text"],actionButtonTemplate:[16],enableFooter:[4,"enable-footer"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],enableExport:[4,"enable-export"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],hideOnSinglePage:[4,"hide-on-single-page"],emptyStateHeader:[16],emptyStateContent:[16],emptyStateAction:[16],enableEmptyStateAction:[4,"enable-empty-state-action"],emptyStateFilteredHeader:[16],emptyStateFilteredContent:[16],shadow:[4],_locales:[32],_extraHeaders:[32],_columns:[32],_items:[32],_enableRowSelection:[32],_rowSelectionLimit:[32],_rowActionsFloating:[32],_rowActionsRow:[32],_footerHidden:[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}]);function U(){"undefined"!=typeof customElements&&["p-table","p-badge","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-empty-state","p-field","p-field-container","p-floating-menu-container","p-floating-menu-item","p-helper","p-icon","p-illustration","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-segment-container","p-segment-item","p-table-cell","p-table-container","p-table-footer","p-table-header","p-table-row","p-table-row-actions-container","p-tooltip"].forEach((e=>{switch(e){case"p-table":customElements.get(t(e))||customElements.define(t(e),J);break;case"p-badge":customElements.get(t(e))||b();break;case"p-button":customElements.get(t(e))||f();break;case"p-checkbox":customElements.get(t(e))||g();break;case"p-divider":customElements.get(t(e))||w();break;case"p-dropdown":customElements.get(t(e))||k();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||S();break;case"p-empty-state":customElements.get(t(e))||_();break;case"p-field":customElements.get(t(e))||x();break;case"p-field-container":customElements.get(t(e))||C();break;case"p-floating-menu-container":customElements.get(t(e))||E();break;case"p-floating-menu-item":customElements.get(t(e))||v();break;case"p-helper":customElements.get(t(e))||R();break;case"p-icon":customElements.get(t(e))||j();break;case"p-illustration":customElements.get(t(e))||F();break;case"p-loader":customElements.get(t(e))||A();break;case"p-pagination":customElements.get(t(e))||D();break;case"p-pagination-pages":customElements.get(t(e))||L();break;case"p-pagination-pages-item":customElements.get(t(e))||z();break;case"p-pagination-size":customElements.get(t(e))||B();break;case"p-segment-container":customElements.get(t(e))||H();break;case"p-segment-item":customElements.get(t(e))||T();break;case"p-table-cell":customElements.get(t(e))||P();break;case"p-table-container":customElements.get(t(e))||I();break;case"p-table-footer":customElements.get(t(e))||O();break;case"p-table-header":customElements.get(t(e))||q();break;case"p-table-row":customElements.get(t(e))||K();break;case"p-table-row-actions-container":customElements.get(t(e))||M();break;case"p-tooltip":customElements.get(t(e))||Q()}}))}U();const V=J,W=U;export{V as PTable,W as defineCustomElement}
1
+ import{t,p as e,H as i,c as s,h as o,d as a}from"./p-CySg37XO.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{f as r}from"./p-PGY9gVyt.js";import{f as c}from"./p-CWO2YJCh.js";import{i as h}from"./p-CzUyWlXA.js";import{c as p}from"./p-xs4N_Y-0.js";import{P as m,a as d,T as u}from"./p-CEaB2BT0.js";import{d as b}from"./p-CpRKUhuF.js";import{d as f}from"./p-DHKJDm0J.js";import{d as g}from"./p-CZ8afGMO.js";import{d as k}from"./p-CPSiExRl.js";import{d as w}from"./p-vlEpgOl1.js";import{d as y}from"./p-CQnWpHIs.js";import{d as S}from"./p-CZEHKnpM.js";import{d as _}from"./p-2-4yuHR1.js";import{d as x}from"./p-D9Vv2Jg9.js";import{d as C}from"./p-B7pLpkL0.js";import{d as E}from"./p-D5BA_qF7.js";import{d as v}from"./p-BskFLFSo.js";import{d as R}from"./p-GGeQLkOT.js";import{d as F}from"./p-gEaqH36V.js";import{d as j}from"./p-V1uzM_gT.js";import{d as A}from"./p-D8faiybE.js";import{d as D}from"./p-4KZlY5xH.js";import{d as z}from"./p-DZzA60Dx.js";import{d as L}from"./p-B9klDtR-.js";import{d as H}from"./p-PISPo1NR.js";import{d as T}from"./p-B47sjbpK.js";import{d as B}from"./p-CSnOLBSV.js";import{d as I}from"./p-DrGWvXqN.js";import{d as O}from"./p-CklXrITo.js";import{d as P}from"./p-DcIQGfEt.js";import{d as q}from"./p-DpkIrMz9.js";import{d as M}from"./p-D8Cwg2-6.js";import{d as K}from"./p-DsgO2Ufk.js";import{d as Q}from"./p-B3Dks732.js";const U=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.selectedRowsChange=s(this,"selectedRowsChange",3),this.rowClick=s(this,"rowClick",3),this.rowSelected=s(this,"rowSelected",3),this.rowDeselected=s(this,"rowDeselected",3),this.hasRendered=s(this,"hasRendered",3),this.quickFilter=s(this,"quickFilter",3),this.queryChange=s(this,"queryChange",3),this.filter=s(this,"filter",3),this.action=s(this,"action",3),this.pageChange=s(this,"pageChange",3),this.pageSizeChange=s(this,"pageSizeChange",3),this.export=s(this,"export",3),this.emptyStateActionClick=s(this,"emptyStateActionClick",3)}items;loading=!1;headerLoading=!1;footerLoading=!1;amountOfLoadingRows=6;enableRowSelection=!0;rowSelectionLimit;enableRowClick=!0;selectedRows=[];enableFloatingMenu=!0;floatingMenuAmountSelectedTemplate=t=>n((1===t?this._locales.floating_menu?.amount_selected:this._locales.floating_menu?.amount_selected_plural)?.replace("{{amount}}",t));selectedRowsChange;selectionKey;canSelectKey;rowClick;rowSelected;rowDeselected;hasRendered;enableHeader=!0;quickFilters=[];activeQuickFilterIdentifier;enableSearch=!0;query;enableFilter=!0;enableFilterDesktop=!0;selectedFiltersAmount;filterButtonTemplate;enableAction=!1;actionButtonLoading=!1;actionButtonEnabled=!1;actionButtonIcon="pencil";actionButtonText;actionButtonTemplate;quickFilter;queryChange;filter;action;enableFooter=!0;enablePaginationSize=!0;enablePaginationPages=!0;enableExport=!0;page=1;total;pageChange;pageSize=m;pageSizeOptions=d;pageSizeChange;export;hideOnSinglePage=!0;emptyStateHeader=()=>n(this._locales.empty_state?.no_filter.header);emptyStateContent=()=>n(this._locales.empty_state?.no_filter.content);emptyStateAction=()=>n(this._locales.empty_state?.no_filter.action);enableEmptyStateAction=!0;emptyStateFilteredHeader=()=>n(this._locales.empty_state.filtered.header);emptyStateFilteredContent=()=>n(this._locales.empty_state.filtered.content);emptyStateActionClick;shadow=!0;get _el(){return this}_locales={};_extraHeaders=[];_columns=[];_items=[];_enableRowSelection=this.enableRowSelection;_rowSelectionLimit;_rowActionsFloatingAll=[];_rowActionsFloating=[];_rowActionsRow=[];_footerHidden=!1;_ctrlDown=!1;_hasCustomFilterSlot=!1;_hasCustomActionsSlot=!1;_floatingMenuShown=!1;_resizeTimeout;componentWillLoad(){this._hasCustomFilterSlot=!!this._el.querySelector(':scope > [slot="custom-filter"]'),this._hasCustomActionsSlot=!!this._el.querySelector(':scope > [slot="custom-actions"]'),this._setRowSelectionData(),this._setLocales(),this._parseItems(this.items),this._generateExtraHeaders(),this._generateColumns()}componentDidRender(){this.hasRendered.emit()}render(){return o(a,{key:"d479eadd465ca89cb946b49a57baa2a9b59662f3",class:"z-0 flex flex-col"},o("p-table-container",{key:"4561faab83f090f8b2a93b2020851d8bdca654bf"},this.enableHeader&&o("p-table-header",{key:"42f64f4650998137028ac3364842dd4637682ca1",actionButtonTemplate:this.actionButtonTemplate,actionIcon:this.actionButtonIcon,actionLoading:this.actionButtonLoading,actionText:this.actionButtonText,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,canUseAction:this.actionButtonEnabled,class:"mb-8",enableAction:this.enableAction,enableExport:this.enableExport,enableFilter:this.enableFilter,enableFilterDesktop:this.enableFilterDesktop,enableSearch:this.enableSearch,filterButtonTemplate:this.filterButtonTemplate,itemsSelectedAmount:this.selectedRows?.length,loading:this.headerLoading,query:this.query,quickFilters:this.quickFilters,selectedFiltersAmount:this.selectedFiltersAmount,onAction:()=>this.action.emit(),onExport:()=>this.export.emit(),onFilter:()=>this.filter.emit(),onQueryChange:({detail:t})=>this.queryChange.emit(t),onQuickFilter:({detail:t})=>this.quickFilter.emit(t)},this._hasCustomFilterSlot&&o("slot",{key:"4330a128ee1880c45651cce01c455043ab3d9358",name:"custom-filter",slot:"custom-filter"}),this._hasCustomActionsSlot&&o("slot",{key:"5842f3baaf1c0b5a1731412b3867b4aa3e75f473",name:"custom-actions",slot:"custom-actions"})),this._getExtraHeader(),this._getHeader(),o("div",{key:"4ebfe041d95457578b879604ffc42edd5ebf109d",class:"flex flex-1 flex-col"},this._getRows(),o("slot",{key:"86102819a49542a813f5ab19d5f028b144547096",name:"custom-rows"})),this.enableFloatingMenu&&this._enableRowSelection?o("p-floating-menu-container",{amount:this.selectedRows?.length,amountSelectedTemplate:this.floatingMenuAmountSelectedTemplate,class:r({hasFooter:this.enableFooter&&!this._footerHidden,active:!!this.selectedRows?.length,shown:this._floatingMenuShown}),enableAmountSelected:!!this._rowActionsFloating?.length,usedInTable:!0,onClose:()=>this._selectAllChange(null,!1)},this._rowActionsFloating?.length&&this._rowActionsFloating.map((t=>o("p-floating-menu-item",{disabled:t.disabled,icon:t.icon,iconFlip:t.iconFlip,iconRotate:t.iconRotate,loading:t.loading,slot:"floating-menu-item",onClick:()=>t.disabled||t.loading||!t.action||"single"!==t.type?t.action(this.selectedRows,!0):t.action(this.selectedRows[0],!1)},t.label)))):"",this.enableFooter&&o("p-table-footer",{key:"5134a20cac241a36ec3c9e63af654e8c911379c4",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,loading:this.footerLoading,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,tableHeaderHasAction:this.enableHeader&&this.enableAction&&this.actionButtonEnabled,total:this.total,onHiddenChange:({detail:t})=>this._footerHidden=t,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t)})))}async _setLocales(){this._locales=await l(this._el)}onTableDefinitionUpdated(){this._generateColumns()}keyDown({ctrlKey:t,metaKey:e}){const i=h();(e&&i||t&&!i)&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({code:t}){const e=h();(["MetaLeft","MetaRight"].includes(t)&&e||["ControlLeft","ControlRight"].includes(t)&&!e)&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_setRowSelectionData(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout((()=>{const t=c(),e=[...this._el.querySelectorAll(":scope > p-table-row-action")];this._rowActionsRow=e.filter((t=>"both"===t.type||"single"===t.type)),this._rowActionsFloatingAll=e.filter((e=>this.enableRowSelection&&("both"===e.type||"multi"===e.type)||t&&"single"===e.type)).map((t=>("single"===t.type&&(t.disabled=this.selectedRows?.length>1),t)));let i=this.rowSelectionLimit;t&&this._rowActionsFloatingAll?.length&&(void 0!==i&&this.enableRowSelection||!this.enableRowSelection)&&(i=1),this._rowSelectionLimit=i;let s=this.enableRowSelection;t&&this._rowActionsFloatingAll?.length&&!s&&(s=!0),this._enableRowSelection=s,this._floatingMenuShown&&this._showFloatingMenu()}),200)}_generateExtraHeaders(){let t=[...this._el.querySelectorAll("p-table-extra-header")];t=this._parseDefinitions(t),this._extraHeaders=t}_generateColumns(){let t=[...this._el.querySelectorAll("p-table-column")];t=this._parseDefinitions(t),this._columns=t}_getExtraHeader(){return this._extraHeaders?.length?o("p-table-row",{isLast:!0,variant:"header-secondary"},this._extraHeaders.map(((t,e)=>o("p-table-cell",{checkboxOffset:0===e&&this._enableRowSelection,definition:t,index:e,variant:"header-secondary"},o("b",null,t.name))))):null}_getHeader(){return o("p-table-row",{variant:"header"},this._columns.map(((t,e)=>o("p-table-cell",{checkbox:0===e||t.hasCheckbox?this._getCheckbox(null,this.loading?"loading":"header"):null,definition:t,index:e,value:t.name,variant:"header"}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,e)=>o("p-table-row",{enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this.amountOfLoadingRows-1},this._getLoadingColumns(e)))):0===this._items.length?this._getEmptyState():this._items.map(((t,e)=>{const i=this._rowActionsRow.filter((e=>!e.showFunction||e.showFunction(t)));return o("p-table-row",{checked:this._selectionContains(e),enableHover:this._enableRowSelection||this.enableRowClick||!!i?.length,isLast:e===this._items.length-1,onClick:t=>this._rowClick(t,e)},this._getRowColumns(t,e),this._getActions(t,e,i))}))}_getActions(t,e,i){return i?.length&&!c()?o("p-table-row-actions-container",{checked:this._selectionContains(e),slot:"actions"},i.map((e=>o("p-tooltip",{content:e.label,strategy:"fixed"},o("p-button",{icon:e.icon,iconFlip:e.iconFlip,iconOnly:!0,iconRotate:e.iconRotate,size:"sm",slot:"trigger",variant:"secondary","data-is-action":!0,onClick:()=>"function"==typeof e.action&&e.action?.(t,!1)}))))):null}_getRowColumns(t,e){return this._columns.map(((i,s)=>o("p-table-cell",{checkbox:0===s||i.hasCheckbox?this._getCheckbox(e):null,definition:i,index:s,item:t,rowIndex:e})))}_getLoadingColumns(t){return this._columns.map(((e,i)=>o("p-table-cell",{checkbox:0===i||e.hasCheckbox?this._getCheckbox(t,"loading"):null,definition:e,index:i,rowIndex:t,variant:"loading"})))}_getCheckbox(t,e="default"){if(!this._enableRowSelection||!this.selectionKey&&!this._rowActionsFloating?.length)return;if("loading"===e)return o("p-loader",{class:"h-6 w-6 rounded",variant:"ghost"});if("header"===e)return o("p-checkbox",{checked:this._selectionContainsAll(),class:p({"opacity-0":void 0!==this._rowSelectionLimit}),disabled:void 0!==this._rowSelectionLimit,indeterminate:this._selectionIndeterminate(),onCheckedChange:t=>this._selectAllChange(t)});const i=this._items[t],s=this._selectionContains(t);return o("p-checkbox",{checked:s,class:"flex-shrink-0",disabled:this.canSelectKey&&!i[this.canSelectKey]||void 0!==this._rowSelectionLimit&&!s&&this.selectedRows.length===this._rowSelectionLimit,onCheckedChange:e=>this._checkboxChange(e,t)})}_getEmptyState(){return o("p-empty-state",this.query?.length||this.selectedFiltersAmount?{class:"my-16 self-center",content:this.emptyStateFilteredContent(),header:this.emptyStateFilteredHeader(),illustration:"search"}:{actionIcon:"plus",actionText:this.emptyStateAction(),class:"my-16 self-center",content:this.emptyStateContent(),enableAction:this.enableEmptyStateAction,header:this.emptyStateHeader(),illustration:"table",onAction:()=>this.enableAction&&this.action.emit()})}_selectAllChange(t,e){if(this._enableRowSelection){if(void 0===e?t?.detail??e:e){const t=[];for(let e=0;e<this._items.length;e++){const i=this._items[e];if((!this.canSelectKey||i[this.canSelectKey])&&!this._selectionContains(e)&&(t.push(i),this.rowSelected.emit(i),void 0!==this._rowSelectionLimit&&this.selectedRows.length+t.length===this._rowSelectionLimit))break}return this.selectedRows=[...this.selectedRows,...t],this.selectedRowsChange.emit(this.selectedRows),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu())}for(let t=0;t<this.selectedRows.length;t++){const e=this.selectedRows[t],i=this._items.find((i=>this._getSelectionValue(i,t)===this._getSelectionValue(e,t)));i&&this.rowDeselected.emit(i)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange({detail:t,target:e},i){if(!this._enableRowSelection)return;if(t&&void 0!==this._rowSelectionLimit&&this.selectedRows.length>=this._rowSelectionLimit)return void(e.checked=!1);const s=this._items[i];if(this.canSelectKey&&!s[this.canSelectKey])return void(e.checked=!1);if(t)return this.selectedRows=[...this.selectedRows,{...s,index:i}],this.selectedRowsChange.emit(this.selectedRows),this.rowSelected.emit(s),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu());const o=this._selectionContains(i,!0),a=[...this.selectedRows];a.splice(o,1),this.selectedRows=a,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(s)}_getSelectionValue(t,e){return this.selectionKey&&t?.[this.selectionKey]||e}_selectionContains(t,e=!1){const i=this.selectedRows.findIndex((e=>e.index===t));return e?i:-1!==i}_selectionContainsAll(){let t=!0;if(!this._items?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!0;for(let e=0;e<this._items?.length;e++)if(!this._selectionContains(e)){t=!1;break}return t}_selectionIndeterminate(){if(!this._items?.length||!this.selectedRows?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!1;let t=0;for(let e=0;e<this._items?.length;e++)this._selectionContains(e)&&t++;return t>0&&t!==this._items.length}_rowClick(t,e){const i=t.target;if("input"===i.tagName.toLowerCase()||"checkbox"===i.type)return;const s=this._findRow(t.target);if(this._findRowAction(t.target))return;if(this.enableRowClick)return void this.rowClick.emit({item:this._items[e],ctrlDown:this._ctrlDown});if(!this._enableRowSelection)return;const o=s?.querySelector('input[type="checkbox"]');o&&(o.checked=!o.checked,this._checkboxChange(o,e))}_findRow(t){return t?"p-table-row"===t?.tagName?.toLowerCase()?t:this._findRow(t?.parentElement):t}_findRowAction(t){return t?null!==t.dataset.isAction&&"false"!==t.dataset.isAction?t:"p-table-row"===t?.tagName?.toLowerCase()?null:this._findRowAction(t?.parentElement):null}_showFloatingMenu(){let t=this._rowActionsFloatingAll;1===this.rowSelectionLimit&&t.some((t=>("single"===t.type||"both"===t.type)&&t.showFunction))&&(t=t.filter((t=>"multi"===t.type||!t.showFunction||t.showFunction(this.selectedRows[0])))),this._rowActionsFloating=t,this._floatingMenuShown=!0}_parseDefinitions(t){return t.map((t=>this._parseDefinitionSizes(t)))}_parseDefinitionSizes(t){const e=t;let i={default:"full"};"string"!=typeof t.sizes||["auto","hidden","full"].includes(t.sizes)||(t.sizes=JSON.parse(t.sizes));for(const[t,s]of u.entries())i[s]="auto"!==e.sizes&&"hidden"!==e.sizes&&"full"!==e.sizes&&"number"!=typeof e.sizes?e.sizes[s]??i[u[t-1]]:"auto"===e.sizes?"full":e.sizes;return t.parsedSizes=i,t}static get watchers(){return{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.z-0{z-index:0}.my-16{margin-bottom:4rem;margin-top:4rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.table{display:table}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.resize{resize:both}.flex-col{flex-direction:column}.self-center{align-self:center}.rounded{border-radius:.25rem}.opacity-0{opacity:0}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[772,"p-table",{items:[1],loading:[4],headerLoading:[4,"header-loading"],footerLoading:[4,"footer-loading"],amountOfLoadingRows:[2,"amount-of-loading-rows"],enableRowSelection:[4,"enable-row-selection"],rowSelectionLimit:[2,"row-selection-limit"],enableRowClick:[4,"enable-row-click"],selectedRows:[16],enableFloatingMenu:[4,"enable-floating-menu"],floatingMenuAmountSelectedTemplate:[16],selectionKey:[1,"selection-key"],canSelectKey:[1,"can-select-key"],enableHeader:[4,"enable-header"],quickFilters:[1,"quick-filters"],activeQuickFilterIdentifier:[1,"active-quick-filter-identifier"],enableSearch:[4,"enable-search"],query:[1025],enableFilter:[4,"enable-filter"],enableFilterDesktop:[4,"enable-filter-desktop"],selectedFiltersAmount:[2,"selected-filters-amount"],filterButtonTemplate:[16],enableAction:[4,"enable-action"],actionButtonLoading:[4,"action-button-loading"],actionButtonEnabled:[4,"action-button-enabled"],actionButtonIcon:[1,"action-button-icon"],actionButtonText:[1,"action-button-text"],actionButtonTemplate:[16],enableFooter:[4,"enable-footer"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],enableExport:[4,"enable-export"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],hideOnSinglePage:[4,"hide-on-single-page"],emptyStateHeader:[16],emptyStateContent:[16],emptyStateAction:[16],enableEmptyStateAction:[4,"enable-empty-state-action"],emptyStateFilteredHeader:[16],emptyStateFilteredContent:[16],shadow:[4],_locales:[32],_extraHeaders:[32],_columns:[32],_items:[32],_enableRowSelection:[32],_rowSelectionLimit:[32],_rowActionsFloating:[32],_rowActionsRow:[32],_footerHidden:[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}]);function G(){"undefined"!=typeof customElements&&["p-table","p-badge","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-empty-state","p-field","p-field-container","p-floating-menu-container","p-floating-menu-item","p-helper","p-icon","p-illustration","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-segment-container","p-segment-item","p-table-cell","p-table-container","p-table-footer","p-table-header","p-table-row","p-table-row-actions-container","p-tooltip"].forEach((e=>{switch(e){case"p-table":customElements.get(t(e))||customElements.define(t(e),U);break;case"p-badge":customElements.get(t(e))||b();break;case"p-button":customElements.get(t(e))||f();break;case"p-checkbox":customElements.get(t(e))||g();break;case"p-divider":customElements.get(t(e))||k();break;case"p-dropdown":customElements.get(t(e))||w();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||S();break;case"p-empty-state":customElements.get(t(e))||_();break;case"p-field":customElements.get(t(e))||x();break;case"p-field-container":customElements.get(t(e))||C();break;case"p-floating-menu-container":customElements.get(t(e))||E();break;case"p-floating-menu-item":customElements.get(t(e))||v();break;case"p-helper":customElements.get(t(e))||R();break;case"p-icon":customElements.get(t(e))||F();break;case"p-illustration":customElements.get(t(e))||j();break;case"p-loader":customElements.get(t(e))||A();break;case"p-pagination":customElements.get(t(e))||D();break;case"p-pagination-pages":customElements.get(t(e))||z();break;case"p-pagination-pages-item":customElements.get(t(e))||L();break;case"p-pagination-size":customElements.get(t(e))||H();break;case"p-segment-container":customElements.get(t(e))||T();break;case"p-segment-item":customElements.get(t(e))||B();break;case"p-table-cell":customElements.get(t(e))||I();break;case"p-table-container":customElements.get(t(e))||O();break;case"p-table-footer":customElements.get(t(e))||P();break;case"p-table-header":customElements.get(t(e))||q();break;case"p-table-row":customElements.get(t(e))||M();break;case"p-table-row-actions-container":customElements.get(t(e))||K();break;case"p-tooltip":customElements.get(t(e))||Q()}}))}G();const J=U,V=G;export{J as PTable,V as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";const m=n(["fixed z-toast flex flex-col gap-4","tablet:max-w-[26.5rem]","z-[600]","\n w-[calc(100%-(env(safe-area-inset-left,0)+env(safe-area-inset-right,\n 0)+2rem))]\n ","\n max-w-[calc(100%-(env(safe-area-inset-left,0)+env(safe-area-inset-right,0)+2rem))]\n "],{variants:{placement:{"top-start":["top-[calc(env(safe-area-inset-top,0)+1rem)]","left-[calc(env(safe-area-inset-left,0)+1rem)]"],"top-end":["top-[calc(env(safe-area-inset-top,0)+1rem)]","right-[calc(env(safe-area-inset-right,0)+1rem)]"],"bottom-start":["bottom-[calc(env(safe-area-inset-bottom,0)+1rem)]","left-[calc(env(safe-area-inset-left,0)+1rem)]"],"bottom-end":["bottom-[calc(env(safe-area-inset-bottom,0)+1rem)]","right-[calc(env(safe-area-inset-right,0)+1rem)]"]}}}),r=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}placement="top-end";render(){return i("div",{key:"b8450106a439c1afa6fcce3dccc3d52d982c9c0f",class:m({placement:this.placement})},i("slot",{key:"6a6203ca9e4c53e1d74f834bd023a60a5241f415"}))}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.bottom-\\[calc\\(env\\(safe-area-inset-bottom\\2c 0\\)\\+1rem\\)\\]{bottom:calc(env(safe-area-inset-bottom,0) + 1rem)}.left-\\[calc\\(env\\(safe-area-inset-left\\2c 0\\)\\+1rem\\)\\]{left:calc(env(safe-area-inset-left,0) + 1rem)}.right-\\[calc\\(env\\(safe-area-inset-right\\2c 0\\)\\+1rem\\)\\]{right:calc(env(safe-area-inset-right,0) + 1rem)}.top-\\[calc\\(env\\(safe-area-inset-top\\2c 0\\)\\+1rem\\)\\]{top:calc(env(safe-area-inset-top,0) + 1rem)}.z-\\[600\\]{z-index:600}.z-toast{z-index:700}.flex{display:flex}.max-w-\\[calc\\(100\\%-\\(env\\(safe-area-inset-left\\2c 0\\)\\+env\\(safe-area-inset-right\\2c 0\\)\\+2rem\\)\\)\\]{max-width:calc(100% - env(safe-area-inset-left,0) - env(safe-area-inset-right,0) - 2rem)}.flex-col{flex-direction:column}.gap-4{gap:1rem}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}@media (min-width:40rem){.tablet\\:max-w-\\[26\\.5rem\\]{max-width:26.5rem}}"}},[769,"p-toast-container",{placement:[1]}]);function c(){"undefined"!=typeof customElements&&["p-toast-container"].forEach((t=>{"p-toast-container"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}c();const s=r,o=c;export{s as PToastContainer,o as defineCustomElement}
1
+ import{t as e,p as t,H as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";const m=n(["fixed z-toast flex flex-col gap-4","tablet:max-w-[26.5rem]","z-[600]","\n w-[calc(100%-(env(safe-area-inset-left,0)+env(safe-area-inset-right,\n 0)+2rem))]\n ","\n max-w-[calc(100%-(env(safe-area-inset-left,0)+env(safe-area-inset-right,0)+2rem))]\n "],{variants:{placement:{"top-start":["top-[calc(env(safe-area-inset-top,0)+1rem)]","left-[calc(env(safe-area-inset-left,0)+1rem)]"],"top-end":["top-[calc(env(safe-area-inset-top,0)+1rem)]","right-[calc(env(safe-area-inset-right,0)+1rem)]"],"bottom-start":["bottom-[calc(env(safe-area-inset-bottom,0)+1rem)]","left-[calc(env(safe-area-inset-left,0)+1rem)]"],"bottom-end":["bottom-[calc(env(safe-area-inset-bottom,0)+1rem)]","right-[calc(env(safe-area-inset-right,0)+1rem)]"]}}}),r=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}placement="top-end";render(){return i("div",{key:"248a68b4ffbf7f9b3136927fb4a8ef6a3b683651",class:m({placement:this.placement})},i("slot",{key:"d7d6813c675f8bc54e3ed97b9e0adb7f18c96b3b"}))}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.bottom-\\[calc\\(env\\(safe-area-inset-bottom\\2c 0\\)\\+1rem\\)\\]{bottom:calc(env(safe-area-inset-bottom,0) + 1rem)}.left-\\[calc\\(env\\(safe-area-inset-left\\2c 0\\)\\+1rem\\)\\]{left:calc(env(safe-area-inset-left,0) + 1rem)}.right-\\[calc\\(env\\(safe-area-inset-right\\2c 0\\)\\+1rem\\)\\]{right:calc(env(safe-area-inset-right,0) + 1rem)}.top-\\[calc\\(env\\(safe-area-inset-top\\2c 0\\)\\+1rem\\)\\]{top:calc(env(safe-area-inset-top,0) + 1rem)}.z-\\[600\\]{z-index:600}.z-toast{z-index:700}.flex{display:flex}.max-w-\\[calc\\(100\\%-\\(env\\(safe-area-inset-left\\2c 0\\)\\+env\\(safe-area-inset-right\\2c 0\\)\\+2rem\\)\\)\\]{max-width:calc(100% - env(safe-area-inset-left,0) - env(safe-area-inset-right,0) - 2rem)}.flex-col{flex-direction:column}.gap-4{gap:1rem}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}@media (min-width:40rem){.tablet\\:max-w-\\[26\\.5rem\\]{max-width:26.5rem}}"}},[769,"p-toast-container",{placement:[1]}]);function c(){"undefined"!=typeof customElements&&["p-toast-container"].forEach((t=>{"p-toast-container"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}c();const s=r,o=c;export{s as PToastContainer,o as defineCustomElement}