@paperless/core 0.1.0-alpha.223 → 0.1.0-alpha.225

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 (135) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/i18n/table.i18n.en.json +13 -0
  3. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  4. package/dist/assets/illustrations/empty-state-overview.svg +65 -0
  5. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  6. package/dist/build/p-25ed4eb4.entry.js +1 -0
  7. package/dist/build/p-337ad423.entry.js +1 -0
  8. package/dist/build/{p-1f6a0296.entry.js → p-417a706f.entry.js} +1 -1
  9. package/dist/build/p-47c36e96.entry.js +1 -0
  10. package/dist/build/p-48d04ece.entry.js +1 -0
  11. package/dist/build/p-7e40c097.entry.js +1 -0
  12. package/dist/build/p-d70f6f04.entry.js +1 -0
  13. package/dist/{paperless/p-61975c9a.entry.js → build/p-ddeaf320.entry.js} +1 -1
  14. package/dist/build/p-e4a465a8.entry.js +1 -0
  15. package/dist/build/p-ff05fe38.entry.js +1 -0
  16. package/dist/build/paperless.esm.js +1 -1
  17. package/dist/cjs/index-cf92051a.js +4 -8
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/p-button_3.cjs.entry.js +3 -3
  20. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  21. package/dist/cjs/p-dropdown_3.cjs.entry.js +3 -3
  22. package/dist/cjs/p-helper_2.cjs.entry.js +2 -2
  23. package/dist/cjs/p-illustration_6.cjs.entry.js +2756 -0
  24. package/dist/cjs/p-input-group_4.cjs.entry.js +4 -4
  25. package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
  26. package/dist/cjs/p-select.cjs.entry.js +7 -4
  27. package/dist/cjs/p-table.cjs.entry.js +27 -1
  28. package/dist/cjs/p-toast.cjs.entry.js +6 -1
  29. package/dist/cjs/paperless.cjs.js +1 -1
  30. package/dist/collection/assets/illustrations/empty-state-overview.svg +65 -0
  31. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  32. package/dist/collection/collection-manifest.json +2 -2
  33. package/dist/collection/components/atoms/button/button.component.css +1 -1
  34. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  35. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  36. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  37. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  38. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  39. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  40. package/dist/collection/components/atoms/label/label.component.css +1 -1
  41. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  42. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  43. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  44. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  45. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -1
  46. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  47. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  48. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  49. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  50. package/dist/collection/components/molecules/select/select.component.js +7 -4
  51. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
  52. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -1
  53. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -1
  54. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -1
  55. package/dist/collection/components/molecules/toast/toast.component.js +7 -2
  56. package/dist/collection/components/organisms/table/table.component.css +1 -1
  57. package/dist/collection/components/organisms/table/table.component.js +160 -7
  58. package/dist/collection/utils/illustrations.js +4 -0
  59. package/dist/components/button.component.js +1 -1
  60. package/dist/components/divider.component.js +1 -1
  61. package/dist/components/dropdown-menu-container.component.js +1 -1
  62. package/dist/components/dropdown-menu-item.component.js +1 -1
  63. package/dist/components/dropdown.component.js +1 -1
  64. package/dist/components/helper.component.js +1 -1
  65. package/dist/components/icon.component.js +1 -1
  66. package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +184 -16
  67. package/dist/components/input-group.component.js +1 -1
  68. package/dist/components/label.component.js +1 -1
  69. package/dist/components/loader.component.js +1 -1
  70. package/dist/components/p-illustration.js +1 -1435
  71. package/dist/components/p-select.js +7 -4
  72. package/dist/components/p-table.js +54 -16
  73. package/dist/components/p-toast.js +6 -1
  74. package/dist/components/pagination-item.component.js +1 -1
  75. package/dist/components/pagination.component.js +1 -1
  76. package/dist/components/segment-container.component.js +1 -1
  77. package/dist/components/segment-item.component.js +1 -1
  78. package/dist/components/table-cell.component.js +1 -1
  79. package/dist/components/table-container.component.js +1 -1
  80. package/dist/components/table-footer.component.js +1 -1
  81. package/dist/components/table-header.component.js +1 -1
  82. package/dist/components/table-row.component.js +1 -1
  83. package/dist/components/tooltip.component.js +1 -1
  84. package/dist/esm/index-7c99f044.js +4 -8
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/p-button_3.entry.js +3 -3
  87. package/dist/esm/p-divider.entry.js +1 -1
  88. package/dist/esm/p-dropdown_3.entry.js +3 -3
  89. package/dist/esm/p-helper_2.entry.js +2 -2
  90. package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1327 -2
  91. package/dist/esm/p-input-group_4.entry.js +4 -4
  92. package/dist/esm/p-page-size-select_3.entry.js +2 -2
  93. package/dist/esm/p-select.entry.js +7 -4
  94. package/dist/esm/p-table.entry.js +27 -1
  95. package/dist/esm/p-toast.entry.js +6 -1
  96. package/dist/esm/paperless.js +1 -1
  97. package/dist/index.html +1 -1
  98. package/dist/paperless/p-25ed4eb4.entry.js +1 -0
  99. package/dist/paperless/p-337ad423.entry.js +1 -0
  100. package/dist/paperless/{p-1f6a0296.entry.js → p-417a706f.entry.js} +1 -1
  101. package/dist/paperless/p-47c36e96.entry.js +1 -0
  102. package/dist/paperless/p-48d04ece.entry.js +1 -0
  103. package/dist/paperless/p-7e40c097.entry.js +1 -0
  104. package/dist/paperless/p-d70f6f04.entry.js +1 -0
  105. package/dist/{build/p-61975c9a.entry.js → paperless/p-ddeaf320.entry.js} +1 -1
  106. package/dist/paperless/p-e4a465a8.entry.js +1 -0
  107. package/dist/paperless/p-ff05fe38.entry.js +1 -0
  108. package/dist/paperless/paperless.esm.js +1 -1
  109. package/dist/sw.js +1 -1
  110. package/dist/sw.js.map +1 -1
  111. package/dist/types/components/molecules/toast/toast.component.d.ts +1 -0
  112. package/dist/types/components/organisms/table/table.component.d.ts +18 -2
  113. package/dist/types/components.d.ts +21 -6
  114. package/dist/types/utils/illustrations.d.ts +2 -0
  115. package/package.json +1 -1
  116. package/dist/build/p-2bf44a1d.entry.js +0 -1
  117. package/dist/build/p-3b243f16.entry.js +0 -1
  118. package/dist/build/p-6f09d65f.entry.js +0 -1
  119. package/dist/build/p-78db3d3c.entry.js +0 -1
  120. package/dist/build/p-8262fe7e.entry.js +0 -1
  121. package/dist/build/p-98332f25.entry.js +0 -1
  122. package/dist/build/p-9fba2393.entry.js +0 -1
  123. package/dist/build/p-aae4caab.entry.js +0 -1
  124. package/dist/build/p-f45b75ae.entry.js +0 -1
  125. package/dist/cjs/p-table-cell_5.cjs.entry.js +0 -1179
  126. package/dist/esm/p-table-cell_5.entry.js +0 -1171
  127. package/dist/paperless/p-2bf44a1d.entry.js +0 -1
  128. package/dist/paperless/p-3b243f16.entry.js +0 -1
  129. package/dist/paperless/p-6f09d65f.entry.js +0 -1
  130. package/dist/paperless/p-78db3d3c.entry.js +0 -1
  131. package/dist/paperless/p-8262fe7e.entry.js +0 -1
  132. package/dist/paperless/p-98332f25.entry.js +0 -1
  133. package/dist/paperless/p-9fba2393.entry.js +0 -1
  134. package/dist/paperless/p-aae4caab.entry.js +0 -1
  135. package/dist/paperless/p-f45b75ae.entry.js +0 -1
@@ -1,4 +1,7 @@
1
- import { r as registerInstance, h, H as Host } from './index-7c99f044.js';
1
+ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-7c99f044.js';
2
+ import { o as objectGetByPath } from './object-get-by-path-d6427a61.js';
3
+ import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-abb97f67.js';
4
+ import { d as defaultSize, a as defaultSizeOptions } from './constants-826f9460.js';
2
5
 
3
6
  const emptyState = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" viewBox="0 0 400 400">
4
7
  <defs>
