@paperless/core 3.29.0 → 3.29.1
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-2815c450.entry.js → p-0ee76d6f.entry.js} +1 -1
- package/dist/{paperless/p-66aa349f.entry.js → build/p-113f2c2c.entry.js} +1 -1
- package/dist/build/{p-20bbd9f7.entry.js → p-120820ba.entry.js} +1 -1
- package/dist/build/{p-56807646.entry.js → p-15e2cf67.entry.js} +1 -1
- package/dist/build/{p-0025fed7.entry.js → p-28127f3f.entry.js} +1 -1
- package/dist/{paperless/p-cf13f533.entry.js → build/p-2bccaecc.entry.js} +1 -1
- package/dist/{paperless/p-cc99ef0c.entry.js → build/p-2ca8dfa6.entry.js} +2 -2
- package/dist/{paperless/p-458a1300.entry.js → build/p-376cc335.entry.js} +1 -1
- package/dist/build/{p-42a9d7a9.entry.js → p-38b28b4b.entry.js} +1 -1
- package/dist/build/{p-75a9889e.entry.js → p-4555e185.entry.js} +1 -1
- package/dist/build/{p-707ec953.entry.js → p-55bf8c87.entry.js} +1 -1
- package/dist/build/{p-a2725e3b.entry.js → p-590e2598.entry.js} +1 -1
- package/dist/build/{p-6da143ff.entry.js → p-7ce43e0a.entry.js} +1 -1
- package/dist/build/{p-45f64a83.entry.js → p-847383a1.entry.js} +1 -1
- package/dist/build/{p-406978fd.entry.js → p-847962d9.entry.js} +1 -1
- package/dist/build/{p-d10cdb57.entry.js → p-accb5ae0.entry.js} +1 -1
- package/dist/build/{p-10524bb8.entry.js → p-b5c4b573.entry.js} +1 -1
- package/dist/{paperless/p-bc15eb99.entry.js → build/p-beffba9d.entry.js} +1 -1
- package/dist/build/p-c9ace21c.entry.js +1 -0
- package/dist/build/{p-fa24e216.js → p-dac2dc59.js} +1 -1
- package/dist/{paperless/p-1bf1c531.entry.js → build/p-dfb8aea6.entry.js} +1 -1
- package/dist/{paperless/p-1f7088e0.entry.js → build/p-e5dec8f4.entry.js} +1 -1
- package/dist/build/p-f1768a69.entry.js +1 -0
- package/dist/build/{p-98bc206c.entry.js → p-f1e3413e.entry.js} +1 -1
- package/dist/build/{p-d4970495.entry.js → p-f32bab24.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +8 -8
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +2 -2
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -12
- package/dist/cjs/p-field_3.cjs.entry.js +4 -4
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-submenu-item.cjs.entry.js +3 -3
- package/dist/cjs/p-submenu.cjs.entry.js +9 -9
- package/dist/cjs/p-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/atoms/tab/item/tab-item.component.css +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +2 -2
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +4 -4
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +3 -3
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +3 -3
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +9 -9
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-DpkIrMz9.js → p--kA5IQFm.js} +1 -1
- package/dist/components/{p-PISPo1NR.js → p-BACpf-VN.js} +1 -1
- package/dist/components/{p-GGeQLkOT.js → p-BHdA7Yam.js} +1 -1
- package/dist/components/{p-DZzA60Dx.js → p-BNBd8Wpw.js} +1 -1
- package/dist/components/p-Bmcdm8FA.js +1 -0
- package/dist/components/{p-CklXrITo.js → p-BqFE8rJS.js} +1 -1
- package/dist/components/{p-eo0MmU1s.js → p-Bvp9fzxW.js} +1 -1
- package/dist/components/{p-4KZlY5xH.js → p-CB4hYFXV.js} +1 -1
- package/dist/components/{p-B3Dks732.js → p-CNhuRURV.js} +1 -1
- package/dist/components/{p-BAVMxgJn.js → p-CUsOzU2M.js} +1 -1
- package/dist/components/{p-B7pLpkL0.js → p-CkinrCf4.js} +1 -1
- package/dist/components/{p-D9Vv2Jg9.js → p-Cn0R3cAi.js} +1 -1
- package/dist/components/p-D2jO4AZP.js +1 -0
- package/dist/components/{p-DrGWvXqN.js → p-D8NL7apK.js} +1 -1
- package/dist/components/{p-DcIQGfEt.js → p-Fw-5o3ma.js} +1 -1
- package/dist/components/{p-DsgO2Ufk.js → p-T6y2WJdd.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-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-2-4yuHR1.js → p-h_UASH6S.js} +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-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-range.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-submenu-item.js +1 -1
- package/dist/components/p-submenu.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +8 -8
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +2 -2
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-empty-state_8.entry.js +12 -12
- package/dist/esm/p-field_3.entry.js +4 -4
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +3 -3
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-submenu-item.entry.js +3 -3
- package/dist/esm/p-submenu.entry.js +9 -9
- package/dist/esm/p-tab-item.entry.js +3 -3
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/{p-2815c450.entry.js → p-0ee76d6f.entry.js} +1 -1
- package/dist/{build/p-66aa349f.entry.js → paperless/p-113f2c2c.entry.js} +1 -1
- package/dist/paperless/{p-20bbd9f7.entry.js → p-120820ba.entry.js} +1 -1
- package/dist/paperless/{p-56807646.entry.js → p-15e2cf67.entry.js} +1 -1
- package/dist/paperless/{p-0025fed7.entry.js → p-28127f3f.entry.js} +1 -1
- package/dist/{build/p-cf13f533.entry.js → paperless/p-2bccaecc.entry.js} +1 -1
- package/dist/{build/p-cc99ef0c.entry.js → paperless/p-2ca8dfa6.entry.js} +2 -2
- package/dist/{build/p-458a1300.entry.js → paperless/p-376cc335.entry.js} +1 -1
- package/dist/paperless/{p-42a9d7a9.entry.js → p-38b28b4b.entry.js} +1 -1
- package/dist/paperless/{p-75a9889e.entry.js → p-4555e185.entry.js} +1 -1
- package/dist/paperless/{p-707ec953.entry.js → p-55bf8c87.entry.js} +1 -1
- package/dist/paperless/{p-a2725e3b.entry.js → p-590e2598.entry.js} +1 -1
- package/dist/paperless/{p-6da143ff.entry.js → p-7ce43e0a.entry.js} +1 -1
- package/dist/paperless/{p-45f64a83.entry.js → p-847383a1.entry.js} +1 -1
- package/dist/paperless/{p-406978fd.entry.js → p-847962d9.entry.js} +1 -1
- package/dist/paperless/{p-d10cdb57.entry.js → p-accb5ae0.entry.js} +1 -1
- package/dist/paperless/{p-10524bb8.entry.js → p-b5c4b573.entry.js} +1 -1
- package/dist/{build/p-bc15eb99.entry.js → paperless/p-beffba9d.entry.js} +1 -1
- package/dist/paperless/p-c9ace21c.entry.js +1 -0
- package/dist/{build/p-1bf1c531.entry.js → paperless/p-dfb8aea6.entry.js} +1 -1
- package/dist/{build/p-1f7088e0.entry.js → paperless/p-e5dec8f4.entry.js} +1 -1
- package/dist/paperless/p-f1768a69.entry.js +1 -0
- package/dist/paperless/{p-98bc206c.entry.js → p-f1e3413e.entry.js} +1 -1
- package/dist/paperless/{p-d4970495.entry.js → p-f32bab24.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 +72 -72
- package/hydrate/index.mjs +72 -72
- package/package.json +1 -1
- package/dist/build/p-669c6727.entry.js +0 -1
- package/dist/build/p-9245172e.entry.js +0 -1
- package/dist/components/p-D8Cwg2-6.js +0 -1
- package/dist/components/p-vlEpgOl1.js +0 -1
- package/dist/paperless/p-669c6727.entry.js +0 -1
- package/dist/paperless/p-9245172e.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const d=a(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors","relative"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),s=a(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),c=class{constructor(e){t(this,e)}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return e(this)}_activeItemPosition=-1;_showItemIndicator=!1;_headerOffset=0;_submenuItems=[];_hoveringItem=void 0;_itemActiveListener=()=>{const t=this._submenuItems.findIndex((t=>!0===t.active));this.active=-1!==t,-1!==t?(!this.open&&this.active&&(this.open=!0),this._setItemPosition(this._submenuItems[t])):this._showItemIndicator=!1};_itemMouseEnterListener=t=>{this._hoveringItem&&this._hoveringItem===t.target||(this._hoveringItem=t.target,this._setItemPosition(this._hoveringItem))};_itemMouseLeaveListener=t=>{setTimeout((()=>{this._hoveringItem&&this._hoveringItem!==t.target||(this._hoveringItem=void 0,this._itemActiveListener())}),100)};componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}componentDidRender(){this._calculateHeaderOffset()}disconnectedCallback(){this._removeListeners()}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),a=t.length*Number.parseInt(e.height.replace("px",""))+16;return r(o,{key:"b0155aacc6f39b156f88b570a4041194480a8655"},r("div",{key:"7bd0395cf764d93d4dc648d0da4b284d57dd618b",class:"flex w-full flex-col"},r("div",{key:"0b45f8696cb04f47e43cbfe50b327c0900e7d01f",class:i(d({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"d4c204a8b0e770bffb99e47c5d5c04e488141df9",class:s({active:this.active,open:this.open})},this.index),r("div",{key:"95c73c9fdc7f8084e73b2134eff8010a9d40778c",class:"flex flex-1 flex-col"},r("p",{key:"a551eeba3a348fffdbbbcb3580022cd72959f9f5",class:i("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),r("p",{key:"bda3aaacf1a1cecb877fb80dbc7ac32ecc7d5a7f",class:i("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),r("p-icon",{key:"3eac0ca8b452b654bd0089c4879e9089dd6fba36",class:i({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),r("div",{key:"8edaeafa660c40d03c615e0aa2d60e7711c37b96",class:i("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:`${this.open?a:0}px`}},r("div",{key:"2668b4bdf209968453bb97ced1b888ae2dc67bf1",class:i("absolute left-6 top-0 z-0 w-px",{"bg-off-white-400 dark:bg-storm-500/30":!this.active,"bg-indigo-100 dark:bg-hurricane-400":this.active}),style:{height:`${a}px`}}),r("div",{key:"fa5056cc735706f26d0ca4a03d9d03fd5767e4fb",class:i("absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all",{"bg-indigo-600":this._showItemIndicator,"bg-transparent":!this._showItemIndicator}),style:{transform:`translateY(${this._activeItemPosition}px)`}}),r("div",{key:"ba73b20686349f4ca3b71b06f5147e6f972b5b0a",class:"z-10 my-2 flex flex-col"},r("slot",{key:"5dd58c5ba434e9749cbd93c4d0164e1cdb71fd69",onSlotchange:()=>this._slotChanged()})))))}onWindowResize(){this._calculateHeaderOffset(),this._itemActiveListener()}_calculateHeaderOffset(){const t=this._el.shadowRoot?.querySelector(String.raw`.group\/submenu-header`);t?this._headerOffset=t.getBoundingClientRect().bottom:this._activeItemPosition=-1}_setItemPosition(t){t&&(this._activeItemPosition=t.getBoundingClientRect().top-this._headerOffset,this._showItemIndicator||setTimeout((()=>this._showItemIndicator=!0),50))}_slotChanged(){this._removeListeners();const t=[...this._el.querySelectorAll("p-submenu-item")];for(const e of t)e.addEventListener("activeChange",this._itemActiveListener),e.addEventListener("mouseenter",this._itemMouseEnterListener),e.addEventListener("mouseleave",this._itemMouseLeaveListener);this._submenuItems=t}_removeListeners(){if(this._submenuItems.length>0)for(const t of this._submenuItems)t.removeEventListener("activeChange",this._itemActiveListener),t.removeEventListener("mouseenter",this._itemMouseEnterListener),t.removeEventListener("mouseleave",this._itemMouseLeaveListener)}};c.style="*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-6{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-\\[1\\]{z-index:1}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.h-8{height:2rem}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.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))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\\/30{background-color:rgba(24,30,41,.3)}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;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-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.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-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/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\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.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-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{c as p_submenu}
|
|
1
|
+
import{r as t,d as e,h as a}from"./p-yFtRjnrU.js";import{c as r}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const s=r(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors","relative"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),d=r(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),c=class{constructor(e){t(this,e)}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return e(this)}_activeItemPosition=-1;_showItemIndicator=!1;_headerOffset=0;_submenuItems=[];_hoveringItem=void 0;_itemActiveListener=()=>{const t=this._submenuItems.findIndex((t=>!0===t.active));this.active=-1!==t,-1!==t?(!this.open&&this.active&&(this.open=!0),this._setItemPosition(this._submenuItems[t])):this._showItemIndicator=!1};_itemMouseEnterListener=t=>{this._hoveringItem&&this._hoveringItem===t.target||(this._hoveringItem=t.target,this._setItemPosition(this._hoveringItem))};_itemMouseLeaveListener=t=>{setTimeout((()=>{this._hoveringItem&&this._hoveringItem!==t.target||(this._hoveringItem=void 0,this._itemActiveListener())}),100)};componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}componentDidRender(){this._calculateHeaderOffset()}disconnectedCallback(){this._removeListeners()}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),r=t.length*Number.parseInt(e.height.replace("px",""))+16;return a(o,{key:"5f589bd0b6b470f9dca4151e80a2b55845e38295"},a("div",{key:"08a771d863a14340353fac1610d8adb1b56746a4",class:"flex w-full flex-col"},a("div",{key:"2fae2053f91a46c7cf619bc23f08f043c776b921",class:i(s({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&a("div",{key:"d82174bc89d220acb0341e887a60ba93310786f8",class:d({active:this.active,open:this.open})},this.index),a("div",{key:"e981bf8934863244d6bb2b5347bbbd5eba78acac",class:"flex flex-1 flex-col"},a("p",{key:"7b01134ba1aa8a00638eb98202beab68c1f1742d",class:i("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),a("p",{key:"87e41bc49b6be4644fb5076e2aef25c8b69d4e3b",class:i("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),a("p-icon",{key:"54125f28ee9ae3cb48084669d398bf0a856708c5",class:i({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),a("div",{key:"b731892b74a89f34a59feccf609c747eee97e997",class:i("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:`${this.open?r:0}px`}},a("div",{key:"d5d598b856131ea016720c5ed67b4edf71b29d4d",class:i("absolute left-6 top-0 z-0 w-px",{"bg-off-white-400 dark:bg-storm-500/30":!this.active,"bg-indigo-100 dark:bg-hurricane-400":this.active}),style:{height:`${r}px`}}),a("div",{key:"bdc5d5e2b9a5e07b34e8c762498dd37af8ebae00",class:i("absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all",{"bg-indigo-600":this._showItemIndicator,"bg-transparent":!this._showItemIndicator}),style:{transform:`translateY(${this._activeItemPosition}px)`}}),a("div",{key:"b1596c7a69c429784e956523548aa6f378b7233a",class:"z-10 my-2 flex flex-col"},a("slot",{key:"380ac39b8c6d0407d6aa82ce6773b0184e4f239c",onSlotchange:()=>this._slotChanged()})))))}onWindowResize(){this._calculateHeaderOffset(),this._itemActiveListener()}_calculateHeaderOffset(){const t=this._el.shadowRoot?.querySelector(String.raw`.group\/submenu-header`);t?this._headerOffset=t.getBoundingClientRect().bottom:this._activeItemPosition=-1}_setItemPosition(t){t&&(this._activeItemPosition=t.getBoundingClientRect().top-this._headerOffset,this._showItemIndicator||setTimeout((()=>this._showItemIndicator=!0),50))}_slotChanged(){this._removeListeners();const t=[...this._el.querySelectorAll("p-submenu-item")];for(const e of t)e.addEventListener("activeChange",this._itemActiveListener),e.addEventListener("mouseenter",this._itemMouseEnterListener),e.addEventListener("mouseleave",this._itemMouseLeaveListener);this._submenuItems=t}_removeListeners(){if(this._submenuItems.length>0)for(const t of this._submenuItems)t.removeEventListener("activeChange",this._itemActiveListener),t.removeEventListener("mouseenter",this._itemMouseEnterListener),t.removeEventListener("mouseleave",this._itemMouseLeaveListener)}};c.style="*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-6{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-\\[1\\]{z-index:1}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.h-8{height:2rem}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.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))}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-hurricane-400{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-400{--tw-bg-opacity:1;background-color:rgb(245 244 241/var(--tw-bg-opacity,1))}.bg-storm-500\\/30{background-color:rgba(24,30,41,.3)}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;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-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.3)}.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-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/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\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-storm-500\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.3)}.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-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{c as p_submenu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a as e,h as a}from"./p-yFtRjnrU.js";import{T as r}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-6XOzWrsN.js";import"./p-ChV9xqsO.js";const
|
|
1
|
+
import{r as t,a as e,h as a}from"./p-yFtRjnrU.js";import{T as r}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-6XOzWrsN.js";import"./p-ChV9xqsO.js";const c=class{constructor(a){t(this,a),this.isOpen=e(this,"isOpen",3)}variant="primary";header;open=!1;closeable=!0;openable=!0;label;labelVariant="neutral";labelIcon;isOpen;render(){return a(r,{key:"4d84990e7dd4d68295f64f55bf0d3e621efe2d8b"},a("div",{key:"efa2ef26b82966e549da6c88cb0c194fa456db0f",class:"flex w-full flex-col"},a("div",{key:"0879869a1253f02888c45ccc10c471ce5ed3937b",class:i("flex cursor-pointer items-center gap-2",{"text-storm-500 dark:text-white":"primary"===this.variant,"text-storm-300 dark:text-hurricane-200":"secondary"===this.variant}),onClick:()=>this._onClick()},a("p-icon",{key:"759cf5c0cb2c1d4cb2c81fc543b8581ef65bf1bf",class:"flex shrink-0",rotate:this.open?0:-90,variant:"caret"}),a("p",{key:"1d34d5b26a2e6bc7b8cd770a6a727d9eafa8b1dc",class:"my-0 shrink-0 whitespace-nowrap text-base font-medium"},this.header),this.label&&a("p-label",{key:"650e390caaaa5cadfead28724691d641bdded17a",icon:this.labelIcon,variant:this.labelVariant},this.label),a("p-divider",{key:"7c39dd76956c7bf7a254d2f4be367f7b0ad2d8e8",class:"flex-1"})),this.open&&a("div",{key:"d2613f8f7dbbe887f2cd15bd7be1b1b084cbfe08",class:"mt-4"},a("slot",{key:"d0c0ced2ef6e1bc677d65bb99e19820ddd36e00e"}))))}_onClick(){!this.closeable&&this.open||(this.openable||this.open)&&(this.open=!this.open,this.isOpen.emit(this.open))}};c.style="*{box-sizing:border-box}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.whitespace-nowrap{white-space:nowrap}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{c as p_accordion}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-yFtRjnrU.js";import{c as t}from"./p-CBWjHURv.js";import{T as r}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=t(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),n=t(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","\n layout-1280:relative layout-1280:z-0 layout-1280:h-full\n layout-1280:max-w-none\n ","gap-6","transition-all","will-change-transform","\n -translate-x-full transform-gpu\n layout-1280:translate-x-0\n ","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),i=t(["flex w-full items-center justify-between","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),s=t(["\n relative z-navbar-backdrop transition-opacity\n layout-1280:hidden\n "],{variants:{show:{false:"pointer-events-none opacity-0",true:"opacity-100"}}}),l=class{constructor(a){e(this,a)}_show=!1;render(){return a(r,{key:"
|
|
1
|
+
import{r as e,h as a}from"./p-yFtRjnrU.js";import{c as t}from"./p-CBWjHURv.js";import{T as r}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=t(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),n=t(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","\n layout-1280:relative layout-1280:z-0 layout-1280:h-full\n layout-1280:max-w-none\n ","gap-6","transition-all","will-change-transform","\n -translate-x-full transform-gpu\n layout-1280:translate-x-0\n ","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),i=t(["flex w-full items-center justify-between","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),s=t(["\n relative z-navbar-backdrop transition-opacity\n layout-1280:hidden\n "],{variants:{show:{false:"pointer-events-none opacity-0",true:"opacity-100"}}}),l=class{constructor(a){e(this,a)}_show=!1;render(){return a(r,{key:"aecac0fced5f8a0181bdebf4ae9fcc6b2c4c3a8d"},a("p-backdrop",{key:"fc6b57094cc6b08e73cbe8cb37e57ecbb42eccb4",class:s({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=!1}),a("div",{key:"8833febf310292dc2be5761c1192cf11e044adbb",class:n({class:o(),show:this._show})},a("div",{key:"dc6934db93742d5718b49a1a47d2b6086c1ae755",class:"\n flex w-full items-center justify-end\n layout-1280:hidden\n "},a("p-button",{key:"88e19f62f513207d1929b3897eee81fa8985bfc1",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!1})),a("div",{key:"9e137624b046ae9cee5253437d0cfe20e223fbd1",class:"flex w-full flex-shrink-0 flex-col items-stretch"},a("slot",{key:"529b9d7dbe0b36aaee1ed449385fabb1398e627d",name:"company"})),a("div",{key:"40dcd693e18fe84afdabb0a7ed185913327cb8bd",class:"flex w-full flex-1 flex-col gap-6 overflow-y-auto"},a("slot",{key:"35cc080c950de449c50d8f397948550651a66f58",name:"content"})),a("div",{key:"65e109f634367d9c4ea83828102d5843d9b2bc36",class:"\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n "},a("slot",{key:"18c3d0530e96c8f5dacb7f6bc36bd15a5f7d9517",name:"user"}))),a("div",{key:"bf8dcce7d30c4e186313c53042b0106ddc46ece7",class:i({class:o()})},a("p-button",{key:"e4b3a01a85773b75d9a89e863d8a1797eac2cec9",icon:"menu-arrow",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!0}),a("slot",{key:"7c3a6a3ea527a69de918f0d1ce8fcf192297d284",name:"topbar"})))}handleCloseNavbar(){this._show=!1}handleOpenNavbar(){this._show=!0}};l.style=".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))}";export{l as p_navbar}
|