@paperless/core 3.8.2 → 3.10.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/dist/build/{p-6b1c18a6.entry.js → p-001e60c3.entry.js} +1 -1
- package/dist/{paperless/p-7c4f3d89.entry.js → build/p-0892908c.entry.js} +1 -1
- package/dist/build/p-21b62f41.entry.js +1 -0
- package/dist/build/{p-5f2b2731.entry.js → p-27613157.entry.js} +1 -1
- package/dist/{paperless/p-bcfbb856.entry.js → build/p-2c10ed8a.entry.js} +1 -1
- package/dist/{paperless/p-4baa94c0.entry.js → build/p-7b858cd2.entry.js} +1 -1
- package/dist/build/{p-2f9a3144.entry.js → p-7c01dd27.entry.js} +2 -2
- package/dist/build/{p-7c599362.js → p-7fe47678.js} +1 -1
- package/dist/build/{p-7be1c70d.entry.js → p-87112092.entry.js} +1 -1
- package/dist/{paperless/p-c3cab1ca.entry.js → build/p-8e3a2fa0.entry.js} +1 -1
- package/dist/build/{p-aca48431.entry.js → p-8e91039f.entry.js} +1 -1
- package/dist/build/{p-99522e10.entry.js → p-90c95664.entry.js} +1 -1
- package/dist/{paperless/p-d6958e7a.entry.js → build/p-9f3cf82d.entry.js} +1 -1
- package/dist/build/{p-75918198.entry.js → p-a1e69465.entry.js} +1 -1
- package/dist/build/{p-2388a075.entry.js → p-a263c4fe.entry.js} +1 -1
- package/dist/build/{p-e021a548.entry.js → p-ad2767f7.entry.js} +1 -1
- package/dist/{paperless/p-748c6ed3.entry.js → build/p-afc6498d.entry.js} +1 -1
- package/dist/{paperless/p-1e9233ac.entry.js → build/p-b2cbd111.entry.js} +1 -1
- package/dist/build/{p-a58a0a99.entry.js → p-b35a687a.entry.js} +1 -1
- package/dist/build/{p-d58fe6e4.entry.js → p-b4c6d3be.entry.js} +1 -1
- package/dist/build/{p-33fc3203.entry.js → p-b992baa0.entry.js} +1 -1
- package/dist/build/p-bba808f0.entry.js +1 -0
- package/dist/build/{p-ad0caa7e.entry.js → p-bf22285d.entry.js} +1 -1
- package/dist/build/{p-7868dc58.entry.js → p-cbdf1355.entry.js} +1 -1
- package/dist/{paperless/p-1c6555d0.entry.js → build/p-d13d8eb9.entry.js} +1 -1
- package/dist/{paperless/p-edc7c624.entry.js → build/p-d4d0d4a7.entry.js} +1 -1
- package/dist/{paperless/p-ecc80c01.entry.js → build/p-e1aaca9c.entry.js} +1 -1
- package/dist/build/{p-c004664b.entry.js → p-e1fa4cc2.entry.js} +1 -1
- package/dist/build/{p-7447d78d.entry.js → p-e26a497e.entry.js} +1 -1
- package/dist/build/{p-8d67b17e.entry.js → p-e6f986d8.entry.js} +1 -1
- package/dist/build/p-ef2d18cc.entry.js +1 -0
- package/dist/{paperless/p-5b87fab2.entry.js → build/p-f6a8012e.entry.js} +1 -1
- package/dist/build/p-f9d28d53.entry.js +1 -0
- package/dist/build/{p-30e187cd.entry.js → p-fad5a088.entry.js} +1 -1
- package/dist/build/p-fb18c197.entry.js +1 -0
- package/dist/build/p-fd26cf65.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +8 -8
- package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +2 -2
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +2 -2
- package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -12
- package/dist/cjs/p-field_3.cjs.entry.js +30 -9
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +2 -2
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +5 -5
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
- package/dist/collection/components/atoms/radio/radio.component.js +3 -3
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.css +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +51 -9
- package/dist/collection/components/molecules/field/field/field.stories.js +3 -2
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +3 -3
- package/dist/collection/components/molecules/select/select.component.js +2 -2
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-qeQ4j6y4.js → p-3Vtsi6MW.js} +1 -1
- package/dist/components/{p-BaiRAcrb.js → p-4vMrjI4R.js} +1 -1
- package/dist/components/p-AdgmVWQg.js +1 -0
- package/dist/components/{p-CqInd6A4.js → p-B2OsP4eD.js} +1 -1
- package/dist/components/{p-DE8raUA8.js → p-B95c9dkd.js} +1 -1
- package/dist/components/{p-BdAf7y_c.js → p-BD4ZVzaR.js} +1 -1
- package/dist/components/{p-DqcTEpCu.js → p-BG0voO8b.js} +1 -1
- package/dist/components/{p-D5t-6wkl.js → p-BO22HPlM.js} +1 -1
- package/dist/components/{p-BBAR0LE7.js → p-BSU1g6Cl.js} +1 -1
- package/dist/components/{p-2yaxaWU2.js → p-Bg0nKrgn.js} +1 -1
- package/dist/components/{p-CnyIhzd5.js → p-BqDsctQ9.js} +1 -1
- package/dist/components/{p-DYV_GnPW.js → p-BqRMTJiz.js} +1 -1
- package/dist/components/{p-CWH-A2lL.js → p-BxQCn3Jj.js} +1 -1
- package/dist/components/{p-ELoJvZtk.js → p-BzkJl46a.js} +1 -1
- package/dist/components/{p-CMjvIEHc.js → p-Bzz8LM5X.js} +1 -1
- package/dist/components/{p-1zHupCi5.js → p-CUZ_fbsu.js} +1 -1
- package/dist/components/{p-C16aqi4P.js → p-CUwpPeVc.js} +1 -1
- package/dist/components/{p-ChfqWQPf.js → p-C_JXTK81.js} +1 -1
- package/dist/components/{p-DDV-lx3_.js → p-CqDwyvBc.js} +1 -1
- package/dist/components/{p-CsygZkEa.js → p-CuKlo0QR.js} +1 -1
- package/dist/components/{p-CQ1UlIQc.js → p-DFZS6Jig.js} +1 -1
- package/dist/components/{p-66mF6GvD.js → p-DMdgkHjq.js} +1 -1
- package/dist/components/{p-BCddfleq.js → p-DQyKcYSv.js} +1 -1
- package/dist/components/{p-FEPDjWsP.js → p-DXNPGJOI.js} +1 -1
- package/dist/components/{p-N99o7eIO.js → p-DXkmWNXW.js} +1 -1
- package/dist/components/{p-CHER4MCx.js → p-Dy4IX7Pe.js} +1 -1
- package/dist/components/p-IBTfZiqD.js +1 -0
- package/dist/components/{p-DmzyuekN.js → p-PwfSEBI3.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/{p-CJhGT47T.js → p-i1p7L9W8.js} +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/{p-CtAGaRd5.js → p-t4aLscWg.js} +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +8 -8
- package/dist/esm/p-badge_3.entry.js +3 -3
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +2 -2
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-dropdown-menu-item_2.entry.js +2 -2
- package/dist/esm/p-empty-state_8.entry.js +12 -12
- package/dist/esm/p-field_3.entry.js +30 -9
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-listing-item.entry.js +1 -1
- package/dist/esm/p-listing-line.entry.js +1 -1
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body_4.entry.js +6 -6
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +3 -3
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +2 -2
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +5 -5
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-6b1c18a6.entry.js → p-001e60c3.entry.js} +1 -1
- package/dist/{build/p-7c4f3d89.entry.js → paperless/p-0892908c.entry.js} +1 -1
- package/dist/paperless/p-21b62f41.entry.js +1 -0
- package/dist/paperless/{p-5f2b2731.entry.js → p-27613157.entry.js} +1 -1
- package/dist/{build/p-bcfbb856.entry.js → paperless/p-2c10ed8a.entry.js} +1 -1
- package/dist/{build/p-4baa94c0.entry.js → paperless/p-7b858cd2.entry.js} +1 -1
- package/dist/paperless/{p-2f9a3144.entry.js → p-7c01dd27.entry.js} +2 -2
- package/dist/paperless/{p-7be1c70d.entry.js → p-87112092.entry.js} +1 -1
- package/dist/{build/p-c3cab1ca.entry.js → paperless/p-8e3a2fa0.entry.js} +1 -1
- package/dist/paperless/{p-aca48431.entry.js → p-8e91039f.entry.js} +1 -1
- package/dist/paperless/{p-99522e10.entry.js → p-90c95664.entry.js} +1 -1
- package/dist/{build/p-d6958e7a.entry.js → paperless/p-9f3cf82d.entry.js} +1 -1
- package/dist/paperless/{p-75918198.entry.js → p-a1e69465.entry.js} +1 -1
- package/dist/paperless/{p-2388a075.entry.js → p-a263c4fe.entry.js} +1 -1
- package/dist/paperless/{p-e021a548.entry.js → p-ad2767f7.entry.js} +1 -1
- package/dist/{build/p-748c6ed3.entry.js → paperless/p-afc6498d.entry.js} +1 -1
- package/dist/{build/p-1e9233ac.entry.js → paperless/p-b2cbd111.entry.js} +1 -1
- package/dist/paperless/{p-a58a0a99.entry.js → p-b35a687a.entry.js} +1 -1
- package/dist/paperless/{p-d58fe6e4.entry.js → p-b4c6d3be.entry.js} +1 -1
- package/dist/paperless/{p-33fc3203.entry.js → p-b992baa0.entry.js} +1 -1
- package/dist/paperless/p-bba808f0.entry.js +1 -0
- package/dist/paperless/{p-ad0caa7e.entry.js → p-bf22285d.entry.js} +1 -1
- package/dist/paperless/{p-7868dc58.entry.js → p-cbdf1355.entry.js} +1 -1
- package/dist/{build/p-1c6555d0.entry.js → paperless/p-d13d8eb9.entry.js} +1 -1
- package/dist/{build/p-edc7c624.entry.js → paperless/p-d4d0d4a7.entry.js} +1 -1
- package/dist/{build/p-ecc80c01.entry.js → paperless/p-e1aaca9c.entry.js} +1 -1
- package/dist/paperless/{p-c004664b.entry.js → p-e1fa4cc2.entry.js} +1 -1
- package/dist/paperless/{p-7447d78d.entry.js → p-e26a497e.entry.js} +1 -1
- package/dist/paperless/{p-8d67b17e.entry.js → p-e6f986d8.entry.js} +1 -1
- package/dist/paperless/p-ef2d18cc.entry.js +1 -0
- package/dist/{build/p-5b87fab2.entry.js → paperless/p-f6a8012e.entry.js} +1 -1
- package/dist/paperless/p-f9d28d53.entry.js +1 -0
- package/dist/paperless/{p-30e187cd.entry.js → p-fad5a088.entry.js} +1 -1
- package/dist/paperless/p-fb18c197.entry.js +1 -0
- package/dist/paperless/p-fd26cf65.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/field/field/field.component.d.ts +5 -0
- package/dist/types/components/molecules/field/field/field.stories.d.ts +2 -1
- package/dist/types/components.d.ts +10 -0
- package/hydrate/index.js +117 -94
- package/hydrate/index.mjs +117 -94
- package/package.json +1 -1
- package/dist/build/p-0f206cdb.entry.js +0 -1
- package/dist/build/p-187a4dda.entry.js +0 -1
- package/dist/build/p-219131e2.entry.js +0 -1
- package/dist/build/p-980f3529.entry.js +0 -1
- package/dist/build/p-c4af6a8c.entry.js +0 -1
- package/dist/build/p-db387f26.entry.js +0 -1
- package/dist/components/p-CfkmcUeC.js +0 -1
- package/dist/components/p-CxOhqNqH.js +0 -1
- package/dist/paperless/p-0f206cdb.entry.js +0 -1
- package/dist/paperless/p-187a4dda.entry.js +0 -1
- package/dist/paperless/p-219131e2.entry.js +0 -1
- package/dist/paperless/p-980f3529.entry.js +0 -1
- package/dist/paperless/p-c4af6a8c.entry.js +0 -1
- package/dist/paperless/p-db387f26.entry.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as t,a as s,h as i}from"./p-yFtRjnrU.js";import{T as e}from"./p-CSySY6aC.js";import{s as h}from"./p-6XOzWrsN.js";const n="undefined"!=typeof window&&void 0!==window.document,r=n?window:{},o=!!n&&"ontouchstart"in r.document.documentElement,a=!!n&&"PointerEvent"in r,c="cropper",l=`${c}-canvas`,d=`${c}-crosshair`,u=`${c}-grid`,p=`${c}-handle`,b=`${c}-image`,m=`${c}-selection`,f=`${c}-shade`,g=`${c}-viewer`,w="select",v="move",$="scale",k="rotate",y="transform",x="none",z="n-resize",M="e-resize",C="s-resize",A="w-resize",j="ne-resize",S="nw-resize",O="se-resize",T="sw-resize",E=a?"pointerdown":o?"touchstart":"mousedown",N=a?"pointermove":o?"touchmove":"mousemove",I=a?"pointerup pointercancel":o?"touchend touchcancel":"mouseup",R="error",X="keydown",_="load",Y="wheel",W="action",P="actionend",D="actionstart",L="change",U="transform",F=Number.isNaN||r.isNaN;function B(t){return"number"==typeof t&&!F(t)}function H(t){return B(t)&&t>0&&t<1/0}function K(t){return"object"==typeof t&&null!==t}const{hasOwnProperty:V}=Object.prototype;function Z(t){if(!K(t))return!1;try{const{constructor:s}=t,{prototype:i}=s;return s&&i&&V.call(i,"isPrototypeOf")}catch(t){return!1}}function q(t){return"function"==typeof t}function G(t){return"object"==typeof t&&null!==t&&1===t.nodeType}const J=/([a-z\d])([A-Z])/g;function Q(t){return String(t).replace(J,"$1-$2").toLowerCase()}const tt=/-[A-z\d]/g;function st(t){return t.replace(tt,(t=>t.slice(1).toUpperCase()))}const it=/\s\s*/;function et(t,s,i,e){s.trim().split(it).forEach((s=>{t.removeEventListener(s,i,e)}))}function ht(t,s,i,e){s.trim().split(it).forEach((s=>{t.addEventListener(s,i,e)}))}function nt(t,s,i,e){ht(t,s,i,Object.assign(Object.assign({},e),{once:!0}))}const rt={bubbles:!0,cancelable:!0,composed:!0},ot=Promise.resolve();function at(t){const{documentElement:s}=t.ownerDocument,i=t.getBoundingClientRect();return{left:i.left+(r.pageXOffset-s.clientLeft),top:i.top+(r.pageYOffset-s.clientTop)}}const ct=/deg|g?rad|turn$/i;function lt(t){const s=parseFloat(t)||0;if(0!==s){const[i="rad"]=String(t).match(ct)||[];switch(i.toLowerCase()){case"deg":return s/360*(2*Math.PI);case"grad":return s/400*(2*Math.PI);case"turn":return s*(2*Math.PI)}}return s}const dt="contain";function ut(t,s=dt){const{aspectRatio:i}=t;let{width:e,height:h}=t;const n=H(e),r=H(h);if(n&&r){const t=h*i;s===dt&&t>e||"cover"===s&&t<e?h=e/i:e=h*i}else n?h=e/i:r&&(e=h*i);return{width:e,height:h}}function pt(t,...s){if(0===s.length)return t;const[i,e,h,n,r,o]=t,[a,c,l,d,u,p]=s[0];return pt(t=[i*a+h*c,e*a+n*c,i*l+h*d,e*l+n*d,i*u+h*p+r,e*u+n*p+o],...s.slice(1))}const bt=/left|top|width|height/i,mt="open",ft=new WeakMap,gt=new WeakMap,wt=new Map,vt=r.document&&Array.isArray(r.document.adoptedStyleSheets)&&"replaceSync"in r.CSSStyleSheet.prototype;class $t extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var t,s;super(),this.shadowRootMode=mt,this.slottable=!0;const i=null===(s=null===(t=Object.getPrototypeOf(this))||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.$name;i&&wt.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=st(t);let h=i;switch(typeof this[e]){case"boolean":h=null!==i&&"false"!==i;break;case"number":h=Number(i)}switch(this[e]=h,t){case"theme-color":{const t=gt.get(this),s=this.$sharedStyle;t&&s&&(vt?t.replaceSync(s):t.textContent=s);break}}}$propertyChangedCallback(t,s,i){if(!Object.is(i,s))switch(t=Q(t),typeof i){case"boolean":!0===i?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":i=F(i)?"":String(i);default:i?this.getAttribute(t)!==i&&this.setAttribute(t,i):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=st(t);let i=this[s];(function(t){return void 0===t})(i)||this.$propertyChangedCallback(s,void 0,i),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get:()=>i,set(t){const e=i;i=t,this.$propertyChangedCallback(s,e,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||mt});if(this.shadowRoot||ft.set(this,t),gt.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),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(){gt.has(this)&>.delete(this),ft.has(this)&&ft.delete(this)}$getTagNameOf(t){var s;return null!==(s=wt.get(t))&&void 0!==s?s:t}$setStyles(t){return Object.keys(t).forEach((s=>{let i=t[s];B(i)&&(i=0!==i&&bt.test(s)?`${i}px`:String(i)),this.style[s]=i})),this}$getShadowRoot(){return this.shadowRoot||ft.get(this)}$addStyles(t){let s;const i=this.$getShadowRoot();return vt?(s=new CSSStyleSheet,s.replaceSync(t),i.adoptedStyleSheets=i.adoptedStyleSheets.concat(s)):(s=document.createElement("style"),s.textContent=t,i.appendChild(s)),s}$emit(t,s,i){return function(t,s,i,e){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},rt),{detail:i}),e)))}(this,t,s,i)}$nextTick(t){return function(t,s){return s?ot.then(t?s.bind(t):s):ot}(this,t)}static $define(t,s){K(t)&&(s=t,t=""),t||(t=this.$name||this.name),t=Q(t),n&&r.customElements&&!r.customElements.get(t)&&customElements.define(t,this,s)}}$t.$version="2.0.0";class kt extends $t{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout: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}',this.$action=x,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(t,s,i){Object.is(i,s)||(super.$propertyChangedCallback(t,s,i),"disabled"!==t)||(i?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),ht(this,E,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),ht(this.ownerDocument,N,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),ht(this.ownerDocument,I,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),ht(this,Y,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(et(this,E,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(et(this.ownerDocument,N,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(et(this.ownerDocument,I,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(et(this,Y,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:s,button:i,type:e}=t;if(this.disabled||("pointerdown"===e&&"mouse"===t.pointerType||"mousedown"===e)&&(B(s)&&1!==s||B(i)&&0!==i||t.ctrlKey))return;const{$pointers:h}=this;let n="";if(t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{h.set(t,{startX:s,startY:i,endX:s,endY:i})}));else{const{pointerId:s=0,pageX:i,pageY:e}=t;h.set(s,{startX:i,startY:e,endX:i,endY:e})}h.size>1?n=y:G(t.target)&&(n=t.target.action||t.target.getAttribute("action")||""),!1!==this.$emit(D,{action:n,relatedEvent:t})&&(t.preventDefault(),this.$action=n,this.style.willChange="transform")}$handlePointerMove(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===x||0===i.size)return;if(!1===this.$emit("actionmove",{action:s,relatedEvent:t}))return;if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{const h=i.get(t);h&&Object.assign(h,{endX:s,endY:e})}));else{const{pointerId:s=0,pageX:e,pageY:h}=t,n=i.get(s);n&&Object.assign(n,{endX:e,endY:h})}const e={action:s,relatedEvent:t};if(s===y){const s=new Map(i);let h=0,n=0,r=0,o=0,a=t.pageX,c=t.pageY;i.forEach(((t,i)=>{s.delete(i),s.forEach((s=>{let i=s.startX-t.startX,e=s.startY-t.startY,l=s.endX-t.endX,d=s.endY-t.endY,u=0,p=0,b=0,m=0;if(0===i?e<0?b=2*Math.PI:e>0&&(b=Math.PI):i>0?b=Math.PI/2+Math.atan(e/i):i<0&&(b=1.5*Math.PI+Math.atan(e/i)),0===l?d<0?m=2*Math.PI:d>0&&(m=Math.PI):l>0?m=Math.PI/2+Math.atan(d/l):l<0&&(m=1.5*Math.PI+Math.atan(d/l)),m>0||b>0){const i=m-b,e=Math.abs(i);e>h&&(h=e,r=i,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}if(i=Math.abs(i),e=Math.abs(e),l=Math.abs(l),d=Math.abs(d),i>0&&e>0?u=Math.sqrt(i*i+e*e):i>0?u=i:e>0&&(u=e),l>0&&d>0?p=Math.sqrt(l*l+d*d):l>0?p=l:d>0&&(p=d),u>0&&p>0){const i=(p-u)/u,e=Math.abs(i);e>n&&(n=e,o=i,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}}))}));const l=h>0,d=n>0;l&&d?(e.rotate=r,e.scale=o,e.centerX=a,e.centerY=c):l?(e.action=k,e.rotate=r,e.centerX=a,e.centerY=c):d?(e.action=$,e.scale=o,e.centerX=a,e.centerY=c):e.action=x}else{const[t]=Array.from(i.values());Object.assign(e,t)}i.forEach((t=>{t.startX=t.endX,t.startY=t.endY})),e.action!==x&&this.$emit(W,e,{cancelable:!1})}$handlePointerUp(t){const{$action:s,$pointers:i}=this;if(!this.disabled&&s!==x&&!1!==this.$emit(P,{action:s,relatedEvent:t})){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t})=>{i.delete(t)}));else{const{pointerId:s=0}=t;i.delete(s)}0===i.size&&(this.style.willChange="",this.$action=x)}}$handleWheel(t){this.disabled||(t.preventDefault(),this.$wheeling||(this.$wheeling=!0,setTimeout((()=>{this.$wheeling=!1}),50),this.$emit(W,{action:$,scale:(t.deltaY>0?-1:1)*this.scaleStep,relatedEvent:t},{cancelable:!1})))}$setAction(t){return"string"==typeof t&&(this.$action=t),this}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected)return void i(new Error("The current element is not connected to the DOM."));const e=document.createElement("canvas");let h=this.offsetWidth,n=this.offsetHeight,r=1;Z(t)&&(H(t.width)||H(t.height))&&(({width:h,height:n}=ut({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.offsetWidth),e.width=h,e.height=n;const o=this.querySelector(this.$getTagNameOf(b));o?o.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform();let b=u,m=p,f=i.naturalWidth,g=i.naturalHeight;1!==r&&(b*=r,m*=r,f*=r,g*=r);const w=f/2,v=g/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Z(t)&&q(t.beforeDraw)&&t.beforeDraw.call(this,a,e),a.save(),a.translate(w,v),a.transform(s,c,l,d,b,m),a.translate(-w,-v),a.drawImage(i,0,0,f,g),a.restore()}s(e)})).catch(i):s(e)}))}}kt.$name=l,kt.$version="2.0.0";const yt=new WeakMap,xt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class zt extends $t{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=":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%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(t){yt.set(this,t)}get $canvas(){return yt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(xt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,i){Object.is(i,s)||(super.attributeChangedCallback(t,s,i),xt.includes(t)&&this.$image.setAttribute(t,i))}$propertyChangedCallback(t,s,i){Object.is(i,s)||(super.$propertyChangedCallback(t,s,i),"initialCenterSize"!==t)||this.$nextTick((()=>{this.$center(i)}))}connectedCallback(){super.connectedCallback();const{$image:t}=this,s=this.closest(this.$getTagNameOf(l));s&&(this.$canvas=s,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=t=>{var s,i;this.$actionStartTarget=null===(i=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===i?void 0:i.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),ht(s,D,this.$onCanvasActionStart),ht(s,P,this.$onCanvasActionEnd),ht(s,W,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),ht(t,_,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;s&&(this.$onCanvasActionStart&&(et(s,D,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(et(s,P,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(et(s,W,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(et(t,_,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(t),super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:s}=this,{detail:i}=t;if(i){const{relatedEvent:t}=i;let{action:e}=i;switch(e!==y||this.rotatable&&this.scalable||(e=this.rotatable?k:this.scalable?$:x),e){case v:if(this.translatable){let e=null;t&&(e=t.target.closest(this.$getTagNameOf(m))),e||(e=s.querySelector(this.$getTagNameOf(m))),e&&e.multiple&&!e.active&&(e=s.querySelector(`${this.$getTagNameOf(m)}[active]`)),e&&!e.hidden&&e.movable&&!e.dynamic&&this.$actionStartTarget&&e.contains(this.$actionStartTarget)||this.$move(i.endX-i.startX,i.endY-i.startY)}break;case k: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 $:if(this.scalable)if(t){const s=t.target.closest(this.$getTagNameOf(m));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:e}=this.getBoundingClientRect();this.$zoom(i.scale,t.clientX-s,t.clientY-e)}}else this.$zoom(i.scale);break;case y:if(this.rotatable&&this.scalable){const{rotate:s}=i;let{scale:e}=i;e<0?e=1/(1-e):e+=1;const h=Math.cos(s),n=Math.sin(s),[r,o,a,c]=[h*e,n*e,-n*e,h*e];if(t){const s=this.getBoundingClientRect(),i=t.clientX-s.x,e=t.clientY-s.y,[h,n,l,d]=this.$matrix,u=i-s.width/2,p=e-s.height/2,b=(u*d-l*p)/(h*d-l*n),m=(p*h-n*u)/(h*d-l*n);this.$transform(r,o,a,c,b*(1-r)+m*a,m*(1-c)+b*o)}else this.$transform(r,o,a,c,0,0)}}}}$ready(t){const{$image:s}=this,i=new Promise(((t,i)=>{const e=new Error("Failed to load the image source");if(s.complete)s.naturalWidth>0&&s.naturalHeight>0?t(s):i(e);else{const h=()=>{et(s,R,n),t(s)},n=()=>{et(s,_,h),i(e)};nt(s,_,h),nt(s,R,n)}}));return q(t)&&i.then((s=>(t(s),s))),i}$center(t){const{parentElement:s}=this;if(!s)return this;const i=s.getBoundingClientRect(),e=i.width,h=i.height,{x:n,y:r,width:o,height:a}=this.getBoundingClientRect();if(this.$move(i.x+e/2-(n+o/2),i.y+h/2-(r+a/2)),t&&(o!==e||a!==h)){const s=e/o,i=h/a;switch(t){case"cover":this.$scale(Math.max(s,i));break;case"contain":this.$scale(Math.min(s,i))}}return this}$move(t,s=t){if(this.translatable&&B(t)&&B(s)){const[i,e,h,n]=this.$matrix;this.$translate((t*n-h*s)/(i*n-h*e),(s*i-e*t)/(i*n-h*e))}return this}$moveTo(t,s=t){if(this.translatable&&B(t)&&B(s)){const[i,e,h,n]=this.$matrix;this.$setTransform(i,e,h,n,(t*n-h*s)/(i*n-h*e),(s*i-e*t)/(i*n-h*e))}return this}$rotate(t,s,i){if(this.rotatable){const e=lt(t),h=Math.cos(e),n=Math.sin(e),[r,o,a,c]=[h,n,-n,h];if(B(s)&&B(i)){const[t,e,h,n]=this.$matrix,{width:l,height:d}=this.getBoundingClientRect(),u=s-l/2,p=i-d/2,b=(u*n-h*p)/(t*n-h*e),m=(p*t-e*u)/(t*n-h*e);this.$transform(r,o,a,c,b*(1-r)-m*a,m*(1-c)-b*o)}else this.$transform(r,o,a,c,0,0)}return this}$zoom(t,s,i){if(!this.scalable||0===t)return this;if(t<0?t=1/(1-t):t+=1,B(s)&&B(i)){const[e,h,n,r]=this.$matrix,{width:o,height:a}=this.getBoundingClientRect(),c=s-o/2,l=i-a/2;this.$transform(t,0,0,t,(c*r-n*l)/(e*r-n*h)*(1-t),(l*e-h*c)/(e*r-n*h)*(1-t))}else this.$scale(t);return this}$scale(t,s=t){return this.scalable&&this.$transform(t,0,0,s,0,0),this}$skew(t,s=0){if(this.skewable){const i=lt(t),e=lt(s);this.$transform(1,Math.tan(e),Math.tan(i),1,0,0)}return this}$translate(t,s=t){return this.translatable&&B(t)&&B(s)&&this.$transform(1,0,0,1,t,s),this}$transform(t,s,i,e,h,n){return B(t)&&B(s)&&B(i)&&B(e)&&B(h)&&B(n)?this.$setTransform(pt(this.$matrix,[t,s,i,e,h,n])):this}$setTransform(t,s,i,e,h,n){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,s,i,e,h,n]=t),B(t)&&B(s)&&B(i)&&B(e)&&B(h)&&B(n))){const r=[...this.$matrix],o=[t,s,i,e,h,n];if(!1===this.$emit(U,{matrix:o,oldMatrix:r}))return this;this.$matrix=o,this.style.transform=`matrix(${o.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}zt.$name=b,zt.$version="2.0.0";const Mt=new WeakMap;class Ct extends $t{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){Mt.set(this,t)}get $canvas(){return Mt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));if(t){this.$canvas=t,this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(m));s&&(this.$onCanvasActionStart=t=>{s.hidden&&t.detail.action===w&&(this.hidden=!1)},this.$onCanvasActionEnd=t=>{s.hidden&&t.detail.action===w&&(this.hidden=!0)},this.$onCanvasChange=t=>{const{x:i,y:e,width:h,height:n}=t.detail;this.$change(i,e,h,n),(s.hidden||0===i&&0===e&&0===h&&0===n)&&(this.hidden=!0)},ht(t,D,this.$onCanvasActionStart),ht(t,P,this.$onCanvasActionEnd),ht(t,L,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(et(t,D,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(et(t,P,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(et(t,L,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,s,i=this.width,e=this.height){return B(t)&&B(s)&&B(i)&&B(e)&&(t!==this.x||s!==this.y||i!==this.width||e!==this.height)?(this.hidden&&(this.hidden=!1),this.x=t,this.y=s,this.width=i,this.height=e,this.$render()):this}$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})}}Ct.$name=f,Ct.$version="2.0.0";class At extends $t{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':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}',this.action=x,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}At.$name=p,At.$version="2.0.0";const jt=new WeakMap;class St extends $t{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':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}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(t){jt.set(this,t)}get $canvas(){return jt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,i){if(!Object.is(i,s))switch(super.$propertyChangedCallback(t,s,i),t){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick((()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)}));break;case"aspectRatio":case"initialAspectRatio":this.$nextTick((()=>{this.$initSelection()}));break;case"initialCoverage":this.$nextTick((()=>{H(i)&&i<=1&&this.$initSelection(!0,!0)}));break;case"keyboard":this.$nextTick((()=>{this.$canvas&&(i?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),ht(this.ownerDocument,X,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(et(this.ownerDocument,X,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();i?(t.forEach((t=>{t.active=!1})),this.active=!0,this.$emit(L,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,t.slice(1).forEach((t=>{this.$removeSelection(t)})))}}));break;case"precise":this.$nextTick((()=>{this.$change(this.x,this.y)}));break;case"linked":i&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));t?(this.$canvas=t,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),ht(t,D,this.$onCanvasActionStart),ht(t,P,this.$onCanvasActionEnd),ht(t,W,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(et(t,D,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(et(t,P,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(et(t,W,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(m)))),t}$initSelection(t=!1,s=!1){const{initialCoverage:i,parentElement:e}=this;if(H(i)&&e){const h=this.aspectRatio||this.initialAspectRatio;let n=(s?0:this.width)||e.offsetWidth*i,r=(s?0:this.height)||e.offsetHeight*i;H(h)&&({width:n,height:r}=ut({aspectRatio:h,width:n,height:r})),this.$change(this.x,this.y,n,r),t&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(!0);return this.hasAttribute("id")&&t.removeAttribute("id"),t.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(t,this.nextSibling),t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const i=s.indexOf(t),e=s[i+1]||s[i-1];e&&(t.active=!1,this.parentElement.removeChild(t),e.active=!0,e.$emit(L,{x:e.x,y:e.y,width:e.width,height:e.height}))}else this.$clear()}}$handleActionStart(t){var s,i;const e=null===(i=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===i?void 0:i.target;this.$action="",this.$actionStartTarget=e,!this.hidden&&this.multiple&&!this.active&&e===this&&this.parentElement&&(this.$getSelections().forEach((t=>{t.active=!1})),this.active=!0,this.$emit(L,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:s,detail:i}=t;if(!s||!i)return;const{relatedEvent:e}=i;let{action:h}=i;if(!h&&this.multiple&&(h=this.$action||(null==e?void 0:e.target.action),this.$action=h),!h||this.hidden&&h!==w||this.multiple&&!this.active&&h!==$)return;const n=i.endX-i.startX,r=i.endY-i.startY,{width:o,height:a}=this;let{aspectRatio:c}=this;switch(!H(c)&&e.shiftKey&&(c=H(o)&&H(a)?o/a:1),h){case w:if(0!==n&&0!==r){const{$canvas:t}=this,e=at(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(i.startX-e.left,i.startY-e.top,Math.abs(n),Math.abs(r),c),n<0?r<0?h=S:r>0&&(h=T):n>0&&(r<0?h=j:r>0&&(h=O)),t&&(t.$action=h)}break;case v:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(n,r);break;case $:if(e&&this.zoomable&&(this.dynamic||this.contains(e.target))){const t=at(s);this.$zoom(i.scale,e.pageX-t.left,e.pageY-t.top)}break;default:this.$resize(h,n,r,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented)return;const{activeElement:s}=document;if(!s||!["INPUT","TEXTAREA"].includes(s.tagName)&&!["true","plaintext-only"].includes(s.contentEditable))switch(t.key){case"Backspace":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)}}$center(){const{parentElement:t}=this;return t?this.$change((t.offsetWidth-this.width)/2,(t.offsetHeight-this.height)/2):this}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){return this.movable?this.$change(t,s):this}$resize(t,s=0,i=0,e=this.aspectRatio){if(!this.resizable)return this;const h=H(e),{$canvas:n}=this;let{x:r,y:o,width:a,height:c}=this;switch(t){case z:o+=i,c-=i,c<0&&(t=C,c=-c,o-=c),h&&(r+=(s=i*e)/2,a-=s,a<0&&(a=-a,r-=a));break;case M:a+=s,a<0&&(t=A,a=-a,r-=a),h&&(o-=(i=s/e)/2,c+=i,c<0&&(c=-c,o-=c));break;case C:c+=i,c<0&&(t=z,c=-c,o-=c),h&&(r-=(s=i*e)/2,a+=s,a<0&&(a=-a,r-=a));break;case A:r+=s,a-=s,a<0&&(t=M,a=-a,r-=a),h&&(o+=(i=s/e)/2,c-=i,c<0&&(c=-c,o-=c));break;case j:h&&(i=-s/e),o+=i,c-=i,a+=s,a<0&&c<0?(t=T,a=-a,c=-c,r-=a,o-=c):a<0?(t=S,a=-a,r-=a):c<0&&(t=O,c=-c,o-=c);break;case S:h&&(i=s/e),r+=s,o+=i,a-=s,c-=i,a<0&&c<0?(t=O,a=-a,c=-c,r-=a,o-=c):a<0?(t=j,a=-a,r-=a):c<0&&(t=T,c=-c,o-=c);break;case O:h&&(i=s/e),a+=s,c+=i,a<0&&c<0?(t=S,a=-a,c=-c,r-=a,o-=c):a<0?(t=T,a=-a,r-=a):c<0&&(t=j,c=-c,o-=c);break;case T:h&&(i=-s/e),r+=s,a-=s,c+=i,a<0&&c<0?(t=j,a=-a,c=-c,r-=a,o-=c):a<0?(t=O,a=-a,r-=a):c<0&&(t=S,c=-c,o-=c)}return n&&n.$setAction(t),this.$change(r,o,a,c)}$zoom(t,s,i){if(!this.zoomable||0===t)return this;t<0?t=1/(1-t):t+=1;const{width:e,height:h}=this,n=e*t,r=h*t;let o=this.x,a=this.y;return B(s)&&B(i)?(o-=(s-this.x)/e*(n-e),a-=(i-this.y)/h*(r-h)):(o-=(n-e)/2,a-=(r-h)/2),this.$change(o,a,n,r)}$change(t,s,i=this.width,e=this.height,h=this.aspectRatio,n=!1){return this.$changing||!B(t)||!B(s)||!B(i)||!B(e)||i<0||e<0?this:(H(h)&&({width:i,height:e}=ut({aspectRatio:h,width:i,height:e},"cover")),this.precise||(t=Math.round(t),s=Math.round(s),i=Math.round(i),e=Math.round(e)),t===this.x&&s===this.y&&i===this.width&&e===this.height&&Object.is(h,this.aspectRatio)&&!n?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(L,{x:t,y:s,width:i,height:e})?this:(this.$changing=!0,this.x=t,this.y=s,this.width=i,this.height=e,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:s,width:i,height:e}=this.$initialSelection;return this.$change(t,s,i,e)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$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)return void i(new Error("The current element is not connected to the DOM."));const e=document.createElement("canvas");let{width:h,height:n}=this,r=1;if(Z(t)&&(H(t.width)||H(t.height))&&(({width:h,height:n}=ut({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.width),e.width=h,e.height=n,!this.$canvas)return void s(e);const o=this.$canvas.querySelector(this.$getTagNameOf(b));o?o.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform(),b=-this.x,m=-this.y,f=(b*d-l*m)/(s*d-l*c),g=(m*s-c*b)/(s*d-l*c);let w=s*f+l*g+u,v=c*f+d*g+p,$=i.naturalWidth,k=i.naturalHeight;1!==r&&(w*=r,v*=r,$*=r,k*=r);const y=$/2,x=k/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Z(t)&&q(t.beforeDraw)&&t.beforeDraw.call(this,a,e),a.save(),a.translate(y,x),a.transform(s,c,l,d,w,v),a.translate(-y,-x),a.drawImage(i,0,0,$,k),a.restore()}s(e)})).catch(i):s(e)}))}}St.$name=m,St.$version="2.0.0";class Ot extends $t{constructor(){super(...arguments),this.$style=":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)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,i){Object.is(i,s)||(super.$propertyChangedCallback(t,s,i),"rows"!==t&&"columns"!==t||this.$nextTick((()=>{this.$render()})))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const t=this.$getShadowRoot(),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)}t&&(t.innerHTML="",t.appendChild(s))}}Ot.$name=u,Ot.$version="2.0.0";class Tt extends $t{constructor(){super(...arguments),this.$style=':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%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Tt.$name=d,Tt.$version="2.0.0";const Et=new WeakMap,Nt=new WeakMap,It=new WeakMap,Rt=new WeakMap,Xt="vertical";class _t extends $t{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Xt,this.selection="",this.slottable=!1}set $image(t){Nt.set(this,t)}get $image(){return Nt.get(this)}set $sourceImage(t){Rt.set(this,t)}get $sourceImage(){return Rt.get(this)}set $canvas(t){Et.set(this,t)}get $canvas(){return Et.get(this)}set $selection(t){It.set(this,t)}get $selection(){return It.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(t=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(m)),G(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),ht(t,L,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(l));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(b));t&&(this.$sourceImage=t,this.$image=t.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),ht(t.$image,_,this.$onSourceImageLoad),ht(t,U,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;t&&this.$onSelectionChange&&(et(t,L,this.$onSelectionChange),this.$onSelectionChange=null),s&&this.$onSourceImageLoad&&(et(s.$image,_,this.$onSourceImageLoad),this.$onSourceImageLoad=null),s&&this.$onSourceImageTransform&&(et(s,U,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this,i=t.getAttribute("src"),e=s.getAttribute("src");e&&e!==i&&(t.setAttribute("src",e),t.$ready((()=>{setTimeout((()=>{this.$render()}),50)})))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,s){const{$canvas:i,$selection:e}=this;t||e.hidden||(t=e),(!t||0===t.x&&0===t.y&&0===t.width&&0===t.height)&&(t={x:0,y:0,width:i.offsetWidth,height:i.offsetHeight});const{x:h,y:n,width:r,height:o}=t,a={},{clientWidth:c,clientHeight:l}=this;let d=c,u=l,p=NaN;switch(this.resize){case"both":p=1,d=r,u=o,a.width=r,a.height=o;break;case"horizontal":p=o>0?l/o:0,d=r*p,a.width=d;break;case Xt:p=r>0?c/r:0,u=o*p,a.height=u;break;default:c>0?p=r>0?c/r:0:l>0&&(p=o>0?l/o:0)}this.$scale=p,this.$setStyles(a),this.$sourceImage&&this.$transformImageByOffset(null!=s?s:this.$sourceImage.$getTransform(),-h,-n)}$transformImageByOffset(t,s,i){const{$image:e,$scale:h,$sourceImage:n}=this;if(n&&e&&h>=0){const[n,r,o,a,c,l]=t,d=(s*a-o*i)/(n*a-o*r),u=(i*n-r*s)/(n*a-o*r),p=n*d+o*u+c,b=r*d+a*u+l;e.$ready((t=>{this.$setStyles.call(e,{width:t.naturalWidth*h,height:t.naturalHeight*h})})),e.$setTransform(n,r,o,a,p*h,b*h)}}}_t.$name=g,_t.$version="2.0.0",
|
|
1
|
+
import{r as t,a as s,h as i}from"./p-yFtRjnrU.js";import{T as e}from"./p-CSySY6aC.js";import{s as h}from"./p-6XOzWrsN.js";const n="undefined"!=typeof window&&void 0!==window.document,r=n?window:{},o=!!n&&"ontouchstart"in r.document.documentElement,a=!!n&&"PointerEvent"in r,c="cropper",l=`${c}-canvas`,d=`${c}-crosshair`,u=`${c}-grid`,p=`${c}-handle`,b=`${c}-image`,f=`${c}-selection`,m=`${c}-shade`,g=`${c}-viewer`,w="select",v="move",$="scale",k="rotate",y="transform",x="none",z="n-resize",M="e-resize",C="s-resize",A="w-resize",j="ne-resize",S="nw-resize",O="se-resize",T="sw-resize",E=a?"pointerdown":o?"touchstart":"mousedown",N=a?"pointermove":o?"touchmove":"mousemove",I=a?"pointerup pointercancel":o?"touchend touchcancel":"mouseup",R="error",X="keydown",_="load",Y="wheel",W="action",P="actionend",D="actionstart",L="change",U="transform",F=Number.isNaN||r.isNaN;function B(t){return"number"==typeof t&&!F(t)}function H(t){return B(t)&&t>0&&t<1/0}function K(t){return"object"==typeof t&&null!==t}const{hasOwnProperty:V}=Object.prototype;function Z(t){if(!K(t))return!1;try{const{constructor:s}=t,{prototype:i}=s;return s&&i&&V.call(i,"isPrototypeOf")}catch(t){return!1}}function q(t){return"function"==typeof t}function G(t){return"object"==typeof t&&null!==t&&1===t.nodeType}const J=/([a-z\d])([A-Z])/g;function Q(t){return String(t).replace(J,"$1-$2").toLowerCase()}const tt=/-[A-z\d]/g;function st(t){return t.replace(tt,(t=>t.slice(1).toUpperCase()))}const it=/\s\s*/;function et(t,s,i,e){s.trim().split(it).forEach((s=>{t.removeEventListener(s,i,e)}))}function ht(t,s,i,e){s.trim().split(it).forEach((s=>{t.addEventListener(s,i,e)}))}function nt(t,s,i,e){ht(t,s,i,Object.assign(Object.assign({},e),{once:!0}))}const rt={bubbles:!0,cancelable:!0,composed:!0},ot=Promise.resolve();function at(t){const{documentElement:s}=t.ownerDocument,i=t.getBoundingClientRect();return{left:i.left+(r.pageXOffset-s.clientLeft),top:i.top+(r.pageYOffset-s.clientTop)}}const ct=/deg|g?rad|turn$/i;function lt(t){const s=parseFloat(t)||0;if(0!==s){const[i="rad"]=String(t).match(ct)||[];switch(i.toLowerCase()){case"deg":return s/360*(2*Math.PI);case"grad":return s/400*(2*Math.PI);case"turn":return s*(2*Math.PI)}}return s}const dt="contain";function ut(t,s=dt){const{aspectRatio:i}=t;let{width:e,height:h}=t;const n=H(e),r=H(h);if(n&&r){const t=h*i;s===dt&&t>e||"cover"===s&&t<e?h=e/i:e=h*i}else n?h=e/i:r&&(e=h*i);return{width:e,height:h}}function pt(t,...s){if(0===s.length)return t;const[i,e,h,n,r,o]=t,[a,c,l,d,u,p]=s[0];return pt(t=[i*a+h*c,e*a+n*c,i*l+h*d,e*l+n*d,i*u+h*p+r,e*u+n*p+o],...s.slice(1))}const bt=/left|top|width|height/i,ft="open",mt=new WeakMap,gt=new WeakMap,wt=new Map,vt=r.document&&Array.isArray(r.document.adoptedStyleSheets)&&"replaceSync"in r.CSSStyleSheet.prototype;class $t extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var t,s;super(),this.shadowRootMode=ft,this.slottable=!0;const i=null===(s=null===(t=Object.getPrototypeOf(this))||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.$name;i&&wt.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=st(t);let h=i;switch(typeof this[e]){case"boolean":h=null!==i&&"false"!==i;break;case"number":h=Number(i)}switch(this[e]=h,t){case"theme-color":{const t=gt.get(this),s=this.$sharedStyle;t&&s&&(vt?t.replaceSync(s):t.textContent=s);break}}}$propertyChangedCallback(t,s,i){if(!Object.is(i,s))switch(t=Q(t),typeof i){case"boolean":!0===i?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":i=F(i)?"":String(i);default:i?this.getAttribute(t)!==i&&this.setAttribute(t,i):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=st(t);let i=this[s];(function(t){return void 0===t})(i)||this.$propertyChangedCallback(s,void 0,i),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get:()=>i,set(t){const e=i;i=t,this.$propertyChangedCallback(s,e,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||ft});if(this.shadowRoot||mt.set(this,t),gt.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),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(){gt.has(this)&>.delete(this),mt.has(this)&&mt.delete(this)}$getTagNameOf(t){var s;return null!==(s=wt.get(t))&&void 0!==s?s:t}$setStyles(t){return Object.keys(t).forEach((s=>{let i=t[s];B(i)&&(i=0!==i&&bt.test(s)?`${i}px`:String(i)),this.style[s]=i})),this}$getShadowRoot(){return this.shadowRoot||mt.get(this)}$addStyles(t){let s;const i=this.$getShadowRoot();return vt?(s=new CSSStyleSheet,s.replaceSync(t),i.adoptedStyleSheets=i.adoptedStyleSheets.concat(s)):(s=document.createElement("style"),s.textContent=t,i.appendChild(s)),s}$emit(t,s,i){return function(t,s,i,e){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},rt),{detail:i}),e)))}(this,t,s,i)}$nextTick(t){return function(t,s){return s?ot.then(t?s.bind(t):s):ot}(this,t)}static $define(t,s){K(t)&&(s=t,t=""),t||(t=this.$name||this.name),t=Q(t),n&&r.customElements&&!r.customElements.get(t)&&customElements.define(t,this,s)}}$t.$version="2.0.0";class kt extends $t{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout: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}',this.$action=x,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(t,s,i){Object.is(i,s)||(super.$propertyChangedCallback(t,s,i),"disabled"!==t)||(i?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),ht(this,E,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),ht(this.ownerDocument,N,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),ht(this.ownerDocument,I,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),ht(this,Y,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(et(this,E,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(et(this.ownerDocument,N,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(et(this.ownerDocument,I,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(et(this,Y,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:s,button:i,type:e}=t;if(this.disabled||("pointerdown"===e&&"mouse"===t.pointerType||"mousedown"===e)&&(B(s)&&1!==s||B(i)&&0!==i||t.ctrlKey))return;const{$pointers:h}=this;let n="";if(t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{h.set(t,{startX:s,startY:i,endX:s,endY:i})}));else{const{pointerId:s=0,pageX:i,pageY:e}=t;h.set(s,{startX:i,startY:e,endX:i,endY:e})}h.size>1?n=y:G(t.target)&&(n=t.target.action||t.target.getAttribute("action")||""),!1!==this.$emit(D,{action:n,relatedEvent:t})&&(t.preventDefault(),this.$action=n,this.style.willChange="transform")}$handlePointerMove(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===x||0===i.size)return;if(!1===this.$emit("actionmove",{action:s,relatedEvent:t}))return;if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{const h=i.get(t);h&&Object.assign(h,{endX:s,endY:e})}));else{const{pointerId:s=0,pageX:e,pageY:h}=t,n=i.get(s);n&&Object.assign(n,{endX:e,endY:h})}const e={action:s,relatedEvent:t};if(s===y){const s=new Map(i);let h=0,n=0,r=0,o=0,a=t.pageX,c=t.pageY;i.forEach(((t,i)=>{s.delete(i),s.forEach((s=>{let i=s.startX-t.startX,e=s.startY-t.startY,l=s.endX-t.endX,d=s.endY-t.endY,u=0,p=0,b=0,f=0;if(0===i?e<0?b=2*Math.PI:e>0&&(b=Math.PI):i>0?b=Math.PI/2+Math.atan(e/i):i<0&&(b=1.5*Math.PI+Math.atan(e/i)),0===l?d<0?f=2*Math.PI:d>0&&(f=Math.PI):l>0?f=Math.PI/2+Math.atan(d/l):l<0&&(f=1.5*Math.PI+Math.atan(d/l)),f>0||b>0){const i=f-b,e=Math.abs(i);e>h&&(h=e,r=i,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}if(i=Math.abs(i),e=Math.abs(e),l=Math.abs(l),d=Math.abs(d),i>0&&e>0?u=Math.sqrt(i*i+e*e):i>0?u=i:e>0&&(u=e),l>0&&d>0?p=Math.sqrt(l*l+d*d):l>0?p=l:d>0&&(p=d),u>0&&p>0){const i=(p-u)/u,e=Math.abs(i);e>n&&(n=e,o=i,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}}))}));const l=h>0,d=n>0;l&&d?(e.rotate=r,e.scale=o,e.centerX=a,e.centerY=c):l?(e.action=k,e.rotate=r,e.centerX=a,e.centerY=c):d?(e.action=$,e.scale=o,e.centerX=a,e.centerY=c):e.action=x}else{const[t]=Array.from(i.values());Object.assign(e,t)}i.forEach((t=>{t.startX=t.endX,t.startY=t.endY})),e.action!==x&&this.$emit(W,e,{cancelable:!1})}$handlePointerUp(t){const{$action:s,$pointers:i}=this;if(!this.disabled&&s!==x&&!1!==this.$emit(P,{action:s,relatedEvent:t})){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t})=>{i.delete(t)}));else{const{pointerId:s=0}=t;i.delete(s)}0===i.size&&(this.style.willChange="",this.$action=x)}}$handleWheel(t){this.disabled||(t.preventDefault(),this.$wheeling||(this.$wheeling=!0,setTimeout((()=>{this.$wheeling=!1}),50),this.$emit(W,{action:$,scale:(t.deltaY>0?-1:1)*this.scaleStep,relatedEvent:t},{cancelable:!1})))}$setAction(t){return"string"==typeof t&&(this.$action=t),this}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected)return void i(new Error("The current element is not connected to the DOM."));const e=document.createElement("canvas");let h=this.offsetWidth,n=this.offsetHeight,r=1;Z(t)&&(H(t.width)||H(t.height))&&(({width:h,height:n}=ut({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.offsetWidth),e.width=h,e.height=n;const o=this.querySelector(this.$getTagNameOf(b));o?o.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform();let b=u,f=p,m=i.naturalWidth,g=i.naturalHeight;1!==r&&(b*=r,f*=r,m*=r,g*=r);const w=m/2,v=g/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Z(t)&&q(t.beforeDraw)&&t.beforeDraw.call(this,a,e),a.save(),a.translate(w,v),a.transform(s,c,l,d,b,f),a.translate(-w,-v),a.drawImage(i,0,0,m,g),a.restore()}s(e)})).catch(i):s(e)}))}}kt.$name=l,kt.$version="2.0.0";const yt=new WeakMap,xt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class zt extends $t{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=":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%}",this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(t){yt.set(this,t)}get $canvas(){return yt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(xt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,i){Object.is(i,s)||(super.attributeChangedCallback(t,s,i),xt.includes(t)&&this.$image.setAttribute(t,i))}$propertyChangedCallback(t,s,i){Object.is(i,s)||(super.$propertyChangedCallback(t,s,i),"initialCenterSize"!==t)||this.$nextTick((()=>{this.$center(i)}))}connectedCallback(){super.connectedCallback();const{$image:t}=this,s=this.closest(this.$getTagNameOf(l));s&&(this.$canvas=s,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=t=>{var s,i;this.$actionStartTarget=null===(i=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===i?void 0:i.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),ht(s,D,this.$onCanvasActionStart),ht(s,P,this.$onCanvasActionEnd),ht(s,W,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),ht(t,_,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;s&&(this.$onCanvasActionStart&&(et(s,D,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(et(s,P,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(et(s,W,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(et(t,_,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(t),super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:s}=this,{detail:i}=t;if(i){const{relatedEvent:t}=i;let{action:e}=i;switch(e!==y||this.rotatable&&this.scalable||(e=this.rotatable?k:this.scalable?$:x),e){case v:if(this.translatable){let e=null;t&&(e=t.target.closest(this.$getTagNameOf(f))),e||(e=s.querySelector(this.$getTagNameOf(f))),e&&e.multiple&&!e.active&&(e=s.querySelector(`${this.$getTagNameOf(f)}[active]`)),e&&!e.hidden&&e.movable&&!e.dynamic&&this.$actionStartTarget&&e.contains(this.$actionStartTarget)||this.$move(i.endX-i.startX,i.endY-i.startY)}break;case k: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 $:if(this.scalable)if(t){const s=t.target.closest(this.$getTagNameOf(f));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:e}=this.getBoundingClientRect();this.$zoom(i.scale,t.clientX-s,t.clientY-e)}}else this.$zoom(i.scale);break;case y:if(this.rotatable&&this.scalable){const{rotate:s}=i;let{scale:e}=i;e<0?e=1/(1-e):e+=1;const h=Math.cos(s),n=Math.sin(s),[r,o,a,c]=[h*e,n*e,-n*e,h*e];if(t){const s=this.getBoundingClientRect(),i=t.clientX-s.x,e=t.clientY-s.y,[h,n,l,d]=this.$matrix,u=i-s.width/2,p=e-s.height/2,b=(u*d-l*p)/(h*d-l*n),f=(p*h-n*u)/(h*d-l*n);this.$transform(r,o,a,c,b*(1-r)+f*a,f*(1-c)+b*o)}else this.$transform(r,o,a,c,0,0)}}}}$ready(t){const{$image:s}=this,i=new Promise(((t,i)=>{const e=new Error("Failed to load the image source");if(s.complete)s.naturalWidth>0&&s.naturalHeight>0?t(s):i(e);else{const h=()=>{et(s,R,n),t(s)},n=()=>{et(s,_,h),i(e)};nt(s,_,h),nt(s,R,n)}}));return q(t)&&i.then((s=>(t(s),s))),i}$center(t){const{parentElement:s}=this;if(!s)return this;const i=s.getBoundingClientRect(),e=i.width,h=i.height,{x:n,y:r,width:o,height:a}=this.getBoundingClientRect();if(this.$move(i.x+e/2-(n+o/2),i.y+h/2-(r+a/2)),t&&(o!==e||a!==h)){const s=e/o,i=h/a;switch(t){case"cover":this.$scale(Math.max(s,i));break;case"contain":this.$scale(Math.min(s,i))}}return this}$move(t,s=t){if(this.translatable&&B(t)&&B(s)){const[i,e,h,n]=this.$matrix;this.$translate((t*n-h*s)/(i*n-h*e),(s*i-e*t)/(i*n-h*e))}return this}$moveTo(t,s=t){if(this.translatable&&B(t)&&B(s)){const[i,e,h,n]=this.$matrix;this.$setTransform(i,e,h,n,(t*n-h*s)/(i*n-h*e),(s*i-e*t)/(i*n-h*e))}return this}$rotate(t,s,i){if(this.rotatable){const e=lt(t),h=Math.cos(e),n=Math.sin(e),[r,o,a,c]=[h,n,-n,h];if(B(s)&&B(i)){const[t,e,h,n]=this.$matrix,{width:l,height:d}=this.getBoundingClientRect(),u=s-l/2,p=i-d/2,b=(u*n-h*p)/(t*n-h*e),f=(p*t-e*u)/(t*n-h*e);this.$transform(r,o,a,c,b*(1-r)-f*a,f*(1-c)-b*o)}else this.$transform(r,o,a,c,0,0)}return this}$zoom(t,s,i){if(!this.scalable||0===t)return this;if(t<0?t=1/(1-t):t+=1,B(s)&&B(i)){const[e,h,n,r]=this.$matrix,{width:o,height:a}=this.getBoundingClientRect(),c=s-o/2,l=i-a/2;this.$transform(t,0,0,t,(c*r-n*l)/(e*r-n*h)*(1-t),(l*e-h*c)/(e*r-n*h)*(1-t))}else this.$scale(t);return this}$scale(t,s=t){return this.scalable&&this.$transform(t,0,0,s,0,0),this}$skew(t,s=0){if(this.skewable){const i=lt(t),e=lt(s);this.$transform(1,Math.tan(e),Math.tan(i),1,0,0)}return this}$translate(t,s=t){return this.translatable&&B(t)&&B(s)&&this.$transform(1,0,0,1,t,s),this}$transform(t,s,i,e,h,n){return B(t)&&B(s)&&B(i)&&B(e)&&B(h)&&B(n)?this.$setTransform(pt(this.$matrix,[t,s,i,e,h,n])):this}$setTransform(t,s,i,e,h,n){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,s,i,e,h,n]=t),B(t)&&B(s)&&B(i)&&B(e)&&B(h)&&B(n))){const r=[...this.$matrix],o=[t,s,i,e,h,n];if(!1===this.$emit(U,{matrix:o,oldMatrix:r}))return this;this.$matrix=o,this.style.transform=`matrix(${o.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}zt.$name=b,zt.$version="2.0.0";const Mt=new WeakMap;class Ct extends $t{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}",this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){Mt.set(this,t)}get $canvas(){return Mt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));if(t){this.$canvas=t,this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(f));s&&(this.$onCanvasActionStart=t=>{s.hidden&&t.detail.action===w&&(this.hidden=!1)},this.$onCanvasActionEnd=t=>{s.hidden&&t.detail.action===w&&(this.hidden=!0)},this.$onCanvasChange=t=>{const{x:i,y:e,width:h,height:n}=t.detail;this.$change(i,e,h,n),(s.hidden||0===i&&0===e&&0===h&&0===n)&&(this.hidden=!0)},ht(t,D,this.$onCanvasActionStart),ht(t,P,this.$onCanvasActionEnd),ht(t,L,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(et(t,D,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(et(t,P,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(et(t,L,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,s,i=this.width,e=this.height){return B(t)&&B(s)&&B(i)&&B(e)&&(t!==this.x||s!==this.y||i!==this.width||e!==this.height)?(this.hidden&&(this.hidden=!1),this.x=t,this.y=s,this.width=i,this.height=e,this.$render()):this}$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})}}Ct.$name=m,Ct.$version="2.0.0";class At extends $t{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=':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}',this.action=x,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}At.$name=p,At.$version="2.0.0";const jt=new WeakMap;class St extends $t{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=':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}',this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(t){jt.set(this,t)}get $canvas(){return jt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,i){if(!Object.is(i,s))switch(super.$propertyChangedCallback(t,s,i),t){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick((()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)}));break;case"aspectRatio":case"initialAspectRatio":this.$nextTick((()=>{this.$initSelection()}));break;case"initialCoverage":this.$nextTick((()=>{H(i)&&i<=1&&this.$initSelection(!0,!0)}));break;case"keyboard":this.$nextTick((()=>{this.$canvas&&(i?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),ht(this.ownerDocument,X,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(et(this.ownerDocument,X,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();i?(t.forEach((t=>{t.active=!1})),this.active=!0,this.$emit(L,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,t.slice(1).forEach((t=>{this.$removeSelection(t)})))}}));break;case"precise":this.$nextTick((()=>{this.$change(this.x,this.y)}));break;case"linked":i&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));t?(this.$canvas=t,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),ht(t,D,this.$onCanvasActionStart),ht(t,P,this.$onCanvasActionEnd),ht(t,W,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(et(t,D,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(et(t,P,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(et(t,W,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(f)))),t}$initSelection(t=!1,s=!1){const{initialCoverage:i,parentElement:e}=this;if(H(i)&&e){const h=this.aspectRatio||this.initialAspectRatio;let n=(s?0:this.width)||e.offsetWidth*i,r=(s?0:this.height)||e.offsetHeight*i;H(h)&&({width:n,height:r}=ut({aspectRatio:h,width:n,height:r})),this.$change(this.x,this.y,n,r),t&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(!0);return this.hasAttribute("id")&&t.removeAttribute("id"),t.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(t,this.nextSibling),t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const i=s.indexOf(t),e=s[i+1]||s[i-1];e&&(t.active=!1,this.parentElement.removeChild(t),e.active=!0,e.$emit(L,{x:e.x,y:e.y,width:e.width,height:e.height}))}else this.$clear()}}$handleActionStart(t){var s,i;const e=null===(i=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===i?void 0:i.target;this.$action="",this.$actionStartTarget=e,!this.hidden&&this.multiple&&!this.active&&e===this&&this.parentElement&&(this.$getSelections().forEach((t=>{t.active=!1})),this.active=!0,this.$emit(L,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:s,detail:i}=t;if(!s||!i)return;const{relatedEvent:e}=i;let{action:h}=i;if(!h&&this.multiple&&(h=this.$action||(null==e?void 0:e.target.action),this.$action=h),!h||this.hidden&&h!==w||this.multiple&&!this.active&&h!==$)return;const n=i.endX-i.startX,r=i.endY-i.startY,{width:o,height:a}=this;let{aspectRatio:c}=this;switch(!H(c)&&e.shiftKey&&(c=H(o)&&H(a)?o/a:1),h){case w:if(0!==n&&0!==r){const{$canvas:t}=this,e=at(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(i.startX-e.left,i.startY-e.top,Math.abs(n),Math.abs(r),c),n<0?r<0?h=S:r>0&&(h=T):n>0&&(r<0?h=j:r>0&&(h=O)),t&&(t.$action=h)}break;case v:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(n,r);break;case $:if(e&&this.zoomable&&(this.dynamic||this.contains(e.target))){const t=at(s);this.$zoom(i.scale,e.pageX-t.left,e.pageY-t.top)}break;default:this.$resize(h,n,r,c)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented)return;const{activeElement:s}=document;if(!s||!["INPUT","TEXTAREA"].includes(s.tagName)&&!["true","plaintext-only"].includes(s.contentEditable))switch(t.key){case"Backspace":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)}}$center(){const{parentElement:t}=this;return t?this.$change((t.offsetWidth-this.width)/2,(t.offsetHeight-this.height)/2):this}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){return this.movable?this.$change(t,s):this}$resize(t,s=0,i=0,e=this.aspectRatio){if(!this.resizable)return this;const h=H(e),{$canvas:n}=this;let{x:r,y:o,width:a,height:c}=this;switch(t){case z:o+=i,c-=i,c<0&&(t=C,c=-c,o-=c),h&&(r+=(s=i*e)/2,a-=s,a<0&&(a=-a,r-=a));break;case M:a+=s,a<0&&(t=A,a=-a,r-=a),h&&(o-=(i=s/e)/2,c+=i,c<0&&(c=-c,o-=c));break;case C:c+=i,c<0&&(t=z,c=-c,o-=c),h&&(r-=(s=i*e)/2,a+=s,a<0&&(a=-a,r-=a));break;case A:r+=s,a-=s,a<0&&(t=M,a=-a,r-=a),h&&(o+=(i=s/e)/2,c-=i,c<0&&(c=-c,o-=c));break;case j:h&&(i=-s/e),o+=i,c-=i,a+=s,a<0&&c<0?(t=T,a=-a,c=-c,r-=a,o-=c):a<0?(t=S,a=-a,r-=a):c<0&&(t=O,c=-c,o-=c);break;case S:h&&(i=s/e),r+=s,o+=i,a-=s,c-=i,a<0&&c<0?(t=O,a=-a,c=-c,r-=a,o-=c):a<0?(t=j,a=-a,r-=a):c<0&&(t=T,c=-c,o-=c);break;case O:h&&(i=s/e),a+=s,c+=i,a<0&&c<0?(t=S,a=-a,c=-c,r-=a,o-=c):a<0?(t=T,a=-a,r-=a):c<0&&(t=j,c=-c,o-=c);break;case T:h&&(i=-s/e),r+=s,a-=s,c+=i,a<0&&c<0?(t=j,a=-a,c=-c,r-=a,o-=c):a<0?(t=O,a=-a,r-=a):c<0&&(t=S,c=-c,o-=c)}return n&&n.$setAction(t),this.$change(r,o,a,c)}$zoom(t,s,i){if(!this.zoomable||0===t)return this;t<0?t=1/(1-t):t+=1;const{width:e,height:h}=this,n=e*t,r=h*t;let o=this.x,a=this.y;return B(s)&&B(i)?(o-=(s-this.x)/e*(n-e),a-=(i-this.y)/h*(r-h)):(o-=(n-e)/2,a-=(r-h)/2),this.$change(o,a,n,r)}$change(t,s,i=this.width,e=this.height,h=this.aspectRatio,n=!1){return this.$changing||!B(t)||!B(s)||!B(i)||!B(e)||i<0||e<0?this:(H(h)&&({width:i,height:e}=ut({aspectRatio:h,width:i,height:e},"cover")),this.precise||(t=Math.round(t),s=Math.round(s),i=Math.round(i),e=Math.round(e)),t===this.x&&s===this.y&&i===this.width&&e===this.height&&Object.is(h,this.aspectRatio)&&!n?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(L,{x:t,y:s,width:i,height:e})?this:(this.$changing=!0,this.x=t,this.y=s,this.width=i,this.height=e,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:s,width:i,height:e}=this.$initialSelection;return this.$change(t,s,i,e)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$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)return void i(new Error("The current element is not connected to the DOM."));const e=document.createElement("canvas");let{width:h,height:n}=this,r=1;if(Z(t)&&(H(t.width)||H(t.height))&&(({width:h,height:n}=ut({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.width),e.width=h,e.height=n,!this.$canvas)return void s(e);const o=this.$canvas.querySelector(this.$getTagNameOf(b));o?o.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform(),b=-this.x,f=-this.y,m=(b*d-l*f)/(s*d-l*c),g=(f*s-c*b)/(s*d-l*c);let w=s*m+l*g+u,v=c*m+d*g+p,$=i.naturalWidth,k=i.naturalHeight;1!==r&&(w*=r,v*=r,$*=r,k*=r);const y=$/2,x=k/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Z(t)&&q(t.beforeDraw)&&t.beforeDraw.call(this,a,e),a.save(),a.translate(y,x),a.transform(s,c,l,d,w,v),a.translate(-y,-x),a.drawImage(i,0,0,$,k),a.restore()}s(e)})).catch(i):s(e)}))}}St.$name=f,St.$version="2.0.0";class Ot extends $t{constructor(){super(...arguments),this.$style=":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)}",this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,i){Object.is(i,s)||(super.$propertyChangedCallback(t,s,i),"rows"!==t&&"columns"!==t||this.$nextTick((()=>{this.$render()})))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const t=this.$getShadowRoot(),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)}t&&(t.innerHTML="",t.appendChild(s))}}Ot.$name=u,Ot.$version="2.0.0";class Tt extends $t{constructor(){super(...arguments),this.$style=':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%)}',this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Tt.$name=d,Tt.$version="2.0.0";const Et=new WeakMap,Nt=new WeakMap,It=new WeakMap,Rt=new WeakMap,Xt="vertical";class _t extends $t{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}",this.resize=Xt,this.selection="",this.slottable=!1}set $image(t){Nt.set(this,t)}get $image(){return Nt.get(this)}set $sourceImage(t){Rt.set(this,t)}get $sourceImage(){return Rt.get(this)}set $canvas(t){Et.set(this,t)}get $canvas(){return Et.get(this)}set $selection(t){It.set(this,t)}get $selection(){return It.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(t=this.selection?this.ownerDocument.querySelector(this.selection):this.closest(this.$getTagNameOf(f)),G(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),ht(t,L,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(l));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(b));t&&(this.$sourceImage=t,this.$image=t.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),ht(t.$image,_,this.$onSourceImageLoad),ht(t,U,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;t&&this.$onSelectionChange&&(et(t,L,this.$onSelectionChange),this.$onSelectionChange=null),s&&this.$onSourceImageLoad&&(et(s.$image,_,this.$onSourceImageLoad),this.$onSourceImageLoad=null),s&&this.$onSourceImageTransform&&(et(s,U,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this,i=t.getAttribute("src"),e=s.getAttribute("src");e&&e!==i&&(t.setAttribute("src",e),t.$ready((()=>{setTimeout((()=>{this.$render()}),50)})))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,s){const{$canvas:i,$selection:e}=this;t||e.hidden||(t=e),(!t||0===t.x&&0===t.y&&0===t.width&&0===t.height)&&(t={x:0,y:0,width:i.offsetWidth,height:i.offsetHeight});const{x:h,y:n,width:r,height:o}=t,a={},{clientWidth:c,clientHeight:l}=this;let d=c,u=l,p=NaN;switch(this.resize){case"both":p=1,d=r,u=o,a.width=r,a.height=o;break;case"horizontal":p=o>0?l/o:0,d=r*p,a.width=d;break;case Xt:p=r>0?c/r:0,u=o*p,a.height=u;break;default:c>0?p=r>0?c/r:0:l>0&&(p=o>0?l/o:0)}this.$scale=p,this.$setStyles(a),this.$sourceImage&&this.$transformImageByOffset(null!=s?s:this.$sourceImage.$getTransform(),-h,-n)}$transformImageByOffset(t,s,i){const{$image:e,$scale:h,$sourceImage:n}=this;if(n&&e&&h>=0){const[n,r,o,a,c,l]=t,d=(s*a-o*i)/(n*a-o*r),u=(i*n-r*s)/(n*a-o*r),p=n*d+o*u+c,b=r*d+a*u+l;e.$ready((t=>{this.$setStyles.call(e,{width:t.naturalWidth*h,height:t.naturalHeight*h})})),e.$setTransform(n,r,o,a,p*h,b*h)}}}_t.$name=g,_t.$version="2.0.0",
|
|
2
2
|
/*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */
|
|
3
|
-
kt.$define(),Tt.$define(),Ot.$define(),At.$define(),zt.$define(),St.$define(),Ct.$define(),_t.$define();const Yt=class{constructor(i){t(this,i),this.valueChange=s(this,"valueChange",3)}value;returnType="base64";valueChange;_imageRef;_selectionRef;_maxScale=0;_minScale=0;_resizeDebounceTimeout;_toCanvasDebounceTimeout;_loaded=!1;_currentScale=0;onResize(){this._resizeDebounceTimeout&&clearTimeout(this._resizeDebounceTimeout),this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center(),this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=!0}),200)}render(){const t="dark"===h.theme?"rgba(70, 75, 84, 0.5)":"rgba(255, 255, 255, 0.5)";return i(e,{key:"
|
|
3
|
+
kt.$define(),Tt.$define(),Ot.$define(),At.$define(),zt.$define(),St.$define(),Ct.$define(),_t.$define();const Yt=class{constructor(i){t(this,i),this.valueChange=s(this,"valueChange",3)}value;returnType="base64";valueChange;_imageRef;_selectionRef;_maxScale=0;_minScale=0;_resizeDebounceTimeout;_toCanvasDebounceTimeout;_loaded=!1;_currentScale=0;onResize(){this._resizeDebounceTimeout&&clearTimeout(this._resizeDebounceTimeout),this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center(),this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=!0}),200)}render(){const t="dark"===h.theme?"rgba(70, 75, 84, 0.5)":"rgba(255, 255, 255, 0.5)";return i(e,{key:"009cda4ff4eb5d2a7ff777a901b67c83a5f37af5"},this._loaded&&i("cropper-canvas",{key:"205006259f0393275f061f60d92ee9f3fdff16aa",class:"\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ",onAction:()=>this._onAction()},i("cropper-image",{key:"d53e718c7c5c9da68c10e39ee67e2c98ad23e825",alt:"Picture",crossorigin:"anonymous",ref:t=>this._setImageRef(t),src:this.value,scalable:!0,translatable:!0}),i("cropper-shade",{key:"ce71d0a0602110c330746027f300d373b5142e55",class:"aspect-branding rounded-full","theme-color":t,hidden:!0}),i("cropper-selection",{key:"a552b9b1fbcdc2c9d8707f309fe4cbd62b644ad5","aspect-ratio":"1","initial-coverage":"0.7",ref:t=>this._selectionRef=t}),i("cropper-handle",{key:"1419ae877acfcb7ad6981cd825f57dc4e85b1aef",action:"move",plain:!0})),i("p-range",{key:"caa9104d95c54d50658ca146a6e875c944f0e0e6",class:"\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ",value:this._currentScale,onValueChange:t=>this._onInput(t.detail)}))}_setImageRef(t){!this._imageRef&&t&&(this._imageRef=t,this._imageRef.$ready((t=>setTimeout((()=>this._setInitialState(t)),100))))}_setInitialState(t){let s=200/t.naturalHeight;t.naturalHeight>=t.naturalWidth&&(s=200/t.naturalWidth),this._minScale=s,this._maxScale=5,this._selectionRef.$resize("nw-resize",200,200,1),this._selectionRef.$center(),this._toCanvas(),this._setScale(s)}_onAction(){this._setCurrentScale(),this._toCanvas()}_setScale(t,s=!0,i=!0){const e=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,e[4],e[5]]),s&&this._imageRef.$center(),i&&this._setCurrentScale()}_setCurrentScale(){const t=this._imageRef.$getTransform()[0];return t<this._minScale?(this._setScale(this._minScale,!0,!1),void(this._currentScale=0)):t>this._maxScale?(this._setScale(this._maxScale,!0,!1),void(this._currentScale=100)):void(this._currentScale=t!==this._minScale?t!==this._maxScale?(t-this._minScale)/(this._maxScale-this._minScale)*100:100:0)}_onInput(t){const s=this._imageRef.$getTransform(),i=t/100*(this._maxScale-this._minScale);i!==s[0]&&(this._setScale(i+this._minScale,!1,!1),this._currentScale=t,this._toCanvas())}_toCanvas(){this._toCanvasDebounceTimeout&&clearTimeout(this._toCanvasDebounceTimeout),this._toCanvasDebounceTimeout=setTimeout((async()=>{const t=await this._selectionRef.$toCanvas();if("canvas"===this.returnType)return void this.valueChange.emit(t);const s=t.toDataURL("image/png");this.valueChange.emit(s)}),200)}};Yt.style=".mb-6{margin-bottom:1.5rem}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}*{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%}.static{position:static}.hidden{display:none}.aspect-branding{aspect-ratio:23/24}.h-\\[17\\.5rem\\]{height:17.5rem}.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))}.resize{resize:both}.rounded-full{border-radius:9999px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-14{padding-left:3.5rem;padding-right:3.5rem}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem}.tablet\\:px-1{padding-left:.25rem;padding-right:.25rem}}.dark\\:border-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(163 165 169/var(--tw-border-opacity,1))}.dark\\:border-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(163 165 169/var(--tw-border-opacity,1))}";export{Yt as p_cropper}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-yFtRjnrU.js";import{T as r}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const a=class{constructor(e){t(this,e)}render(){return e(r,{key:"
|
|
1
|
+
import{r as t,h as e}from"./p-yFtRjnrU.js";import{T as r}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const a=class{constructor(e){t(this,e)}render(){return e(r,{key:"d9a91ac9c57ee12ef797652c5c9977780410999b",class:"\n text-xs font-medium text-storm-300\n dark:text-hurricane-200\n "},e("slot",{key:"23ebacfa95e6011fe4788c474fa085100e9f77d3"}))}};a.style="*{box-sizing:border-box}.static{position:static}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{a as p_navigation_title}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a as e,h as a,F as r,d as i}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-CSySY6aC.js";import{P as h,a as d}from"./p-CEaB2BT0.js";import{a as n}from"./p-TyZ7uPES.js";import{f as g,g as p}from"./p-CwQG70_4.js";import{c}from"./p-xs4N_Y-0.js";import{a as w}from"./p-C5CTp9IA.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const l=o(["items-center gap-2","rounded-full","border border-solid border-off-white-700 bg-off-white-300","dark:border-hurricane-400 dark:bg-hurricane-500","p-1"],{variants:{hidden:{false:"flex",true:"hidden"}}}),b=class{constructor(a){t(this,a),this.pageChange=e(this,"pageChange",3),this.pageSizeChange=e(this,"pageSizeChange",3),this.pagesChange=e(this,"pagesChange",3)}hideOnSinglePage=!0;enablePaginationSize=!0;enablePaginationPages=!0;page=1;total;pageSize=h;pageSizeOptions=d;pageChange;pageSizeChange;pagesChange;_hasPaginationPages=!0;render(){const t=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];return a(s,{key:"21cd272621360d4d505510c1faa0991e58cedd3a"},a("div",{key:"2eff06826af604b9a8b640bd18b416b934c3dba8",class:l({hidden:t&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages})},this.enablePaginationPages&&this.enablePaginationSize&&a(r,{key:"d40e819bfb23ef1ce37df622c349c747c5e30430"},a("p-pagination-size",{key:"8b974865374b5e1de9b7dc6649472f85a9b09333",hidden:t,size:this.pageSize,sizeOptions:this.pageSizeOptions,onSizeChange:({detail:t})=>this._changePageSize(t)}),!t&&this.hideOnSinglePage&&this._hasPaginationPages&&a("p-divider",{key:"941d0fb3dedd42c1cfead1f95008fd81e5ea135d",class:"\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ",variant:"vertical"})),this.enablePaginationPages&&a("p-pagination-pages",{key:"dbe42788b40a0c071ef466e7a0896d269cb7d7c9",hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),onPagesChange:({detail:t})=>{this._hasPaginationPages=t>1,this.pagesChange.emit(t)}})))}_changePageSize(t){t&&(this.pageSize=t,this.pageSizeChange.emit(this.pageSize))}};b.style="*{box-sizing:border-box}.static{position:static}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.hidden{display:none}.h-4{height:1rem}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}";const f=o(["flex items-center gap-2"],{variants:{hidden:{false:"flex",true:"hidden"}}}),m=class{constructor(a){t(this,a),this.pageChange=e(this,"pageChange",3),this.pagesChange=e(this,"pagesChange",3)}_defaultDropdownPageTemplate=t=>g(this._locales.page,{page:t});page=1;pageChange;dropdownPageTemplate=this._defaultDropdownPageTemplate;pageSize=h;hideOnSinglePage=!1;total;pagesChange;_showDropdown=[!1,!1];_dropdowns=[];_locales={};get _el(){return i(this)}_pages=[];_set=[];componentWillLoad(){this._setLocales()}componentWillRender(){this._generate()}render(){return a(s,{key:"5320ff0fd0f44f422fda718e796b46d02c38d5aa"},a("div",{key:"e459750f29cc6e773478ff5aec76c8f19865069b",class:f({hidden:this.hideOnSinglePage&&3===this._set?.length})},this._set?.map((t=>"previous"===t.type||"next"===t.type?a("p-pagination-pages-item",{disabled:this._carouselDisabled(t.type),variant:"carousel",onClick:()=>"previous"===t.type?this._previousClick():this._nextClick()},t.value):"ellipsis"===t.type?a("p-dropdown",{applyChevron:!1,insideClick:!0,placement:"top",ref:e=>this._dropdowns[t.dropdownIndex]=e,show:this._showDropdown[t.dropdownIndex],onIsOpen:({detail:e})=>this._onShowDropdown(e,t.dropdownIndex)},a("p-pagination-pages-item",{slot:"trigger"},"..."),t.options?.slice(0,5).map((t=>a("p-dropdown-menu-item",{autoHeight:!0,slot:"items",variant:"pagination",onClick:()=>this._pageClick(t)},this.dropdownPageTemplate?this.dropdownPageTemplate(t):this._defaultDropdownPageTemplate(t)))),t.options?.length>5&&this._showDropdown[t.dropdownIndex]&&a("p-field",{autoFocus:!0,class:"mt-2 w-28",icon:"enter-key",iconPosition:"end",properties:{min:1,max:this._pages.length,step:1},size:"sm",slot:"items",type:"number",onEnter:({detail:t})=>this._enterPress(t)})):a("p-pagination-pages-item",{active:t.value===this.page,onClick:()=>this._pageClick(t.value)},t.value)))))}pageChangeHandler(){this._generate()}async _setLocales(){this._locales=await p(this._el)}documentClickHandler(t){const e=[!1,!1];this._dropdowns[0]&&n(t,this._dropdowns[0])&&(e[0]=!0),this._dropdowns[1]&&n(t,this._dropdowns[1])&&(e[1]=!0),this._showDropdown=e}_generate(){this._pages=this._generatePages(),this._set=this._generateSet(),this.page>this._pages?.length&&this._changePage(this._pages.length)}_changePage(t){t&&(this._showDropdown=[!1,!1],this.page=t,this.pageChange.emit(this.page))}_previousClick(){this._carouselDisabled("previous")||this._changePage(this.page-1)}_nextClick=()=>{this._carouselDisabled("next")||this._changePage(this.page+1)};_carouselDisabled=t=>"next"===t&&this.page+1>this._pages.at(-1)||"previous"===t&&this.page-1<this._pages[0];_pageClick=t=>this._changePage(t);_enterPress(t){"string"==typeof t&&(t=Number.parseInt(t)),Number.isNaN(t)||(t<1&&(t=1),t>this._pages.length&&(t=this._pages.length),this._changePage(t))}_onShowDropdown(t=!1,e){const a=[...this._showDropdown];a[e]=t,this._showDropdown=a}_generatePages(){if(!this.total||!this.pageSize)return[];const t=Math.ceil(this.total/this.pageSize);return this.pagesChange.emit(t),Array.from({length:t}).fill("").map(((t,e)=>e+1))}_generateSet=(t=1,e=!0)=>{const r=this._pages.length;if(!r)return[];let i=this.page-t,o=this.page+t;o>r&&(o=r,i=r-2*t,i=Math.max(i,1)),i<=1&&(i=1,o=Math.min(2*t+1,r));const s=[],h={type:"previous",value:a("p-icon",{rotate:90,size:"sm",variant:"caret"})},d={type:"next",value:a("p-icon",{rotate:-90,size:"sm",variant:"caret"})};if(null===t){const t=this._pages.map((t=>({type:"page",value:t})));return e?[h,...t,d]:t}e&&s.push(h);let n=0;if(i<=3)for(let t=1;t<i;t++)s.push({type:"page",value:this._pages[t-1]});else s.push({type:"page",value:1},{type:"ellipsis",dropdownIndex:n,options:Array.from({length:i-2},((t,e)=>e+2))}),n++;for(let t=i;t<=o;t++)s.push({type:"page",value:this._pages[t-1]});if(o>=r-2)for(let t=o+1;t<=r;t++)s.push({type:"page",value:this._pages[t-1]});else s.push({type:"ellipsis",dropdownIndex:n,options:Array.from({length:r-o-1},((t,e)=>e+o+1))},{type:"page",value:this._pages.at(-1)}),n++;return e&&s.push(d),s};static get watchers(){return{page:[{pageChangeHandler:0}],pageSize:[{pageChangeHandler:0}],total:[{pageChangeHandler:0}]}}};m.style="*{box-sizing:border-box}.static{position:static}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.w-28{width:7rem}.items-center{align-items:center}.gap-2{gap:.5rem}";const v=o([],{variants:{hidden:{false:null,true:"hidden"}}}),x=o(["group/pagination-size-trigger","flex items-center gap-2","h-6 px-2","text-sm font-medium text-storm-500","dark:text-white","cursor-pointer rounded-full","border border-solid shadow-1"],{variants:{active:{false:["\n border-transparent bg-white\n hover:bg-white-600\n ","\n dark:bg-white/15\n dark:hover:bg-white/25\n "],true:["border-indigo-600 bg-white-600 ring ring-2 ring-indigo-100","dark:bg-white/25 dark:ring-0"]}}}),k=class{constructor(a){t(this,a),this.sizeChange=e(this,"sizeChange",3)}_defaultItemTemplate=t=>g(this._locales.item,{size:t});size=h;sizeOptions=d;sizeChange;itemTemplate=this._defaultItemTemplate;get _el(){return i(this)}hidden=!1;dropdownIsOpen=!1;_locales={};componentWillLoad(){this._setLocales()}render(){return a(s,{key:"e506bfc11cef32de513059aced858d76c7b107c7",class:v({hidden:w(this.hidden)})},a("p-dropdown",{key:"c700ce697ed43c6fa65f07eb39c71bd1b4146a73",applyFullWidth:!0,applyMaxWidth:!1,chevronDirection:"down",placement:"top-start",onIsOpen:({detail:t})=>this.dropdownIsOpen=t},a("div",{key:"5c3a85572980eb3aa7c3e9d13ef99968b865e231",class:x({active:this.dropdownIsOpen}),slot:"trigger"},a("p",{key:"010e37c4d1d0aa59a1d38ce0b4ef7aaafdc6eb77",class:"min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap"},this.itemTemplate?this.itemTemplate(this.size):this._defaultItemTemplate(this.size)),a("p-icon",{key:"d28fe5d9b081bd90c1f728c1f20293a2ceb6aa4c",class:c(["flex-shrink-0","group-hover/pagination-size-trigger:text-storm-500","dark:group-hover/pagination-size-trigger:text-white"],{"text-storm-300 dark:text-hurricane-200":!this.dropdownIsOpen,"text-storm-500 dark:text-white":!!this.dropdownIsOpen}),size:"sm",variant:"double-caret"})),a("slot",{key:"6b0722b71b46818a821c8c6f2b88025522f8c214",slot:"items"},this.sizeOptions.map((t=>a("p-dropdown-menu-item",{active:t===this.size,onClick:()=>this._changeSize(t)},this.itemTemplate?this.itemTemplate(t):this._defaultItemTemplate(t)))))))}async _setLocales(){this._locales=await p(this._el)}_changeSize(t){t&&(this.size=t,this.sizeChange.emit(this.size))}};k.style="*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--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)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.hover\\:bg-white-600:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.group\\/pagination-size-trigger:hover .group-hover\\/pagination-size-trigger\\:text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/25:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:bg-white\\/25:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.group\\/pagination-size-trigger:hover .dark\\:group-hover\\/pagination-size-trigger\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/25:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:bg-white\\/25:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.group\\/pagination-size-trigger:hover .dark\\:group-hover\\/pagination-size-trigger\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{b as p_pagination,m as p_pagination_pages,k as p_pagination_size}
|
|
1
|
+
import{r as t,a as e,h as a,F as r,d as i}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-CSySY6aC.js";import{P as h,a as n}from"./p-CEaB2BT0.js";import{a as d}from"./p-TyZ7uPES.js";import{f as g,g as p}from"./p-CwQG70_4.js";import{c}from"./p-xs4N_Y-0.js";import{a as w}from"./p-C5CTp9IA.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const l=o(["items-center gap-2","rounded-full","border border-solid border-off-white-700 bg-off-white-300","dark:border-hurricane-400 dark:bg-hurricane-500","p-1"],{variants:{hidden:{false:"flex",true:"hidden"}}}),b=class{constructor(a){t(this,a),this.pageChange=e(this,"pageChange",3),this.pageSizeChange=e(this,"pageSizeChange",3),this.pagesChange=e(this,"pagesChange",3)}hideOnSinglePage=!0;enablePaginationSize=!0;enablePaginationPages=!0;page=1;total;pageSize=h;pageSizeOptions=n;pageChange;pageSizeChange;pagesChange;_hasPaginationPages=!0;render(){const t=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];return a(s,{key:"3f1b6ea1ac6b1ddae922000ee90b9796287de51b"},a("div",{key:"28561b81a9717cfc6ed3301215f47962349fccd2",class:l({hidden:t&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages})},this.enablePaginationPages&&this.enablePaginationSize&&a(r,{key:"b4523497dc4e2c988df6a3ae71cb240b54e17d75"},a("p-pagination-size",{key:"01b5b234b713ecfcd2cf8910079f00614eb0fbbe",hidden:t,size:this.pageSize,sizeOptions:this.pageSizeOptions,onSizeChange:({detail:t})=>this._changePageSize(t)}),!t&&this.hideOnSinglePage&&this._hasPaginationPages&&a("p-divider",{key:"7a8cfa9e69ae898cf2f2c25b4fffde7506fcc523",class:"\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ",variant:"vertical"})),this.enablePaginationPages&&a("p-pagination-pages",{key:"d8d7a7bce55b5958be33b51f175bd34b7f3c6ede",hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),onPagesChange:({detail:t})=>{this._hasPaginationPages=t>1,this.pagesChange.emit(t)}})))}_changePageSize(t){t&&(this.pageSize=t,this.pageSizeChange.emit(this.pageSize))}};b.style="*{box-sizing:border-box}.static{position:static}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.hidden{display:none}.h-4{height:1rem}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}";const f=o(["flex items-center gap-2"],{variants:{hidden:{false:"flex",true:"hidden"}}}),m=class{constructor(a){t(this,a),this.pageChange=e(this,"pageChange",3),this.pagesChange=e(this,"pagesChange",3)}_defaultDropdownPageTemplate=t=>g(this._locales.page,{page:t});page=1;pageChange;dropdownPageTemplate=this._defaultDropdownPageTemplate;pageSize=h;hideOnSinglePage=!1;total;pagesChange;_showDropdown=[!1,!1];_dropdowns=[];_locales={};get _el(){return i(this)}_pages=[];_set=[];componentWillLoad(){this._setLocales()}componentWillRender(){this._generate()}render(){return a(s,{key:"5320ff0fd0f44f422fda718e796b46d02c38d5aa"},a("div",{key:"e459750f29cc6e773478ff5aec76c8f19865069b",class:f({hidden:this.hideOnSinglePage&&3===this._set?.length})},this._set?.map((t=>"previous"===t.type||"next"===t.type?a("p-pagination-pages-item",{disabled:this._carouselDisabled(t.type),variant:"carousel",onClick:()=>"previous"===t.type?this._previousClick():this._nextClick()},t.value):"ellipsis"===t.type?a("p-dropdown",{applyChevron:!1,insideClick:!0,placement:"top",ref:e=>this._dropdowns[t.dropdownIndex]=e,show:this._showDropdown[t.dropdownIndex],onIsOpen:({detail:e})=>this._onShowDropdown(e,t.dropdownIndex)},a("p-pagination-pages-item",{slot:"trigger"},"..."),t.options?.slice(0,5).map((t=>a("p-dropdown-menu-item",{autoHeight:!0,slot:"items",variant:"pagination",onClick:()=>this._pageClick(t)},this.dropdownPageTemplate?this.dropdownPageTemplate(t):this._defaultDropdownPageTemplate(t)))),t.options?.length>5&&this._showDropdown[t.dropdownIndex]&&a("p-field",{autoFocus:!0,class:"mt-2 w-28",icon:"enter-key",iconPosition:"end",properties:{min:1,max:this._pages.length,step:1},size:"sm",slot:"items",type:"number",onEnter:({detail:t})=>this._enterPress(t)})):a("p-pagination-pages-item",{active:t.value===this.page,onClick:()=>this._pageClick(t.value)},t.value)))))}pageChangeHandler(){this._generate()}async _setLocales(){this._locales=await p(this._el)}documentClickHandler(t){const e=[!1,!1];this._dropdowns[0]&&d(t,this._dropdowns[0])&&(e[0]=!0),this._dropdowns[1]&&d(t,this._dropdowns[1])&&(e[1]=!0),this._showDropdown=e}_generate(){this._pages=this._generatePages(),this._set=this._generateSet(),this.page>this._pages?.length&&this._changePage(this._pages.length)}_changePage(t){t&&(this._showDropdown=[!1,!1],this.page=t,this.pageChange.emit(this.page))}_previousClick(){this._carouselDisabled("previous")||this._changePage(this.page-1)}_nextClick=()=>{this._carouselDisabled("next")||this._changePage(this.page+1)};_carouselDisabled=t=>"next"===t&&this.page+1>this._pages.at(-1)||"previous"===t&&this.page-1<this._pages[0];_pageClick=t=>this._changePage(t);_enterPress(t){"string"==typeof t&&(t=Number.parseInt(t)),Number.isNaN(t)||(t<1&&(t=1),t>this._pages.length&&(t=this._pages.length),this._changePage(t))}_onShowDropdown(t=!1,e){const a=[...this._showDropdown];a[e]=t,this._showDropdown=a}_generatePages(){if(!this.total||!this.pageSize)return[];const t=Math.ceil(this.total/this.pageSize);return this.pagesChange.emit(t),Array.from({length:t}).fill("").map(((t,e)=>e+1))}_generateSet=(t=1,e=!0)=>{const r=this._pages.length;if(!r)return[];let i=this.page-t,o=this.page+t;o>r&&(o=r,i=r-2*t,i=Math.max(i,1)),i<=1&&(i=1,o=Math.min(2*t+1,r));const s=[],h={type:"previous",value:a("p-icon",{rotate:90,size:"sm",variant:"caret"})},n={type:"next",value:a("p-icon",{rotate:-90,size:"sm",variant:"caret"})};if(null===t){const t=this._pages.map((t=>({type:"page",value:t})));return e?[h,...t,n]:t}e&&s.push(h);let d=0;if(i<=3)for(let t=1;t<i;t++)s.push({type:"page",value:this._pages[t-1]});else s.push({type:"page",value:1},{type:"ellipsis",dropdownIndex:d,options:Array.from({length:i-2},((t,e)=>e+2))}),d++;for(let t=i;t<=o;t++)s.push({type:"page",value:this._pages[t-1]});if(o>=r-2)for(let t=o+1;t<=r;t++)s.push({type:"page",value:this._pages[t-1]});else s.push({type:"ellipsis",dropdownIndex:d,options:Array.from({length:r-o-1},((t,e)=>e+o+1))},{type:"page",value:this._pages.at(-1)}),d++;return e&&s.push(n),s};static get watchers(){return{page:[{pageChangeHandler:0}],pageSize:[{pageChangeHandler:0}],total:[{pageChangeHandler:0}]}}};m.style="*{box-sizing:border-box}.static{position:static}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.w-28{width:7rem}.items-center{align-items:center}.gap-2{gap:.5rem}";const v=o([],{variants:{hidden:{false:null,true:"hidden"}}}),x=o(["group/pagination-size-trigger","flex items-center gap-2","h-6 px-2","text-sm font-medium text-storm-500","dark:text-white","cursor-pointer rounded-full","border border-solid shadow-1"],{variants:{active:{false:["\n border-transparent bg-white\n hover:bg-white-600\n ","\n dark:bg-white/15\n dark:hover:bg-white/25\n "],true:["border-indigo-600 bg-white-600 ring ring-2 ring-indigo-100","dark:bg-white/25 dark:ring-0"]}}}),k=class{constructor(a){t(this,a),this.sizeChange=e(this,"sizeChange",3)}_defaultItemTemplate=t=>g(this._locales.item,{size:t});size=h;sizeOptions=n;sizeChange;itemTemplate=this._defaultItemTemplate;get _el(){return i(this)}hidden=!1;dropdownIsOpen=!1;_locales={};componentWillLoad(){this._setLocales()}render(){return a(s,{key:"e506bfc11cef32de513059aced858d76c7b107c7",class:v({hidden:w(this.hidden)})},a("p-dropdown",{key:"c700ce697ed43c6fa65f07eb39c71bd1b4146a73",applyFullWidth:!0,applyMaxWidth:!1,chevronDirection:"down",placement:"top-start",onIsOpen:({detail:t})=>this.dropdownIsOpen=t},a("div",{key:"5c3a85572980eb3aa7c3e9d13ef99968b865e231",class:x({active:this.dropdownIsOpen}),slot:"trigger"},a("p",{key:"010e37c4d1d0aa59a1d38ce0b4ef7aaafdc6eb77",class:"min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap"},this.itemTemplate?this.itemTemplate(this.size):this._defaultItemTemplate(this.size)),a("p-icon",{key:"d28fe5d9b081bd90c1f728c1f20293a2ceb6aa4c",class:c(["flex-shrink-0","group-hover/pagination-size-trigger:text-storm-500","dark:group-hover/pagination-size-trigger:text-white"],{"text-storm-300 dark:text-hurricane-200":!this.dropdownIsOpen,"text-storm-500 dark:text-white":!!this.dropdownIsOpen}),size:"sm",variant:"double-caret"})),a("slot",{key:"6b0722b71b46818a821c8c6f2b88025522f8c214",slot:"items"},this.sizeOptions.map((t=>a("p-dropdown-menu-item",{active:t===this.size,onClick:()=>this._changeSize(t)},this.itemTemplate?this.itemTemplate(t):this._defaultItemTemplate(t)))))))}async _setLocales(){this._locales=await p(this._el)}_changeSize(t){t&&(this.size=t,this.sizeChange.emit(this.size))}};k.style="*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--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)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.hover\\:bg-white-600:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.group\\/pagination-size-trigger:hover .group-hover\\/pagination-size-trigger\\:text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/25:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:bg-white\\/25:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.group\\/pagination-size-trigger:hover .dark\\:group-hover\\/pagination-size-trigger\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/25:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:bg-white\\/25:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.group\\/pagination-size-trigger:hover .dark\\:group-hover\\/pagination-size-trigger\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{b as p_pagination,m as p_pagination_pages,k as p_pagination_size}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-yFtRjnrU.js";import{T as a}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const r=class{constructor(e){t(this,e)}icon="placeholder";render(){return e(a,{key:"
|
|
1
|
+
import{r as t,h as e}from"./p-yFtRjnrU.js";import{T as a}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const r=class{constructor(e){t(this,e)}icon="placeholder";render(){return e(a,{key:"48200b196b5101d5a7898f8aa57acbbb795e7205"},e("div",{key:"072dfd68fe13a8934f44a5ac41b90d909ca1f7d5",class:"\n flex items-center gap-2 text-storm-500\n dark:text-white\n "},e("p-icon",{key:"b881af3bafcb5d50e5bd9c9c46f17918f9d92ced",variant:this.icon}),e("div",{key:"c6829a5ab4e6233ca5e9a1304fb917ff5dc319ce",class:"flex min-w-0 flex-1 flex-col text-sm font-medium"},e("slot",{key:"f8a06f03fdf53b22b0ba11b12bcfbf035cf18f3d"}))))}};r.style="*{box-sizing:border-box}.static{position:static}.flex{display:flex}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{r as p_listing_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-yFtRjnrU.js";import{c as r}from"./p-CBWjHURv.js";import{T as a}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=r(["flex h-8 flex-col justify-between text-sm","cursor-pointer","\n after:content-['\n ']\n after:h-[2px]\n "],{variants:{active:{true:"\n text-indigo-600\n after:bg-indigo-600\n ",false:["\n text-storm-300\n after:bg-transparent\n hover:text-storm-400\n hover:after:bg-storm-400\n ","\n dark:text-hurricane-200\n dark:hover:text-white\n dark:hover:after:bg-white\n "]}}}),c=class{constructor(e){t(this,e)}active=!1;render(){return e(a,{key:"
|
|
1
|
+
import{r as t,h as e}from"./p-yFtRjnrU.js";import{c as r}from"./p-CBWjHURv.js";import{T as a}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=r(["flex h-8 flex-col justify-between text-sm","cursor-pointer","\n after:content-['\n ']\n after:h-[2px]\n "],{variants:{active:{true:"\n text-indigo-600\n after:bg-indigo-600\n ",false:["\n text-storm-300\n after:bg-transparent\n hover:text-storm-400\n hover:after:bg-storm-400\n ","\n dark:text-hurricane-200\n dark:hover:text-white\n dark:hover:after:bg-white\n "]}}}),c=class{constructor(e){t(this,e)}active=!1;render(){return e(a,{key:"ffaaafe7b95a1ddd7350bdf399f793d569b6d955"},e("div",{key:"8adf76224ba8a47afac946bcc6e77cf29033dc47",class:o({active:this.active})},e("slot",{key:"44609cace6aede2846c27485e499e763c90bc751"})))}};c.style='*{box-sizing:border-box}:host{--tw-content:" "}.static{position:static}.flex{display:flex}.h-8{height:2rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.text-sm{font-size:.875rem;line-height:1.25rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.after\\:h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:bg-indigo-600:after{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:bg-transparent:after{background-color:transparent;content:var(--tw-content)}.hover\\:text-storm-400:hover{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.hover\\:after\\:bg-storm-400:hover:after{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}';export{c as p_tab_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as e,h as o}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as i}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const r=a(["flex min-w-0 flex-1 items-center gap-2"],{variants:{dropdown:{false:"h-10 py-1",true:null}}}),s=class{constructor(e){t(this,e)}dropdownLocation="bottom-end";get _el(){return e(this)}_dropdownOpen=!1;_hasDropdownSlot=!1;componentWillLoad(){this._checkDropdownSlot()}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return o(i,{key:"
|
|
1
|
+
import{r as t,d as e,h as o}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as i}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const r=a(["flex min-w-0 flex-1 items-center gap-2"],{variants:{dropdown:{false:"h-10 py-1",true:null}}}),s=class{constructor(e){t(this,e)}dropdownLocation="bottom-end";get _el(){return e(this)}_dropdownOpen=!1;_hasDropdownSlot=!1;componentWillLoad(){this._checkDropdownSlot()}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return o(i,{key:"b3e676c112e16fd42bae96f0e61d4f352d86d58d"},this._hasDropdownSlot?o("p-dropdown",{applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,manualChevron:!0,placement:this.dropdownLocation,strategy:"absolute",onIsOpen:t=>this._dropdownOpen=t.detail},o("p-button",{active:this._dropdownOpen,chevron:this._dropdownOpen?"up":"down",class:"w-full",size:"lg",slot:"trigger",variant:"dropdown"},t),o("div",{slot:"items"},o("slot",{name:"dropdown",onSlotchange:()=>this._checkDropdownSlot()}))):t)}slotchange(){this._checkDropdownSlot()}_checkDropdownSlot(){this._hasDropdownSlot=!!this._el.querySelector(':scope > [slot="dropdown"]'),!this._hasDropdownSlot&&this._dropdownOpen&&(this._dropdownOpen=!1)}_getContent(){return o("div",{class:r({dropdown:this._hasDropdownSlot})},o("slot",{name:"avatar"}),o("div",{class:"flex min-w-0 flex-1 flex-col items-start"},o("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-sm font-semibold text-storm-500\n dark:text-white\n "},o("slot",{name:"title"})),o("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-xs font-medium text-storm-400\n dark:text-hurricane-200\n "},o("slot",{name:"subtitle"}))),o("slot",{name:"post-title"}))}_updateAvatar(){const t=this._el.querySelector('p-avatar[slot="avatar"]');t&&(t.size=this._hasDropdownSlot?"sm":t.size)}};s.style="*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-10{height:2.5rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{s as p_profile}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,a as t,h as r,F as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{e as o}from"./p-CWO2YJCh.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const s=i(["flex flex-1 items-center justify-start gap-2","h-8 min-w-0 rounded-lg px-2","border border-solid","bg-white-600 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"],{variants:{click:{false:null,true:"cursor-pointer"},error:{false:"\n border-storm-100\n dark:border-white/15\n ",true:"\n border-negative-red-500\n dark:border-negative-red-alternative\n "}}}),h=class{constructor(r){e(this,r),this.upload=t(this,"upload",3),this.download=t(this,"download",3),this.delete=t(this,"delete",3)}enableCameraOnMobile=!1;value;fileId;accept=null;label;helper;required=!0;mode="read";placeholder="Upload a file...";cameraTooltip="Camera";downloadTooltip="Download";uploadTooltip="Upload";deleteTooltip="Delete";loading=!1;error;upload;download;delete;_fileRef;_cameraFileRef;render(){let e=r("p-icon",{key:"
|
|
1
|
+
import{r as e,a as t,h as r,F as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{e as o}from"./p-CWO2YJCh.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const s=i(["flex flex-1 items-center justify-start gap-2","h-8 min-w-0 rounded-lg px-2","border border-solid","bg-white-600 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"],{variants:{click:{false:null,true:"cursor-pointer"},error:{false:"\n border-storm-100\n dark:border-white/15\n ",true:"\n border-negative-red-500\n dark:border-negative-red-alternative\n "}}}),h=class{constructor(r){e(this,r),this.upload=t(this,"upload",3),this.download=t(this,"download",3),this.delete=t(this,"delete",3)}enableCameraOnMobile=!1;value;fileId;accept=null;label;helper;required=!0;mode="read";placeholder="Upload a file...";cameraTooltip="Camera";downloadTooltip="Download";uploadTooltip="Upload";deleteTooltip="Delete";loading=!1;error;upload;download;delete;_fileRef;_cameraFileRef;render(){let e=r("p-icon",{key:"1c80587e39c1a195137110971a5ab8e55e279a62",class:"text-storm-300",variant:"attachment"});this.error&&(e=r("p-icon",{key:"1a7d9cd50636935865f0c418b396e190d245f495",class:"text-negative-red-500",variant:"warning"}));const t=o(),i="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm";return r(a,{key:"65a94a2b4fa4744f4f544d017d77bfe681f151e5"},r("p-field-container",{key:"9f082375b6dfc5b7873dd6f3b7aebe1a1b68b48e",error:this.error,forceShowTooltip:!!this.error?.length,helper:this.helper,label:this.label,required:this.required,variant:"write"},r("div",{key:"e7ac2f0d6d0b313abc3f7930ad61db363187116e",class:"flex w-full items-start gap-2",slot:"content"},r("div",{key:"0c70528558e7deff8e960018773542ef7d0eca04",class:s({click:"write"===this.mode&&!this.value?.length,error:!!this.error?.length}),onClick:()=>this._uploadClick()},e,r("span",{key:"887bf7f40ceaebe0f5491bad5b09bddfa87a406b",class:d(i,"\n peer\n empty:hidden\n dark:text-white\n ")},this.value),r("span",{key:"103249ccca7ec5b41752263534cfbb47ed0af123",class:d(i,"\n hidden\n peer-empty:block\n ")},this.placeholder)),r("p-tooltip",{key:"8791959427c3e811d4c650d030f0354b6f53d442",class:"w-8",content:"read"===this.mode?this.downloadTooltip:this.value?.length?this.deleteTooltip:this.uploadTooltip},r("p-button",{key:"bf55fc4ca413b095aa6448df20287175dbd7a514",disabled:this.loading,icon:"read"===this.mode?"download":this.value?.length?"trash":"upload",iconOnly:!0,loading:this.loading,slot:"trigger",variant:"secondary",onOnClick:()=>"write"!==this.mode||this.value?.length?("read"===this.mode?this.download:this.delete).emit():this._uploadClick()})),this.enableCameraOnMobile&&"write"===this.mode&&t&&!this.value?.length&&r("p-tooltip",{key:"3444a501c624978b9f1410bba7251455f0c8e4d7",class:"\n w-8\n desktop-xs:hidden\n ",content:this.cameraTooltip},r("p-button",{key:"b74f3a47eb2acc9b2966cbbd7c1cb59c2f2cacf1",icon:"camera",iconOnly:!0,slot:"trigger",variant:"secondary",onOnClick:()=>this._cameraClick()})))),r("input",{key:"6bf88f4c659226d1a61044523cdb3329987ac1c8",accept:Array.isArray(this.accept)?this.accept?.join(","):this.accept,class:"hidden",ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}),r("input",{key:"467410b70364dd2ce94893d2df985d6681a898e2",accept:"image/*",capture:"true",class:"hidden",ref:e=>this._cameraFileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}_uploadClick(){this._fileRef&&"write"===this.mode&&!this.value?.length&&this._fileRef.click()}_cameraClick(){this.enableCameraOnMobile&&o()&&this._cameraFileRef&&"write"===this.mode&&this._cameraFileRef?.click()}_onFileChange(e){const t=e.target,r=t.files?.[0];if(r){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(r,e?.currentTarget?.result))),e.readAsDataURL(r)}}_onLoad(e,t){this.upload.emit({fileId:this.fileId,result:t,file:e}),this._fileRef&&(this._fileRef.value=""),this._cameraFileRef&&(this._cameraFileRef.value=""),this.loading=!1}};h.style=".block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{h as p_attachment}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as e}from"./p-CSySY6aC.js";import{a as n}from"./p-C5CTp9IA.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=a(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),c=a(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),m=class{constructor(i){t(this,i)}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,a=n(this.active)||this.class?.includes("active");return i(e,{key:"
|
|
1
|
+
import{r as t,h as i}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as e}from"./p-CSySY6aC.js";import{a as n}from"./p-C5CTp9IA.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=a(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),c=a(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),m=class{constructor(i){t(this,i)}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,a=n(this.active)||this.class?.includes("active");return i(e,{key:"df75595509e2f081dbc13a244a77c07293d67bc1",class:r("inline-block",this.class)},i(t,{key:"f6ad06191bdb4049387e1235a3a303718d8f6cc7",class:o({icon:!!this.icon,active:a}),href:this.href,target:this.target},i("div",{key:"147abbbc9e2c6508a66081ead4cea2aa797a9240",class:c({active:a})},i("p-icon",{key:"2f1fd8c183e2f527fcb37aed28da145d81ed1c89",variant:this.icon})),i("span",{key:"ae75ec4ac9c43bbb0cd620dcdf42dbc62631825e",class:r({"has-counter":!!this.counter,"w-full":this.applyFullWidth})},i("slot",{key:"0e92ba5694d3632367d37514bc72d9c7cbfa2a33"})),!!this.counter&&"0"!==this.counter&&i("p-badge",{key:"4046f6ab8a1a4c3c985c2f0a5d8cccafc562f3df"},this.counter),!!this.loading&&i("p-loader",{key:"5ab0e3decd808a160bdc233835d91b505f3ad8b8",class:"ml-auto"})))}};m.style="*.sc-p-navigation-item{box-sizing:border-box}.static.sc-p-navigation-item{position:static}.ml-auto.sc-p-navigation-item{margin-left:auto}.inline-block.sc-p-navigation-item{display:inline-block}.flex.sc-p-navigation-item{display:flex}.aspect-branding.sc-p-navigation-item{aspect-ratio:23/24}.h-6.sc-p-navigation-item{height:1.5rem}.h-8.sc-p-navigation-item{height:2rem}.w-\\[inherit\\].sc-p-navigation-item{width:inherit}.w-full.sc-p-navigation-item{width:100%}.cursor-pointer.sc-p-navigation-item{cursor:pointer}.items-center.sc-p-navigation-item{align-items:center}.justify-center.sc-p-navigation-item{justify-content:center}.gap-2.sc-p-navigation-item{gap:.5rem}.rounded-full.sc-p-navigation-item{border-radius:9999px}.rounded-lg.sc-p-navigation-item{border-radius:.5rem}.bg-indigo-500.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-600.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))}.px-2.sc-p-navigation-item{padding-left:.5rem;padding-right:.5rem}.py-1.sc-p-navigation-item{padding-bottom:.25rem;padding-top:.25rem}.pl-1.sc-p-navigation-item{padding-left:.25rem}.text-sm.sc-p-navigation-item{font-size:.875rem;line-height:1.25rem}.font-medium.sc-p-navigation-item{font-weight:500}.font-semibold.sc-p-navigation-item{font-weight:600}.text-storm-400.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.container.sc-p-navigation-item{width:100%}@media (min-width:40rem){.container.sc-p-navigation-item{max-width:40rem}}@media (min-width:64rem){.container.sc-p-navigation-item{max-width:64rem}}@media (min-width:80rem){.container.sc-p-navigation-item{max-width:80rem}}@media (min-width:85.375rem){.container.sc-p-navigation-item{max-width:85.375rem}}@media (min-width:90rem){.container.sc-p-navigation-item{max-width:90rem}}@media (min-width:96rem){.container.sc-p-navigation-item{max-width:96rem}}@media (min-width:105rem){.container.sc-p-navigation-item{max-width:105rem}}@media (min-width:120rem){.container.sc-p-navigation-item{max-width:120rem}}@media (min-width:160rem){.container.sc-p-navigation-item{max-width:160rem}}@media (min-width:640px){.container.sc-p-navigation-item{max-width:640px}}@media (min-width:768px){.container.sc-p-navigation-item{max-width:768px}}@media (min-width:1024px){.container.sc-p-navigation-item{max-width:1024px}}@media (min-width:1280px){.container.sc-p-navigation-item{max-width:1280px}}@media (min-width:1536px){.container.sc-p-navigation-item{max-width:1536px}}.hover\\:bg-off-white-500.sc-p-navigation-item:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:text-storm-500.sc-p-navigation-item:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{m as p_navigation_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as r}from"./p-CSySY6aC.js";import{c as o}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=a(["flex items-center justify-center gap-2","h-6 rounded-full"],{variants:{variant:{positive:["bg-positive-green-100 text-positive-green-800","\n dark:bg-positive-green-alternative/15\n dark:text-positive-green-alternative\n "],biased:["bg-amber-100 text-amber-800","dark:bg-amber-alternative/15 dark:text-amber-alternative"],negative:["bg-negative-red-100 text-negative-red-800","dark:bg-negative-red-alternative/15 dark:text-negative-red-alternative"],neutral:["bg-indigo-100 text-indigo-900","dark:bg-indigo-300/15 dark:text-indigo-400"],unavailable:["bg-white-700 text-storm-800","dark:bg-hurricane-100/15 dark:text-hurricane-100"]},iconOnly:{false:"px-2",true:"w-6 p-2"},keepMobileContent:{false:null,true:null}},compoundVariants:[{keepMobileContent:!1,iconOnly:!1,class:"\n w-6 p-2\n desktop-xs:w-auto desktop-xs:py-0\n "}]}),d=class{constructor(e){t(this,e)}variant="neutral";iconOnly=!1;icon;iconFlip;iconRotate;keepMobileContent=!1;render(){return e(r,{key:"
|
|
1
|
+
import{r as t,h as e}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as r}from"./p-CSySY6aC.js";import{c as o}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=a(["flex items-center justify-center gap-2","h-6 rounded-full"],{variants:{variant:{positive:["bg-positive-green-100 text-positive-green-800","\n dark:bg-positive-green-alternative/15\n dark:text-positive-green-alternative\n "],biased:["bg-amber-100 text-amber-800","dark:bg-amber-alternative/15 dark:text-amber-alternative"],negative:["bg-negative-red-100 text-negative-red-800","dark:bg-negative-red-alternative/15 dark:text-negative-red-alternative"],neutral:["bg-indigo-100 text-indigo-900","dark:bg-indigo-300/15 dark:text-indigo-400"],unavailable:["bg-white-700 text-storm-800","dark:bg-hurricane-100/15 dark:text-hurricane-100"]},iconOnly:{false:"px-2",true:"w-6 p-2"},keepMobileContent:{false:null,true:null}},compoundVariants:[{keepMobileContent:!1,iconOnly:!1,class:"\n w-6 p-2\n desktop-xs:w-auto desktop-xs:py-0\n "}]}),d=class{constructor(e){t(this,e)}variant="neutral";iconOnly=!1;icon;iconFlip;iconRotate;keepMobileContent=!1;render(){return e(r,{key:"104ee5d95a9a998e9ff5d50a0319db1131dd49a9"},e("div",{key:"d0d2d11eab222b5183d5a835b3bd2fb195295552",class:i({variant:this.variant,iconOnly:this.iconOnly,keepMobileContent:this.keepMobileContent})},this.icon&&e("p-icon",{key:"920c633b134bfca8b0643e8a8174bf66aa7066de",class:"flex-shrink-0",flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}),!this.iconOnly&&e("div",{key:"a178ec5c8f8543cd6b2f746cff170e43be54ff04",class:o("\n flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-medium\n ",{hidden:!this.keepMobileContent,"desktop-xs:block":!this.keepMobileContent})},e("slot",{key:"d8ef0efd720dbb24690ef5b354277eb84ede8921"}))))}};d.style="*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(255 246 194/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:block{display:block}.desktop-xs\\:w-auto{width:auto}.desktop-xs\\:py-0{padding-bottom:0;padding-top:0}}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}";export{d as p_label}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a as e,h as
|
|
1
|
+
import{r as t,a as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=a("h-9 w-[2px] flex-shrink-0 rounded-full",{variants:{variant:{neutral:"\n bg-indigo-800\n dark:bg-indigo-400\n ",positive:"\n bg-positive-green-500\n dark:bg-positive-green-alternative\n ",biased:"\n bg-amber-500\n dark:bg-amber-alternative\n ",negative:"\n bg-negative-red-500\n dark:bg-negative-red-alternative\n "}}}),d=a(["flex items-center justify-between gap-2","w-[calc(100%-2px-0.5rem)]"]),c=class{constructor(r){t(this,r),this.action=e(this,"action",3)}variant="positive";header;content;enableAction=!0;actionIcon="negative";actionIconFlip;actionIconRotate;action;render(){return r(o,{key:"f1571a0deacd549291d1d04322a1cc80c3a0720e"},r("div",{key:"345a479a1a9236dab89f1367d46d60b8f81c06d7",class:"\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ",onClick:()=>this._onClick()},r("div",{key:"800075ff1075383ad9c879b6fd31870c1c990b5c",class:i({variant:this.variant})}),r("div",{key:"d1818b747fa164991f4554d89c134cdb3dc956b2",class:d()},r("div",{key:"66d3e58ab4014eb442ea19ba55169d0d31195f21",class:"flex w-full min-w-0 flex-col"},r("p",{key:"975545d9b32298494656e98168e468e5e90298ff",class:"\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n "},this.header?.length?this.header:r("slot",{name:"header"})),r("p",{key:"393b0ce56e3e61fda95cff12ca377bd8283b66ad",class:"\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n "},this.content?.length?this.content:r("slot",{name:"content"}))),this.enableAction&&r("div",{key:"6967b09134dd543682accb499f529d17c9101d2b",class:"\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n "},r("p-icon",{key:"39bd7d0ba6e80b6287b117ec81c73afeee1968b9",flip:this.actionIconFlip,rotate:this.actionIconRotate,variant:this.actionIcon})))))}_onClick(){this.enableAction&&this.action.emit()}};c.style="*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.flex{display:flex}.h-9{height:2.25rem}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%-2px-0\\.5rem\\)\\]{width:calc(100% - 2px - .5rem)}.w-full{width:100%}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(225 159 35/var(--tw-bg-opacity,1))}.bg-indigo-800{--tw-bg-opacity:1;background-color:rgb(27 88 210/var(--tw-bg-opacity,1))}.bg-negative-red-500{--tw-bg-opacity:1;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))}.bg-positive-green-500{--tw-bg-opacity:1;background-color:rgb(92 195 14/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.shadow-2{--tw-shadow:0 1px 1px rgba(0,2,2,.04),0 2px 2px rgba(0,2,2,.04),0 4px 4px rgba(0,2,2,.04);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(24 30 41/var(--tw-border-opacity,1))}.dark\\:bg-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 231 92/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(165 194 252/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(98 255 92/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(24 30 41/var(--tw-border-opacity,1))}.dark\\:bg-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 231 92/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(165 194 252/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(98 255 92/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{c as p_toast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as e,h as i,e as s}from"./p-yFtRjnrU.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const a=class{constructor(e){t(this,e)}hideMobileIndicator=!1;disableDrag=!1;disableAutoCenter=!1;disableIndicatorClick=!1;get _el(){return e(this)}_visibleIndex;_outerHeight=0;_totalWidth=0;_sliderRef;_innerSliderRef;_items=[];_innerSliderResizeObserver;_startX;_startMouseX;_lastMouseX;_lastIndex;_shouldCheckLocation=!1;_dragging=!1;get _filteredItems(){return this._items.filter((t=>t.checkVisibility()))}componentDidLoad(){this._innerSliderRef.style.setProperty("--tw-translate-x","0px")}disconnectedCallback(){this._innerSliderResizeObserver&&this._innerSliderResizeObserver.disconnect()}render(){return i(s,{key:"
|
|
1
|
+
import{r as t,d as e,h as i,e as s}from"./p-yFtRjnrU.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const a=class{constructor(e){t(this,e)}hideMobileIndicator=!1;disableDrag=!1;disableAutoCenter=!1;disableIndicatorClick=!1;get _el(){return e(this)}_visibleIndex;_outerHeight=0;_totalWidth=0;_sliderRef;_innerSliderRef;_items=[];_innerSliderResizeObserver;_startX;_startMouseX;_lastMouseX;_lastIndex;_shouldCheckLocation=!1;_dragging=!1;get _filteredItems(){return this._items.filter((t=>t.checkVisibility()))}componentDidLoad(){this._innerSliderRef.style.setProperty("--tw-translate-x","0px")}disconnectedCallback(){this._innerSliderResizeObserver&&this._innerSliderResizeObserver.disconnect()}render(){return i(s,{key:"d732accc688b1df8c288d5ecd1025fa0b15007af"},i("div",{key:"bef92d3a68be80802dd9b62c2ffd8fbda0b5c72d",class:`\n slider\n ${!this.disableDrag&&"draggable"}\n ${this._dragging&&"dragging"}\n `,ref:t=>this._sliderRef=t,style:{height:`${this._outerHeight}px`},onMouseDown:t=>this._mouseDownHandler(t),onMouseMove:t=>this._mouseMoveHandler(t),onTouchMove:t=>this._mouseMoveHandler(t),onTouchStart:t=>this._mouseDownHandler(t)},i("div",{key:"a8a93a255fbb23b916cf2b858a84fd70f7d62a6b",class:"inner-slider",ref:t=>this._setInnerSliderReft(t),onTransitionEnd:()=>this._transitionEndHandler()},i("slot",{key:"e707df540fe8628168d6451bedcd12848f1d7493",onSlotchange:()=>this._slotChange()}))),i("div",{key:"d9df569867bc0f78974726ae42f5f96f4a13fe62",class:`\n indicator\n ${this.hideMobileIndicator&&"hidden"}\n `},this._filteredItems.map(((t,e)=>i("div",{class:`\n item\n ${!this.disableIndicatorClick&&"cursor-pointer"}\n `,onClick:()=>this._scrollTo(e,!0)},i("div",{class:r("block h-2 w-2 rounded-full",{"bg-indigo-600":e===this._visibleIndex,"bg-indigo-300":e!==this._visibleIndex})}))))))}_mouseDownHandler(t){if(this.disableDrag||this._dragging)return;if("wrap"===getComputedStyle(this._innerSliderRef).flexWrap)return;this._startMouseX=t.x;const e=this._sliderRef.getBoundingClientRect();"touchstart"===t.type&&(this._startMouseX=t.touches?.[0].clientX);const i=this._innerSliderRef.getBoundingClientRect();this._startX=this._startMouseX-e.x-(i.x-e.x),this._lastIndex=this._visibleIndex,this._dragging=!0}_mouseMoveHandler(t){if(!t||!this._dragging||this.disableDrag)return;t.preventDefault(),this._shouldCheckLocation=!0,""===this._innerSliderRef.style.getPropertyValue("pointer-events")&&(this._innerSliderRef.style.pointerEvents="none");const e=this._sliderRef.getBoundingClientRect();let i=t.clientX-e.left;this._lastMouseX=t.x,"touchmove"===t.type&&(i=t.touches?.[0].clientX-e.left,this._lastMouseX=t.touches?.[0].clientX),this._innerSliderRef.style.setProperty("--tw-translate-x",i-this._startX+"px"),this._checkBoundary(),this._calculateIndicator()}_transitionEndHandler(){this._calculateIndicator()}_slotChange(){const t=this._el.querySelectorAll(":scope > *");this._items=[...t],setTimeout((()=>{this._innerSliderRef.style.setProperty("--tw-translate-x","0px"),this._calculateWidth(),this._calculateIndicator()}),100)}mouseUpHandler(){this._dragging=!1,this._innerSliderRef.style.removeProperty("pointer-events"),this._checkLocation()}resizeHandler(){this._innerSliderRef&&(this._innerSliderRef.style.setProperty("--tw-translate-x","0px"),this._calculateWidth(),this._calculateIndicator())}_setInnerSliderReft(t){this._innerSliderRef=t,this._innerSliderResizeObserver=new ResizeObserver((()=>this._calculateHeight())),this._innerSliderResizeObserver.observe(this._innerSliderRef)}_scrollTo(t,e=!1){if(this.disableIndicatorClick&&e)return;const i=this._items[t];if(0===t)return void this._innerSliderRef.style.setProperty("--tw-translate-x","0px");const s=this._sliderRef.getBoundingClientRect(),r=this._innerSliderRef.getBoundingClientRect(),a=i.getBoundingClientRect();this._innerSliderRef.style.setProperty("--tw-translate-x",`-${a.x-r.x+a.width/2-s.width/2}px`),this._checkBoundary(),this._calculateIndicator()}_checkBoundary(){let t=this._sliderRef.getBoundingClientRect();const e=Number.parseInt(this._innerSliderRef.style.getPropertyValue("--tw-translate-x"));e>0&&this._innerSliderRef.style.setProperty("--tw-translate-x","0px");const i=-1*(this._totalWidth-t.width);e<i&&this._innerSliderRef.style.setProperty("--tw-translate-x",`${i}px`)}_calculateIndicator(){for(let t=0;t<this._filteredItems.length;t++){const e=this._isVisible(this._filteredItems[t]);if(e&&(this._visibleIndex=t),0===t&&e)break}}_checkLocation(){if(!this._shouldCheckLocation)return;let t=null;this._lastIndex!==this._visibleIndex&&(t=this._visibleIndex),this._lastIndex===this._visibleIndex&&(this._lastMouseX>this._startMouseX&&0!==this._lastIndex&&(t=this._lastIndex-1),this._lastMouseX<this._startMouseX&&this._lastIndex!==this._items?.length-1&&(t=this._lastIndex+1)),null!==t&&(this._shouldCheckLocation=!1,setTimeout((()=>this._scrollTo(t)),100))}_isVisible(t){if(!this._el||!t)return!1;const e=t.getBoundingClientRect(),i=this._sliderRef.getBoundingClientRect();return e.left>=i.left&&e.right<=i.right||this._isMobile(t)&&e.left+e.width/2>=i.left&&e.left+e.width/2<=i.right}_calculateWidth(){let t=0;for(let e of this._filteredItems)t+=e.getBoundingClientRect().width;const e=getComputedStyle(this._sliderRef),i=2*Number.parseInt(e.padding),s=getComputedStyle(this._innerSliderRef);t+=i+Number.parseInt(s.gap)*(this._filteredItems.length-1),this._totalWidth=t}_calculateHeight(){if(0===this._filteredItems.length)return;const t=this._filteredItems.at(0).getBoundingClientRect().height;t!=this._outerHeight&&(this._outerHeight=t)}_isMobile(t){t||(t=this._filteredItems.at(0));const e=t.getBoundingClientRect();return this._sliderRef.getBoundingClientRect().width-e.width<10}};a.style=".absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.-mx-16{margin-left:-4rem;margin-right:-4rem}.-my-4{margin-bottom:-1rem;margin-top:-1rem}.mt-3{margin-top:.75rem}.box-content{box-sizing:content-box}.flex{display:flex}.w-0{width:0}.w-full{width:100%}.translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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))}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.px-1{padding-left:.25rem;padding-right:.25rem}.px-16{padding-left:4rem;padding-right:4rem}*{box-sizing:border-box}:host{display:flex;flex-direction:column;margin:-1rem -4rem;overflow:hidden;padding:1rem 4rem}:host .slider{box-sizing:content-box;overflow:visible;position:relative}:host .slider.draggable{cursor:grab}@media (min-width:64rem){:host .slider.draggable{cursor:auto}}:host .slider.draggable.dragging{cursor:grabbing}@media (min-width:64rem){:host .slider.draggable.dragging{cursor:auto}}:host .slider.draggable.dragging .inner-slider{transition-property:none}:host .slider .inner-slider{--tw-translate-x:0px;align-items:stretch;display:flex;flex-wrap:nowrap;gap:.5rem;position:absolute;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-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;will-change:transform}@media (min-width:64rem){:host .slider .inner-slider{flex-wrap:wrap;gap:1rem}}:host .slider .inner-slider>::slotted(*){flex-shrink:0;position:relative;width:100%;z-index:10}@media (min-width:40rem){:host .slider .inner-slider>::slotted(*){width:calc(50% - .5rem)}}@media (min-width:64rem){:host .slider .inner-slider>::slotted(*){flex:1 1 0%;width:0}}:host .indicator{align-items:center;display:flex;justify-content:center}@media (min-width:64rem){:host .indicator{display:none}}:host .indicator .item{margin-top:.75rem;padding-left:.25rem;padding-right:.25rem;padding-top:.25rem}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}.desktop-xs\\:flex-wrap{flex-wrap:wrap}}.visible{visibility:visible}.static{position:static}.block{display:block}.hidden{display:none}.h-2{height:.5rem}.w-2{width:.5rem}.cursor-pointer{cursor:pointer}.resize{resize:both}.rounded-full{border-radius:9999px}.bg-indigo-300{--tw-bg-opacity:1;background-color:rgb(187 209 253/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}";export{a as p_content_slider}
|