@@ -222,6 +225,161 @@ const departments = `<svg xmlns="http://www.w3.org/2000/svg" width="171" height=
222
225
 
223
226
  const email = `<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" width="150px" height="150px" viewBox="0 0 150.0 150.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="i0"><path d="M85.1759982,0 C104.072973,-3.47131792e-15 119.391997,15.3190247 119.391997,34.2159993 L119.391997,64.0639986 L0,64.0639986 L0,24.0239995 C-1.62487222e-15,10.7559109 10.7559109,2.43730832e-15 24.0239995,0 L85.1759982,0 Z"></path></clipPath><linearGradient id="i1" x1="59.6959987px" y1="64.0639986px" x2="59.6959987px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="#80A6F1" offset="0%"></stop><stop stop-color="#B5CDFF" offset="100%"></stop></linearGradient><clipPath id="i2"><path d="M20.5519995,0 C31.9025555,-2.0850633e-15 41.1039991,9.20144361 41.1039991,20.5519995 L41.1039991,64.0639986 L0,64.0639986 L0,20.5519995 C-4.94275588e-15,9.20144361 9.20144361,2.0850633e-15 20.5519995,0 Z"></path></clipPath><linearGradient id="i3" x1="20.5519995px" y1="64.0639986px" x2="20.5519995px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="#4873C8" offset="0%"></stop><stop stop-color="#4773CB" offset="100%"></stop></linearGradient><clipPath id="i4"><path d="M13,0 L13,69.272 C13,69.6740633 12.6740633,70 12.272,70 L0.727999984,70 C0.325936695,70 -1.72806053e-16,69.6740633 0,69.272 L0,0 L13,0 Z"></path></clipPath><linearGradient id="i5" x1="6.5px" y1="70px" x2="6.5px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="rgba(133, 169, 243, 0)" offset="0%"></stop><stop stop-color="#B5CDFF" offset="100%"></stop></linearGradient><clipPath id="i6"><path d="M9,0 L9,69.272 C9,69.6740633 8.6740633,70 8.27200002,70 L0.727999984,70 C0.325936695,70 -6.17837504e-17,69.6740633 0,69.272 L0,0 L9,0 Z"></path></clipPath><linearGradient id="i7" x1="4.5px" y1="70px" x2="4.5px" y2="1.29922327px" gradientUnits="userSpaceOnUse"><stop stop-color="rgba(87, 128, 209, 0)" offset="0%"></stop><stop stop-color="#4F7ACF" offset="98.1439668%"></stop></linearGradient><clipPath id="i8"><path d="M72.7999984,0 L72.7999984,5.09599989 L0.727999984,5.09599989 C0.325936695,5.09599989 7.15372367e-16,4.77006319 0,4.36799991 L0,0.727999984 C-4.9238552e-17,0.325936695 0.325936695,-3.71644744e-17 0.727999984,0 L72.7999984,0 Z"></path></clipPath><clipPath id="i9"><path d="M77.0839983,0 L77.0839983,4.36799991 C77.0839983,4.77006319 76.7580616,5.09599989 76.3559984,5.09599989 L0,5.09599989 L0,0 L77.0839983,0 Z"></path></clipPath><clipPath id="i10"><path d="M30.2119993,0 L60.4239987,24.5359285 L60.4239987,58.2399987 L0,58.2399987 L0,24.5359285 L30.2119993,0 Z"></path></clipPath><linearGradient id="i11" x1="30.2119993px" y1="58.2399987px" x2="30.2119993px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="#4976D0" offset="0%"></stop><stop stop-color="#83A8F2" offset="100%"></stop></linearGradient><clipPath id="i12"><path d="M28.5611597,0 C26.5440085,0.14121798 24.940731,2.28624546 24.940731,4.91265145 C24.940731,7.53905744 26.5440085,9.68408493 28.5610529,9.81860835 L4.02269854,9.82530291 C3.95616212,9.823053 3.88906726,9.82530291 3.82156362,9.82530291 C1.71097231,9.82530291 0,7.62583393 0,4.91265145 C0,2.19946897 1.71097231,0 3.82156362,0 C3.88906726,0 3.95616212,0.00224990396 4.0228053,0.00669455955 L28.5611597,0 Z"></path></clipPath><linearGradient id="i13" x1="14.2805798px" y1="9.82530291px" x2="14.2805798px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="#80A6F1" offset="0%"></stop><stop stop-color="#B5CDFF" offset="100%"></stop></linearGradient><clipPath id="i14"><path d="M43.0975968,0 C39.3467946,0 37.4054615,2.32959981 37.2735973,6.98879943 L37.2735973,35.8122364 C37.2735973,36.2735377 37.054994,36.7075488 36.6843315,36.9821543 L30.346965,41.6771948 C29.9634652,41.9613108 29.4650694,42.0394323 29.0130302,41.8862836 L18.2960002,38.2554064 C17.8288085,38.0971242 17.3132468,38.1861511 16.9261915,38.4919444 L13.497038,41.201149 C13.0262552,41.5730912 12.375522,41.618165 11.857955,41.3146821 L0.71952494,34.7835005 C0.273819266,34.5221545 6.32747051e-17,34.0441759 0,33.5274987 L0,6.98879902 C-1.36086846e-15,3.1289919 3.1289919,-1.79143355e-16 6.98879902,0 L43.0975968,0 Z"></path></clipPath><linearGradient id="i15" x1="21.5487984px" y1="5.25158252px" x2="21.5487984px" y2="41.963289px" gradientUnits="userSpaceOnUse"><stop stop-color="#EBF2FF" offset="0%"></stop><stop stop-color="#CDDBF6" offset="100%"></stop></linearGradient><clipPath id="i16"><path d="M26.1259675,0 C26.4797832,-6.49948862e-17 26.7666075,0.286824281 26.7666075,0.640639962 L26.7666075,6.23167958 C26.7666075,6.58549526 26.4797832,6.87231954 26.1259675,6.87231954 L0.640639962,6.87231954 C0.286824281,6.87231954 2.65374529e-16,6.58549526 0,6.23167958 L0,0.640639962 C-4.33299241e-17,0.286824281 0.286824281,-4.60274163e-17 0.640639962,0 L26.1259675,0 Z"></path></clipPath><clipPath id="i17"><path d="M4.33328874,0 C4.58185829,0 4.78686103,0.0506100509 4.94830311,0.151831671 C5.10974519,0.253053291 5.23915316,0.412571046 5.33653093,0.630389722 L4.83298792,0.891770827 C4.7971119,0.77901763 4.74137678,0.688688299 4.66578089,0.620780123 C4.59018499,0.552871948 4.47935539,0.518918369 4.33328874,0.518918369 C4.16159638,0.518918369 4.02386016,0.574653488 3.92007597,0.686125399 C3.81629178,0.79759731 3.76440046,0.959677599 3.76440046,1.17237113 L3.76440046,1.60288118 C3.76440046,1.81557472 3.81629178,1.977655 3.92007597,2.08912692 C4.02386016,2.20059883 4.16159638,2.25633395 4.33328874,2.25633395 C4.47679281,2.25633395 4.59146622,2.2172553 4.6773124,2.13909683 C4.76315859,2.06093837 4.82658131,1.96676523 4.86758247,1.85657461 L5.3442186,2.13333107 C5.24427827,2.33833689 5.11294839,2.49657337 4.95022503,2.60804528 C4.78750166,2.7195172 4.58185829,2.77525231 4.33328874,2.77525231 C4.15134609,2.77525231 3.9873439,2.7464238 3.84127725,2.68876592 C3.69521061,2.63110804 3.5709277,2.54526314 3.4684248,2.43122866 C3.36592189,2.31719417 3.28648333,2.17497352 3.23010673,2.00456244 C3.17373013,1.83415136 3.14554226,1.63491432 3.14554226,1.40684536 C3.14554226,1.18133896 3.17373013,0.980820659 3.23010673,0.805284432 C3.28648333,0.629748205 3.36592189,0.482402487 3.4684248,0.363242858 C3.5709277,0.24408323 3.69521061,0.153753898 3.84127725,0.0922521545 C3.9873439,0.0307504107 4.15134609,0 4.33328874,0 Z M1.60672502,0.0461260773 L2.47927665,2.72912624 L1.87194997,2.72912624 L1.67975798,2.09104884 L0.784143313,2.09104884 L0.591951325,2.72912624 L0,2.72912624 L0.884083147,0.0461260773 L1.60672502,0.0461260773 Z M8.10922072,0.0461260773 L8.10922072,0.565044446 L7.38273501,0.565044446 L7.38273501,2.72912624 L6.79847136,2.72912624 L6.79847136,0.565044446 L6.07198564,0.565044446 L6.07198564,0.0461260773 L8.10922072,0.0461260773 Z M10.1784878,0.0461260773 L10.1784878,0.51123069 L9.83254226,0.51123069 L9.83254226,2.26402163 L10.1784878,2.26402163 L10.1784878,2.72912624 L8.90233304,2.72912624 L8.90233304,2.26402163 L9.24827862,2.26402163 L9.24827862,0.51123069 L8.90233304,0.51123069 L8.90233304,0.0461260773 L10.1784878,0.0461260773 Z M11.5289569,0.0461260773 L11.9287163,1.3338124 L12.1401274,2.17561331 L12.151659,2.17561331 L12.3553825,1.3338124 L12.7551418,0.0461260773 L13.3278739,0.0461260773 L12.4553223,2.72912624 L11.8018695,2.72912624 L10.9370056,0.0461260773 L11.5289569,0.0461260773 Z M16.0159993,0.0461260773 L16.0159993,0.565044446 L14.774439,0.565044446 L14.774439,1.11471353 L15.8391826,1.11471353 L15.8391826,1.62978806 L14.774439,1.62978806 L14.774439,2.21020787 L16.0159993,2.21020787 L16.0159993,2.72912624 L14.1901754,2.72912624 L14.1901754,0.0461260773 L16.0159993,0.0461260773 Z M18.861722,0.0461260773 L18.861722,0.565044446 L17.6201618,0.565044446 L17.6201618,1.11471353 L18.6849054,1.11471353 L18.6849054,1.62978806 L17.6201618,1.62978806 L17.6201618,2.21020787 L18.861722,2.21020787 L18.861722,2.72912624 L17.0358981,2.72912624 L17.0358981,0.0461260773 L18.861722,0.0461260773 Z M21.1539318,0.0461260773 C21.2769353,0.0461260773 21.3884056,0.066626351 21.4883459,0.107627514 C21.5882862,0.148628676 21.6734905,0.20692633 21.7439612,0.282522223 C21.814432,0.358118117 21.8688858,0.448447448 21.9073244,0.553512927 C21.945763,0.658578406 21.964982,0.775173713 21.964982,0.903302346 C21.964982,1.08524501 21.9246221,1.24412213 21.8439011,1.37993848 C21.76318,1.51575483 21.640819,1.6144124 21.4768144,1.67591414 L22.0034204,2.72912624 L21.3538115,2.72912624 L20.8848631,1.74510326 L20.4658845,1.74510326 L20.4658845,2.72912624 L19.8816209,2.72912624 L19.8816209,0.0461260773 L21.1539318,0.0461260773 Z M1.23771641,0.576575966 L1.21849721,0.576575966 L0.922521545,1.59519351 L1.53753591,1.59519351 L1.23771641,0.576575966 Z M21.0808989,0.553512927 L20.4658845,0.553512927 L20.4658845,1.25309177 L21.0808989,1.25309177 C21.1680264,1.25309177 21.2365741,1.23066959 21.2865443,1.18582457 C21.3365145,1.14097955 21.3614992,1.07499429 21.3614992,0.987866821 L21.3614992,0.818737871 C21.3614992,0.731610401 21.3365145,0.665625145 21.2865443,0.620780123 C21.2365741,0.575935101 21.1680264,0.553512927 21.0808989,0.553512927 Z"></path></clipPath><clipPath id="i18"><path d="M60.4239987,0 L60.4239987,33.2431851 L0,33.2431851 L0,0 L30.2119993,14.5723551 L60.4239987,0 Z"></path></clipPath><linearGradient id="i19" x1="30.2119993px" y1="33.2431851px" x2="30.2119993px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="#80A6F1" offset="0%"></stop><stop stop-color="#B5CDFF" offset="100%"></stop></linearGradient><clipPath id="i20"><path d="M25.2346799,1.03151456 L46.5557573,20.012822 C47.1563598,20.5475145 47.2097904,21.467853 46.6750979,22.0684556 C46.398817,22.3787928 46.0031108,22.556309 45.5876108,22.556309 L1.45599997,22.556309 C0.65187339,22.556309 -1.01174592e-15,21.9044356 -1.11022302e-15,21.1003091 C-1.16110711e-15,20.684809 0.17751623,20.2891028 0.487853441,20.012822 L21.8089309,1.03151456 C22.7854008,0.162202233 24.25821,0.162202233 25.2346799,1.03151456 Z"></path></clipPath><linearGradient id="i21" x1="23.521813px" y1="22.556309px" x2="23.521813px" y2="0px" gradientUnits="userSpaceOnUse"><stop stop-color="#80A6F1" offset="0%"></stop><stop stop-color="#B5CDFF" offset="100%"></stop></linearGradient><clipPath id="i22"><path d="M21.8399995,0 C22.2420628,2.06876579e-15 22.5679995,0.325936695 22.5679995,0.727999984 L22.5679995,15.2879997 C22.5679995,15.690063 22.2420628,16.0159997 21.8399995,16.0159997 L0.727999984,16.0159997 C0.325936695,16.0159997 -5.0587296e-16,15.690063 0,15.2879997 L0,0.727999984 C-4.9238552e-17,0.325936695 0.325936695,1.8488013e-16 0.727999984,0 L21.8399995,0 Z"></path></clipPath><linearGradient id="i23" x1="11.2839998px" y1="4.90348568e-16px" x2="11.2839998px" y2="16.0159997px" gradientUnits="userSpaceOnUse"><stop stop-color="#FFD7DA" offset="0%"></stop><stop stop-color="#FF8A94" offset="100%"></stop></linearGradient><clipPath id="i24"><path d="M2.91199994,0 C3.31406323,3.71644744e-17 3.63999992,0.325936695 3.63999992,0.727999984 L3.63999992,29.8479994 C3.63999992,30.2500626 3.31406323,30.5759993 2.91199994,30.5759993 L0.727999984,30.5759993 C0.325936695,30.5759993 2.0133102e-15,30.2500626 0,29.8479994 L0,0.727999984 C-4.9238552e-17,0.325936695 0.325936695,7.39991643e-16 0.727999984,0 L2.91199994,0 Z"></path></clipPath><linearGradient id="i25" x1="1.67562148px" y1="1.52042937px" x2="1.67562148px" y2="30.5759993px" gradientUnits="userSpaceOnUse"><stop stop-color="#FF95A8" offset="0%"></stop><stop stop-color="#DF4D68" offset="100%"></stop></linearGradient><clipPath id="i26"><path d="M3.27599993,0 C5.08528473,0 6.55199986,1.46671513 6.55199986,3.27599993 C6.55199986,5.08528473 5.08528473,6.55199986 3.27599993,6.55199986 C1.46671513,6.55199986 0,5.08528473 0,3.27599993 C0,1.46671513 1.46671513,0 3.27599993,0 Z"></path></clipPath></defs><g transform="translate(2.0 1.0)"><g transform="translate(26.291999422073204 7.784000324726044)"><g clip-path="url(#i0)"><polygon points="0,0 119.391997,0 119.391997,64.0639986 0,64.0639986 0,0" stroke="none" fill="url(#i1)"></polygon></g></g><g transform="translate(27.495999424934315 7.784000324726044)"><g clip-path="url(#i2)"><polygon points="0,0 41.1039991,0 41.1039991,64.0639986 0,64.0639986 0,0" stroke="none" fill="url(#i3)"></polygon></g></g><g transform="translate(73.33999838352156 76.94399882984133)"><g transform="translate(9.66000161647844 0.0560011701586518)"><g opacity="90.0000036%"><g clip-path="url(#i4)"><polygon points="0,0 13,0 13,70 0,70 0,0" stroke="none" fill="url(#i5)"></polygon><g transform="translate(0.0 14.0)"><polygon points="13,0 0,0 0,-14 13,-14 13,0 13,0" stroke="none" fill="rgba(97, 139, 223, 0.7)"></polygon></g></g></g></g><g transform="translate(0.6600016164784392 0.0560011701586518)"><g opacity="90.0000036%"><g clip-path="url(#i6)"><polygon points="0,0 9,0 9,70 0,70 0,0" stroke="none" fill="url(#i7)"></polygon><g transform="translate(0.0 14.0)"><polygon points="9,0 0,0 0,-14 9,-14 9,0 9,0" stroke="none" fill="rgba(75, 116, 201, 0.7)"></polygon></g></g></g></g></g><g transform="translate(12.599999785423279 71.84799893999077)"><g clip-path="url(#i8)"><polygon points="0,0 72.7999984,0 72.7999984,5.09599989 0,5.09599989 0,0" stroke="none" fill="#6A95EA"></polygon></g><g transform="translate(55.99999871253968 0.0)"><g clip-path="url(#i9)"><polygon points="0,0 77.0839983,0 77.0839983,5.09599989 0,5.09599989 0,0" stroke="none" fill="#95B5F7"></polygon></g></g></g><g transform="translate(0.19599997329704166 19.90800009155265)"><g clip-path="url(#i10)"><polygon points="0,0 60.4239987,0 60.4239987,58.2399987 0,58.2399987 0,0" stroke="none" fill="url(#i11)"></polygon></g><g transform="translate(3.9360000257491734 3.0079998269080797)"><g transform="translate(0.5100747341529566 0.0)"><g clip-path="url(#i12)"><polygon points="0,0 28.5611597,0 28.5611597,9.82530291 0,9.82530291 0,0" stroke="none" fill="url(#i13)"></polygon></g></g><g transform="translate(45.718396373558065 0.0) scale(-1.0 1.0)"><g clip-path="url(#i14)"><polygon points="0,0 43.0975968,0 43.0975968,41.963289 0,41.963289 0,0" stroke="none" fill="url(#i15)"></polygon></g></g><g transform="translate(14.0 15.0)"><g transform="translate(0.19784397813067578 0.10229217886434983)"><g transform="translate(0.0 1.0)"><polygon points="27.0261341,-1.02237376 27.8719262,7.20487644 -0.259526609,7.8946933 -1.10531869,-0.332556902 27.0261341,-1.02237376 27.0261341,-1.02237376" stroke="none" fill="#2B4BA9"></polygon></g><g clip-path="url(#i16)"><polygon points="0,0 26.7666075,0 26.7666075,6.87231954 0,6.87231954 0,0" stroke="none" fill="#528AFA"></polygon></g></g><g transform="translate(2.3075842545387886 2.476792512525163)"><g clip-path="url(#i17)"><polygon points="0,0 22.0034204,0 22.0034204,2.77525231 0,2.77525231 0,0" stroke="none" fill="#FFFFFF"></polygon><polygon points="0,0 22.0034204,0 22.0034204,2.77525231 0,2.77525231 0,0" stroke="none" fill="#FFFFFF"></polygon></g></g></g></g><g transform="translate(0.0 24.996813618989023)"><g clip-path="url(#i18)"><polygon points="0,0 60.4239987,0 60.4239987,33.2431851 0,33.2431851 0,0" stroke="none" fill="url(#i19)"></polygon></g></g><g transform="translate(6.69019398361203 35.68368971098083)"><g clip-path="url(#i20)"><polygon points="-1.11022302e-15,0.379530314 47.0436259,0.379530314 47.0436259,22.556309 -1.11022302e-15,22.556309 -1.11022302e-15,0.379530314" stroke="none" fill="url(#i21)"></polygon></g></g></g><g transform="translate(108.6679973950384 0.0)"><g transform="translate(5.095999889850599 0.0)"><g clip-path="url(#i22)"><polygon points="0,0 22.5679995,0 22.5679995,16.0159997 0,16.0159997 0,0" stroke="none" fill="url(#i23)"></polygon></g></g><g transform="translate(1.455999968528743 0.0)"><g clip-path="url(#i24)"><polygon points="0,0 3.63999992,0 3.63999992,30.5759993 0,30.5759993 0,0" stroke="none" fill="url(#i25)"></polygon></g></g><g transform="translate(0.0 26.93599941778175)"><g clip-path="url(#i26)"><polygon points="0,0 6.55199986,0 6.55199986,6.55199986 0,6.55199986 0,0" stroke="none" fill="#6A95EA"></polygon></g></g></g></g></svg>`;
