@paperless/core 1.64.2 → 1.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/{paperless/p-cb2674b5.entry.js → build/p-0a95044f.entry.js} +2 -2
- package/dist/build/p-0c2cc6c4.js +3 -0
- package/dist/build/p-0c2cc6c4.js.map +1 -0
- package/dist/build/{p-a2b552f9.entry.js → p-13f61347.entry.js} +2 -2
- package/dist/build/{p-8af4e8e9.entry.js → p-18f3cc52.entry.js} +2 -2
- package/dist/build/{p-639665b1.entry.js → p-198fac52.entry.js} +2 -2
- package/dist/build/p-1a725037.entry.js +2 -0
- package/dist/build/p-1a725037.entry.js.map +1 -0
- package/dist/build/{p-606ad811.entry.js → p-1ce5f595.entry.js} +2 -2
- package/dist/{paperless/p-f2a896ba.entry.js → build/p-1dbb398d.entry.js} +2 -2
- package/dist/build/p-1dbb398d.entry.js.map +1 -0
- package/dist/build/p-2360542e.entry.js +2 -0
- package/dist/build/p-2360542e.entry.js.map +1 -0
- package/dist/build/{p-cf7bd354.entry.js → p-2489f548.entry.js} +2 -2
- package/dist/build/{p-8426ca20.entry.js → p-26d28e15.entry.js} +2 -2
- package/dist/build/{p-b59115c3.entry.js → p-27ecc564.entry.js} +2 -2
- package/dist/build/{p-3755da14.entry.js → p-2e258b57.entry.js} +2 -2
- package/dist/build/{p-5b062bc3.entry.js → p-2ff0302a.entry.js} +2 -2
- package/dist/{paperless/p-30c9f5e3.entry.js → build/p-311e879a.entry.js} +2 -2
- package/dist/build/{p-d0796984.entry.js → p-31b09b93.entry.js} +2 -2
- package/dist/build/{p-7793ba3a.entry.js → p-32ec455c.entry.js} +2 -2
- package/dist/build/{p-ec15ee73.entry.js → p-4fe3d53a.entry.js} +2 -2
- package/dist/{paperless/p-dd070ee8.entry.js → build/p-4feb9ce7.entry.js} +2 -2
- package/dist/build/{p-00d4647f.entry.js → p-64aff6f3.entry.js} +2 -2
- package/dist/{paperless/p-eebab75d.entry.js → build/p-744f5a41.entry.js} +2 -2
- package/dist/build/{p-d8641c29.entry.js → p-7f41fb25.entry.js} +2 -2
- package/dist/build/p-80053d24.entry.js +2 -0
- package/dist/build/p-80053d24.entry.js.map +1 -0
- package/dist/build/{p-af6b813e.entry.js → p-88f1b5e6.entry.js} +2 -2
- package/dist/build/{p-179efb16.entry.js → p-8b1a63cb.entry.js} +2 -2
- package/dist/build/{p-2becd73c.entry.js → p-9671e4e1.entry.js} +2 -2
- package/dist/build/{p-0b0c43cc.entry.js → p-9c1e350b.entry.js} +2 -2
- package/dist/build/{p-d7f2d4d3.entry.js → p-9c9ea527.entry.js} +2 -2
- package/dist/build/{p-7bf042c9.entry.js → p-a11cf84a.entry.js} +2 -2
- package/dist/build/p-a5770573.entry.js +2 -0
- package/dist/build/p-ac60e1f8.entry.js +2 -0
- package/dist/build/p-ac60e1f8.entry.js.map +1 -0
- package/dist/build/{p-576b6378.entry.js → p-ad9468a6.entry.js} +2 -2
- package/dist/build/{p-dace47c5.entry.js → p-af71e807.entry.js} +2 -2
- package/dist/{paperless/p-2cd5062f.entry.js → build/p-bcb8549b.entry.js} +2 -2
- package/dist/build/{p-ec29eed0.entry.js → p-bd4ba06f.entry.js} +2 -2
- package/dist/{paperless/p-bbe63029.entry.js → build/p-c1bac1cf.entry.js} +2 -2
- package/dist/{paperless/p-95dc4bd3.entry.js → build/p-c4d17d60.entry.js} +2 -2
- package/dist/build/{p-2c2cf3cf.entry.js → p-ca87bbc1.entry.js} +2 -2
- package/dist/{paperless/p-35c563a7.entry.js → build/p-d4b10d27.entry.js} +2 -2
- package/dist/{paperless/p-01adf065.entry.js → build/p-dbd732ab.entry.js} +2 -2
- package/dist/build/{p-a37d182e.entry.js → p-de0f4cf1.entry.js} +2 -2
- package/dist/build/{p-ec315c58.entry.js → p-de9f7dc2.entry.js} +2 -2
- package/dist/build/{p-0cbff44f.entry.js → p-ec1584ef.entry.js} +2 -2
- package/dist/build/{p-0f5c5693.entry.js → p-f07e2154.entry.js} +2 -2
- package/dist/{paperless/p-699e0b35.entry.js → build/p-f2865277.entry.js} +2 -2
- package/dist/build/p-f95b1425.entry.js +2 -0
- package/dist/build/{p-4c30c74b.entry.js → p-fae6af23.entry.js} +2 -2
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/{index-1fde8b14.js → index-d4e6d9da.js} +79 -6
- package/dist/cjs/{index-1fde8b14.js.map → index-d4e6d9da.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-dropdown-menu-container_2.cjs.entry.js +47 -0
- package/dist/cjs/p-dropdown-menu-container_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js +38 -17
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +1 -1
- package/dist/cjs/p-helper_3.cjs.entry.js +18 -18
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-label_3.cjs.entry.js +1 -1
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +6 -5
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table-column.cjs.entry.js +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +26 -1
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
- package/dist/collection/components/atoms/portal/portal.component.js +43 -0
- package/dist/collection/components/atoms/portal/portal.component.js.map +1 -0
- package/dist/collection/components/atoms/portal/test/portal.component.e2e.js +26 -0
- package/dist/collection/components/atoms/portal/test/portal.component.e2e.js.map +1 -0
- package/dist/collection/components/atoms/portal/test/portal.component.spec.js +17 -0
- package/dist/collection/components/atoms/portal/test/portal.component.spec.js.map +1 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +54 -16
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +15 -16
- package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -1
- package/dist/collection/components/molecules/profile/profile.component.css +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +5 -4
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
- package/dist/collection/components/molecules/select/select.component.js.map +1 -1
- package/dist/components/dropdown-menu-container.component.js +1 -1
- package/dist/components/dropdown-menu-container.component.js.map +1 -1
- package/dist/components/dropdown.component.js +47 -20
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/helper.component.js +4 -2
- package/dist/components/helper.component.js.map +1 -1
- package/dist/components/input-group.component.js +14 -15
- package/dist/components/input-group.component.js.map +1 -1
- package/dist/components/p-datepicker.js +20 -14
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-portal.d.ts +11 -0
- package/dist/components/p-portal.js +8 -0
- package/dist/components/p-portal.js.map +1 -0
- package/dist/components/p-profile.js +17 -10
- package/dist/components/p-profile.js.map +1 -1
- package/dist/components/p-select.js +24 -18
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-table.js +40 -34
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/page-size-select.component.js +18 -12
- package/dist/components/page-size-select.component.js.map +1 -1
- package/dist/components/portal.component.js +42 -0
- package/dist/components/portal.component.js.map +1 -0
- package/dist/components/table-footer.component.js +24 -18
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/esm/{index-7b917f6b.js → index-f1f0954a.js} +79 -6
- package/dist/esm/{index-7b917f6b.js.map → index-f1f0954a.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +1 -1
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +1 -1
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +1 -1
- package/dist/esm/p-card-header.entry.js +1 -1
- package/dist/esm/p-content-slider.entry.js +1 -1
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +1 -1
- package/dist/esm/p-divider.entry.js +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +1 -1
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-dropdown-menu-container_2.entry.js +42 -0
- package/dist/esm/p-dropdown-menu-container_2.entry.js.map +1 -0
- package/dist/esm/p-dropdown_2.entry.js +38 -17
- package/dist/esm/p-dropdown_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +1 -1
- package/dist/esm/p-helper_3.entry.js +18 -18
- package/dist/esm/p-helper_3.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-label_3.entry.js +1 -1
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +1 -1
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +6 -5
- package/dist/esm/p-profile.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +1 -1
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table-column.entry.js +1 -1
- package/dist/esm/p-table-row-action.entry.js +1 -1
- package/dist/esm/p-table.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-tooltip.entry.js +1 -1
- package/dist/esm/paperless.js +3 -3
- package/dist/index.html +1 -1
- package/dist/{build/p-cb2674b5.entry.js → paperless/p-0a95044f.entry.js} +2 -2
- package/dist/paperless/p-0c2cc6c4.js +3 -0
- package/dist/paperless/p-0c2cc6c4.js.map +1 -0
- package/dist/paperless/{p-a2b552f9.entry.js → p-13f61347.entry.js} +2 -2
- package/dist/paperless/{p-8af4e8e9.entry.js → p-18f3cc52.entry.js} +2 -2
- package/dist/paperless/{p-639665b1.entry.js → p-198fac52.entry.js} +2 -2
- package/dist/paperless/p-1a725037.entry.js +2 -0
- package/dist/paperless/p-1a725037.entry.js.map +1 -0
- package/dist/paperless/{p-606ad811.entry.js → p-1ce5f595.entry.js} +2 -2
- package/dist/{build/p-f2a896ba.entry.js → paperless/p-1dbb398d.entry.js} +2 -2
- package/dist/paperless/p-1dbb398d.entry.js.map +1 -0
- package/dist/paperless/p-2360542e.entry.js +2 -0
- package/dist/paperless/p-2360542e.entry.js.map +1 -0
- package/dist/paperless/{p-cf7bd354.entry.js → p-2489f548.entry.js} +2 -2
- package/dist/paperless/{p-8426ca20.entry.js → p-26d28e15.entry.js} +2 -2
- package/dist/paperless/{p-b59115c3.entry.js → p-27ecc564.entry.js} +2 -2
- package/dist/paperless/{p-3755da14.entry.js → p-2e258b57.entry.js} +2 -2
- package/dist/paperless/{p-5b062bc3.entry.js → p-2ff0302a.entry.js} +2 -2
- package/dist/{build/p-30c9f5e3.entry.js → paperless/p-311e879a.entry.js} +2 -2
- package/dist/paperless/{p-d0796984.entry.js → p-31b09b93.entry.js} +2 -2
- package/dist/paperless/{p-7793ba3a.entry.js → p-32ec455c.entry.js} +2 -2
- package/dist/paperless/{p-ec15ee73.entry.js → p-4fe3d53a.entry.js} +2 -2
- package/dist/{build/p-dd070ee8.entry.js → paperless/p-4feb9ce7.entry.js} +2 -2
- package/dist/paperless/{p-00d4647f.entry.js → p-64aff6f3.entry.js} +2 -2
- package/dist/{build/p-eebab75d.entry.js → paperless/p-744f5a41.entry.js} +2 -2
- package/dist/paperless/{p-d8641c29.entry.js → p-7f41fb25.entry.js} +2 -2
- package/dist/paperless/p-80053d24.entry.js +2 -0
- package/dist/paperless/p-80053d24.entry.js.map +1 -0
- package/dist/paperless/{p-af6b813e.entry.js → p-88f1b5e6.entry.js} +2 -2
- package/dist/paperless/{p-179efb16.entry.js → p-8b1a63cb.entry.js} +2 -2
- package/dist/paperless/{p-2becd73c.entry.js → p-9671e4e1.entry.js} +2 -2
- package/dist/paperless/{p-0b0c43cc.entry.js → p-9c1e350b.entry.js} +2 -2
- package/dist/paperless/{p-d7f2d4d3.entry.js → p-9c9ea527.entry.js} +2 -2
- package/dist/paperless/{p-7bf042c9.entry.js → p-a11cf84a.entry.js} +2 -2
- package/dist/paperless/p-a5770573.entry.js +2 -0
- package/dist/paperless/p-ac60e1f8.entry.js +2 -0
- package/dist/paperless/p-ac60e1f8.entry.js.map +1 -0
- package/dist/paperless/{p-576b6378.entry.js → p-ad9468a6.entry.js} +2 -2
- package/dist/paperless/{p-dace47c5.entry.js → p-af71e807.entry.js} +2 -2
- package/dist/{build/p-2cd5062f.entry.js → paperless/p-bcb8549b.entry.js} +2 -2
- package/dist/paperless/{p-ec29eed0.entry.js → p-bd4ba06f.entry.js} +2 -2
- package/dist/{build/p-bbe63029.entry.js → paperless/p-c1bac1cf.entry.js} +2 -2
- package/dist/{build/p-95dc4bd3.entry.js → paperless/p-c4d17d60.entry.js} +2 -2
- package/dist/paperless/{p-2c2cf3cf.entry.js → p-ca87bbc1.entry.js} +2 -2
- package/dist/{build/p-35c563a7.entry.js → paperless/p-d4b10d27.entry.js} +2 -2
- package/dist/{build/p-01adf065.entry.js → paperless/p-dbd732ab.entry.js} +2 -2
- package/dist/paperless/{p-a37d182e.entry.js → p-de0f4cf1.entry.js} +2 -2
- package/dist/paperless/{p-ec315c58.entry.js → p-de9f7dc2.entry.js} +2 -2
- package/dist/paperless/{p-0cbff44f.entry.js → p-ec1584ef.entry.js} +2 -2
- package/dist/paperless/{p-0f5c5693.entry.js → p-f07e2154.entry.js} +2 -2
- package/dist/{build/p-699e0b35.entry.js → paperless/p-f2865277.entry.js} +2 -2
- package/dist/paperless/p-f95b1425.entry.js +2 -0
- package/dist/paperless/{p-4c30c74b.entry.js → p-fae6af23.entry.js} +2 -2
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/helper/helper.component.d.ts +5 -1
- package/dist/types/components/atoms/portal/portal.component.d.ts +9 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +6 -1
- package/dist/types/components.d.ts +33 -2
- package/hydrate/index.js +116 -51
- package/package.json +1 -1
- package/dist/build/p-2d3ff364.entry.js +0 -2
- package/dist/build/p-2d3ff364.entry.js.map +0 -1
- package/dist/build/p-46052ca3.entry.js +0 -2
- package/dist/build/p-46052ca3.entry.js.map +0 -1
- package/dist/build/p-6f24685c.entry.js +0 -2
- package/dist/build/p-867c00e9.entry.js +0 -2
- package/dist/build/p-867c00e9.entry.js.map +0 -1
- package/dist/build/p-c3999d3e.entry.js +0 -2
- package/dist/build/p-e4d5e7a7.js +0 -3
- package/dist/build/p-e4d5e7a7.js.map +0 -1
- package/dist/build/p-ef0bfa6c.entry.js +0 -2
- package/dist/build/p-ef0bfa6c.entry.js.map +0 -1
- package/dist/build/p-f2a896ba.entry.js.map +0 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +0 -25
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +0 -1
- package/dist/esm/p-dropdown-menu-container.entry.js +0 -21
- package/dist/esm/p-dropdown-menu-container.entry.js.map +0 -1
- package/dist/paperless/p-2d3ff364.entry.js +0 -2
- package/dist/paperless/p-2d3ff364.entry.js.map +0 -1
- package/dist/paperless/p-46052ca3.entry.js +0 -2
- package/dist/paperless/p-46052ca3.entry.js.map +0 -1
- package/dist/paperless/p-6f24685c.entry.js +0 -2
- package/dist/paperless/p-867c00e9.entry.js +0 -2
- package/dist/paperless/p-867c00e9.entry.js.map +0 -1
- package/dist/paperless/p-c3999d3e.entry.js +0 -2
- package/dist/paperless/p-e4d5e7a7.js +0 -3
- package/dist/paperless/p-e4d5e7a7.js.map +0 -1
- package/dist/paperless/p-ef0bfa6c.entry.js +0 -2
- package/dist/paperless/p-ef0bfa6c.entry.js.map +0 -1
- package/dist/paperless/p-f2a896ba.entry.js.map +0 -1
- /package/dist/build/{p-cb2674b5.entry.js.map → p-0a95044f.entry.js.map} +0 -0
- /package/dist/build/{p-a2b552f9.entry.js.map → p-13f61347.entry.js.map} +0 -0
- /package/dist/build/{p-8af4e8e9.entry.js.map → p-18f3cc52.entry.js.map} +0 -0
- /package/dist/build/{p-639665b1.entry.js.map → p-198fac52.entry.js.map} +0 -0
- /package/dist/build/{p-606ad811.entry.js.map → p-1ce5f595.entry.js.map} +0 -0
- /package/dist/build/{p-cf7bd354.entry.js.map → p-2489f548.entry.js.map} +0 -0
- /package/dist/build/{p-8426ca20.entry.js.map → p-26d28e15.entry.js.map} +0 -0
- /package/dist/build/{p-b59115c3.entry.js.map → p-27ecc564.entry.js.map} +0 -0
- /package/dist/build/{p-3755da14.entry.js.map → p-2e258b57.entry.js.map} +0 -0
- /package/dist/build/{p-5b062bc3.entry.js.map → p-2ff0302a.entry.js.map} +0 -0
- /package/dist/build/{p-30c9f5e3.entry.js.map → p-311e879a.entry.js.map} +0 -0
- /package/dist/build/{p-d0796984.entry.js.map → p-31b09b93.entry.js.map} +0 -0
- /package/dist/build/{p-7793ba3a.entry.js.map → p-32ec455c.entry.js.map} +0 -0
- /package/dist/build/{p-ec15ee73.entry.js.map → p-4fe3d53a.entry.js.map} +0 -0
- /package/dist/build/{p-dd070ee8.entry.js.map → p-4feb9ce7.entry.js.map} +0 -0
- /package/dist/build/{p-00d4647f.entry.js.map → p-64aff6f3.entry.js.map} +0 -0
- /package/dist/build/{p-eebab75d.entry.js.map → p-744f5a41.entry.js.map} +0 -0
- /package/dist/build/{p-d8641c29.entry.js.map → p-7f41fb25.entry.js.map} +0 -0
- /package/dist/build/{p-af6b813e.entry.js.map → p-88f1b5e6.entry.js.map} +0 -0
- /package/dist/build/{p-179efb16.entry.js.map → p-8b1a63cb.entry.js.map} +0 -0
- /package/dist/build/{p-2becd73c.entry.js.map → p-9671e4e1.entry.js.map} +0 -0
- /package/dist/build/{p-0b0c43cc.entry.js.map → p-9c1e350b.entry.js.map} +0 -0
- /package/dist/build/{p-d7f2d4d3.entry.js.map → p-9c9ea527.entry.js.map} +0 -0
- /package/dist/build/{p-7bf042c9.entry.js.map → p-a11cf84a.entry.js.map} +0 -0
- /package/dist/build/{p-6f24685c.entry.js.map → p-a5770573.entry.js.map} +0 -0
- /package/dist/build/{p-576b6378.entry.js.map → p-ad9468a6.entry.js.map} +0 -0
- /package/dist/build/{p-dace47c5.entry.js.map → p-af71e807.entry.js.map} +0 -0
- /package/dist/build/{p-2cd5062f.entry.js.map → p-bcb8549b.entry.js.map} +0 -0
- /package/dist/build/{p-ec29eed0.entry.js.map → p-bd4ba06f.entry.js.map} +0 -0
- /package/dist/build/{p-bbe63029.entry.js.map → p-c1bac1cf.entry.js.map} +0 -0
- /package/dist/build/{p-95dc4bd3.entry.js.map → p-c4d17d60.entry.js.map} +0 -0
- /package/dist/build/{p-2c2cf3cf.entry.js.map → p-ca87bbc1.entry.js.map} +0 -0
- /package/dist/build/{p-35c563a7.entry.js.map → p-d4b10d27.entry.js.map} +0 -0
- /package/dist/build/{p-01adf065.entry.js.map → p-dbd732ab.entry.js.map} +0 -0
- /package/dist/build/{p-a37d182e.entry.js.map → p-de0f4cf1.entry.js.map} +0 -0
- /package/dist/build/{p-ec315c58.entry.js.map → p-de9f7dc2.entry.js.map} +0 -0
- /package/dist/build/{p-0cbff44f.entry.js.map → p-ec1584ef.entry.js.map} +0 -0
- /package/dist/build/{p-0f5c5693.entry.js.map → p-f07e2154.entry.js.map} +0 -0
- /package/dist/build/{p-699e0b35.entry.js.map → p-f2865277.entry.js.map} +0 -0
- /package/dist/build/{p-c3999d3e.entry.js.map → p-f95b1425.entry.js.map} +0 -0
- /package/dist/build/{p-4c30c74b.entry.js.map → p-fae6af23.entry.js.map} +0 -0
- /package/dist/paperless/{p-cb2674b5.entry.js.map → p-0a95044f.entry.js.map} +0 -0
- /package/dist/paperless/{p-a2b552f9.entry.js.map → p-13f61347.entry.js.map} +0 -0
- /package/dist/paperless/{p-8af4e8e9.entry.js.map → p-18f3cc52.entry.js.map} +0 -0
- /package/dist/paperless/{p-639665b1.entry.js.map → p-198fac52.entry.js.map} +0 -0
- /package/dist/paperless/{p-606ad811.entry.js.map → p-1ce5f595.entry.js.map} +0 -0
- /package/dist/paperless/{p-cf7bd354.entry.js.map → p-2489f548.entry.js.map} +0 -0
- /package/dist/paperless/{p-8426ca20.entry.js.map → p-26d28e15.entry.js.map} +0 -0
- /package/dist/paperless/{p-b59115c3.entry.js.map → p-27ecc564.entry.js.map} +0 -0
- /package/dist/paperless/{p-3755da14.entry.js.map → p-2e258b57.entry.js.map} +0 -0
- /package/dist/paperless/{p-5b062bc3.entry.js.map → p-2ff0302a.entry.js.map} +0 -0
- /package/dist/paperless/{p-30c9f5e3.entry.js.map → p-311e879a.entry.js.map} +0 -0
- /package/dist/paperless/{p-d0796984.entry.js.map → p-31b09b93.entry.js.map} +0 -0
- /package/dist/paperless/{p-7793ba3a.entry.js.map → p-32ec455c.entry.js.map} +0 -0
- /package/dist/paperless/{p-ec15ee73.entry.js.map → p-4fe3d53a.entry.js.map} +0 -0
- /package/dist/paperless/{p-dd070ee8.entry.js.map → p-4feb9ce7.entry.js.map} +0 -0
- /package/dist/paperless/{p-00d4647f.entry.js.map → p-64aff6f3.entry.js.map} +0 -0
- /package/dist/paperless/{p-eebab75d.entry.js.map → p-744f5a41.entry.js.map} +0 -0
- /package/dist/paperless/{p-d8641c29.entry.js.map → p-7f41fb25.entry.js.map} +0 -0
- /package/dist/paperless/{p-af6b813e.entry.js.map → p-88f1b5e6.entry.js.map} +0 -0
- /package/dist/paperless/{p-179efb16.entry.js.map → p-8b1a63cb.entry.js.map} +0 -0
- /package/dist/paperless/{p-2becd73c.entry.js.map → p-9671e4e1.entry.js.map} +0 -0
- /package/dist/paperless/{p-0b0c43cc.entry.js.map → p-9c1e350b.entry.js.map} +0 -0
- /package/dist/paperless/{p-d7f2d4d3.entry.js.map → p-9c9ea527.entry.js.map} +0 -0
- /package/dist/paperless/{p-7bf042c9.entry.js.map → p-a11cf84a.entry.js.map} +0 -0
- /package/dist/paperless/{p-6f24685c.entry.js.map → p-a5770573.entry.js.map} +0 -0
- /package/dist/paperless/{p-576b6378.entry.js.map → p-ad9468a6.entry.js.map} +0 -0
- /package/dist/paperless/{p-dace47c5.entry.js.map → p-af71e807.entry.js.map} +0 -0
- /package/dist/paperless/{p-2cd5062f.entry.js.map → p-bcb8549b.entry.js.map} +0 -0
- /package/dist/paperless/{p-ec29eed0.entry.js.map → p-bd4ba06f.entry.js.map} +0 -0
- /package/dist/paperless/{p-bbe63029.entry.js.map → p-c1bac1cf.entry.js.map} +0 -0
- /package/dist/paperless/{p-95dc4bd3.entry.js.map → p-c4d17d60.entry.js.map} +0 -0
- /package/dist/paperless/{p-2c2cf3cf.entry.js.map → p-ca87bbc1.entry.js.map} +0 -0
- /package/dist/paperless/{p-35c563a7.entry.js.map → p-d4b10d27.entry.js.map} +0 -0
- /package/dist/paperless/{p-01adf065.entry.js.map → p-dbd732ab.entry.js.map} +0 -0
- /package/dist/paperless/{p-a37d182e.entry.js.map → p-de0f4cf1.entry.js.map} +0 -0
- /package/dist/paperless/{p-ec315c58.entry.js.map → p-de9f7dc2.entry.js.map} +0 -0
- /package/dist/paperless/{p-0cbff44f.entry.js.map → p-ec1584ef.entry.js.map} +0 -0
- /package/dist/paperless/{p-0f5c5693.entry.js.map → p-f07e2154.entry.js.map} +0 -0
- /package/dist/paperless/{p-699e0b35.entry.js.map → p-f2865277.entry.js.map} +0 -0
- /package/dist/paperless/{p-c3999d3e.entry.js.map → p-f95b1425.entry.js.map} +0 -0
- /package/dist/paperless/{p-4c30c74b.entry.js.map → p-fae6af23.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as r,h as o,H as e,g as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as r,h as o,H as e,g as a}from"./p-0c2cc6c4.js";import{a as i,c as s,o as n,f as p,s as h,b as l}from"./p-fef32402.js";const v='.pointer-events-auto{pointer-events:auto!important}.visible{visibility:visible!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-tooltip{z-index:601!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.hidden{display:none!important}.h-0{height:0!important}.h-2{height:.5rem!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.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))!important}.rounded{border-radius:.25rem!important}.bg-negative{background-color:rgb(185 30 40/var(--tw-bg-opacity))!important}.bg-negative,.bg-storm{--tw-bg-opacity:1!important}.bg-storm{background-color:rgb(81 83 107/var(--tw-bg-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.uppercase{text-transform:uppercase!important}.opacity-0{opacity:0!important}.drop-shadow-4{--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13))!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{cursor:pointer;display:flex}:host .popover-container{height:0;position:relative;width:0}:host .popover-container .popover{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;display:inline-block;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);font-size:.75rem;font-weight:500;left:0;line-height:1rem;max-width:14.5rem;opacity:0;padding:.5rem .75rem;pointer-events:none;top:0;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:-moz-max-content;width:max-content;z-index:601}:host .popover-container .popover.variant-error,:host .popover-container .popover.variant-error-element,:host .popover-container .popover.variant-hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(81 83 107/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));padding-bottom:.25rem;padding-top:.25rem}:host .popover-container .popover.variant-error,:host .popover-container .popover.variant-error-element{--tw-bg-opacity:1;background-color:rgb(185 30 40/var(--tw-bg-opacity));letter-spacing:.05em;text-transform:uppercase}:host .popover-container .popover[data-show]{opacity:1;pointer-events:auto}:host .popover-container .popover .arrow,:host .popover-container .popover .arrow:before{background:inherit;height:.5rem;position:absolute;width:.5rem}:host .popover-container .popover .arrow{visibility:hidden}:host .popover-container .popover .arrow:before{--tw-rotate:45deg;content:"";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));visibility:visible}:host .popover-container .popover[data-strategy=fixed]{position:fixed}:host .popover-container .popover[data-strategy=absolute]{position:absolute}:host .popover-container .popover[data-placement^=top]>.arrow{bottom:-.25rem}:host .popover-container .popover[data-placement^=bottom]>.arrow{top:-.25rem}:host .popover-container .popover[data-placement^=left]>.arrow{right:-.25rem}:host .popover-container .popover[data-placement^=right]>.arrow{left:-.25rem}.static{position:static!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}';const c=class{constructor(o){t(this,o);this.isOpen=r(this,"isOpen",3);this._hasContentSlot=false;this._loaded=false;this.variant="hover";this.content=null;this.placement="top";this.offset=8;this.strategy="absolute";this.enableUserInput=true;this.show=false;this.canManuallyClose=true}componentWillLoad(){this._hasContentSlot=!!this._el.querySelector(':scope > [slot="content"]')}componentShouldUpdate(){this._update()}disconnectedCallback(){if(this._cleanup){this._cleanup();this._cleanup=null}}render(){return o(e,{class:"p-popover"},o("slot",{name:"trigger"}),o("div",{class:"popover-container"},o("div",{class:`popover variant-${this.variant}`,role:"popover","data-placement":this.placement,"data-strategy":this.strategy,ref:t=>this._load(t)},this.content?this.content:o("slot",{name:"content"}),o("div",{class:"arrow"}))))}clickHandler(){if(this.variant==="hover"||!this.enableUserInput){return}if(this._popover.hasAttribute("data-show")){return}this._show()}documentClickHandler(){if(this.variant==="hover"||!this.canManuallyClose||this.show){return}if(!this._popover.hasAttribute("data-show")){return}this._hide()}mouseEnterHandler(){if(this.variant!=="hover"||!this.enableUserInput){return}this._show()}mouseLeaveHandler(){if(this.show||this.variant!=="hover"||!this.enableUserInput){return}this._hide()}onShowChange(t){if(t&&!this._popover.hasAttribute("data-show")){return this._show()}return this._hide()}_show(){var t;if(!this._loaded){return}if(!((t=this.content)===null||t===void 0?void 0:t.length)&&!this._hasContentSlot){if(this._popover.hasAttribute("data-show")){this._hide()}return}this._cleanup=i(this._el,this._popover,(()=>this._update()));this._popover.setAttribute("data-show","");this.isOpen.emit(true)}_hide(){if(!this._loaded){return}if(this._cleanup){this._cleanup();this._cleanup=null}this._popover.removeAttribute("data-show");this.isOpen.emit(false)}_load(t){this._popover=t;if(t){this._update();this._loaded=true;if(this.show){setTimeout((()=>this._show()),100)}}}_update(){if(!this._popover){return}const t=this._popover.querySelector(".arrow");if(!t){return}s(this._el,this._popover,{placement:this.variant==="error"||this.variant==="error-element"?"top-end":this.placement,strategy:this.strategy,middleware:[n(this.variant==="error"?14:this.offset),p(),h(),l({element:t,padding:8})]}).then((({x:r,y:o,placement:e,middlewareData:a})=>{this._popover.dataset.placement=e;Object.assign(this._popover.style,{top:`${o}px`,left:`${r}px`});if(a.arrow){const{x:r,y:o}=a.arrow;Object.assign(t.style,{left:this.variant==="error"||this.variant==="error-element"?e.indexOf("start")>=0?"1rem":"calc(100% - 1rem)":r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}))}get _el(){return a(this)}static get watchers(){return{show:["onShowChange"]}}};c.style=v;export{c as p_tooltip};
|
|
2
|
+
//# sourceMappingURL=p-64aff6f3.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as r,H as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as r,H as i}from"./p-0c2cc6c4.js";const e=".absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-0{top:0!important}.order-2{order:2!important}.ml-0{margin-left:0!important}.mr-4{margin-right:1rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.min-h-\\[1rem\\]{min-height:1rem!important}.w-4{width:1rem!important}.w-full{width:100%!important}.min-w-\\[calc\\(100\\%-2rem\\)\\]{min-width:calc(100% - 2rem)!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-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))!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.bg-mystic-dark{--tw-bg-opacity:1!important;background-color:rgb(218 230 240/var(--tw-bg-opacity))!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{align-items:flex-end;display:flex;justify-content:center;position:relative;width:100%}:host .content{--tw-text-opacity:1;color:rgb(176 178 203/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;min-width:calc(100% - 2rem);white-space:nowrap}:host .circle{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(218 230 240/var(--tw-bg-opacity));border-radius:100%;color:rgb(255 255 255/var(--tw-text-opacity));display:flex;flex-shrink:0;height:1rem;justify-content:center;transition-duration:.5s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1rem}:host .circle p-icon{display:flex!important;font-size:.625rem}:host([direction=horizontal]){flex:0;height:2.5rem}:host([direction=horizontal]) .content{min-width:0;order:1;position:absolute;top:0}:host([direction=horizontal]) .circle{order:2}:host([direction=vertical]){align-items:center;min-height:1rem}:host([direction=vertical]) .content{margin-left:1rem;order:2}:host([direction=vertical]) .circle{order:1}:host([active]) .content,:host([finished]) .content{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}:host([active]) .circle,:host([finished]) .circle{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}:host([direction=horizontal][align=start]) .content{left:0}:host([direction=horizontal][align=end]) .content{right:0}:host([direction=horizontal][align=center]) .content{--tw-translate-x:-50%;left:50%;text-align:center;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))}:host([direction=vertical][content-position=start]){flex-direction:row-reverse}:host([direction=vertical][content-position=start]) .content{display:flex;justify-content:flex-end;margin-left:0;margin-right:1rem}.static{position:static!important}";const o=class{constructor(r){t(this,r);this.align="center";this.direction="horizontal";this.contentPosition="end";this.finished=false;this.active=false}render(){return r(i,{class:"p-stepper-item"},r("div",{class:"circle"},this.finished&&r("p-icon",{variant:"checkmark"})),r("div",{class:"content"},r("slot",{name:"content"})))}};o.style=e;export{o as p_stepper_item};
|
|
2
|
+
//# sourceMappingURL=p-744f5a41.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as r,H as o}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as r,H as o}from"./p-0c2cc6c4.js";const i=".mb-\\[calc\\(\\.5rem-1px\\)\\]{margin-bottom:calc(.5rem - 1px)!important}.ml-\\[calc\\(\\.5rem-1px\\)\\]{margin-left:calc(.5rem - 1px)!important}.mr-\\[calc\\(\\.5rem-1px\\)\\]{margin-right:calc(.5rem - 1px)!important}.block{display:block!important}.h-\\[2px\\]{height:2px!important}.min-h-\\[1rem\\]{min-height:1rem!important}.w-\\[2px\\]{width:2px!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));display:block;flex:1 1 auto;transition-duration:.5s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([direction=horizontal]){height:2px;margin-bottom:calc(.5rem - 1px)}:host([direction=vertical]){margin-left:calc(.5rem - 1px);margin-right:calc(.5rem - 1px);min-height:1rem;width:2px}:host([active]){--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}.static{position:static!important}";const a=class{constructor(r){t(this,r);this.active=false;this.direction="horizontal"}render(){return r(o,{class:"p-stepper-line"})}};a.style=i;export{a as p_stepper_line};
|
|
2
|
+
//# sourceMappingURL=p-7f41fb25.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e,H as o,g as p}from"./p-0c2cc6c4.js";const i=".inline-block{display:inline-block!important}.w-3{width:.75rem!important}.cursor-pointer{cursor:pointer!important}.bg-center{background-position:50%!important}.bg-no-repeat{background-repeat:no-repeat!important}*{box-sizing:border-box}:host .helper{background-image:url(/assets/images/helper/helper.svg);background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:.75rem;width:.75rem}:host .helper:hover{background-image:url(/assets/images/helper/helper-hover.svg)}.static{position:static!important}.absolute{position:absolute!important}";const r=class{constructor(e){t(this,e);this.strategy="absolute";this.placement="top"}render(){return e(o,{class:"p-helper"},e("p-tooltip",{placement:this.placement,strategy:this.strategy},e("div",{slot:"content"},e("slot",null)),e("div",{slot:"trigger",class:"helper"})))}};r.style=i;const s=class{constructor(e){t(this,e);this.error=undefined;this.forceShowTooltip=false;this._showTooltip=false}render(){return e(o,{class:"p-input-error"},e("p-tooltip",{variant:"error",content:this.error,show:this.forceShowTooltip,onIsOpen:t=>this._showTooltip=t.detail},e("p-icon",{class:`${this._showTooltip?"text-negative":"text-negative-light"} hover:text-negative`,slot:"trigger",variant:"explanation"})))}};const n=".mb-\\[2px\\]{margin-bottom:2px!important}.box-border{box-sizing:border-box!important}.flex{display:flex!important}.h-8{height:2rem!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-br-none{border-bottom-right-radius:0!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tr-none{border-top-right-radius:0!important}.border-b{border-bottom-width:1px!important}.border-l{border-left-width:1px!important}.border-l-0{border-left-width:0!important}.border-r{border-right-width:1px!important}.border-r-0{border-right-width:0!important}.border-solid{border-style:solid!important}.border-indigo{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.border-negative{--tw-border-opacity:1!important;border-color:rgb(185 30 40/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.py-\\[calc\\(0\\.75rem-1px\\)\\]{padding-bottom:calc(.75rem - 1px)!important;padding-top:calc(.75rem - 1px)!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.tracking-wider{letter-spacing:.05em!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;outline:2px solid transparent!important;outline-offset:2px!important;width:100%}:host .input-label{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.75rem;font-weight:600;letter-spacing:.05em;line-height:1rem;margin-bottom:2px;text-transform:uppercase}:host .input-header{align-items:flex-end;display:flex;gap:.5rem;margin-bottom:2px}:host .content{display:flex;width:100%}:host .content .prefix,:host .content .suffix{--tw-bg-opacity:1;--tw-border-opacity:1!important;--tw-text-opacity:1;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-radius:.375rem;border-style:solid!important;border-width:1px;box-sizing:border-box;color:rgb(39 40 56/var(--tw-text-opacity));color:rgb(81 83 107/var(--tw-text-opacity));display:flex;flex:1 1 0%;font-size:1rem;height:100%;justify-content:flex-start;line-height:1.5rem;outline:2px solid transparent!important;outline-offset:2px!important;padding-left:1rem;padding-right:1rem;width:100%!important}:host .content .prefix::-moz-placeholder,:host .content .suffix::-moz-placeholder{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem}:host .content .prefix::placeholder,:host .content .suffix::placeholder{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem}:host .content .prefix.active,:host .content .prefix.focus,:host .content .prefix:focus,:host .content .prefix:focus-visible,:host .content .prefix:focus-within,:host .content .prefix[active],:host .content .suffix.active,:host .content .suffix.focus,:host .content .suffix:focus,:host .content .suffix:focus-visible,:host .content .suffix:focus-within,:host .content .suffix[active]{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important;outline:2px solid transparent!important;outline-offset:2px!important}:host .content .prefix.size-small,:host .content .suffix.size-small{font-size:.875rem;line-height:1.25rem}:host .content .prefix.size-small::-moz-placeholder,:host .content .suffix.size-small::-moz-placeholder{font-size:.875rem;line-height:1.25rem}:host .content .prefix.size-small::placeholder,:host .content .suffix.size-small::placeholder{font-size:.875rem;line-height:1.25rem}:host .content .prefix{border-bottom-right-radius:0;border-right-width:0!important;border-top-right-radius:0;order:1;padding-right:.5rem}:host .content .suffix{border-bottom-left-radius:0;border-left-width:0!important;border-top-left-radius:0;order:3;padding-left:.5rem}:host .content ::slotted(div[contenteditable].p-input),:host .content ::slotted(input[type=date].p-input),:host .content ::slotted(input[type=datetime-local].p-input),:host .content ::slotted(input[type=email].p-input),:host .content ::slotted(input[type=month].p-input),:host .content ::slotted(input[type=number].p-input),:host .content ::slotted(input[type=password].p-input),:host .content ::slotted(input[type=tel].p-input),:host .content ::slotted(input[type=text].p-input),:host .content ::slotted(input[type=time].p-input),:host .content ::slotted(textarea.p-input){--tw-text-opacity:1;--tw-bg-opacity:1;--tw-border-opacity:1!important;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-radius:.375rem;border-style:solid!important;border-width:1px;color:rgb(39 40 56/var(--tw-text-opacity));display:flex;font-size:1rem;height:2.5rem;justify-content:flex-start;line-height:1.5rem;order:2;outline:2px solid transparent!important;outline-offset:2px!important;padding-left:1rem;padding-right:1rem;width:100%!important}:host .content ::slotted(div[contenteditable].p-input)::-moz-placeholder,:host .content ::slotted(input[type=date].p-input)::-moz-placeholder,:host .content ::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host .content ::slotted(input[type=email].p-input)::-moz-placeholder,:host .content ::slotted(input[type=month].p-input)::-moz-placeholder,:host .content ::slotted(input[type=number].p-input)::-moz-placeholder,:host .content ::slotted(input[type=password].p-input)::-moz-placeholder,:host .content ::slotted(input[type=tel].p-input)::-moz-placeholder,:host .content ::slotted(input[type=text].p-input)::-moz-placeholder,:host .content ::slotted(input[type=time].p-input)::-moz-placeholder,:host .content ::slotted(textarea.p-input)::-moz-placeholder{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem}:host .content ::slotted(div[contenteditable].p-input)::placeholder,:host .content ::slotted(input[type=date].p-input)::placeholder,:host .content ::slotted(input[type=datetime-local].p-input)::placeholder,:host .content ::slotted(input[type=email].p-input)::placeholder,:host .content ::slotted(input[type=month].p-input)::placeholder,:host .content ::slotted(input[type=number].p-input)::placeholder,:host .content ::slotted(input[type=password].p-input)::placeholder,:host .content ::slotted(input[type=tel].p-input)::placeholder,:host .content ::slotted(input[type=text].p-input)::placeholder,:host .content ::slotted(input[type=time].p-input)::placeholder,:host .content ::slotted(textarea.p-input)::placeholder{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem}:host .content .active::slotted(div[contenteditable].p-input),:host .content .active::slotted(input[type=date].p-input),:host .content .active::slotted(input[type=datetime-local].p-input),:host .content .active::slotted(input[type=email].p-input),:host .content .active::slotted(input[type=month].p-input),:host .content .active::slotted(input[type=number].p-input),:host .content .active::slotted(input[type=password].p-input),:host .content .active::slotted(input[type=tel].p-input),:host .content .active::slotted(input[type=text].p-input),:host .content .active::slotted(input[type=time].p-input),:host .content .active::slotted(textarea.p-input),:host .content .focus::slotted(div[contenteditable].p-input),:host .content .focus::slotted(input[type=date].p-input),:host .content .focus::slotted(input[type=datetime-local].p-input),:host .content .focus::slotted(input[type=email].p-input),:host .content .focus::slotted(input[type=month].p-input),:host .content .focus::slotted(input[type=number].p-input),:host .content .focus::slotted(input[type=password].p-input),:host .content .focus::slotted(input[type=tel].p-input),:host .content .focus::slotted(input[type=text].p-input),:host .content .focus::slotted(input[type=time].p-input),:host .content .focus::slotted(textarea.p-input),:host .content :focus-visible::slotted(div[contenteditable].p-input),:host .content :focus-visible::slotted(input[type=date].p-input),:host .content :focus-visible::slotted(input[type=datetime-local].p-input),:host .content :focus-visible::slotted(input[type=email].p-input),:host .content :focus-visible::slotted(input[type=month].p-input),:host .content :focus-visible::slotted(input[type=number].p-input),:host .content :focus-visible::slotted(input[type=password].p-input),:host .content :focus-visible::slotted(input[type=tel].p-input),:host .content :focus-visible::slotted(input[type=text].p-input),:host .content :focus-visible::slotted(input[type=time].p-input),:host .content :focus-visible::slotted(textarea.p-input),:host .content :focus-within::slotted(div[contenteditable].p-input),:host .content :focus-within::slotted(input[type=date].p-input),:host .content :focus-within::slotted(input[type=datetime-local].p-input),:host .content :focus-within::slotted(input[type=email].p-input),:host .content :focus-within::slotted(input[type=month].p-input),:host .content :focus-within::slotted(input[type=number].p-input),:host .content :focus-within::slotted(input[type=password].p-input),:host .content :focus-within::slotted(input[type=tel].p-input),:host .content :focus-within::slotted(input[type=text].p-input),:host .content :focus-within::slotted(input[type=time].p-input),:host .content :focus-within::slotted(textarea.p-input),:host .content :focus::slotted(div[contenteditable].p-input),:host .content :focus::slotted(input[type=date].p-input),:host .content :focus::slotted(input[type=datetime-local].p-input),:host .content :focus::slotted(input[type=email].p-input),:host .content :focus::slotted(input[type=month].p-input),:host .content :focus::slotted(input[type=number].p-input),:host .content :focus::slotted(input[type=password].p-input),:host .content :focus::slotted(input[type=tel].p-input),:host .content :focus::slotted(input[type=text].p-input),:host .content :focus::slotted(input[type=time].p-input),:host .content :focus::slotted(textarea.p-input),:host .content [active]::slotted(div[contenteditable].p-input),:host .content [active]::slotted(input[type=date].p-input),:host .content [active]::slotted(input[type=datetime-local].p-input),:host .content [active]::slotted(input[type=email].p-input),:host .content [active]::slotted(input[type=month].p-input),:host .content [active]::slotted(input[type=number].p-input),:host .content [active]::slotted(input[type=password].p-input),:host .content [active]::slotted(input[type=tel].p-input),:host .content [active]::slotted(input[type=text].p-input),:host .content [active]::slotted(input[type=time].p-input),:host .content [active]::slotted(textarea.p-input){--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important;outline:2px solid transparent!important;outline-offset:2px!important}:host .content .size-small::slotted(div[contenteditable].p-input),:host .content .size-small::slotted(input[type=date].p-input),:host .content .size-small::slotted(input[type=datetime-local].p-input),:host .content .size-small::slotted(input[type=email].p-input),:host .content .size-small::slotted(input[type=month].p-input),:host .content .size-small::slotted(input[type=number].p-input),:host .content .size-small::slotted(input[type=password].p-input),:host .content .size-small::slotted(input[type=tel].p-input),:host .content .size-small::slotted(input[type=text].p-input),:host .content .size-small::slotted(input[type=time].p-input),:host .content .size-small::slotted(textarea.p-input){font-size:.875rem;height:2rem!important;line-height:1.25rem}:host .content .size-small::slotted(div[contenteditable].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=date].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=email].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=month].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=number].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=password].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=tel].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=text].p-input)::-moz-placeholder,:host .content .size-small::slotted(input[type=time].p-input)::-moz-placeholder,:host .content .size-small::slotted(textarea.p-input)::-moz-placeholder{font-size:.875rem;line-height:1.25rem}:host .content .size-small::slotted(div[contenteditable].p-input)::placeholder,:host .content .size-small::slotted(input[type=date].p-input)::placeholder,:host .content .size-small::slotted(input[type=datetime-local].p-input)::placeholder,:host .content .size-small::slotted(input[type=email].p-input)::placeholder,:host .content .size-small::slotted(input[type=month].p-input)::placeholder,:host .content .size-small::slotted(input[type=number].p-input)::placeholder,:host .content .size-small::slotted(input[type=password].p-input)::placeholder,:host .content .size-small::slotted(input[type=tel].p-input)::placeholder,:host .content .size-small::slotted(input[type=text].p-input)::placeholder,:host .content .size-small::slotted(input[type=time].p-input)::placeholder,:host .content .size-small::slotted(textarea.p-input)::placeholder{font-size:.875rem;line-height:1.25rem}:host .content .prefix+::slotted(div[contenteditable].p-input),:host .content .prefix+::slotted(input[type=date].p-input),:host .content .prefix+::slotted(input[type=datetime-local].p-input),:host .content .prefix+::slotted(input[type=email].p-input),:host .content .prefix+::slotted(input[type=month].p-input),:host .content .prefix+::slotted(input[type=number].p-input),:host .content .prefix+::slotted(input[type=password].p-input),:host .content .prefix+::slotted(input[type=tel].p-input),:host .content .prefix+::slotted(input[type=text].p-input),:host .content .prefix+::slotted(input[type=time].p-input),:host .content .prefix+::slotted(textarea.p-input){border-bottom-left-radius:0!important;border-left-width:0!important;border-top-left-radius:0!important;flex:1 1 auto;padding-left:0!important}:host .content .suffix+::slotted(div[contenteditable].p-input),:host .content .suffix+::slotted(input[type=date].p-input),:host .content .suffix+::slotted(input[type=datetime-local].p-input),:host .content .suffix+::slotted(input[type=email].p-input),:host .content .suffix+::slotted(input[type=month].p-input),:host .content .suffix+::slotted(input[type=number].p-input),:host .content .suffix+::slotted(input[type=password].p-input),:host .content .suffix+::slotted(input[type=tel].p-input),:host .content .suffix+::slotted(input[type=text].p-input),:host .content .suffix+::slotted(input[type=time].p-input),:host .content .suffix+::slotted(textarea.p-input){border-bottom-right-radius:0!important;border-right-width:0!important;border-top-right-radius:0!important;flex:1 1 auto;padding-right:0!important}:host(.focused),:host(:focus),:host(:focus-within),:host([focused]){outline:2px solid transparent!important;outline-offset:2px!important}:host(.focused) .prefix,:host(.focused) .suffix,:host(:focus) .prefix,:host(:focus) .suffix,:host(:focus-within) .prefix,:host(:focus-within) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{--tw-border-opacity:1!important;--tw-text-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity))!important;color:rgb(82 138 250/var(--tw-text-opacity));outline:2px solid transparent!important;outline-offset:2px!important}:host(.focused) ::slotted(div[contenteditable].p-input),:host(.focused) ::slotted(input[type=date].p-input),:host(.focused) ::slotted(input[type=datetime-local].p-input),:host(.focused) ::slotted(input[type=email].p-input),:host(.focused) ::slotted(input[type=month].p-input),:host(.focused) ::slotted(input[type=number].p-input),:host(.focused) ::slotted(input[type=password].p-input),:host(.focused) ::slotted(input[type=tel].p-input),:host(.focused) ::slotted(input[type=text].p-input),:host(.focused) ::slotted(input[type=time].p-input),:host(.focused) ::slotted(textarea.p-input),:host(:focus) ::slotted(div[contenteditable].p-input),:host(:focus) ::slotted(input[type=date].p-input),:host(:focus) ::slotted(input[type=datetime-local].p-input),:host(:focus) ::slotted(input[type=email].p-input),:host(:focus) ::slotted(input[type=month].p-input),:host(:focus) ::slotted(input[type=number].p-input),:host(:focus) ::slotted(input[type=password].p-input),:host(:focus) ::slotted(input[type=tel].p-input),:host(:focus) ::slotted(input[type=text].p-input),:host(:focus) ::slotted(input[type=time].p-input),:host(:focus) ::slotted(textarea.p-input),:host(:focus-within) ::slotted(div[contenteditable].p-input),:host(:focus-within) ::slotted(input[type=date].p-input),:host(:focus-within) ::slotted(input[type=datetime-local].p-input),:host(:focus-within) ::slotted(input[type=email].p-input),:host(:focus-within) ::slotted(input[type=month].p-input),:host(:focus-within) ::slotted(input[type=number].p-input),:host(:focus-within) ::slotted(input[type=password].p-input),:host(:focus-within) ::slotted(input[type=tel].p-input),:host(:focus-within) ::slotted(input[type=text].p-input),:host(:focus-within) ::slotted(input[type=time].p-input),:host(:focus-within) ::slotted(textarea.p-input),:host([focused]) ::slotted(div[contenteditable].p-input),:host([focused]) ::slotted(input[type=date].p-input),:host([focused]) ::slotted(input[type=datetime-local].p-input),:host([focused]) ::slotted(input[type=email].p-input),:host([focused]) ::slotted(input[type=month].p-input),:host([focused]) ::slotted(input[type=number].p-input),:host([focused]) ::slotted(input[type=password].p-input),:host([focused]) ::slotted(input[type=tel].p-input),:host([focused]) ::slotted(input[type=text].p-input),:host([focused]) ::slotted(input[type=time].p-input),:host([focused]) ::slotted(textarea.p-input){--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important;outline:2px solid transparent!important;outline-offset:2px!important}:host(.error) .prefix,:host(.error) .suffix,:host([error]) .prefix,:host([error]) .suffix{--tw-border-opacity:1!important;--tw-text-opacity:1;border-color:rgb(185 30 40/var(--tw-border-opacity))!important;color:rgb(138 15 29/var(--tw-text-opacity));color:rgb(185 30 40/var(--tw-text-opacity))}:host(.error) .prefix::-moz-placeholder,:host(.error) .suffix::-moz-placeholder,:host([error]) .prefix::-moz-placeholder,:host([error]) .suffix::-moz-placeholder{--tw-text-opacity:1;color:rgb(255 204 211/var(--tw-text-opacity))}:host(.error) .prefix::placeholder,:host(.error) .suffix::placeholder,:host([error]) .prefix::placeholder,:host([error]) .suffix::placeholder{--tw-text-opacity:1;color:rgb(255 204 211/var(--tw-text-opacity))}:host(.error) .suffix,:host([error]) .suffix{align-items:flex-start;padding-bottom:calc(.75rem - 1px);padding-top:calc(.75rem - 1px)}:host(.error) ::slotted(div[contenteditable].p-input),:host(.error) ::slotted(input[type=date].p-input),:host(.error) ::slotted(input[type=datetime-local].p-input),:host(.error) ::slotted(input[type=email].p-input),:host(.error) ::slotted(input[type=month].p-input),:host(.error) ::slotted(input[type=number].p-input),:host(.error) ::slotted(input[type=password].p-input),:host(.error) ::slotted(input[type=tel].p-input),:host(.error) ::slotted(input[type=text].p-input),:host(.error) ::slotted(input[type=time].p-input),:host(.error) ::slotted(textarea.p-input),:host([error]) ::slotted(div[contenteditable].p-input),:host([error]) ::slotted(input[type=date].p-input),:host([error]) ::slotted(input[type=datetime-local].p-input),:host([error]) ::slotted(input[type=email].p-input),:host([error]) ::slotted(input[type=month].p-input),:host([error]) ::slotted(input[type=number].p-input),:host([error]) ::slotted(input[type=password].p-input),:host([error]) ::slotted(input[type=tel].p-input),:host([error]) ::slotted(input[type=text].p-input),:host([error]) ::slotted(input[type=time].p-input),:host([error]) ::slotted(textarea.p-input){--tw-text-opacity:1;--tw-border-opacity:1!important;border-color:rgb(185 30 40/var(--tw-border-opacity))!important;color:rgb(138 15 29/var(--tw-text-opacity))}:host(.error) ::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) ::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) ::slotted(textarea.p-input)::-moz-placeholder,:host([error]) ::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) ::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) ::slotted(textarea.p-input)::-moz-placeholder{--tw-text-opacity:1;color:rgb(255 204 211/var(--tw-text-opacity))}:host(.error) ::slotted(div[contenteditable].p-input)::placeholder,:host(.error) ::slotted(input[type=date].p-input)::placeholder,:host(.error) ::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) ::slotted(input[type=email].p-input)::placeholder,:host(.error) ::slotted(input[type=month].p-input)::placeholder,:host(.error) ::slotted(input[type=number].p-input)::placeholder,:host(.error) ::slotted(input[type=password].p-input)::placeholder,:host(.error) ::slotted(input[type=tel].p-input)::placeholder,:host(.error) ::slotted(input[type=text].p-input)::placeholder,:host(.error) ::slotted(input[type=time].p-input)::placeholder,:host(.error) ::slotted(textarea.p-input)::placeholder,:host([error]) ::slotted(div[contenteditable].p-input)::placeholder,:host([error]) ::slotted(input[type=date].p-input)::placeholder,:host([error]) ::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) ::slotted(input[type=email].p-input)::placeholder,:host([error]) ::slotted(input[type=month].p-input)::placeholder,:host([error]) ::slotted(input[type=number].p-input)::placeholder,:host([error]) ::slotted(input[type=password].p-input)::placeholder,:host([error]) ::slotted(input[type=tel].p-input)::placeholder,:host([error]) ::slotted(input[type=text].p-input)::placeholder,:host([error]) ::slotted(input[type=time].p-input)::placeholder,:host([error]) ::slotted(textarea.p-input)::placeholder{--tw-text-opacity:1;color:rgb(255 204 211/var(--tw-text-opacity))}:host(.error) .active::slotted(div[contenteditable].p-input),:host(.error) .active::slotted(input[type=date].p-input),:host(.error) .active::slotted(input[type=datetime-local].p-input),:host(.error) .active::slotted(input[type=email].p-input),:host(.error) .active::slotted(input[type=month].p-input),:host(.error) .active::slotted(input[type=number].p-input),:host(.error) .active::slotted(input[type=password].p-input),:host(.error) .active::slotted(input[type=tel].p-input),:host(.error) .active::slotted(input[type=text].p-input),:host(.error) .active::slotted(input[type=time].p-input),:host(.error) .active::slotted(textarea.p-input),:host(.error) .focus::slotted(div[contenteditable].p-input),:host(.error) .focus::slotted(input[type=date].p-input),:host(.error) .focus::slotted(input[type=datetime-local].p-input),:host(.error) .focus::slotted(input[type=email].p-input),:host(.error) .focus::slotted(input[type=month].p-input),:host(.error) .focus::slotted(input[type=number].p-input),:host(.error) .focus::slotted(input[type=password].p-input),:host(.error) .focus::slotted(input[type=tel].p-input),:host(.error) .focus::slotted(input[type=text].p-input),:host(.error) .focus::slotted(input[type=time].p-input),:host(.error) .focus::slotted(textarea.p-input),:host(.error) :focus-visible::slotted(div[contenteditable].p-input),:host(.error) :focus-visible::slotted(input[type=date].p-input),:host(.error) :focus-visible::slotted(input[type=datetime-local].p-input),:host(.error) :focus-visible::slotted(input[type=email].p-input),:host(.error) :focus-visible::slotted(input[type=month].p-input),:host(.error) :focus-visible::slotted(input[type=number].p-input),:host(.error) :focus-visible::slotted(input[type=password].p-input),:host(.error) :focus-visible::slotted(input[type=tel].p-input),:host(.error) :focus-visible::slotted(input[type=text].p-input),:host(.error) :focus-visible::slotted(input[type=time].p-input),:host(.error) :focus-visible::slotted(textarea.p-input),:host(.error) :focus-within::slotted(div[contenteditable].p-input),:host(.error) :focus-within::slotted(input[type=date].p-input),:host(.error) :focus-within::slotted(input[type=datetime-local].p-input),:host(.error) :focus-within::slotted(input[type=email].p-input),:host(.error) :focus-within::slotted(input[type=month].p-input),:host(.error) :focus-within::slotted(input[type=number].p-input),:host(.error) :focus-within::slotted(input[type=password].p-input),:host(.error) :focus-within::slotted(input[type=tel].p-input),:host(.error) :focus-within::slotted(input[type=text].p-input),:host(.error) :focus-within::slotted(input[type=time].p-input),:host(.error) :focus-within::slotted(textarea.p-input),:host(.error) :focus::slotted(div[contenteditable].p-input),:host(.error) :focus::slotted(input[type=date].p-input),:host(.error) :focus::slotted(input[type=datetime-local].p-input),:host(.error) :focus::slotted(input[type=email].p-input),:host(.error) :focus::slotted(input[type=month].p-input),:host(.error) :focus::slotted(input[type=number].p-input),:host(.error) :focus::slotted(input[type=password].p-input),:host(.error) :focus::slotted(input[type=tel].p-input),:host(.error) :focus::slotted(input[type=text].p-input),:host(.error) :focus::slotted(input[type=time].p-input),:host(.error) :focus::slotted(textarea.p-input),:host(.error) [active]::slotted(div[contenteditable].p-input),:host(.error) [active]::slotted(input[type=date].p-input),:host(.error) [active]::slotted(input[type=datetime-local].p-input),:host(.error) [active]::slotted(input[type=email].p-input),:host(.error) [active]::slotted(input[type=month].p-input),:host(.error) [active]::slotted(input[type=number].p-input),:host(.error) [active]::slotted(input[type=password].p-input),:host(.error) [active]::slotted(input[type=tel].p-input),:host(.error) [active]::slotted(input[type=text].p-input),:host(.error) [active]::slotted(input[type=time].p-input),:host(.error) [active]::slotted(textarea.p-input),:host([error]) .active::slotted(div[contenteditable].p-input),:host([error]) .active::slotted(input[type=date].p-input),:host([error]) .active::slotted(input[type=datetime-local].p-input),:host([error]) .active::slotted(input[type=email].p-input),:host([error]) .active::slotted(input[type=month].p-input),:host([error]) .active::slotted(input[type=number].p-input),:host([error]) .active::slotted(input[type=password].p-input),:host([error]) .active::slotted(input[type=tel].p-input),:host([error]) .active::slotted(input[type=text].p-input),:host([error]) .active::slotted(input[type=time].p-input),:host([error]) .active::slotted(textarea.p-input),:host([error]) .focus::slotted(div[contenteditable].p-input),:host([error]) .focus::slotted(input[type=date].p-input),:host([error]) .focus::slotted(input[type=datetime-local].p-input),:host([error]) .focus::slotted(input[type=email].p-input),:host([error]) .focus::slotted(input[type=month].p-input),:host([error]) .focus::slotted(input[type=number].p-input),:host([error]) .focus::slotted(input[type=password].p-input),:host([error]) .focus::slotted(input[type=tel].p-input),:host([error]) .focus::slotted(input[type=text].p-input),:host([error]) .focus::slotted(input[type=time].p-input),:host([error]) .focus::slotted(textarea.p-input),:host([error]) :focus-visible::slotted(div[contenteditable].p-input),:host([error]) :focus-visible::slotted(input[type=date].p-input),:host([error]) :focus-visible::slotted(input[type=datetime-local].p-input),:host([error]) :focus-visible::slotted(input[type=email].p-input),:host([error]) :focus-visible::slotted(input[type=month].p-input),:host([error]) :focus-visible::slotted(input[type=number].p-input),:host([error]) :focus-visible::slotted(input[type=password].p-input),:host([error]) :focus-visible::slotted(input[type=tel].p-input),:host([error]) :focus-visible::slotted(input[type=text].p-input),:host([error]) :focus-visible::slotted(input[type=time].p-input),:host([error]) :focus-visible::slotted(textarea.p-input),:host([error]) :focus-within::slotted(div[contenteditable].p-input),:host([error]) :focus-within::slotted(input[type=date].p-input),:host([error]) :focus-within::slotted(input[type=datetime-local].p-input),:host([error]) :focus-within::slotted(input[type=email].p-input),:host([error]) :focus-within::slotted(input[type=month].p-input),:host([error]) :focus-within::slotted(input[type=number].p-input),:host([error]) :focus-within::slotted(input[type=password].p-input),:host([error]) :focus-within::slotted(input[type=tel].p-input),:host([error]) :focus-within::slotted(input[type=text].p-input),:host([error]) :focus-within::slotted(input[type=time].p-input),:host([error]) :focus-within::slotted(textarea.p-input),:host([error]) :focus::slotted(div[contenteditable].p-input),:host([error]) :focus::slotted(input[type=date].p-input),:host([error]) :focus::slotted(input[type=datetime-local].p-input),:host([error]) :focus::slotted(input[type=email].p-input),:host([error]) :focus::slotted(input[type=month].p-input),:host([error]) :focus::slotted(input[type=number].p-input),:host([error]) :focus::slotted(input[type=password].p-input),:host([error]) :focus::slotted(input[type=tel].p-input),:host([error]) :focus::slotted(input[type=text].p-input),:host([error]) :focus::slotted(input[type=time].p-input),:host([error]) :focus::slotted(textarea.p-input),:host([error]) [active]::slotted(div[contenteditable].p-input),:host([error]) [active]::slotted(input[type=date].p-input),:host([error]) [active]::slotted(input[type=datetime-local].p-input),:host([error]) [active]::slotted(input[type=email].p-input),:host([error]) [active]::slotted(input[type=month].p-input),:host([error]) [active]::slotted(input[type=number].p-input),:host([error]) [active]::slotted(input[type=password].p-input),:host([error]) [active]::slotted(input[type=tel].p-input),:host([error]) [active]::slotted(input[type=text].p-input),:host([error]) [active]::slotted(input[type=time].p-input),:host([error]) [active]::slotted(textarea.p-input){--tw-text-opacity:1;--tw-border-opacity:1!important;border-color:rgb(185 30 40/var(--tw-border-opacity))!important;color:rgb(138 15 29/var(--tw-text-opacity))}:host(.error) .active::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) .active::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) .active::slotted(textarea.p-input)::-moz-placeholder,:host(.error) .focus::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) .focus::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) .focus::slotted(textarea.p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) :focus-visible::slotted(textarea.p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) :focus-within::slotted(textarea.p-input)::-moz-placeholder,:host(.error) :focus::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) :focus::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) :focus::slotted(textarea.p-input)::-moz-placeholder,:host(.error) [active]::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=date].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=email].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=month].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=number].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=password].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=text].p-input)::-moz-placeholder,:host(.error) [active]::slotted(input[type=time].p-input)::-moz-placeholder,:host(.error) [active]::slotted(textarea.p-input)::-moz-placeholder,:host([error]) .active::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) .active::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) .active::slotted(textarea.p-input)::-moz-placeholder,:host([error]) .focus::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) .focus::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) .focus::slotted(textarea.p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) :focus-visible::slotted(textarea.p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) :focus-within::slotted(textarea.p-input)::-moz-placeholder,:host([error]) :focus::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) :focus::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) :focus::slotted(textarea.p-input)::-moz-placeholder,:host([error]) [active]::slotted(div[contenteditable].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=date].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=email].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=month].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=number].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=password].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=tel].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=text].p-input)::-moz-placeholder,:host([error]) [active]::slotted(input[type=time].p-input)::-moz-placeholder,:host([error]) [active]::slotted(textarea.p-input)::-moz-placeholder{--tw-text-opacity:1;color:rgb(255 204 211/var(--tw-text-opacity))}:host(.error) .active::slotted(div[contenteditable].p-input)::placeholder,:host(.error) .active::slotted(input[type=date].p-input)::placeholder,:host(.error) .active::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) .active::slotted(input[type=email].p-input)::placeholder,:host(.error) .active::slotted(input[type=month].p-input)::placeholder,:host(.error) .active::slotted(input[type=number].p-input)::placeholder,:host(.error) .active::slotted(input[type=password].p-input)::placeholder,:host(.error) .active::slotted(input[type=tel].p-input)::placeholder,:host(.error) .active::slotted(input[type=text].p-input)::placeholder,:host(.error) .active::slotted(input[type=time].p-input)::placeholder,:host(.error) .active::slotted(textarea.p-input)::placeholder,:host(.error) .focus::slotted(div[contenteditable].p-input)::placeholder,:host(.error) .focus::slotted(input[type=date].p-input)::placeholder,:host(.error) .focus::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) .focus::slotted(input[type=email].p-input)::placeholder,:host(.error) .focus::slotted(input[type=month].p-input)::placeholder,:host(.error) .focus::slotted(input[type=number].p-input)::placeholder,:host(.error) .focus::slotted(input[type=password].p-input)::placeholder,:host(.error) .focus::slotted(input[type=tel].p-input)::placeholder,:host(.error) .focus::slotted(input[type=text].p-input)::placeholder,:host(.error) .focus::slotted(input[type=time].p-input)::placeholder,:host(.error) .focus::slotted(textarea.p-input)::placeholder,:host(.error) :focus-visible::slotted(div[contenteditable].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=date].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=email].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=month].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=number].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=password].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=tel].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=text].p-input)::placeholder,:host(.error) :focus-visible::slotted(input[type=time].p-input)::placeholder,:host(.error) :focus-visible::slotted(textarea.p-input)::placeholder,:host(.error) :focus-within::slotted(div[contenteditable].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=date].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=email].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=month].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=number].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=password].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=tel].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=text].p-input)::placeholder,:host(.error) :focus-within::slotted(input[type=time].p-input)::placeholder,:host(.error) :focus-within::slotted(textarea.p-input)::placeholder,:host(.error) :focus::slotted(div[contenteditable].p-input)::placeholder,:host(.error) :focus::slotted(input[type=date].p-input)::placeholder,:host(.error) :focus::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) :focus::slotted(input[type=email].p-input)::placeholder,:host(.error) :focus::slotted(input[type=month].p-input)::placeholder,:host(.error) :focus::slotted(input[type=number].p-input)::placeholder,:host(.error) :focus::slotted(input[type=password].p-input)::placeholder,:host(.error) :focus::slotted(input[type=tel].p-input)::placeholder,:host(.error) :focus::slotted(input[type=text].p-input)::placeholder,:host(.error) :focus::slotted(input[type=time].p-input)::placeholder,:host(.error) :focus::slotted(textarea.p-input)::placeholder,:host(.error) [active]::slotted(div[contenteditable].p-input)::placeholder,:host(.error) [active]::slotted(input[type=date].p-input)::placeholder,:host(.error) [active]::slotted(input[type=datetime-local].p-input)::placeholder,:host(.error) [active]::slotted(input[type=email].p-input)::placeholder,:host(.error) [active]::slotted(input[type=month].p-input)::placeholder,:host(.error) [active]::slotted(input[type=number].p-input)::placeholder,:host(.error) [active]::slotted(input[type=password].p-input)::placeholder,:host(.error) [active]::slotted(input[type=tel].p-input)::placeholder,:host(.error) [active]::slotted(input[type=text].p-input)::placeholder,:host(.error) [active]::slotted(input[type=time].p-input)::placeholder,:host(.error) [active]::slotted(textarea.p-input)::placeholder,:host([error]) .active::slotted(div[contenteditable].p-input)::placeholder,:host([error]) .active::slotted(input[type=date].p-input)::placeholder,:host([error]) .active::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) .active::slotted(input[type=email].p-input)::placeholder,:host([error]) .active::slotted(input[type=month].p-input)::placeholder,:host([error]) .active::slotted(input[type=number].p-input)::placeholder,:host([error]) .active::slotted(input[type=password].p-input)::placeholder,:host([error]) .active::slotted(input[type=tel].p-input)::placeholder,:host([error]) .active::slotted(input[type=text].p-input)::placeholder,:host([error]) .active::slotted(input[type=time].p-input)::placeholder,:host([error]) .active::slotted(textarea.p-input)::placeholder,:host([error]) .focus::slotted(div[contenteditable].p-input)::placeholder,:host([error]) .focus::slotted(input[type=date].p-input)::placeholder,:host([error]) .focus::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) .focus::slotted(input[type=email].p-input)::placeholder,:host([error]) .focus::slotted(input[type=month].p-input)::placeholder,:host([error]) .focus::slotted(input[type=number].p-input)::placeholder,:host([error]) .focus::slotted(input[type=password].p-input)::placeholder,:host([error]) .focus::slotted(input[type=tel].p-input)::placeholder,:host([error]) .focus::slotted(input[type=text].p-input)::placeholder,:host([error]) .focus::slotted(input[type=time].p-input)::placeholder,:host([error]) .focus::slotted(textarea.p-input)::placeholder,:host([error]) :focus-visible::slotted(div[contenteditable].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=date].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=email].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=month].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=number].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=password].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=tel].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=text].p-input)::placeholder,:host([error]) :focus-visible::slotted(input[type=time].p-input)::placeholder,:host([error]) :focus-visible::slotted(textarea.p-input)::placeholder,:host([error]) :focus-within::slotted(div[contenteditable].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=date].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=email].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=month].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=number].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=password].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=tel].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=text].p-input)::placeholder,:host([error]) :focus-within::slotted(input[type=time].p-input)::placeholder,:host([error]) :focus-within::slotted(textarea.p-input)::placeholder,:host([error]) :focus::slotted(div[contenteditable].p-input)::placeholder,:host([error]) :focus::slotted(input[type=date].p-input)::placeholder,:host([error]) :focus::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) :focus::slotted(input[type=email].p-input)::placeholder,:host([error]) :focus::slotted(input[type=month].p-input)::placeholder,:host([error]) :focus::slotted(input[type=number].p-input)::placeholder,:host([error]) :focus::slotted(input[type=password].p-input)::placeholder,:host([error]) :focus::slotted(input[type=tel].p-input)::placeholder,:host([error]) :focus::slotted(input[type=text].p-input)::placeholder,:host([error]) :focus::slotted(input[type=time].p-input)::placeholder,:host([error]) :focus::slotted(textarea.p-input)::placeholder,:host([error]) [active]::slotted(div[contenteditable].p-input)::placeholder,:host([error]) [active]::slotted(input[type=date].p-input)::placeholder,:host([error]) [active]::slotted(input[type=datetime-local].p-input)::placeholder,:host([error]) [active]::slotted(input[type=email].p-input)::placeholder,:host([error]) [active]::slotted(input[type=month].p-input)::placeholder,:host([error]) [active]::slotted(input[type=number].p-input)::placeholder,:host([error]) [active]::slotted(input[type=password].p-input)::placeholder,:host([error]) [active]::slotted(input[type=tel].p-input)::placeholder,:host([error]) [active]::slotted(input[type=text].p-input)::placeholder,:host([error]) [active]::slotted(input[type=time].p-input)::placeholder,:host([error]) [active]::slotted(textarea.p-input)::placeholder{--tw-text-opacity:1;color:rgb(255 204 211/var(--tw-text-opacity))}:host(.disabled) .prefix,:host(.disabled) .suffix,:host([disabled]) .prefix,:host([disabled]) .suffix{opacity:.4}:host(.disabled) ::slotted(div[contenteditable].p-input),:host(.disabled) ::slotted(input[type=date].p-input),:host(.disabled) ::slotted(input[type=datetime-local].p-input),:host(.disabled) ::slotted(input[type=email].p-input),:host(.disabled) ::slotted(input[type=month].p-input),:host(.disabled) ::slotted(input[type=number].p-input),:host(.disabled) ::slotted(input[type=password].p-input),:host(.disabled) ::slotted(input[type=tel].p-input),:host(.disabled) ::slotted(input[type=text].p-input),:host(.disabled) ::slotted(input[type=time].p-input),:host(.disabled) ::slotted(textarea.p-input),:host([disabled]) ::slotted(div[contenteditable].p-input),:host([disabled]) ::slotted(input[type=date].p-input),:host([disabled]) ::slotted(input[type=datetime-local].p-input),:host([disabled]) ::slotted(input[type=email].p-input),:host([disabled]) ::slotted(input[type=month].p-input),:host([disabled]) ::slotted(input[type=number].p-input),:host([disabled]) ::slotted(input[type=password].p-input),:host([disabled]) ::slotted(input[type=tel].p-input),:host([disabled]) ::slotted(input[type=text].p-input),:host([disabled]) ::slotted(input[type=time].p-input),:host([disabled]) ::slotted(textarea.p-input){opacity:.4;pointer-events:none}:host(.size-small) ::slotted(div[contenteditable].p-input),:host(.size-small) ::slotted(input[type=date].p-input),:host(.size-small) ::slotted(input[type=datetime-local].p-input),:host(.size-small) ::slotted(input[type=email].p-input),:host(.size-small) ::slotted(input[type=month].p-input),:host(.size-small) ::slotted(input[type=number].p-input),:host(.size-small) ::slotted(input[type=password].p-input),:host(.size-small) ::slotted(input[type=tel].p-input),:host(.size-small) ::slotted(input[type=text].p-input),:host(.size-small) ::slotted(input[type=time].p-input),:host(.size-small) ::slotted(textarea.p-input){font-size:.875rem;height:2rem!important;line-height:1.25rem}:host(.size-small) ::slotted(div[contenteditable].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=date].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=datetime-local].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=email].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=month].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=number].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=password].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=tel].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=text].p-input)::-moz-placeholder,:host(.size-small) ::slotted(input[type=time].p-input)::-moz-placeholder,:host(.size-small) ::slotted(textarea.p-input)::-moz-placeholder{font-size:.875rem;line-height:1.25rem}:host(.size-small) ::slotted(div[contenteditable].p-input)::placeholder,:host(.size-small) ::slotted(input[type=date].p-input)::placeholder,:host(.size-small) ::slotted(input[type=datetime-local].p-input)::placeholder,:host(.size-small) ::slotted(input[type=email].p-input)::placeholder,:host(.size-small) ::slotted(input[type=month].p-input)::placeholder,:host(.size-small) ::slotted(input[type=number].p-input)::placeholder,:host(.size-small) ::slotted(input[type=password].p-input)::placeholder,:host(.size-small) ::slotted(input[type=tel].p-input)::placeholder,:host(.size-small) ::slotted(input[type=text].p-input)::placeholder,:host(.size-small) ::slotted(input[type=time].p-input)::placeholder,:host(.size-small) ::slotted(textarea.p-input)::placeholder{font-size:.875rem;line-height:1.25rem}:host(.size-small.error) .suffix,:host(.size-small[error]) .suffix{padding-bottom:.5rem;padding-top:.5rem}.static{position:static!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.justify-between{justify-content:space-between!important}.text-negative{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}";const l=class{constructor(e){t(this,e);this._whitelistedTags=["input","textarea"];this.size="medium";this.prefix=undefined;this.suffix=undefined;this.icon=undefined;this.iconFlip=undefined;this.iconRotate=undefined;this.iconPosition="start";this.label=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.disabled=false;this.focused=false;this.forceShowTooltip=false;this.focusMethod="focus";this.errorVariant="auto";this._forceShowTooltip=false}componentWillRender(){this._setInputClasses()}render(){var t;const{hasHeaderSlot:p,helper:i,label:r,prefix:s,suffix:n,errorAndErrorIsNotBoolean:l,errorVariant:u}=this._getSlotInfo();return e(o,{class:`p-input-group ${((t=this.error)===null||t===void 0?void 0:t.length)&&"error"} ${this.disabled&&"disabled"} ${this.focused&&"focused"} size-${this.size}`},e("div",{class:"flex items-end justify-between"},r&&e("div",{class:"input-label",onClick:()=>this._focusInput()},r,this.required&&e("span",{class:"ml-1 text-negative"},"*")),(i||p)&&e("div",{class:"input-header"},p&&e("slot",{name:"header"}),i&&e("p-helper",{class:`flex ${p?"ml-2":""}`,placement:"top-end"},i))),e("p-tooltip",{class:"w-full",variant:"error-element",content:this.error,show:l&&u==="element"&&(this.forceShowTooltip||this._forceShowTooltip),enableUserInput:false},e("div",{class:"content",slot:"trigger"},(s||this.icon&&this.iconPosition==="start")&&e("div",{class:`prefix size-${this.size}`,onClick:()=>this._focusInput()},this.icon&&this.iconPosition==="start"?e("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):s),(n||l&&u==="icon"||this.icon&&this.iconPosition==="end")&&e("div",{class:`suffix size-${this.size}`,onClick:()=>this._focusInput()},l&&u==="icon"?e("p-input-error",{error:this.error,forceShowTooltip:this.forceShowTooltip||this._forceShowTooltip}):this.icon&&this.iconPosition==="end"?e("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):n),e("slot",{name:"input"}))))}handleFocusIn(){this._forceShowTooltip=true}handleFocusOut(){this._forceShowTooltip=false}_setInputClasses(){const t=this._el.querySelector(':scope > [slot="input"]');if(!t){return}const e=t.tagName.toLowerCase();if(this._whitelistedTags.indexOf(e)===-1){return}if(!t.classList.contains("p-input")){t.classList.add("p-input")}const{prefix:o,suffix:p,errorAndErrorIsNotBoolean:i,errorVariant:r}=this._getSlotInfo();if(p||i&&r==="icon"||this.icon&&this.iconPosition==="end"){t.classList.add("border-r-0","rounded-tr-none","rounded-br-none","pr-0")}else{t.classList.remove("border-r-0","rounded-tr-none","rounded-br-none","pr-0")}if(o||this.icon&&this.iconPosition==="start"){t.classList.add("border-l-0","rounded-tl-none","rounded-bl-none","pl-0")}else{t.classList.remove("border-l-0","rounded-tl-none","rounded-bl-none","pl-0")}if(this.size==="small"&&!t.classList.contains("size-small")){t.classList.add("size-small")}if(this.size!=="small"&&t.classList.contains("size-small")){t.classList.remove("size-small")}}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]');const o=!!this._el.querySelector(':scope > [slot="label"]');const p=!!this._el.querySelector(':scope > [slot="prefix"]');const i=!!this._el.querySelector(':scope > [slot="suffix"]');const r=!!this._el.querySelector(':scope > [slot="header"]');const s=t?e("slot",{name:"helper"}):this.helper;const n=o?e("slot",{name:"label"}):this.label;const l=p?e("slot",{name:"prefix"}):this.prefix;const u=i?e("slot",{name:"suffix"}):this.suffix;const d=this.error&&typeof this.error==="string"&&this.error!=="true";return{hasHelperSlot:t,hasLabelSlot:o,hasPrefixSlot:p,hasSuffixSlot:i,hasHeaderSlot:r,helper:s,label:n,prefix:l,suffix:u,errorAndErrorIsNotBoolean:d,errorVariant:this.errorVariant==="auto"?this._el.offsetWidth<=72?"element":"icon":this.errorVariant}}_focusInput(){const t=this._el.querySelector(':scope > [slot="input"]');t[this.focusMethod]()}get _el(){return p(this)}};l.style=n;export{r as p_helper,s as p_input_error,l as p_input_group};
|
|
2
|
+
//# sourceMappingURL=p-80053d24.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["helperComponentCss","Helper","render","h","Host","class","placement","this","strategy","slot","InputError","variant","content","error","show","forceShowTooltip","onIsOpen","ev","_showTooltip","detail","inputGroupComponentCss","InputGroup","_whitelistedTags","componentWillRender","_setInputClasses","hasHeaderSlot","helper","label","prefix","suffix","errorAndErrorIsNotBoolean","errorVariant","_getSlotInfo","_a","length","disabled","focused","size","onClick","_focusInput","required","name","_forceShowTooltip","enableUserInput","icon","iconPosition","rotate","iconRotate","flip","iconFlip","handleFocusIn","handleFocusOut","input","_el","querySelector","tagName","toLowerCase","indexOf","classList","contains","add","remove","hasHelperSlot","hasLabelSlot","hasPrefixSlot","hasSuffixSlot","offsetWidth","focusMethod"],"sources":["src/components/atoms/helper/helper.component.scss?tag=p-helper&encapsulation=shadow","src/components/atoms/helper/helper.component.tsx","src/components/molecules/input-error/input-error.component.tsx","src/components/molecules/input-group/input-group.component.scss?tag=p-input-group&encapsulation=shadow","src/components/molecules/input-group/input-group.component.tsx"],"sourcesContent":[":host {\n\t.helper {\n\t\t@apply inline-block cursor-pointer bg-no-repeat bg-center w-3 h-3;\n\t\tbackground-image: url(/assets/images/helper/helper.svg);\n\n\t\t&:hover {\n\t\t\tbackground-image: url(/assets/images/helper/helper-hover.svg);\n\t\t}\n\t}\n}\n","import { Placement, Strategy } from '@floating-ui/dom';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-helper',\n\tstyleUrl: 'helper.component.scss',\n\tshadow: true,\n})\nexport class Helper {\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the helper popover\n\t */\n\t@Prop() placement: Placement = 'top';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-helper'>\n\t\t\t\t<p-tooltip\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t>\n\t\t\t\t\t<div slot='content'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\tclass='helper'\n\t\t\t\t\t></div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n\ttag: 'p-input-error',\n\tshadow: true,\n})\nexport class InputError {\n\t/**\n\t * The error to show\n\t */\n\t@Prop() error: string;\n\n\t/**\n\t * Wether to force show the tooltip\n\t */\n\t@Prop() forceShowTooltip = false;\n\n\t@State() private _showTooltip = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-input-error\">\n\t\t\t\t<p-tooltip\n\t\t\t\t\tvariant=\"error\"\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={this.forceShowTooltip}\n\t\t\t\t\tonIsOpen={(ev) => (this._showTooltip = ev.detail)}\n\t\t\t\t>\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tclass={`${\n\t\t\t\t\t\t\tthis._showTooltip\n\t\t\t\t\t\t\t\t? 'text-negative'\n\t\t\t\t\t\t\t\t: 'text-negative-light'\n\t\t\t\t\t\t} hover:text-negative`}\n\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\tvariant=\"explanation\"\n\t\t\t\t\t/>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","@import '../../../style/form/mixins';\n\n@mixin slottedItems($prefix: false) {\n\t@include inputs($prefix, true) {\n\t\t@content;\n\t}\n}\n\n:host {\n\t@apply flex w-full flex-col;\n\t@apply outline-none #{!important};\n\n\t.input-label {\n\t\t@apply mb-[2px] text-xs font-semibold uppercase tracking-wider text-storm-vague;\n\t}\n\n\t.input-header {\n\t\t@apply mb-[2px] flex items-end gap-2;\n\t}\n\n\t.content {\n\t\t@apply flex w-full;\n\n\t\t.prefix,\n\t\t.suffix {\n\t\t\t@include inputDefaultState(false);\n\t\t\t@apply box-border flex-1 text-storm;\n\t\t\t@apply h-full;\n\t\t}\n\n\t\t.prefix {\n\t\t\t@apply rounded-br-none rounded-tr-none;\n\t\t\t@apply border-r-0 #{!important};\n\t\t\t@apply order-1;\n\t\t\t@apply pr-2;\n\t\t}\n\n\t\t.suffix {\n\t\t\t@apply rounded-bl-none rounded-tl-none;\n\t\t\t@apply order-3;\n\t\t\t@apply pl-2;\n\t\t\t@apply border-l-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems() {\n\t\t\t@include inputDefaultState();\n\t\t\t@apply order-2;\n\t\t}\n\n\t\t@include slottedItems('.prefix') {\n\t\t\t@apply rounded-bl-none rounded-tl-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-l-0 pl-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems('.suffix') {\n\t\t\t@apply rounded-br-none rounded-tr-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-r-0 pr-0 #{!important};\n\t\t}\n\t}\n}\n\n:host(.focused),\n:host([focused]),\n:host(:focus-within),\n:host(:focus) {\n\t@apply outline-none #{!important};\n\n\t.prefix,\n\t.suffix {\n\t\t@include inputFocusState();\n\t\t@apply text-indigo;\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputFocusState();\n\t}\n}\n\n:host(.error),\n:host([error]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputErrorState();\n\t\t@apply text-negative;\n\t}\n\n\t.suffix {\n\t\t@apply items-start py-[calc(0.75rem-1px)];\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputErrorState();\n\n\t\t&:focus,\n\t\t&:focus-within,\n\t\t&:focus-visible,\n\t\t&.focus,\n\t\t&[active],\n\t\t&.active {\n\t\t\t@include inputErrorState();\n\t\t}\n\t}\n}\n\n:host(.disabled),\n:host([disabled]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputDisabledState();\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputDisabledState();\n\t\tpointer-events: none;\n\t}\n}\n\n:host(.size-small) {\n\t@include slottedItems() {\n\t\t@include inputSizeSmall();\n\t}\n}\n\n:host(.size-small.error),\n:host(.size-small[error]) {\n\t.suffix {\n\t\t@apply py-2;\n\t}\n}\n","import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n\ttag: 'p-input-group',\n\tstyleUrl: './input-group.component.scss',\n\tshadow: true,\n})\nexport class InputGroup {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'small' | 'medium' = 'medium';\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The error variant to use\n\t */\n\t@Prop() errorVariant: 'auto' | 'suffix' | 'element' = 'auto';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _forceShowTooltip = false;\n\n\tprivate _whitelistedTags = ['input', 'textarea'];\n\n\tcomponentWillRender() {\n\t\tthis._setInputClasses();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-input-group ${this.error?.length && 'error'} ${\n\t\t\t\t\tthis.disabled && 'disabled'\n\t\t\t\t} ${this.focused && 'focused'} size-${this.size}`}\n\t\t\t>\n\t\t\t\t<div class='flex items-end justify-between'>\n\t\t\t\t\t{label && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='input-label'\n\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t{this.required && <span class='ml-1 text-negative'>*</span>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t<div class='input-header'>\n\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass='w-full'\n\t\t\t\t\tvariant='error-element'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean &&\n\t\t\t\t\t\terrorVariant === 'element' &&\n\t\t\t\t\t\t(this.forceShowTooltip || this._forceShowTooltip)\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass='content'\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`prefix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{(suffix ||\n\t\t\t\t\t\t\t(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n\t\t\t\t\t\t\t(this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`suffix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{errorAndErrorIsNotBoolean && errorVariant === 'icon' ? (\n\t\t\t\t\t\t\t\t\t<p-input-error\n\t\t\t\t\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\t\t\t\t\tforceShowTooltip={\n\t\t\t\t\t\t\t\t\t\t\tthis.forceShowTooltip || this._forceShowTooltip\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot name='input' />\n\t\t\t\t\t</div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tthis._forceShowTooltip = true;\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tthis._forceShowTooltip = false;\n\t}\n\t/*\n With this, we shall hack the system in ways no one would ever have thought.\n\n <div class=\"pl-0 pr-0 border-l-0 border-r-0 rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none\"></div>\n */\n\tprivate _setInputClasses() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\n\t\tif (!input) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst tagName = input.tagName.toLowerCase();\n\t\tif (this._whitelistedTags.indexOf(tagName) === -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!input.classList.contains('p-input')) {\n\t\t\tinput.classList.add('p-input');\n\t\t}\n\n\t\tconst { prefix, suffix, errorAndErrorIsNotBoolean, errorVariant } =\n\t\t\tthis._getSlotInfo();\n\n\t\tif (\n\t\t\tsuffix ||\n\t\t\t(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n\t\t\t(this.icon && this.iconPosition === 'end')\n\t\t) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t}\n\n\t\tif (prefix || (this.icon && this.iconPosition === 'start')) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t}\n\n\t\tif (this.size === 'small' && !input.classList.contains('size-small')) {\n\t\t\tinput.classList.add('size-small');\n\t\t}\n\n\t\tif (this.size !== 'small' && input.classList.contains('size-small')) {\n\t\t\tinput.classList.remove('size-small');\n\t\t}\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant:\n\t\t\t\tthis.errorVariant === 'auto'\n\t\t\t\t\t? this._el.offsetWidth <= 72\n\t\t\t\t\t\t? 'element'\n\t\t\t\t\t\t: 'icon'\n\t\t\t\t\t: this.errorVariant,\n\t\t};\n\t}\n\n\tprivate _focusInput() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAqB,+jB,MCQdC,EAAM,M,uCAIW,W,eAKE,K,CAE/B,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAM,YACXF,EAAA,aACCG,UAAWC,KAAKD,UAChBE,SAAUD,KAAKC,UAEfL,EAAA,OAAKM,KAAK,WACTN,EAAA,cAGDA,EAAA,OACCM,KAAK,UACLJ,MAAM,Y,mBC1BCK,EAAU,M,oEASK,M,kBAEK,K,CAEhC,MAAAR,GACC,OACCC,EAACC,EAAI,CAACC,MAAM,iBACXF,EAAA,aACCQ,QAAQ,QACRC,QAASL,KAAKM,MACdC,KAAMP,KAAKQ,iBACXC,SAAWC,GAAQV,KAAKW,aAAeD,EAAGE,QAE1ChB,EAAA,UACCE,MAAO,GACNE,KAAKW,aACF,gBACA,4CAEJT,KAAK,UACLE,QAAQ,iB,GCnCd,MAAMS,EAAyB,souD,MCiBlBC,EAAU,M,yBAwFdd,KAAAe,iBAAmB,CAAC,QAAS,Y,UApFF,S,oIA8BK,Q,sGAyBK,M,aAKD,M,sBAKS,M,iBAKZ,Q,kBAKa,O,uBAOjB,K,CAIrC,mBAAAC,GACChB,KAAKiB,kB,CAGN,MAAAtB,G,MACC,MAAMuB,cACLA,EAAaC,OACbA,EAAMC,MACNA,EAAKC,OACLA,EAAMC,OACNA,EAAMC,0BACNA,EAAyBC,aACzBA,GACGxB,KAAKyB,eAET,OACC7B,EAACC,EAAI,CACJC,MAAO,mBAAiB4B,EAAA1B,KAAKM,SAAK,MAAAoB,SAAA,SAAAA,EAAEC,SAAU,WAC7C3B,KAAK4B,UAAY,cACd5B,KAAK6B,SAAW,kBAAkB7B,KAAK8B,QAE3ClC,EAAA,OAAKE,MAAM,kCACTsB,GACAxB,EAAA,OACCE,MAAM,cACNiC,QAAS,IAAM/B,KAAKgC,eAEnBZ,EACApB,KAAKiC,UAAYrC,EAAA,QAAME,MAAM,sBAAoB,OAIlDqB,GAAUD,IACXtB,EAAA,OAAKE,MAAM,gBACToB,GAAiBtB,EAAA,QAAMsC,KAAK,WAC5Bf,GACAvB,EAAA,YACCE,MAAO,QAAQoB,EAAgB,OAAS,KACxCnB,UAAU,WAEToB,KAMNvB,EAAA,aACCE,MAAM,SACNM,QAAQ,gBACRC,QAASL,KAAKM,MACdC,KACCgB,GACAC,IAAiB,YAChBxB,KAAKQ,kBAAoBR,KAAKmC,mBAEhCC,gBAAiB,OAEjBxC,EAAA,OACCE,MAAM,UACNI,KAAK,YAEHmB,GAAWrB,KAAKqC,MAAQrC,KAAKsC,eAAiB,UAC/C1C,EAAA,OACCE,MAAO,eAAeE,KAAK8B,OAC3BC,QAAS,IAAM/B,KAAKgC,eAEnBhC,KAAKqC,MAAQrC,KAAKsC,eAAiB,QACnC1C,EAAA,UACCE,MAAM,OACNM,QAASJ,KAAKqC,KACdE,OAAQvC,KAAKwC,WACbC,KAAMzC,KAAK0C,WACV,IAMHpB,GACAC,GAA6BC,IAAiB,QAC9CxB,KAAKqC,MAAQrC,KAAKsC,eAAiB,QACpC1C,EAAA,OACCE,MAAO,eAAeE,KAAK8B,OAC3BC,QAAS,IAAM/B,KAAKgC,eAEnBT,GAA6BC,IAAiB,OAC9C5B,EAAA,iBACCU,MAAON,KAAKM,MACZE,iBACCR,KAAKQ,kBAAoBR,KAAKmC,oBAG7BnC,KAAKqC,MAAQrC,KAAKsC,eAAiB,MACtC1C,EAAA,UACCE,MAAM,OACNM,QAASJ,KAAKqC,KACdE,OAAQvC,KAAKwC,WACbC,KAAMzC,KAAK0C,WACV,GAOL9C,EAAA,QAAMsC,KAAK,Y,CAQhB,aAAAS,GACC3C,KAAKmC,kBAAoB,I,CAI1B,cAAAS,GACC5C,KAAKmC,kBAAoB,K,CAOlB,gBAAAlB,GACP,MAAM4B,EAAQ7C,KAAK8C,IAAIC,cAAc,2BAErC,IAAKF,EAAO,CACX,M,CAGD,MAAMG,EAAUH,EAAMG,QAAQC,cAC9B,GAAIjD,KAAKe,iBAAiBmC,QAAQF,MAAc,EAAG,CAClD,M,CAGD,IAAKH,EAAMM,UAAUC,SAAS,WAAY,CACzCP,EAAMM,UAAUE,IAAI,U,CAGrB,MAAMhC,OAAEA,EAAMC,OAAEA,EAAMC,0BAAEA,EAAyBC,aAAEA,GAClDxB,KAAKyB,eAEN,GACCH,GACCC,GAA6BC,IAAiB,QAC9CxB,KAAKqC,MAAQrC,KAAKsC,eAAiB,MACnC,CACDO,EAAMM,UAAUE,IACf,aACA,kBACA,kBACA,O,KAEK,CACNR,EAAMM,UAAUG,OACf,aACA,kBACA,kBACA,O,CAIF,GAAIjC,GAAWrB,KAAKqC,MAAQrC,KAAKsC,eAAiB,QAAU,CAC3DO,EAAMM,UAAUE,IACf,aACA,kBACA,kBACA,O,KAEK,CACNR,EAAMM,UAAUG,OACf,aACA,kBACA,kBACA,O,CAIF,GAAItD,KAAK8B,OAAS,UAAYe,EAAMM,UAAUC,SAAS,cAAe,CACrEP,EAAMM,UAAUE,IAAI,a,CAGrB,GAAIrD,KAAK8B,OAAS,SAAWe,EAAMM,UAAUC,SAAS,cAAe,CACpEP,EAAMM,UAAUG,OAAO,a,EAIjB,YAAA7B,GACP,MAAM8B,IAAkBvD,KAAK8C,IAAIC,cAAc,4BAC/C,MAAMS,IAAiBxD,KAAK8C,IAAIC,cAAc,2BAC9C,MAAMU,IAAkBzD,KAAK8C,IAAIC,cAAc,4BAC/C,MAAMW,IAAkB1D,KAAK8C,IAAIC,cAAc,4BAC/C,MAAM7B,IAAkBlB,KAAK8C,IAAIC,cAAc,4BAE/C,MAAM5B,EAASoC,EAAgB3D,EAAA,QAAMsC,KAAK,WAAclC,KAAKmB,OAC7D,MAAMC,EAAQoC,EAAe5D,EAAA,QAAMsC,KAAK,UAAalC,KAAKoB,MAC1D,MAAMC,EAASoC,EAAgB7D,EAAA,QAAMsC,KAAK,WAAclC,KAAKqB,OAC7D,MAAMC,EAASoC,EAAgB9D,EAAA,QAAMsC,KAAK,WAAclC,KAAKsB,OAE7D,MAAMC,EACLvB,KAAKM,cAAgBN,KAAKM,QAAU,UAAYN,KAAKM,QAAU,OAEhE,MAAO,CACNiD,gBACAC,eACAC,gBACAC,gBACAxC,gBACAC,SACAC,QACAC,SACAC,SACAC,4BACAC,aACCxB,KAAKwB,eAAiB,OACnBxB,KAAK8C,IAAIa,aAAe,GACvB,UACA,OACD3D,KAAKwB,a,CAIH,WAAAQ,GACP,MAAMa,EAAQ7C,KAAK8C,IAAIC,cAAc,2BACpCF,EAAsB7C,KAAK4D,c"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as r,H as a}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as r,H as a}from"./p-0c2cc6c4.js";const i=".flex{display:flex!important}.-space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(-.25rem*var(--tw-space-x-reverse))!important}.overflow-hidden{overflow:hidden!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}*{box-sizing:border-box}p-avatar-group{align-items:center;display:flex;overflow:hidden}p-avatar-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(-.25rem*var(--tw-space-x-reverse))}p-avatar-group p-avatar>img{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}p-avatar-group p-avatar:first-child{z-index:3}p-avatar-group p-avatar:nth-child(2){z-index:2}p-avatar-group p-avatar:nth-child(3){z-index:1}p-avatar-group .extra{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding-left:1rem}.static{position:static!important}";const e=class{constructor(r){t(this,r);this.extra=undefined}render(){return r(a,{class:"p-avatar-group"},r("slot",null),this.extra&&r("span",{class:"extra"},"+",this.extra))}};e.style=i;export{e as p_avatar_group};
|
|
2
|
+
//# sourceMappingURL=p-88f1b5e6.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as a,H as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as a,H as r}from"./p-0c2cc6c4.js";const e=".fixed{position:fixed!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-navbar{z-index:300!important}.z-navbar-topbar{z-index:280!important}.mt-auto{margin-top:auto!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.h-screen{height:100vh!important}.w-60{width:15rem!important}.w-full{width:100%!important}.-translate-x-full{--tw-translate-x:-100%!important;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))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-r{border-right-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}:host .sidebar,:host .sidebar .company,:host .sidebar .content,:host .sidebar .user,:host .userbar{display:flex;flex-direction:column;width:100%}:host .sidebar,:host .top-bar{--tw-bg-opacity:1;--tw-border-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-style:solid!important;border-width:0!important}:host .sidebar{--tw-bg-opacity:1;--tw-translate-x:-100%;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-right-width:1px!important;gap:1.5rem;height:100vh;left:0;padding-bottom:1rem;padding-top:calc(env(safe-area-inset-top, 0) + 1rem);position:fixed;top:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:15rem;will-change:transform;z-index:300}@media (min-width:80rem){:host .sidebar{--tw-translate-x:0px;height:100%;position:relative;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));width:100%;z-index:0}}:host .sidebar .company,:host .sidebar .content,:host .sidebar .header,:host .sidebar .user{padding-left:1rem;padding-right:1rem}:host .sidebar .header{align-items:center;display:flex;justify-content:space-between;width:100%}@media (min-width:80rem){:host .sidebar .header{display:none}}:host .sidebar .content{overflow-y:auto;scrollbar-color:#528afa #dae6f0;scrollbar-width:thin}:host .sidebar .content::-webkit-scrollbar{width:.25rem}:host .sidebar .content::-webkit-scrollbar-track{background:#dae6f0}:host .sidebar .content::-webkit-scrollbar-thumb{background:#528afa}:host .sidebar .content::-webkit-scrollbar-thumb:hover{background:#528afa}:host .sidebar .user{display:none;margin-top:auto}@media (min-width:80rem){:host .sidebar .user{display:flex}}:host .sidebar.show{--tw-translate-x:env(safe-area-inset-left,0)}:host .top-bar{border-bottom-width:1px!important;display:flex;height:calc(env(safe-area-inset-top, 0) + 3rem);justify-content:space-between;padding:calc(env(safe-area-inset-top, 0) + .5rem) 1rem .5rem;position:relative;width:100%;z-index:280}@media (min-width:80rem){:host .top-bar{display:none}}:host p-backdrop{display:none}:host p-backdrop.show{display:block}@media (min-width:80rem){.layout-1280\\:relative{position:relative!important}.layout-1280\\:flex{display:flex!important}.layout-1280\\:hidden{display:none!important}.layout-1280\\:h-full{height:100%!important}.layout-1280\\:w-60{width:15rem!important}.layout-1280\\:w-full{width:100%!important}}.static{position:static!important}.z-navbar-backdrop{z-index:290!important}.m-0{margin:0!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}@media (min-width:64rem){.desktop-xs\\:hidden{display:none!important}}";const o=class{constructor(a){t(this,a);this.closeText="Close";this.menuText="Menu";this._showMenu=false}render(){return a(r,{class:"p-navbar"},a("p-backdrop",{applyBlur:true,class:`z-navbar-backdrop desktop-xs:hidden ${this._showMenu&&"show"}`,onClicked:()=>this._showMenu=false}),a("div",{class:`sidebar ${this._showMenu&&"show"}`},a("div",{class:"header"},a("p",{class:"text-xl m-0 font-semibold text-storm-dark"},this.menuText),a("p-button",{variant:"secondary",icon:"negative",iconPosition:"end",size:"small",onClick:()=>this._showMenu=false},this.closeText)),a("div",{class:"company"},a("slot",{name:"company"})),a("div",{class:"content"},a("slot",{name:"content"})),a("div",{class:"user"},a("slot",{name:"user"}))),a("div",{class:"top-bar"},a("p-button",{variant:"secondary",icon:"menu",size:"small",onClick:()=>this._showMenu=true},this.menuText),a("slot",{name:"topbar"})))}handleCloseNavbar(){this._showMenu=false}handleOpenNavbar(){this._showMenu=true}};o.style=e;export{o as p_navbar};
|
|
2
|
+
//# sourceMappingURL=p-8b1a63cb.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as r,H as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as r,H as i}from"./p-0c2cc6c4.js";const o=".flex{display:flex!important}.h-2{height:.5rem!important}.h-4{height:1rem!important}.w-2{width:.5rem!important}.min-w-\\[1rem\\]{min-width:1rem!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}.rounded-round{border-radius:100%!important}.bg-indigo{--tw-bg-opacity:1!important;background-color:rgb(82 138 250/var(--tw-bg-opacity))!important}.bg-negative-light{--tw-bg-opacity:1!important;background-color:rgb(255 204 211/var(--tw-bg-opacity))!important}.bg-positive-light{--tw-bg-opacity:1!important;background-color:rgb(229 255 242/var(--tw-bg-opacity))!important}.bg-unbiased-light{--tw-bg-opacity:1!important;background-color:rgb(255 246 220/var(--tw-bg-opacity))!important}.p-0{padding:0!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-bold{font-weight:700!important}.uppercase{text-transform:uppercase!important}.leading-3{line-height:.75rem!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(82 138 250/var(--tw-bg-opacity));border-radius:.5625rem;color:rgb(255 255 255/var(--tw-text-opacity));display:flex;font-size:.75rem;font-weight:700;height:1rem;justify-content:center;line-height:.75rem;padding-left:.5rem;padding-right:.5rem;text-transform:uppercase}:host(.variant-negative),:host(.variant-positive),:host(.variant-unbiased){border-radius:.25rem;min-width:1rem;padding-left:.25rem;padding-right:.25rem}:host(.variant-positive){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(229 255 242/var(--tw-bg-opacity));color:rgb(29 163 96/var(--tw-text-opacity))}:host(.variant-unbiased){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 246 220/var(--tw-bg-opacity));color:rgb(255 162 49/var(--tw-text-opacity))}:host(.variant-negative){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 204 211/var(--tw-bg-opacity));color:rgb(138 15 29/var(--tw-text-opacity))}:host(.size-mini){border-radius:100%;height:.5rem;min-width:0;padding:0;width:.5rem}:host(.size-mini) slot{display:none}.static{position:static!important}";const a=class{constructor(r){t(this,r);this.variant="info";this.size="default"}render(){return r(i,{class:`p-counter variant-${this.variant} size-${this.size}`},r("slot",null))}};a.style=o;export{a as p_counter};
|
|
2
|
+
//# sourceMappingURL=p-9671e4e1.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as i,H as e,g as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as i,H as e,g as s}from"./p-0c2cc6c4.js";const o=".flex{display:flex!important}.h-auto{height:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}*{box-sizing:border-box}:host{display:flex}:host([direction=horizontal]){align-items:flex-end;height:auto}:host([direction=vertical]){align-items:flex-start;flex-direction:column;flex-wrap:wrap;min-height:100%;width:100%}:host([direction=vertical][content-position=start]){align-items:flex-end}.static{position:static!important}";const n=class{constructor(i){t(this,i);this._loaded=false;this._delay=t=>new Promise((i=>setTimeout(i,t)));this._onSlotChange=async t=>this._generateSteps();this._generateSteps=async(t=false)=>{if(!t&&(!this._el||this._rendering||!this._loaded)){return}this._rendering=true;let i=this.activeStep-1||0;const e=this._el.querySelectorAll("p-stepper-item");if(!this.activeStep||i<0){for(let t=0;t<(e===null||e===void 0?void 0:e.length);t++){const s=e.item(t);if(s.active){i=t}if(i<0&&s.finished){i=t+1}}}for(let t=0;t<(e===null||e===void 0?void 0:e.length);t++){let s=false;const o=e.item(t);o.active=t===i;o.finished=t<i;if(o.direction!==this.direction){s=true}o.direction=this.direction;o.align=t===0?"start":t===(e===null||e===void 0?void 0:e.length)-1?"end":"center";o.contentPosition=this.contentPosition;if(t<e.length-1){const e=o.nextElementSibling;if(e&&e.tagName.toLowerCase()==="p-stepper-item"){if(s){await this._delay(10)}const n=(o.clientHeight>16?o.clientHeight-16:o.clientHeight)/2;const r=document.createElement("p-stepper-line");r.direction=this.direction;r.active=t<i;if(n>0&&this.direction==="vertical"){r.style.marginTop=`-${n/16}rem`;r.style.marginBottom=`-${n/16}rem`;r.style.minHeight=`calc(1rem + ${n*2/16}rem)`}this._el.insertBefore(r,e);const l=r.previousElementSibling;if(l&&l.tagName.toLowerCase()==="p-stepper-line"){l.remove()}continue}}if(t>0){const t=o.previousElementSibling;if(t.tagName.toLowerCase()==="p-stepper-line"){t.direction=this.direction;t.active=o.active||o.finished}}}const s=this._el.querySelectorAll("p-stepper-line:not(:has(+ p-stepper-item)), p-stepper-line:first-child");for(let t=s.length-1;t>=0;t--){const i=s.item(t);i.remove()}setTimeout((()=>this._rendering=false),100)};this.activeStep=1;this.direction="horizontal";this.contentPosition="end";this._rendering=false}componentDidLoad(){this._loaded=true;this._generateSteps(true)}render(){return i(e,{class:"p-stepper"},i("slot",{onSlotchange:this._onSlotChange}))}_onActiveStepChange(){this._generateSteps()}get _el(){return s(this)}static get watchers(){return{activeStep:["_onActiveStepChange"]}}};n.style=o;export{n as p_stepper};
|
|
2
|
+
//# sourceMappingURL=p-9c1e350b.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s}from"./p-0c2cc6c4.js";const i=class{constructor(i){t(this,i);this.tableDefinitionChanged=s(this,"tableDefinitionChanged",7);this.path=undefined;this.type="td";this.name=undefined;this.useSlot=false;this.hasCheckbox=false;this.align="start";this.isLast={};this.parsedSizes=undefined;this.sizes="auto"}componentDidUpdate(){this.tableDefinitionChanged.emit(true)}render(){return}};export{i as p_table_column};
|
|
2
|
+
//# sourceMappingURL=p-9c9ea527.entry.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e}from"./p-e4d5e7a7.js";function n(t){var s,i,e="";if("string"==typeof t||"number"==typeof t)e+=t;else if("object"==typeof t)if(Array.isArray(t))for(s=0;s<t.length;s++)t[s]&&(i=n(t[s]))&&(e&&(e+=" "),e+=i);else for(s in t)t[s]&&(e&&(e+=" "),e+=s);return e}function o(){for(var t,s,i=0,e="";i<arguments.length;)(t=arguments[i++])&&(s=n(t))&&(e&&(e+=" "),e+=s);return e}const h=typeof window!=="undefined"&&typeof window.document!=="undefined";const r=h?window:{};const a=h?"ontouchstart"in r.document.documentElement:false;const c=h?"PointerEvent"in r:false;const l="cropper";const u=`${l}-canvas`;const f=`${l}-crosshair`;const p=`${l}-grid`;const d=`${l}-handle`;const b=`${l}-image`;const m=`${l}-selection`;const g=`${l}-shade`;const w=`${l}-viewer`;const v="select";const $="move";const k="scale";const y="rotate";const x="transform";const z="none";const M="n-resize";const C="e-resize";const A="s-resize";const j="w-resize";const O="ne-resize";const S="nw-resize";const T="se-resize";const E="sw-resize";const I="action";const N=a?"touchend touchcancel":"mouseup";const X=a?"touchmove":"mousemove";const Y=a?"touchstart":"mousedown";const R=c?"pointerdown":Y;const W=c?"pointermove":X;const P=c?"pointerup pointercancel":N;const _="error";const D="keydown";const L="load";const H="wheel";const B="action";const F="actionend";const U="actionmove";const K="actionstart";const Z="change";const q="transform";function G(t){return typeof t==="string"}const J=Number.isNaN||r.isNaN;function Q(t){return typeof t==="number"&&!J(t)}function V(t){return Q(t)&&t>0&&t<Infinity}function tt(t){return typeof t==="undefined"}function st(t){return typeof t==="object"&&t!==null}const{hasOwnProperty:it}=Object.prototype;function et(t){if(!st(t)){return false}try{const{constructor:s}=t;const{prototype:i}=s;return s&&i&&it.call(i,"isPrototypeOf")}catch(t){return false}}function nt(t){return typeof t==="function"}function ot(t){return typeof t==="object"&&t!==null&&t.nodeType===1}const ht=/([a-z\d])([A-Z])/g;function rt(t){return String(t).replace(ht,"$1-$2").toLowerCase()}const at=/-[A-z\d]/g;function ct(t){return t.replace(at,(t=>t.slice(1).toUpperCase()))}const lt=/\s\s*/;function ut(t,s,i,e){s.trim().split(lt).forEach((s=>{t.removeEventListener(s,i,e)}))}function ft(t,s,i,e){s.trim().split(lt).forEach((s=>{t.addEventListener(s,i,e)}))}function pt(t,s,i,e){ft(t,s,i,Object.assign(Object.assign({},e),{once:true}))}const dt={bubbles:true,cancelable:true,composed:true};function bt(t,s,i,e){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},dt),{detail:i}),e)))}const mt=Promise.resolve();function gt(t,s){return s?mt.then(t?s.bind(t):s):mt}function wt(t){const{documentElement:s}=t.ownerDocument;const i=t.getBoundingClientRect();return{left:i.left+(r.pageXOffset-s.clientLeft),top:i.top+(r.pageYOffset-s.clientTop)}}const vt=/deg|g?rad|turn$/i;function $t(t){const s=parseFloat(t)||0;if(s!==0){const[i="rad"]=String(t).match(vt)||[];switch(i.toLowerCase()){case"deg":return s/360*(Math.PI*2);case"grad":return s/400*(Math.PI*2);case"turn":return s*(Math.PI*2)}}return s}const kt="contain";const yt="cover";function xt(t,s=kt){const{aspectRatio:i}=t;let{width:e,height:n}=t;const o=V(e);const h=V(n);if(o&&h){const t=n*i;if(s===kt&&t>e||s===yt&&t<e){n=e/i}else{e=n*i}}else if(o){n=e/i}else if(h){e=n*i}return{width:e,height:n}}function zt(t,...s){if(s.length===0){return t}const[i,e,n,o,h,r]=t;const[a,c,l,u,f,p]=s[0];t=[i*a+n*c,e*a+o*c,i*l+n*u,e*l+o*u,i*f+n*p+h,e*f+o*p+r];return zt(t,...s.slice(1))}var Mt=`:host([hidden]){display:none!important}`;const Ct=/left|top|width|height/i;const At="open";const jt=new WeakMap;const Ot=new WeakMap;const St=new Map;const Tt=r.document&&Array.isArray(r.document.adoptedStyleSheets)&&"replaceSync"in r.CSSStyleSheet.prototype;class Et extends HTMLElement{get $sharedStyle(){return`${this.themeColor?`:host{--theme-color: ${this.themeColor};}`:""}${Mt}`}constructor(){var t,s;super();this.shadowRootMode=At;this.slottable=true;const i=(s=(t=Object.getPrototypeOf(this))===null||t===void 0?void 0:t.constructor)===null||s===void 0?void 0:s.$name;if(i){St.set(i,this.tagName.toLowerCase())}}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}const e=ct(t);const n=this[e];let o=i;switch(typeof n){case"boolean":o=i!==null&&i!=="false";break;case"number":o=Number(i);break}this[e]=o;switch(t){case"theme-color":{const t=Ot.get(this);const s=this.$sharedStyle;if(t&&s){if(Tt){t.replaceSync(s)}else{t.textContent=s}}break}}}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}t=rt(t);switch(typeof i){case"boolean":if(i===true){if(!this.hasAttribute(t)){this.setAttribute(t,"")}}else{this.removeAttribute(t)}break;case"number":if(J(i)){i=""}else{i=String(i)}default:if(i){if(this.getAttribute(t)!==i){this.setAttribute(t,i)}}else{this.removeAttribute(t)}}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=ct(t);let i=this[s];if(!tt(i)){this.$propertyChangedCallback(s,undefined,i)}Object.defineProperty(this,s,{enumerable:true,configurable:true,get(){return i},set(t){const e=i;i=t;this.$propertyChangedCallback(s,e,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||At});if(!this.shadowRoot){jt.set(this,t)}Ot.set(this,this.$addStyles(this.$sharedStyle));if(this.$style){this.$addStyles(this.$style)}if(this.$template){const s=document.createElement("template");s.innerHTML=this.$template;t.appendChild(s.content)}if(this.slottable){const s=document.createElement("slot");t.appendChild(s)}}disconnectedCallback(){if(Ot.has(this)){Ot.delete(this)}if(jt.has(this)){jt.delete(this)}}$getTagNameOf(t){var s;return(s=St.get(t))!==null&&s!==void 0?s:t}$setStyles(t){Object.keys(t).forEach((s=>{let i=t[s];if(Q(i)){if(i!==0&&Ct.test(s)){i=`${i}px`}else{i=String(i)}}this.style[s]=i}));return this}$getShadowRoot(){return this.shadowRoot||jt.get(this)}$addStyles(t){let s;const i=this.$getShadowRoot();if(Tt){s=new CSSStyleSheet;s.replaceSync(t);i.adoptedStyleSheets=i.adoptedStyleSheets.concat(s)}else{s=document.createElement("style");s.textContent=t;i.appendChild(s)}return s}$emit(t,s,i){return bt(this,t,s,i)}$nextTick(t){return gt(this,t)}static $define(t,s){if(st(t)){s=t;t=""}if(!t){t=this.$name||this.name}t=rt(t);if(h&&r.customElements&&!r.customElements.get(t)){customElements.define(t,this,s)}}}Et.$version="2.0.0-beta.4";var It=`:host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}`;class Nt extends Et{constructor(){super(...arguments);this.$onPointerDown=null;this.$onPointerMove=null;this.$onPointerUp=null;this.$onWheel=null;this.$wheeling=false;this.$pointers=new Map;this.$style=It;this.$action=z;this.background=false;this.disabled=false;this.scaleStep=.1;this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback();if(!this.disabled){this.$bind()}}disconnectedCallback(){if(!this.disabled){this.$unbind()}super.disconnectedCallback()}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"disabled":if(i){this.$unbind()}else{this.$bind()}break}}$bind(){if(!this.$onPointerDown){this.$onPointerDown=this.$handlePointerDown.bind(this);ft(this,R,this.$onPointerDown)}if(!this.$onPointerMove){this.$onPointerMove=this.$handlePointerMove.bind(this);ft(this.ownerDocument,W,this.$onPointerMove)}if(!this.$onPointerUp){this.$onPointerUp=this.$handlePointerUp.bind(this);ft(this.ownerDocument,P,this.$onPointerUp)}if(!this.$onWheel){this.$onWheel=this.$handleWheel.bind(this);ft(this,H,this.$onWheel,{passive:false,capture:true})}}$unbind(){if(this.$onPointerDown){ut(this,R,this.$onPointerDown);this.$onPointerDown=null}if(this.$onPointerMove){ut(this.ownerDocument,W,this.$onPointerMove);this.$onPointerMove=null}if(this.$onPointerUp){ut(this.ownerDocument,P,this.$onPointerUp);this.$onPointerUp=null}if(this.$onWheel){ut(this,H,this.$onWheel,{capture:true});this.$onWheel=null}}$handlePointerDown(t){const{buttons:s,button:i,type:e}=t;if(this.disabled||(e==="pointerdown"&&t.pointerType==="mouse"||e==="mousedown")&&(Q(s)&&s!==1||Q(i)&&i!==0||t.ctrlKey)){return}const{$pointers:n}=this;let o="";if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{n.set(t,{startX:s,startY:i,endX:s,endY:i})}))}else{const{pointerId:s=0,pageX:i,pageY:e}=t;n.set(s,{startX:i,startY:e,endX:i,endY:e})}if(n.size>1){o=x}else if(ot(t.target)){o=t.target.action||t.target.getAttribute(I)||""}if(this.$emit(K,{action:o,relatedEvent:t})===false){return}t.preventDefault();this.$action=o;this.style.willChange="transform"}$handlePointerMove(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===z||i.size===0){return}if(this.$emit(U,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{const n=i.get(t);if(n){Object.assign(n,{endX:s,endY:e})}}))}else{const{pointerId:s=0,pageX:e,pageY:n}=t;const o=i.get(s);if(o){Object.assign(o,{endX:e,endY:n})}}const e={action:s,relatedEvent:t};if(s===x){const s=new Map(i);let n=0;let o=0;let h=0;let r=0;let a=t.pageX;let c=t.pageY;i.forEach(((t,i)=>{s.delete(i);s.forEach((s=>{let i=s.startX-t.startX;let e=s.startY-t.startY;let l=s.endX-t.endX;let u=s.endY-t.endY;let f=0;let p=0;let d=0;let b=0;if(i===0){if(e<0){d=Math.PI*2}else if(e>0){d=Math.PI}}else if(i>0){d=Math.PI/2+Math.atan(e/i)}else if(i<0){d=Math.PI*1.5+Math.atan(e/i)}if(l===0){if(u<0){b=Math.PI*2}else if(u>0){b=Math.PI}}else if(l>0){b=Math.PI/2+Math.atan(u/l)}else if(l<0){b=Math.PI*1.5+Math.atan(u/l)}if(b>0||d>0){const i=b-d;const e=Math.abs(i);if(e>n){n=e;h=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}i=Math.abs(i);e=Math.abs(e);l=Math.abs(l);u=Math.abs(u);if(i>0&&e>0){f=Math.sqrt(i*i+e*e)}else if(i>0){f=i}else if(e>0){f=e}if(l>0&&u>0){p=Math.sqrt(l*l+u*u)}else if(l>0){p=l}else if(u>0){p=u}if(f>0&&p>0){const i=(p-f)/f;const e=Math.abs(i);if(e>o){o=e;r=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}}))}));const l=n>0;const u=o>0;if(l&&u){e.rotate=h;e.scale=r;e.centerX=a;e.centerY=c}else if(l){e.action=y;e.rotate=h;e.centerX=a;e.centerY=c}else if(u){e.action=k;e.scale=r;e.centerX=a;e.centerY=c}else{e.action=z}}else{const[t]=Array.from(i.values());Object.assign(e,t)}i.forEach((t=>{t.startX=t.endX;t.startY=t.endY}));if(e.action!==z){this.$emit(B,e,{cancelable:false})}}$handlePointerUp(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===z){return}if(this.$emit(F,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t})=>{i.delete(t)}))}else{const{pointerId:s=0}=t;i.delete(s)}if(i.size===0){this.style.willChange="";this.$action=z}}$handleWheel(t){if(this.disabled){return}t.preventDefault();if(this.$wheeling){return}this.$wheeling=true;setTimeout((()=>{this.$wheeling=false}),50);const s=t.deltaY>0?-1:1;const i=s*this.scaleStep;this.$emit(B,{action:k,scale:i,relatedEvent:t},{cancelable:false})}$setAction(t){if(G(t)){this.$action=t}return this}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let n=this.offsetWidth;let o=this.offsetHeight;let h=1;if(et(t)&&(V(t.width)||V(t.height))){({width:n,height:o}=xt({aspectRatio:n/o,width:t.width,height:t.height}));h=n/this.offsetWidth}e.width=n;e.height=o;const r=this.querySelector(this.$getTagNameOf(b));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,u,f,p]=r.$getTransform();let d=f;let b=p;let m=i.naturalWidth;let g=i.naturalHeight;if(h!==1){d*=h;b*=h;m*=h;g*=h}const w=m/2;const v=g/2;a.fillStyle="transparent";a.fillRect(0,0,n,o);if(et(t)&&nt(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(w,v);a.transform(s,c,l,u,d,b);a.translate(-w,-v);a.drawImage(i,0,0,m,g);a.restore()}s(e)})).catch(i)}))}}Nt.$name=u;Nt.$version="2.0.0-beta.4";var Xt=`:host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}`;const Yt=new WeakMap;const Rt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class Wt extends Et{constructor(){super(...arguments);this.$matrix=[1,0,0,1,0,0];this.$onLoad=null;this.$onCanvasAction=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$actionStartTarget=null;this.$style=Xt;this.$image=new Image;this.rotatable=true;this.scalable=true;this.skewable=true;this.slottable=false;this.translatable=true}set $canvas(t){Yt.set(this,t)}get $canvas(){return Yt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Rt,["rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}super.attributeChangedCallback(t,s,i);if(Rt.includes(t)){this.$image.setAttribute(t,i)}}connectedCallback(){super.connectedCallback();const{$image:t}=this;const s=this.closest(this.$getTagNameOf(u));if(s){this.$canvas=s;this.$setStyles({display:"block",position:"absolute"});this.$onCanvasActionStart=t=>{var s,i;this.$actionStartTarget=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target};this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null};this.$onCanvasAction=this.$handleAction.bind(this);ft(s,K,this.$onCanvasActionStart);ft(s,F,this.$onCanvasActionEnd);ft(s,B,this.$onCanvasAction)}this.$onLoad=this.$handleLoad.bind(this);ft(t,L,this.$onLoad);this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;if(s){if(this.$onCanvasActionStart){ut(s,K,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){ut(s,F,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){ut(s,B,this.$onCanvasAction);this.$onCanvasAction=null}}if(t&&this.$onLoad){ut(t,L,this.$onLoad);this.$onLoad=null}this.$getShadowRoot().removeChild(t);super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight});if(this.$canvas){this.$center("cover")}}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable)){return}const{$canvas:s}=this;const{detail:i}=t;if(i){const{relatedEvent:t}=i;let{action:e}=i;if(e===x&&(!this.rotatable||!this.scalable)){if(this.rotatable){e=y}else if(this.scalable){e=k}else{e=z}}switch(e){case $:if(this.translatable){const t=this.$getTagNameOf(m);let e=s.querySelector(t);if(e&&e.multiple&&!e.active){e=s.querySelector(`${t}[active]`)}if(!e||e.hidden||!e.movable||!(this.$actionStartTarget&&e.contains(this.$actionStartTarget))){this.$move(i.endX-i.startX,i.endY-i.startY)}}break;case y:if(this.rotatable){if(t){const{x:s,y:e}=this.getBoundingClientRect();this.$rotate(i.rotate,t.clientX-s,t.clientY-e)}else{this.$rotate(i.rotate)}}break;case k:if(this.scalable){if(t){const{x:s,y:e}=this.getBoundingClientRect();this.$zoom(i.scale,t.clientX-s,t.clientY-e)}else{this.$zoom(i.scale)}}break;case x:if(this.rotatable&&this.scalable){const{rotate:s}=i;let{scale:e}=i;if(e<0){e=1/(1-e)}else{e+=1}const n=Math.cos(s);const o=Math.sin(s);const[h,r,a,c]=[n*e,o*e,-o*e,n*e];if(t){const s=this.getBoundingClientRect();const i=t.clientX-s.x;const e=t.clientY-s.y;const[n,o,l,u]=this.$matrix;const f=s.width/2;const p=s.height/2;const d=i-f;const b=e-p;const m=(d*u-l*b)/(n*u-l*o);const g=(b-o*m)/u;this.$transform(h,r,a,c,m*(1-h)+g*a,g*(1-c)+m*r)}else{this.$transform(h,r,a,c,0,0)}}break}}}$ready(t){const{$image:s}=this;const i=new Promise(((t,i)=>{const e=new Error("Failed to load the image source");if(s.complete){if(s.naturalWidth>0&&s.naturalHeight>0){t(s)}else{i(e)}}else{const n=()=>{ut(s,_,o);t(s)};const o=()=>{ut(s,L,n);i(e)};pt(s,L,n);pt(s,_,o)}}));if(nt(t)){i.then((s=>{t(s);return s}))}return i}$center(t){const{parentElement:s}=this;if(!s){return this}const i=s.getBoundingClientRect();const e=i.width;const n=i.height;const{x:o,y:h,width:r,height:a}=this.getBoundingClientRect();const c=o+r/2;const l=h+a/2;const u=i.x+e/2;const f=i.y+n/2;this.$move(u-c,f-l);if(t&&(r!==e||a!==n)){const s=e/r;const i=n/a;switch(t){case"cover":this.$scale(Math.max(s,i));break;case"contain":this.$scale(Math.min(s,i));break}}return this}$move(t,s=t){if(this.translatable&&Q(t)&&Q(s)){const[i,e,n,o]=this.$matrix;const h=(t*o-n*s)/(i*o-n*e);const r=(s-e*h)/o;this.$translate(h,r)}return this}$moveTo(t,s=t){if(this.translatable&&Q(t)&&Q(s)){const[i,e,n,o]=this.$matrix;const h=(t*o-n*s)/(i*o-n*e);const r=(s-e*h)/o;this.$setTransform(i,e,n,o,h,r)}return this}$rotate(t,s,i){if(this.rotatable){const e=$t(t);const n=Math.cos(e);const o=Math.sin(e);const[h,r,a,c]=[n,o,-o,n];if(Q(s)&&Q(i)){const[t,e,n,o]=this.$matrix;const{width:l,height:u}=this.getBoundingClientRect();const f=l/2;const p=u/2;const d=s-f;const b=i-p;const m=(d*o-n*b)/(t*o-n*e);const g=(b-e*m)/o;this.$transform(h,r,a,c,m*(1-h)-g*a,g*(1-c)-m*r)}else{this.$transform(h,r,a,c,0,0)}}return this}$zoom(t,s,i){if(!this.scalable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}if(Q(s)&&Q(i)){const[e,n,o,h]=this.$matrix;const{width:r,height:a}=this.getBoundingClientRect();const c=r/2;const l=a/2;const u=s-c;const f=i-l;const p=(u*h-o*f)/(e*h-o*n);const d=(f-n*p)/h;this.$transform(t,0,0,t,p*(1-t),d*(1-t))}else{this.$scale(t)}return this}$scale(t,s=t){if(this.scalable){this.$transform(t,0,0,s,0,0)}return this}$skew(t,s=0){if(this.skewable){const i=$t(t);const e=$t(s);this.$transform(1,Math.tan(e),Math.tan(i),1,0,0)}return this}$translate(t,s=t){if(this.translatable&&Q(t)&&Q(s)){this.$transform(1,0,0,1,t,s)}return this}$transform(t,s,i,e,n,o){if(Q(t)&&Q(s)&&Q(i)&&Q(e)&&Q(n)&&Q(o)){return this.$setTransform(zt(this.$matrix,[t,s,i,e,n,o]))}return this}$setTransform(t,s,i,e,n,o){if(this.rotatable||this.scalable||this.skewable||this.translatable){if(Array.isArray(t)){[t,s,i,e,n,o]=t}if(Q(t)&&Q(s)&&Q(i)&&Q(e)&&Q(n)&&Q(o)){const h=[t,s,i,e,n,o];if(this.$emit(q,{matrix:h,oldMatrix:this.$matrix})===false){return this}this.$matrix=h;this.style.transform=`matrix(${h.join(", ")})`}}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}Wt.$name=b;Wt.$version="2.0.0-beta.4";var Pt=`:host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}`;const _t=new WeakMap;class Dt extends Et{constructor(){super(...arguments);this.$onCanvasChange=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$style=Pt;this.x=0;this.y=0;this.width=0;this.height=0;this.slottable=false;this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){_t.set(this,t)}get $canvas(){return _t.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(u));if(t){this.$canvas=t;this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(m));if(s){this.$onCanvasActionStart=t=>{if(s.hidden&&t.detail.action===v){this.hidden=false}};this.$onCanvasActionEnd=t=>{if(s.hidden&&t.detail.action===v){this.hidden=true}};this.$onCanvasChange=t=>{const{x:i,y:e,width:n,height:o}=t.detail;this.$change(i,e,n,o);if(s.hidden||i===0&&e===0&&n===0&&o===0){this.hidden=true}};ft(t,K,this.$onCanvasActionStart);ft(t,F,this.$onCanvasActionEnd);ft(t,Z,this.$onCanvasChange)}}this.$render()}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){ut(t,K,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){ut(t,F,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasChange){ut(t,Z,this.$onCanvasChange);this.$onCanvasChange=null}}super.disconnectedCallback()}$change(t,s,i=this.width,e=this.height){if(!Q(t)||!Q(s)||!Q(i)||!Q(e)||t===this.x&&s===this.y&&i===this.width&&e===this.height){return this}if(this.hidden){this.hidden=false}this.x=t;this.y=s;this.width=i;this.height=e;return this.$render()}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:r.innerWidth})}}Dt.$name=g;Dt.$version="2.0.0-beta.4";var Lt=`:host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}`;class Ht extends Et{constructor(){super(...arguments);this.$onCanvasCropEnd=null;this.$onCanvasCropStart=null;this.$style=Lt;this.action=z;this.plain=false;this.slottable=false;this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Ht.$name=d;Ht.$version="2.0.0-beta.4";var Bt=`:host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}`;const Ft=new WeakMap;class Ut extends Et{constructor(){super(...arguments);this.$onCanvasAction=null;this.$onCanvasActionStart=null;this.$onCanvasActionEnd=null;this.$onDocumentKeyDown=null;this.$action="";this.$actionStartTarget=null;this.$style=Bt;this.x=0;this.y=0;this.width=0;this.height=0;this.aspectRatio=NaN;this.initialAspectRatio=NaN;this.initialCoverage=NaN;this.active=false;this.movable=false;this.resizable=false;this.zoomable=false;this.multiple=false;this.keyboard=false;this.outlined=false;this.precise=false}set $canvas(t){Ft.set(this,t)}get $canvas(){return Ft.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","height","initial-aspect-ratio","initial-coverage","keyboard","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"aspectRatio":if(!V(i)){this.aspectRatio=NaN}break;case"initialAspectRatio":if(!V(i)){this.initialAspectRatio=NaN}break;case"initialCoverage":if(!V(i)||i>1){this.initialCoverage=NaN}break;case"keyboard":this.$nextTick((()=>{if(this.$canvas){if(i){if(!this.$onDocumentKeyDown){this.$onDocumentKeyDown=this.$handleKeyDown.bind(this);ft(this.ownerDocument,D,this.$onDocumentKeyDown)}}else if(this.$onDocumentKeyDown){ut(this.ownerDocument,D,this.$onDocumentKeyDown);this.$onDocumentKeyDown=null}}}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();if(i){t.forEach((t=>{t.active=false}));this.active=true;this.$emit(Z,{x:this.x,y:this.y,width:this.width,height:this.height})}else{this.active=false;t.slice(1).forEach((t=>{this.$removeSelection(t)}))}}}));break}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(u));if(t){this.$canvas=t;this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`});if(!this.hidden){this.$render()}const{initialCoverage:s,parentElement:i}=this;if(V(s)&&i){const t=this.aspectRatio||this.initialAspectRatio;const{offsetWidth:e,offsetHeight:n}=i;let o=e*s;let h=n*s;if(V(t)){({width:o,height:h}=xt({aspectRatio:t,width:o,height:h}))}this.$change(this.x,this.y,o,h);this.$center()}this.$onCanvasActionStart=this.$handleActionStart.bind(this);this.$onCanvasActionEnd=this.$handleActionEnd.bind(this);this.$onCanvasAction=this.$handleAction.bind(this);ft(t,K,this.$onCanvasActionStart);ft(t,F,this.$onCanvasActionStart);ft(t,B,this.$onCanvasAction)}else{this.$render()}}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){ut(t,K,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){ut(t,F,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){ut(t,B,this.$onCanvasAction);this.$onCanvasAction=null}}super.disconnectedCallback()}$getSelections(){let t=[];if(this.parentElement){t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(m)))}return t}$createSelection(){const t=this.cloneNode(true);if(this.hasAttribute("id")){t.removeAttribute("id")}this.active=false;if(this.parentElement){this.parentElement.insertBefore(t,this.nextSibling)}return t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const i=s.indexOf(t);const e=s[i+1]||s[i-1];if(e){t.active=false;this.parentElement.removeChild(t);e.active=true;e.$emit(Z,{x:e.x,y:e.y,width:e.width,height:e.height})}}else{this.$reset();this.hidden=true}}}$handleActionStart(t){var s,i;const e=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target;this.$action="";this.$actionStartTarget=e;if(!this.hidden&&this.multiple&&!this.active&&e===this&&this.parentElement){this.$getSelections().forEach((t=>{t.active=false}));this.active=true;this.$emit(Z,{x:this.x,y:this.y,width:this.width,height:this.height})}}$handleAction(t){const{currentTarget:s,detail:i}=t;if(s&&i){const{relatedEvent:e}=i;let{action:n}=i;if(!n&&this.multiple){n=this.$action||(e===null||e===void 0?void 0:e.target.action);this.$action=n}if(!n||this.hidden&&n!==v||this.multiple&&!this.active&&n!==k){return}const o=i.endX-i.startX;const h=i.endY-i.startY;const{width:r,height:a}=this;let{aspectRatio:c}=this;if(!V(c)&&t.shiftKey){c=V(r)&&V(a)?r/a:1}switch(n){case v:{const{$canvas:t}=this;const e=wt(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(i.startX-e.left,i.startY-e.top,o,h,c);n=T;if(o<0){if(h>0){n=E}else if(h<0){n=S}}else if(o>0){if(h<0){n=O}}if(t){t.$action=n}break}case $:if(this.movable&&(this.$actionStartTarget&&this.contains(this.$actionStartTarget))){this.$move(o,h)}break;case k:if(e&&this.zoomable){const t=wt(s);this.$zoom(i.scale,e.pageX-t.left,e.pageY-t.top)}break;default:this.$resize(n,o,h,c)}}}$handleActionEnd(){this.$action="";this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented){return}switch(t.key){case"Backspace":if(t.metaKey){t.preventDefault();this.$removeSelection()}break;case"Delete":t.preventDefault();this.$removeSelection();break;case"ArrowLeft":t.preventDefault();this.$move(-1,0);break;case"ArrowRight":t.preventDefault();this.$move(1,0);break;case"ArrowUp":t.preventDefault();this.$move(0,-1);break;case"ArrowDown":t.preventDefault();this.$move(0,1);break;case"+":t.preventDefault();this.$zoom(.1);break;case"-":t.preventDefault();this.$zoom(-.1);break}}$center(){const{parentElement:t}=this;if(!t){return this}const s=(t.offsetWidth-this.width)/2;const i=(t.offsetHeight-this.height)/2;return this.$change(s,i)}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){if(!this.movable){return this}return this.$change(t,s)}$resize(t,s=0,i=0,e=this.aspectRatio){if(!this.resizable){return this}const n=V(e);const{$canvas:o}=this;let{x:h,y:r,width:a,height:c}=this;switch(t){case M:r+=i;c-=i;if(c<0){t=A;c=-c;r-=c}if(n){s=i*e;h+=s/2;a-=s;if(a<0){a=-a;h-=a}}break;case C:a+=s;if(a<0){t=j;a=-a;h-=a}if(n){i=s/e;r-=i/2;c+=i;if(c<0){c=-c;r-=c}}break;case A:c+=i;if(c<0){t=M;c=-c;r-=c}if(n){s=i*e;h-=s/2;a+=s;if(a<0){a=-a;h-=a}}break;case j:h+=s;a-=s;if(a<0){t=C;a=-a;h-=a}if(n){i=s/e;r+=i/2;c-=i;if(c<0){c=-c;r-=c}}break;case O:if(n){i=-s/e}r+=i;c-=i;a+=s;if(a<0&&c<0){t=E;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=S;a=-a;h-=a}else if(c<0){t=T;c=-c;r-=c}break;case S:if(n){i=s/e}h+=s;r+=i;a-=s;c-=i;if(a<0&&c<0){t=T;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=O;a=-a;h-=a}else if(c<0){t=E;c=-c;r-=c}break;case T:if(n){i=s/e}a+=s;c+=i;if(a<0&&c<0){t=S;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=E;a=-a;h-=a}else if(c<0){t=O;c=-c;r-=c}break;case E:if(n){i=-s/e}h+=s;a-=s;c+=i;if(a<0&&c<0){t=O;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=T;a=-a;h-=a}else if(c<0){t=S;c=-c;r-=c}break}if(o){o.$setAction(t)}return this.$change(h,r,a,c)}$zoom(t,s,i){if(!this.zoomable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}const{width:e,height:n}=this;const o=e*t;const h=n*t;let r=this.x;let a=this.y;if(Q(s)&&Q(i)){r-=(o-e)*((s-this.x)/e);a-=(h-n)*((i-this.y)/n)}else{r-=(o-e)/2;a-=(h-n)/2}return this.$change(r,a,o,h)}$change(t,s,i=this.width,e=this.height,n=this.aspectRatio){if(!Q(t)||!Q(s)||!Q(i)||!Q(e)){return this}if(!this.precise){t=Math.round(t);s=Math.round(s);i=Math.round(i);e=Math.round(e)}if(t===this.x&&s===this.y&&i===this.width&&e===this.height){return this}if(this.hidden){this.hidden=false}if(V(n)){({width:i,height:e}=xt({aspectRatio:n,width:i,height:e},"cover"))}if(this.$emit(Z,{x:t,y:s,width:i,height:e})===false){return this}this.x=t;this.y=s;this.width=i;this.height=e;return this.$render()}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let{width:n,height:o}=this;let h=1;if(et(t)&&(V(t.width)||V(t.height))){({width:n,height:o}=xt({aspectRatio:n/o,width:t.width,height:t.height}));h=n/this.width}e.width=n;e.height=o;if(!this.$canvas){s(e);return}const r=this.$canvas.querySelector(this.$getTagNameOf(b));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,u,f,p]=r.$getTransform();const d=-this.x;const b=-this.y;const m=(d*u-l*b)/(s*u-l*c);const g=(b-c*m)/u;let w=s*m+l*g+f;let v=c*m+u*g+p;let $=i.naturalWidth;let k=i.naturalHeight;if(h!==1){w*=h;v*=h;$*=h;k*=h}const y=$/2;const x=k/2;a.fillStyle="transparent";a.fillRect(0,0,n,o);if(et(t)&&nt(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(y,x);a.transform(s,c,l,u,w,v);a.translate(-y,-x);a.drawImage(i,0,0,$,k);a.restore()}s(e)})).catch(i)}))}}Ut.$name=m;Ut.$version="2.0.0-beta.4";var Kt=`:host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}`;class Zt extends Et{constructor(){super(...arguments);this.$style=Kt;this.bordered=false;this.columns=3;this.covered=false;this.rows=3;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);if(t==="rows"||t==="columns"){this.$render()}}connectedCallback(){super.connectedCallback();this.$render()}$render(){const t=this.$getShadowRoot();const s=document.createDocumentFragment();for(let t=0;t<this.rows;t+=1){const t=document.createElement("span");t.setAttribute("role","row");for(let s=0;s<this.columns;s+=1){const s=document.createElement("span");s.setAttribute("role","gridcell");t.appendChild(s)}s.appendChild(t)}if(t){t.innerHTML="";t.appendChild(s)}}}Zt.$name=p;Zt.$version="2.0.0-beta.4";var qt=`:host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`;class Gt extends Et{constructor(){super(...arguments);this.$style=qt;this.centered=false;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Gt.$name=f;Gt.$version="2.0.0-beta.4";var Jt=`:host{display:block;height:100%;overflow:hidden;position:relative;width:100%}`;const Qt=new WeakMap;const Vt=new WeakMap;const ts=new WeakMap;const ss="both";const is="horizontal";const es="vertical";const ns="none";class os extends Et{constructor(){super(...arguments);this.$onSelectionChange=null;this.$onSourceImageLoad=null;this.$onSourceImageTransform=null;this.$scale=1;this.$style=Jt;this.resize=es;this.selection="";this.slottable=false}set $image(t){Qt.set(this,t)}get $image(){return Qt.get(this)}set $sourceImage(t){ts.set(this,t)}get $sourceImage(){return ts.get(this)}set $selection(t){Vt.set(this,t)}get $selection(){return Vt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(this.selection){t=this.ownerDocument.querySelector(this.selection)}else{t=this.closest(this.$getTagNameOf(m))}if(ot(t)){this.$selection=t;this.$onSelectionChange=this.$handleSelectionChange.bind(this);ft(t,Z,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(u));if(s){const t=s.querySelector(this.$getTagNameOf(b));if(t){this.$sourceImage=t;this.$image=t.cloneNode(true);this.$getShadowRoot().appendChild(this.$image);this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this);this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this);ft(t.$image,L,this.$onSourceImageLoad);ft(t,q,this.$onSourceImageTransform)}}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;if(t&&this.$onSelectionChange){ut(t,Z,this.$onSelectionChange);this.$onSelectionChange=null}if(s&&this.$onSourceImageLoad){ut(s.$image,L,this.$onSourceImageLoad);this.$onSourceImageLoad=null}if(s&&this.$onSourceImageTransform){ut(s,q,this.$onSourceImageTransform);this.$onSourceImageTransform=null}super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this;const i=t.getAttribute("src");const e=s.getAttribute("src");if(e&&e!==i){t.setAttribute("src",e);t.$ready((()=>{setTimeout((()=>{const{x:t,y:i}=this.$selection;this.$transformImageByOffset(s.$getTransform(),-t,-i)}))}))}}$handleSourceImageTransform(t){const{x:s,y:i}=this.$selection;this.$transformImageByOffset(t.detail.matrix,-s,-i)}$render(t){const{x:s,y:i,width:e,height:n}=t||this.$selection;const o={};const{clientWidth:h,clientHeight:r}=this;let a=h;let c=r;let l=NaN;switch(this.resize){case ss:l=1;a=e;c=n;o.width=e;o.height=n;break;case is:l=r/n;a=e*l;o.width=a;break;case es:l=h/e;c=n*l;o.height=c;break;case ns:default:if(h>0){l=h/e}else if(r>0){l=r/n}}this.$scale=l;this.$setStyles(o);if(this.$sourceImage){this.$transformImageByOffset(this.$sourceImage.$getTransform(),-s,-i)}}$transformImageByOffset(t,s,i){const{$image:e,$scale:n,$sourceImage:o}=this;if(o&&e&&n>0){const[o,h,r,a,c,l]=t;const u=(s*a-r*i)/(o*a-r*h);const f=(i-h*u)/a;const p=o*u+r*f+c;const d=h*u+a*f+l;e.$ready((t=>{this.$setStyles.call(e,{width:t.naturalWidth*n,height:t.naturalHeight*n})}));e.$setTransform(o,h,r,a,p*n,d*n)}}}os.$name=w;os.$version="2.0.0-beta.4";
|
|
1
|
+
import{r as t,c as s,h as i,H as e}from"./p-0c2cc6c4.js";function n(t){var s,i,e="";if("string"==typeof t||"number"==typeof t)e+=t;else if("object"==typeof t)if(Array.isArray(t))for(s=0;s<t.length;s++)t[s]&&(i=n(t[s]))&&(e&&(e+=" "),e+=i);else for(s in t)t[s]&&(e&&(e+=" "),e+=s);return e}function o(){for(var t,s,i=0,e="";i<arguments.length;)(t=arguments[i++])&&(s=n(t))&&(e&&(e+=" "),e+=s);return e}const h=typeof window!=="undefined"&&typeof window.document!=="undefined";const r=h?window:{};const a=h?"ontouchstart"in r.document.documentElement:false;const c=h?"PointerEvent"in r:false;const l="cropper";const u=`${l}-canvas`;const f=`${l}-crosshair`;const p=`${l}-grid`;const d=`${l}-handle`;const b=`${l}-image`;const m=`${l}-selection`;const g=`${l}-shade`;const w=`${l}-viewer`;const v="select";const $="move";const k="scale";const y="rotate";const x="transform";const z="none";const M="n-resize";const C="e-resize";const A="s-resize";const j="w-resize";const O="ne-resize";const S="nw-resize";const T="se-resize";const E="sw-resize";const I="action";const N=a?"touchend touchcancel":"mouseup";const X=a?"touchmove":"mousemove";const Y=a?"touchstart":"mousedown";const R=c?"pointerdown":Y;const W=c?"pointermove":X;const P=c?"pointerup pointercancel":N;const _="error";const D="keydown";const L="load";const H="wheel";const B="action";const F="actionend";const U="actionmove";const K="actionstart";const Z="change";const q="transform";function G(t){return typeof t==="string"}const J=Number.isNaN||r.isNaN;function Q(t){return typeof t==="number"&&!J(t)}function V(t){return Q(t)&&t>0&&t<Infinity}function tt(t){return typeof t==="undefined"}function st(t){return typeof t==="object"&&t!==null}const{hasOwnProperty:it}=Object.prototype;function et(t){if(!st(t)){return false}try{const{constructor:s}=t;const{prototype:i}=s;return s&&i&&it.call(i,"isPrototypeOf")}catch(t){return false}}function nt(t){return typeof t==="function"}function ot(t){return typeof t==="object"&&t!==null&&t.nodeType===1}const ht=/([a-z\d])([A-Z])/g;function rt(t){return String(t).replace(ht,"$1-$2").toLowerCase()}const at=/-[A-z\d]/g;function ct(t){return t.replace(at,(t=>t.slice(1).toUpperCase()))}const lt=/\s\s*/;function ut(t,s,i,e){s.trim().split(lt).forEach((s=>{t.removeEventListener(s,i,e)}))}function ft(t,s,i,e){s.trim().split(lt).forEach((s=>{t.addEventListener(s,i,e)}))}function pt(t,s,i,e){ft(t,s,i,Object.assign(Object.assign({},e),{once:true}))}const dt={bubbles:true,cancelable:true,composed:true};function bt(t,s,i,e){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},dt),{detail:i}),e)))}const mt=Promise.resolve();function gt(t,s){return s?mt.then(t?s.bind(t):s):mt}function wt(t){const{documentElement:s}=t.ownerDocument;const i=t.getBoundingClientRect();return{left:i.left+(r.pageXOffset-s.clientLeft),top:i.top+(r.pageYOffset-s.clientTop)}}const vt=/deg|g?rad|turn$/i;function $t(t){const s=parseFloat(t)||0;if(s!==0){const[i="rad"]=String(t).match(vt)||[];switch(i.toLowerCase()){case"deg":return s/360*(Math.PI*2);case"grad":return s/400*(Math.PI*2);case"turn":return s*(Math.PI*2)}}return s}const kt="contain";const yt="cover";function xt(t,s=kt){const{aspectRatio:i}=t;let{width:e,height:n}=t;const o=V(e);const h=V(n);if(o&&h){const t=n*i;if(s===kt&&t>e||s===yt&&t<e){n=e/i}else{e=n*i}}else if(o){n=e/i}else if(h){e=n*i}return{width:e,height:n}}function zt(t,...s){if(s.length===0){return t}const[i,e,n,o,h,r]=t;const[a,c,l,u,f,p]=s[0];t=[i*a+n*c,e*a+o*c,i*l+n*u,e*l+o*u,i*f+n*p+h,e*f+o*p+r];return zt(t,...s.slice(1))}var Mt=`:host([hidden]){display:none!important}`;const Ct=/left|top|width|height/i;const At="open";const jt=new WeakMap;const Ot=new WeakMap;const St=new Map;const Tt=r.document&&Array.isArray(r.document.adoptedStyleSheets)&&"replaceSync"in r.CSSStyleSheet.prototype;class Et extends HTMLElement{get $sharedStyle(){return`${this.themeColor?`:host{--theme-color: ${this.themeColor};}`:""}${Mt}`}constructor(){var t,s;super();this.shadowRootMode=At;this.slottable=true;const i=(s=(t=Object.getPrototypeOf(this))===null||t===void 0?void 0:t.constructor)===null||s===void 0?void 0:s.$name;if(i){St.set(i,this.tagName.toLowerCase())}}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}const e=ct(t);const n=this[e];let o=i;switch(typeof n){case"boolean":o=i!==null&&i!=="false";break;case"number":o=Number(i);break}this[e]=o;switch(t){case"theme-color":{const t=Ot.get(this);const s=this.$sharedStyle;if(t&&s){if(Tt){t.replaceSync(s)}else{t.textContent=s}}break}}}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}t=rt(t);switch(typeof i){case"boolean":if(i===true){if(!this.hasAttribute(t)){this.setAttribute(t,"")}}else{this.removeAttribute(t)}break;case"number":if(J(i)){i=""}else{i=String(i)}default:if(i){if(this.getAttribute(t)!==i){this.setAttribute(t,i)}}else{this.removeAttribute(t)}}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=ct(t);let i=this[s];if(!tt(i)){this.$propertyChangedCallback(s,undefined,i)}Object.defineProperty(this,s,{enumerable:true,configurable:true,get(){return i},set(t){const e=i;i=t;this.$propertyChangedCallback(s,e,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||At});if(!this.shadowRoot){jt.set(this,t)}Ot.set(this,this.$addStyles(this.$sharedStyle));if(this.$style){this.$addStyles(this.$style)}if(this.$template){const s=document.createElement("template");s.innerHTML=this.$template;t.appendChild(s.content)}if(this.slottable){const s=document.createElement("slot");t.appendChild(s)}}disconnectedCallback(){if(Ot.has(this)){Ot.delete(this)}if(jt.has(this)){jt.delete(this)}}$getTagNameOf(t){var s;return(s=St.get(t))!==null&&s!==void 0?s:t}$setStyles(t){Object.keys(t).forEach((s=>{let i=t[s];if(Q(i)){if(i!==0&&Ct.test(s)){i=`${i}px`}else{i=String(i)}}this.style[s]=i}));return this}$getShadowRoot(){return this.shadowRoot||jt.get(this)}$addStyles(t){let s;const i=this.$getShadowRoot();if(Tt){s=new CSSStyleSheet;s.replaceSync(t);i.adoptedStyleSheets=i.adoptedStyleSheets.concat(s)}else{s=document.createElement("style");s.textContent=t;i.appendChild(s)}return s}$emit(t,s,i){return bt(this,t,s,i)}$nextTick(t){return gt(this,t)}static $define(t,s){if(st(t)){s=t;t=""}if(!t){t=this.$name||this.name}t=rt(t);if(h&&r.customElements&&!r.customElements.get(t)){customElements.define(t,this,s)}}}Et.$version="2.0.0-beta.4";var It=`:host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}`;class Nt extends Et{constructor(){super(...arguments);this.$onPointerDown=null;this.$onPointerMove=null;this.$onPointerUp=null;this.$onWheel=null;this.$wheeling=false;this.$pointers=new Map;this.$style=It;this.$action=z;this.background=false;this.disabled=false;this.scaleStep=.1;this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback();if(!this.disabled){this.$bind()}}disconnectedCallback(){if(!this.disabled){this.$unbind()}super.disconnectedCallback()}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"disabled":if(i){this.$unbind()}else{this.$bind()}break}}$bind(){if(!this.$onPointerDown){this.$onPointerDown=this.$handlePointerDown.bind(this);ft(this,R,this.$onPointerDown)}if(!this.$onPointerMove){this.$onPointerMove=this.$handlePointerMove.bind(this);ft(this.ownerDocument,W,this.$onPointerMove)}if(!this.$onPointerUp){this.$onPointerUp=this.$handlePointerUp.bind(this);ft(this.ownerDocument,P,this.$onPointerUp)}if(!this.$onWheel){this.$onWheel=this.$handleWheel.bind(this);ft(this,H,this.$onWheel,{passive:false,capture:true})}}$unbind(){if(this.$onPointerDown){ut(this,R,this.$onPointerDown);this.$onPointerDown=null}if(this.$onPointerMove){ut(this.ownerDocument,W,this.$onPointerMove);this.$onPointerMove=null}if(this.$onPointerUp){ut(this.ownerDocument,P,this.$onPointerUp);this.$onPointerUp=null}if(this.$onWheel){ut(this,H,this.$onWheel,{capture:true});this.$onWheel=null}}$handlePointerDown(t){const{buttons:s,button:i,type:e}=t;if(this.disabled||(e==="pointerdown"&&t.pointerType==="mouse"||e==="mousedown")&&(Q(s)&&s!==1||Q(i)&&i!==0||t.ctrlKey)){return}const{$pointers:n}=this;let o="";if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{n.set(t,{startX:s,startY:i,endX:s,endY:i})}))}else{const{pointerId:s=0,pageX:i,pageY:e}=t;n.set(s,{startX:i,startY:e,endX:i,endY:e})}if(n.size>1){o=x}else if(ot(t.target)){o=t.target.action||t.target.getAttribute(I)||""}if(this.$emit(K,{action:o,relatedEvent:t})===false){return}t.preventDefault();this.$action=o;this.style.willChange="transform"}$handlePointerMove(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===z||i.size===0){return}if(this.$emit(U,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{const n=i.get(t);if(n){Object.assign(n,{endX:s,endY:e})}}))}else{const{pointerId:s=0,pageX:e,pageY:n}=t;const o=i.get(s);if(o){Object.assign(o,{endX:e,endY:n})}}const e={action:s,relatedEvent:t};if(s===x){const s=new Map(i);let n=0;let o=0;let h=0;let r=0;let a=t.pageX;let c=t.pageY;i.forEach(((t,i)=>{s.delete(i);s.forEach((s=>{let i=s.startX-t.startX;let e=s.startY-t.startY;let l=s.endX-t.endX;let u=s.endY-t.endY;let f=0;let p=0;let d=0;let b=0;if(i===0){if(e<0){d=Math.PI*2}else if(e>0){d=Math.PI}}else if(i>0){d=Math.PI/2+Math.atan(e/i)}else if(i<0){d=Math.PI*1.5+Math.atan(e/i)}if(l===0){if(u<0){b=Math.PI*2}else if(u>0){b=Math.PI}}else if(l>0){b=Math.PI/2+Math.atan(u/l)}else if(l<0){b=Math.PI*1.5+Math.atan(u/l)}if(b>0||d>0){const i=b-d;const e=Math.abs(i);if(e>n){n=e;h=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}i=Math.abs(i);e=Math.abs(e);l=Math.abs(l);u=Math.abs(u);if(i>0&&e>0){f=Math.sqrt(i*i+e*e)}else if(i>0){f=i}else if(e>0){f=e}if(l>0&&u>0){p=Math.sqrt(l*l+u*u)}else if(l>0){p=l}else if(u>0){p=u}if(f>0&&p>0){const i=(p-f)/f;const e=Math.abs(i);if(e>o){o=e;r=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}}))}));const l=n>0;const u=o>0;if(l&&u){e.rotate=h;e.scale=r;e.centerX=a;e.centerY=c}else if(l){e.action=y;e.rotate=h;e.centerX=a;e.centerY=c}else if(u){e.action=k;e.scale=r;e.centerX=a;e.centerY=c}else{e.action=z}}else{const[t]=Array.from(i.values());Object.assign(e,t)}i.forEach((t=>{t.startX=t.endX;t.startY=t.endY}));if(e.action!==z){this.$emit(B,e,{cancelable:false})}}$handlePointerUp(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===z){return}if(this.$emit(F,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t})=>{i.delete(t)}))}else{const{pointerId:s=0}=t;i.delete(s)}if(i.size===0){this.style.willChange="";this.$action=z}}$handleWheel(t){if(this.disabled){return}t.preventDefault();if(this.$wheeling){return}this.$wheeling=true;setTimeout((()=>{this.$wheeling=false}),50);const s=t.deltaY>0?-1:1;const i=s*this.scaleStep;this.$emit(B,{action:k,scale:i,relatedEvent:t},{cancelable:false})}$setAction(t){if(G(t)){this.$action=t}return this}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let n=this.offsetWidth;let o=this.offsetHeight;let h=1;if(et(t)&&(V(t.width)||V(t.height))){({width:n,height:o}=xt({aspectRatio:n/o,width:t.width,height:t.height}));h=n/this.offsetWidth}e.width=n;e.height=o;const r=this.querySelector(this.$getTagNameOf(b));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,u,f,p]=r.$getTransform();let d=f;let b=p;let m=i.naturalWidth;let g=i.naturalHeight;if(h!==1){d*=h;b*=h;m*=h;g*=h}const w=m/2;const v=g/2;a.fillStyle="transparent";a.fillRect(0,0,n,o);if(et(t)&&nt(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(w,v);a.transform(s,c,l,u,d,b);a.translate(-w,-v);a.drawImage(i,0,0,m,g);a.restore()}s(e)})).catch(i)}))}}Nt.$name=u;Nt.$version="2.0.0-beta.4";var Xt=`:host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}`;const Yt=new WeakMap;const Rt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class Wt extends Et{constructor(){super(...arguments);this.$matrix=[1,0,0,1,0,0];this.$onLoad=null;this.$onCanvasAction=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$actionStartTarget=null;this.$style=Xt;this.$image=new Image;this.rotatable=true;this.scalable=true;this.skewable=true;this.slottable=false;this.translatable=true}set $canvas(t){Yt.set(this,t)}get $canvas(){return Yt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Rt,["rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}super.attributeChangedCallback(t,s,i);if(Rt.includes(t)){this.$image.setAttribute(t,i)}}connectedCallback(){super.connectedCallback();const{$image:t}=this;const s=this.closest(this.$getTagNameOf(u));if(s){this.$canvas=s;this.$setStyles({display:"block",position:"absolute"});this.$onCanvasActionStart=t=>{var s,i;this.$actionStartTarget=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target};this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null};this.$onCanvasAction=this.$handleAction.bind(this);ft(s,K,this.$onCanvasActionStart);ft(s,F,this.$onCanvasActionEnd);ft(s,B,this.$onCanvasAction)}this.$onLoad=this.$handleLoad.bind(this);ft(t,L,this.$onLoad);this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;if(s){if(this.$onCanvasActionStart){ut(s,K,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){ut(s,F,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){ut(s,B,this.$onCanvasAction);this.$onCanvasAction=null}}if(t&&this.$onLoad){ut(t,L,this.$onLoad);this.$onLoad=null}this.$getShadowRoot().removeChild(t);super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight});if(this.$canvas){this.$center("cover")}}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable)){return}const{$canvas:s}=this;const{detail:i}=t;if(i){const{relatedEvent:t}=i;let{action:e}=i;if(e===x&&(!this.rotatable||!this.scalable)){if(this.rotatable){e=y}else if(this.scalable){e=k}else{e=z}}switch(e){case $:if(this.translatable){const t=this.$getTagNameOf(m);let e=s.querySelector(t);if(e&&e.multiple&&!e.active){e=s.querySelector(`${t}[active]`)}if(!e||e.hidden||!e.movable||!(this.$actionStartTarget&&e.contains(this.$actionStartTarget))){this.$move(i.endX-i.startX,i.endY-i.startY)}}break;case y:if(this.rotatable){if(t){const{x:s,y:e}=this.getBoundingClientRect();this.$rotate(i.rotate,t.clientX-s,t.clientY-e)}else{this.$rotate(i.rotate)}}break;case k:if(this.scalable){if(t){const{x:s,y:e}=this.getBoundingClientRect();this.$zoom(i.scale,t.clientX-s,t.clientY-e)}else{this.$zoom(i.scale)}}break;case x:if(this.rotatable&&this.scalable){const{rotate:s}=i;let{scale:e}=i;if(e<0){e=1/(1-e)}else{e+=1}const n=Math.cos(s);const o=Math.sin(s);const[h,r,a,c]=[n*e,o*e,-o*e,n*e];if(t){const s=this.getBoundingClientRect();const i=t.clientX-s.x;const e=t.clientY-s.y;const[n,o,l,u]=this.$matrix;const f=s.width/2;const p=s.height/2;const d=i-f;const b=e-p;const m=(d*u-l*b)/(n*u-l*o);const g=(b-o*m)/u;this.$transform(h,r,a,c,m*(1-h)+g*a,g*(1-c)+m*r)}else{this.$transform(h,r,a,c,0,0)}}break}}}$ready(t){const{$image:s}=this;const i=new Promise(((t,i)=>{const e=new Error("Failed to load the image source");if(s.complete){if(s.naturalWidth>0&&s.naturalHeight>0){t(s)}else{i(e)}}else{const n=()=>{ut(s,_,o);t(s)};const o=()=>{ut(s,L,n);i(e)};pt(s,L,n);pt(s,_,o)}}));if(nt(t)){i.then((s=>{t(s);return s}))}return i}$center(t){const{parentElement:s}=this;if(!s){return this}const i=s.getBoundingClientRect();const e=i.width;const n=i.height;const{x:o,y:h,width:r,height:a}=this.getBoundingClientRect();const c=o+r/2;const l=h+a/2;const u=i.x+e/2;const f=i.y+n/2;this.$move(u-c,f-l);if(t&&(r!==e||a!==n)){const s=e/r;const i=n/a;switch(t){case"cover":this.$scale(Math.max(s,i));break;case"contain":this.$scale(Math.min(s,i));break}}return this}$move(t,s=t){if(this.translatable&&Q(t)&&Q(s)){const[i,e,n,o]=this.$matrix;const h=(t*o-n*s)/(i*o-n*e);const r=(s-e*h)/o;this.$translate(h,r)}return this}$moveTo(t,s=t){if(this.translatable&&Q(t)&&Q(s)){const[i,e,n,o]=this.$matrix;const h=(t*o-n*s)/(i*o-n*e);const r=(s-e*h)/o;this.$setTransform(i,e,n,o,h,r)}return this}$rotate(t,s,i){if(this.rotatable){const e=$t(t);const n=Math.cos(e);const o=Math.sin(e);const[h,r,a,c]=[n,o,-o,n];if(Q(s)&&Q(i)){const[t,e,n,o]=this.$matrix;const{width:l,height:u}=this.getBoundingClientRect();const f=l/2;const p=u/2;const d=s-f;const b=i-p;const m=(d*o-n*b)/(t*o-n*e);const g=(b-e*m)/o;this.$transform(h,r,a,c,m*(1-h)-g*a,g*(1-c)-m*r)}else{this.$transform(h,r,a,c,0,0)}}return this}$zoom(t,s,i){if(!this.scalable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}if(Q(s)&&Q(i)){const[e,n,o,h]=this.$matrix;const{width:r,height:a}=this.getBoundingClientRect();const c=r/2;const l=a/2;const u=s-c;const f=i-l;const p=(u*h-o*f)/(e*h-o*n);const d=(f-n*p)/h;this.$transform(t,0,0,t,p*(1-t),d*(1-t))}else{this.$scale(t)}return this}$scale(t,s=t){if(this.scalable){this.$transform(t,0,0,s,0,0)}return this}$skew(t,s=0){if(this.skewable){const i=$t(t);const e=$t(s);this.$transform(1,Math.tan(e),Math.tan(i),1,0,0)}return this}$translate(t,s=t){if(this.translatable&&Q(t)&&Q(s)){this.$transform(1,0,0,1,t,s)}return this}$transform(t,s,i,e,n,o){if(Q(t)&&Q(s)&&Q(i)&&Q(e)&&Q(n)&&Q(o)){return this.$setTransform(zt(this.$matrix,[t,s,i,e,n,o]))}return this}$setTransform(t,s,i,e,n,o){if(this.rotatable||this.scalable||this.skewable||this.translatable){if(Array.isArray(t)){[t,s,i,e,n,o]=t}if(Q(t)&&Q(s)&&Q(i)&&Q(e)&&Q(n)&&Q(o)){const h=[t,s,i,e,n,o];if(this.$emit(q,{matrix:h,oldMatrix:this.$matrix})===false){return this}this.$matrix=h;this.style.transform=`matrix(${h.join(", ")})`}}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}Wt.$name=b;Wt.$version="2.0.0-beta.4";var Pt=`:host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}`;const _t=new WeakMap;class Dt extends Et{constructor(){super(...arguments);this.$onCanvasChange=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$style=Pt;this.x=0;this.y=0;this.width=0;this.height=0;this.slottable=false;this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){_t.set(this,t)}get $canvas(){return _t.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(u));if(t){this.$canvas=t;this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(m));if(s){this.$onCanvasActionStart=t=>{if(s.hidden&&t.detail.action===v){this.hidden=false}};this.$onCanvasActionEnd=t=>{if(s.hidden&&t.detail.action===v){this.hidden=true}};this.$onCanvasChange=t=>{const{x:i,y:e,width:n,height:o}=t.detail;this.$change(i,e,n,o);if(s.hidden||i===0&&e===0&&n===0&&o===0){this.hidden=true}};ft(t,K,this.$onCanvasActionStart);ft(t,F,this.$onCanvasActionEnd);ft(t,Z,this.$onCanvasChange)}}this.$render()}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){ut(t,K,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){ut(t,F,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasChange){ut(t,Z,this.$onCanvasChange);this.$onCanvasChange=null}}super.disconnectedCallback()}$change(t,s,i=this.width,e=this.height){if(!Q(t)||!Q(s)||!Q(i)||!Q(e)||t===this.x&&s===this.y&&i===this.width&&e===this.height){return this}if(this.hidden){this.hidden=false}this.x=t;this.y=s;this.width=i;this.height=e;return this.$render()}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:r.innerWidth})}}Dt.$name=g;Dt.$version="2.0.0-beta.4";var Lt=`:host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}`;class Ht extends Et{constructor(){super(...arguments);this.$onCanvasCropEnd=null;this.$onCanvasCropStart=null;this.$style=Lt;this.action=z;this.plain=false;this.slottable=false;this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Ht.$name=d;Ht.$version="2.0.0-beta.4";var Bt=`:host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}`;const Ft=new WeakMap;class Ut extends Et{constructor(){super(...arguments);this.$onCanvasAction=null;this.$onCanvasActionStart=null;this.$onCanvasActionEnd=null;this.$onDocumentKeyDown=null;this.$action="";this.$actionStartTarget=null;this.$style=Bt;this.x=0;this.y=0;this.width=0;this.height=0;this.aspectRatio=NaN;this.initialAspectRatio=NaN;this.initialCoverage=NaN;this.active=false;this.movable=false;this.resizable=false;this.zoomable=false;this.multiple=false;this.keyboard=false;this.outlined=false;this.precise=false}set $canvas(t){Ft.set(this,t)}get $canvas(){return Ft.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","height","initial-aspect-ratio","initial-coverage","keyboard","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"aspectRatio":if(!V(i)){this.aspectRatio=NaN}break;case"initialAspectRatio":if(!V(i)){this.initialAspectRatio=NaN}break;case"initialCoverage":if(!V(i)||i>1){this.initialCoverage=NaN}break;case"keyboard":this.$nextTick((()=>{if(this.$canvas){if(i){if(!this.$onDocumentKeyDown){this.$onDocumentKeyDown=this.$handleKeyDown.bind(this);ft(this.ownerDocument,D,this.$onDocumentKeyDown)}}else if(this.$onDocumentKeyDown){ut(this.ownerDocument,D,this.$onDocumentKeyDown);this.$onDocumentKeyDown=null}}}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();if(i){t.forEach((t=>{t.active=false}));this.active=true;this.$emit(Z,{x:this.x,y:this.y,width:this.width,height:this.height})}else{this.active=false;t.slice(1).forEach((t=>{this.$removeSelection(t)}))}}}));break}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(u));if(t){this.$canvas=t;this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`});if(!this.hidden){this.$render()}const{initialCoverage:s,parentElement:i}=this;if(V(s)&&i){const t=this.aspectRatio||this.initialAspectRatio;const{offsetWidth:e,offsetHeight:n}=i;let o=e*s;let h=n*s;if(V(t)){({width:o,height:h}=xt({aspectRatio:t,width:o,height:h}))}this.$change(this.x,this.y,o,h);this.$center()}this.$onCanvasActionStart=this.$handleActionStart.bind(this);this.$onCanvasActionEnd=this.$handleActionEnd.bind(this);this.$onCanvasAction=this.$handleAction.bind(this);ft(t,K,this.$onCanvasActionStart);ft(t,F,this.$onCanvasActionStart);ft(t,B,this.$onCanvasAction)}else{this.$render()}}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){ut(t,K,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){ut(t,F,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){ut(t,B,this.$onCanvasAction);this.$onCanvasAction=null}}super.disconnectedCallback()}$getSelections(){let t=[];if(this.parentElement){t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(m)))}return t}$createSelection(){const t=this.cloneNode(true);if(this.hasAttribute("id")){t.removeAttribute("id")}this.active=false;if(this.parentElement){this.parentElement.insertBefore(t,this.nextSibling)}return t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const i=s.indexOf(t);const e=s[i+1]||s[i-1];if(e){t.active=false;this.parentElement.removeChild(t);e.active=true;e.$emit(Z,{x:e.x,y:e.y,width:e.width,height:e.height})}}else{this.$reset();this.hidden=true}}}$handleActionStart(t){var s,i;const e=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target;this.$action="";this.$actionStartTarget=e;if(!this.hidden&&this.multiple&&!this.active&&e===this&&this.parentElement){this.$getSelections().forEach((t=>{t.active=false}));this.active=true;this.$emit(Z,{x:this.x,y:this.y,width:this.width,height:this.height})}}$handleAction(t){const{currentTarget:s,detail:i}=t;if(s&&i){const{relatedEvent:e}=i;let{action:n}=i;if(!n&&this.multiple){n=this.$action||(e===null||e===void 0?void 0:e.target.action);this.$action=n}if(!n||this.hidden&&n!==v||this.multiple&&!this.active&&n!==k){return}const o=i.endX-i.startX;const h=i.endY-i.startY;const{width:r,height:a}=this;let{aspectRatio:c}=this;if(!V(c)&&t.shiftKey){c=V(r)&&V(a)?r/a:1}switch(n){case v:{const{$canvas:t}=this;const e=wt(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(i.startX-e.left,i.startY-e.top,o,h,c);n=T;if(o<0){if(h>0){n=E}else if(h<0){n=S}}else if(o>0){if(h<0){n=O}}if(t){t.$action=n}break}case $:if(this.movable&&(this.$actionStartTarget&&this.contains(this.$actionStartTarget))){this.$move(o,h)}break;case k:if(e&&this.zoomable){const t=wt(s);this.$zoom(i.scale,e.pageX-t.left,e.pageY-t.top)}break;default:this.$resize(n,o,h,c)}}}$handleActionEnd(){this.$action="";this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented){return}switch(t.key){case"Backspace":if(t.metaKey){t.preventDefault();this.$removeSelection()}break;case"Delete":t.preventDefault();this.$removeSelection();break;case"ArrowLeft":t.preventDefault();this.$move(-1,0);break;case"ArrowRight":t.preventDefault();this.$move(1,0);break;case"ArrowUp":t.preventDefault();this.$move(0,-1);break;case"ArrowDown":t.preventDefault();this.$move(0,1);break;case"+":t.preventDefault();this.$zoom(.1);break;case"-":t.preventDefault();this.$zoom(-.1);break}}$center(){const{parentElement:t}=this;if(!t){return this}const s=(t.offsetWidth-this.width)/2;const i=(t.offsetHeight-this.height)/2;return this.$change(s,i)}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){if(!this.movable){return this}return this.$change(t,s)}$resize(t,s=0,i=0,e=this.aspectRatio){if(!this.resizable){return this}const n=V(e);const{$canvas:o}=this;let{x:h,y:r,width:a,height:c}=this;switch(t){case M:r+=i;c-=i;if(c<0){t=A;c=-c;r-=c}if(n){s=i*e;h+=s/2;a-=s;if(a<0){a=-a;h-=a}}break;case C:a+=s;if(a<0){t=j;a=-a;h-=a}if(n){i=s/e;r-=i/2;c+=i;if(c<0){c=-c;r-=c}}break;case A:c+=i;if(c<0){t=M;c=-c;r-=c}if(n){s=i*e;h-=s/2;a+=s;if(a<0){a=-a;h-=a}}break;case j:h+=s;a-=s;if(a<0){t=C;a=-a;h-=a}if(n){i=s/e;r+=i/2;c-=i;if(c<0){c=-c;r-=c}}break;case O:if(n){i=-s/e}r+=i;c-=i;a+=s;if(a<0&&c<0){t=E;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=S;a=-a;h-=a}else if(c<0){t=T;c=-c;r-=c}break;case S:if(n){i=s/e}h+=s;r+=i;a-=s;c-=i;if(a<0&&c<0){t=T;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=O;a=-a;h-=a}else if(c<0){t=E;c=-c;r-=c}break;case T:if(n){i=s/e}a+=s;c+=i;if(a<0&&c<0){t=S;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=E;a=-a;h-=a}else if(c<0){t=O;c=-c;r-=c}break;case E:if(n){i=-s/e}h+=s;a-=s;c+=i;if(a<0&&c<0){t=O;a=-a;c=-c;h-=a;r-=c}else if(a<0){t=T;a=-a;h-=a}else if(c<0){t=S;c=-c;r-=c}break}if(o){o.$setAction(t)}return this.$change(h,r,a,c)}$zoom(t,s,i){if(!this.zoomable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}const{width:e,height:n}=this;const o=e*t;const h=n*t;let r=this.x;let a=this.y;if(Q(s)&&Q(i)){r-=(o-e)*((s-this.x)/e);a-=(h-n)*((i-this.y)/n)}else{r-=(o-e)/2;a-=(h-n)/2}return this.$change(r,a,o,h)}$change(t,s,i=this.width,e=this.height,n=this.aspectRatio){if(!Q(t)||!Q(s)||!Q(i)||!Q(e)){return this}if(!this.precise){t=Math.round(t);s=Math.round(s);i=Math.round(i);e=Math.round(e)}if(t===this.x&&s===this.y&&i===this.width&&e===this.height){return this}if(this.hidden){this.hidden=false}if(V(n)){({width:i,height:e}=xt({aspectRatio:n,width:i,height:e},"cover"))}if(this.$emit(Z,{x:t,y:s,width:i,height:e})===false){return this}this.x=t;this.y=s;this.width=i;this.height=e;return this.$render()}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let{width:n,height:o}=this;let h=1;if(et(t)&&(V(t.width)||V(t.height))){({width:n,height:o}=xt({aspectRatio:n/o,width:t.width,height:t.height}));h=n/this.width}e.width=n;e.height=o;if(!this.$canvas){s(e);return}const r=this.$canvas.querySelector(this.$getTagNameOf(b));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,u,f,p]=r.$getTransform();const d=-this.x;const b=-this.y;const m=(d*u-l*b)/(s*u-l*c);const g=(b-c*m)/u;let w=s*m+l*g+f;let v=c*m+u*g+p;let $=i.naturalWidth;let k=i.naturalHeight;if(h!==1){w*=h;v*=h;$*=h;k*=h}const y=$/2;const x=k/2;a.fillStyle="transparent";a.fillRect(0,0,n,o);if(et(t)&&nt(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(y,x);a.transform(s,c,l,u,w,v);a.translate(-y,-x);a.drawImage(i,0,0,$,k);a.restore()}s(e)})).catch(i)}))}}Ut.$name=m;Ut.$version="2.0.0-beta.4";var Kt=`:host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}`;class Zt extends Et{constructor(){super(...arguments);this.$style=Kt;this.bordered=false;this.columns=3;this.covered=false;this.rows=3;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);if(t==="rows"||t==="columns"){this.$render()}}connectedCallback(){super.connectedCallback();this.$render()}$render(){const t=this.$getShadowRoot();const s=document.createDocumentFragment();for(let t=0;t<this.rows;t+=1){const t=document.createElement("span");t.setAttribute("role","row");for(let s=0;s<this.columns;s+=1){const s=document.createElement("span");s.setAttribute("role","gridcell");t.appendChild(s)}s.appendChild(t)}if(t){t.innerHTML="";t.appendChild(s)}}}Zt.$name=p;Zt.$version="2.0.0-beta.4";var qt=`:host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`;class Gt extends Et{constructor(){super(...arguments);this.$style=qt;this.centered=false;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Gt.$name=f;Gt.$version="2.0.0-beta.4";var Jt=`:host{display:block;height:100%;overflow:hidden;position:relative;width:100%}`;const Qt=new WeakMap;const Vt=new WeakMap;const ts=new WeakMap;const ss="both";const is="horizontal";const es="vertical";const ns="none";class os extends Et{constructor(){super(...arguments);this.$onSelectionChange=null;this.$onSourceImageLoad=null;this.$onSourceImageTransform=null;this.$scale=1;this.$style=Jt;this.resize=es;this.selection="";this.slottable=false}set $image(t){Qt.set(this,t)}get $image(){return Qt.get(this)}set $sourceImage(t){ts.set(this,t)}get $sourceImage(){return ts.get(this)}set $selection(t){Vt.set(this,t)}get $selection(){return Vt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(this.selection){t=this.ownerDocument.querySelector(this.selection)}else{t=this.closest(this.$getTagNameOf(m))}if(ot(t)){this.$selection=t;this.$onSelectionChange=this.$handleSelectionChange.bind(this);ft(t,Z,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(u));if(s){const t=s.querySelector(this.$getTagNameOf(b));if(t){this.$sourceImage=t;this.$image=t.cloneNode(true);this.$getShadowRoot().appendChild(this.$image);this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this);this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this);ft(t.$image,L,this.$onSourceImageLoad);ft(t,q,this.$onSourceImageTransform)}}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;if(t&&this.$onSelectionChange){ut(t,Z,this.$onSelectionChange);this.$onSelectionChange=null}if(s&&this.$onSourceImageLoad){ut(s.$image,L,this.$onSourceImageLoad);this.$onSourceImageLoad=null}if(s&&this.$onSourceImageTransform){ut(s,q,this.$onSourceImageTransform);this.$onSourceImageTransform=null}super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this;const i=t.getAttribute("src");const e=s.getAttribute("src");if(e&&e!==i){t.setAttribute("src",e);t.$ready((()=>{setTimeout((()=>{const{x:t,y:i}=this.$selection;this.$transformImageByOffset(s.$getTransform(),-t,-i)}))}))}}$handleSourceImageTransform(t){const{x:s,y:i}=this.$selection;this.$transformImageByOffset(t.detail.matrix,-s,-i)}$render(t){const{x:s,y:i,width:e,height:n}=t||this.$selection;const o={};const{clientWidth:h,clientHeight:r}=this;let a=h;let c=r;let l=NaN;switch(this.resize){case ss:l=1;a=e;c=n;o.width=e;o.height=n;break;case is:l=r/n;a=e*l;o.width=a;break;case es:l=h/e;c=n*l;o.height=c;break;case ns:default:if(h>0){l=h/e}else if(r>0){l=r/n}}this.$scale=l;this.$setStyles(o);if(this.$sourceImage){this.$transformImageByOffset(this.$sourceImage.$getTransform(),-s,-i)}}$transformImageByOffset(t,s,i){const{$image:e,$scale:n,$sourceImage:o}=this;if(o&&e&&n>0){const[o,h,r,a,c,l]=t;const u=(s*a-r*i)/(o*a-r*h);const f=(i-h*u)/a;const p=o*u+r*f+c;const d=h*u+a*f+l;e.$ready((t=>{this.$setStyles.call(e,{width:t.naturalWidth*n,height:t.naturalHeight*n})}));e.$setTransform(o,h,r,a,p*n,d*n)}}}os.$name=w;os.$version="2.0.0-beta.4";
|
|
2
2
|
/*! Cropper.js v2.0.0-beta.4 | (c) 2015-present Chen Fengyuan | MIT */Nt.$define();Gt.$define();Zt.$define();Ht.$define();Wt.$define();Ut.$define();Dt.$define();os.$define();const hs=".relative{position:relative!important}.-mt-\\[6px\\]{margin-top:-6px!important}.mb-6{margin-bottom:1.5rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-\\[2px\\]{height:2px!important}.w-4{width:1rem!important}.w-full{width:100%!important}.appearance-none{appearance:none!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.rounded-round{border-radius:100%!important}.border-0{border-width:0!important}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}:host .p-input[type=range]{appearance:none;background-color:transparent;position:relative}:host .p-input[type=range]::-webkit-slider-runnable-track{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));height:2px}:host .p-input[type=range]::-moz-range-track{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));height:2px}:host .p-input[type=range]::-moz-range-thumb,:host .p-input[type=range]::-webkit-slider-thumb{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity));border-radius:100%;border-width:0;height:1rem;width:1rem}:host .p-input[type=range]::-webkit-slider-thumb{margin-top:-6px}.static{position:static!important}.hidden{display:none!important}.h-\\[17\\.5rem\\]{height:17.5rem!important}.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))!important}.resize{resize:both!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-medium{--tw-border-opacity:1!important;border-color:rgb(227 236 243/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.px-14{padding-left:3.5rem!important;padding-right:3.5rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem!important}.tablet\\:px-1{padding-left:.25rem!important;padding-right:.25rem!important}}";const rs=class{constructor(i){t(this,i);this.valueChange=s(this,"valueChange",3);this._maxScale=0;this._minScale=0;this.variant="user";this.value=undefined;this.returnType="base64";this._loaded=false;this._currentScale=0}onResize(){if(this._resizeDebounceTimeout){clearTimeout(this._resizeDebounceTimeout)}this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center();this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=true}),200)}render(){return i(e,{class:"p-cropper"},this._loaded&&i("cropper-canvas",{class:"h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white",onAction:()=>this._onAction()},i("cropper-image",{src:this.value,alt:"Picture",ref:t=>this._setImageRef(t),scalable:true,crossorigin:"anonymous"}),i("cropper-shade",{class:o({"rounded-round":this.variant==="user",rounded:this.variant==="company"}),"theme-color":"rgba(255, 255, 255, 0.5)",hidden:true}),i("cropper-selection",{"initial-coverage":"0.7","aspect-ratio":"1",ref:t=>this._selectionRef=t}),i("cropper-handle",{action:"move",plain:true})),i("div",{class:"flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1"},i("p-icon",{variant:"minus"}),i("input",{class:"p-input w-full",type:"range",min:"0",max:"100",value:this._currentScale,onInput:t=>this._onInput(t.target.value),step:"0.5"}),i("p-icon",{variant:"plus"})))}_setImageRef(t){if(this._imageRef){return}this._imageRef=t;this._imageRef.$ready((t=>setTimeout((()=>this._setInitialState(t)),200)))}_setInitialState(t){let s;if(t.naturalWidth>t.naturalHeight){s=200/t.naturalHeight}if(t.naturalHeight>=t.naturalWidth){s=200/t.naturalWidth}const i=this._imageRef.$getTransform();this._minScale=s;this._maxScale=i[0];this._selectionRef.$resize("nw-resize",200,200,1);this._selectionRef.$center();this._setScale(s);this._toCanvas()}_onAction(){this._setCurrentScale();this._toCanvas()}_setScale(t,s=true,i=true){const e=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,e[4],e[5]]);if(s){this._imageRef.$center()}if(i){this._setCurrentScale()}}_setCurrentScale(){const t=this._imageRef.$getTransform();const s=t[0];if(s<this._minScale){this._setScale(this._minScale,true,false);this._currentScale=0;return}if(s>this._maxScale){this._setScale(this._maxScale,true,false);this._currentScale=100;return}if(s===this._minScale){this._currentScale=0;return}if(s===this._maxScale){this._currentScale=100;return}const i=this._maxScale-this._minScale;const e=s-this._minScale;const n=e/i*100;this._currentScale=n}_onInput(t){const s=this._imageRef.$getTransform();const i=s[0];const e=this._maxScale-this._minScale;const n=e*(t/100);if(n===i){return}this._setScale(n+this._minScale,false,false);this._currentScale=t;this._toCanvas()}_toCanvas(){if(this._toCanvasDebounceTimeout){clearTimeout(this._toCanvasDebounceTimeout)}this._toCanvasDebounceTimeout=setTimeout((async()=>{const t=await this._selectionRef.$toCanvas();if(this.returnType==="canvas"){this.valueChange.emit(t);return}const s=t.toDataURL("image/png");this.valueChange.emit(s)}),200)}};rs.style=hs;export{rs as p_cropper};
|
|
3
|
-
//# sourceMappingURL=p-
|
|
3
|
+
//# sourceMappingURL=p-a11cf84a.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s}from"./p-0c2cc6c4.js";const e=class{constructor(e){s(this,e);this.type="both";this.icon=undefined;this.iconOnly=false;this.iconFlip=undefined;this.iconRotate=undefined;this.label=undefined;this.action=undefined;this.disabled=false;this.loading=false;this.showFunction=undefined}render(){return}};export{e as p_table_row_action};
|
|
2
|
+
//# sourceMappingURL=p-a5770573.entry.js.map
|