@paperless/core 3.2.2 → 3.2.4

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 (162) hide show
  1. package/dist/build/{p-1ac00601.entry.js → p-102da1de.entry.js} +1 -1
  2. package/dist/{paperless/p-6ac04b16.entry.js → build/p-187a4dda.entry.js} +1 -1
  3. package/dist/build/{p-b70ee063.entry.js → p-1b85b4f5.entry.js} +1 -1
  4. package/dist/{paperless/p-8a8adc4d.entry.js → build/p-2f9a3144.entry.js} +2 -2
  5. package/dist/{paperless/p-9e1977a6.entry.js → build/p-2ff08beb.entry.js} +1 -1
  6. package/dist/{paperless/p-9889be94.entry.js → build/p-31869c91.entry.js} +1 -1
  7. package/dist/build/{p-047da5c9.entry.js → p-4cd9344a.entry.js} +1 -1
  8. package/dist/{paperless/p-1fa99d63.entry.js → build/p-62f87c18.entry.js} +1 -1
  9. package/dist/build/p-63ef1d8d.entry.js +1 -0
  10. package/dist/{paperless/p-18245eb9.entry.js → build/p-6b1c18a6.entry.js} +1 -1
  11. package/dist/build/{p-7158dacd.entry.js → p-748c6ed3.entry.js} +1 -1
  12. package/dist/build/{p-6a7ce335.entry.js → p-7868dc58.entry.js} +1 -1
  13. package/dist/build/{p-fbd4c0ed.entry.js → p-8c1a3795.entry.js} +1 -1
  14. package/dist/build/p-8d67b17e.entry.js +1 -0
  15. package/dist/build/p-980f3529.entry.js +1 -0
  16. package/dist/build/{p-fa2e80c6.js → p-b4fcc93e.js} +1 -1
  17. package/dist/build/p-c4af6a8c.entry.js +1 -0
  18. package/dist/build/{p-cdcc28c2.entry.js → p-d6958e7a.entry.js} +1 -1
  19. package/dist/{paperless/p-eaa0079d.entry.js → build/p-df709c40.entry.js} +1 -1
  20. package/dist/build/{p-34448061.entry.js → p-e021a548.entry.js} +1 -1
  21. package/dist/build/{p-459f7a0b.entry.js → p-f13f7779.entry.js} +1 -1
  22. package/dist/build/paperless.esm.js +1 -1
  23. package/dist/cjs/p-accordion.cjs.entry.js +3 -3
  24. package/dist/cjs/p-attachment.cjs.entry.js +8 -8
  25. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  26. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  27. package/dist/cjs/p-checkbox_3.cjs.entry.js +2 -2
  28. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  29. package/dist/cjs/p-cropper.cjs.entry.js +1 -1
  30. package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
  31. package/dist/cjs/p-empty-state_8.cjs.entry.js +10 -10
  32. package/dist/cjs/p-field_3.cjs.entry.js +4 -4
  33. package/dist/cjs/p-label.cjs.entry.js +3 -3
  34. package/dist/cjs/p-listing.cjs.entry.js +2 -2
  35. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  36. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  37. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  38. package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
  39. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  40. package/dist/cjs/p-range.cjs.entry.js +3 -3
  41. package/dist/cjs/p-select.cjs.entry.js +2 -2
  42. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  43. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -1
  44. package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
  45. package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
  46. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  47. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  48. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  49. package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
  50. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  51. package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
  52. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  53. package/dist/collection/components/molecules/field/field/field.component.js +4 -4
  54. package/dist/collection/components/molecules/label/label.component.js +3 -3
  55. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
  56. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  57. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  58. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  59. package/dist/collection/components/molecules/range/range.component.js +3 -3
  60. package/dist/collection/components/molecules/select/select.component.js +2 -2
  61. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  62. package/dist/collection/components/molecules/table/footer/table-footer.component.js +4 -4
  63. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  64. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  65. package/dist/collection/components/organisms/listing/listing.component.js +2 -2
  66. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  67. package/dist/components/{p-Dy1wXwZf.js → p-06SzeIsG.js} +1 -1
  68. package/dist/components/{p-NEqovphH.js → p-B-BsxOeK.js} +1 -1
  69. package/dist/components/{p-CTQuFuDk.js → p-B9s4_6Vm.js} +1 -1
  70. package/dist/components/{p-Cat2_HoM.js → p-BEhC6raw.js} +1 -1
  71. package/dist/components/p-C16aqi4P.js +1 -0
  72. package/dist/components/{p-CtxKjhiD.js → p-CcNA1hkp.js} +1 -1
  73. package/dist/components/{p-0Uawv030.js → p-CpYDgn2m.js} +1 -1
  74. package/dist/components/p-CrAZWi4n.js +1 -0
  75. package/dist/components/{p-D8FhwO0Q.js → p-DWHcD5b-.js} +1 -1
  76. package/dist/components/{p-BtliZ0U_.js → p-N5WuUoFr.js} +1 -1
  77. package/dist/components/{p-DKnCWy7F.js → p-TfYQFmRD.js} +1 -1
  78. package/dist/components/p-accordion.js +1 -1
  79. package/dist/components/p-attachment.js +1 -1
  80. package/dist/components/p-button-group.js +1 -1
  81. package/dist/components/p-calendar.js +1 -1
  82. package/dist/components/p-content-slider.js +1 -1
  83. package/dist/components/p-cropper.js +2 -2
  84. package/dist/components/p-datepicker.js +1 -1
  85. package/dist/components/p-dropdown.js +1 -1
  86. package/dist/components/p-empty-state.js +1 -1
  87. package/dist/components/p-field.js +1 -1
  88. package/dist/components/p-label.js +1 -1
  89. package/dist/components/p-listing.js +1 -1
  90. package/dist/components/{p-BAvGAs2F.js → p-nGuULFe2.js} +1 -1
  91. package/dist/components/p-navbar.js +1 -1
  92. package/dist/components/p-navigation-item.js +1 -1
  93. package/dist/components/p-navigation-section.js +1 -1
  94. package/dist/components/p-pagination-pages.js +1 -1
  95. package/dist/components/p-pagination-size.js +1 -1
  96. package/dist/components/p-pagination.js +1 -1
  97. package/dist/components/p-profile.js +1 -1
  98. package/dist/components/p-range.js +1 -1
  99. package/dist/components/p-select.js +1 -1
  100. package/dist/components/p-table-cell.js +1 -1
  101. package/dist/components/p-table-footer.js +1 -1
  102. package/dist/components/p-table-header.js +1 -1
  103. package/dist/components/p-table-row.js +1 -1
  104. package/dist/components/p-table.js +1 -1
  105. package/dist/components/p-toast.js +1 -1
  106. package/dist/esm/p-accordion.entry.js +3 -3
  107. package/dist/esm/p-attachment.entry.js +8 -8
  108. package/dist/esm/p-button-group.entry.js +1 -1
  109. package/dist/esm/p-calendar.entry.js +1 -1
  110. package/dist/esm/p-checkbox_3.entry.js +2 -2
  111. package/dist/esm/p-content-slider.entry.js +2 -2
  112. package/dist/esm/p-cropper.entry.js +1 -1
  113. package/dist/esm/p-datepicker.entry.js +2 -2
  114. package/dist/esm/p-empty-state_8.entry.js +10 -10
  115. package/dist/esm/p-field_3.entry.js +4 -4
  116. package/dist/esm/p-label.entry.js +3 -3
  117. package/dist/esm/p-listing.entry.js +2 -2
  118. package/dist/esm/p-navbar.entry.js +1 -1
  119. package/dist/esm/p-navigation-item.entry.js +3 -3
  120. package/dist/esm/p-navigation-section.entry.js +1 -1
  121. package/dist/esm/p-pagination_3.entry.js +3 -3
  122. package/dist/esm/p-profile.entry.js +1 -1
  123. package/dist/esm/p-range.entry.js +3 -3
  124. package/dist/esm/p-select.entry.js +2 -2
  125. package/dist/esm/p-toast.entry.js +1 -1
  126. package/dist/index.html +1 -1
  127. package/dist/paperless/{p-1ac00601.entry.js → p-102da1de.entry.js} +1 -1
  128. package/dist/{build/p-6ac04b16.entry.js → paperless/p-187a4dda.entry.js} +1 -1
  129. package/dist/paperless/{p-b70ee063.entry.js → p-1b85b4f5.entry.js} +1 -1
  130. package/dist/{build/p-8a8adc4d.entry.js → paperless/p-2f9a3144.entry.js} +2 -2
  131. package/dist/{build/p-9e1977a6.entry.js → paperless/p-2ff08beb.entry.js} +1 -1
  132. package/dist/{build/p-9889be94.entry.js → paperless/p-31869c91.entry.js} +1 -1
  133. package/dist/paperless/{p-047da5c9.entry.js → p-4cd9344a.entry.js} +1 -1
  134. package/dist/{build/p-1fa99d63.entry.js → paperless/p-62f87c18.entry.js} +1 -1
  135. package/dist/paperless/p-63ef1d8d.entry.js +1 -0
  136. package/dist/{build/p-18245eb9.entry.js → paperless/p-6b1c18a6.entry.js} +1 -1
  137. package/dist/paperless/{p-7158dacd.entry.js → p-748c6ed3.entry.js} +1 -1
  138. package/dist/paperless/{p-6a7ce335.entry.js → p-7868dc58.entry.js} +1 -1
  139. package/dist/paperless/{p-fbd4c0ed.entry.js → p-8c1a3795.entry.js} +1 -1
  140. package/dist/paperless/p-8d67b17e.entry.js +1 -0
  141. package/dist/paperless/p-980f3529.entry.js +1 -0
  142. package/dist/paperless/p-c4af6a8c.entry.js +1 -0
  143. package/dist/paperless/{p-cdcc28c2.entry.js → p-d6958e7a.entry.js} +1 -1
  144. package/dist/{build/p-eaa0079d.entry.js → paperless/p-df709c40.entry.js} +1 -1
  145. package/dist/paperless/{p-34448061.entry.js → p-e021a548.entry.js} +1 -1
  146. package/dist/paperless/{p-459f7a0b.entry.js → p-f13f7779.entry.js} +1 -1
  147. package/dist/paperless/paperless.esm.js +1 -1
  148. package/dist/sw.js +1 -1
  149. package/dist/sw.js.map +1 -1
  150. package/hydrate/index.js +54 -54
  151. package/hydrate/index.mjs +54 -54
  152. package/package.json +1 -1
  153. package/dist/build/p-381c13a8.entry.js +0 -1
  154. package/dist/build/p-a4ec1798.entry.js +0 -1
  155. package/dist/build/p-d93446ad.entry.js +0 -1
  156. package/dist/build/p-fd032172.entry.js +0 -1
  157. package/dist/components/p-COFt46UN.js +0 -1
  158. package/dist/components/p-MeQ48Q-1.js +0 -1
  159. package/dist/paperless/p-381c13a8.entry.js +0 -1
  160. package/dist/paperless/p-a4ec1798.entry.js +0 -1
  161. package/dist/paperless/p-d93446ad.entry.js +0 -1
  162. package/dist/paperless/p-fd032172.entry.js +0 -1