224
227
 
228
+ const emptyStateOverview = `<?xml version="1.0" encoding="UTF-8"?>
229
+ <svg width="152px" height="152px" viewBox="0 0 152 152" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
230
+ <title>⚛️ Atoms/illustrations/empty/overview</title>
231
+ <defs>
232
+ <rect id="path-1" x="0" y="0" width="152" height="152"></rect>
233
+ <linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-3">
234
+ <stop stop-color="#FFFFFF" offset="0%"></stop>
235
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
236
+ </linearGradient>
237
+ </defs>
238
+ <g id="⚛️-Atoms" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
239
+ <g id="⚛️-Atoms/illustrations/empty/overview">
240
+ <mask id="mask-2" fill="white">
241
+ <use xlink:href="#path-1"></use>
242
+ </mask>
243
+ <g id="bounding-box"></g>
244
+ <g id="row" mask="url(#mask-2)">
245
+ <g transform="translate(0.000000, -3.000000)">
246
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
247
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
248
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
249
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
250
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
251
+ </g>
252
+ </g>
253
+ <g id="row" mask="url(#mask-2)">
254
+ <g transform="translate(0.000000, 36.000000)">
255
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
256
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
257
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
258
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
259
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
260
+ </g>
261
+ </g>
262
+ <g id="row" mask="url(#mask-2)">
263
+ <g transform="translate(0.000000, 75.000000)">
264
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
265
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
266
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
267
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
268
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
269
+ </g>
270
+ </g>
271
+ <g id="row" mask="url(#mask-2)">
272
+ <g transform="translate(0.000000, 114.000000)">
273
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
274
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
275
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
276
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
277
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
278
+ </g>
279
+ </g>
280
+ <rect id="overlay-right" fill="url(#linearGradient-3)" mask="url(#mask-2)" x="128" y="0" width="24" height="152"></rect>
281
+ <rect id="overlay-bottom" fill="url(#linearGradient-3)" mask="url(#mask-2)" transform="translate(76.000000, 140.000000) rotate(90.000000) translate(-76.000000, -140.000000) " x="64" y="64" width="24" height="152"></rect>
282
+ <rect id="overlay-top" fill="url(#linearGradient-3)" mask="url(#mask-2)" transform="translate(76.000000, 12.000000) scale(1, -1) rotate(90.000000) translate(-76.000000, -12.000000) " x="64" y="-64" width="24" height="152"></rect>
283
+ <g id="Group" mask="url(#mask-2)">
284
+ <g transform="translate(52.000000, 52.000000)">
285
+ <rect id="bg" fill="#528AFA" fill-rule="evenodd" x="0" y="0" width="48" height="48" rx="24"></rect>
286
+ <rect id="Rectangle" fill="#FFFFFF" fill-rule="nonzero" transform="translate(24.000000, 24.000000) rotate(90.000000) translate(-24.000000, -24.000000) " x="23" y="14" width="2" height="20" rx="1"></rect>
287
+ <rect id="Rectangle" fill="#FFFFFF" fill-rule="nonzero" x="23" y="14" width="2" height="20" rx="1"></rect>
288
+ </g>
289
+ </g>
290
+ </g>
291
+ </g>
292
+ </svg>`;
293
+
294
+ const emptyStateSearch = `<?xml version="1.0" encoding="UTF-8"?>
295
+ <svg width="152px" height="152px" viewBox="0 0 152 152" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
296
+ <title>⚛️ Atoms/illustrations/empty/search</title>
297
+ <defs>
298
+ <rect id="path-1" x="0" y="0" width="152" height="152"></rect>
299
+ <linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-3">
300
+ <stop stop-color="#FFFFFF" offset="0%"></stop>
301
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
302
+ </linearGradient>
303
+ <circle id="path-4" cx="18" cy="18" r="18"></circle>
304
+ </defs>
305
+ <g id="⚛️-Atoms" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
306
+ <g id="⚛️-Atoms/illustrations/empty/search">
307
+ <mask id="mask-2" fill="white">
308
+ <use xlink:href="#path-1"></use>
309
+ </mask>
310
+ <g id="bounding-box"></g>
311
+ <g id="row" mask="url(#mask-2)">
312
+ <g transform="translate(0.000000, -3.000000)">
313
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
314
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
315
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
316
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
317
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
318
+ </g>
319
+ </g>
320
+ <g id="row" mask="url(#mask-2)">
321
+ <g transform="translate(0.000000, 36.000000)">
322
+ <rect id="bg" stroke-opacity="0.4" stroke="#E3ECF3" stroke-width="1" fill="#F7FAFC" x="0.5" y="0.5" width="183" height="39"></rect>
323
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
324
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
325
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
326
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
327
+ </g>
328
+ </g>
329
+ <g id="row" mask="url(#mask-2)">
330
+ <g transform="translate(0.000000, 75.000000)">
331
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
332
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
333
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
334
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
335
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
336
+ </g>
337
+ </g>
338
+ <g id="row" mask="url(#mask-2)">
339
+ <g transform="translate(0.000000, 114.000000)">
340
+ <rect id="bg" stroke-opacity="0.8" stroke="#E3ECF3" stroke-width="1" fill="#FFFFFF" x="0.5" y="0.5" width="183" height="39"></rect>
341
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="14" width="54" height="6" rx="1"></rect>
342
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="10" y="24" width="43" height="2" rx="1"></rect>
343
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="87" y="17" width="32" height="6" rx="0.899999976"></rect>
344
+ <rect id="heading" stroke="none" fill-opacity="0.5" fill="#E3ECF3" x="142" y="17" width="32" height="6" rx="0.899999976"></rect>
345
+ </g>
346
+ </g>
347
+ <rect id="overlay-right" fill="url(#linearGradient-3)" mask="url(#mask-2)" x="128" y="0" width="24" height="152"></rect>
348
+ <rect id="overlay-bottom" fill="url(#linearGradient-3)" mask="url(#mask-2)" transform="translate(76.000000, 140.000000) rotate(90.000000) translate(-76.000000, -140.000000) " x="64" y="64" width="24" height="152"></rect>
349
+ <rect id="overlay-top" fill="url(#linearGradient-3)" mask="url(#mask-2)" transform="translate(76.000000, 12.000000) scale(1, -1) rotate(90.000000) translate(-76.000000, -12.000000) " x="64" y="-64" width="24" height="152"></rect>
350
+ <g id="search" mask="url(#mask-2)" fill="#528AFA">
351
+ <g transform="translate(41.000000, 36.000000)" id="Combined-Shape">
352
+ <path d="M24,0 C37.254834,0 48,10.745166 48,24 C48,30.3127374 45.5627505,36.0562247 41.5779034,40.3408099 C41.6050847,40.3633587 41.6311447,40.388504 41.6568542,40.4142136 L60.0416306,58.7989899 C61.2132034,59.9705627 61.2132034,61.8700577 60.0416306,63.0416306 C58.8700577,64.2132034 56.9705627,64.2132034 55.7989899,63.0416306 L37.4142136,44.6568542 C37.2617644,44.5044051 37.1291525,44.3396308 37.0163778,44.1657387 C33.2677827,46.5918601 28.7983357,48 24,48 C10.745166,48 0,37.254834 0,24 C0,10.745166 10.745166,0 24,0 Z M24,6 C14.0588745,6 6,14.0588745 6,24 C6,33.9411255 14.0588745,42 24,42 C33.9411255,42 42,33.9411255 42,24 C42,14.0588745 33.9411255,6 24,6 Z"></path>
353
+ </g>
354
+ </g>
355
+ <g id="zoom" mask="url(#mask-2)">
356
+ <g transform="translate(47.000000, 42.000000)">
357
+ <mask id="mask-5" fill="white">
358
+ <use xlink:href="#path-4"></use>
359
+ </mask>
360
+ <use id="Mask" stroke="none" fill-opacity="0.4" fill="#E3ECF3" fill-rule="evenodd" xlink:href="#path-4"></use>
361
+ <g id="row" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" mask="url(#mask-5)">
362
+ <g transform="translate(-62.000000, -13.000000)">
363
+ <rect id="bg" stroke-opacity="0.4" stroke="#E3ECF3" stroke-width="1" fill="#F7FAFC" x="0.5" y="0.5" width="238" height="51"></rect>
364
+ <rect id="heading" stroke="none" fill-opacity="0.8" fill="#DAE6F0" x="12.9891304" y="18.2" width="70.1413043" height="7.8" rx="1.3"></rect>
365
+ <rect id="heading" stroke="none" fill-opacity="0.8" fill="#DAE6F0" x="12.9891304" y="31.2" width="55.8532609" height="2.6" rx="1.3"></rect>
366
+ <rect id="heading" stroke="none" fill-opacity="0.8" fill="#DAE6F0" x="113.005435" y="22.1" width="41.5652174" height="7.8" rx="1.16999997"></rect>
367
+ </g>
368
+ </g>
369
+ <g id="row" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" mask="url(#mask-5)">
370
+ <g transform="translate(-62.000000, 38.000000)">
371
+ <rect id="bg" stroke-opacity="0.4" stroke="#E3ECF3" stroke-width="1.3" fill="#FFFFFF" x="0.65" y="0.65" width="237.7" height="50.7"></rect>
372
+ <rect id="heading" stroke="none" fill="#F1F6FF" x="12.9891304" y="18.2" width="70.1413043" height="7.8" rx="1.3"></rect>
373
+ <rect id="heading" stroke="none" fill="#F1F6FF" x="12.9891304" y="31.2" width="55.8532609" height="2.6" rx="1.3"></rect>
374
+ <rect id="heading" stroke="none" fill="#F1F6FF" x="113.005435" y="22.1" width="41.5652174" height="7.8" rx="1.16999997"></rect>
375
+ </g>
376
+ </g>
377
+ </g>
378
+ </g>
379
+ </g>
380
+ </g>
381
+ </svg>`;
382
+
225
383
  const expenses = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" viewBox="0 0 400 400">
