@paperless/core 2.22.0-alpha.32 → 2.22.0-alpha.33
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-eb88330f.entry.js → p-0db34ade.entry.js} +1 -1
- package/dist/build/{p-dc7e3d2d.entry.js → p-114e0c9a.entry.js} +1 -1
- package/dist/build/{p-8527dffc.entry.js → p-1924cd9d.entry.js} +1 -1
- package/dist/build/{p-75c0d205.entry.js → p-1a17e046.entry.js} +1 -1
- package/dist/build/{p-a075f933.entry.js → p-1eed9342.entry.js} +1 -1
- package/dist/{paperless/p-a3c931c3.entry.js → build/p-1f260372.entry.js} +1 -1
- package/dist/build/{p-1bc013ea.entry.js → p-2695c4c1.entry.js} +1 -1
- package/dist/{paperless/p-88434ef8.entry.js → build/p-4752c1e2.entry.js} +1 -1
- package/dist/build/{p-ac64c055.entry.js → p-48862d6c.entry.js} +1 -1
- package/dist/build/{p-8d872235.entry.js → p-4ad6da03.entry.js} +1 -1
- package/dist/{paperless/p-d824b806.entry.js → build/p-4c1b92b5.entry.js} +1 -1
- package/dist/{paperless/p-f16b7c0e.entry.js → build/p-5c4efc42.entry.js} +1 -1
- package/dist/build/{p-96020614.entry.js → p-5e6e2031.entry.js} +1 -1
- package/dist/{paperless/p-cce41338.entry.js → build/p-608f6111.entry.js} +1 -1
- package/dist/build/p-6da67ab3.entry.js +1 -0
- package/dist/build/{p-3d4eed8c.entry.js → p-7e9886d6.entry.js} +1 -1
- package/dist/build/{p-26a84c2f.entry.js → p-84652e9e.entry.js} +1 -1
- package/dist/{paperless/p-8073ff56.entry.js → build/p-93542510.entry.js} +1 -1
- package/dist/{paperless/p-5abb4596.entry.js → build/p-94311485.entry.js} +1 -1
- package/dist/{paperless/p-443e1609.entry.js → build/p-a3f1e55c.entry.js} +1 -1
- package/dist/{paperless/p-d79097e9.entry.js → build/p-a6d1bac6.entry.js} +1 -1
- package/dist/build/{p-4c47faf5.entry.js → p-aa3c6754.entry.js} +1 -1
- package/dist/build/{p-39695802.js → p-bb93b60d.js} +1 -1
- package/dist/build/{p-7b05d594.entry.js → p-bf87972a.entry.js} +1 -1
- package/dist/build/{p-796ade92.entry.js → p-d15bb397.entry.js} +1 -1
- package/dist/build/{p-4ade4fd6.entry.js → p-d2de7714.entry.js} +1 -1
- package/dist/{paperless/p-16625524.entry.js → build/p-d388076a.entry.js} +1 -1
- package/dist/{paperless/p-2461cae0.entry.js → build/p-dafa1b62.entry.js} +1 -1
- package/dist/build/{p-3224460c.entry.js → p-e0b1116c.entry.js} +1 -1
- package/dist/build/p-f0405a75.entry.js +1 -0
- package/dist/build/{p-0595952f.entry.js → p-ff9f4b2b.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +5 -5
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +6 -6
- package/dist/cjs/p-calendar.cjs.entry.js +6 -6
- package/dist/cjs/p-card-header.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +4 -4
- 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 +5 -5
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +8 -8
- package/dist/cjs/p-field_3.cjs.entry.js +15 -15
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/p-label.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +9 -9
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +2 -2
- package/dist/cjs/p-range.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js +8 -8
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +20 -42
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +2 -2
- package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +2 -2
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +2 -2
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +2 -2
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +2 -2
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +5 -5
- package/dist/collection/components/molecules/button/button.component.js +4 -4
- package/dist/collection/components/molecules/calendar/calendar.component.js +6 -6
- 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 +5 -5
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/field/container/field-container.component.js +6 -6
- package/dist/collection/components/molecules/field/field/field.component.js +8 -8
- package/dist/collection/components/molecules/label/label.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +6 -6
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +1 -1
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +2 -2
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +8 -8
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +1 -1
- package/dist/collection/components/molecules/table/header/table-header.component.js +5 -5
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/drawer/drawer.component.js +1 -1
- package/dist/collection/components/organisms/modal/modal.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/stepper/stepper.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +20 -42
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Ch5U9kWZ.js → p-Bs4zUbgC.js} +1 -1
- package/dist/components/{p-OF_TU9VQ.js → p-Bsz5wpvX.js} +1 -1
- package/dist/components/{p-CCufTu-v.js → p-C4QFnooj.js} +1 -1
- package/dist/components/{p-nUd8Wpbr.js → p-C7oEohET.js} +1 -1
- package/dist/components/{p-BwD4wr14.js → p-CCdMFLeY.js} +1 -1
- package/dist/components/{p-DfBWP1bt.js → p-CCpo87pH.js} +1 -1
- package/dist/components/{p-PyPr6c8z.js → p-CGMb-Zik.js} +1 -1
- package/dist/components/{p-SggF_Jar.js → p-CGMitCrO.js} +1 -1
- package/dist/components/{p-DoDhkUVy.js → p-CJ7RtC-a.js} +1 -1
- package/dist/components/{p-CvE78NPe.js → p-CLQglqfD.js} +1 -1
- package/dist/components/{p-CkCQHYtH.js → p-CVCCA4eY.js} +1 -1
- package/dist/components/{p-ZcEew3GF.js → p-CWRAbDh-.js} +1 -1
- package/dist/components/{p-BBpjifjG.js → p-CzT4TxMT.js} +1 -1
- package/dist/components/{p-BQNrSoo9.js → p-D6xsDoHI.js} +1 -1
- package/dist/components/{p-BvUfWfx-.js → p-DCkiUXJN.js} +1 -1
- package/dist/components/{p-kAKe_qDq.js → p-DqtQfYz0.js} +1 -1
- package/dist/components/{p-D08B3cFE.js → p-DuNvWVbF.js} +1 -1
- package/dist/components/{p-CtHAbYCa.js → p-Dxh5RZDW.js} +1 -1
- package/dist/components/{p-h4mS749f.js → p-E_DVjH99.js} +1 -1
- package/dist/components/{p-BqgXqvox.js → p-KIL5rYXr.js} +1 -1
- package/dist/components/{p-2ng-Aose.js → p-Pk4ZTsZ4.js} +1 -1
- package/dist/components/{p-CGFPlslj.js → p-QVPuIpXI.js} +1 -1
- package/dist/components/{p-CNMa-_yN.js → p-TQjQ8aZG.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/{p-CaN_dhnG.js → p-csyF2tkK.js} +1 -1
- 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-menu-item.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-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.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-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-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-table-cell.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.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/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +5 -5
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-badge_3.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +6 -6
- package/dist/esm/p-calendar.entry.js +6 -6
- package/dist/esm/p-card-header.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +4 -4
- 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 +5 -5
- package/dist/esm/p-drawer-body_3.entry.js +1 -1
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-empty-state_8.entry.js +8 -8
- package/dist/esm/p-field_3.entry.js +15 -15
- package/dist/esm/p-floating-menu-item.entry.js +1 -1
- package/dist/esm/p-label.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +1 -1
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +9 -9
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +2 -2
- package/dist/esm/p-range.entry.js +1 -1
- package/dist/esm/p-select.entry.js +8 -8
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-table.entry.js +20 -42
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +2 -2
- package/dist/esm/p-tooltip.entry.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-eb88330f.entry.js → p-0db34ade.entry.js} +1 -1
- package/dist/paperless/{p-dc7e3d2d.entry.js → p-114e0c9a.entry.js} +1 -1
- package/dist/paperless/{p-8527dffc.entry.js → p-1924cd9d.entry.js} +1 -1
- package/dist/paperless/{p-75c0d205.entry.js → p-1a17e046.entry.js} +1 -1
- package/dist/paperless/{p-a075f933.entry.js → p-1eed9342.entry.js} +1 -1
- package/dist/{build/p-a3c931c3.entry.js → paperless/p-1f260372.entry.js} +1 -1
- package/dist/paperless/{p-1bc013ea.entry.js → p-2695c4c1.entry.js} +1 -1
- package/dist/{build/p-88434ef8.entry.js → paperless/p-4752c1e2.entry.js} +1 -1
- package/dist/paperless/{p-ac64c055.entry.js → p-48862d6c.entry.js} +1 -1
- package/dist/paperless/{p-8d872235.entry.js → p-4ad6da03.entry.js} +1 -1
- package/dist/{build/p-d824b806.entry.js → paperless/p-4c1b92b5.entry.js} +1 -1
- package/dist/{build/p-f16b7c0e.entry.js → paperless/p-5c4efc42.entry.js} +1 -1
- package/dist/paperless/{p-96020614.entry.js → p-5e6e2031.entry.js} +1 -1
- package/dist/{build/p-cce41338.entry.js → paperless/p-608f6111.entry.js} +1 -1
- package/dist/paperless/p-6da67ab3.entry.js +1 -0
- package/dist/paperless/{p-3d4eed8c.entry.js → p-7e9886d6.entry.js} +1 -1
- package/dist/paperless/{p-26a84c2f.entry.js → p-84652e9e.entry.js} +1 -1
- package/dist/{build/p-8073ff56.entry.js → paperless/p-93542510.entry.js} +1 -1
- package/dist/{build/p-5abb4596.entry.js → paperless/p-94311485.entry.js} +1 -1
- package/dist/{build/p-443e1609.entry.js → paperless/p-a3f1e55c.entry.js} +1 -1
- package/dist/{build/p-d79097e9.entry.js → paperless/p-a6d1bac6.entry.js} +1 -1
- package/dist/paperless/{p-4c47faf5.entry.js → p-aa3c6754.entry.js} +1 -1
- package/dist/paperless/{p-7b05d594.entry.js → p-bf87972a.entry.js} +1 -1
- package/dist/paperless/{p-796ade92.entry.js → p-d15bb397.entry.js} +1 -1
- package/dist/paperless/{p-4ade4fd6.entry.js → p-d2de7714.entry.js} +1 -1
- package/dist/{build/p-16625524.entry.js → paperless/p-d388076a.entry.js} +1 -1
- package/dist/{build/p-2461cae0.entry.js → paperless/p-dafa1b62.entry.js} +1 -1
- package/dist/paperless/{p-3224460c.entry.js → p-e0b1116c.entry.js} +1 -1
- package/dist/paperless/p-f0405a75.entry.js +1 -0
- package/dist/paperless/{p-0595952f.entry.js → p-ff9f4b2b.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +109 -131
- package/hydrate/index.mjs +109 -131
- package/package.json +1 -1
- package/dist/build/p-4b03700c.entry.js +0 -1
- package/dist/build/p-fc461e09.entry.js +0 -1
- package/dist/paperless/p-4b03700c.entry.js +0 -1
- package/dist/paperless/p-fc461e09.entry.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as i,t as h}from"./p-mR4MYqqI.js";import{T as n,s as r}from"./p-C1fCuFhI.js";import{d as o}from"./p-DfBWP1bt.js";import{d as a}from"./p-nUd8Wpbr.js";const c="undefined"!=typeof window&&void 0!==window.document,l=c?window:{},d=!!c&&"ontouchstart"in l.document.documentElement,u=!!c&&"PointerEvent"in l,p="cropper",b=p+"-canvas",m=p+"-crosshair",f=p+"-grid",g=p+"-handle",w=p+"-image",v=p+"-selection",k=p+"-shade",$=p+"-viewer",y="select",x="move",z="scale",M="rotate",C="transform",A="none",j="n-resize",T="e-resize",E="s-resize",O="w-resize",S="ne-resize",I="nw-resize",R="se-resize",_="sw-resize",N=u?"pointerdown":d?"touchstart":"mousedown",X=u?"pointermove":d?"touchmove":"mousemove",Y=u?"pointerup pointercancel":d?"touchend touchcancel":"mouseup",W="error",P="keydown",D="load",L="wheel",U="action",B="actionend",F="actionstart",q="change",H="transform",K=Number.isNaN||l.isNaN;function V(t){return"number"==typeof t&&!K(t)}function Z(t){return V(t)&&t>0&&t<1/0}function G(t){return"object"==typeof t&&null!==t}const{hasOwnProperty:J}=Object.prototype;function Q(t){if(!G(t))return!1;try{const{constructor:s}=t,{prototype:e}=s;return s&&e&&J.call(e,"isPrototypeOf")}catch(t){return!1}}function tt(t){return"function"==typeof t}function st(t){return"object"==typeof t&&null!==t&&1===t.nodeType}const et=/([a-z\d])([A-Z])/g;function it(t){return(t+"").replace(et,"$1-$2").toLowerCase()}const ht=/-[A-z\d]/g;function nt(t){return t.replace(ht,(t=>t.slice(1).toUpperCase()))}const rt=/\s\s*/;function ot(t,s,e,i){s.trim().split(rt).forEach((s=>{t.removeEventListener(s,e,i)}))}function at(t,s,e,i){s.trim().split(rt).forEach((s=>{t.addEventListener(s,e,i)}))}function ct(t,s,e,i){at(t,s,e,Object.assign(Object.assign({},i),{once:!0}))}const lt={bubbles:!0,cancelable:!0,composed:!0},dt=Promise.resolve();function ut(t){const{documentElement:s}=t.ownerDocument,e=t.getBoundingClientRect();return{left:e.left+(l.pageXOffset-s.clientLeft),top:e.top+(l.pageYOffset-s.clientTop)}}const pt=/deg|g?rad|turn$/i;function bt(t){const s=parseFloat(t)||0;if(0!==s){const[e="rad"]=(t+"").match(pt)||[];switch(e.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 mt="contain";function ft(t,s=mt){const{aspectRatio:e}=t;let{width:i,height:h}=t;const n=Z(i),r=Z(h);if(n&&r){const t=h*e;s===mt&&t>i||"cover"===s&&t<i?h=i/e:i=h*e}else n?h=i/e:r&&(i=h*e);return{width:i,height:h}}function gt(t,...s){if(0===s.length)return t;const[e,i,h,n,r,o]=t,[a,c,l,d,u,p]=s[0];return gt(t=[e*a+h*c,i*a+n*c,e*l+h*d,i*l+n*d,e*u+h*p+r,i*u+n*p+o],...s.slice(1))}const wt=/left|top|width|height/i,vt="open",kt=new WeakMap,$t=new WeakMap,yt=new Map,xt=l.document&&Array.isArray(l.document.adoptedStyleSheets)&&"replaceSync"in l.CSSStyleSheet.prototype;class zt extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var t,s;super(),this.shadowRootMode=vt,this.slottable=!0;const e=null===(s=null===(t=Object.getPrototypeOf(this))||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.$name;e&&yt.set(e,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,e){if(Object.is(e,s))return;const i=nt(t);let h=e;switch(typeof this[i]){case"boolean":h=null!==e&&"false"!==e;break;case"number":h=Number(e)}switch(this[i]=h,t){case"theme-color":{const t=$t.get(this),s=this.$sharedStyle;t&&s&&(xt?t.replaceSync(s):t.textContent=s);break}}}$propertyChangedCallback(t,s,e){if(!Object.is(e,s))switch(t=it(t),typeof e){case"boolean":!0===e?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":K(e)?e="":e+="";default:e?this.getAttribute(t)!==e&&this.setAttribute(t,e):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=nt(t);let e=this[s];(function(t){return void 0===t})(e)||this.$propertyChangedCallback(s,void 0,e),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get:()=>e,set(t){const i=e;e=t,this.$propertyChangedCallback(s,i,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||vt});if(this.shadowRoot||kt.set(this,t),$t.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(){$t.has(this)&&$t.delete(this),kt.has(this)&&kt.delete(this)}$getTagNameOf(t){var s;return null!==(s=yt.get(t))&&void 0!==s?s:t}$setStyles(t){return Object.keys(t).forEach((s=>{let e=t[s];V(e)&&(0!==e&&wt.test(s)?e+="px":e+=""),this.style[s]=e})),this}$getShadowRoot(){return this.shadowRoot||kt.get(this)}$addStyles(t){let s;const e=this.$getShadowRoot();return xt?(s=new CSSStyleSheet,s.replaceSync(t),e.adoptedStyleSheets=e.adoptedStyleSheets.concat(s)):(s=document.createElement("style"),s.textContent=t,e.appendChild(s)),s}$emit(t,s,e){return function(t,s,e,i){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},lt),{detail:e}),i)))}(this,t,s,e)}$nextTick(t){return function(t,s){return s?dt.then(t?s.bind(t):s):dt}(this,t)}static $define(t,s){G(t)&&(s=t,t=""),t||(t=this.$name||this.name),t=it(t),c&&l.customElements&&!l.customElements.get(t)&&customElements.define(t,this,s)}}zt.$version="2.0.0";class Mt extends zt{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=A,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,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"disabled"!==t)||(e?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),at(this,N,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),at(this.ownerDocument,X,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),at(this.ownerDocument,Y,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),at(this,L,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(ot(this,N,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(ot(this.ownerDocument,X,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(ot(this.ownerDocument,Y,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(ot(this,L,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:s,button:e,type:i}=t;if(this.disabled||("pointerdown"===i&&"mouse"===t.pointerType||"mousedown"===i)&&(V(s)&&1!==s||V(e)&&0!==e||t.ctrlKey))return;const{$pointers:h}=this;let n="";if(t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{h.set(t,{startX:s,startY:e,endX:s,endY:e})}));else{const{pointerId:s=0,pageX:e,pageY:i}=t;h.set(s,{startX:e,startY:i,endX:e,endY:i})}h.size>1?n=C:st(t.target)&&(n=t.target.action||t.target.getAttribute("action")||""),!1!==this.$emit(F,{action:n,relatedEvent:t})&&(t.preventDefault(),this.$action=n,this.style.willChange="transform")}$handlePointerMove(t){const{$action:s,$pointers:e}=this;if(this.disabled||s===A||0===e.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:i})=>{const h=e.get(t);h&&Object.assign(h,{endX:s,endY:i})}));else{const{pointerId:s=0,pageX:i,pageY:h}=t,n=e.get(s);n&&Object.assign(n,{endX:i,endY:h})}const i={action:s,relatedEvent:t};if(s===C){const s=new Map(e);let h=0,n=0,r=0,o=0,a=t.pageX,c=t.pageY;e.forEach(((t,e)=>{s.delete(e),s.forEach((s=>{let e=s.startX-t.startX,i=s.startY-t.startY,l=s.endX-t.endX,d=s.endY-t.endY,u=0,p=0,b=0,m=0;if(0===e?i<0?b=2*Math.PI:i>0&&(b=Math.PI):e>0?b=Math.PI/2+Math.atan(i/e):e<0&&(b=1.5*Math.PI+Math.atan(i/e)),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 e=m-b,i=Math.abs(e);i>h&&(h=i,r=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}if(e=Math.abs(e),i=Math.abs(i),l=Math.abs(l),d=Math.abs(d),e>0&&i>0?u=Math.sqrt(e*e+i*i):e>0?u=e:i>0&&(u=i),l>0&&d>0?p=Math.sqrt(l*l+d*d):l>0?p=l:d>0&&(p=d),u>0&&p>0){const e=(p-u)/u,i=Math.abs(e);i>n&&(n=i,o=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}}))}));const l=h>0,d=n>0;l&&d?(i.rotate=r,i.scale=o,i.centerX=a,i.centerY=c):l?(i.action=M,i.rotate=r,i.centerX=a,i.centerY=c):d?(i.action=z,i.scale=o,i.centerX=a,i.centerY=c):i.action=A}else{const[t]=Array.from(e.values());Object.assign(i,t)}e.forEach((t=>{t.startX=t.endX,t.startY=t.endY})),i.action!==A&&this.$emit(U,i,{cancelable:!1})}$handlePointerUp(t){const{$action:s,$pointers:e}=this;if(!this.disabled&&s!==A&&!1!==this.$emit(B,{action:s,relatedEvent:t})){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t})=>{e.delete(t)}));else{const{pointerId:s=0}=t;e.delete(s)}0===e.size&&(this.style.willChange="",this.$action=A)}}$handleWheel(t){this.disabled||(t.preventDefault(),this.$wheeling||(this.$wheeling=!0,setTimeout((()=>{this.$wheeling=!1}),50),this.$emit(U,{action:z,scale:(t.deltaY>0?-1:1)*this.scaleStep,relatedEvent:t},{cancelable:!1})))}$setAction(t){return function(t){return"string"==typeof t}(t)&&(this.$action=t),this}$toCanvas(t){return new Promise(((s,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let h=this.offsetWidth,n=this.offsetHeight,r=1;Q(t)&&(Z(t.width)||Z(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.offsetWidth),i.width=h,i.height=n;const o=this.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform();let b=u,m=p,f=e.naturalWidth,g=e.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),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(w,v),a.transform(s,c,l,d,b,m),a.translate(-w,-v),a.drawImage(e,0,0,f,g),a.restore()}s(i)})).catch(e):s(i)}))}}Mt.$name=b,Mt.$version="2.0.0";const Ct=new WeakMap,At=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class jt extends zt{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){Ct.set(this,t)}get $canvas(){return Ct.get(this)}static get observedAttributes(){return super.observedAttributes.concat(At,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,e){Object.is(e,s)||(super.attributeChangedCallback(t,s,e),At.includes(t)&&this.$image.setAttribute(t,e))}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"initialCenterSize"!==t)||this.$nextTick((()=>{this.$center(e)}))}connectedCallback(){super.connectedCallback();const{$image:t}=this,s=this.closest(this.$getTagNameOf(b));s&&(this.$canvas=s,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=t=>{var s,e;this.$actionStartTarget=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),at(s,F,this.$onCanvasActionStart),at(s,B,this.$onCanvasActionEnd),at(s,U,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),at(t,D,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;s&&(this.$onCanvasActionStart&&(ot(s,F,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(s,B,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(s,U,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(ot(t,D,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:e}=t;if(e){const{relatedEvent:t}=e;let{action:i}=e;switch(i!==C||this.rotatable&&this.scalable||(i=this.rotatable?M:this.scalable?z:A),i){case x:if(this.translatable){let i=null;t&&(i=t.target.closest(this.$getTagNameOf(v))),i||(i=s.querySelector(this.$getTagNameOf(v))),i&&i.multiple&&!i.active&&(i=s.querySelector(this.$getTagNameOf(v)+"[active]")),i&&!i.hidden&&i.movable&&!i.dynamic&&this.$actionStartTarget&&i.contains(this.$actionStartTarget)||this.$move(e.endX-e.startX,e.endY-e.startY)}break;case M:if(this.rotatable)if(t){const{x:s,y:i}=this.getBoundingClientRect();this.$rotate(e.rotate,t.clientX-s,t.clientY-i)}else this.$rotate(e.rotate);break;case z:if(this.scalable)if(t){const s=t.target.closest(this.$getTagNameOf(v));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:i}=this.getBoundingClientRect();this.$zoom(e.scale,t.clientX-s,t.clientY-i)}}else this.$zoom(e.scale);break;case C:if(this.rotatable&&this.scalable){const{rotate:s}=e;let{scale:i}=e;i<0?i=1/(1-i):i+=1;const h=Math.cos(s),n=Math.sin(s),[r,o,a,c]=[h*i,n*i,-n*i,h*i];if(t){const s=this.getBoundingClientRect(),e=t.clientX-s.x,i=t.clientY-s.y,[h,n,l,d]=this.$matrix,u=e-s.width/2,p=i-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,e=new Promise(((t,e)=>{const i=Error("Failed to load the image source");if(s.complete)s.naturalWidth>0&&s.naturalHeight>0?t(s):e(i);else{const h=()=>{ot(s,W,n),t(s)},n=()=>{ot(s,D,h),e(i)};ct(s,D,h),ct(s,W,n)}}));return tt(t)&&e.then((s=>(t(s),s))),e}$center(t){const{parentElement:s}=this;if(!s)return this;const e=s.getBoundingClientRect(),i=e.width,h=e.height,{x:n,y:r,width:o,height:a}=this.getBoundingClientRect();if(this.$move(e.x+i/2-(n+o/2),e.y+h/2-(r+a/2)),t&&(o!==i||a!==h)){const s=i/o,e=h/a;switch(t){case"cover":this.$scale(Math.max(s,e));break;case"contain":this.$scale(Math.min(s,e))}}return this}$move(t,s=t){if(this.translatable&&V(t)&&V(s)){const[e,i,h,n]=this.$matrix;this.$translate((t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$moveTo(t,s=t){if(this.translatable&&V(t)&&V(s)){const[e,i,h,n]=this.$matrix;this.$setTransform(e,i,h,n,(t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$rotate(t,s,e){if(this.rotatable){const i=bt(t),h=Math.cos(i),n=Math.sin(i),[r,o,a,c]=[h,n,-n,h];if(V(s)&&V(e)){const[t,i,h,n]=this.$matrix,{width:l,height:d}=this.getBoundingClientRect(),u=s-l/2,p=e-d/2,b=(u*n-h*p)/(t*n-h*i),m=(p*t-i*u)/(t*n-h*i);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,e){if(!this.scalable||0===t)return this;if(t<0?t=1/(1-t):t+=1,V(s)&&V(e)){const[i,h,n,r]=this.$matrix,{width:o,height:a}=this.getBoundingClientRect(),c=s-o/2,l=e-a/2;this.$transform(t,0,0,t,(c*r-n*l)/(i*r-n*h)*(1-t),(l*i-h*c)/(i*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 e=bt(t),i=bt(s);this.$transform(1,Math.tan(i),Math.tan(e),1,0,0)}return this}$translate(t,s=t){return this.translatable&&V(t)&&V(s)&&this.$transform(1,0,0,1,t,s),this}$transform(t,s,e,i,h,n){return V(t)&&V(s)&&V(e)&&V(i)&&V(h)&&V(n)?this.$setTransform(gt(this.$matrix,[t,s,e,i,h,n])):this}$setTransform(t,s,e,i,h,n){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,s,e,i,h,n]=t),V(t)&&V(s)&&V(e)&&V(i)&&V(h)&&V(n))){const r=[...this.$matrix],o=[t,s,e,i,h,n];if(!1===this.$emit(H,{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])}}jt.$name=w,jt.$version="2.0.0";const Tt=new WeakMap;class Et extends zt{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){Tt.set(this,t)}get $canvas(){return Tt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));if(t){this.$canvas=t,this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(v));s&&(this.$onCanvasActionStart=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!1)},this.$onCanvasActionEnd=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!0)},this.$onCanvasChange=t=>{const{x:e,y:i,width:h,height:n}=t.detail;this.$change(e,i,h,n),(s.hidden||0===e&&0===i&&0===h&&0===n)&&(this.hidden=!0)},at(t,F,this.$onCanvasActionStart),at(t,B,this.$onCanvasActionEnd),at(t,q,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,F,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,B,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(ot(t,q,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,s,e=this.width,i=this.height){return V(t)&&V(s)&&V(e)&&V(i)&&(t!==this.x||s!==this.y||e!==this.width||i!==this.height)?(this.hidden&&(this.hidden=!1),this.x=t,this.y=s,this.width=e,this.height=i,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:l.innerWidth})}}Et.$name=k,Et.$version="2.0.0";class Ot extends zt{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=A,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Ot.$name=g,Ot.$version="2.0.0";const St=new WeakMap;class It extends zt{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){St.set(this,t)}get $canvas(){return St.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,e){if(!Object.is(e,s))switch(super.$propertyChangedCallback(t,s,e),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((()=>{Z(e)&&e<=1&&this.$initSelection(!0,!0)}));break;case"keyboard":this.$nextTick((()=>{this.$canvas&&(e?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),at(this.ownerDocument,P,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(ot(this.ownerDocument,P,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();e?(t.forEach((t=>{t.active=!1})),this.active=!0,this.$emit(q,{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":e&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));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),at(t,F,this.$onCanvasActionStart),at(t,B,this.$onCanvasActionEnd),at(t,U,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,F,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,B,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(t,U,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(v)))),t}$initSelection(t=!1,s=!1){const{initialCoverage:e,parentElement:i}=this;if(Z(e)&&i){const h=this.aspectRatio||this.initialAspectRatio;let n=(s?0:this.width)||i.offsetWidth*e,r=(s?0:this.height)||i.offsetHeight*e;Z(h)&&({width:n,height:r}=ft({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 e=s.indexOf(t),i=s[e+1]||s[e-1];i&&(t.active=!1,this.parentElement.removeChild(t),i.active=!0,i.$emit(q,{x:i.x,y:i.y,width:i.width,height:i.height}))}else this.$clear()}}$handleActionStart(t){var s,e;const i=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target;this.$action="",this.$actionStartTarget=i,!this.hidden&&this.multiple&&!this.active&&i===this&&this.parentElement&&(this.$getSelections().forEach((t=>{t.active=!1})),this.active=!0,this.$emit(q,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:s,detail:e}=t;if(!s||!e)return;const{relatedEvent:i}=e;let{action:h}=e;if(!h&&this.multiple&&(h=this.$action||(null==i?void 0:i.target.action),this.$action=h),!h||this.hidden&&h!==y||this.multiple&&!this.active&&h!==z)return;const n=e.endX-e.startX,r=e.endY-e.startY,{width:o,height:a}=this;let{aspectRatio:c}=this;switch(!Z(c)&&i.shiftKey&&(c=Z(o)&&Z(a)?o/a:1),h){case y:if(0!==n&&0!==r){const{$canvas:t}=this,i=ut(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(e.startX-i.left,e.startY-i.top,Math.abs(n),Math.abs(r),c),n<0?r<0?h=I:r>0&&(h=_):n>0&&(r<0?h=S:r>0&&(h=R)),t&&(t.$action=h)}break;case x:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(n,r);break;case z:if(i&&this.zoomable&&(this.dynamic||this.contains(i.target))){const t=ut(s);this.$zoom(e.scale,i.pageX-t.left,i.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,e=0,i=this.aspectRatio){if(!this.resizable)return this;const h=Z(i),{$canvas:n}=this;let{x:r,y:o,width:a,height:c}=this;switch(t){case j:o+=e,c-=e,c<0&&(t=E,c=-c,o-=c),h&&(r+=(s=e*i)/2,a-=s,a<0&&(a=-a,r-=a));break;case T:a+=s,a<0&&(t=O,a=-a,r-=a),h&&(o-=(e=s/i)/2,c+=e,c<0&&(c=-c,o-=c));break;case E:c+=e,c<0&&(t=j,c=-c,o-=c),h&&(r-=(s=e*i)/2,a+=s,a<0&&(a=-a,r-=a));break;case O:r+=s,a-=s,a<0&&(t=T,a=-a,r-=a),h&&(o+=(e=s/i)/2,c-=e,c<0&&(c=-c,o-=c));break;case S:h&&(e=-s/i),o+=e,c-=e,a+=s,a<0&&c<0?(t=_,a=-a,c=-c,r-=a,o-=c):a<0?(t=I,a=-a,r-=a):c<0&&(t=R,c=-c,o-=c);break;case I:h&&(e=s/i),r+=s,o+=e,a-=s,c-=e,a<0&&c<0?(t=R,a=-a,c=-c,r-=a,o-=c):a<0?(t=S,a=-a,r-=a):c<0&&(t=_,c=-c,o-=c);break;case R:h&&(e=s/i),a+=s,c+=e,a<0&&c<0?(t=I,a=-a,c=-c,r-=a,o-=c):a<0?(t=_,a=-a,r-=a):c<0&&(t=S,c=-c,o-=c);break;case _:h&&(e=-s/i),r+=s,a-=s,c+=e,a<0&&c<0?(t=S,a=-a,c=-c,r-=a,o-=c):a<0?(t=R,a=-a,r-=a):c<0&&(t=I,c=-c,o-=c)}return n&&n.$setAction(t),this.$change(r,o,a,c)}$zoom(t,s,e){if(!this.zoomable||0===t)return this;t<0?t=1/(1-t):t+=1;const{width:i,height:h}=this,n=i*t,r=h*t;let o=this.x,a=this.y;return V(s)&&V(e)?(o-=(s-this.x)/i*(n-i),a-=(e-this.y)/h*(r-h)):(o-=(n-i)/2,a-=(r-h)/2),this.$change(o,a,n,r)}$change(t,s,e=this.width,i=this.height,h=this.aspectRatio,n=!1){return this.$changing||!V(t)||!V(s)||!V(e)||!V(i)||e<0||i<0?this:(Z(h)&&({width:e,height:i}=ft({aspectRatio:h,width:e,height:i},"cover")),this.precise||(t=Math.round(t),s=Math.round(s),e=Math.round(e),i=Math.round(i)),t===this.x&&s===this.y&&e===this.width&&i===this.height&&Object.is(h,this.aspectRatio)&&!n?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(q,{x:t,y:s,width:e,height:i})?this:(this.$changing=!0,this.x=t,this.y=s,this.width=e,this.height=i,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:s,width:e,height:i}=this.$initialSelection;return this.$change(t,s,e,i)}$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,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let{width:h,height:n}=this,r=1;if(Q(t)&&(Z(t.width)||Z(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.width),i.width=h,i.height=n,!this.$canvas)return void s(i);const o=this.$canvas.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.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,k=e.naturalWidth,$=e.naturalHeight;1!==r&&(w*=r,v*=r,k*=r,$*=r);const y=k/2,x=$/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(y,x),a.transform(s,c,l,d,w,v),a.translate(-y,-x),a.drawImage(e,0,0,k,$),a.restore()}s(i)})).catch(e):s(i)}))}}It.$name=v,It.$version="2.0.0";class Rt extends zt{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,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"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))}}Rt.$name=f,Rt.$version="2.0.0";class _t extends zt{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"])}}_t.$name=m,_t.$version="2.0.0";const Nt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Wt=new WeakMap,Pt="vertical";class Dt extends zt{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=Pt,this.selection="",this.slottable=!1}set $image(t){Xt.set(this,t)}get $image(){return Xt.get(this)}set $sourceImage(t){Wt.set(this,t)}get $sourceImage(){return Wt.get(this)}set $canvas(t){Nt.set(this,t)}get $canvas(){return Nt.get(this)}set $selection(t){Yt.set(this,t)}get $selection(){return Yt.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(v)),st(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),at(t,q,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(b));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(w));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),at(t.$image,D,this.$onSourceImageLoad),at(t,H,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;t&&this.$onSelectionChange&&(ot(t,q,this.$onSelectionChange),this.$onSelectionChange=null),s&&this.$onSourceImageLoad&&(ot(s.$image,D,this.$onSourceImageLoad),this.$onSourceImageLoad=null),s&&this.$onSourceImageTransform&&(ot(s,H,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this,e=t.getAttribute("src"),i=s.getAttribute("src");i&&i!==e&&(t.setAttribute("src",i),t.$ready((()=>{setTimeout((()=>{this.$render()}),50)})))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,s){const{$canvas:e,$selection:i}=this;t||i.hidden||(t=i),(!t||0===t.x&&0===t.y&&0===t.width&&0===t.height)&&(t={x:0,y:0,width:e.offsetWidth,height:e.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 Pt: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,e){const{$image:i,$scale:h,$sourceImage:n}=this;if(n&&i&&h>=0){const[n,r,o,a,c,l]=t,d=(s*a-o*e)/(n*a-o*r),u=(e*n-r*s)/(n*a-o*r),p=n*d+o*u+c,b=r*d+a*u+l;i.$ready((t=>{this.$setStyles.call(i,{width:t.naturalWidth*h,height:t.naturalHeight*h})})),i.$setTransform(n,r,o,a,p*h,b*h)}}}Dt.$name=$,Dt.$version="2.0.0",
|
|
1
|
+
import{p as t,H as s,c as e,h as i,t as h}from"./p-mR4MYqqI.js";import{T as n,s as r}from"./p-C1fCuFhI.js";import{d as o}from"./p-CCpo87pH.js";import{d as a}from"./p-C7oEohET.js";const c="undefined"!=typeof window&&void 0!==window.document,l=c?window:{},d=!!c&&"ontouchstart"in l.document.documentElement,u=!!c&&"PointerEvent"in l,p="cropper",b=p+"-canvas",m=p+"-crosshair",f=p+"-grid",g=p+"-handle",w=p+"-image",v=p+"-selection",k=p+"-shade",$=p+"-viewer",y="select",x="move",z="scale",M="rotate",C="transform",A="none",j="n-resize",E="e-resize",T="s-resize",O="w-resize",S="ne-resize",I="nw-resize",R="se-resize",_="sw-resize",N=u?"pointerdown":d?"touchstart":"mousedown",X=u?"pointermove":d?"touchmove":"mousemove",Y=u?"pointerup pointercancel":d?"touchend touchcancel":"mouseup",P="error",W="keydown",D="load",L="wheel",F="action",H="actionend",U="actionstart",q="change",B="transform",K=Number.isNaN||l.isNaN;function V(t){return"number"==typeof t&&!K(t)}function Z(t){return V(t)&&t>0&&t<1/0}function G(t){return"object"==typeof t&&null!==t}const{hasOwnProperty:J}=Object.prototype;function Q(t){if(!G(t))return!1;try{const{constructor:s}=t,{prototype:e}=s;return s&&e&&J.call(e,"isPrototypeOf")}catch(t){return!1}}function tt(t){return"function"==typeof t}function st(t){return"object"==typeof t&&null!==t&&1===t.nodeType}const et=/([a-z\d])([A-Z])/g;function it(t){return(t+"").replace(et,"$1-$2").toLowerCase()}const ht=/-[A-z\d]/g;function nt(t){return t.replace(ht,(t=>t.slice(1).toUpperCase()))}const rt=/\s\s*/;function ot(t,s,e,i){s.trim().split(rt).forEach((s=>{t.removeEventListener(s,e,i)}))}function at(t,s,e,i){s.trim().split(rt).forEach((s=>{t.addEventListener(s,e,i)}))}function ct(t,s,e,i){at(t,s,e,Object.assign(Object.assign({},i),{once:!0}))}const lt={bubbles:!0,cancelable:!0,composed:!0},dt=Promise.resolve();function ut(t){const{documentElement:s}=t.ownerDocument,e=t.getBoundingClientRect();return{left:e.left+(l.pageXOffset-s.clientLeft),top:e.top+(l.pageYOffset-s.clientTop)}}const pt=/deg|g?rad|turn$/i;function bt(t){const s=parseFloat(t)||0;if(0!==s){const[e="rad"]=(t+"").match(pt)||[];switch(e.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 mt="contain";function ft(t,s=mt){const{aspectRatio:e}=t;let{width:i,height:h}=t;const n=Z(i),r=Z(h);if(n&&r){const t=h*e;s===mt&&t>i||"cover"===s&&t<i?h=i/e:i=h*e}else n?h=i/e:r&&(i=h*e);return{width:i,height:h}}function gt(t,...s){if(0===s.length)return t;const[e,i,h,n,r,o]=t,[a,c,l,d,u,p]=s[0];return gt(t=[e*a+h*c,i*a+n*c,e*l+h*d,i*l+n*d,e*u+h*p+r,i*u+n*p+o],...s.slice(1))}const wt=/left|top|width|height/i,vt="open",kt=new WeakMap,$t=new WeakMap,yt=new Map,xt=l.document&&Array.isArray(l.document.adoptedStyleSheets)&&"replaceSync"in l.CSSStyleSheet.prototype;class zt extends HTMLElement{get $sharedStyle(){return(this.themeColor?`:host{--theme-color: ${this.themeColor};}`:"")+":host([hidden]){display:none!important}"}constructor(){var t,s;super(),this.shadowRootMode=vt,this.slottable=!0;const e=null===(s=null===(t=Object.getPrototypeOf(this))||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.$name;e&&yt.set(e,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,e){if(Object.is(e,s))return;const i=nt(t);let h=e;switch(typeof this[i]){case"boolean":h=null!==e&&"false"!==e;break;case"number":h=Number(e)}switch(this[i]=h,t){case"theme-color":{const t=$t.get(this),s=this.$sharedStyle;t&&s&&(xt?t.replaceSync(s):t.textContent=s);break}}}$propertyChangedCallback(t,s,e){if(!Object.is(e,s))switch(t=it(t),typeof e){case"boolean":!0===e?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":K(e)?e="":e+="";default:e?this.getAttribute(t)!==e&&this.setAttribute(t,e):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=nt(t);let e=this[s];(function(t){return void 0===t})(e)||this.$propertyChangedCallback(s,void 0,e),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get:()=>e,set(t){const i=e;e=t,this.$propertyChangedCallback(s,i,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||vt});if(this.shadowRoot||kt.set(this,t),$t.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(){$t.has(this)&&$t.delete(this),kt.has(this)&&kt.delete(this)}$getTagNameOf(t){var s;return null!==(s=yt.get(t))&&void 0!==s?s:t}$setStyles(t){return Object.keys(t).forEach((s=>{let e=t[s];V(e)&&(0!==e&&wt.test(s)?e+="px":e+=""),this.style[s]=e})),this}$getShadowRoot(){return this.shadowRoot||kt.get(this)}$addStyles(t){let s;const e=this.$getShadowRoot();return xt?(s=new CSSStyleSheet,s.replaceSync(t),e.adoptedStyleSheets=e.adoptedStyleSheets.concat(s)):(s=document.createElement("style"),s.textContent=t,e.appendChild(s)),s}$emit(t,s,e){return function(t,s,e,i){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},lt),{detail:e}),i)))}(this,t,s,e)}$nextTick(t){return function(t,s){return s?dt.then(t?s.bind(t):s):dt}(this,t)}static $define(t,s){G(t)&&(s=t,t=""),t||(t=this.$name||this.name),t=it(t),c&&l.customElements&&!l.customElements.get(t)&&customElements.define(t,this,s)}}zt.$version="2.0.0";class Mt extends zt{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=A,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,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"disabled"!==t)||(e?this.$unbind():this.$bind())}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),at(this,N,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),at(this.ownerDocument,X,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),at(this.ownerDocument,Y,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),at(this,L,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(ot(this,N,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(ot(this.ownerDocument,X,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(ot(this.ownerDocument,Y,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(ot(this,L,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:s,button:e,type:i}=t;if(this.disabled||("pointerdown"===i&&"mouse"===t.pointerType||"mousedown"===i)&&(V(s)&&1!==s||V(e)&&0!==e||t.ctrlKey))return;const{$pointers:h}=this;let n="";if(t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{h.set(t,{startX:s,startY:e,endX:s,endY:e})}));else{const{pointerId:s=0,pageX:e,pageY:i}=t;h.set(s,{startX:e,startY:i,endX:e,endY:i})}h.size>1?n=C:st(t.target)&&(n=t.target.action||t.target.getAttribute("action")||""),!1!==this.$emit(U,{action:n,relatedEvent:t})&&(t.preventDefault(),this.$action=n,this.style.willChange="transform")}$handlePointerMove(t){const{$action:s,$pointers:e}=this;if(this.disabled||s===A||0===e.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:i})=>{const h=e.get(t);h&&Object.assign(h,{endX:s,endY:i})}));else{const{pointerId:s=0,pageX:i,pageY:h}=t,n=e.get(s);n&&Object.assign(n,{endX:i,endY:h})}const i={action:s,relatedEvent:t};if(s===C){const s=new Map(e);let h=0,n=0,r=0,o=0,a=t.pageX,c=t.pageY;e.forEach(((t,e)=>{s.delete(e),s.forEach((s=>{let e=s.startX-t.startX,i=s.startY-t.startY,l=s.endX-t.endX,d=s.endY-t.endY,u=0,p=0,b=0,m=0;if(0===e?i<0?b=2*Math.PI:i>0&&(b=Math.PI):e>0?b=Math.PI/2+Math.atan(i/e):e<0&&(b=1.5*Math.PI+Math.atan(i/e)),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 e=m-b,i=Math.abs(e);i>h&&(h=i,r=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}if(e=Math.abs(e),i=Math.abs(i),l=Math.abs(l),d=Math.abs(d),e>0&&i>0?u=Math.sqrt(e*e+i*i):e>0?u=e:i>0&&(u=i),l>0&&d>0?p=Math.sqrt(l*l+d*d):l>0?p=l:d>0&&(p=d),u>0&&p>0){const e=(p-u)/u,i=Math.abs(e);i>n&&(n=i,o=e,a=(t.startX+s.startX)/2,c=(t.startY+s.startY)/2)}}))}));const l=h>0,d=n>0;l&&d?(i.rotate=r,i.scale=o,i.centerX=a,i.centerY=c):l?(i.action=M,i.rotate=r,i.centerX=a,i.centerY=c):d?(i.action=z,i.scale=o,i.centerX=a,i.centerY=c):i.action=A}else{const[t]=Array.from(e.values());Object.assign(i,t)}e.forEach((t=>{t.startX=t.endX,t.startY=t.endY})),i.action!==A&&this.$emit(F,i,{cancelable:!1})}$handlePointerUp(t){const{$action:s,$pointers:e}=this;if(!this.disabled&&s!==A&&!1!==this.$emit(H,{action:s,relatedEvent:t})){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach((({identifier:t})=>{e.delete(t)}));else{const{pointerId:s=0}=t;e.delete(s)}0===e.size&&(this.style.willChange="",this.$action=A)}}$handleWheel(t){this.disabled||(t.preventDefault(),this.$wheeling||(this.$wheeling=!0,setTimeout((()=>{this.$wheeling=!1}),50),this.$emit(F,{action:z,scale:(t.deltaY>0?-1:1)*this.scaleStep,relatedEvent:t},{cancelable:!1})))}$setAction(t){return function(t){return"string"==typeof t}(t)&&(this.$action=t),this}$toCanvas(t){return new Promise(((s,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let h=this.offsetWidth,n=this.offsetHeight,r=1;Q(t)&&(Z(t.width)||Z(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.offsetWidth),i.width=h,i.height=n;const o=this.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.getContext("2d");if(a){const[s,c,l,d,u,p]=o.$getTransform();let b=u,m=p,f=e.naturalWidth,g=e.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),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(w,v),a.transform(s,c,l,d,b,m),a.translate(-w,-v),a.drawImage(e,0,0,f,g),a.restore()}s(i)})).catch(e):s(i)}))}}Mt.$name=b,Mt.$version="2.0.0";const Ct=new WeakMap,At=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class jt extends zt{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){Ct.set(this,t)}get $canvas(){return Ct.get(this)}static get observedAttributes(){return super.observedAttributes.concat(At,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,e){Object.is(e,s)||(super.attributeChangedCallback(t,s,e),At.includes(t)&&this.$image.setAttribute(t,e))}$propertyChangedCallback(t,s,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"initialCenterSize"!==t)||this.$nextTick((()=>{this.$center(e)}))}connectedCallback(){super.connectedCallback();const{$image:t}=this,s=this.closest(this.$getTagNameOf(b));s&&(this.$canvas=s,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=t=>{var s,e;this.$actionStartTarget=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),at(s,U,this.$onCanvasActionStart),at(s,H,this.$onCanvasActionEnd),at(s,F,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),at(t,D,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;s&&(this.$onCanvasActionStart&&(ot(s,U,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(s,H,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(s,F,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(ot(t,D,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:e}=t;if(e){const{relatedEvent:t}=e;let{action:i}=e;switch(i!==C||this.rotatable&&this.scalable||(i=this.rotatable?M:this.scalable?z:A),i){case x:if(this.translatable){let i=null;t&&(i=t.target.closest(this.$getTagNameOf(v))),i||(i=s.querySelector(this.$getTagNameOf(v))),i&&i.multiple&&!i.active&&(i=s.querySelector(this.$getTagNameOf(v)+"[active]")),i&&!i.hidden&&i.movable&&!i.dynamic&&this.$actionStartTarget&&i.contains(this.$actionStartTarget)||this.$move(e.endX-e.startX,e.endY-e.startY)}break;case M:if(this.rotatable)if(t){const{x:s,y:i}=this.getBoundingClientRect();this.$rotate(e.rotate,t.clientX-s,t.clientY-i)}else this.$rotate(e.rotate);break;case z:if(this.scalable)if(t){const s=t.target.closest(this.$getTagNameOf(v));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:i}=this.getBoundingClientRect();this.$zoom(e.scale,t.clientX-s,t.clientY-i)}}else this.$zoom(e.scale);break;case C:if(this.rotatable&&this.scalable){const{rotate:s}=e;let{scale:i}=e;i<0?i=1/(1-i):i+=1;const h=Math.cos(s),n=Math.sin(s),[r,o,a,c]=[h*i,n*i,-n*i,h*i];if(t){const s=this.getBoundingClientRect(),e=t.clientX-s.x,i=t.clientY-s.y,[h,n,l,d]=this.$matrix,u=e-s.width/2,p=i-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,e=new Promise(((t,e)=>{const i=Error("Failed to load the image source");if(s.complete)s.naturalWidth>0&&s.naturalHeight>0?t(s):e(i);else{const h=()=>{ot(s,P,n),t(s)},n=()=>{ot(s,D,h),e(i)};ct(s,D,h),ct(s,P,n)}}));return tt(t)&&e.then((s=>(t(s),s))),e}$center(t){const{parentElement:s}=this;if(!s)return this;const e=s.getBoundingClientRect(),i=e.width,h=e.height,{x:n,y:r,width:o,height:a}=this.getBoundingClientRect();if(this.$move(e.x+i/2-(n+o/2),e.y+h/2-(r+a/2)),t&&(o!==i||a!==h)){const s=i/o,e=h/a;switch(t){case"cover":this.$scale(Math.max(s,e));break;case"contain":this.$scale(Math.min(s,e))}}return this}$move(t,s=t){if(this.translatable&&V(t)&&V(s)){const[e,i,h,n]=this.$matrix;this.$translate((t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$moveTo(t,s=t){if(this.translatable&&V(t)&&V(s)){const[e,i,h,n]=this.$matrix;this.$setTransform(e,i,h,n,(t*n-h*s)/(e*n-h*i),(s*e-i*t)/(e*n-h*i))}return this}$rotate(t,s,e){if(this.rotatable){const i=bt(t),h=Math.cos(i),n=Math.sin(i),[r,o,a,c]=[h,n,-n,h];if(V(s)&&V(e)){const[t,i,h,n]=this.$matrix,{width:l,height:d}=this.getBoundingClientRect(),u=s-l/2,p=e-d/2,b=(u*n-h*p)/(t*n-h*i),m=(p*t-i*u)/(t*n-h*i);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,e){if(!this.scalable||0===t)return this;if(t<0?t=1/(1-t):t+=1,V(s)&&V(e)){const[i,h,n,r]=this.$matrix,{width:o,height:a}=this.getBoundingClientRect(),c=s-o/2,l=e-a/2;this.$transform(t,0,0,t,(c*r-n*l)/(i*r-n*h)*(1-t),(l*i-h*c)/(i*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 e=bt(t),i=bt(s);this.$transform(1,Math.tan(i),Math.tan(e),1,0,0)}return this}$translate(t,s=t){return this.translatable&&V(t)&&V(s)&&this.$transform(1,0,0,1,t,s),this}$transform(t,s,e,i,h,n){return V(t)&&V(s)&&V(e)&&V(i)&&V(h)&&V(n)?this.$setTransform(gt(this.$matrix,[t,s,e,i,h,n])):this}$setTransform(t,s,e,i,h,n){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,s,e,i,h,n]=t),V(t)&&V(s)&&V(e)&&V(i)&&V(h)&&V(n))){const r=[...this.$matrix],o=[t,s,e,i,h,n];if(!1===this.$emit(B,{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])}}jt.$name=w,jt.$version="2.0.0";const Et=new WeakMap;class Tt extends zt{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){Et.set(this,t)}get $canvas(){return Et.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));if(t){this.$canvas=t,this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(v));s&&(this.$onCanvasActionStart=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!1)},this.$onCanvasActionEnd=t=>{s.hidden&&t.detail.action===y&&(this.hidden=!0)},this.$onCanvasChange=t=>{const{x:e,y:i,width:h,height:n}=t.detail;this.$change(e,i,h,n),(s.hidden||0===e&&0===i&&0===h&&0===n)&&(this.hidden=!0)},at(t,U,this.$onCanvasActionStart),at(t,H,this.$onCanvasActionEnd),at(t,q,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,U,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,H,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(ot(t,q,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,s,e=this.width,i=this.height){return V(t)&&V(s)&&V(e)&&V(i)&&(t!==this.x||s!==this.y||e!==this.width||i!==this.height)?(this.hidden&&(this.hidden=!1),this.x=t,this.y=s,this.width=e,this.height=i,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:l.innerWidth})}}Tt.$name=k,Tt.$version="2.0.0";class Ot extends zt{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=A,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Ot.$name=g,Ot.$version="2.0.0";const St=new WeakMap;class It extends zt{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){St.set(this,t)}get $canvas(){return St.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,e){if(!Object.is(e,s))switch(super.$propertyChangedCallback(t,s,e),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((()=>{Z(e)&&e<=1&&this.$initSelection(!0,!0)}));break;case"keyboard":this.$nextTick((()=>{this.$canvas&&(e?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),at(this.ownerDocument,W,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(ot(this.ownerDocument,W,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();e?(t.forEach((t=>{t.active=!1})),this.active=!0,this.$emit(q,{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":e&&(this.dynamic=!0)}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(b));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),at(t,U,this.$onCanvasActionStart),at(t,H,this.$onCanvasActionEnd),at(t,F,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(ot(t,U,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(ot(t,H,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(ot(t,F,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(v)))),t}$initSelection(t=!1,s=!1){const{initialCoverage:e,parentElement:i}=this;if(Z(e)&&i){const h=this.aspectRatio||this.initialAspectRatio;let n=(s?0:this.width)||i.offsetWidth*e,r=(s?0:this.height)||i.offsetHeight*e;Z(h)&&({width:n,height:r}=ft({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 e=s.indexOf(t),i=s[e+1]||s[e-1];i&&(t.active=!1,this.parentElement.removeChild(t),i.active=!0,i.$emit(q,{x:i.x,y:i.y,width:i.width,height:i.height}))}else this.$clear()}}$handleActionStart(t){var s,e;const i=null===(e=null===(s=t.detail)||void 0===s?void 0:s.relatedEvent)||void 0===e?void 0:e.target;this.$action="",this.$actionStartTarget=i,!this.hidden&&this.multiple&&!this.active&&i===this&&this.parentElement&&(this.$getSelections().forEach((t=>{t.active=!1})),this.active=!0,this.$emit(q,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:s,detail:e}=t;if(!s||!e)return;const{relatedEvent:i}=e;let{action:h}=e;if(!h&&this.multiple&&(h=this.$action||(null==i?void 0:i.target.action),this.$action=h),!h||this.hidden&&h!==y||this.multiple&&!this.active&&h!==z)return;const n=e.endX-e.startX,r=e.endY-e.startY,{width:o,height:a}=this;let{aspectRatio:c}=this;switch(!Z(c)&&i.shiftKey&&(c=Z(o)&&Z(a)?o/a:1),h){case y:if(0!==n&&0!==r){const{$canvas:t}=this,i=ut(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(e.startX-i.left,e.startY-i.top,Math.abs(n),Math.abs(r),c),n<0?r<0?h=I:r>0&&(h=_):n>0&&(r<0?h=S:r>0&&(h=R)),t&&(t.$action=h)}break;case x:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(n,r);break;case z:if(i&&this.zoomable&&(this.dynamic||this.contains(i.target))){const t=ut(s);this.$zoom(e.scale,i.pageX-t.left,i.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,e=0,i=this.aspectRatio){if(!this.resizable)return this;const h=Z(i),{$canvas:n}=this;let{x:r,y:o,width:a,height:c}=this;switch(t){case j:o+=e,c-=e,c<0&&(t=T,c=-c,o-=c),h&&(r+=(s=e*i)/2,a-=s,a<0&&(a=-a,r-=a));break;case E:a+=s,a<0&&(t=O,a=-a,r-=a),h&&(o-=(e=s/i)/2,c+=e,c<0&&(c=-c,o-=c));break;case T:c+=e,c<0&&(t=j,c=-c,o-=c),h&&(r-=(s=e*i)/2,a+=s,a<0&&(a=-a,r-=a));break;case O:r+=s,a-=s,a<0&&(t=E,a=-a,r-=a),h&&(o+=(e=s/i)/2,c-=e,c<0&&(c=-c,o-=c));break;case S:h&&(e=-s/i),o+=e,c-=e,a+=s,a<0&&c<0?(t=_,a=-a,c=-c,r-=a,o-=c):a<0?(t=I,a=-a,r-=a):c<0&&(t=R,c=-c,o-=c);break;case I:h&&(e=s/i),r+=s,o+=e,a-=s,c-=e,a<0&&c<0?(t=R,a=-a,c=-c,r-=a,o-=c):a<0?(t=S,a=-a,r-=a):c<0&&(t=_,c=-c,o-=c);break;case R:h&&(e=s/i),a+=s,c+=e,a<0&&c<0?(t=I,a=-a,c=-c,r-=a,o-=c):a<0?(t=_,a=-a,r-=a):c<0&&(t=S,c=-c,o-=c);break;case _:h&&(e=-s/i),r+=s,a-=s,c+=e,a<0&&c<0?(t=S,a=-a,c=-c,r-=a,o-=c):a<0?(t=R,a=-a,r-=a):c<0&&(t=I,c=-c,o-=c)}return n&&n.$setAction(t),this.$change(r,o,a,c)}$zoom(t,s,e){if(!this.zoomable||0===t)return this;t<0?t=1/(1-t):t+=1;const{width:i,height:h}=this,n=i*t,r=h*t;let o=this.x,a=this.y;return V(s)&&V(e)?(o-=(s-this.x)/i*(n-i),a-=(e-this.y)/h*(r-h)):(o-=(n-i)/2,a-=(r-h)/2),this.$change(o,a,n,r)}$change(t,s,e=this.width,i=this.height,h=this.aspectRatio,n=!1){return this.$changing||!V(t)||!V(s)||!V(e)||!V(i)||e<0||i<0?this:(Z(h)&&({width:e,height:i}=ft({aspectRatio:h,width:e,height:i},"cover")),this.precise||(t=Math.round(t),s=Math.round(s),e=Math.round(e),i=Math.round(i)),t===this.x&&s===this.y&&e===this.width&&i===this.height&&Object.is(h,this.aspectRatio)&&!n?this:(this.hidden&&(this.hidden=!1),!1===this.$emit(q,{x:t,y:s,width:e,height:i})?this:(this.$changing=!0,this.x=t,this.y=s,this.width=e,this.height=i,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:s,width:e,height:i}=this.$initialSelection;return this.$change(t,s,e,i)}$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,e)=>{if(!this.isConnected)return void e(Error("The current element is not connected to the DOM."));const i=document.createElement("canvas");let{width:h,height:n}=this,r=1;if(Q(t)&&(Z(t.width)||Z(t.height))&&(({width:h,height:n}=ft({aspectRatio:h/n,width:t.width,height:t.height})),r=h/this.width),i.width=h,i.height=n,!this.$canvas)return void s(i);const o=this.$canvas.querySelector(this.$getTagNameOf(w));o?o.$ready().then((e=>{const a=i.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,k=e.naturalWidth,$=e.naturalHeight;1!==r&&(w*=r,v*=r,k*=r,$*=r);const y=k/2,x=$/2;a.fillStyle="transparent",a.fillRect(0,0,h,n),Q(t)&&tt(t.beforeDraw)&&t.beforeDraw.call(this,a,i),a.save(),a.translate(y,x),a.transform(s,c,l,d,w,v),a.translate(-y,-x),a.drawImage(e,0,0,k,$),a.restore()}s(i)})).catch(e):s(i)}))}}It.$name=v,It.$version="2.0.0";class Rt extends zt{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,e){Object.is(e,s)||(super.$propertyChangedCallback(t,s,e),"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))}}Rt.$name=f,Rt.$version="2.0.0";class _t extends zt{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"])}}_t.$name=m,_t.$version="2.0.0";const Nt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Pt=new WeakMap,Wt="vertical";class Dt extends zt{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=Wt,this.selection="",this.slottable=!1}set $image(t){Xt.set(this,t)}get $image(){return Xt.get(this)}set $sourceImage(t){Pt.set(this,t)}get $sourceImage(){return Pt.get(this)}set $canvas(t){Nt.set(this,t)}get $canvas(){return Nt.get(this)}set $selection(t){Yt.set(this,t)}get $selection(){return Yt.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(v)),st(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),at(t,q,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(b));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(w));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),at(t.$image,D,this.$onSourceImageLoad),at(t,B,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;t&&this.$onSelectionChange&&(ot(t,q,this.$onSelectionChange),this.$onSelectionChange=null),s&&this.$onSourceImageLoad&&(ot(s.$image,D,this.$onSourceImageLoad),this.$onSourceImageLoad=null),s&&this.$onSourceImageTransform&&(ot(s,B,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this,e=t.getAttribute("src"),i=s.getAttribute("src");i&&i!==e&&(t.setAttribute("src",i),t.$ready((()=>{setTimeout((()=>{this.$render()}),50)})))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,s){const{$canvas:e,$selection:i}=this;t||i.hidden||(t=i),(!t||0===t.x&&0===t.y&&0===t.width&&0===t.height)&&(t={x:0,y:0,width:e.offsetWidth,height:e.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 Wt: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,e){const{$image:i,$scale:h,$sourceImage:n}=this;if(n&&i&&h>=0){const[n,r,o,a,c,l]=t,d=(s*a-o*e)/(n*a-o*r),u=(e*n-r*s)/(n*a-o*r),p=n*d+o*u+c,b=r*d+a*u+l;i.$ready((t=>{this.$setStyles.call(i,{width:t.naturalWidth*h,height:t.naturalHeight*h})})),i.$setTransform(n,r,o,a,p*h,b*h)}}}Dt.$name=$,Dt.$version="2.0.0",
|
|
2
2
|
/*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */
|
|
3
|
-
Mt.$define(),_t.$define(),Rt.$define(),Ot.$define(),jt.$define(),It.$define(),
|
|
3
|
+
Mt.$define(),_t.$define(),Rt.$define(),Ot.$define(),jt.$define(),It.$define(),Tt.$define(),Dt.$define();const Lt=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=e(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"===r.theme?"rgba(70, 75, 84, 0.5)":"rgba(255, 255, 255, 0.5)";return i(n,{key:"dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7"},this._loaded&&i("cropper-canvas",{key:"cb359d80b35eae4aa2e58c75bed8ccd5a15b2df2",class:"h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200",onAction:()=>this._onAction()},i("cropper-image",{key:"8a96ad1f1f11adc4a8291a1376f329af52c3d920",alt:"Picture",crossorigin:"anonymous",ref:t=>this._setImageRef(t),src:this.value,scalable:!0,translatable:!0}),i("cropper-shade",{key:"1b375fe73b98ec31776ba4762e10781a1c33117b",class:"aspect-branding rounded-full","theme-color":t,hidden:!0}),i("cropper-selection",{key:"ae41c83bf91f714beb89b79998c2636ffe837f51","aspect-ratio":"1","initial-coverage":"0.7",ref:t=>this._selectionRef=t}),i("cropper-handle",{key:"45148a814f6b3d1f04e94c0a8ee756b31d6dc7cb",action:"move",plain:!0})),i("p-range",{key:"b215e5dfc3aea8cae98d85dc590436a52c667c28",class:"w-full px-14 tablet:max-w-xs tablet:px-1",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,e=!0){const i=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,i[4],i[5]]),s&&this._imageRef.$center(),e&&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(),e=t/100*(this._maxScale-this._minScale);e!==s[0]&&(this._setScale(e+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)}static get style(){return".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))}"}},[513,"p-cropper",{value:[1],returnType:[1,"return-type"],_loaded:[32],_currentScale:[32]},[[9,"resize","onResize"]]]),Ft=Lt,Ht=function(){"undefined"!=typeof customElements&&["p-cropper","p-icon","p-range"].forEach((t=>{switch(t){case"p-cropper":customElements.get(h(t))||customElements.define(h(t),Lt);break;case"p-icon":customElements.get(h(t))||o();break;case"p-range":customElements.get(h(t))||a()}}))};export{Ft as PCropper,Ht as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as a,h as i,t as n}from"./p-mR4MYqqI.js";import{c as r}from"./p-CBWjHURv.js";import{T as o}from"./p-C1fCuFhI.js";import{P as s,a as p}from"./p-CEaB2BT0.js";import{d}from"./p-
|
|
1
|
+
import{p as t,H as e,c as a,h as i,t as n}from"./p-mR4MYqqI.js";import{c as r}from"./p-CBWjHURv.js";import{T as o}from"./p-C1fCuFhI.js";import{P as s,a as p}from"./p-CEaB2BT0.js";import{d}from"./p-DCkiUXJN.js";import{d as c}from"./p-DuNvWVbF.js";import{d as m}from"./p-CQaFushj.js";import{d as g}from"./p-TQjQ8aZG.js";import{d as f}from"./p-Cmsf0PX2.js";import{d as h}from"./p-QVPuIpXI.js";import{d as l}from"./p-KIL5rYXr.js";import{d as w}from"./p-CzT4TxMT.js";import{d as u}from"./p-CJ7RtC-a.js";import{d as b}from"./p-CCpo87pH.js";import{d as v}from"./p--JxtpGtF.js";import{d as k}from"./p-D6xsDoHI.js";import{d as y}from"./p-CGMitCrO.js";import{d as z}from"./p-D5_UJJpn.js";import{d as P}from"./p-Bsz5wpvX.js";import{d as j}from"./p-Pk4ZTsZ4.js";const C=r(["justify-center relative","w-full px-6","after:absolute after:top-0 after:left-0 after:z-[0]","after:w-full after:h-full after:transition-opacity","after:bg-gradient-to-t after:from-white dark:after:from-hurricane-700 after:via-white/80 dark:after:via-hurricane-700/80 after:to-transparent"],{variants:{pinned:{false:"after:opacity-0",true:"after:opacity-100"},hidden:{false:"flex",true:"hidden"},tableHeaderHasAction:{true:"pt-8 pb-20 desktop-xs:py-8",false:"py-8"}}}),x=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pageChange=a(this,"pageChange",3),this.pageSizeChange=a(this,"pageSizeChange",3),this.hiddenChange=a(this,"hiddenChange",3)}enablePaginationSize=!0;enablePaginationPages=!0;loading=!1;page=1;total;pageChange;pageSize=s;pageSizeOptions=p;tableHeaderHasAction=!1;pageSizeChange;hiddenChange;hideOnSinglePage=!0;get _el(){return this}_isPinned=!1;_hasPaginationPages=!0;_hidePageSizeSelect=!1;_hidden=!1;_renderCheckTimeout;componentWillRender(){this._hidePageSizeSelect=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];const t=this._hidePageSizeSelect&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages;t!==this._hidden&&(this._hidden=t,this.hiddenChange.emit(t))}componentDidRender(){this._renderCheckTimeout&&(clearTimeout(this._renderCheckTimeout),this._renderCheckTimeout=null),this._renderCheckTimeout=setTimeout((()=>this._checkStuck()),200)}render(){return i(o,{key:"b5ab268371811514f930f44fedea65da21cd6cae"},i("div",{key:"a98c709cc02b6b15fc7923520921f35d577ce78f",class:C({pinned:this._isPinned,hidden:this._hidden,tableHeaderHasAction:this.tableHeaderHasAction})},(this.enablePaginationPages||this.enablePaginationSize)&&this.total>0&&i("p-pagination",{key:"9bbe8d8de8dce310f2799829469b6826642aa295",class:"z-[2]",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,total:this.total,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this._changePageSize(t),onPagesChange:({detail:t})=>this._hasPaginationPages=t>1})))}_changePageSize(t){t&&(this.pageSize=t,this.pageSizeChange.emit(this.pageSize))}_checkStuck(){const t=this._el.getBoundingClientRect(),e=this._el.closest("p-modal"),a=document.querySelector("p-layout");if(e){const t=e.shadowRoot.querySelector("p-modal-body").shadowRoot.querySelector("div"),a=getComputedStyle(t),i=Number.parseInt(a.paddingBottom,10);this._el.style.bottom=`-${i}px`,this._el.style.marginBottom=`-${i-1}px`}if(a&&!e){const t=a.shadowRoot.querySelector(".content"),e=getComputedStyle(t),i=Number.parseInt(e.paddingBottom,10);this._el.style.bottom=`-${i}px`,this._el.style.marginBottom=`-${i-1}px`}this._isPinned=window.innerHeight-t.bottom==0}onScroll(){this._checkStuck()}static get style(){return'.sticky{position:sticky}.z-\\[1\\]{z-index:1}*{box-sizing:border-box}:host{--tw-content:"";position:sticky;z-index:1}.static{position:static}.relative{position:relative}.z-\\[2\\]{z-index:2}.flex{display:flex}.table{display:table}.hidden{display:none}.w-full{width:100%}.justify-center{justify-content:center}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-20{padding-bottom:5rem}.pt-8{padding-top:2rem}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-0:after{content:var(--tw-content);left:0}.after\\:top-0:after{content:var(--tw-content);top:0}.after\\:z-\\[0\\]:after{content:var(--tw-content);z-index:0}.after\\:h-full:after{content:var(--tw-content);height:100%}.after\\:w-full:after{content:var(--tw-content);width:100%}.after\\:bg-gradient-to-t:after{background-image:linear-gradient(to top,var(--tw-gradient-stops));content:var(--tw-content)}.after\\:from-white:after{--tw-gradient-from:#fff var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.after\\:via-white\\/80:after{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}.after\\:to-transparent:after{--tw-gradient-to:transparent var(--tw-gradient-to-position);content:var(--tw-content)}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:64rem){.desktop-xs\\:py-8{padding-bottom:2rem;padding-top:2rem}}.dark\\:after\\:from-hurricane-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-gradient-from:#232934 var(--tw-gradient-from-position);--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:via-hurricane-700\\/80:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(35,41,52,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:from-hurricane-700:where([data-theme=dark],[data-theme=dark] *):after{--tw-gradient-from:#232934 var(--tw-gradient-from-position);--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);content:var(--tw-content)}.dark\\:after\\:via-hurricane-700\\/80:where([data-theme=dark],[data-theme=dark] *):after{--tw-gradient-to:rgba(35,41,52,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(35,41,52,.8) var(--tw-gradient-via-position),var(--tw-gradient-to);content:var(--tw-content)}'}},[513,"p-table-footer",{enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],loading:[4],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],tableHeaderHasAction:[4,"table-header-has-action"],hideOnSinglePage:[4,"hide-on-single-page"],_isPinned:[32],_hasPaginationPages:[32]},[[9,"scroll","onScroll"]]]);function S(){"undefined"!=typeof customElements&&["p-table-footer","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-tooltip"].forEach((t=>{switch(t){case"p-table-footer":customElements.get(n(t))||customElements.define(n(t),x);break;case"p-button":customElements.get(n(t))||d();break;case"p-checkbox":customElements.get(n(t))||c();break;case"p-divider":customElements.get(n(t))||m();break;case"p-dropdown":customElements.get(n(t))||g();break;case"p-dropdown-menu-container":customElements.get(n(t))||f();break;case"p-dropdown-menu-item":customElements.get(n(t))||h();break;case"p-field":customElements.get(n(t))||l();break;case"p-field-container":customElements.get(n(t))||w();break;case"p-helper":customElements.get(n(t))||u();break;case"p-icon":customElements.get(n(t))||b();break;case"p-loader":customElements.get(n(t))||v();break;case"p-pagination":customElements.get(n(t))||k();break;case"p-pagination-pages":customElements.get(n(t))||y();break;case"p-pagination-pages-item":customElements.get(n(t))||z();break;case"p-pagination-size":customElements.get(n(t))||P();break;case"p-tooltip":customElements.get(n(t))||j()}}))}export{x as T,S as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as i,h as a,t as s}from"./p-mR4MYqqI.js";import{a as o,l as n,d as l}from"./p-ZcEew3GF.js";import{s as r}from"./p-C1fCuFhI.js";import{c as d,d as h}from"./p-CNMa-_yN.js";import{a as p}from"./p-C5CTp9IA.js";import{d as c}from"./p-BvUfWfx-.js";import{d as m}from"./p-Cmsf0PX2.js";import{d as u}from"./p-BqgXqvox.js";import{d as b}from"./p-BBpjifjG.js";import{d as y}from"./p-DoDhkUVy.js";import{d as f}from"./p-DfBWP1bt.js";import{d as w}from"./p--JxtpGtF.js";import{d as g}from"./p-2ng-Aose.js";const v=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,k=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[23]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i,D=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return!!v.test(e)||!!k.test(e.slice(0,4))},x=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.valueChange=i(this,"valueChange",3),this._internals=this.attachInternals()}placeholder;value;preselectToday=!1;enableNativePicker=!0;disabledDates;minDate=null;maxDate=null;disableWeekends=!1;enableToday=!0;todayText="today";mode="day";valueChange;format="dd-MM-yyyy";hideIconWhenFilled=!1;size="base";prefix;label;loading=!1;helper;required;showOptional=!0;error;disabled=!1;strategy="absolute";placement="bottom-start";get _el(){return this}_showDropdown=!1;_value;_minDate;_maxDate;_disabledDates=[];_isMobileBrowser=!1;_internals;_onInputTimeout;_inputRef;_dateInputRef;_defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy",dayNoDashes:"ddMMyyyy"};parseValue(e){!e&&this.preselectToday&&(e=new Date),"string"==typeof e&&(e=new Date(e)),this._setValue(e)}parseMinDate(e){null!==e&&""!==e?("string"==typeof e&&(e=new Date(e)),o.isValid(e)&&(this._minDate=e,o.isBefore(this._value,this._minDate)&&this._setValue(null))):this.minDate=new Date(o.getYear(o.subYears(new Date,100)),0,1)}parseMaxDate(e){null!==e&&""!==e?("string"==typeof e&&(e=new Date(e)),o.isValid(e)&&(this._maxDate=e,o.isAfter(this._value,this._maxDate)&&this._setValue(null))):this.maxDate=this._getAutomaticMax()}parseDisabledDates(e){"string"==typeof e&&(e=JSON.parse(e)),e&&Array.isArray(e)&&(this._disabledDates=e.map((e=>"string"==typeof e?new Date(e):e)).filter((e=>o.isValid(e))),this._isDisabledDay(this._value)&&this._setValue(null))}formResetCallback(){this._setValue(null)}formDisabledCallback(e){this._internals.form&&(this.disabled=e)}componentWillLoad(){this.disabledDates&&this.parseDisabledDates(this.disabledDates),this.parseMinDate(this.minDate),this.parseMaxDate(this.maxDate),"day"!==this.mode&&this.format===this._defaultFormats.day&&(this.format=this._defaultFormats[this.mode]),this._isMobileBrowser=D(),this.parseValue(this.value)}render(){return a("p-dropdown",{key:"c65daeff45afabeefa654b8d033a40d9fda5b4e2",allowOverflow:!0,strategy:this.strategy,placement:this.placement,disableTriggerClick:!0,applyMaxWidth:!1,applyFullWidth:!1,insideClick:!0,show:this._showDropdown,isDatepicker:!0},a("p-field",{key:"09aaa8a320e9a1852171aa59054a9b269667addb",slot:"trigger",icon:this.hideIconWhenFilled&&this._value?null:"calendar-multi",iconPosition:"start",size:this.size,prefix:this.prefix,label:this.label,loading:this.loading,helper:this.helper,required:p(this.required),showOptional:p(this.showOptional),error:this.error,forceShowTooltip:!!this.error?.length&&!this._showDropdown,autoShowError:!1,disabled:p(this.disabled),focused:this._showDropdown,value:this._getFormattedDate(),placeholder:this.placeholder,onFocus:()=>this._onFocus(),onBlur:e=>this._onBlur(e),onValueChange:e=>this._onValueChange(e.detail),onInputRefChange:e=>this._inputRef=e.detail}),this.enableNativePicker&&this._isMobileBrowser&&a("input",{key:"f63ca80f15e52a5824a51e997f7b45664104a196",slot:"trigger",type:"day"===this.mode?"date":"month",class:"pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0",onInput:e=>this._onNativeInput(e),ref:e=>this._dateInputRef=e,value:this._value&&o.format(this._value,"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}),min:this._minDate&&o.format(new Date(this._minDate),"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}),max:this.maxDate&&o.format(new Date(this.maxDate),"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS})}),a("div",{key:"f57a7045507cc0bf0bb2ae070258c0d4ed1af81f",tabIndex:-1,slot:"items"},a("p-calendar",{key:"469d4b2a4c2972a0bfb621d85a67fb3d8c3c3e83",variant:"embedded",value:this._value,onValueChange:({detail:e})=>this.value=e,preselectToday:this.preselectToday,disabledDates:this.disabledDates,minDate:this.minDate,maxDate:this.maxDate,disableWeekends:this.disableWeekends,enableToday:this.enableToday,todayText:this.todayText,mode:this.mode})))}documentClickHandler({target:e}){this._showDropdown&&!d(e,this._el)&&(this._showDropdown=!1)}_onFocus(){if(this._isMobileBrowser&&this._dateInputRef)return this._dateInputRef.focus(),this._dateInputRef.showPicker(),void this._inputRef.blur();this._showDropdown=!0}_onBlur(e,t=this.format){if(this._isMobileBrowser&&this._dateInputRef)return;e.relatedTarget&&!d(e.relatedTarget,this._el)&&(this._showDropdown=!1);const i=this._inputRef;if(null===i.value)return;const a=o.parse(i.value,t,new Date);if(a===this._value)return;const s=o.isValid(a);if(!s&&t===this.format&&"day"===this.mode)return this._onBlur(e,this._defaultFormats.dayNoDashes);s&&!this._isDisabledDay(a)?this._setValue(a,!1):i.value=this._getFormattedDate()}_onValueChange(e,t=this.format){this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{if(0===e.length){if(null===this._value)return;return void this._setValue(null)}const i=o.parse(e,t,new Date);o.isValid(i)&&o.format(i,t,{locale:"nl"===r.locale?n.nl:n.enUS})===e?this._setValue(i,!1):"day"===this.mode&&this._onValueChange(e,this._defaultFormats.dayNoDashes)}),300)}_onNativeInput(e){e.target&&(this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{this._setValue(""===e.target.value?null:new Date(e.target.value),!1)})))}_setValue(e,t=!0){if(null===e)return this._value=null,void this.valueChange.emit(null);o.isValid(e)&&(this._isDisabledDay(e)?this._dateInputRef?.value&&(this._dateInputRef.value=this._value?o.format(this._value,"yyyy-MM-dd",{locale:"nl"===r.locale?n.nl:n.enUS}):null):(e="day"===this.mode?o.startOfDay(e):"month"===this.mode?o.startOfMonth(e):o.startOfYear(e),o.isSameDay(e,this._value)||(t&&(this._showDropdown=!1),this._value=e,this.valueChange.emit(e))))}_isDisabledDay(e){return this.disableWeekends&&o.isWeekend(e)||o.isBefore(e,this._minDate)&&!o.isSameDay(e,this._minDate)||o.isAfter(e,this._maxDate)&&!o.isSameDay(e,this._maxDate)||this._disabledDates.some((t=>o.isSameDay(t,e)))}_getFormattedDate(){return this._value?o.format(this._value,this.format,{locale:"nl"===r.locale?n.nl:n.enUS}):""}_getAutomaticMax(){const e=o.addYears(new Date,50);let t=o.getYear(e);return t=10*Math.ceil(t/10),o.setYear(e,t)}static get formAssociated(){return!0}static get watchers(){return{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}}static get style(){return"*{box-sizing:border-box}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.z-\\[-10\\]{z-index:-10}.overflow-hidden{overflow:hidden}.opacity-0{opacity:0}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[576,"p-datepicker",{placeholder:[1],value:[1],preselectToday:[4,"preselect-today"],enableNativePicker:[4,"enable-native-picker"],disabledDates:[1,"disabled-dates"],minDate:[1,"min-date"],maxDate:[1,"max-date"],disableWeekends:[4,"disable-weekends"],enableToday:[4,"enable-today"],todayText:[1,"today-text"],mode:[1],format:[1],hideIconWhenFilled:[4,"hide-icon-when-filled"],size:[1],prefix:[1],label:[1],loading:[4],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],strategy:[1],placement:[513],_showDropdown:[32],_value:[32],_minDate:[32],_maxDate:[32],_disabledDates:[32],_isMobileBrowser:[32]},[[6,"click","documentClickHandler"]],{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}]),_=x,M=function(){"undefined"!=typeof customElements&&["p-datepicker","p-button","p-calendar","p-dropdown","p-dropdown-menu-container","p-field","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-datepicker":customElements.get(s(e))||customElements.define(s(e),x);break;case"p-button":customElements.get(s(e))||c();break;case"p-calendar":customElements.get(s(e))||l();break;case"p-dropdown":customElements.get(s(e))||h();break;case"p-dropdown-menu-container":customElements.get(s(e))||m();break;case"p-field":customElements.get(s(e))||u();break;case"p-field-container":customElements.get(s(e))||b();break;case"p-helper":customElements.get(s(e))||y();break;case"p-icon":customElements.get(s(e))||f();break;case"p-loader":customElements.get(s(e))||w();break;case"p-tooltip":customElements.get(s(e))||g()}}))};export{_ as PDatepicker,M as defineCustomElement,D as i}
|
|
1
|
+
import{p as e,H as t,c as i,h as a,t as s}from"./p-mR4MYqqI.js";import{a as o,l as n,d as r}from"./p-CWRAbDh-.js";import{s as l}from"./p-C1fCuFhI.js";import{c as d,d as h}from"./p-TQjQ8aZG.js";import{a as p}from"./p-C5CTp9IA.js";import{d as c}from"./p-DCkiUXJN.js";import{d as m}from"./p-Cmsf0PX2.js";import{d as u}from"./p-KIL5rYXr.js";import{d as b}from"./p-CzT4TxMT.js";import{d as y}from"./p-CJ7RtC-a.js";import{d as f}from"./p-CCpo87pH.js";import{d as w}from"./p--JxtpGtF.js";import{d as g}from"./p-Pk4ZTsZ4.js";const v=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,k=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[23]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i,D=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return!!v.test(e)||!!k.test(e.slice(0,4))},x=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.valueChange=i(this,"valueChange",3),this._internals=this.attachInternals()}placeholder;value;preselectToday=!1;enableNativePicker=!0;disabledDates;minDate=null;maxDate=null;disableWeekends=!1;enableToday=!0;todayText="today";mode="day";valueChange;format="dd-MM-yyyy";hideIconWhenFilled=!1;size="base";prefix;label;loading=!1;helper;required;showOptional=!0;error;disabled=!1;strategy="absolute";placement="bottom-start";get _el(){return this}_showDropdown=!1;_value;_minDate;_maxDate;_disabledDates=[];_isMobileBrowser=!1;_internals;_onInputTimeout;_inputRef;_dateInputRef;_defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy",dayNoDashes:"ddMMyyyy"};parseValue(e){!e&&this.preselectToday&&(e=new Date),"string"==typeof e&&(e=new Date(e)),this._setValue(e)}parseMinDate(e){null!==e&&""!==e?("string"==typeof e&&(e=new Date(e)),o.isValid(e)&&(this._minDate=e,o.isBefore(this._value,this._minDate)&&this._setValue(null))):this.minDate=new Date(o.getYear(o.subYears(new Date,100)),0,1)}parseMaxDate(e){null!==e&&""!==e?("string"==typeof e&&(e=new Date(e)),o.isValid(e)&&(this._maxDate=e,o.isAfter(this._value,this._maxDate)&&this._setValue(null))):this.maxDate=this._getAutomaticMax()}parseDisabledDates(e){"string"==typeof e&&(e=JSON.parse(e)),e&&Array.isArray(e)&&(this._disabledDates=e.map((e=>"string"==typeof e?new Date(e):e)).filter((e=>o.isValid(e))),this._isDisabledDay(this._value)&&this._setValue(null))}formResetCallback(){this._setValue(null)}formDisabledCallback(e){this._internals.form&&(this.disabled=e)}componentWillLoad(){this.disabledDates&&this.parseDisabledDates(this.disabledDates),this.parseMinDate(this.minDate),this.parseMaxDate(this.maxDate),"day"!==this.mode&&this.format===this._defaultFormats.day&&(this.format=this._defaultFormats[this.mode]),this._isMobileBrowser=D(),this.parseValue(this.value)}render(){return a("p-dropdown",{key:"c65daeff45afabeefa654b8d033a40d9fda5b4e2",allowOverflow:!0,applyFullWidth:!1,applyMaxWidth:!1,disableTriggerClick:!0,insideClick:!0,isDatepicker:!0,placement:this.placement,show:this._showDropdown,strategy:this.strategy},a("p-field",{key:"09aaa8a320e9a1852171aa59054a9b269667addb",autoShowError:!1,disabled:p(this.disabled),error:this.error,focused:this._showDropdown,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,icon:this.hideIconWhenFilled&&this._value?null:"calendar-multi",iconPosition:"start",label:this.label,loading:this.loading,placeholder:this.placeholder,prefix:this.prefix,required:p(this.required),showOptional:p(this.showOptional),size:this.size,slot:"trigger",value:this._getFormattedDate(),onBlur:e=>this._onBlur(e),onFocus:()=>this._onFocus(),onInputRefChange:e=>this._inputRef=e.detail,onValueChange:e=>this._onValueChange(e.detail)}),this.enableNativePicker&&this._isMobileBrowser&&a("input",{key:"f63ca80f15e52a5824a51e997f7b45664104a196",class:"pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0",max:this.maxDate&&o.format(new Date(this.maxDate),"yyyy-MM-dd",{locale:"nl"===l.locale?n.nl:n.enUS}),min:this._minDate&&o.format(new Date(this._minDate),"yyyy-MM-dd",{locale:"nl"===l.locale?n.nl:n.enUS}),ref:e=>this._dateInputRef=e,slot:"trigger",type:"day"===this.mode?"date":"month",value:this._value&&o.format(this._value,"yyyy-MM-dd",{locale:"nl"===l.locale?n.nl:n.enUS}),onInput:e=>this._onNativeInput(e)}),a("div",{key:"f57a7045507cc0bf0bb2ae070258c0d4ed1af81f",slot:"items",tabIndex:-1},a("p-calendar",{key:"469d4b2a4c2972a0bfb621d85a67fb3d8c3c3e83",disableWeekends:this.disableWeekends,disabledDates:this.disabledDates,enableToday:this.enableToday,maxDate:this.maxDate,minDate:this.minDate,mode:this.mode,preselectToday:this.preselectToday,todayText:this.todayText,value:this._value,variant:"embedded",onValueChange:({detail:e})=>this.value=e})))}documentClickHandler({target:e}){this._showDropdown&&!d(e,this._el)&&(this._showDropdown=!1)}_onFocus(){if(this._isMobileBrowser&&this._dateInputRef)return this._dateInputRef.focus(),this._dateInputRef.showPicker(),void this._inputRef.blur();this._showDropdown=!0}_onBlur(e,t=this.format){if(this._isMobileBrowser&&this._dateInputRef)return;e.relatedTarget&&!d(e.relatedTarget,this._el)&&(this._showDropdown=!1);const i=this._inputRef;if(null===i.value)return;const a=o.parse(i.value,t,new Date);if(a===this._value)return;const s=o.isValid(a);if(!s&&t===this.format&&"day"===this.mode)return this._onBlur(e,this._defaultFormats.dayNoDashes);s&&!this._isDisabledDay(a)?this._setValue(a,!1):i.value=this._getFormattedDate()}_onValueChange(e,t=this.format){this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{if(0===e.length){if(null===this._value)return;return void this._setValue(null)}const i=o.parse(e,t,new Date);o.isValid(i)&&o.format(i,t,{locale:"nl"===l.locale?n.nl:n.enUS})===e?this._setValue(i,!1):"day"===this.mode&&this._onValueChange(e,this._defaultFormats.dayNoDashes)}),300)}_onNativeInput(e){e.target&&(this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{this._setValue(""===e.target.value?null:new Date(e.target.value),!1)})))}_setValue(e,t=!0){if(null===e)return this._value=null,void this.valueChange.emit(null);o.isValid(e)&&(this._isDisabledDay(e)?this._dateInputRef?.value&&(this._dateInputRef.value=this._value?o.format(this._value,"yyyy-MM-dd",{locale:"nl"===l.locale?n.nl:n.enUS}):null):(e="day"===this.mode?o.startOfDay(e):"month"===this.mode?o.startOfMonth(e):o.startOfYear(e),o.isSameDay(e,this._value)||(t&&(this._showDropdown=!1),this._value=e,this.valueChange.emit(e))))}_isDisabledDay(e){return this.disableWeekends&&o.isWeekend(e)||o.isBefore(e,this._minDate)&&!o.isSameDay(e,this._minDate)||o.isAfter(e,this._maxDate)&&!o.isSameDay(e,this._maxDate)||this._disabledDates.some((t=>o.isSameDay(t,e)))}_getFormattedDate(){return this._value?o.format(this._value,this.format,{locale:"nl"===l.locale?n.nl:n.enUS}):""}_getAutomaticMax(){const e=o.addYears(new Date,50);let t=o.getYear(e);return t=10*Math.ceil(t/10),o.setYear(e,t)}static get formAssociated(){return!0}static get watchers(){return{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}}static get style(){return"*{box-sizing:border-box}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.z-\\[-10\\]{z-index:-10}.overflow-hidden{overflow:hidden}.opacity-0{opacity:0}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}"}},[576,"p-datepicker",{placeholder:[1],value:[1],preselectToday:[4,"preselect-today"],enableNativePicker:[4,"enable-native-picker"],disabledDates:[1,"disabled-dates"],minDate:[1,"min-date"],maxDate:[1,"max-date"],disableWeekends:[4,"disable-weekends"],enableToday:[4,"enable-today"],todayText:[1,"today-text"],mode:[1],format:[1],hideIconWhenFilled:[4,"hide-icon-when-filled"],size:[1],prefix:[1],label:[1],loading:[4],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],strategy:[1],placement:[513],_showDropdown:[32],_value:[32],_minDate:[32],_maxDate:[32],_disabledDates:[32],_isMobileBrowser:[32]},[[6,"click","documentClickHandler"]],{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}]),_=x,M=function(){"undefined"!=typeof customElements&&["p-datepicker","p-button","p-calendar","p-dropdown","p-dropdown-menu-container","p-field","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-datepicker":customElements.get(s(e))||customElements.define(s(e),x);break;case"p-button":customElements.get(s(e))||c();break;case"p-calendar":customElements.get(s(e))||r();break;case"p-dropdown":customElements.get(s(e))||h();break;case"p-dropdown-menu-container":customElements.get(s(e))||m();break;case"p-field":customElements.get(s(e))||u();break;case"p-field-container":customElements.get(s(e))||b();break;case"p-helper":customElements.get(s(e))||y();break;case"p-icon":customElements.get(s(e))||f();break;case"p-loader":customElements.get(s(e))||w();break;case"p-tooltip":customElements.get(s(e))||g()}}))};export{_ as PDatepicker,M as defineCustomElement,D as i}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-CVCCA4eY.js";const p=o,r=s;export{p as PDrawerHeader,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as s,c as r,h as t,t as o}from"./p-mR4MYqqI.js";import{d as a}from"./p-DM8w1S9L.js";import{d as l}from"./p-
|
|
1
|
+
import{p as e,H as s,c as r,h as t,t as o}from"./p-mR4MYqqI.js";import{d as a}from"./p-DM8w1S9L.js";import{d as l}from"./p-DCkiUXJN.js";import{d as c}from"./p-Ml3Ytiv7.js";import{d as i}from"./p-DCq0eMpP.js";import{d as n}from"./p-CVCCA4eY.js";import{d as p}from"./p-CCpo87pH.js";import{d}from"./p--JxtpGtF.js";import{d as h}from"./p-B0_4fWrY.js";const m=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closeClicked=r(this,"closeClicked",3),this.closed=r(this,"closed",3)}header;show=!1;applyBlur=!1;showClose=!0;backdropClickClose=!0;canClose=!0;scrollLock=!0;closeClicked;closed;get _el(){return this}_hasHeaderSlot=!1;_closing=!1;componentWillLoad(){this._hasHeaderSlot=!!this._el.querySelector(':scope > [slot="header"]')}render(){if(!this.show)return;const e=t("slot",{name:"header"}),s=t("slot",{name:"content"});return t("p-backdrop",{applyBlur:this.applyBlur,closing:this._closing,scrollLock:this.scrollLock,variant:"drawer",onClicked:e=>this._backdropClick(e.detail)},t("p-drawer-container",{closing:this._closing},(this.header?.length||this._hasHeaderSlot)&&t("p-drawer-header",{"show-close":this.showClose,onClose:e=>this.close(e.detail,"close")},this._hasHeaderSlot?e:this.header),t("p-drawer-body",null,s)))}_backdropClick(e){this.backdropClickClose&&(this._findDrawer(e.target)||this.close(e,"backdrop"))}_findDrawer(e){return e?"p-drawer-container"===e.nodeName.toLowerCase()?e:"p-backdrop"===e?.nodeName?.toLowerCase()?null:this._findDrawer(e?.parentElement):null}close(e,s="unknown",r=!1){(r||(this.closeClicked.emit({event:e,canClose:this.canClose,source:s}),this.canClose))&&(this._closing=!0,setTimeout((()=>{this.show=!1,this._closing=!1,this.closed.emit()}),250))}handleCloseDrawer(){this.close(null,"event")}handleForceCloseDrawer(){this.close(null,"event",!0)}static get style(){return"*{box-sizing:border-box}.static{position:static}.blur{--tw-blur:blur(8px);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)}"}},[769,"p-drawer",{header:[1],show:[4],applyBlur:[4,"apply-blur"],showClose:[4,"show-close"],backdropClickClose:[4,"backdrop-click-close"],canClose:[4,"can-close"],scrollLock:[4,"scroll-lock"],_closing:[32]},[[8,"closeDrawer","handleCloseDrawer"],[8,"forceCloseDrawer","handleForceCloseDrawer"]]]),w=m,u=function(){"undefined"!=typeof customElements&&["p-drawer","p-backdrop","p-button","p-drawer-body","p-drawer-container","p-drawer-header","p-icon","p-loader","p-smile"].forEach((e=>{switch(e){case"p-drawer":customElements.get(o(e))||customElements.define(o(e),m);break;case"p-backdrop":customElements.get(o(e))||a();break;case"p-button":customElements.get(o(e))||l();break;case"p-drawer-body":customElements.get(o(e))||c();break;case"p-drawer-container":customElements.get(o(e))||i();break;case"p-drawer-header":customElements.get(o(e))||n();break;case"p-icon":customElements.get(o(e))||p();break;case"p-loader":customElements.get(o(e))||d();break;case"p-smile":customElements.get(o(e))||h()}}))};export{w as PDrawer,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as o,d as p}from"./p-QVPuIpXI.js";const s=o,r=p;export{s as PDropdownMenuItem,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-TQjQ8aZG.js";const a=o,p=s;export{a as PDropdown,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as o,d as
|
|
1
|
+
import{E as o,d as s}from"./p-CGMb-Zik.js";const p=o,r=s;export{p as PEmptyState,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as o,d as
|
|
1
|
+
import{F as o,d as s}from"./p-CzT4TxMT.js";const p=o,r=s;export{p as PFieldContainer,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as
|
|
1
|
+
import{F as r,d as o}from"./p-KIL5rYXr.js";const s=r,p=o;export{s as PField,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as o,d as s}from"./p-
|
|
1
|
+
import{F as o,d as s}from"./p-Dxh5RZDW.js";const p=o,r=s;export{p as PFloatingMenuContainer,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as o,d as s}from"./p-
|
|
1
|
+
import{F as o,d as s}from"./p-C4QFnooj.js";const p=o,r=s;export{p as PFloatingMenuItem,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as o,d as s}from"./p-
|
|
1
|
+
import{H as o,d as s}from"./p-CJ7RtC-a.js";const t=o,a=s;export{t as PHelper,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as o,d as
|
|
1
|
+
import{I as o,d as p}from"./p-CCpo87pH.js";const s=o,r=p;export{s as PIcon,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as a,h as r,t as o}from"./p-mR4MYqqI.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-C1fCuFhI.js";import{d as h}from"./p-
|
|
1
|
+
import{p as t,H as e,c as a,h as r,t as o}from"./p-mR4MYqqI.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-C1fCuFhI.js";import{d as h}from"./p-CCpo87pH.js";const c=i(["flex flex-col gap-1","w-full h-inherit px-4 py-3","rounded-lg relative"],{variants:{closeAble:{true:"pr-10"},variant:{neutral:"bg-indigo-100 dark:bg-indigo-300/15",positive:"bg-positive-green-100 dark:bg-positive-green-alternative/15",biased:"bg-amber-50 dark:bg-amber-alternative/15",negative:"bg-negative-red-100 dark:bg-negative-red-alternative/15",feedback:"bg-white-700 dark:bg-hurricane-100/15"}}}),n=i("text-sm font-medium",{variants:{variant:{neutral:"text-indigo-900 dark:text-indigo-400",positive:"text-positive-green-800 dark:text-positive-green-alternative",biased:"text-amber-800 dark:text-amber-alternative",negative:"text-negative-red-800 dark:text-negative-red-alternative",feedback:"text-storm-800 dark:text-hurricane-100"}}}),s=i(["absolute right-2 top-2","flex items-center justify-center","rounded-lg cursor-pointer","text-storm-800/60 hover:text-storm-800/60 hover:bg-white-500/40","dark:text-white/60 dark:hover:text-white dark:hover:bg-white/15","h-6 w-6"]),g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closed=a(this,"closed",3)}variant="feedback";header;content;closeable=!1;closed;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]');return r(d,{key:"ee4ad5cee3c5afb9a0a544abde2cbf8fb87e2e2d"},r("div",{key:"3f6cd689581f8d8bfd317471c5c5e357f93e45ee",class:c({variant:this.variant,closeAble:this.closeable})},(this.header?.length||t)&&r("div",{key:"7aa48cabaab62a1fbc1ac2c905b3ccacfa46b652",class:n({variant:this.variant})},this.header?.length?r("p",{class:"my-0"},this.header):r("slot",{name:"header"})),(this.content?.length||e)&&r("div",{key:"113ae3891146ed67557b04f62211c4caff13e3c2",class:"h-inherit text-sm font-normal text-storm-800/60 dark:text-white/70"},this.content?.length?r("p",{class:"my-0"},this.content):r("slot",{name:"content"})),this.closeable&&r("div",{key:"e05451026aa39bb7584c52bd10397e6706b62b26",class:s(),onClick:()=>this._close()},r("p-icon",{key:"b030dd77f43543ad6805112a2ef9b23c7363cb26",variant:"negative"}))))}_close(){this.closed.emit(),this._el.remove()}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/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))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pr-10{padding-right:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.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))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.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\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.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\\: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))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.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))}"}},[769,"p-info-panel",{variant:[1],header:[1],content:[1],closeable:[4]}]),b=g,l=function(){"undefined"!=typeof customElements&&["p-info-panel","p-icon"].forEach((t=>{switch(t){case"p-info-panel":customElements.get(o(t))||customElements.define(o(t),g);break;case"p-icon":customElements.get(o(t))||h()}}))};export{b as PInfoPanel,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as a,t as r}from"./p-mR4MYqqI.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-C1fCuFhI.js";import{c as d}from"./p-xs4N_Y-0.js";import{d as n}from"./p-
|
|
1
|
+
import{p as t,H as e,h as a,t as r}from"./p-mR4MYqqI.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-C1fCuFhI.js";import{c as d}from"./p-xs4N_Y-0.js";import{d as n}from"./p-CCpo87pH.js";const c=o(["flex items-center justify-center gap-2","h-6 rounded-full"],{variants:{variant:{positive:["bg-positive-green-100 text-positive-green-800","dark:bg-positive-green-alternative/15 dark:text-positive-green-alternative"],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:"p-2 w-6"},keepMobileContent:{false:null,true:null}},compoundVariants:[{keepMobileContent:!1,iconOnly:!1,class:"p-2 w-6 desktop-xs:w-auto desktop-xs:py-0"}]}),s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="neutral";iconOnly=!1;icon;iconFlip;iconRotate;keepMobileContent=!1;render(){return a(i,{key:"53d97bb000a19617372b807e32bc9902758de3b2"},a("div",{key:"4f1c2e4b9dd25972a2ab5146234a6166ee71bc27",class:c({variant:this.variant,iconOnly:this.iconOnly,keepMobileContent:this.keepMobileContent})},this.icon&&a("p-icon",{key:"24ec81f74dfeea24990a76edac38ccdc79490e88",class:"flex-shrink-0",flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}),!this.iconOnly&&a("div",{key:"d0b89fc24b7304a8e61e5157bcf4bdae3bdb26ca",class:d("flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium",{hidden:!this.keepMobileContent,"desktop-xs:block":!this.keepMobileContent})},a("slot",{key:"ad87aa170cc6f7980678a1cfc25f5dbdf510127e"}))))}static get style(){return"*{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))}"}},[769,"p-label",{variant:[513],iconOnly:[516,"icon-only"],icon:[513],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],keepMobileContent:[516,"keep-mobile-content"]}]),h=s,l=function(){"undefined"!=typeof customElements&&["p-label","p-icon"].forEach((t=>{switch(t){case"p-label":customElements.get(r(t))||customElements.define(r(t),s);break;case"p-icon":customElements.get(r(t))||n()}}))};export{h as PLabel,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,t as a}from"./p-mR4MYqqI.js";import{T as o}from"./p-C1fCuFhI.js";import{d as s}from"./p-
|
|
1
|
+
import{p as t,H as e,h as i,t as a}from"./p-mR4MYqqI.js";import{T as o}from"./p-C1fCuFhI.js";import{d as s}from"./p-CCpo87pH.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}icon="placeholder";render(){return i(o,{key:"e2b07cadde155cc5f8e89c305001f60d6f59ae30"},i("div",{key:"19cc7bd70f7db7a95dfca67a5ad95ba80dc30228",class:"flex items-center gap-2 text-storm-500 dark:text-white"},i("p-icon",{key:"45d2060debccfa81b61b08f72426b908124c3288",variant:this.icon}),i("div",{key:"0b71a178319947208668f96e2598f09e17dd62d6",class:"flex min-w-0 flex-1 flex-col text-sm font-medium"},i("slot",{key:"8531f5b5ab3af0ba370733876465ea140e50b311"}))))}static get style(){return"*{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))}"}},[769,"p-listing-item",{icon:[1]}]),r=c,m=function(){"undefined"!=typeof customElements&&["p-listing-item","p-icon"].forEach((t=>{switch(t){case"p-listing-item":customElements.get(a(t))||customElements.define(a(t),c);break;case"p-icon":customElements.get(a(t))||s()}}))};export{r as PListingItem,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as o,d as s}from"./p-
|
|
1
|
+
import{M as o,d as s}from"./p-CLQglqfD.js";const p=o,r=s;export{p as PModalHeader,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,H as s,c as e,h as t,t as l}from"./p-mR4MYqqI.js";import{d as a}from"./p-DM8w1S9L.js";import{d as r}from"./p-
|
|
1
|
+
import{p as o,H as s,c as e,h as t,t as l}from"./p-mR4MYqqI.js";import{d as a}from"./p-DM8w1S9L.js";import{d as r}from"./p-DCkiUXJN.js";import{d as i}from"./p-CQaFushj.js";import{d as p}from"./p-CCpo87pH.js";import{d as c}from"./p--JxtpGtF.js";import{d as m}from"./p-CpaA1Iq7.js";import{d}from"./p-hBh42vsk.js";import{d as h}from"./p-CpnSfiGo.js";import{d as n}from"./p-CLQglqfD.js";import{d as u}from"./p-B0_4fWrY.js";const k=o(class extends s{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.closeClicked=e(this,"closeClicked",3),this.closed=e(this,"closed",3)}size="base";header;show=!1;applyBlur=!1;showClose=!0;showMobileFooter=!1;backdropClickClose=!0;scrollLock=!0;closeClicked;closed;get _el(){return this}_hasFooterSlot=!1;_hasHeaderSlot=!1;_closing=!1;componentWillLoad(){this._hasFooterSlot=!!this._el.querySelector(':scope > [slot="footer"]'),this._hasHeaderSlot=!!this._el.querySelector(':scope > [slot="header"]')}render(){if(!this.show)return;const o=t("slot",{name:"header"}),s=t("slot",{name:"content"}),e=t("slot",{name:"footer"});return t("p-backdrop",{applyBlur:this.applyBlur,closing:this._closing,scrollLock:this.scrollLock,onClicked:o=>this._backdropClick(o.detail)},t("p-modal-container",{closing:this._closing,size:this.size},(this.header?.length||this._hasHeaderSlot)&&t("p-modal-header",{showClose:this.showClose,onClose:o=>this.close("button",o.detail)},this._hasHeaderSlot?o:this.header),t("p-modal-body",{roundedBottom:!this._hasFooterSlot,roundedTop:!this._hasHeaderSlot&&!this.header?.length},s),this._hasFooterSlot&&t("p-modal-footer",null,e)))}_backdropClick(o){this.backdropClickClose&&(this._findModal(o.target)||this.close("backdrop",o))}_findModal(o){return o?"p-modal-container"===o.nodeName.toLowerCase()?o:"p-backdrop"===o?.nodeName?.toLowerCase()?null:this._findModal(o?.parentElement):null}close(o,s){this.closeClicked.emit(s),this._closing=!0,setTimeout((()=>{this.show=!1,this._closing=!1,this.closed.emit(o)}),550)}handleCloseModal(){this.close("event")}},[769,"p-modal",{size:[1],header:[1],show:[4],applyBlur:[4,"apply-blur"],showClose:[4,"show-close"],showMobileFooter:[4,"show-mobile-footer"],backdropClickClose:[4,"backdrop-click-close"],scrollLock:[4,"scroll-lock"],_closing:[32]},[[8,"closeModal","handleCloseModal"]]]),b=k,f=function(){"undefined"!=typeof customElements&&["p-modal","p-backdrop","p-button","p-divider","p-icon","p-loader","p-modal-body","p-modal-container","p-modal-footer","p-modal-header","p-smile"].forEach((o=>{switch(o){case"p-modal":customElements.get(l(o))||customElements.define(l(o),k);break;case"p-backdrop":customElements.get(l(o))||a();break;case"p-button":customElements.get(l(o))||r();break;case"p-divider":customElements.get(l(o))||i();break;case"p-icon":customElements.get(l(o))||p();break;case"p-loader":customElements.get(l(o))||c();break;case"p-modal-body":customElements.get(l(o))||m();break;case"p-modal-container":customElements.get(l(o))||d();break;case"p-modal-footer":customElements.get(l(o))||h();break;case"p-modal-header":customElements.get(l(o))||n();break;case"p-smile":customElements.get(l(o))||u()}}))};export{b as PModal,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as a,h as t,t as r}from"./p-mR4MYqqI.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-C1fCuFhI.js";import{d as n}from"./p-DM8w1S9L.js";import{d as s}from"./p-
|
|
1
|
+
import{p as e,H as a,h as t,t as r}from"./p-mR4MYqqI.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-C1fCuFhI.js";import{d as n}from"./p-DM8w1S9L.js";import{d as s}from"./p-DCkiUXJN.js";import{d as l}from"./p-CCpo87pH.js";import{d as c}from"./p--JxtpGtF.js";const d=o(["transition","bg-off-white-300 dark:bg-hurricane-800","border-0 border-solid border-off-white-700 dark:border-hurricane-500","p-4"]),f=o(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","layout-1280:relative layout-1280:z-0 layout-1280:max-w-none layout-1280:h-full","gap-6","transition-all","will-change-transform","-translate-x-full transform-gpu layout-1280:translate-x-0","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),b=o(["flex w-full justify-between items-center","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),p=o(["z-navbar-backdrop layout-1280:hidden transition-opacity relative"],{variants:{show:{false:"opacity-0 pointer-events-none",true:"opacity-100"}}}),w=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}_show=!1;render(){return t(i,{key:"ee599d3472ef0a332d17353d8e7f559e36d5529b"},t("p-backdrop",{key:"aa5b71247881e2a23998bab23f194ff6f58a6662",class:p({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=!1}),t("div",{key:"121da670f6b7dbbfbce4a018c56b56ac1352c212",class:f({class:d(),show:this._show})},t("div",{key:"e789b6c904b4715c271e03324d8e8643acd5d8a8",class:"flex w-full items-center justify-end layout-1280:hidden"},t("p-button",{key:"9d6f49157fc731f91ff34bc7e37aebe40c5d0612",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!1})),t("div",{key:"c88909335eed7df5a93b32a65d24b1a8ff2a3f19",class:"flex w-full flex-shrink-0 flex-col items-stretch"},t("slot",{key:"e09b2eaefb99e51502f3629c377728d298b0e8d9",name:"company"})),t("div",{key:"2ce82f037a53e8529d834958812d74f3cdd25ef2",class:"flex w-full flex-1 flex-col gap-6 overflow-y-auto"},t("slot",{key:"eaf615dd6f9d5b8fb260fe5a10c43b1e0b6f52c0",name:"content"})),t("div",{key:"9b8bedc34ab2bcbe8935426007b6fd8c2d33c177",class:"mt-auto hidden w-full flex-shrink-0 flex-col layout-1280:flex"},t("slot",{key:"7a4889a2554cad25f9e8be122863fb5c2783376d",name:"user"}))),t("div",{key:"e9d88767781757f7fc81c772fbe750a15a03fa6c",class:b({class:d()})},t("p-button",{key:"3517c55339958c4461f20b190c220358658a71cf",icon:"menu-arrow",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!0}),t("slot",{key:"b89f63dfbeba643e3f46f72e6862944ba75f1213",name:"topbar"})))}handleCloseNavbar(){this._show=!1}handleOpenNavbar(){this._show=!0}static get style(){return".w-full{width:100%}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\\:w-60{width:15rem}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-navbar{z-index:300}.z-navbar-backdrop{z-index:290}.z-navbar-topbar{z-index:280}.mt-auto{margin-top:auto}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.w-60{width:15rem}.max-w-\\[16\\.5rem\\]{max-width:16.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-6{gap:1.5rem}.overflow-y-auto{overflow-y:auto}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}@media (min-width:80rem){.layout-1280\\:relative{position:relative}.layout-1280\\:z-0{z-index:0}.layout-1280\\:flex{display:flex}.layout-1280\\:hidden{display:none}.layout-1280\\:h-full{height:100%}.layout-1280\\:max-w-none{max-width:none}.layout-1280\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}"}},[769,"p-navbar",{_show:[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]),m=w,h=function(){"undefined"!=typeof customElements&&["p-navbar","p-backdrop","p-button","p-icon","p-loader"].forEach((e=>{switch(e){case"p-navbar":customElements.get(r(e))||customElements.define(r(e),w);break;case"p-backdrop":customElements.get(r(e))||n();break;case"p-button":customElements.get(r(e))||s();break;case"p-icon":customElements.get(r(e))||l();break;case"p-loader":customElements.get(r(e))||c()}}))};export{m as PNavbar,h as defineCustomElement}
|