@@ -70,11 +70,11 @@ const EmptyState = class {
70
70
  const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
71
71
  const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
72
72
  const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
73
- return (h(ThemedHost, { key: '580edaeaa7a1429f07840b25d2062f9e6ae9763d' }, h("div", { key: 'c08807d745ee8f4bebae2d7aec92bf110824269e', class: emptyState({
73
+ return (h(ThemedHost, { key: 'e156e226af805d55fb5d1ea617d5e219d8d265b7' }, h("div", { key: '417385b03f1494ba500540abf53b202a00140eb2', class: emptyState({
74
74
  enableAction: asBoolean(this.enableAction, true),
75
75
  }), onClick: ev => this.enableAction && !this.actionLoading
76
76
  ? this.action.emit(ev)
77
- : undefined }, this.illustration && (h("p-illustration", { key: '3434e243bb9a41e7f56982fff2450cc92013b25f', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: '\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n ' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: '\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n ' }, this.content))), this.enableAction &&
77
+ : undefined }, this.illustration && (h("p-illustration", { key: '2d95c6f7761f817b2bf4968118e7ac5dc6d62abe', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: '\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n ' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: '\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n ' }, this.content))), this.enableAction &&
78
78
  (hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
79
79
  }
80
80
  };
@@ -212,7 +212,7 @@ const TableCell = class {
212
212
  };
213
213
  }
214
214
  render() {
215
- return (h(ThemedHost, { key: 'f3fb25607a21580f978f979b6ed0c64c908c597e', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false));
215
+ return (h(ThemedHost, { key: 'f6abd4c007ae672b8d3bba899ee69ceaf5c258a3', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false));
216
216
  }
217
217
  _getContent() {
218
218
  if (this.variant === 'loading') {
@@ -360,12 +360,12 @@ const TableFooter = class {
360
360
  this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 200);
361
361
  }
362
362
  render() {
363
- return (h(ThemedHost, { key: 'b0ae6e77e5b14d5ac5a736790004b3b15c3dbe2e' }, h("div", { key: '7115b353fb53075cef7330b0fdcb7cce1e3fc3f6', class: footer({
363
+ return (h(ThemedHost, { key: '2a9d106d8fcda59dbe0615b936dec5c5a6c06ac3' }, h("div", { key: '92904418a7130a5b5b03c60c4ef9a5297fa67900', class: footer({
364
364
  pinned: this._isPinned,
365
365
  hidden: this._hidden,
366
366
  tableHeaderHasAction: this.tableHeaderHasAction,
367
367
  }) }, (this.enablePaginationPages || this.enablePaginationSize) &&
368
- this.total > 0 && (h("p-pagination", { key: 'cce7d85d9465d6e65d92e5e4b687a80f4f715173', class: 'pointer-events-auto z-[2]', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this._changePageSize(detail), onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) })))));
368
+ this.total > 0 && (h("p-pagination", { key: 'b085a53358757b965720f35ad4deb70a705b4cfd', class: 'pointer-events-auto z-[2]', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this._changePageSize(detail), onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) })))));
369
369
  }
370
370
  _changePageSize(s) {
371
371
  if (!s) {
@@ -378,7 +378,7 @@ const TableFooter = class {
378
378
  const rect = this._el.getBoundingClientRect();
379
379
  const modal = this._el.closest('p-modal');
380
380
  const layout = document.querySelector('p-layout');
381
- if (modal) {
381
+ if (modal && !this._hidden) {
382
382
  const modalBody = modal.shadowRoot.querySelector('p-modal-body');
383
383
  const innerContent = modalBody.shadowRoot.querySelector('div');
384
384
  const innerContentComputed = getComputedStyle(innerContent);
@@ -386,7 +386,7 @@ const TableFooter = class {
386
386
  this._el.style.bottom = `-${modalPaddingBottom}px`;
387
387
  this._el.style.marginBottom = `-${modalPaddingBottom - 1}px`;
388
388
  }
389
- if (layout && !modal) {
389
+ if (layout && !modal && !this._hidden) {
390
390
  const innerContent = layout.shadowRoot.querySelector('.content');
391
391
  const innerContentComputed = getComputedStyle(innerContent);
392
392
  const layoutPaddingBottom = Number.parseInt(innerContentComputed.paddingBottom, 10);
@@ -10149,13 +10149,13 @@ const TableRow = class {
10149
10149
  */
10150
10150
  isLast = false;
10151
10151
  render() {
10152
- return (h(ThemedHost, { key: '2a879fbd1ebc7e0ba74ccee2af2cd6c1a50ca1e9' }, h("div", { key: 'c8669184f758a8a2d43e64106e61528685868aba', class: 'flex flex-col' }, h("div", { key: '7ac443b2dc90f0933685cc3f2acc3d4a35294913', class: row({
10152
+ return (h(ThemedHost, { key: '0d120affd1a9979fee9871f4185e5be8128235e8' }, h("div", { key: '5686db4396a01a88c3962bc6a821c0e1552c13f1', class: 'flex flex-col' }, h("div", { key: '71e6470049acc4b3acebbb478ebd8fba5f36d688', class: row({
10153
10153
  variant: this.variant,
10154
10154
  enableHover: this.enableHover,
10155
10155
  checked: this.checked,
10156
- }) }, h("div", { key: 'f7e60bd5f786101d8a6e621c3c267d1b0d8be51f', class: content({
10156
+ }) }, h("div", { key: 'e2d1a4259be84eca424d30d53a88a7a8cdb2336c', class: content({
10157
10157
  variant: this.variant,
10158
- }) }, h("slot", { key: '8c2c29d4fc47bf0bac08e13974cf75cca9a547d2' }), h("div", { key: '86aae5f9bfaefadb6230bd56fe8a98a0e43bca9b', class: actions() }, h("slot", { key: '18ac2963f072a01ab5489feb1f8cc29a0e070c82', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: 'a997fce0cef95cedd38154a512aff948d46cb465' })))));
10158
+ }) }, h("slot", { key: '7457daaf7e4fd01b21c68d048ff9dfed9387b507' }), h("div", { key: '780993e2462abeb10d1c56a15bd29bc77348bcdd', class: actions() }, h("slot", { key: 'e2ff2aa57ae3754fe904cde800a0dc6d9da192ed', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: '5a76c8dca2fa8bdfd6476362d83f30b0832d1762' })))));
10159
10159
  }
10160
10160
  };
10161
10161
  TableRow.style = tableRowComponentCss();
@@ -382,8 +382,8 @@ const Field = class {
382
382
  }
383
383
  render() {
384
384
  const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
385
- return (h(ThemedHost, { key: 'd309322e4a2a9e73d7e20cb5e585eba64d3af95f' }, h("p-field-container", { key: '85327bdb7a5aa7e071c4024e3d490a6b9759b184', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
386
- (!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '4cbdc7b148e94564fc0b986a7780180bd8813d58', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '61a1b3cb45df2792fbf51aa6e91d11b10e1b72e6', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'd208829c7f4629f7390236d3a8c990d47d91f66b', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'e4bd3ef86143630c0ebe9fe006aea4b7be2ca10f', name: 'error', slot: 'error' })), h("div", { key: 'ea260caef724543db24f04bb5861ea2a138c1574', class: field({
385
+ return (h(ThemedHost, { key: 'd957c15ac5c4fd277a79716e8f7644be5b7e413e' }, h("p-field-container", { key: '4ec3f19bf0e3336b652add8730974d890deaf1bc', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
386
+ (!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '74c5bf652fa519804b802cb930b764a62a7991aa', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'f63069722b80fab8c262646787de0cfda2479def', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '3045c36ea36e2d9b81b1fe31955237162ba50c62', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'a9fe88d52f8f71ad09d1e2dbd3d0d42818ae64e9', name: 'error', slot: 'error' })), h("div", { key: '805fc95477292dcf8404eb5f206bbfd576431dd2', class: field({
387
387
  error: !!this.error?.length,
388
388
  disabled: asBoolean(this.disabled),
389
389
  focused: asBoolean(this.focused) || this._focused,
@@ -394,7 +394,7 @@ const Field = class {
394
394
  ? `${this.value}`
395
395
  : undefined }, (this.error?.length ||
396
396
  prefix ||
397
- (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'd0e3d37f5fc3e7676cc3bc7f622733504169ddcf', class: prefixAndSuffix({
397
+ (this.icon && this.iconPosition === 'start')) && (h("div", { key: '41d8592d1683e02c23742e3fcae5f198e5dac18e', class: prefixAndSuffix({
398
398
  variant: this.variant,
399
399
  error: !!this.error?.length,
400
400
  disabled: asBoolean(this.disabled),
@@ -404,7 +404,7 @@ const Field = class {
404
404
  }), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
405
405
  this.error?.length ? (h("p-icon", { class: cn('flex', {
406
406
  'mt-1': this.variant === 'read' && this.size === 'base',
407
- }), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: 'f479afb28bbd5ba74b78deaa7b9daf1ef543fa27', class: prefixAndSuffix({
407
+ }), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '696e95bfe4ee145a02e4de13f697a01b62bb2678', class: prefixAndSuffix({
408
408
  variant: this.variant,
409
409
  error: !!this.error?.length,
410
410
  disabled: asBoolean(this.disabled),
@@ -83,17 +83,17 @@ const Label = class {
83
83
  */
84
84
  keepMobileContent = false;
85
85
  render() {
86
- return (h(ThemedHost, { key: '50279029679d4106c05894266a5d5289cb32ebfa' }, h("div", { key: '4fbae53bce0120c530b26b6b962b219262a93356', class: label({
86
+ return (h(ThemedHost, { key: '11f93a805b545dbdf3d8f7f07d2ba9d9b72f9465' }, h("div", { key: '1947c9e35ae05a8ffda7d35c4f72edf8edd6eb78', class: label({
87
87
  variant: this.variant,
88
88
  iconOnly: this.iconOnly,
89
89
  keepMobileContent: this.keepMobileContent,
90
- }) }, this.icon && (h("p-icon", { key: '20f67e7082c6cffa555b7411a2b81ced7263c9f2', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (h("div", { key: 'ff2f20fc5eaeb3bb8eb5aa3956819c52aeaf03df', class: cn(`
90
+ }) }, this.icon && (h("p-icon", { key: '5531821ffd0f42ab9ed8c6eca76e8f1537bcb976', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (h("div", { key: 'acefad061d0e66e1404fb3847b0853069179b306', class: cn(`
91
91
  flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm
92
92
  font-medium
93
93
  `, {
94
94
  hidden: !this.keepMobileContent,
95
95
  'desktop-xs:block': !this.keepMobileContent,
96
- }) }, h("slot", { key: '3e11788ad3fb910d573d6f63ac7d57a7671687b2' }))))));
96
+ }) }, h("slot", { key: 'b96c6e958fb8786e078fa9cbdeb1daac494ef9f3' }))))));
97
97
  }
98
98
  };
99
99
  Label.style = labelComponentCss();
@@ -22,10 +22,10 @@ const Listing = class {
22
22
  }
23
23
  }
24
24
  render() {
25
- return (h("div", { key: '527b21db5684bcc5d89084b59d070982062305fa', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
25
+ return (h("div", { key: 'bd62a9cb5f45d0be1bf09636a4d576a70a4350fb', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
26
26
  'opacity-100': this._generatedOnce,
27
27
  'opacity-0': !this._generatedOnce,
28
- }) }, h("slot", { key: '7cd97da5249253981f536cbf4e0515f08adcfd2a', onSlotchange: () => this._generateLinesOnce() })));
28
+ }) }, h("slot", { key: 'c762354f8f1f0023a6a73bff00fc5333431c8226', onSlotchange: () => this._generateLinesOnce() })));
29
29
  }
30
30
  _generateLinesOnce() {
31
31
  if (this._generateTimeout) {
@@ -69,7 +69,7 @@ const Navbar = class {
69
69
  }
70
70
  _show = false;
71
71
  render() {
72
- return (h(ThemedHost, { key: 'e6140399cd45343a3e16a6418539f30a7bc06405' }, h("p-backdrop", { key: '24fc4cdca947a947105591e25fbc6f7682f64ed4', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '0b9691b00c84c4639860f40343316b1d42b53b26', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'b9fff9390b8d735b0ea792cdc289c103aa3aa350', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, h("p-button", { key: 'a13c500530dc614c56f84afa0a761d1d99abacfa', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: 'c8ee2b2c29bd01d741549a3afca9e06636c0cd3b', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: '0824da3fcf5e35ff166e54ce95c917142a4bde94', name: 'company' })), h("div", { key: '0ba905bfbf5f3a23a0f79d560790d91f34040ef7', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '27be57ecd655d89fa8c2576321fc4d10f2008717', name: 'content' })), h("div", { key: '5ed6652b93d0ca2e567a2f611a667b20c15faab6', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, h("slot", { key: 'b8152c3081703b2e88ac25b45e40c767407fd947', name: 'user' }))), h("div", { key: '51bc9f577cc3edb1d676a4740476359625efd6d3', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '22dbff73b42867f98d11a7e4f4319f98f62d37ac', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: '717fb0a04a59f535d0b53dc91457393cadf014dc', name: 'topbar' }))));
72
+ return (h(ThemedHost, { key: '814b399715eba8a9f4c81ed550431b8b3cc29d39' }, h("p-backdrop", { key: '59c99e5c8ce0dbacae386da8ceb4a7a23b4778bd', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '815fcb1b40cfdbe3a4bd47676b374254073254df', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'a078f18dcc8885db9bd3661cc227adccaf30b8c1', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, h("p-button", { key: 'be1fbb0ee3d1455f4af3b5399a52c38a760ddb1f', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: 'c4b1d03bb1c5fd109b99e3d587873b3f47ab1350', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: 'a981dbc4d887d420cb8b5c7c69fee4795cb07272', name: 'company' })), h("div", { key: '035880f4bb9d321c3d4f9d5fb6df34191ba1be13', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '0d75492d278db82db0a62a4717c94df59a02349c', name: 'content' })), h("div", { key: '66e0a56030477a2e3c8b1706f698114e85b88fe6', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, h("slot", { key: '7ad2e2db299e914b8977f8c300d636d317c06741', name: 'user' }))), h("div", { key: '70be960e812e2b4904a3045193ca16fc2391e4a6', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '19b70f87d40558f633d5d9d8b42b60ba4c999826', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: 'c980989054dc51e2e54bf5d032895e297742fe61', name: 'topbar' }))));
73
73
  }
74
74
  handleCloseNavbar() {
75
75
  this._show = false;
@@ -96,13 +96,13 @@ const NavigationItem = class {
96
96
  render() {
97
97
  const TagType = this.as;
98
98
  const active = asBoolean(this.active) || this.class?.includes('active');
99
- return (h(ThemedHost, { key: '9618d8427117bdcc2809e8f1a81174d0d99366c9', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '3db385fe49b1eba6b032494d8f303aa5e1e60c01', class: navigationItem({
99
+ return (h(ThemedHost, { key: 'f683b2979f9fde20b6e37ba7f3460fd052cce426', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '8f9b4557b535d893375bcbe9108a618aff26974e', class: navigationItem({
100
100
  icon: !!this.icon,
101
101
  active,
102
- }), href: this.href, target: this.target }, h("div", { key: '7c97ebc4d504b06bb795b4885be0250f0c839882', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '881b8afabc70357e31783903c5c8956cae6b34a6', variant: this.icon })), h("span", { key: '509205092f325b8037a8abaf51ce314136c15621', class: cn({
102
+ }), href: this.href, target: this.target }, h("div", { key: '6a32cd63b465492becb679ba08175e79a9c053c8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '5fd49857c3f424479731379311ee426d2bf9b79e', variant: this.icon })), h("span", { key: '8d1527282d584b49e7990455e6bba80debd48cd5', class: cn({
103
103
  'has-counter': !!this.counter,
104
104
  'w-full': this.applyFullWidth,
105
- }) }, h("slot", { key: '0573c0d5ea35d1b72de532cd46c4b53bf97d956e' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'cac8304e8a0f23e3fe1f81279f916d6e83a3a652' }, this.counter)), !!this.loading && h("p-loader", { key: '949b2eed1d715a0a98a831ad649ffbeba5787577', class: 'ml-auto' }))));
105
+ }) }, h("slot", { key: '6b9480c94455eeb524a029f21794fc89cb31c857' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '7677e25cb31c5f98bbe70b05e4ca95c518ab696c' }, this.counter)), !!this.loading && h("p-loader", { key: 'c006a2604a54309028adda2d3aaff26e1d0acd3c', class: 'ml-auto' }))));
106
106
  }
107
107
  };
108
108
  NavigationItem.style = navigationItemComponentCss();
@@ -13,7 +13,7 @@ const NavigationSection = class {
13
13
  */
14
14
  header;
15
15
  render() {
16
- return (h(ThemedHost, { key: '48a3739b23a5667754b5ce508a4ec8d51aa279ad', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '90d471c5dc92baf8a061e4b97704420eb7a38220' }, this.header)), h("div", { key: '2f69adac8e2c4ae37d1c5199445d577d5fcfa0e9', class: 'flex flex-col' }, h("slot", { key: '427d96574e5bdbfc4db3a0c2ff86470a6672868a' }))));
16
+ return (h(ThemedHost, { key: '8fb1c4a553d9c4a5326c1692f50913be4d9865dc', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: 'e5d53c6cc8c05cfb0a0566b94ceebe1a894f77b3' }, this.header)), h("div", { key: 'a29814e605c46668e89773b1e7d3540aabd8c3ae', class: 'flex flex-col' }, h("slot", { key: '683d1571c171719465093efc4d6c9d7dcb3ddeb5' }))));
17
17
  }
18
18
  };
19
19
  NavigationSection.style = navigationSectionComponentCss();
@@ -76,12 +76,12 @@ const Pagination = class {
76
76
  _hasPaginationPages = true;
77
77
  render() {
78
78
  const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
79
- return (h(ThemedHost, { key: 'bb991c6f71f5824182288a5976a1ed5d7a5d6ae1' }, h("div", { key: '80bc0a9d7440759d64b46d5545fe1e3ab2d5b339', class: pagination$1({
79
+ return (h(ThemedHost, { key: '29ed189925a9e93e1939cfd66cf91915a5b8474d' }, h("div", { key: '2705a46004eb47c6cbbf6dfa448ae69a6dfc96dc', class: pagination$1({
80
80
  hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
81
81
  (!this.enablePaginationSize && !this.enablePaginationPages),
82
- }) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '5812bfaaee47936e0f1d910c4da0421589e5cf9b' }, h("p-pagination-size", { key: '2fe1f8e733d96ef2843d184f17c02b2db44b3fb5', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
82
+ }) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: 'bb6985dd638fea4e904aae04ba70edc7d94b3c52' }, h("p-pagination-size", { key: '730a4c91d7b3d8d0e2c57dc5e120222daef8b3c4', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
83
83
  this.hideOnSinglePage &&
84
- this._hasPaginationPages && (h("p-divider", { key: 'c8062527297b143b8aaf4c11cf7038a8a99c7df5', class: '\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ', variant: 'vertical' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: 'd52f747c7a82ff3d7ef285a2430fad635f34475c', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
84
+ this._hasPaginationPages && (h("p-divider", { key: '1496283b26ea9d0801e94bd8dc3987a6dc14480f', class: '\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ', variant: 'vertical' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '5aaf4021a8b4166bbb8a50b0e6127af1fc0995f7', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
85
85
  this._hasPaginationPages = detail > 1;
86
86
  this.pagesChange.emit(detail);
87
87
  } })))));
@@ -33,7 +33,7 @@ const Profile = class {
33
33
  }
34
34
  render() {
35
35
  const content = this._getContent();
36
- return (h(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
36
+ return (h(ThemedHost, { key: 'ca4c5879a59946cdbbab9a802fbf62547194aaa9' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
37
37
  }
38
38
  slotchange() {
39
39
  this._checkDropdownSlot();
@@ -31,13 +31,13 @@ const Range = class {
31
31
  valueChange;
32
32
  render() {
33
33
  const percentage = Math.round((this.value / (this.max - this.min)) * 100);
34
- return (h(ThemedHost, { key: 'cb6a6b717940ba17aa7a6df5cc36577a991d3831' }, h("div", { key: '82e000061159418bb6dc5ba3c72dc9c36315777f', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: 'f3825df8da36fd3e28988753db4216e613336749', variant: 'minus' }), h("div", { key: '1020caacf9987bfa348181c6a90b430805f1888f', class: 'relative h-6 flex-1' }, h("input", { key: '05fb1b7ed4af1392f107bf27977aab3a80f45c98', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
34
+ return (h(ThemedHost, { key: 'ae78cbe140c926f4c15da133c99dd2b84ff1060f' }, h("div", { key: '27a1f144fa8c1fa7c62ffb9b6300ce4f7b5d032c', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '353b493c7deb2a8de7b461dd5e78bf7af41ffbd2', variant: 'minus' }), h("div", { key: 'afb0b67c052ef23f0a85c5ed2b4286f3769114f2', class: 'relative h-6 flex-1' }, h("input", { key: '664649a633ea007d101dd7ef9a5dc528cd503bce', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
35
35
  const value = ev.target.value;
36
36
  this.value = Number.parseFloat(value);
37
37
  this.valueChange.emit(value);
38
- } }), h("div", { key: '90cdf9d7a326ec8764722cda4167a2260eff1e93', class: '\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
38
+ } }), h("div", { key: '0bea7f03b87ab00d74780796f00f3eda90bc1b96', class: '\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
39
39
  width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
40
- } })), h("p-icon", { key: 'b80ba4a88335c01383d94bbb661f7c1300c88e3b', variant: 'plus' }))));
40
+ } })), h("p-icon", { key: '8136e15955e461ec30c3bb8d83cabbd80c8089f2', variant: 'plus' }))));
41
41
  }
42
42
  };
43
43
  Range.style = rangeComponentCss();
@@ -347,8 +347,8 @@ const Select = class {
347
347
  if (this.error?.length) {
348
348
  buttonIcon = 'warning';
349
349
  }
350
- return (h(ThemedHost, { key: '76b10df3dbbf0a1758ea13c7205ea4c11ea05056' }, h("p-field-container", { key: 'e17bca429b8a24a4c5e4399911c9efcebd8a6b24', error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, label: this.label, prefix: this.prefix, required: this.required, showOptional: this.showOptional, variant: 'write' }, h("p-dropdown", { key: '1bcd1b15692330794bed8b34fbe203b8015681d9', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, manualChevron: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-button", { key: '383466f2cec3fa3e7aa65aa3db077445cb2917ef', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
351
- this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '8d5b4d842f4d49f029f1a61f98a8d768c61cf3ef', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
350
+ return (h(ThemedHost, { key: 'c72782f726a393fbf065df5c19603b8513b992bd' }, h("p-field-container", { key: '5414460d0eba2693c6d70175cd69df054bcfe01e', error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, label: this.label, prefix: this.prefix, required: this.required, showOptional: this.showOptional, variant: 'write' }, h("p-dropdown", { key: '1763f1babda4a931aaa46640f46c449ce8bb254e', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, manualChevron: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-button", { key: '6fb109a52eb65b8caa0d24adf8eaf2c2e6202ef4', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
351
+ this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '1c9c421e23b7b3ee13f7871cc31fd106baa7c392', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
352
352
  }
353
353
  documentClickHandler(event) {
354
354
  if (!this._showDropdown || childOfComposed(event, this._el)) {
@@ -70,7 +70,7 @@ const Toast = class {
70
70
  */
71
71
  action;
72
72
  render() {
73
- return (h(ThemedHost, { key: '691f56d7bd82c2c908b4773e39bf327174af3784' }, h("div", { key: 'd7ea2273b9ac2685b2a6583d25f7e7236061eeda', class: '\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ', onClick: () => this._onClick() }, h("div", { key: 'e7dba6bb34063d4c20df2c16bd87be7dbbe53815', class: indicator({ variant: this.variant }) }), h("div", { key: '1fc1320c89627a6da22f3010abcb7c6b7af25109', class: content() }, h("div", { key: '1122c87ff8fa6f3410d416ee223fc7532c723652', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '78ea333ecd424872e1a1e99b14e6427ec1b3a68d', class: '\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n ' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '899613703dc181f980c2e45ef54d6aeb24d7f3ab', class: '\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n ' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: '2fcede21976b5f039715905c282c0990f7b7b7cf', class: '\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '12a6725ddedad306f9af430fb0e61f6ad3d4f9ef', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
73
+ return (h(ThemedHost, { key: '8d36846b85c4e661ccd81533ac05eb6a651bedb6' }, h("div", { key: '5a60824f6868fa38893b7e451850f6e181caa95c', class: '\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ', onClick: () => this._onClick() }, h("div", { key: 'c3ebd2eecb1f3378176653bfe7ae96bd9b7b4b13', class: indicator({ variant: this.variant }) }), h("div", { key: '89ce39565adb3958a12551d5021f7ab86c9babb5', class: content() }, h("div", { key: '9c833a877f81b34c53ff73378b799fad436e76fd', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '7ec87f298e4dda01ff689f877d436c726abef8a5', class: '\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n ' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '08c6c263d6ce9915b055fc24e4b0aca7d2b7bfc2', class: '\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n ' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: '111084df846674e17f00ec8c7902a099f05a1e58', class: '\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '660342af8a7f33cdd2495cf03fd54fe8923babc8', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
74
74
  }
75
75
  _onClick() {
76
76
  if (this.enableAction) {
package/dist/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" name="viewport"> <title>Stencil Component Starter</title> <link rel="modulepreload" href="/build/p-fa2e80c6.js"><link rel="modulepreload" href="/build/p-6XOzWrsN.js"><link rel="modulepreload" href="/build/p-C5CTp9IA.js"><link rel="modulepreload" href="/build/p-CBWjHURv.js"><link rel="modulepreload" href="/build/p-CSySY6aC.js"><link rel="modulepreload" href="/build/p-ChV9xqsO.js"><link rel="modulepreload" href="/build/p-DPmts3W0.js"><link rel="modulepreload" href="/build/p-xs4N_Y-0.js"><link rel="modulepreload" href="/build/p-yFtRjnrU.js"><script type="module" src="/build/p-fa2e80c6.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> <link href="/build/p-ea6cc0bf.css" rel="stylesheet"> </head> <body> <p-button>Test</p-button> <script data-build="2026-02-23T16:08:19">
1
+ <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" name="viewport"> <title>Stencil Component Starter</title> <link rel="modulepreload" href="/build/p-b4fcc93e.js"><link rel="modulepreload" href="/build/p-6XOzWrsN.js"><link rel="modulepreload" href="/build/p-C5CTp9IA.js"><link rel="modulepreload" href="/build/p-CBWjHURv.js"><link rel="modulepreload" href="/build/p-CSySY6aC.js"><link rel="modulepreload" href="/build/p-ChV9xqsO.js"><link rel="modulepreload" href="/build/p-DPmts3W0.js"><link rel="modulepreload" href="/build/p-xs4N_Y-0.js"><link rel="modulepreload" href="/build/p-yFtRjnrU.js"><script type="module" src="/build/p-b4fcc93e.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> <link href="/build/p-ea6cc0bf.css" rel="stylesheet"> </head> <body> <p-button>Test</p-button> <script data-build="2026-02-24T12:11:04">
2
2
  if ('serviceWorker' in navigator && location.protocol !== 'file:') {
3
3
  window.addEventListener('load', function() {
4
4
  navigator.serviceWorker.register('/sw.js')
@@ -1 +1 @@
1
- import{r as t,a,h as r}from"./p-yFtRjnrU.js";import{T as e}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const o=class{constructor(r){t(this,r),this.valueChange=a(this,"valueChange",3)}min=0;max=100;step=.5;value=0;valueChange;render(){const t=Math.round(this.value/(this.max-this.min)*100);return r(e,{key:"cb6a6b717940ba17aa7a6df5cc36577a991d3831"},r("div",{key:"82e000061159418bb6dc5ba3c72dc9c36315777f",class:"\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n "},r("p-icon",{key:"f3825df8da36fd3e28988753db4216e613336749",variant:"minus"}),r("div",{key:"1020caacf9987bfa348181c6a90b430805f1888f",class:"relative h-6 flex-1"},r("input",{key:"05fb1b7ed4af1392f107bf27977aab3a80f45c98",max:this.max,min:this.min,step:this.step,type:"range",value:this.value,onInput:t=>{const a=t.target.value;this.value=Number.parseFloat(a),this.valueChange.emit(a)}}),r("div",{key:"90cdf9d7a326ec8764722cda4167a2260eff1e93",class:"\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ",style:{width:`calc(${t}% - (1rem * ${t} / 100))`}})),r("p-icon",{key:"b80ba4a88335c01383d94bbb661f7c1300c88e3b",variant:"plus"})))}};o.style=".m-0{margin:0}.mt-\\[calc\\(\\(0\\.5rem-1px\\)\\*-1\\)\\]{margin-top:calc(-.5rem + 1px)}.h-4{height:1rem}.h-6{height:1.5rem}.h-\\[2px\\]{height:2px}.w-4{width:1rem}.w-full{width:100%}.appearance-none{appearance:none}.rounded-full{border-radius:9999px}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}*{box-sizing:border-box}:host{input{appearance:none;background-color:transparent;height:1.5rem;margin:0;width:100%}input::-webkit-slider-runnable-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input::-moz-range-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input::-webkit-slider-thumb{--tw-bg-opacity:1;appearance:none;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;margin-top:calc(-.5rem + 1px);width:1rem}input::-webkit-slider-thumb:hover{cursor:grab}input::-webkit-slider-thumb:active,input::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-webkit-slider-thumb:active{cursor:grabbing}input::-moz-range-thumb{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;width:1rem}input::-moz-range-thumb:hover{cursor:grab}input::-moz-range-thumb:active,input::-moz-range-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-moz-range-thumb:active{cursor:grabbing}}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.active\\:cursor-grabbing:active{cursor:grabbing}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-1\\/2{top:50%}.flex{display:flex}.w-inherit{width:inherit}.flex-1{flex:1 1 0%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.gap-2{gap:.5rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{o as p_range}
1
+ import{r as t,a,h as r}from"./p-yFtRjnrU.js";import{T as e}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const o=class{constructor(r){t(this,r),this.valueChange=a(this,"valueChange",3)}min=0;max=100;step=.5;value=0;valueChange;render(){const t=Math.round(this.value/(this.max-this.min)*100);return r(e,{key:"ae78cbe140c926f4c15da133c99dd2b84ff1060f"},r("div",{key:"27a1f144fa8c1fa7c62ffb9b6300ce4f7b5d032c",class:"\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n "},r("p-icon",{key:"353b493c7deb2a8de7b461dd5e78bf7af41ffbd2",variant:"minus"}),r("div",{key:"afb0b67c052ef23f0a85c5ed2b4286f3769114f2",class:"relative h-6 flex-1"},r("input",{key:"664649a633ea007d101dd7ef9a5dc528cd503bce",max:this.max,min:this.min,step:this.step,type:"range",value:this.value,onInput:t=>{const a=t.target.value;this.value=Number.parseFloat(a),this.valueChange.emit(a)}}),r("div",{key:"0bea7f03b87ab00d74780796f00f3eda90bc1b96",class:"\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ",style:{width:`calc(${t}% - (1rem * ${t} / 100))`}})),r("p-icon",{key:"8136e15955e461ec30c3bb8d83cabbd80c8089f2",variant:"plus"})))}};o.style=".m-0{margin:0}.mt-\\[calc\\(\\(0\\.5rem-1px\\)\\*-1\\)\\]{margin-top:calc(-.5rem + 1px)}.h-4{height:1rem}.h-6{height:1.5rem}.h-\\[2px\\]{height:2px}.w-4{width:1rem}.w-full{width:100%}.appearance-none{appearance:none}.rounded-full{border-radius:9999px}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}*{box-sizing:border-box}:host{input{appearance:none;background-color:transparent;height:1.5rem;margin:0;width:100%}input::-webkit-slider-runnable-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input::-moz-range-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input::-webkit-slider-thumb{--tw-bg-opacity:1;appearance:none;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;margin-top:calc(-.5rem + 1px);width:1rem}input::-webkit-slider-thumb:hover{cursor:grab}input::-webkit-slider-thumb:active,input::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-webkit-slider-thumb:active{cursor:grabbing}input::-moz-range-thumb{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;width:1rem}input::-moz-range-thumb:hover{cursor:grab}input::-moz-range-thumb:active,input::-moz-range-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-moz-range-thumb:active{cursor:grabbing}}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.active\\:cursor-grabbing:active{cursor:grabbing}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-1\\/2{top:50%}.flex{display:flex}.w-inherit{width:inherit}.flex-1{flex:1 1 0%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.gap-2{gap:.5rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{o as p_range}
@@ -1 +1 @@
1
- import{r as t,a as e,d as r,h as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{a as s}from"./p-C5CTp9IA.js";import{c as n}from"./p-xs4N_Y-0.js";import{n as d}from"./p-D9kEjsvZ.js";import{f as h,g as l}from"./p-CwQG70_4.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const c=i(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),m=i(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),w=i(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),p=class{constructor(r){t(this,r),this.valueChange=e(this,"valueChange",3),this.inputRefChange=e(this,"inputRefChange",7),this.add=e(this,"add",3),this.enter=e(this,"enter",3),r.$hostElement$["s-ei"]?this._internals=r.$hostElement$["s-ei"]:(this._internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this._internals)}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return r(this)}_focused=!1;_nonce=d(5);_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus()}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:i,hasLabelSlot:d,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:m}=this._getSlotInfo();return a(o,{key:"d309322e4a2a9e73d7e20cb5e585eba64d3af95f"},a("p-field-container",{key:"85327bdb7a5aa7e071c4024e3d490a6b9759b184",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},d&&a("slot",{key:"4cbdc7b148e94564fc0b986a7780180bd8813d58",name:"label",slot:"label"}),i&&a("slot",{key:"61a1b3cb45df2792fbf51aa6e91d11b10e1b72e6",name:"header",slot:"header"}),h&&a("slot",{key:"d208829c7f4629f7390236d3a8c990d47d91f66b",name:"helper",slot:"helper"}),l&&a("slot",{key:"e4bd3ef86143630c0ebe9fe006aea4b7be2ca10f",name:"error",slot:"error"}),a("div",{key:"ea260caef724543db24f04bb5861ea2a138c1574",class:c({error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||m?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&a("div",{key:"d0e3d37f5fc3e7676cc3bc7f622733504169ddcf",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(m,t),(r||this.icon&&"end"===this.iconPosition)&&a("div",{key:"f479afb28bbd5ba74b78deaa7b9daf1ef543fa27",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),i=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?a("slot",{name:"prefix"}):this.prefix,h=i?a("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:i,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?a("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?a("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return a("slot",{name:"input"});const r={id:e,class:m({disabled:s(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let i=this.properties??{};return"string"==typeof i&&(i=JSON.parse(this.properties)),"textarea"===this.type?a("textarea",{ref:t=>this._setInputRef(t),...r,...i}):a("input",{ref:t=>this._setInputRef(t),type:this.type,...r,...i})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}};p.style="*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";const b=i(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),x=class{constructor(r){t(this,r),this.focus=e(this,"focus",7)}_defaultOptionalTemplate=()=>h(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return r(this)}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:t,hasErrorSlot:e,helper:r,label:i,errorAndErrorIsNotBoolean:d}=this._getSlotInfo();let h=a("slot",{key:"e795f4695850003f41a5bfb815893affee00e8de",name:"content",slot:"trigger"});return this.loading&&(h=a("p-loader",{key:"1f65c3ca60cefbf0740c9d7235a18a3e69f1c788",class:b({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),a(o,{key:"9b4ab7a1d59cead07a2065b0d6bc72be41d24287"},a("label",{key:"ac31d16bdd75b4b236479638efd367f4771627d1",class:n("flex w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},a("div",{key:"512c7c3162d9a40483f5d43d7fbea5635c40b45d",class:n("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!i?.length||!!r?.length)&&a("div",{key:"77b5887681e6537714b0352a02873a56ab22e304",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},a("span",{key:"786e241b3537a05c4bf12f58333d5c10065879c3",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},i),r&&a("p-helper",{key:"d14700f7a78349ffb1de0a39bcb92ca9833e7f3b",class:"flex flex-shrink-0",placement:"top"},r)),(!s(this.required)&&s(this.showOptional)||t)&&a("div",{key:"a3f63057ac68b62a68cf4d0b31b09039817ea87f",class:"flex items-center gap-1"},!s(this.required)&&s(this.showOptional)&&"write"===this.variant&&a("span",{key:"6e98ac54bcabfe7b4481b1745b7c25fbc0c1e717",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),t&&a("slot",{key:"e4b5a07a66a036c619d0a788c959a3d80af2f58c",name:"header"}))),a("p-tooltip",{key:"d482091d838534d3f3e3f177c9f5ccd605e8e519",class:n({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:d&&s(this.forceShowTooltip,!1),variant:"error"},e&&a("slot",{key:"45fc720b8771ffca3ce381fcc98c162947aa1e71",name:"error",slot:"content"}),h)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="header"]'),i=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:t,hasLabelSlot:e,hasHeaderSlot:r,hasErrorSlot:i,helper:t?a("slot",{name:"helper"}):this.helper,label:e?a("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:i||this.error&&"string"==typeof this.error&&"true"!==this.error}}};x.style="*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";const f=class{constructor(e){t(this,e)}strategy="absolute";placement="top";render(){return a(o,{key:"d7f07b4f232bb43ce0988ea8533353a8d193e7bf"},a("p-tooltip",{key:"df76c8696c9621a6ea5431c5d256eded55de0b57",class:"flex",placement:this.placement,strategy:this.strategy},a("p-icon",{key:"f582de019e9a60ebe2296405354cb48ebfc4ca1f",class:"\n cursor-pointer text-storm-300\n hover:text-storm-500\n dark:text-hurricane-300\n dark:hover:text-hurricane-200\n ",size:"sm",slot:"trigger",variant:"question-circle"}),a("div",{key:"1863361d1ec8867f5f403d823290273b77571516",slot:"content"},a("slot",{key:"d876213ee32eb63e77c9074391f8f31fd42ddd69"}))))}};f.style=".inline-flex{display:inline-flex}.h-\\[0\\.875rem\\]{height:.875rem}.w-\\[0\\.875rem\\]{width:.875rem}*{box-sizing:border-box}:host{display:inline-flex;height:.875rem;width:.875rem}.static{position:static}.absolute{position:absolute}.flex{display:flex}.cursor-pointer{cursor:pointer}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{p as p_field,x as p_field_container,f as p_helper}
1
+ import{r as t,a as e,d as r,h as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{a as s}from"./p-C5CTp9IA.js";import{c as n}from"./p-xs4N_Y-0.js";import{n as d}from"./p-D9kEjsvZ.js";import{f as h,g as l}from"./p-CwQG70_4.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const c=i(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),m=i(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),w=i(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),p=class{constructor(r){t(this,r),this.valueChange=e(this,"valueChange",3),this.inputRefChange=e(this,"inputRefChange",7),this.add=e(this,"add",3),this.enter=e(this,"enter",3),r.$hostElement$["s-ei"]?this._internals=r.$hostElement$["s-ei"]:(this._internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this._internals)}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return r(this)}_focused=!1;_nonce=d(5);_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus()}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:i,hasLabelSlot:d,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:m}=this._getSlotInfo();return a(o,{key:"d957c15ac5c4fd277a79716e8f7644be5b7e413e"},a("p-field-container",{key:"4ec3f19bf0e3336b652add8730974d890deaf1bc",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},d&&a("slot",{key:"74c5bf652fa519804b802cb930b764a62a7991aa",name:"label",slot:"label"}),i&&a("slot",{key:"f63069722b80fab8c262646787de0cfda2479def",name:"header",slot:"header"}),h&&a("slot",{key:"3045c36ea36e2d9b81b1fe31955237162ba50c62",name:"helper",slot:"helper"}),l&&a("slot",{key:"a9fe88d52f8f71ad09d1e2dbd3d0d42818ae64e9",name:"error",slot:"error"}),a("div",{key:"805fc95477292dcf8404eb5f206bbfd576431dd2",class:c({error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||m?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&a("div",{key:"41d8592d1683e02c23742e3fcae5f198e5dac18e",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(m,t),(r||this.icon&&"end"===this.iconPosition)&&a("div",{key:"696e95bfe4ee145a02e4de13f697a01b62bb2678",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),i=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?a("slot",{name:"prefix"}):this.prefix,h=i?a("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:i,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?a("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?a("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return a("slot",{name:"input"});const r={id:e,class:m({disabled:s(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let i=this.properties??{};return"string"==typeof i&&(i=JSON.parse(this.properties)),"textarea"===this.type?a("textarea",{ref:t=>this._setInputRef(t),...r,...i}):a("input",{ref:t=>this._setInputRef(t),type:this.type,...r,...i})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}};p.style="*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";const b=i(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),x=class{constructor(r){t(this,r),this.focus=e(this,"focus",7)}_defaultOptionalTemplate=()=>h(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return r(this)}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:t,hasErrorSlot:e,helper:r,label:i,errorAndErrorIsNotBoolean:d}=this._getSlotInfo();let h=a("slot",{key:"e795f4695850003f41a5bfb815893affee00e8de",name:"content",slot:"trigger"});return this.loading&&(h=a("p-loader",{key:"1f65c3ca60cefbf0740c9d7235a18a3e69f1c788",class:b({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),a(o,{key:"9b4ab7a1d59cead07a2065b0d6bc72be41d24287"},a("label",{key:"ac31d16bdd75b4b236479638efd367f4771627d1",class:n("flex w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},a("div",{key:"512c7c3162d9a40483f5d43d7fbea5635c40b45d",class:n("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!i?.length||!!r?.length)&&a("div",{key:"77b5887681e6537714b0352a02873a56ab22e304",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},a("span",{key:"786e241b3537a05c4bf12f58333d5c10065879c3",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},i),r&&a("p-helper",{key:"d14700f7a78349ffb1de0a39bcb92ca9833e7f3b",class:"flex flex-shrink-0",placement:"top"},r)),(!s(this.required)&&s(this.showOptional)||t)&&a("div",{key:"a3f63057ac68b62a68cf4d0b31b09039817ea87f",class:"flex items-center gap-1"},!s(this.required)&&s(this.showOptional)&&"write"===this.variant&&a("span",{key:"6e98ac54bcabfe7b4481b1745b7c25fbc0c1e717",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),t&&a("slot",{key:"e4b5a07a66a036c619d0a788c959a3d80af2f58c",name:"header"}))),a("p-tooltip",{key:"d482091d838534d3f3e3f177c9f5ccd605e8e519",class:n({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:d&&s(this.forceShowTooltip,!1),variant:"error"},e&&a("slot",{key:"45fc720b8771ffca3ce381fcc98c162947aa1e71",name:"error",slot:"content"}),h)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="header"]'),i=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:t,hasLabelSlot:e,hasHeaderSlot:r,hasErrorSlot:i,helper:t?a("slot",{name:"helper"}):this.helper,label:e?a("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:i||this.error&&"string"==typeof this.error&&"true"!==this.error}}};x.style="*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";const f=class{constructor(e){t(this,e)}strategy="absolute";placement="top";render(){return a(o,{key:"d7f07b4f232bb43ce0988ea8533353a8d193e7bf"},a("p-tooltip",{key:"df76c8696c9621a6ea5431c5d256eded55de0b57",class:"flex",placement:this.placement,strategy:this.strategy},a("p-icon",{key:"f582de019e9a60ebe2296405354cb48ebfc4ca1f",class:"\n cursor-pointer text-storm-300\n hover:text-storm-500\n dark:text-hurricane-300\n dark:hover:text-hurricane-200\n ",size:"sm",slot:"trigger",variant:"question-circle"}),a("div",{key:"1863361d1ec8867f5f403d823290273b77571516",slot:"content"},a("slot",{key:"d876213ee32eb63e77c9074391f8f31fd42ddd69"}))))}};f.style=".inline-flex{display:inline-flex}.h-\\[0\\.875rem\\]{height:.875rem}.w-\\[0\\.875rem\\]{width:.875rem}*{box-sizing:border-box}:host{display:inline-flex;height:.875rem;width:.875rem}.static{position:static}.absolute{position:absolute}.flex{display:flex}.cursor-pointer{cursor:pointer}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{p as p_field,x as p_field_container,f as p_helper}
@@ -1 +1 @@
1
- import{r as t,h as i}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as e}from"./p-CSySY6aC.js";import{a as n}from"./p-C5CTp9IA.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=a(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),m=a(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),c=class{constructor(i){t(this,i)}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,a=n(this.active)||this.class?.includes("active");return i(e,{key:"9618d8427117bdcc2809e8f1a81174d0d99366c9",class:r("p-navigation-item inline-block",this.class)},i(t,{key:"3db385fe49b1eba6b032494d8f303aa5e1e60c01",class:o({icon:!!this.icon,active:a}),href:this.href,target:this.target},i("div",{key:"7c97ebc4d504b06bb795b4885be0250f0c839882",class:m({active:a})},i("p-icon",{key:"881b8afabc70357e31783903c5c8956cae6b34a6",variant:this.icon})),i("span",{key:"509205092f325b8037a8abaf51ce314136c15621",class:r({"has-counter":!!this.counter,"w-full":this.applyFullWidth})},i("slot",{key:"0573c0d5ea35d1b72de532cd46c4b53bf97d956e"})),!!this.counter&&"0"!==this.counter&&i("p-badge",{key:"cac8304e8a0f23e3fe1f81279f916d6e83a3a652"},this.counter),!!this.loading&&i("p-loader",{key:"949b2eed1d715a0a98a831ad649ffbeba5787577",class:"ml-auto"})))}};c.style="*.sc-p-navigation-item{box-sizing:border-box}.static.sc-p-navigation-item{position:static}.ml-auto.sc-p-navigation-item{margin-left:auto}.inline-block.sc-p-navigation-item{display:inline-block}.flex.sc-p-navigation-item{display:flex}.aspect-branding.sc-p-navigation-item{aspect-ratio:23/24}.h-6.sc-p-navigation-item{height:1.5rem}.h-8.sc-p-navigation-item{height:2rem}.w-\\[inherit\\].sc-p-navigation-item{width:inherit}.w-full.sc-p-navigation-item{width:100%}.cursor-pointer.sc-p-navigation-item{cursor:pointer}.items-center.sc-p-navigation-item{align-items:center}.justify-center.sc-p-navigation-item{justify-content:center}.gap-2.sc-p-navigation-item{gap:.5rem}.rounded-full.sc-p-navigation-item{border-radius:9999px}.rounded-lg.sc-p-navigation-item{border-radius:.5rem}.bg-indigo-500.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-600.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))}.px-2.sc-p-navigation-item{padding-left:.5rem;padding-right:.5rem}.py-1.sc-p-navigation-item{padding-bottom:.25rem;padding-top:.25rem}.pl-1.sc-p-navigation-item{padding-left:.25rem}.text-sm.sc-p-navigation-item{font-size:.875rem;line-height:1.25rem}.font-medium.sc-p-navigation-item{font-weight:500}.font-semibold.sc-p-navigation-item{font-weight:600}.text-storm-400.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.container.sc-p-navigation-item{width:100%}@media (min-width:40rem){.container.sc-p-navigation-item{max-width:40rem}}@media (min-width:64rem){.container.sc-p-navigation-item{max-width:64rem}}@media (min-width:80rem){.container.sc-p-navigation-item{max-width:80rem}}@media (min-width:85.375rem){.container.sc-p-navigation-item{max-width:85.375rem}}@media (min-width:90rem){.container.sc-p-navigation-item{max-width:90rem}}@media (min-width:96rem){.container.sc-p-navigation-item{max-width:96rem}}@media (min-width:105rem){.container.sc-p-navigation-item{max-width:105rem}}@media (min-width:120rem){.container.sc-p-navigation-item{max-width:120rem}}@media (min-width:160rem){.container.sc-p-navigation-item{max-width:160rem}}@media (min-width:640px){.container.sc-p-navigation-item{max-width:640px}}@media (min-width:768px){.container.sc-p-navigation-item{max-width:768px}}@media (min-width:1024px){.container.sc-p-navigation-item{max-width:1024px}}@media (min-width:1280px){.container.sc-p-navigation-item{max-width:1280px}}@media (min-width:1536px){.container.sc-p-navigation-item{max-width:1536px}}.hover\\:bg-off-white-500.sc-p-navigation-item:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:text-storm-500.sc-p-navigation-item:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{c as p_navigation_item}
1
+ import{r as t,h as i}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as e}from"./p-CSySY6aC.js";import{a as n}from"./p-C5CTp9IA.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=a(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),c=a(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),m=class{constructor(i){t(this,i)}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,a=n(this.active)||this.class?.includes("active");return i(e,{key:"f683b2979f9fde20b6e37ba7f3460fd052cce426",class:r("p-navigation-item inline-block",this.class)},i(t,{key:"8f9b4557b535d893375bcbe9108a618aff26974e",class:o({icon:!!this.icon,active:a}),href:this.href,target:this.target},i("div",{key:"6a32cd63b465492becb679ba08175e79a9c053c8",class:c({active:a})},i("p-icon",{key:"5fd49857c3f424479731379311ee426d2bf9b79e",variant:this.icon})),i("span",{key:"8d1527282d584b49e7990455e6bba80debd48cd5",class:r({"has-counter":!!this.counter,"w-full":this.applyFullWidth})},i("slot",{key:"6b9480c94455eeb524a029f21794fc89cb31c857"})),!!this.counter&&"0"!==this.counter&&i("p-badge",{key:"7677e25cb31c5f98bbe70b05e4ca95c518ab696c"},this.counter),!!this.loading&&i("p-loader",{key:"c006a2604a54309028adda2d3aaff26e1d0acd3c",class:"ml-auto"})))}};m.style="*.sc-p-navigation-item{box-sizing:border-box}.static.sc-p-navigation-item{position:static}.ml-auto.sc-p-navigation-item{margin-left:auto}.inline-block.sc-p-navigation-item{display:inline-block}.flex.sc-p-navigation-item{display:flex}.aspect-branding.sc-p-navigation-item{aspect-ratio:23/24}.h-6.sc-p-navigation-item{height:1.5rem}.h-8.sc-p-navigation-item{height:2rem}.w-\\[inherit\\].sc-p-navigation-item{width:inherit}.w-full.sc-p-navigation-item{width:100%}.cursor-pointer.sc-p-navigation-item{cursor:pointer}.items-center.sc-p-navigation-item{align-items:center}.justify-center.sc-p-navigation-item{justify-content:center}.gap-2.sc-p-navigation-item{gap:.5rem}.rounded-full.sc-p-navigation-item{border-radius:9999px}.rounded-lg.sc-p-navigation-item{border-radius:.5rem}.bg-indigo-500.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-600.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))}.px-2.sc-p-navigation-item{padding-left:.5rem;padding-right:.5rem}.py-1.sc-p-navigation-item{padding-bottom:.25rem;padding-top:.25rem}.pl-1.sc-p-navigation-item{padding-left:.25rem}.text-sm.sc-p-navigation-item{font-size:.875rem;line-height:1.25rem}.font-medium.sc-p-navigation-item{font-weight:500}.font-semibold.sc-p-navigation-item{font-weight:600}.text-storm-400.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.container.sc-p-navigation-item{width:100%}@media (min-width:40rem){.container.sc-p-navigation-item{max-width:40rem}}@media (min-width:64rem){.container.sc-p-navigation-item{max-width:64rem}}@media (min-width:80rem){.container.sc-p-navigation-item{max-width:80rem}}@media (min-width:85.375rem){.container.sc-p-navigation-item{max-width:85.375rem}}@media (min-width:90rem){.container.sc-p-navigation-item{max-width:90rem}}@media (min-width:96rem){.container.sc-p-navigation-item{max-width:96rem}}@media (min-width:105rem){.container.sc-p-navigation-item{max-width:105rem}}@media (min-width:120rem){.container.sc-p-navigation-item{max-width:120rem}}@media (min-width:160rem){.container.sc-p-navigation-item{max-width:160rem}}@media (min-width:640px){.container.sc-p-navigation-item{max-width:640px}}@media (min-width:768px){.container.sc-p-navigation-item{max-width:768px}}@media (min-width:1024px){.container.sc-p-navigation-item{max-width:1024px}}@media (min-width:1280px){.container.sc-p-navigation-item{max-width:1280px}}@media (min-width:1536px){.container.sc-p-navigation-item{max-width:1536px}}.hover\\:bg-off-white-500.sc-p-navigation-item:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:text-storm-500.sc-p-navigation-item:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{m as p_navigation_item}