226
384
  <defs>
227
385
  <rect id="declaraties-a" width="400" height="400" x="0" y="0"/>
@@ -1398,6 +1556,8 @@ const upgradeToHr = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http:/
1398
1556
 
1399
1557
  const illustrations = {
1400
1558
  'empty-state': emptyState,
1559
+ 'empty-state-search': emptyStateSearch,
1560
+ 'empty-state-overview': emptyStateOverview,
1401
1561
  departments,
1402
1562
  expenses,
1403
1563
  functions,
@@ -1419,4 +1579,1169 @@ const Illustration = class {
1419
1579
  };
1420
1580
  Illustration.style = '.block{display:block!important}*{box-sizing:border-box}';
1421
1581
 
1422
- export { Illustration as p_illustration };
1582
+ const tableCellComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-storm-dark,.text-storm-medium{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}p-table-cell{align-items:center;display:flex;gap:1rem}.max-w-\\[20rem\\]{max-width:20rem!important}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
1583
+
1584
+ const TableCell = class {
1585
+ constructor(hostRef) {
1586
+ registerInstance(this, hostRef);
1587
+ /**
1588
+ * The variant of the column
1589
+ */
1590
+ this.variant = 'default';
1591
+ /**
1592
+ * The template to show
1593
+ */
1594
+ this.template = ({ value, }) => value;
1595
+ }
1596
+ get data() {
1597
+ var _a;
1598
+ if (this.variant === 'header') {
1599
+ return {
1600
+ value: this.value,
1601
+ };
1602
+ }
1603
+ return {
1604
+ value: (_a = this.value) !== null && _a !== void 0 ? _a : objectGetByPath(this.item, this.definition.path),
1605
+ item: this.item,
1606
+ index: this.index,
1607
+ rowIndex: this.rowIndex,
1608
+ };
1609
+ }
1610
+ render() {
1611
+ return (h(Host, { class: Object.assign({ 'p-table-cell': true, [`variant-${this.variant}`]: true }, this._getColumnClasses()) }, this.checkbox, this.variant === 'loading' ? (h("p-loader", { variant: "ghost", class: "rounded flex-1 w-full h-6" })) : (h("div", { class: "flex" }, this.variant === 'header' ? (this.data.value) : this.definition.useSlot ? (h("slot", null)) : (this.template(this.data))))));
1612
+ }
1613
+ _getColumnClasses() {
1614
+ var _a, _b, _c, _d, _e, _f;
1615
+ const sizes = this.definition ? this._getSizes(this.definition) : {};
1616
+ return Object.assign({ 'justify-start': !((_a = this.definition) === null || _a === void 0 ? void 0 : _a.align) || ((_b = this.definition) === null || _b === void 0 ? void 0 : _b.align) === 'start', 'justify-center': ((_c = this.definition) === null || _c === void 0 ? void 0 : _c.align) === 'center', 'justify-end': ((_d = this.definition) === null || _d === void 0 ? void 0 : _d.align) === 'end', 'font-semibold': this.variant !== 'header' && ((_e = this.definition) === null || _e === void 0 ? void 0 : _e.type) === 'th', 'text-storm-dark': this.variant !== 'header' && ((_f = this.definition) === null || _f === void 0 ? void 0 : _f.type) === 'th' }, sizes);
1617
+ }
1618
+ /*
1619
+ With this, we shall hack the system in ways no one would ever have thought.
1620
+
1621
+ w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12 w-12/12
1622
+ tablet:w-1/12 tablet:w-2/12 tablet:w-3/12 tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12 tablet:w-9/12 tablet:w-10/12 tablet:w-11/12 tablet:w-12/12
1623
+ desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12
1624
+ desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12
1625
+ desktop-sm:w-1/12 desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12 desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12 desktop-sm:w-10/12 desktop-sm:w-11/12 desktop-sm:w-12/12
1626
+ desktop:w-1/12 desktop:w-2/12 desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12 desktop:w-7/12 desktop:w-8/12 desktop:w-9/12 desktop:w-10/12 desktop:w-11/12 desktop:w-12/12
1627
+ desktop-lg:w-1/12 desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12 desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12 desktop-lg:w-10/12 desktop-lg:w-11/12 desktop-lg:w-12/12
1628
+ desktop-xl:w-1/12 desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12 desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12 desktop-xl:w-10/12 desktop-xl:w-11/12 desktop-xl:w-12/12
1629
+
1630
+
1631
+ ⠀⠀⠀⠀⠀⣠⣴⣶⣿⣿⠿⣷⣶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣷⠿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀
1632
+ ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⡉⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⢉⣥⣴⣾⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀
1633
+ ⠀⠀⠀⡾⠿⠛⠛⠛⠛⠿⢿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⠿⠿⠛⠛⠛⠛⠿⢧⠀⠀⠀
1634
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⡿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1635
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1636
+ ⠀⠀⠀⠀⠀⠀⠀⣠⣤⠶⠶⠶⠰⠦⣤⣀⠀⠙⣷⠀⠀⠀⠀⠀⠀⠀⢠⡿⠋⢀⣀⣤⢴⠆⠲⠶⠶⣤⣄⠀⠀⠀⠀⠀⠀⠀
1637
+ ⠀⠘⣆⠀⠀⢠⣾⣫⣶⣾⣿⣿⣿⣿⣷⣯⣿⣦⠈⠃⡇⠀⠀⠀⠀⢸⠘⢁⣶⣿⣵⣾⣿⣿⣿⣿⣷⣦⣝⣷⡄⠀⠀⡰⠂⠀
1638
+ ⠀⠀⣨⣷⣶⣿⣧⣛⣛⠿⠿⣿⢿⣿⣿⣛⣿⡿⠀⠀⡇⠀⠀⠀⠀⢸⠀⠈⢿⣟⣛⠿⢿⡿⢿⢿⢿⣛⣫⣼⡿⣶⣾⣅⡀⠀
1639
+ ⢀⡼⠋⠁⠀⠀⠈⠉⠛⠛⠻⠟⠸⠛⠋⠉⠁⠀⠀⢸⡇⠀⠀⠄⠀⢸⡄⠀⠀⠈⠉⠙⠛⠃⠻⠛⠛⠛⠉⠁⠀⠀⠈⠙⢧⡀
1640
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡇⢠⠀⠀⠀⢸⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1641
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⢸⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1642
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠁⣿⠇⠀⠀⠀⠀⢸⡇⠙⢿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1643
+ ⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⠖⡾⠁⠀⠀⣿⠀⠀⠀⠀⠀⠘⣿⠀⠀⠙⡇⢸⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠄⠀
1644
+ ⠀⠀⢻⣷⡦⣤⣤⣤⡴⠶⠿⠛⠉⠁⠀⢳⠀⢠⡀⢿⣀⠀⠀⠀⠀⣠⡟⢀⣀⢠⠇⠀⠈⠙⠛⠷⠶⢦⣤⣤⣤⢴⣾⡏⠀⠀
1645
+ ⠀⠀⠈⣿⣧⠙⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⢊⣙⠛⠒⠒⢛⣋⡚⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⠁⣾⡿⠀⠀⠀
1646
+ ⠀⠀⠀⠘⣿⣇⠈⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡿⢿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡟⠁⣼⡿⠁⠀⠀⠀
1647
+ ⠀⠀⠀⠀⠘⣿⣦⠀⠻⣿⣷⣦⣤⣤⣶⣶⣶⣿⣿⣿⣿⠏⠀⠀⠻⣿⣿⣿⣿⣶⣶⣶⣦⣤⣴⣿⣿⠏⢀⣼⡿⠁⠀⠀⠀⠀
1648
+ ⠀⠀⠀⠀⠀⠘⢿⣷⣄⠙⠻⠿⠿⠿⠿⠿⢿⣿⣿⣿⣁⣀⣀⣀⣀⣙⣿⣿⣿⠿⠿⠿⠿⠿⠿⠟⠁⣠⣿⡿⠁⠀⠀⠀⠀⠀
1649
+ ⠀⠀⠀⠀⠀⠀⠈⠻⣯⠙⢦⣀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⣠⠴⢋⣾⠟⠀⠀⠀⠀⠀⠀⠀
1650
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠙⢧⡀⠈⠉⠒⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠐⠒⠉⠁⢀⡾⠃⠀⠀⠀⠀⠀⠀⠀⠀
1651
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1652
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢀⡴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1653
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1654
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1655
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1656
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1657
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
1658
+ */
1659
+ _getSizes({ sizes }) {
1660
+ if (sizes === 'auto' || !sizes) {
1661
+ return {
1662
+ 'w-auto': true,
1663
+ };
1664
+ }
1665
+ if (typeof sizes === 'object') {
1666
+ const classes = {};
1667
+ for (const size of Object.keys(sizes)) {
1668
+ if (size === 'default') {
1669
+ classes[`w-${sizes.default}/12`] = true;
1670
+ continue;
1671
+ }
1672
+ classes[`${size}:w-${sizes[`${size}`]}/12`] = true;
1673
+ }
1674
+ return classes;
1675
+ }
1676
+ // is a number.
1677
+ return {
1678
+ [`w-${sizes}/12`]: true,
1679
+ };
1680
+ }
1681
+ };
1682
+ TableCell.style = tableCellComponentCss;
1683
+
1684
+ const tableContainerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-storm-dark,.text-storm-medium{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;width:100%}.max-w-\\[20rem\\]{max-width:20rem!important}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
1685
+
1686
+ const TableContainer = class {
1687
+ constructor(hostRef) {
1688
+ registerInstance(this, hostRef);
1689
+ }
1690
+ render() {
1691
+ return (h(Host, { class: "p-table-container" }, h("slot", null)));
1692
+ }
1693
+ };
1694
+ TableContainer.style = tableContainerComponentCss;
1695
+
1696
+ const tableFooterComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.grid{display:grid!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.justify-self-center{justify-self:center!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-storm-dark,.text-storm-medium{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{display:grid;gap:1rem;grid-template-columns:repeat(1,minmax(0,1fr));padding:1.5rem;width:100%}:host>p-pagination{display:flex;grid-column-start:1;justify-self:center}@media (min-width:64rem){:host{grid-template-areas:\"page-size pagination export\";grid-template-columns:repeat(3,minmax(0,1fr))}:host>p-page-size-select{grid-column-start:1}:host>p-pagination{grid-column-start:2}:host>p-button{grid-column-start:3;justify-self:end}}:host(.page-size-disabled.export-disabled){grid-template-columns:repeat(1,minmax(0,1fr))}:host(.page-size-disabled.export-disabled)>p-pagination{grid-column-start:1}.max-w-\\[20rem\\]{max-width:20rem!important}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
1697
+
1698
+ const TableFooter = class {
1699
+ constructor(hostRef) {
1700
+ registerInstance(this, hostRef);
1701
+ this.pageChange = createEvent(this, "pageChange", 7);
1702
+ this.pageSizeChange = createEvent(this, "pageSizeChange", 7);
1703
+ this.export = createEvent(this, "export", 7);
1704
+ /**
1705
+ * Wether to enable page size select
1706
+ */
1707
+ this.enablePageSize = true;
1708
+ /**
1709
+ * Wether to enable pagination
1710
+ */
1711
+ this.enablePagination = true;
1712
+ /**
1713
+ * Wether to enable export
1714
+ */
1715
+ this.enableExport = true;
1716
+ /**
1717
+ * The current page
1718
+ */
1719
+ this.page = 1;
1720
+ /**
1721
+ * The amount of items per page
1722
+ */
1723
+ this.pageSize = defaultSize;
1724
+ /**
1725
+ * The options for the page size
1726
+ */
1727
+ this.pageSizeOptions = defaultSizeOptions;
1728
+ /**
1729
+ * Wether to hide when there is only 1 page available
1730
+ */
1731
+ this.hideOnSinglePage = true;
1732
+ /**
1733
+ * Locales used for this component
1734
+ */
1735
+ this._locales = {};
1736
+ }
1737
+ componentWillLoad() {
1738
+ this._setLocales();
1739
+ }
1740
+ render() {
1741
+ var _a;
1742
+ const hidePageSizeSelect = this.hideOnSinglePage && this.total < ((_a = this.pageSizeOptions) === null || _a === void 0 ? void 0 : _a[0]);
1743
+ return (h(Host, { class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, this.enablePagination && this.enablePageSize && (h("p-page-size-select", { class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.enablePagination && (h("p-pagination", { pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), this.enableExport && (h("p-button", { class: "hidden desktop-xs:flex", variant: "secondary", size: "small", icon: "download", onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
1744
+ }
1745
+ async _setLocales() {
1746
+ this._locales = await getLocaleComponentStrings(this._el);
1747
+ }
1748
+ _changePageSize(s) {
1749
+ if (!s) {
1750
+ return;
1751
+ }
1752
+ this.pageSize = s;
1753
+ this.pageSizeChange.emit(this.pageSize);
1754
+ }
1755
+ get _el() { return getElement(this); }
1756
+ };
1757
+ TableFooter.style = tableFooterComponentCss;
1758
+
1759
+ function isFunction(value) {
1760
+ return typeof value === 'function';
1761
+ }
1762
+
1763
+ function createErrorClass(createImpl) {
1764
+ const _super = (instance) => {
1765
+ Error.call(instance);
1766
+ instance.stack = new Error().stack;
1767
+ };
1768
+ const ctorFunc = createImpl(_super);
1769
+ ctorFunc.prototype = Object.create(Error.prototype);
1770
+ ctorFunc.prototype.constructor = ctorFunc;
1771
+ return ctorFunc;
1772
+ }
1773
+
1774
+ const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
1775
+ _super(this);
1776
+ this.message = errors
1777
+ ? `${errors.length} errors occurred during unsubscription:
1778
+ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
1779
+ : '';
1780
+ this.name = 'UnsubscriptionError';
1781
+ this.errors = errors;
1782
+ });
1783
+
1784
+ function arrRemove(arr, item) {
1785
+ if (arr) {
1786
+ const index = arr.indexOf(item);
1787
+ 0 <= index && arr.splice(index, 1);
1788
+ }
1789
+ }
1790
+
1791
+ class Subscription {
1792
+ constructor(initialTeardown) {
1793
+ this.initialTeardown = initialTeardown;
1794
+ this.closed = false;
1795
+ this._parentage = null;
1796
+ this._finalizers = null;
1797
+ }
1798
+ unsubscribe() {
1799
+ let errors;
1800
+ if (!this.closed) {
1801
+ this.closed = true;
1802
+ const { _parentage } = this;
1803
+ if (_parentage) {
1804
+ this._parentage = null;
1805
+ if (Array.isArray(_parentage)) {
1806
+ for (const parent of _parentage) {
1807
+ parent.remove(this);
1808
+ }
1809
+ }
1810
+ else {
1811
+ _parentage.remove(this);
1812
+ }
1813
+ }
1814
+ const { initialTeardown: initialFinalizer } = this;
1815
+ if (isFunction(initialFinalizer)) {
1816
+ try {
1817
+ initialFinalizer();
1818
+ }
1819
+ catch (e) {
1820
+ errors = e instanceof UnsubscriptionError ? e.errors : [e];
1821
+ }
1822
+ }
1823
+ const { _finalizers } = this;
1824
+ if (_finalizers) {
1825
+ this._finalizers = null;
1826
+ for (const finalizer of _finalizers) {
1827
+ try {
1828
+ execFinalizer(finalizer);
1829
+ }
1830
+ catch (err) {
1831
+ errors = errors !== null && errors !== void 0 ? errors : [];
1832
+ if (err instanceof UnsubscriptionError) {
1833
+ errors = [...errors, ...err.errors];
1834
+ }
1835
+ else {
1836
+ errors.push(err);
1837
+ }
1838
+ }
1839
+ }
1840
+ }
1841
+ if (errors) {
1842
+ throw new UnsubscriptionError(errors);
1843
+ }
1844
+ }
1845
+ }
1846
+ add(teardown) {
1847
+ var _a;
1848
+ if (teardown && teardown !== this) {
1849
+ if (this.closed) {
1850
+ execFinalizer(teardown);
1851
+ }
1852
+ else {
1853
+ if (teardown instanceof Subscription) {
1854
+ if (teardown.closed || teardown._hasParent(this)) {
1855
+ return;
1856
+ }
1857
+ teardown._addParent(this);
1858
+ }
1859
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
1860
+ }
1861
+ }
1862
+ }
1863
+ _hasParent(parent) {
1864
+ const { _parentage } = this;
1865
+ return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
1866
+ }
1867
+ _addParent(parent) {
1868
+ const { _parentage } = this;
1869
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
1870
+ }
1871
+ _removeParent(parent) {
1872
+ const { _parentage } = this;
1873
+ if (_parentage === parent) {
1874
+ this._parentage = null;
1875
+ }
1876
+ else if (Array.isArray(_parentage)) {
1877
+ arrRemove(_parentage, parent);
1878
+ }
1879
+ }
1880
+ remove(teardown) {
1881
+ const { _finalizers } = this;
1882
+ _finalizers && arrRemove(_finalizers, teardown);
1883
+ if (teardown instanceof Subscription) {
1884
+ teardown._removeParent(this);
1885
+ }
1886
+ }
1887
+ }
1888
+ Subscription.EMPTY = (() => {
1889
+ const empty = new Subscription();
1890
+ empty.closed = true;
1891
+ return empty;
1892
+ })();
1893
+ const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
1894
+ function isSubscription(value) {
1895
+ return (value instanceof Subscription ||
1896
+ (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
1897
+ }
1898
+ function execFinalizer(finalizer) {
1899
+ if (isFunction(finalizer)) {
1900
+ finalizer();
1901
+ }
1902
+ else {
1903
+ finalizer.unsubscribe();
1904
+ }
1905
+ }
1906
+
1907
+ const config = {
1908
+ onUnhandledError: null,
1909
+ onStoppedNotification: null,
1910
+ Promise: undefined,
1911
+ useDeprecatedSynchronousErrorHandling: false,
1912
+ useDeprecatedNextContext: false,
1913
+ };
1914
+
1915
+ const timeoutProvider = {
1916
+ setTimeout(handler, timeout, ...args) {
1917
+ const { delegate } = timeoutProvider;
1918
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
1919
+ return delegate.setTimeout(handler, timeout, ...args);
1920
+ }
1921
+ return setTimeout(handler, timeout, ...args);
1922
+ },
1923
+ clearTimeout(handle) {
1924
+ const { delegate } = timeoutProvider;
1925
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
1926
+ },
1927
+ delegate: undefined,
1928
+ };
1929
+
1930
+ function reportUnhandledError(err) {
1931
+ timeoutProvider.setTimeout(() => {
1932
+ const { onUnhandledError } = config;
1933
+ if (onUnhandledError) {
1934
+ onUnhandledError(err);
1935
+ }
1936
+ else {
1937
+ throw err;
1938
+ }
1939
+ });
1940
+ }
1941
+
1942
+ function noop() { }
1943
+
1944
+ const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
1945
+ function errorNotification(error) {
1946
+ return createNotification('E', undefined, error);
1947
+ }
1948
+ function nextNotification(value) {
1949
+ return createNotification('N', value, undefined);
1950
+ }
1951
+ function createNotification(kind, value, error) {
1952
+ return {
1953
+ kind,
1954
+ value,
1955
+ error,
1956
+ };
1957
+ }
1958
+
1959
+ function errorContext(cb) {
1960
+ {
1961
+ cb();
1962
+ }
1963
+ }
1964
+
1965
+ class Subscriber extends Subscription {
1966
+ constructor(destination) {
1967
+ super();
1968
+ this.isStopped = false;
1969
+ if (destination) {
1970
+ this.destination = destination;
1971
+ if (isSubscription(destination)) {
1972
+ destination.add(this);
1973
+ }
1974
+ }
1975
+ else {
1976
+ this.destination = EMPTY_OBSERVER;
1977
+ }
1978
+ }
1979
+ static create(next, error, complete) {
1980
+ return new SafeSubscriber(next, error, complete);
1981
+ }
1982
+ next(value) {
1983
+ if (this.isStopped) {
1984
+ handleStoppedNotification(nextNotification(value), this);
1985
+ }
1986
+ else {
1987
+ this._next(value);
1988
+ }
1989
+ }
1990
+ error(err) {
1991
+ if (this.isStopped) {
1992
+ handleStoppedNotification(errorNotification(err), this);
1993
+ }
1994
+ else {
1995
+ this.isStopped = true;
1996
+ this._error(err);
1997
+ }
1998
+ }
1999
+ complete() {
2000
+ if (this.isStopped) {
2001
+ handleStoppedNotification(COMPLETE_NOTIFICATION, this);
2002
+ }
2003
+ else {
2004
+ this.isStopped = true;
2005
+ this._complete();
2006
+ }
2007
+ }
2008
+ unsubscribe() {
2009
+ if (!this.closed) {
2010
+ this.isStopped = true;
2011
+ super.unsubscribe();
2012
+ this.destination = null;
2013
+ }
2014
+ }
2015
+ _next(value) {
2016
+ this.destination.next(value);
2017
+ }
2018
+ _error(err) {
2019
+ try {
2020
+ this.destination.error(err);
2021
+ }
2022
+ finally {
2023
+ this.unsubscribe();
2024
+ }
2025
+ }
2026
+ _complete() {
2027
+ try {
2028
+ this.destination.complete();
2029
+ }
2030
+ finally {
2031
+ this.unsubscribe();
2032
+ }
2033
+ }
2034
+ }
2035
+ const _bind = Function.prototype.bind;
2036
+ function bind(fn, thisArg) {
2037
+ return _bind.call(fn, thisArg);
2038
+ }
2039
+ class ConsumerObserver {
2040
+ constructor(partialObserver) {
2041
+ this.partialObserver = partialObserver;
2042
+ }
2043
+ next(value) {
2044
+ const { partialObserver } = this;
2045
+ if (partialObserver.next) {
2046
+ try {
2047
+ partialObserver.next(value);
2048
+ }
2049
+ catch (error) {
2050
+ handleUnhandledError(error);
2051
+ }
2052
+ }
2053
+ }
2054
+ error(err) {
2055
+ const { partialObserver } = this;
2056
+ if (partialObserver.error) {
2057
+ try {
2058
+ partialObserver.error(err);
2059
+ }
2060
+ catch (error) {
2061
+ handleUnhandledError(error);
2062
+ }
2063
+ }
2064
+ else {
2065
+ handleUnhandledError(err);
2066
+ }
2067
+ }
2068
+ complete() {
2069
+ const { partialObserver } = this;
2070
+ if (partialObserver.complete) {
2071
+ try {
2072
+ partialObserver.complete();
2073
+ }
2074
+ catch (error) {
2075
+ handleUnhandledError(error);
2076
+ }
2077
+ }
2078
+ }
2079
+ }
2080
+ class SafeSubscriber extends Subscriber {
2081
+ constructor(observerOrNext, error, complete) {
2082
+ super();
2083
+ let partialObserver;
2084
+ if (isFunction(observerOrNext) || !observerOrNext) {
2085
+ partialObserver = {
2086
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
2087
+ error: error !== null && error !== void 0 ? error : undefined,
2088
+ complete: complete !== null && complete !== void 0 ? complete : undefined,
2089
+ };
2090
+ }
2091
+ else {
2092
+ let context;
2093
+ if (this && config.useDeprecatedNextContext) {
2094
+ context = Object.create(observerOrNext);
2095
+ context.unsubscribe = () => this.unsubscribe();
2096
+ partialObserver = {
2097
+ next: observerOrNext.next && bind(observerOrNext.next, context),
2098
+ error: observerOrNext.error && bind(observerOrNext.error, context),
2099
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context),
2100
+ };
2101
+ }
2102
+ else {
2103
+ partialObserver = observerOrNext;
2104
+ }
2105
+ }
2106
+ this.destination = new ConsumerObserver(partialObserver);
2107
+ }
2108
+ }
2109
+ function handleUnhandledError(error) {
2110
+ {
2111
+ reportUnhandledError(error);
2112
+ }
2113
+ }
2114
+ function defaultErrorHandler(err) {
2115
+ throw err;
2116
+ }
2117
+ function handleStoppedNotification(notification, subscriber) {
2118
+ const { onStoppedNotification } = config;
2119
+ onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
2120
+ }
2121
+ const EMPTY_OBSERVER = {
2122
+ closed: true,
2123
+ next: noop,
2124
+ error: defaultErrorHandler,
2125
+ complete: noop,
2126
+ };
2127
+
2128
+ const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
2129
+
2130
+ function identity(x) {
2131
+ return x;
2132
+ }
2133
+
2134
+ function pipeFromArray(fns) {
2135
+ if (fns.length === 0) {
2136
+ return identity;
2137
+ }
2138
+ if (fns.length === 1) {
2139
+ return fns[0];
2140
+ }
2141
+ return function piped(input) {
2142
+ return fns.reduce((prev, fn) => fn(prev), input);
2143
+ };
2144
+ }
2145
+
2146
+ class Observable {
2147
+ constructor(subscribe) {
2148
+ if (subscribe) {
2149
+ this._subscribe = subscribe;
2150
+ }
2151
+ }
2152
+ lift(operator) {
2153
+ const observable = new Observable();
2154
+ observable.source = this;
2155
+ observable.operator = operator;
2156
+ return observable;
2157
+ }
2158
+ subscribe(observerOrNext, error, complete) {
2159
+ const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
2160
+ errorContext(() => {
2161
+ const { operator, source } = this;
2162
+ subscriber.add(operator
2163
+ ?
2164
+ operator.call(subscriber, source)
2165
+ : source
2166
+ ?
2167
+ this._subscribe(subscriber)
2168
+ :
2169
+ this._trySubscribe(subscriber));
2170
+ });
2171
+ return subscriber;
2172
+ }
2173
+ _trySubscribe(sink) {
2174
+ try {
2175
+ return this._subscribe(sink);
2176
+ }
2177
+ catch (err) {
2178
+ sink.error(err);
2179
+ }
2180
+ }
2181
+ forEach(next, promiseCtor) {
2182
+ promiseCtor = getPromiseCtor(promiseCtor);
2183
+ return new promiseCtor((resolve, reject) => {
2184
+ const subscriber = new SafeSubscriber({
2185
+ next: (value) => {
2186
+ try {
2187
+ next(value);
2188
+ }
2189
+ catch (err) {
2190
+ reject(err);
2191
+ subscriber.unsubscribe();
2192
+ }
2193
+ },
2194
+ error: reject,
2195
+ complete: resolve,
2196
+ });
2197
+ this.subscribe(subscriber);
2198
+ });
2199
+ }
2200
+ _subscribe(subscriber) {
2201
+ var _a;
2202
+ return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
2203
+ }
2204
+ [observable]() {
2205
+ return this;
2206
+ }
2207
+ pipe(...operations) {
2208
+ return pipeFromArray(operations)(this);
2209
+ }
2210
+ toPromise(promiseCtor) {
2211
+ promiseCtor = getPromiseCtor(promiseCtor);
2212
+ return new promiseCtor((resolve, reject) => {
2213
+ let value;
2214
+ this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
2215
+ });
2216
+ }
2217
+ }
2218
+ Observable.create = (subscribe) => {
2219
+ return new Observable(subscribe);
2220
+ };
2221
+ function getPromiseCtor(promiseCtor) {
2222
+ var _a;
2223
+ return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
2224
+ }
2225
+ function isObserver(value) {
2226
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
2227
+ }
2228
+ function isSubscriber(value) {
2229
+ return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
2230
+ }
2231
+
2232
+ function hasLift(source) {
2233
+ return isFunction(source === null || source === void 0 ? void 0 : source.lift);
2234
+ }
2235
+ function operate(init) {
2236
+ return (source) => {
2237
+ if (hasLift(source)) {
2238
+ return source.lift(function (liftedSource) {
2239
+ try {
2240
+ return init(liftedSource, this);
2241
+ }
2242
+ catch (err) {
2243
+ this.error(err);
2244
+ }
2245
+ });
2246
+ }
2247
+ throw new TypeError('Unable to lift unknown Observable type');
2248
+ };
2249
+ }
2250
+
2251
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
2252
+ return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
2253
+ }
2254
+ class OperatorSubscriber extends Subscriber {
2255
+ constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
2256
+ super(destination);
2257
+ this.onFinalize = onFinalize;
2258
+ this.shouldUnsubscribe = shouldUnsubscribe;
2259
+ this._next = onNext
2260
+ ? function (value) {
2261
+ try {
2262
+ onNext(value);
2263
+ }
2264
+ catch (err) {
2265
+ destination.error(err);
2266
+ }
2267
+ }
2268
+ : super._next;
2269
+ this._error = onError
2270
+ ? function (err) {
2271
+ try {
2272
+ onError(err);
2273
+ }
2274
+ catch (err) {
2275
+ destination.error(err);
2276
+ }
2277
+ finally {
2278
+ this.unsubscribe();
2279
+ }
2280
+ }
2281
+ : super._error;
2282
+ this._complete = onComplete
2283
+ ? function () {
2284
+ try {
2285
+ onComplete();
2286
+ }
2287
+ catch (err) {
2288
+ destination.error(err);
2289
+ }
2290
+ finally {
2291
+ this.unsubscribe();
2292
+ }
2293
+ }
2294
+ : super._complete;
2295
+ }
2296
+ unsubscribe() {
2297
+ var _a;
2298
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
2299
+ const { closed } = this;
2300
+ super.unsubscribe();
2301
+ !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
2302
+ }
2303
+ }
2304
+ }
2305
+
2306
+ const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
2307
+ _super(this);
2308
+ this.name = 'ObjectUnsubscribedError';
2309
+ this.message = 'object unsubscribed';
2310
+ });
2311
+
2312
+ class Subject extends Observable {
2313
+ constructor() {
2314
+ super();
2315
+ this.closed = false;
2316
+ this.currentObservers = null;
2317
+ this.observers = [];
2318
+ this.isStopped = false;
2319
+ this.hasError = false;
2320
+ this.thrownError = null;
2321
+ }
2322
+ lift(operator) {
2323
+ const subject = new AnonymousSubject(this, this);
2324
+ subject.operator = operator;
2325
+ return subject;
2326
+ }
2327
+ _throwIfClosed() {
2328
+ if (this.closed) {
2329
+ throw new ObjectUnsubscribedError();
2330
+ }
2331
+ }
2332
+ next(value) {
2333
+ errorContext(() => {
2334
+ this._throwIfClosed();
2335
+ if (!this.isStopped) {
2336
+ if (!this.currentObservers) {
2337
+ this.currentObservers = Array.from(this.observers);
2338
+ }
2339
+ for (const observer of this.currentObservers) {
2340
+ observer.next(value);
2341
+ }
2342
+ }
2343
+ });
2344
+ }
2345
+ error(err) {
2346
+ errorContext(() => {
2347
+ this._throwIfClosed();
2348
+ if (!this.isStopped) {
2349
+ this.hasError = this.isStopped = true;
2350
+ this.thrownError = err;
2351
+ const { observers } = this;
2352
+ while (observers.length) {
2353
+ observers.shift().error(err);
2354
+ }
2355
+ }
2356
+ });
2357
+ }
2358
+ complete() {
2359
+ errorContext(() => {
2360
+ this._throwIfClosed();
2361
+ if (!this.isStopped) {
2362
+ this.isStopped = true;
2363
+ const { observers } = this;
2364
+ while (observers.length) {
2365
+ observers.shift().complete();
2366
+ }
2367
+ }
2368
+ });
2369
+ }
2370
+ unsubscribe() {
2371
+ this.isStopped = this.closed = true;
2372
+ this.observers = this.currentObservers = null;
2373
+ }
2374
+ get observed() {
2375
+ var _a;
2376
+ return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
2377
+ }
2378
+ _trySubscribe(subscriber) {
2379
+ this._throwIfClosed();
2380
+ return super._trySubscribe(subscriber);
2381
+ }
2382
+ _subscribe(subscriber) {
2383
+ this._throwIfClosed();
2384
+ this._checkFinalizedStatuses(subscriber);
2385
+ return this._innerSubscribe(subscriber);
2386
+ }
2387
+ _innerSubscribe(subscriber) {
2388
+ const { hasError, isStopped, observers } = this;
2389
+ if (hasError || isStopped) {
2390
+ return EMPTY_SUBSCRIPTION;
2391
+ }
2392
+ this.currentObservers = null;
2393
+ observers.push(subscriber);
2394
+ return new Subscription(() => {
2395
+ this.currentObservers = null;
2396
+ arrRemove(observers, subscriber);
2397
+ });
2398
+ }
2399
+ _checkFinalizedStatuses(subscriber) {
2400
+ const { hasError, thrownError, isStopped } = this;
2401
+ if (hasError) {
2402
+ subscriber.error(thrownError);
2403
+ }
2404
+ else if (isStopped) {
2405
+ subscriber.complete();
2406
+ }
2407
+ }
2408
+ asObservable() {
2409
+ const observable = new Observable();
2410
+ observable.source = this;
2411
+ return observable;
2412
+ }
2413
+ }
2414
+ Subject.create = (destination, source) => {
2415
+ return new AnonymousSubject(destination, source);
2416
+ };
2417
+ class AnonymousSubject extends Subject {
2418
+ constructor(destination, source) {
2419
+ super();
2420
+ this.destination = destination;
2421
+ this.source = source;
2422
+ }
2423
+ next(value) {
2424
+ var _a, _b;
2425
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
2426
+ }
2427
+ error(err) {
2428
+ var _a, _b;
2429
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
2430
+ }
2431
+ complete() {
2432
+ var _a, _b;
2433
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
2434
+ }
2435
+ _subscribe(subscriber) {
2436
+ var _a, _b;
2437
+ return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
2438
+ }
2439
+ }
2440
+
2441
+ const dateTimestampProvider = {
2442
+ now() {
2443
+ return (dateTimestampProvider.delegate || Date).now();
2444
+ },
2445
+ delegate: undefined,
2446
+ };
2447
+
2448
+ class Action extends Subscription {
2449
+ constructor(scheduler, work) {
2450
+ super();
2451
+ }
2452
+ schedule(state, delay = 0) {
2453
+ return this;
2454
+ }
2455
+ }
2456
+
2457
+ const intervalProvider = {
2458
+ setInterval(handler, timeout, ...args) {
2459
+ const { delegate } = intervalProvider;
2460
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
2461
+ return delegate.setInterval(handler, timeout, ...args);
2462
+ }
2463
+ return setInterval(handler, timeout, ...args);
2464
+ },
2465
+ clearInterval(handle) {
2466
+ const { delegate } = intervalProvider;
2467
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
2468
+ },
2469
+ delegate: undefined,
2470
+ };
2471
+
2472
+ class AsyncAction extends Action {
2473
+ constructor(scheduler, work) {
2474
+ super(scheduler, work);
2475
+ this.scheduler = scheduler;
2476
+ this.work = work;
2477
+ this.pending = false;
2478
+ }
2479
+ schedule(state, delay = 0) {
2480
+ if (this.closed) {
2481
+ return this;
2482
+ }
2483
+ this.state = state;
2484
+ const id = this.id;
2485
+ const scheduler = this.scheduler;
2486
+ if (id != null) {
2487
+ this.id = this.recycleAsyncId(scheduler, id, delay);
2488
+ }
2489
+ this.pending = true;
2490
+ this.delay = delay;
2491
+ this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
2492
+ return this;
2493
+ }
2494
+ requestAsyncId(scheduler, _id, delay = 0) {
2495
+ return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
2496
+ }
2497
+ recycleAsyncId(_scheduler, id, delay = 0) {
2498
+ if (delay != null && this.delay === delay && this.pending === false) {
2499
+ return id;
2500
+ }
2501
+ intervalProvider.clearInterval(id);
2502
+ return undefined;
2503
+ }
2504
+ execute(state, delay) {
2505
+ if (this.closed) {
2506
+ return new Error('executing a cancelled action');
2507
+ }
2508
+ this.pending = false;
2509
+ const error = this._execute(state, delay);
2510
+ if (error) {
2511
+ return error;
2512
+ }
2513
+ else if (this.pending === false && this.id != null) {
2514
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
2515
+ }
2516
+ }
2517
+ _execute(state, _delay) {
2518
+ let errored = false;
2519
+ let errorValue;
2520
+ try {
2521
+ this.work(state);
2522
+ }
2523
+ catch (e) {
2524
+ errored = true;
2525
+ errorValue = e ? e : new Error('Scheduled action threw falsy error');
2526
+ }
2527
+ if (errored) {
2528
+ this.unsubscribe();
2529
+ return errorValue;
2530
+ }
2531
+ }
2532
+ unsubscribe() {
2533
+ if (!this.closed) {
2534
+ const { id, scheduler } = this;
2535
+ const { actions } = scheduler;
2536
+ this.work = this.state = this.scheduler = null;
2537
+ this.pending = false;
2538
+ arrRemove(actions, this);
2539
+ if (id != null) {
2540
+ this.id = this.recycleAsyncId(scheduler, id, null);
2541
+ }
2542
+ this.delay = null;
2543
+ super.unsubscribe();
2544
+ }
2545
+ }
2546
+ }
2547
+
2548
+ class Scheduler {
2549
+ constructor(schedulerActionCtor, now = Scheduler.now) {
2550
+ this.schedulerActionCtor = schedulerActionCtor;
2551
+ this.now = now;
2552
+ }
2553
+ schedule(work, delay = 0, state) {
2554
+ return new this.schedulerActionCtor(this, work).schedule(state, delay);
2555
+ }
2556
+ }
2557
+ Scheduler.now = dateTimestampProvider.now;
2558
+
2559
+ class AsyncScheduler extends Scheduler {
2560
+ constructor(SchedulerAction, now = Scheduler.now) {
2561
+ super(SchedulerAction, now);
2562
+ this.actions = [];
2563
+ this._active = false;
2564
+ this._scheduled = undefined;
2565
+ }
2566
+ flush(action) {
2567
+ const { actions } = this;
2568
+ if (this._active) {
2569
+ actions.push(action);
2570
+ return;
2571
+ }
2572
+ let error;
2573
+ this._active = true;
2574
+ do {
2575
+ if ((error = action.execute(action.state, action.delay))) {
2576
+ break;
2577
+ }
2578
+ } while ((action = actions.shift()));
2579
+ this._active = false;
2580
+ if (error) {
2581
+ while ((action = actions.shift())) {
2582
+ action.unsubscribe();
2583
+ }
2584
+ throw error;
2585
+ }
2586
+ }
2587
+ }
2588
+
2589
+ const asyncScheduler = new AsyncScheduler(AsyncAction);
2590
+
2591
+ function debounceTime(dueTime, scheduler = asyncScheduler) {
2592
+ return operate((source, subscriber) => {
2593
+ let activeTask = null;
2594
+ let lastValue = null;
2595
+ let lastTime = null;
2596
+ const emit = () => {
2597
+ if (activeTask) {
2598
+ activeTask.unsubscribe();
2599
+ activeTask = null;
2600
+ const value = lastValue;
2601
+ lastValue = null;
2602
+ subscriber.next(value);
2603
+ }
2604
+ };
2605
+ function emitWhenIdle() {
2606
+ const targetTime = lastTime + dueTime;
2607
+ const now = scheduler.now();
2608
+ if (now < targetTime) {
2609
+ activeTask = this.schedule(undefined, targetTime - now);
2610
+ subscriber.add(activeTask);
2611
+ return;
2612
+ }
2613
+ emit();
2614
+ }
2615
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
2616
+ lastValue = value;
2617
+ lastTime = scheduler.now();
2618
+ if (!activeTask) {
2619
+ activeTask = scheduler.schedule(emitWhenIdle, dueTime);
2620
+ subscriber.add(activeTask);
2621
+ }
2622
+ }, () => {
2623
+ emit();
2624
+ subscriber.complete();
2625
+ }, undefined, () => {
2626
+ lastValue = activeTask = null;
2627
+ }));
2628
+ });
2629
+ }
2630
+
2631
+ function distinctUntilChanged(comparator, keySelector = identity) {
2632
+ comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
2633
+ return operate((source, subscriber) => {
2634
+ let previousKey;
2635
+ let first = true;
2636
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
2637
+ const currentKey = keySelector(value);
2638
+ if (first || !comparator(previousKey, currentKey)) {
2639
+ first = false;
2640
+ previousKey = currentKey;
2641
+ subscriber.next(value);
2642
+ }
2643
+ }));
2644
+ });
2645
+ }
2646
+ function defaultCompare(a, b) {
2647
+ return a === b;
2648
+ }
2649
+
2650
+ const tableHeaderComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.grid{display:grid!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-start{justify-self:start!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-storm-dark,.text-storm-medium{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;gap:1rem;padding:1rem;width:100%}@media (min-width:64rem){:host{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:1.5rem}}:host p-segment-container{grid-column-start:1;justify-self:start}:host>div{grid-column-start:2}.max-w-\\[20rem\\]{max-width:20rem!important}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
2651
+
2652
+ const TableHeader = class {
2653
+ constructor(hostRef) {
2654
+ registerInstance(this, hostRef);
2655
+ this.quickFilter = createEvent(this, "quickFilter", 7);
2656
+ this.queryChange = createEvent(this, "queryChange", 7);
2657
+ this.filter = createEvent(this, "filter", 7);
2658
+ this.edit = createEvent(this, "edit", 7);
2659
+ /**
2660
+ * Quick filters to show
2661
+ */
2662
+ this.quickFilters = [];
2663
+ /**
2664
+ * Wether to show the search input
2665
+ */
2666
+ this.enableSearch = true;
2667
+ /**
2668
+ * The amount of items that are selected
2669
+ */
2670
+ this.itemsSelectedAmount = 0;
2671
+ /**
2672
+ * Wether to show the filter button
2673
+ */
2674
+ this.enableFilter = true;
2675
+ /**
2676
+ * The template for the filter button text
2677
+ */
2678
+ this.filterButtonTemplate = () => formatTranslation(this._locales.filter);
2679
+ /**
2680
+ * Wether to show the edit button
2681
+ */
2682
+ this.enableEdit = true;
2683
+ /**
2684
+ * Wether to enable the edit button
2685
+ */
2686
+ this.canEdit = false;
2687
+ /**
2688
+ * The template for the edit button text
2689
+ */
2690
+ this.editButtonTemplate = (amount) => formatTranslation(amount === 0
2691
+ ? this._locales.edit
2692
+ : amount === 1
2693
+ ? this._locales.edit_single
2694
+ : this._locales.edit_plural, { amount });
2695
+ /**
2696
+ * Locales used for this component
2697
+ */
2698
+ this._locales = {};
2699
+ this._queryObserver = new Subject();
2700
+ }
2701
+ componentWillLoad() {
2702
+ this._setLocales();
2703
+ }
2704
+ componentDidLoad() {
2705
+ this._queryObserver
2706
+ .pipe(debounceTime(300), distinctUntilChanged())
2707
+ .subscribe((value) => this.queryChange.emit(value));
2708
+ }
2709
+ render() {
2710
+ return (h(Host, { class: "p-table-header" }, this.quickFilters.length > 0 && (h("p-segment-container", { class: "hidden desktop-xs:flex" }, this.quickFilters.map((item) => (h("p-segment-item", { active: item.identifier ===
2711
+ this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
2712
+ ? item.text
2713
+ : item.text(), ' ', (item === null || item === void 0 ? void 0 : item.count) >= 0 ? `(${item.count})` : ''))))), h("div", { class: "flex flex-col desktop-xs:flex-row gap-4 justify-end justify-self-end" }, this.enableSearch && (h("p-input-group", { icon: "search", size: "small" }, h("input", { type: "text", slot: "input", placeholder: "Zoeken...", value: this.query, onInput: (ev) => this._queryObserver.next(ev.target.value) }))), this.enableFilter && (h("p-button", { icon: "filter", variant: "secondary", size: "small", class: "w-full desktop-xs:w-auto", onClick: () => this.filter.emit() }, this.filterButtonTemplate(), this.selectedFiltersAmount && (h("p-label", { size: "small", variant: "negative", "mobile-icon": false, circle: false, class: "ml-1" }, this.selectedFiltersAmount)))), this.enableEdit && this._buttonTemplate()), this.enableEdit && this.canEdit && (h("div", { class: "fixed bottom-0 left-0 w-full p-4 bg-white border border-solid border-transparent border-t-mystic-dark block desktop-xs:hidden" }, this._buttonTemplate(true)))));
2714
+ }
2715
+ async _setLocales() {
2716
+ this._locales = await getLocaleComponentStrings(this._el);
2717
+ }
2718
+ _buttonTemplate(mobile = false) {
2719
+ return (h("p-button", { class: !mobile && 'hidden desktop-xs:flex', icon: "pencil", size: "small", width: mobile ? 'full' : 'auto', disabled: !this.canEdit, onClick: () => this.edit.emit() }, this.editButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
2720
+ }
2721
+ get _el() { return getElement(this); }
2722
+ };
2723
+ TableHeader.style = tableHeaderComponentCss;
2724
+
2725
+ const tableRowComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-full{width:100%!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-y{border-bottom-width:1px!important;border-top-width:1px!important}.border-x-0{border-left-width:0!important;border-right-width:0!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-y-mystic-dark{border-bottom-color:rgb(218 230 240/var(--tw-border-opacity))!important}.border-t-mystic-dark,.border-y-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-indigo-light{background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.bg-indigo-light,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-storm-dark,.text-storm-medium{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-direction:column;font-size:.875rem;line-height:1.25rem;padding-left:1.5rem;padding-right:1.5rem;width:100%}:host .content{align-items:center;display:flex;flex-wrap:nowrap;gap:1rem;justify-content:space-between;padding-bottom:1.5rem;padding-top:1.5rem;width:100%}:host(.variant-header){--tw-bg-opacity:1;--tw-text-opacity:1;--tw-border-opacity:1!important;background-color:rgb(252 253 254/var(--tw-bg-opacity));border-bottom:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;border-left-style:solid!important;border-left-width:0!important;border-right-style:solid!important;border-right-width:0!important;border-top:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.75rem;font-weight:600;line-height:1rem;text-transform:uppercase}:host(.variant-header) .content{padding-bottom:.5rem;padding-top:.5rem}:host(.enable-hover:hover){--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));cursor:pointer}.max-w-\\[20rem\\]{max-width:20rem!important}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}";
2726
+
2727
+ const TableRow = class {
2728
+ constructor(hostRef) {
2729
+ registerInstance(this, hostRef);
2730
+ /**
2731
+ * Variant of the header
2732
+ */
2733
+ this.variant = 'default';
2734
+ /**
2735
+ * Enable hover
2736
+ */
2737
+ this.enableHover = true;
2738
+ }
2739
+ render() {
2740
+ return (h(Host, { class: `p-table-row variant-${this.variant} ${this.enableHover &&
2741
+ this.variant === 'default' &&
2742
+ 'enable-hover'}` }, h("div", { class: "content" }, h("slot", null)), this.variant === 'default' && h("p-divider", { class: "m-0" })));
2743
+ }
2744
+ };
2745
+ TableRow.style = tableRowComponentCss;
2746
+
2747
+ export { Illustration as p_illustration, TableCell as p_table_cell, TableContainer as p_table_container, TableFooter as p_table_footer, TableHeader as p_table_header, TableRow as p_table_row };