@paperless/core 3.21.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/p-0c131cf9.entry.js +1 -0
- package/dist/build/{p-5c8c35cf.js → p-4c0dc43f.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +19 -3
- package/dist/collection/components/molecules/button/button.component.js +21 -5
- package/dist/components/{p-b-B7eMG-.js → p-B46eicR-.js} +1 -1
- package/dist/components/{p-Bj7N0A2r.js → p-BBn6kDdv.js} +1 -1
- package/dist/components/{p-CaTrUaah.js → p-BCfjpFw1.js} +1 -1
- package/dist/components/{p-DAW84I1p.js → p-BOFmuV4k.js} +1 -1
- package/dist/components/{p-BZc0i1uc.js → p-BShmdUwP.js} +1 -1
- package/dist/components/{p-Be35LfMz.js → p-BpGBAfK8.js} +1 -1
- package/dist/components/{p-DGlTaRG3.js → p-CSPrxbhH.js} +1 -1
- package/dist/components/{p-D6rfaiEd.js → p-CajjvsF3.js} +1 -1
- package/dist/components/{p-Cqgqmavc.js → p-DJAXrYQR.js} +1 -1
- package/dist/components/p-DiWZZofK.js +1 -0
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.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-empty-state.js +1 -1
- package/dist/components/p-field.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-pagination-pages.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-select.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/esm/p-button_3.entry.js +19 -3
- package/dist/index.html +1 -1
- package/dist/paperless/p-0c131cf9.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/button/button.component.d.ts +1 -1
- package/dist/types/components.d.ts +16 -2
- package/hydrate/index.js +19 -3
- package/hydrate/index.mjs +19 -3
- package/package.json +1 -1
- package/dist/build/p-f16cc0f5.entry.js +0 -1
- package/dist/components/p-Dz-zNYo3.js +0 -1
- package/dist/paperless/p-f16cc0f5.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as o,h as a}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{d as i}from"./p-
|
|
1
|
+
import{t,p as e,H as o,h as a}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as r}from"./p-Au2WuEGF.js";import{d as i}from"./p-DiWZZofK.js";import{d as n}from"./p-4-EYCe-6.js";import{d as p}from"./p-CUQydYt5.js";import{d as l}from"./p-wffF3kVy.js";import{d}from"./p-D8faiybE.js";const m=s(["flex min-w-0 flex-1 items-center gap-2"],{variants:{dropdown:{false:"h-10 py-1",true:null}}}),c=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}dropdownLocation="bottom-end";get _el(){return this}_dropdownOpen=!1;_hasDropdownSlot=!1;componentWillLoad(){this._checkDropdownSlot()}componentWillRender(){this._updateAvatar()}render(){const t=this._getContent();return a(r,{key:"6d75fe9ed4ac33cfc764d9fab67484d6a9f07721"},this._hasDropdownSlot?a("p-dropdown",{applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,manualChevron:!0,placement:this.dropdownLocation,strategy:"absolute",onIsOpen:t=>this._dropdownOpen=t.detail},a("p-button",{active:this._dropdownOpen,chevron:this._dropdownOpen?"up":"down",class:"w-full",size:"lg",slot:"trigger",variant:"dropdown"},t),a("div",{slot:"items"},a("slot",{name:"dropdown",onSlotchange:()=>this._checkDropdownSlot()}))):t)}slotchange(){this._checkDropdownSlot()}_checkDropdownSlot(){this._hasDropdownSlot=!!this._el.querySelector(':scope > [slot="dropdown"]'),!this._hasDropdownSlot&&this._dropdownOpen&&(this._dropdownOpen=!1)}_getContent(){return a("div",{class:m({dropdown:this._hasDropdownSlot})},a("slot",{name:"avatar"}),a("div",{class:"flex min-w-0 flex-1 flex-col items-start"},a("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-sm font-semibold text-storm-500\n dark:text-white\n "},a("slot",{name:"title"})),a("p",{class:"\n my-0 w-auto max-w-full overflow-hidden text-ellipsis whitespace-nowrap\n text-xs font-medium text-storm-400\n dark:text-hurricane-200\n "},a("slot",{name:"subtitle"}))),a("slot",{name:"post-title"}))}_updateAvatar(){const t=this._el.querySelector('p-avatar[slot="avatar"]');t&&(t.size=this._hasDropdownSlot?"sm":t.size)}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-10{height:2.5rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-profile",{dropdownLocation:[1,"dropdown-location"],_dropdownOpen:[32],_hasDropdownSlot:[32]},[[0,"slotchange","slotchange"]]]);function h(){"undefined"!=typeof customElements&&["p-profile","p-button","p-dropdown","p-dropdown-menu-container","p-icon","p-loader"].forEach((e=>{switch(e){case"p-profile":customElements.get(t(e))||customElements.define(t(e),c);break;case"p-button":customElements.get(t(e))||i();break;case"p-dropdown":customElements.get(t(e))||n();break;case"p-dropdown-menu-container":customElements.get(t(e))||p();break;case"p-icon":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||d()}}))}h();const w=c,f=h;export{w as PProfile,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as s,h as a,F as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as h}from"./p-Au2WuEGF.js";import{a as n}from"./p-TyZ7uPES.js";import{c as l}from"./p-xs4N_Y-0.js";import{S as c}from"./p-CEaB2BT0.js";import{d}from"./p-DZjtEarb.js";import{d as p}from"./p-Dz-zNYo3.js";import{d as m}from"./p-uv3MMCr1.js";import{d as u}from"./p-CJ7I5BCS.js";import{d as w}from"./p-4-EYCe-6.js";import{d as y}from"./p-CUQydYt5.js";import{d as x}from"./p-D99OtFbo.js";import{d as g}from"./p-CaTrUaah.js";import{d as v}from"./p-QS4cO7vO.js";import{d as f}from"./p-2ZtgmKa1.js";import{d as b}from"./p-wffF3kVy.js";import{d as k}from"./p-D8faiybE.js";import{d as C}from"./p-D0uXSAIf.js";const _=o(["flex items-center gap-2","h-full min-w-0 flex-1","pointer-events-none overflow-hidden"]),I=o(["item group/item","pointer-events-auto cursor-pointer","flex h-[1.625rem] items-center gap-2","h-[1.625rem] px-2","whitespace-nowrap text-sm font-semibold","rounded-lg","bg-indigo-100","dark:bg-white/15"]),S=o("block w-full overflow-hidden text-start",{variants:{variant:{placeholder:"text-storm-400",default:null},enableTextWrap:{true:!1,false:"text-ellipsis whitespace-nowrap"},error:{true:!1,false:"dark:text-white"}},compoundVariants:[{variant:"placeholder",error:!0,class:"\n text-negative-red-700\n group-hover/button:text-negative-red-800\n dark:text-negative-red-alternative\n "},{variant:"default",error:!0,class:"dark:text-negative-red-alternative"}]}),T=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.queryChange=s(this,"queryChange",3),this.valueChange=s(this,"valueChange",3),this.selectAllChange=s(this,"selectAllChange",3),this.dropdownShown=s(this,"dropdownShown",3),this.add=s(this,"add",3),this._internals=this.attachInternals()}items;multi;strategy="absolute";icon;query;placeholder;autocompletePlaceholder="Search...";value;displayKey="text";dropdownDisplayKey;selectionDisplayKey;valueKey;avatarKey;iconKey="icon";iconClassKey="iconClass";showIconOnSelectedItem;classKey="class";applyClassOnSelectedItem;applyClassOnSelectedItemInMenu;avatarLettersKey;identifierKey;queryKey;autoSelectFirst=!0;showChevron=!0;maxDisplayedItems=c;enableAutocomplete=!0;enableTextWrap=!1;asyncFilter=!1;loading=!1;enableSelectAll=!1;selectAllText="Select all";selectAllIcon;queryChange;valueChange;selectAllChange;dropdownShown;size="base";prefix;label;helper;required=!0;showOptional=!0;error;disabled=!1;showAddItem=!1;addItemText="Add item";add;emptyStateText="No items available";get _el(){return this}_showDropdown=!1;_selectedItem=null;_allSelected=!1;_amountHidden=0;_internals;_inputRef;autocompleteInputRef;_multiContainerRef;_resizeObserver;_resizeDebounceTimer;_checkSelectedItemsTimeout;get _items(){return this._getParsedItems()}get _displayValue(){const t=a("div",{class:S({variant:"placeholder",error:!!this.error?.length})},this.placeholder);return this._selectedItem?this.multi?0===this._selectedItem?.length?t:a("div",{class:_(),ref:t=>this._multiContainerRef=t},this._selectedItem.map((t=>a("div",{class:I(),onClick:()=>this._selectValue(t)},t[this.selectionDisplayKey??this.displayKey],a("p-icon",{class:"\n text-xs text-indigo-500\n group-hover/item:text-indigo-800\n dark:text-white/15\n dark:group-hover/item:text-white\n ",variant:"negative"})))),a("div",{class:"extra pointer-events-none hidden text-sm text-storm-100"},"+",this._amountHidden)):this._getDisplay(this._selectedItem,!0):t}get _identifierKey(){return this.identifierKey??this.valueKey??"value"}formResetCallback(){this._selectValue(null)}componentDidLoad(){if(!this.valueKey&&!this.identifierKey)throw Error("You must provide a valueKey or identifierKey");this.multi&&(this._setMultiContainerMaxWidth(),this._resizeObserver=new ResizeObserver((()=>{this._resizeDebounceTimer&&(clearTimeout(this._resizeDebounceTimer),this._resizeDebounceTimer=null),this._resizeDebounceTimer=setTimeout((()=>{this._setMultiContainerMaxWidth(),this._setCheckSelectedItemsTimeout()}),200)})),this._resizeObserver.observe(this._el)),this.value?this._valueChange():this.itemChanges()}componentDidRender(){this.multi&&this._setMultiContainerMaxWidth()}disconnectedCallback(){this.multi&&this._resizeObserver.disconnect()}render(){let t=this.icon;return this._selectedItem&&!this.avatarKey&&this.iconKey&&this._selectedItem?.[this.iconKey]&&!this.showIconOnSelectedItem&&(t=this._selectedItem[this.iconKey]),(this.avatarKey&&this._selectedItem?.[this.avatarKey]||this.avatarLettersKey&&this._selectedItem?.[this.avatarLettersKey])&&(t=null),this.error?.length&&(t="warning"),a(h,{key:"e558118df2ca323c56ce1af9ca940f9ab3064bf5"},a("p-field-container",{key:"8c59c91d1962edee3ee06ca33f93e670aaf471d2",error:this.error,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,label:this.label,prefix:this.prefix,required:this.required,showOptional:this.showOptional,variant:"write"},a("p-dropdown",{key:"81ce03dc69685e18a92090628818e0ea902b9f3b",applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,"disable-trigger-click":this.disabled,insideClick:!0,manual:!0,manualChevron:!0,scrollable:!this.enableAutocomplete||"large",show:this._showDropdown,slot:"content",strategy:this.strategy,onIsOpen:t=>this._onDropdownOpen(t)},a("p-button",{key:"71a818c2ee268b8c169cc65bcd405ab8153bacb9",active:this._showDropdown,chevron:!!this.showChevron&&(this._showDropdown?"up":"down"),class:"w-full",error:!!this.error?.length,icon:t,iconClass:this.applyClassOnSelectedItem&&this._selectedItem?.[this.iconClassKey],size:this.size,slot:"trigger",variant:"secondary",onClick:t=>this._onClick(t)},a("div",{key:"53f5fc2d15c94e96f629c6bd53e2456078f47dd3",class:"relative min-w-0 flex-1",ref:t=>this._inputRef=t},this._displayValue)),this.loading?this._getLoadingItems():this._getItems(),this.showAddItem&&this._getAddItem())))}documentClickHandler(t){this._showDropdown&&!n(t,this._el)&&(this._showDropdown=!1)}_valueChange(){setTimeout((()=>{this._preselectItem(),this._setCheckSelectedItemsTimeout()}))}itemChanges(){setTimeout((()=>this._preselectItem()))}_showDropdownChanges(){this.dropdownShown.emit({value:this._showDropdown,query:this.query})}multiChanges(){this._selectedItem&&!Array.isArray(this._selectedItem)&&(this._selectedItem=[])}_preselectItem(){let t="string"==typeof this.value&&this.multi?JSON.parse(this.value):this.value;if(this.multi)return Array.isArray(t)?(this.value=t,0===t.length?void(this._selectedItem=[]):void(this._selectedItem=this.valueKey&&"false"!==this.valueKey?this._items.filter((e=>t.includes(e?.[this.valueKey]))):[...t])):(this.value=[],void this.valueChange.emit(this.value));this._selectedItem||t||!this.autoSelectFirst||(t=this._items[0]);const e="object"==typeof t&&null!==t?t[this._identifierKey]:t,i="string"==typeof e||"number"==typeof e?e:JSON.stringify(e),s=this._selectedItem?this._selectedItem?.[this._identifierKey]:null,a="string"==typeof s||"number"==typeof s?s:JSON.stringify(s);if(this._selectedItem&&a===i)return;if(!this._items?.length&&t)return void this._selectValue(t,!1);const r=this._getParsedItems(!1).find((t=>{const e=t?.[this._identifierKey];return("string"==typeof e||"number"==typeof e?e:JSON.stringify(e))===i}));this._selectValue(r??t,!1)}_selectValue(t,e=!0){let i=this.valueKey&&"false"!==this.valueKey&&null!==t&&!this.loading?t?.[this.valueKey]:t;if(this.multi){this._selectedItem&&Array.isArray(this._selectedItem)||(this._selectedItem=[]),this.value&&Array.isArray(this.value)||(this.value=[]);const e=[...this._selectedItem],s=[...this.value],a=e.findIndex((e=>e[this._identifierKey]===t[this._identifierKey]));return-1===a?(e.push(t),s.push(i)):(e.splice(a,1),s.splice(a,1)),this._selectedItem=e,this.value=s,void this.valueChange.emit(s)}this._selectedItem=t,this._onBlur(e),i!==this.value&&(this.value=i,this.valueChange.emit(i))}_onClick(t){const e=t?.composedPath();for(const t of e){if("p-button"===t.nodeName.toLowerCase())break;if(t.classList?.contains("item"))return}this._showDropdown=!this._showDropdown}_onBlur(t=!1){this.enableAutocomplete&&!t||(this._showDropdown=!1)}_onAutoComplete(t){this.enableAutocomplete&&(this._showDropdown=!0,this.query=t.detail,this.queryChange.emit(t.detail))}_checkvalue(t,e){return e?.[t]?.toString()?.toLowerCase().indexOf(this.query?.toLowerCase())>=0}_getItems(){let t=this._items.map((t=>{const e=this.multi&&this._selectedItem&&Array.isArray(this._selectedItem)?this._selectedItem.some((e=>e[this._identifierKey]===t[this._identifierKey])):t[this._identifierKey]===this._selectedItem?.[this._identifierKey];return a("p-dropdown-menu-item",{active:e,checkbox:!!this.multi,enableTextWrap:this.enableTextWrap,slot:"items",useContainer:!1,onClick:()=>this._selectValue(t)},this._getDisplay(t,!1,e))}));return 0!==this._items.length||this.showAddItem||(t=[a("p",{class:"\n w-full p-2 text-center text-sm text-storm-400\n dark:text-hurricane-200\n ",slot:"items"},this.emptyStateText)]),this.enableSelectAll&&this._items.length>0&&t.unshift(a("p-dropdown-menu-item",{active:this._allSelected,slot:"items",useContainer:!1,checkbox:!0,onClick:()=>this._selectAllChange()},this.selectAllIcon?.length?a("span",{class:"flex items-center gap-2"},a("div",{class:"flex w-6 justify-center text-lg"},a("p-icon",{variant:this.selectAllIcon}))," ",this.selectAllText):this.selectAllText)),this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAddItem(){return a(r,null,this._items.length>0&&a("p-divider",{class:"my-1 px-2",slot:"items"}),a("p-dropdown-menu-item",{slot:"items",useContainer:!1,onClick:()=>this.add.emit()},a("span",{class:"flex items-center gap-1 font-semibold text-indigo-600"},this.addItemText,a("p-icon",{variant:"plus"}))))}_getLoadingItems(){const t=[0,0,0].map((()=>a("p-dropdown-menu-item",{enableHover:!1,slot:"items"},a("p-loader",{class:"h-6 w-full rounded",variant:"ghost"}))));return this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAutoCompleteItem(){return a("div",{class:"sticky top-0 z-10 mb-3 h-8",slot:"items"},a("p-field",{class:"block",placeholder:this.autocompletePlaceholder,value:this.query,onInputRefChange:t=>this.autocompleteInputRef=t.detail,onValueChange:t=>this._onAutoComplete(t)}))}_setMultiContainerMaxWidth(){this._inputRef&&this._multiContainerRef&&(this._multiContainerRef.style.maxWidth=Math.max(this._inputRef.clientWidth-16,16)+"px")}_setCheckSelectedItemsTimeout(){this._checkSelectedItemsTimeout&&clearTimeout(this._checkSelectedItemsTimeout),this._checkSelectedItemsTimeout=setTimeout((()=>this._checkSelectedItems()),50)}_checkSelectedItems(){if(!this._multiContainerRef)return;const t=this._multiContainerRef.getBoundingClientRect(),e=this._multiContainerRef.querySelectorAll(".item");let i=0;for(const s of e)s.classList.remove("hidden"),s.classList.add("flex"),s.getBoundingClientRect().right>t.right&&(s.classList.remove("flex"),s.classList.add("hidden"),i++);this._amountHidden=i;const s=this._multiContainerRef.querySelector(".extra");s&&(s.classList.contains("hidden")||s.classList.add("hidden"),i>0&&s.classList.remove("hidden"))}_onDropdownOpen(t){t.detail&&this.autocompleteInputRef&&setTimeout((()=>this.autocompleteInputRef.focus()),100)}_selectAllChange(){this._allSelected=!this._allSelected,this.selectAllChange.emit(this._allSelected)}_getDisplay(t,e=!1,i=!1){let s=a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[e?this.selectionDisplayKey??this.displayKey:this.displayKey]);return this.avatarKey&&(s=a("span",{class:"flex items-center gap-2"},a("p-avatar",{letters:t[this.avatarLettersKey],size:"sm",src:t[this.avatarKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),!this.iconKey||e&&!this.showIconOnSelectedItem||(s=a("span",{class:"flex items-center gap-2"},t[this.iconKey]&&a("p-icon",{class:l("\n text-storm-300\n dark:text-hurricane-200\n ",e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu?"":t?.[this.iconClassKey]??""),variant:t[this.iconKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu||!t?.[this.classKey]?.length?s:a("div",{class:t[this.classKey]},s)}_getParsedItems(t=!0){if(!this.items||this.loading)return[];let e="string"==typeof this.items?JSON.parse(this.items):this.items;return"string"==typeof e?.[0]&&(this.displayKey="text",this.valueKey="value",e=e.map((t=>({value:t,text:t})))),this.query?.length&&!this.asyncFilter&&(e=e.filter((t=>this.queryKey?this._checkvalue(this.queryKey,t):this._checkvalue(this._identifierKey,t)||this._checkvalue(this.displayKey,t)))),t?e?.slice(0,this.maxDisplayedItems):e}static get formAssociated(){return!0}static get watchers(){return{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}}static get style(){return"*{box-sizing:border-box}:host{--tw-translate-y:0px!important;--tw-translate-x:0px!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.my-1{margin-bottom:.25rem;margin-top:.25rem}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[1\\.625rem\\]{height:1.625rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/item:hover .group-hover\\/item\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\: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-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-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\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\: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-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[576,"p-select",{items:[1],multi:[516],strategy:[1],icon:[1],query:[1],placeholder:[1],autocompletePlaceholder:[1,"autocomplete-placeholder"],value:[8],displayKey:[1,"display-key"],dropdownDisplayKey:[1,"dropdown-display-key"],selectionDisplayKey:[1,"selection-display-key"],valueKey:[1,"value-key"],avatarKey:[1,"avatar-key"],iconKey:[1,"icon-key"],iconClassKey:[1,"icon-class-key"],showIconOnSelectedItem:[1,"show-icon-on-selected-item"],classKey:[1,"class-key"],applyClassOnSelectedItem:[4,"apply-class-on-selected-item"],applyClassOnSelectedItemInMenu:[4,"apply-class-on-selected-item-in-menu"],avatarLettersKey:[1,"avatar-letters-key"],identifierKey:[1,"identifier-key"],queryKey:[1,"query-key"],autoSelectFirst:[4,"auto-select-first"],showChevron:[4,"show-chevron"],maxDisplayedItems:[2,"max-displayed-items"],enableAutocomplete:[4,"enable-autocomplete"],enableTextWrap:[4,"enable-text-wrap"],asyncFilter:[4,"async-filter"],loading:[4],enableSelectAll:[4,"enable-select-all"],selectAllText:[1,"select-all-text"],selectAllIcon:[1,"select-all-icon"],size:[1],prefix:[1],label:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],showAddItem:[4,"show-add-item"],addItemText:[1,"add-item-text"],emptyStateText:[1,"empty-state-text"],_showDropdown:[32],_selectedItem:[32],_allSelected:[32],_amountHidden:[32]},[[6,"click","documentClickHandler"]],{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}]);function K(){"undefined"!=typeof customElements&&["p-select","p-avatar","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-tooltip"].forEach((e=>{switch(e){case"p-select":customElements.get(t(e))||customElements.define(t(e),T);break;case"p-avatar":customElements.get(t(e))||d();break;case"p-button":customElements.get(t(e))||p();break;case"p-checkbox":customElements.get(t(e))||m();break;case"p-divider":customElements.get(t(e))||u();break;case"p-dropdown":customElements.get(t(e))||w();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||x();break;case"p-field":customElements.get(t(e))||g();break;case"p-field-container":customElements.get(t(e))||v();break;case"p-helper":customElements.get(t(e))||f();break;case"p-icon":customElements.get(t(e))||b();break;case"p-loader":customElements.get(t(e))||k();break;case"p-tooltip":customElements.get(t(e))||C()}}))}K();const j=T,A=K;export{j as PSelect,A as defineCustomElement}
|
|
1
|
+
import{t,p as e,H as i,c as s,h as a,F as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as h}from"./p-Au2WuEGF.js";import{a as n}from"./p-TyZ7uPES.js";import{c as l}from"./p-xs4N_Y-0.js";import{S as c}from"./p-CEaB2BT0.js";import{d}from"./p-DZjtEarb.js";import{d as p}from"./p-DiWZZofK.js";import{d as m}from"./p-uv3MMCr1.js";import{d as u}from"./p-CJ7I5BCS.js";import{d as w}from"./p-4-EYCe-6.js";import{d as y}from"./p-CUQydYt5.js";import{d as x}from"./p-D99OtFbo.js";import{d as g}from"./p-BCfjpFw1.js";import{d as v}from"./p-QS4cO7vO.js";import{d as f}from"./p-2ZtgmKa1.js";import{d as b}from"./p-wffF3kVy.js";import{d as k}from"./p-D8faiybE.js";import{d as C}from"./p-D0uXSAIf.js";const _=o(["flex items-center gap-2","h-full min-w-0 flex-1","pointer-events-none overflow-hidden"]),I=o(["item group/item","pointer-events-auto cursor-pointer","flex h-[1.625rem] items-center gap-2","h-[1.625rem] px-2","whitespace-nowrap text-sm font-semibold","rounded-lg","bg-indigo-100","dark:bg-white/15"]),S=o("block w-full overflow-hidden text-start",{variants:{variant:{placeholder:"text-storm-400",default:null},enableTextWrap:{true:!1,false:"text-ellipsis whitespace-nowrap"},error:{true:!1,false:"dark:text-white"}},compoundVariants:[{variant:"placeholder",error:!0,class:"\n text-negative-red-700\n group-hover/button:text-negative-red-800\n dark:text-negative-red-alternative\n "},{variant:"default",error:!0,class:"dark:text-negative-red-alternative"}]}),K=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.queryChange=s(this,"queryChange",3),this.valueChange=s(this,"valueChange",3),this.selectAllChange=s(this,"selectAllChange",3),this.dropdownShown=s(this,"dropdownShown",3),this.add=s(this,"add",3),this._internals=this.attachInternals()}items;multi;strategy="absolute";icon;query;placeholder;autocompletePlaceholder="Search...";value;displayKey="text";dropdownDisplayKey;selectionDisplayKey;valueKey;avatarKey;iconKey="icon";iconClassKey="iconClass";showIconOnSelectedItem;classKey="class";applyClassOnSelectedItem;applyClassOnSelectedItemInMenu;avatarLettersKey;identifierKey;queryKey;autoSelectFirst=!0;showChevron=!0;maxDisplayedItems=c;enableAutocomplete=!0;enableTextWrap=!1;asyncFilter=!1;loading=!1;enableSelectAll=!1;selectAllText="Select all";selectAllIcon;queryChange;valueChange;selectAllChange;dropdownShown;size="base";prefix;label;helper;required=!0;showOptional=!0;error;disabled=!1;showAddItem=!1;addItemText="Add item";add;emptyStateText="No items available";get _el(){return this}_showDropdown=!1;_selectedItem=null;_allSelected=!1;_amountHidden=0;_internals;_inputRef;autocompleteInputRef;_multiContainerRef;_resizeObserver;_resizeDebounceTimer;_checkSelectedItemsTimeout;get _items(){return this._getParsedItems()}get _displayValue(){const t=a("div",{class:S({variant:"placeholder",error:!!this.error?.length})},this.placeholder);return this._selectedItem?this.multi?0===this._selectedItem?.length?t:a("div",{class:_(),ref:t=>this._multiContainerRef=t},this._selectedItem.map((t=>a("div",{class:I(),onClick:()=>this._selectValue(t)},t[this.selectionDisplayKey??this.displayKey],a("p-icon",{class:"\n text-xs text-indigo-500\n group-hover/item:text-indigo-800\n dark:text-white/15\n dark:group-hover/item:text-white\n ",variant:"negative"})))),a("div",{class:"extra pointer-events-none hidden text-sm text-storm-100"},"+",this._amountHidden)):this._getDisplay(this._selectedItem,!0):t}get _identifierKey(){return this.identifierKey??this.valueKey??"value"}formResetCallback(){this._selectValue(null)}componentDidLoad(){if(!this.valueKey&&!this.identifierKey)throw Error("You must provide a valueKey or identifierKey");this.multi&&(this._setMultiContainerMaxWidth(),this._resizeObserver=new ResizeObserver((()=>{this._resizeDebounceTimer&&(clearTimeout(this._resizeDebounceTimer),this._resizeDebounceTimer=null),this._resizeDebounceTimer=setTimeout((()=>{this._setMultiContainerMaxWidth(),this._setCheckSelectedItemsTimeout()}),200)})),this._resizeObserver.observe(this._el)),this.value?this._valueChange():this.itemChanges()}componentDidRender(){this.multi&&this._setMultiContainerMaxWidth()}disconnectedCallback(){this.multi&&this._resizeObserver.disconnect()}render(){let t=this.icon;return this._selectedItem&&!this.avatarKey&&this.iconKey&&this._selectedItem?.[this.iconKey]&&!this.showIconOnSelectedItem&&(t=this._selectedItem[this.iconKey]),(this.avatarKey&&this._selectedItem?.[this.avatarKey]||this.avatarLettersKey&&this._selectedItem?.[this.avatarLettersKey])&&(t=null),this.error?.length&&(t="warning"),a(h,{key:"e558118df2ca323c56ce1af9ca940f9ab3064bf5"},a("p-field-container",{key:"8c59c91d1962edee3ee06ca33f93e670aaf471d2",error:this.error,forceShowTooltip:!!this.error?.length&&!this._showDropdown,helper:this.helper,label:this.label,prefix:this.prefix,required:this.required,showOptional:this.showOptional,variant:"write"},a("p-dropdown",{key:"81ce03dc69685e18a92090628818e0ea902b9f3b",applyChevron:!1,applyFullWidth:!0,applyMaxWidth:!1,"disable-trigger-click":this.disabled,insideClick:!0,manual:!0,manualChevron:!0,scrollable:!this.enableAutocomplete||"large",show:this._showDropdown,slot:"content",strategy:this.strategy,onIsOpen:t=>this._onDropdownOpen(t)},a("p-button",{key:"71a818c2ee268b8c169cc65bcd405ab8153bacb9",active:this._showDropdown,chevron:!!this.showChevron&&(this._showDropdown?"up":"down"),class:"w-full",error:!!this.error?.length,icon:t,iconClass:this.applyClassOnSelectedItem&&this._selectedItem?.[this.iconClassKey],size:this.size,slot:"trigger",variant:"secondary",onClick:t=>this._onClick(t)},a("div",{key:"53f5fc2d15c94e96f629c6bd53e2456078f47dd3",class:"relative min-w-0 flex-1",ref:t=>this._inputRef=t},this._displayValue)),this.loading?this._getLoadingItems():this._getItems(),this.showAddItem&&this._getAddItem())))}documentClickHandler(t){this._showDropdown&&!n(t,this._el)&&(this._showDropdown=!1)}_valueChange(){setTimeout((()=>{this._preselectItem(),this._setCheckSelectedItemsTimeout()}))}itemChanges(){setTimeout((()=>this._preselectItem()))}_showDropdownChanges(){this.dropdownShown.emit({value:this._showDropdown,query:this.query})}multiChanges(){this._selectedItem&&!Array.isArray(this._selectedItem)&&(this._selectedItem=[])}_preselectItem(){let t="string"==typeof this.value&&this.multi?JSON.parse(this.value):this.value;if(this.multi)return Array.isArray(t)?(this.value=t,0===t.length?void(this._selectedItem=[]):void(this._selectedItem=this.valueKey&&"false"!==this.valueKey?this._items.filter((e=>t.includes(e?.[this.valueKey]))):[...t])):(this.value=[],void this.valueChange.emit(this.value));this._selectedItem||t||!this.autoSelectFirst||(t=this._items[0]);const e="object"==typeof t&&null!==t?t[this._identifierKey]:t,i="string"==typeof e||"number"==typeof e?e:JSON.stringify(e),s=this._selectedItem?this._selectedItem?.[this._identifierKey]:null,a="string"==typeof s||"number"==typeof s?s:JSON.stringify(s);if(this._selectedItem&&a===i)return;if(!this._items?.length&&t)return void this._selectValue(t,!1);const r=this._getParsedItems(!1).find((t=>{const e=t?.[this._identifierKey];return("string"==typeof e||"number"==typeof e?e:JSON.stringify(e))===i}));this._selectValue(r??t,!1)}_selectValue(t,e=!0){let i=this.valueKey&&"false"!==this.valueKey&&null!==t&&!this.loading?t?.[this.valueKey]:t;if(this.multi){this._selectedItem&&Array.isArray(this._selectedItem)||(this._selectedItem=[]),this.value&&Array.isArray(this.value)||(this.value=[]);const e=[...this._selectedItem],s=[...this.value],a=e.findIndex((e=>e[this._identifierKey]===t[this._identifierKey]));return-1===a?(e.push(t),s.push(i)):(e.splice(a,1),s.splice(a,1)),this._selectedItem=e,this.value=s,void this.valueChange.emit(s)}this._selectedItem=t,this._onBlur(e),i!==this.value&&(this.value=i,this.valueChange.emit(i))}_onClick(t){const e=t?.composedPath();for(const t of e){if("p-button"===t.nodeName.toLowerCase())break;if(t.classList?.contains("item"))return}this._showDropdown=!this._showDropdown}_onBlur(t=!1){this.enableAutocomplete&&!t||(this._showDropdown=!1)}_onAutoComplete(t){this.enableAutocomplete&&(this._showDropdown=!0,this.query=t.detail,this.queryChange.emit(t.detail))}_checkvalue(t,e){return e?.[t]?.toString()?.toLowerCase().indexOf(this.query?.toLowerCase())>=0}_getItems(){let t=this._items.map((t=>{const e=this.multi&&this._selectedItem&&Array.isArray(this._selectedItem)?this._selectedItem.some((e=>e[this._identifierKey]===t[this._identifierKey])):t[this._identifierKey]===this._selectedItem?.[this._identifierKey];return a("p-dropdown-menu-item",{active:e,checkbox:!!this.multi,enableTextWrap:this.enableTextWrap,slot:"items",useContainer:!1,onClick:()=>this._selectValue(t)},this._getDisplay(t,!1,e))}));return 0!==this._items.length||this.showAddItem||(t=[a("p",{class:"\n w-full p-2 text-center text-sm text-storm-400\n dark:text-hurricane-200\n ",slot:"items"},this.emptyStateText)]),this.enableSelectAll&&this._items.length>0&&t.unshift(a("p-dropdown-menu-item",{active:this._allSelected,slot:"items",useContainer:!1,checkbox:!0,onClick:()=>this._selectAllChange()},this.selectAllIcon?.length?a("span",{class:"flex items-center gap-2"},a("div",{class:"flex w-6 justify-center text-lg"},a("p-icon",{variant:this.selectAllIcon}))," ",this.selectAllText):this.selectAllText)),this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAddItem(){return a(r,null,this._items.length>0&&a("p-divider",{class:"my-1 px-2",slot:"items"}),a("p-dropdown-menu-item",{slot:"items",useContainer:!1,onClick:()=>this.add.emit()},a("span",{class:"flex items-center gap-1 font-semibold text-indigo-600"},this.addItemText,a("p-icon",{variant:"plus"}))))}_getLoadingItems(){const t=[0,0,0].map((()=>a("p-dropdown-menu-item",{enableHover:!1,slot:"items"},a("p-loader",{class:"h-6 w-full rounded",variant:"ghost"}))));return this.enableAutocomplete&&t.unshift(this._getAutoCompleteItem()),t}_getAutoCompleteItem(){return a("div",{class:"sticky top-0 z-10 mb-3 h-8",slot:"items"},a("p-field",{class:"block",placeholder:this.autocompletePlaceholder,value:this.query,onInputRefChange:t=>this.autocompleteInputRef=t.detail,onValueChange:t=>this._onAutoComplete(t)}))}_setMultiContainerMaxWidth(){this._inputRef&&this._multiContainerRef&&(this._multiContainerRef.style.maxWidth=Math.max(this._inputRef.clientWidth-16,16)+"px")}_setCheckSelectedItemsTimeout(){this._checkSelectedItemsTimeout&&clearTimeout(this._checkSelectedItemsTimeout),this._checkSelectedItemsTimeout=setTimeout((()=>this._checkSelectedItems()),50)}_checkSelectedItems(){if(!this._multiContainerRef)return;const t=this._multiContainerRef.getBoundingClientRect(),e=this._multiContainerRef.querySelectorAll(".item");let i=0;for(const s of e)s.classList.remove("hidden"),s.classList.add("flex"),s.getBoundingClientRect().right>t.right&&(s.classList.remove("flex"),s.classList.add("hidden"),i++);this._amountHidden=i;const s=this._multiContainerRef.querySelector(".extra");s&&(s.classList.contains("hidden")||s.classList.add("hidden"),i>0&&s.classList.remove("hidden"))}_onDropdownOpen(t){t.detail&&this.autocompleteInputRef&&setTimeout((()=>this.autocompleteInputRef.focus()),100)}_selectAllChange(){this._allSelected=!this._allSelected,this.selectAllChange.emit(this._allSelected)}_getDisplay(t,e=!1,i=!1){let s=a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[e?this.selectionDisplayKey??this.displayKey:this.displayKey]);return this.avatarKey&&(s=a("span",{class:"flex items-center gap-2"},a("p-avatar",{letters:t[this.avatarLettersKey],size:"sm",src:t[this.avatarKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),!this.iconKey||e&&!this.showIconOnSelectedItem||(s=a("span",{class:"flex items-center gap-2"},t[this.iconKey]&&a("p-icon",{class:l("\n text-storm-300\n dark:text-hurricane-200\n ",e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu?"":t?.[this.iconClassKey]??""),variant:t[this.iconKey]}),a("div",{class:S({variant:"default",error:!!this.error?.length&&e,enableTextWrap:this.enableTextWrap&&!e})},t[this.dropdownDisplayKey??this.displayKey]))),e&&!this.applyClassOnSelectedItem||i&&!this.applyClassOnSelectedItemInMenu||!t?.[this.classKey]?.length?s:a("div",{class:t[this.classKey]},s)}_getParsedItems(t=!0){if(!this.items||this.loading)return[];let e="string"==typeof this.items?JSON.parse(this.items):this.items;return"string"==typeof e?.[0]&&(this.displayKey="text",this.valueKey="value",e=e.map((t=>({value:t,text:t})))),this.query?.length&&!this.asyncFilter&&(e=e.filter((t=>this.queryKey?this._checkvalue(this.queryKey,t):this._checkvalue(this._identifierKey,t)||this._checkvalue(this.displayKey,t)))),t?e?.slice(0,this.maxDisplayedItems):e}static get formAssociated(){return!0}static get watchers(){return{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}}static get style(){return"*{box-sizing:border-box}:host{--tw-translate-y:0px!important;--tw-translate-x:0px!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.my-1{margin-bottom:.25rem;margin-top:.25rem}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[1\\.625rem\\]{height:1.625rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/item:hover .group-hover\\/item\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\: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-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-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\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\: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-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[576,"p-select",{items:[1],multi:[516],strategy:[1],icon:[1],query:[1],placeholder:[1],autocompletePlaceholder:[1,"autocomplete-placeholder"],value:[8],displayKey:[1,"display-key"],dropdownDisplayKey:[1,"dropdown-display-key"],selectionDisplayKey:[1,"selection-display-key"],valueKey:[1,"value-key"],avatarKey:[1,"avatar-key"],iconKey:[1,"icon-key"],iconClassKey:[1,"icon-class-key"],showIconOnSelectedItem:[1,"show-icon-on-selected-item"],classKey:[1,"class-key"],applyClassOnSelectedItem:[4,"apply-class-on-selected-item"],applyClassOnSelectedItemInMenu:[4,"apply-class-on-selected-item-in-menu"],avatarLettersKey:[1,"avatar-letters-key"],identifierKey:[1,"identifier-key"],queryKey:[1,"query-key"],autoSelectFirst:[4,"auto-select-first"],showChevron:[4,"show-chevron"],maxDisplayedItems:[2,"max-displayed-items"],enableAutocomplete:[4,"enable-autocomplete"],enableTextWrap:[4,"enable-text-wrap"],asyncFilter:[4,"async-filter"],loading:[4],enableSelectAll:[4,"enable-select-all"],selectAllText:[1,"select-all-text"],selectAllIcon:[1,"select-all-icon"],size:[1],prefix:[1],label:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],disabled:[516],showAddItem:[4,"show-add-item"],addItemText:[1,"add-item-text"],emptyStateText:[1,"empty-state-text"],_showDropdown:[32],_selectedItem:[32],_allSelected:[32],_amountHidden:[32]},[[6,"click","documentClickHandler"]],{value:[{_valueChange:0}],items:[{itemChanges:0}],_showDropdown:[{_showDropdownChanges:0}],multi:[{multiChanges:0}]}]);function T(){"undefined"!=typeof customElements&&["p-select","p-avatar","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-tooltip"].forEach((e=>{switch(e){case"p-select":customElements.get(t(e))||customElements.define(t(e),K);break;case"p-avatar":customElements.get(t(e))||d();break;case"p-button":customElements.get(t(e))||p();break;case"p-checkbox":customElements.get(t(e))||m();break;case"p-divider":customElements.get(t(e))||u();break;case"p-dropdown":customElements.get(t(e))||w();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||x();break;case"p-field":customElements.get(t(e))||g();break;case"p-field-container":customElements.get(t(e))||v();break;case"p-helper":customElements.get(t(e))||f();break;case"p-icon":customElements.get(t(e))||b();break;case"p-loader":customElements.get(t(e))||k();break;case"p-tooltip":customElements.get(t(e))||C()}}))}T();const j=K,A=T;export{j as PSelect,A as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as o,d as
|
|
1
|
+
import{T as o,d as r}from"./p-DJAXrYQR.js";const s=o,p=r;export{s as PTableFooter,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as o,d as
|
|
1
|
+
import{T as o,d as s}from"./p-BOFmuV4k.js";const m=o,p=s;export{m as PTableHeader,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as s,h as o,d as a}from"./p-CySg37XO.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{f as r}from"./p-WEZng7dj.js";import{f as c}from"./p-CWO2YJCh.js";import{i as h}from"./p-CzUyWlXA.js";import{c as p}from"./p-xs4N_Y-0.js";import{P as m,a as d,T as u}from"./p-CEaB2BT0.js";import{d as b}from"./p-B6PqwbBc.js";import{d as f}from"./p-Dz-zNYo3.js";import{d as g}from"./p-uv3MMCr1.js";import{d as w}from"./p-CJ7I5BCS.js";import{d as k}from"./p-4-EYCe-6.js";import{d as y}from"./p-CUQydYt5.js";import{d as S}from"./p-D99OtFbo.js";import{d as _}from"./p-DGlTaRG3.js";import{d as x}from"./p-CaTrUaah.js";import{d as C}from"./p-QS4cO7vO.js";import{d as v}from"./p--IPayxyw.js";import{d as E}from"./p-BkI69RMv.js";import{d as R}from"./p-2ZtgmKa1.js";import{d as j}from"./p-wffF3kVy.js";import{d as A}from"./p-1qs8jjR4.js";import{d as F}from"./p-D8faiybE.js";import{d as D}from"./p-b-B7eMG-.js";import{d as z}from"./p-BZc0i1uc.js";import{d as B}from"./p--_gjJpd8.js";import{d as L}from"./p-Dym6aWEt.js";import{d as T}from"./p-yYRVYWXO.js";import{d as H}from"./p-6MuaM5f1.js";import{d as I}from"./p-D0469rhA.js";import{d as O}from"./p-BksolHpY.js";import{d as P}from"./p-Cqgqmavc.js";import{d as q}from"./p-DAW84I1p.js";import{d as M}from"./p-Dn13oSNs.js";import{d as Q}from"./p-B-yfQWzc.js";import{d as U}from"./p-D0uXSAIf.js";const W=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.selectedRowsChange=s(this,"selectedRowsChange",3),this.rowClick=s(this,"rowClick",3),this.rowSelected=s(this,"rowSelected",3),this.rowDeselected=s(this,"rowDeselected",3),this.hasRendered=s(this,"hasRendered",3),this.quickFilter=s(this,"quickFilter",3),this.queryChange=s(this,"queryChange",3),this.filter=s(this,"filter",3),this.action=s(this,"action",3),this.pageChange=s(this,"pageChange",3),this.pageSizeChange=s(this,"pageSizeChange",3),this.export=s(this,"export",3),this.emptyStateActionClick=s(this,"emptyStateActionClick",3)}items;loading=!1;headerLoading=!1;footerLoading=!1;amountOfLoadingRows=6;enableRowSelection=!0;rowSelectionLimit;enableRowClick=!0;selectedRows=[];enableFloatingMenu=!0;floatingMenuAmountSelectedTemplate=t=>n((1===t?this._locales.floating_menu?.amount_selected:this._locales.floating_menu?.amount_selected_plural)?.replace("{{amount}}",t));selectedRowsChange;selectionKey;canSelectKey;rowClick;rowSelected;rowDeselected;hasRendered;enableHeader=!0;quickFilters=[];activeQuickFilterIdentifier;enableSearch=!0;query;enableFilter=!0;enableFilterDesktop=!0;selectedFiltersAmount;filterButtonTemplate;enableAction=!1;actionButtonLoading=!1;actionButtonEnabled=!1;actionButtonIcon="pencil";actionButtonText;actionButtonTemplate;quickFilter;queryChange;filter;action;enableFooter=!0;enablePaginationSize=!0;enablePaginationPages=!0;enableExport=!0;page=1;total;pageChange;pageSize=m;pageSizeOptions=d;pageSizeChange;export;hideOnSinglePage=!0;emptyStateHeader=()=>n(this._locales.empty_state?.no_filter.header);emptyStateContent=()=>n(this._locales.empty_state?.no_filter.content);emptyStateAction=()=>n(this._locales.empty_state?.no_filter.action);enableEmptyStateAction=!0;emptyStateFilteredHeader=()=>n(this._locales.empty_state.filtered.header);emptyStateFilteredContent=()=>n(this._locales.empty_state.filtered.content);emptyStateActionClick;shadow=!0;get _el(){return this}_locales={};_extraHeaders=[];_columns=[];_items=[];_enableRowSelection=this.enableRowSelection;_rowSelectionLimit;_rowActionsFloatingAll=[];_rowActionsFloating=[];_rowActionsRow=[];_footerHidden=!1;_ctrlDown=!1;_hasCustomFilterSlot=!1;_hasCustomActionsSlot=!1;_floatingMenuShown=!1;_resizeTimeout;componentWillLoad(){this._hasCustomFilterSlot=!!this._el.querySelector(':scope > [slot="custom-filter"]'),this._hasCustomActionsSlot=!!this._el.querySelector(':scope > [slot="custom-actions"]'),this._setRowSelectionData(),this._setLocales(),this._parseItems(this.items),this._generateExtraHeaders(),this._generateColumns()}componentDidRender(){this.hasRendered.emit()}render(){return o(a,{key:"ae904712e08489474afdc5845533f6e9ac95301b",class:"z-0 flex flex-col"},o("p-table-container",{key:"dda70ad29ac9043645d12913365af8f6e4afdffb"},this.enableHeader&&o("p-table-header",{key:"701ccce426272567e11263f305a76684306fac37",actionButtonTemplate:this.actionButtonTemplate,actionIcon:this.actionButtonIcon,actionLoading:this.actionButtonLoading,actionText:this.actionButtonText,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,canUseAction:this.actionButtonEnabled,class:"mb-8",enableAction:this.enableAction,enableExport:this.enableExport,enableFilter:this.enableFilter,enableFilterDesktop:this.enableFilterDesktop,enableSearch:this.enableSearch,filterButtonTemplate:this.filterButtonTemplate,itemsSelectedAmount:this.selectedRows?.length,loading:this.headerLoading,query:this.query,quickFilters:this.quickFilters,selectedFiltersAmount:this.selectedFiltersAmount,onAction:()=>this.action.emit(),onExport:()=>this.export.emit(),onFilter:()=>this.filter.emit(),onQueryChange:({detail:t})=>this.queryChange.emit(t),onQuickFilter:({detail:t})=>this.quickFilter.emit(t)},this._hasCustomFilterSlot&&o("slot",{key:"adc6c02c1b89d0acef5ab2837f9e5fb3864fa7d4",name:"custom-filter",slot:"custom-filter"}),this._hasCustomActionsSlot&&o("slot",{key:"230b0b3960c58402ed66c4a94ec06c6296900ba6",name:"custom-actions",slot:"custom-actions"})),this._getExtraHeader(),this._getHeader(),o("div",{key:"1295202d7cedd4513e1d28caebadc95e85831885",class:"flex flex-1 flex-col"},this._getRows(),o("slot",{key:"419e887ff55242fab18a8606abd736a0fc9f46bf",name:"custom-rows"})),this.enableFloatingMenu&&this._enableRowSelection?o("p-floating-menu-container",{amount:this.selectedRows?.length,amountSelectedTemplate:this.floatingMenuAmountSelectedTemplate,class:r({hasFooter:this.enableFooter&&!this._footerHidden,active:!!this.selectedRows?.length,shown:this._floatingMenuShown}),enableAmountSelected:!!this._rowActionsFloating?.length,usedInTable:!0,onClose:()=>this._selectAllChange(null,!1)},this._rowActionsFloating?.length&&this._rowActionsFloating.map((t=>o("p-floating-menu-item",{disabled:t.disabled,icon:t.icon,iconFlip:t.iconFlip,iconRotate:t.iconRotate,loading:t.loading,slot:"floating-menu-item",onClick:()=>t.disabled||t.loading||!t.action||"single"!==t.type?t.action(this.selectedRows,!0):t.action(this.selectedRows[0],!1)},t.label)))):"",this.enableFooter&&o("p-table-footer",{key:"34eca9c12bcd8eac4a0f9b7c56660858e481f897",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,loading:this.footerLoading,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,tableHeaderHasAction:this.enableHeader&&this.enableAction&&this.actionButtonEnabled,total:this.total,onHiddenChange:({detail:t})=>this._footerHidden=t,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t)})))}async _setLocales(){this._locales=await l(this._el)}onTableDefinitionUpdated(){this._generateColumns()}keyDown({ctrlKey:t,metaKey:e}){const i=h();(e&&i||t&&!i)&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({code:t}){const e=h();(["MetaLeft","MetaRight"].includes(t)&&e||["ControlLeft","ControlRight"].includes(t)&&!e)&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_setRowSelectionData(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout((()=>{const t=c(),e=[...this._el.querySelectorAll(":scope > p-table-row-action")];this._rowActionsRow=e.filter((t=>"both"===t.type||"single"===t.type)),this._rowActionsFloatingAll=e.filter((e=>this.enableRowSelection&&("both"===e.type||"multi"===e.type)||t&&"single"===e.type)).map((t=>("single"===t.type&&(t.disabled=this.selectedRows?.length>1),t)));let i=this.rowSelectionLimit;t&&this._rowActionsFloatingAll?.length&&(void 0!==i&&this.enableRowSelection||!this.enableRowSelection)&&(i=1),this._rowSelectionLimit=i;let s=this.enableRowSelection;t&&this._rowActionsFloatingAll?.length&&!s&&(s=!0),this._enableRowSelection=s,this._floatingMenuShown&&this._showFloatingMenu()}),200)}_generateExtraHeaders(){let t=[...this._el.querySelectorAll("p-table-extra-header")];t=this._parseDefinitions(t),this._extraHeaders=t}_generateColumns(){let t=[...this._el.querySelectorAll("p-table-column")];t=this._parseDefinitions(t),this._columns=t}_getExtraHeader(){return this._extraHeaders?.length?o("p-table-row",{isLast:!0,variant:"header-secondary"},this._extraHeaders.map(((t,e)=>o("p-table-cell",{checkboxOffset:0===e&&this._enableRowSelection,definition:t,index:e,variant:"header-secondary"},o("b",null,t.name))))):null}_getHeader(){return o("p-table-row",{variant:"header"},this._columns.map(((t,e)=>o("p-table-cell",{checkbox:0===e||t.hasCheckbox?this._getCheckbox(null,this.loading?"loading":"header"):null,definition:t,index:e,value:t.name,variant:"header"}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,e)=>o("p-table-row",{enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this.amountOfLoadingRows-1},this._getLoadingColumns(e)))):0===this._items.length?this._getEmptyState():this._items.map(((t,e)=>o("p-table-row",{checked:this._selectionContains(e),enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this._items.length-1,onClick:t=>this._rowClick(t,e)},this._getRowColumns(t,e),this._getActions(t,e))))}_getActions(t,e){const i=this._rowActionsRow.filter((e=>!e.showFunction||e.showFunction(t)));return i?.length&&!c()?o("p-table-row-actions-container",{checked:this._selectionContains(e),slot:"actions"},i.map((e=>o("p-tooltip",{content:e.label,strategy:"fixed"},o("p-button",{icon:e.icon,iconFlip:e.iconFlip,iconOnly:!0,iconRotate:e.iconRotate,size:"sm",slot:"trigger",variant:"secondary","data-is-action":!0,onClick:()=>"function"==typeof e.action&&e.action?.(t,!1)}))))):null}_getRowColumns(t,e){return this._columns.map(((i,s)=>o("p-table-cell",{checkbox:0===s||i.hasCheckbox?this._getCheckbox(e):null,definition:i,index:s,item:t,rowIndex:e})))}_getLoadingColumns(t){return this._columns.map(((e,i)=>o("p-table-cell",{checkbox:0===i||e.hasCheckbox?this._getCheckbox(t,"loading"):null,definition:e,index:i,rowIndex:t,variant:"loading"})))}_getCheckbox(t,e="default"){if(!this._enableRowSelection||!this.selectionKey&&!this._rowActionsFloating?.length)return;if("loading"===e)return o("p-loader",{class:"h-6 w-6 rounded",variant:"ghost"});if("header"===e)return o("p-checkbox",{checked:this._selectionContainsAll(),class:p({"opacity-0":void 0!==this._rowSelectionLimit}),disabled:void 0!==this._rowSelectionLimit,indeterminate:this._selectionIndeterminate(),onCheckedChange:t=>this._selectAllChange(t)});const i=this._items[t],s=this._selectionContains(t);return o("p-checkbox",{checked:s,class:"flex-shrink-0",disabled:this.canSelectKey&&!i[this.canSelectKey]||void 0!==this._rowSelectionLimit&&!s&&this.selectedRows.length===this._rowSelectionLimit,onCheckedChange:e=>this._checkboxChange(e,t)})}_getEmptyState(){return o("p-empty-state",this.query?.length||this.selectedFiltersAmount?{class:"my-16 self-center",content:this.emptyStateFilteredContent(),header:this.emptyStateFilteredHeader(),illustration:"search"}:{actionIcon:"plus",actionText:this.emptyStateAction(),class:"my-16 self-center",content:this.emptyStateContent(),enableAction:this.enableEmptyStateAction,header:this.emptyStateHeader(),illustration:"table",onAction:()=>this.enableAction&&this.action.emit()})}_selectAllChange(t,e){if(this._enableRowSelection){if(void 0===e?t?.detail??e:e){const t=[];for(let e=0;e<this._items.length;e++){const i=this._items[e];if((!this.canSelectKey||i[this.canSelectKey])&&!this._selectionContains(e)&&(t.push(i),this.rowSelected.emit(i),void 0!==this._rowSelectionLimit&&this.selectedRows.length+t.length===this._rowSelectionLimit))break}return this.selectedRows=[...this.selectedRows,...t],this.selectedRowsChange.emit(this.selectedRows),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu())}for(let t=0;t<this.selectedRows.length;t++){const e=this.selectedRows[t],i=this._items.find((i=>this._getSelectionValue(i,t)===this._getSelectionValue(e,t)));i&&this.rowDeselected.emit(i)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange({detail:t,target:e},i){if(!this._enableRowSelection)return;if(t&&void 0!==this._rowSelectionLimit&&this.selectedRows.length>=this._rowSelectionLimit)return void(e.checked=!1);const s=this._items[i];if(this.canSelectKey&&!s[this.canSelectKey])return void(e.checked=!1);if(t)return this.selectedRows=[...this.selectedRows,{...s,index:i}],this.selectedRowsChange.emit(this.selectedRows),this.rowSelected.emit(s),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu());const o=this._selectionContains(i,!0),a=[...this.selectedRows];a.splice(o,1),this.selectedRows=a,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(s)}_getSelectionValue(t,e){return this.selectionKey&&t?.[this.selectionKey]||e}_selectionContains(t,e=!1){const i=this.selectedRows.findIndex((e=>e.index===t));return e?i:-1!==i}_selectionContainsAll(){let t=!0;if(!this._items?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!0;for(let e=0;e<this._items?.length;e++)if(!this._selectionContains(e)){t=!1;break}return t}_selectionIndeterminate(){if(!this._items?.length||!this.selectedRows?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!1;let t=0;for(let e=0;e<this._items?.length;e++)this._selectionContains(e)&&t++;return t>0&&t!==this._items.length}_rowClick(t,e){const i=t.target;if("input"===i.tagName.toLowerCase()||"checkbox"===i.type)return;const s=this._findRow(t.target);if(this._findRowAction(t.target))return;if(this.enableRowClick)return void this.rowClick.emit({item:this._items[e],ctrlDown:this._ctrlDown});if(!this._enableRowSelection)return;const o=s?.querySelector('input[type="checkbox"]');o&&(o.checked=!o.checked,this._checkboxChange(o,e))}_findRow(t){return t?"p-table-row"===t?.tagName?.toLowerCase()?t:this._findRow(t?.parentElement):t}_findRowAction(t){return t?null!==t.dataset.isAction&&"false"!==t.dataset.isAction?t:"p-table-row"===t?.tagName?.toLowerCase()?null:this._findRowAction(t?.parentElement):null}_showFloatingMenu(){let t=this._rowActionsFloatingAll;1===this.rowSelectionLimit&&t.some((t=>("single"===t.type||"both"===t.type)&&t.showFunction))&&(t=t.filter((t=>"multi"===t.type||!t.showFunction||t.showFunction(this.selectedRows[0])))),this._rowActionsFloating=t,this._floatingMenuShown=!0}_parseDefinitions(t){return t.map((t=>this._parseDefinitionSizes(t)))}_parseDefinitionSizes(t){const e=t;let i={default:"full"};"string"!=typeof t.sizes||["auto","hidden","full"].includes(t.sizes)||(t.sizes=JSON.parse(t.sizes));for(const[t,s]of u.entries())i[s]="auto"!==e.sizes&&"hidden"!==e.sizes&&"full"!==e.sizes&&"number"!=typeof e.sizes?e.sizes[s]??i[u[t-1]]:"auto"===e.sizes?"full":e.sizes;return t.parsedSizes=i,t}static get watchers(){return{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.z-0{z-index:0}.my-16{margin-bottom:4rem;margin-top:4rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.table{display:table}.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}.resize{resize:both}.flex-col{flex-direction:column}.self-center{align-self:center}.rounded{border-radius:.25rem}.opacity-0{opacity:0}.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)}"}},[772,"p-table",{items:[1],loading:[4],headerLoading:[4,"header-loading"],footerLoading:[4,"footer-loading"],amountOfLoadingRows:[2,"amount-of-loading-rows"],enableRowSelection:[4,"enable-row-selection"],rowSelectionLimit:[2,"row-selection-limit"],enableRowClick:[4,"enable-row-click"],selectedRows:[16],enableFloatingMenu:[4,"enable-floating-menu"],floatingMenuAmountSelectedTemplate:[16],selectionKey:[1,"selection-key"],canSelectKey:[1,"can-select-key"],enableHeader:[4,"enable-header"],quickFilters:[1,"quick-filters"],activeQuickFilterIdentifier:[1,"active-quick-filter-identifier"],enableSearch:[4,"enable-search"],query:[1025],enableFilter:[4,"enable-filter"],enableFilterDesktop:[4,"enable-filter-desktop"],selectedFiltersAmount:[2,"selected-filters-amount"],filterButtonTemplate:[16],enableAction:[4,"enable-action"],actionButtonLoading:[4,"action-button-loading"],actionButtonEnabled:[4,"action-button-enabled"],actionButtonIcon:[1,"action-button-icon"],actionButtonText:[1,"action-button-text"],actionButtonTemplate:[16],enableFooter:[4,"enable-footer"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],enableExport:[4,"enable-export"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],hideOnSinglePage:[4,"hide-on-single-page"],emptyStateHeader:[16],emptyStateContent:[16],emptyStateAction:[16],enableEmptyStateAction:[4,"enable-empty-state-action"],emptyStateFilteredHeader:[16],emptyStateFilteredContent:[16],shadow:[4],_locales:[32],_extraHeaders:[32],_columns:[32],_items:[32],_enableRowSelection:[32],_rowSelectionLimit:[32],_rowActionsFloating:[32],_rowActionsRow:[32],_footerHidden:[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}]);function Y(){"undefined"!=typeof customElements&&["p-table","p-badge","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-empty-state","p-field","p-field-container","p-floating-menu-container","p-floating-menu-item","p-helper","p-icon","p-illustration","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-segment-container","p-segment-item","p-table-cell","p-table-container","p-table-footer","p-table-header","p-table-row","p-table-row-actions-container","p-tooltip"].forEach((e=>{switch(e){case"p-table":customElements.get(t(e))||customElements.define(t(e),W);break;case"p-badge":customElements.get(t(e))||b();break;case"p-button":customElements.get(t(e))||f();break;case"p-checkbox":customElements.get(t(e))||g();break;case"p-divider":customElements.get(t(e))||w();break;case"p-dropdown":customElements.get(t(e))||k();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||S();break;case"p-empty-state":customElements.get(t(e))||_();break;case"p-field":customElements.get(t(e))||x();break;case"p-field-container":customElements.get(t(e))||C();break;case"p-floating-menu-container":customElements.get(t(e))||v();break;case"p-floating-menu-item":customElements.get(t(e))||E();break;case"p-helper":customElements.get(t(e))||R();break;case"p-icon":customElements.get(t(e))||j();break;case"p-illustration":customElements.get(t(e))||A();break;case"p-loader":customElements.get(t(e))||F();break;case"p-pagination":customElements.get(t(e))||D();break;case"p-pagination-pages":customElements.get(t(e))||z();break;case"p-pagination-pages-item":customElements.get(t(e))||B();break;case"p-pagination-size":customElements.get(t(e))||L();break;case"p-segment-container":customElements.get(t(e))||T();break;case"p-segment-item":customElements.get(t(e))||H();break;case"p-table-cell":customElements.get(t(e))||I();break;case"p-table-container":customElements.get(t(e))||O();break;case"p-table-footer":customElements.get(t(e))||P();break;case"p-table-header":customElements.get(t(e))||q();break;case"p-table-row":customElements.get(t(e))||M();break;case"p-table-row-actions-container":customElements.get(t(e))||Q();break;case"p-tooltip":customElements.get(t(e))||U()}}))}Y();const K=W,J=Y;export{K as PTable,J as defineCustomElement}
|
|
1
|
+
import{t,p as e,H as i,c as s,h as o,d as a}from"./p-CySg37XO.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{f as r}from"./p-WEZng7dj.js";import{f as c}from"./p-CWO2YJCh.js";import{i as h}from"./p-CzUyWlXA.js";import{c as p}from"./p-xs4N_Y-0.js";import{P as m,a as d,T as u}from"./p-CEaB2BT0.js";import{d as b}from"./p-B6PqwbBc.js";import{d as f}from"./p-DiWZZofK.js";import{d as g}from"./p-uv3MMCr1.js";import{d as w}from"./p-CJ7I5BCS.js";import{d as k}from"./p-4-EYCe-6.js";import{d as y}from"./p-CUQydYt5.js";import{d as S}from"./p-D99OtFbo.js";import{d as _}from"./p-CSPrxbhH.js";import{d as x}from"./p-BCfjpFw1.js";import{d as C}from"./p-QS4cO7vO.js";import{d as v}from"./p--IPayxyw.js";import{d as E}from"./p-BkI69RMv.js";import{d as R}from"./p-2ZtgmKa1.js";import{d as j}from"./p-wffF3kVy.js";import{d as F}from"./p-1qs8jjR4.js";import{d as A}from"./p-D8faiybE.js";import{d as D}from"./p-B46eicR-.js";import{d as z}from"./p-BShmdUwP.js";import{d as B}from"./p--_gjJpd8.js";import{d as L}from"./p-Dym6aWEt.js";import{d as T}from"./p-yYRVYWXO.js";import{d as H}from"./p-6MuaM5f1.js";import{d as O}from"./p-D0469rhA.js";import{d as P}from"./p-BksolHpY.js";import{d as I}from"./p-DJAXrYQR.js";import{d as q}from"./p-BOFmuV4k.js";import{d as M}from"./p-Dn13oSNs.js";import{d as Q}from"./p-B-yfQWzc.js";import{d as K}from"./p-D0uXSAIf.js";const U=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.selectedRowsChange=s(this,"selectedRowsChange",3),this.rowClick=s(this,"rowClick",3),this.rowSelected=s(this,"rowSelected",3),this.rowDeselected=s(this,"rowDeselected",3),this.hasRendered=s(this,"hasRendered",3),this.quickFilter=s(this,"quickFilter",3),this.queryChange=s(this,"queryChange",3),this.filter=s(this,"filter",3),this.action=s(this,"action",3),this.pageChange=s(this,"pageChange",3),this.pageSizeChange=s(this,"pageSizeChange",3),this.export=s(this,"export",3),this.emptyStateActionClick=s(this,"emptyStateActionClick",3)}items;loading=!1;headerLoading=!1;footerLoading=!1;amountOfLoadingRows=6;enableRowSelection=!0;rowSelectionLimit;enableRowClick=!0;selectedRows=[];enableFloatingMenu=!0;floatingMenuAmountSelectedTemplate=t=>n((1===t?this._locales.floating_menu?.amount_selected:this._locales.floating_menu?.amount_selected_plural)?.replace("{{amount}}",t));selectedRowsChange;selectionKey;canSelectKey;rowClick;rowSelected;rowDeselected;hasRendered;enableHeader=!0;quickFilters=[];activeQuickFilterIdentifier;enableSearch=!0;query;enableFilter=!0;enableFilterDesktop=!0;selectedFiltersAmount;filterButtonTemplate;enableAction=!1;actionButtonLoading=!1;actionButtonEnabled=!1;actionButtonIcon="pencil";actionButtonText;actionButtonTemplate;quickFilter;queryChange;filter;action;enableFooter=!0;enablePaginationSize=!0;enablePaginationPages=!0;enableExport=!0;page=1;total;pageChange;pageSize=m;pageSizeOptions=d;pageSizeChange;export;hideOnSinglePage=!0;emptyStateHeader=()=>n(this._locales.empty_state?.no_filter.header);emptyStateContent=()=>n(this._locales.empty_state?.no_filter.content);emptyStateAction=()=>n(this._locales.empty_state?.no_filter.action);enableEmptyStateAction=!0;emptyStateFilteredHeader=()=>n(this._locales.empty_state.filtered.header);emptyStateFilteredContent=()=>n(this._locales.empty_state.filtered.content);emptyStateActionClick;shadow=!0;get _el(){return this}_locales={};_extraHeaders=[];_columns=[];_items=[];_enableRowSelection=this.enableRowSelection;_rowSelectionLimit;_rowActionsFloatingAll=[];_rowActionsFloating=[];_rowActionsRow=[];_footerHidden=!1;_ctrlDown=!1;_hasCustomFilterSlot=!1;_hasCustomActionsSlot=!1;_floatingMenuShown=!1;_resizeTimeout;componentWillLoad(){this._hasCustomFilterSlot=!!this._el.querySelector(':scope > [slot="custom-filter"]'),this._hasCustomActionsSlot=!!this._el.querySelector(':scope > [slot="custom-actions"]'),this._setRowSelectionData(),this._setLocales(),this._parseItems(this.items),this._generateExtraHeaders(),this._generateColumns()}componentDidRender(){this.hasRendered.emit()}render(){return o(a,{key:"ae904712e08489474afdc5845533f6e9ac95301b",class:"z-0 flex flex-col"},o("p-table-container",{key:"dda70ad29ac9043645d12913365af8f6e4afdffb"},this.enableHeader&&o("p-table-header",{key:"701ccce426272567e11263f305a76684306fac37",actionButtonTemplate:this.actionButtonTemplate,actionIcon:this.actionButtonIcon,actionLoading:this.actionButtonLoading,actionText:this.actionButtonText,activeQuickFilterIdentifier:this.activeQuickFilterIdentifier,canUseAction:this.actionButtonEnabled,class:"mb-8",enableAction:this.enableAction,enableExport:this.enableExport,enableFilter:this.enableFilter,enableFilterDesktop:this.enableFilterDesktop,enableSearch:this.enableSearch,filterButtonTemplate:this.filterButtonTemplate,itemsSelectedAmount:this.selectedRows?.length,loading:this.headerLoading,query:this.query,quickFilters:this.quickFilters,selectedFiltersAmount:this.selectedFiltersAmount,onAction:()=>this.action.emit(),onExport:()=>this.export.emit(),onFilter:()=>this.filter.emit(),onQueryChange:({detail:t})=>this.queryChange.emit(t),onQuickFilter:({detail:t})=>this.quickFilter.emit(t)},this._hasCustomFilterSlot&&o("slot",{key:"adc6c02c1b89d0acef5ab2837f9e5fb3864fa7d4",name:"custom-filter",slot:"custom-filter"}),this._hasCustomActionsSlot&&o("slot",{key:"230b0b3960c58402ed66c4a94ec06c6296900ba6",name:"custom-actions",slot:"custom-actions"})),this._getExtraHeader(),this._getHeader(),o("div",{key:"1295202d7cedd4513e1d28caebadc95e85831885",class:"flex flex-1 flex-col"},this._getRows(),o("slot",{key:"419e887ff55242fab18a8606abd736a0fc9f46bf",name:"custom-rows"})),this.enableFloatingMenu&&this._enableRowSelection?o("p-floating-menu-container",{amount:this.selectedRows?.length,amountSelectedTemplate:this.floatingMenuAmountSelectedTemplate,class:r({hasFooter:this.enableFooter&&!this._footerHidden,active:!!this.selectedRows?.length,shown:this._floatingMenuShown}),enableAmountSelected:!!this._rowActionsFloating?.length,usedInTable:!0,onClose:()=>this._selectAllChange(null,!1)},this._rowActionsFloating?.length&&this._rowActionsFloating.map((t=>o("p-floating-menu-item",{disabled:t.disabled,icon:t.icon,iconFlip:t.iconFlip,iconRotate:t.iconRotate,loading:t.loading,slot:"floating-menu-item",onClick:()=>t.disabled||t.loading||!t.action||"single"!==t.type?t.action(this.selectedRows,!0):t.action(this.selectedRows[0],!1)},t.label)))):"",this.enableFooter&&o("p-table-footer",{key:"34eca9c12bcd8eac4a0f9b7c56660858e481f897",enablePaginationPages:this.enablePaginationPages,enablePaginationSize:this.enablePaginationSize,hideOnSinglePage:this.hideOnSinglePage,loading:this.footerLoading,page:this.page,pageSize:this.pageSize,pageSizeOptions:this.pageSizeOptions,tableHeaderHasAction:this.enableHeader&&this.enableAction&&this.actionButtonEnabled,total:this.total,onHiddenChange:({detail:t})=>this._footerHidden=t,onPageChange:({detail:t})=>this.pageChange.emit(t),onPageSizeChange:({detail:t})=>this.pageSizeChange.emit(t)})))}async _setLocales(){this._locales=await l(this._el)}onTableDefinitionUpdated(){this._generateColumns()}keyDown({ctrlKey:t,metaKey:e}){const i=h();(e&&i||t&&!i)&&!0!==this._ctrlDown&&(this._ctrlDown=!0)}keyUp({code:t}){const e=h();(["MetaLeft","MetaRight"].includes(t)&&e||["ControlLeft","ControlRight"].includes(t)&&!e)&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}visibilityChange(){"hidden"===document.visibilityState&&!1!==this._ctrlDown&&(this._ctrlDown=!1)}_parseItems(t){this._items=t?Array.isArray(t)?t:JSON.parse(t):[]}_setRowSelectionData(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout((()=>{const t=c(),e=[...this._el.querySelectorAll(":scope > p-table-row-action")];this._rowActionsRow=e.filter((t=>"both"===t.type||"single"===t.type)),this._rowActionsFloatingAll=e.filter((e=>this.enableRowSelection&&("both"===e.type||"multi"===e.type)||t&&"single"===e.type)).map((t=>("single"===t.type&&(t.disabled=this.selectedRows?.length>1),t)));let i=this.rowSelectionLimit;t&&this._rowActionsFloatingAll?.length&&(void 0!==i&&this.enableRowSelection||!this.enableRowSelection)&&(i=1),this._rowSelectionLimit=i;let s=this.enableRowSelection;t&&this._rowActionsFloatingAll?.length&&!s&&(s=!0),this._enableRowSelection=s,this._floatingMenuShown&&this._showFloatingMenu()}),200)}_generateExtraHeaders(){let t=[...this._el.querySelectorAll("p-table-extra-header")];t=this._parseDefinitions(t),this._extraHeaders=t}_generateColumns(){let t=[...this._el.querySelectorAll("p-table-column")];t=this._parseDefinitions(t),this._columns=t}_getExtraHeader(){return this._extraHeaders?.length?o("p-table-row",{isLast:!0,variant:"header-secondary"},this._extraHeaders.map(((t,e)=>o("p-table-cell",{checkboxOffset:0===e&&this._enableRowSelection,definition:t,index:e,variant:"header-secondary"},o("b",null,t.name))))):null}_getHeader(){return o("p-table-row",{variant:"header"},this._columns.map(((t,e)=>o("p-table-cell",{checkbox:0===e||t.hasCheckbox?this._getCheckbox(null,this.loading?"loading":"header"):null,definition:t,index:e,value:t.name,variant:"header"}))))}_getRows(){return this.loading?Array.from({length:this.amountOfLoadingRows},((t,e)=>o("p-table-row",{enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this.amountOfLoadingRows-1},this._getLoadingColumns(e)))):0===this._items.length?this._getEmptyState():this._items.map(((t,e)=>o("p-table-row",{checked:this._selectionContains(e),enableHover:this._enableRowSelection||this.enableRowClick,isLast:e===this._items.length-1,onClick:t=>this._rowClick(t,e)},this._getRowColumns(t,e),this._getActions(t,e))))}_getActions(t,e){const i=this._rowActionsRow.filter((e=>!e.showFunction||e.showFunction(t)));return i?.length&&!c()?o("p-table-row-actions-container",{checked:this._selectionContains(e),slot:"actions"},i.map((e=>o("p-tooltip",{content:e.label,strategy:"fixed"},o("p-button",{icon:e.icon,iconFlip:e.iconFlip,iconOnly:!0,iconRotate:e.iconRotate,size:"sm",slot:"trigger",variant:"secondary","data-is-action":!0,onClick:()=>"function"==typeof e.action&&e.action?.(t,!1)}))))):null}_getRowColumns(t,e){return this._columns.map(((i,s)=>o("p-table-cell",{checkbox:0===s||i.hasCheckbox?this._getCheckbox(e):null,definition:i,index:s,item:t,rowIndex:e})))}_getLoadingColumns(t){return this._columns.map(((e,i)=>o("p-table-cell",{checkbox:0===i||e.hasCheckbox?this._getCheckbox(t,"loading"):null,definition:e,index:i,rowIndex:t,variant:"loading"})))}_getCheckbox(t,e="default"){if(!this._enableRowSelection||!this.selectionKey&&!this._rowActionsFloating?.length)return;if("loading"===e)return o("p-loader",{class:"h-6 w-6 rounded",variant:"ghost"});if("header"===e)return o("p-checkbox",{checked:this._selectionContainsAll(),class:p({"opacity-0":void 0!==this._rowSelectionLimit}),disabled:void 0!==this._rowSelectionLimit,indeterminate:this._selectionIndeterminate(),onCheckedChange:t=>this._selectAllChange(t)});const i=this._items[t],s=this._selectionContains(t);return o("p-checkbox",{checked:s,class:"flex-shrink-0",disabled:this.canSelectKey&&!i[this.canSelectKey]||void 0!==this._rowSelectionLimit&&!s&&this.selectedRows.length===this._rowSelectionLimit,onCheckedChange:e=>this._checkboxChange(e,t)})}_getEmptyState(){return o("p-empty-state",this.query?.length||this.selectedFiltersAmount?{class:"my-16 self-center",content:this.emptyStateFilteredContent(),header:this.emptyStateFilteredHeader(),illustration:"search"}:{actionIcon:"plus",actionText:this.emptyStateAction(),class:"my-16 self-center",content:this.emptyStateContent(),enableAction:this.enableEmptyStateAction,header:this.emptyStateHeader(),illustration:"table",onAction:()=>this.enableAction&&this.action.emit()})}_selectAllChange(t,e){if(this._enableRowSelection){if(void 0===e?t?.detail??e:e){const t=[];for(let e=0;e<this._items.length;e++){const i=this._items[e];if((!this.canSelectKey||i[this.canSelectKey])&&!this._selectionContains(e)&&(t.push(i),this.rowSelected.emit(i),void 0!==this._rowSelectionLimit&&this.selectedRows.length+t.length===this._rowSelectionLimit))break}return this.selectedRows=[...this.selectedRows,...t],this.selectedRowsChange.emit(this.selectedRows),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu())}for(let t=0;t<this.selectedRows.length;t++){const e=this.selectedRows[t],i=this._items.find((i=>this._getSelectionValue(i,t)===this._getSelectionValue(e,t)));i&&this.rowDeselected.emit(i)}this.selectedRows=[],this.selectedRowsChange.emit(this.selectedRows)}}_checkboxChange({detail:t,target:e},i){if(!this._enableRowSelection)return;if(t&&void 0!==this._rowSelectionLimit&&this.selectedRows.length>=this._rowSelectionLimit)return void(e.checked=!1);const s=this._items[i];if(this.canSelectKey&&!s[this.canSelectKey])return void(e.checked=!1);if(t)return this.selectedRows=[...this.selectedRows,{...s,index:i}],this.selectedRowsChange.emit(this.selectedRows),this.rowSelected.emit(s),void(this.enableFloatingMenu&&!this._floatingMenuShown&&this._showFloatingMenu());const o=this._selectionContains(i,!0),a=[...this.selectedRows];a.splice(o,1),this.selectedRows=a,this.selectedRowsChange.emit(this.selectedRows),this.rowDeselected.emit(s)}_getSelectionValue(t,e){return this.selectionKey&&t?.[this.selectionKey]||e}_selectionContains(t,e=!1){const i=this.selectedRows.findIndex((e=>e.index===t));return e?i:-1!==i}_selectionContainsAll(){let t=!0;if(!this._items?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!0;for(let e=0;e<this._items?.length;e++)if(!this._selectionContains(e)){t=!1;break}return t}_selectionIndeterminate(){if(!this._items?.length||!this.selectedRows?.length)return!1;if(void 0!==this._rowSelectionLimit&&this.selectedRows.length===this._rowSelectionLimit)return!1;let t=0;for(let e=0;e<this._items?.length;e++)this._selectionContains(e)&&t++;return t>0&&t!==this._items.length}_rowClick(t,e){const i=t.target;if("input"===i.tagName.toLowerCase()||"checkbox"===i.type)return;const s=this._findRow(t.target);if(this._findRowAction(t.target))return;if(this.enableRowClick)return void this.rowClick.emit({item:this._items[e],ctrlDown:this._ctrlDown});if(!this._enableRowSelection)return;const o=s?.querySelector('input[type="checkbox"]');o&&(o.checked=!o.checked,this._checkboxChange(o,e))}_findRow(t){return t?"p-table-row"===t?.tagName?.toLowerCase()?t:this._findRow(t?.parentElement):t}_findRowAction(t){return t?null!==t.dataset.isAction&&"false"!==t.dataset.isAction?t:"p-table-row"===t?.tagName?.toLowerCase()?null:this._findRowAction(t?.parentElement):null}_showFloatingMenu(){let t=this._rowActionsFloatingAll;1===this.rowSelectionLimit&&t.some((t=>("single"===t.type||"both"===t.type)&&t.showFunction))&&(t=t.filter((t=>"multi"===t.type||!t.showFunction||t.showFunction(this.selectedRows[0])))),this._rowActionsFloating=t,this._floatingMenuShown=!0}_parseDefinitions(t){return t.map((t=>this._parseDefinitionSizes(t)))}_parseDefinitionSizes(t){const e=t;let i={default:"full"};"string"!=typeof t.sizes||["auto","hidden","full"].includes(t.sizes)||(t.sizes=JSON.parse(t.sizes));for(const[t,s]of u.entries())i[s]="auto"!==e.sizes&&"hidden"!==e.sizes&&"full"!==e.sizes&&"number"!=typeof e.sizes?e.sizes[s]??i[u[t-1]]:"auto"===e.sizes?"full":e.sizes;return t.parsedSizes=i,t}static get watchers(){return{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.z-0{z-index:0}.my-16{margin-bottom:4rem;margin-top:4rem}.mb-8{margin-bottom:2rem}.flex{display:flex}.table{display:table}.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}.resize{resize:both}.flex-col{flex-direction:column}.self-center{align-self:center}.rounded{border-radius:.25rem}.opacity-0{opacity:0}.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)}"}},[772,"p-table",{items:[1],loading:[4],headerLoading:[4,"header-loading"],footerLoading:[4,"footer-loading"],amountOfLoadingRows:[2,"amount-of-loading-rows"],enableRowSelection:[4,"enable-row-selection"],rowSelectionLimit:[2,"row-selection-limit"],enableRowClick:[4,"enable-row-click"],selectedRows:[16],enableFloatingMenu:[4,"enable-floating-menu"],floatingMenuAmountSelectedTemplate:[16],selectionKey:[1,"selection-key"],canSelectKey:[1,"can-select-key"],enableHeader:[4,"enable-header"],quickFilters:[1,"quick-filters"],activeQuickFilterIdentifier:[1,"active-quick-filter-identifier"],enableSearch:[4,"enable-search"],query:[1025],enableFilter:[4,"enable-filter"],enableFilterDesktop:[4,"enable-filter-desktop"],selectedFiltersAmount:[2,"selected-filters-amount"],filterButtonTemplate:[16],enableAction:[4,"enable-action"],actionButtonLoading:[4,"action-button-loading"],actionButtonEnabled:[4,"action-button-enabled"],actionButtonIcon:[1,"action-button-icon"],actionButtonText:[1,"action-button-text"],actionButtonTemplate:[16],enableFooter:[4,"enable-footer"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],enableExport:[4,"enable-export"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],hideOnSinglePage:[4,"hide-on-single-page"],emptyStateHeader:[16],emptyStateContent:[16],emptyStateAction:[16],enableEmptyStateAction:[4,"enable-empty-state-action"],emptyStateFilteredHeader:[16],emptyStateFilteredContent:[16],shadow:[4],_locales:[32],_extraHeaders:[32],_columns:[32],_items:[32],_enableRowSelection:[32],_rowSelectionLimit:[32],_rowActionsFloating:[32],_rowActionsRow:[32],_footerHidden:[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{items:[{_parseItems:0}],enableRowSelection:[{_setRowSelectionData:0}],rowSelectionLimit:[{_setRowSelectionData:0}],selectedRows:[{_setRowSelectionData:0}]}]);function W(){"undefined"!=typeof customElements&&["p-table","p-badge","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-empty-state","p-field","p-field-container","p-floating-menu-container","p-floating-menu-item","p-helper","p-icon","p-illustration","p-loader","p-pagination","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-segment-container","p-segment-item","p-table-cell","p-table-container","p-table-footer","p-table-header","p-table-row","p-table-row-actions-container","p-tooltip"].forEach((e=>{switch(e){case"p-table":customElements.get(t(e))||customElements.define(t(e),U);break;case"p-badge":customElements.get(t(e))||b();break;case"p-button":customElements.get(t(e))||f();break;case"p-checkbox":customElements.get(t(e))||g();break;case"p-divider":customElements.get(t(e))||w();break;case"p-dropdown":customElements.get(t(e))||k();break;case"p-dropdown-menu-container":customElements.get(t(e))||y();break;case"p-dropdown-menu-item":customElements.get(t(e))||S();break;case"p-empty-state":customElements.get(t(e))||_();break;case"p-field":customElements.get(t(e))||x();break;case"p-field-container":customElements.get(t(e))||C();break;case"p-floating-menu-container":customElements.get(t(e))||v();break;case"p-floating-menu-item":customElements.get(t(e))||E();break;case"p-helper":customElements.get(t(e))||R();break;case"p-icon":customElements.get(t(e))||j();break;case"p-illustration":customElements.get(t(e))||F();break;case"p-loader":customElements.get(t(e))||A();break;case"p-pagination":customElements.get(t(e))||D();break;case"p-pagination-pages":customElements.get(t(e))||z();break;case"p-pagination-pages-item":customElements.get(t(e))||B();break;case"p-pagination-size":customElements.get(t(e))||L();break;case"p-segment-container":customElements.get(t(e))||T();break;case"p-segment-item":customElements.get(t(e))||H();break;case"p-table-cell":customElements.get(t(e))||O();break;case"p-table-container":customElements.get(t(e))||P();break;case"p-table-footer":customElements.get(t(e))||I();break;case"p-table-header":customElements.get(t(e))||q();break;case"p-table-row":customElements.get(t(e))||M();break;case"p-table-row-actions-container":customElements.get(t(e))||Q();break;case"p-tooltip":customElements.get(t(e))||K()}}))}W();const Y=U,J=W;export{Y as PTable,J as defineCustomElement}
|
|
@@ -606,7 +606,7 @@ const Button = class {
|
|
|
606
606
|
: 'button';
|
|
607
607
|
const hostClass = cn('p-button inline-block', this.class);
|
|
608
608
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
609
|
-
return (h(ThemedHost, { key: '
|
|
609
|
+
return (h(ThemedHost, { key: '0ef121ad3c9aa2b5cb285c16e299976a35632453', class: hostClass }, h(VariableTag, { key: 'd9359022701d8aab1cb2ac3f4dad91f87a7a7cef', class: button({
|
|
610
610
|
variant: this.variant,
|
|
611
611
|
size: this.size,
|
|
612
612
|
loading: asBoolean(this.loading),
|
|
@@ -618,7 +618,7 @@ const Button = class {
|
|
|
618
618
|
active,
|
|
619
619
|
error: asBoolean(this.error),
|
|
620
620
|
underline: asBoolean(this.underline) && VariableTag === 'a',
|
|
621
|
-
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '
|
|
621
|
+
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'cfb7b4d4afec57325fe0cc265810a46611ec408f', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.icon &&
|
|
622
622
|
this.iconPosition === 'start' &&
|
|
623
623
|
!(this.iconOnly && this.loading) &&
|
|
624
624
|
this._getIcon(), this.iconOnlyAtBreakpoint === 'never' || !this._isIconOnly
|
|
@@ -627,7 +627,7 @@ const Button = class {
|
|
|
627
627
|
this.iconPosition === 'end' &&
|
|
628
628
|
!this.loading &&
|
|
629
629
|
!this.chevron &&
|
|
630
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '
|
|
630
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '552bc6e0214099807b385102f6ebdd3895e170cb', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.loading && h("p-loader", { key: 'e6009e25455a807f0e1c861752fa81ea0238199c', color: loaderColor }))));
|
|
631
631
|
}
|
|
632
632
|
handleClick(ev) {
|
|
633
633
|
if (this.loading || this.disabled) {
|
|
@@ -656,10 +656,26 @@ const Button = class {
|
|
|
656
656
|
this._isIconOnly = isSmallerThanScreen('desktop-xs');
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
|
+
case 'desktop-xs': {
|
|
660
|
+
this._isIconOnly = isSmallerThanScreen('desktop-sm');
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
case 'desktop-sm': {
|
|
664
|
+
this._isIconOnly = isSmallerThanScreen('desktop');
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
659
667
|
case 'desktop': {
|
|
668
|
+
this._isIconOnly = isSmallerThanScreen('desktop-lg');
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
case 'desktop-lg': {
|
|
660
672
|
this._isIconOnly = isSmallerThanScreen('desktop-xl');
|
|
661
673
|
break;
|
|
662
674
|
}
|
|
675
|
+
case 'desktop-xl': {
|
|
676
|
+
this._isIconOnly = isSmallerThanScreen('layout-2560');
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
663
679
|
}
|
|
664
680
|
this._iconOnlyResizeTimeout = undefined;
|
|
665
681
|
}, 200);
|
package/dist/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" name="viewport"> <title>Stencil Component Starter</title> <link rel="modulepreload" href="/build/p-
|
|
1
|
+
<!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" name="viewport"> <title>Stencil Component Starter</title> <link rel="modulepreload" href="/build/p-4c0dc43f.js"><link rel="modulepreload" href="/build/p-6XOzWrsN.js"><link rel="modulepreload" href="/build/p-C5CTp9IA.js"><link rel="modulepreload" href="/build/p-C8RpJKnN.js"><link rel="modulepreload" href="/build/p-CBWjHURv.js"><link rel="modulepreload" href="/build/p-CSySY6aC.js"><link rel="modulepreload" href="/build/p-CWO2YJCh.js"><link rel="modulepreload" href="/build/p-ChV9xqsO.js"><link rel="modulepreload" href="/build/p-xs4N_Y-0.js"><link rel="modulepreload" href="/build/p-yFtRjnrU.js"><script type="module" src="/build/p-4c0dc43f.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> <link href="/build/p-ea6cc0bf.css" rel="stylesheet"> </head> <body> <p-button>Test</p-button> <script data-build="2026-09-07T10:24:52">
|
|
2
2
|
if ('serviceWorker' in navigator && location.protocol !== 'file:') {
|
|
3
3
|
window.addEventListener('load', function() {
|
|
4
4
|
navigator.serviceWorker.register('/sw.js')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,a as e,d as r,h as a}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-CSySY6aC.js";import{a as d}from"./p-C5CTp9IA.js";import{c as h}from"./p-xs4N_Y-0.js";import{c}from"./p-CWO2YJCh.js";import{i as n}from"./p-C8RpJKnN.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const w=o(["group/button","font-semibold leading-4","flex items-center justify-center","cursor-pointer font-geist","border-solid"],{variants:{variant:{primary:["border-storm-500/20","text-white"],secondary:null,text:"border-0",transparent:"border-transparent bg-transparent",dropdown:null},active:{true:null,false:null},error:{true:null,false:null},loading:{true:"cursor-wait",false:null},size:{sm:["h-6 gap-1 text-xs"],base:["h-8 gap-2 text-sm"],lg:["h-10 gap-2 text-base"]},disabled:{true:"cursor-not-allowed border-transparent",false:null},buttonGroupPosition:{none:null,start:null,center:null,end:null},iconOnly:{true:"justify-center",false:"w-inherit py-1"},hasChevron:{true:null,false:null},underline:{true:"underline",false:"no-underline"}},compoundVariants:[{variant:["secondary","dropdown"],class:["bg-white","dark:bg-white/15"]},{variant:["primary","secondary","dropdown"],disabled:!1,class:"border"},{variant:["primary","secondary","transparent","dropdown"],buttonGroupPosition:"none",class:"rounded-lg"},{variant:["primary","secondary","transparent","dropdown"],buttonGroupPosition:"start",class:"rounded-s-lg"},{variant:["primary","secondary","transparent","dropdown"],buttonGroupPosition:"end",class:"rounded-e-lg"},{variant:["secondary","dropdown"],disabled:!1,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{variant:"primary",class:"\n dark:border-0\n dark:active:border-0\n "},{variant:"primary",disabled:!0,class:"\n bg-indigo-200\n dark:bg-indigo-600/30 dark:text-white/30\n "},{variant:"primary",disabled:!1,class:"bg-indigo-600"},{variant:"primary",disabled:!1,loading:!1,class:["\n active:border-storm-500/10 active:text-white/60 active:ring-2\n dark:active:ring-0\n ","\n drop-shadow-primary-button\n hover:bg-indigo-700 hover:drop-shadow-2\n active:ring-indigo-100\n "]},{variant:"primary",disabled:!1,loading:!1,active:!0,class:"ring-2"},{variant:"primary",disabled:!1,loading:!1,active:!0,class:"ring-indigo-100"},{variant:["secondary","dropdown"],disabled:!0,class:"\n border bg-white-600 text-storm-100\n dark:border-white/5 dark:bg-white/5 dark:text-hurricane-400\n "},{variant:["secondary","dropdown"],disabled:!1,class:"\n text-storm-500\n dark:text-white\n "},{variant:["secondary","dropdown"],disabled:!1,loading:!1,class:["\n drop-shadow-1\n hover:bg-white-600 hover:drop-shadow-1\n active:text-storm-500/60 active:ring-indigo-100\n ","\n dark:hover:bg-white/25\n dark:active:bg-white/25 dark:active:text-white/60 dark:active:ring-0\n "]},{variant:["secondary","dropdown"],disabled:!1,loading:!1,error:!1,class:["active:border-indigo-600 active:ring active:ring-2","dark:active:ring-0"]},{variant:["secondary","dropdown"],disabled:!1,loading:!1,active:!0,error:!1,class:["border-indigo-600 ring ring-2 ring-indigo-100","dark:ring-0"]},{variant:["secondary","dropdown"],error:!1,active:!1,class:["\n border-storm-500/20\n dark:border-transparent\n "]},{variant:["secondary","dropdown"],error:!0,class:["\n border border-negative-red-500 text-negative-red-800 ring ring-2\n ring-negative-red-50\n active:text-negative-red-800\n ","\n dark:border-negative-red-700 dark:text-negative-red-alternative\n dark:ring-0\n "]},{variant:["text","transparent"],disabled:!1,class:"\n text-indigo-700\n hover:text-indigo-800\n "},{variant:["text","transparent"],disabled:!0,class:"text-indigo-300"},{variant:["text","transparent"],disabled:!1,loading:!1,class:"active:text-indigo-800"},{variant:["primary","secondary","transparent"],size:["base","sm"],iconOnly:!1,class:"px-2"},{variant:["primary","secondary","transparent"],size:"lg",iconOnly:!1,class:"px-3"},{variant:"dropdown",iconOnly:!1,class:"p-2"},{variant:["primary","secondary","transparent","text"],iconOnly:!1,class:"py-1"},{size:"sm",iconOnly:!0,hasChevron:!1,class:"w-6"},{size:"base",iconOnly:!0,hasChevron:!1,class:"w-8"},{size:"lg",iconOnly:!0,hasChevron:!1,class:"w-10"}]}),p=o([],{variants:{size:{sm:"text-xs",base:"text-base",lg:"text-base"},variant:{primary:null,secondary:null,text:null,transparent:null,dropdown:null},disabled:{true:null,false:null},active:{true:null,false:null},error:{true:null,false:null},iconOnly:{true:null,false:null}},compoundVariants:[{variant:"primary",disabled:!1,active:!1,error:!1,class:"\n text-indigo-300\n group-hover/button:text-white\n group-active/button:text-white/60\n "},{variant:"primary",disabled:!1,active:!0,class:"text-white/60"},{variant:["secondary","dropdown"],disabled:!1,active:!1,error:!1,class:["\n text-storm-300\n group-hover/button:text-storm-500\n group-active/button:text-storm-500/60\n ","\n dark:group-hover/button:text-white\n dark:group-active/button:text-white/60\n "]},{variant:["secondary","dropdown"],disabled:!1,active:!1,iconOnly:!1,error:!1,class:"dark:text-hurricane-200"},{variant:["secondary","dropdown"],disabled:!1,active:!1,iconOnly:!0,error:!1,class:"dark:text-white"},{variant:["secondary","dropdown"],disabled:!1,active:!0,error:!1,class:"\n text-storm-500/60\n dark:text-white/60\n "},{variant:["transparent","text"],disabled:!1,active:!1,class:"\n text-indigo-500\n group-hover/button:text-indigo-700\n group-active/button:text-indigo-800\n "},{variant:["secondary","dropdown"],active:!1,error:!0,class:"\n text-negative-red-500\n group-hover/button:text-negative-red-800\n dark:text-negative-red-alternative\n "},{variant:["secondary","dropdown"],active:!0,error:!0,class:"text-negative-red-800"}]}),x=class{constructor(r){t(this,r),this.onClick=e(this,"onClick",3)}label;as="button";underline=!1;tabIndex=0;variant="primary";active=!1;error=!1;href;target;size="base";type="button";loading=!1;chevron=!1;chevronPosition="end";disabled=!1;icon;iconOnly=!1;iconOnlyAtBreakpoint="never";iconClass;iconPosition="start";iconFlip;iconRotate;inheritText=!1;buttonGroupPosition="none";class;onClick;get _host(){return r(this)}_iconOnlyResizeTimeout;_isIconOnly=!1;componentDidLoad(){this._onWindowResize()}render(){let t="white";switch(this.variant){case"secondary":case"dropdown":case"transparent":t="off-white";break;case"text":t="storm"}const e="text"===this.variant||this.href?.length||"a"===this.as?"a":"button",r=h("p-button inline-block",this.class),o=d(this.active)||r?.includes("active");return a(i,{key:"0ef121ad3c9aa2b5cb285c16e299976a35632453",class:r},a(e,{key:"d9359022701d8aab1cb2ac3f4dad91f87a7a7cef",class:w({variant:this.variant,size:this.size,loading:d(this.loading),disabled:d(this.disabled),buttonGroupPosition:this.buttonGroupPosition,iconOnly:d(this.iconOnly)||this._isIconOnly&&"never"!==this.iconOnlyAtBreakpoint,hasChevron:!!this.chevron,active:o,error:d(this.error),underline:d(this.underline)&&"a"===e}),disabled:d(this.disabled),href:this.href,tabIndex:this.tabIndex,target:this.target,type:"text"===this.variant?void 0:this.type},this.chevron&&"start"===this.chevronPosition&&a("p-icon",{key:"cfb7b4d4afec57325fe0cc265810a46611ec408f",rotate:"up"===this.chevron?180:0,variant:"caret"}),this.icon&&"start"===this.iconPosition&&!(this.iconOnly&&this.loading)&&this._getIcon(),"never"!==this.iconOnlyAtBreakpoint&&this._isIconOnly?"":this.label??a("slot",null),this.icon&&"end"===this.iconPosition&&!this.loading&&!this.chevron&&this._getIcon(),this.chevron&&!this.loading&&"end"===this.chevronPosition&&a("p-icon",{key:"552bc6e0214099807b385102f6ebdd3895e170cb",rotate:"up"===this.chevron?180:0,variant:"caret"}),this.loading&&a("p-loader",{key:"e6009e25455a807f0e1c861752fa81ea0238199c",color:t})))}handleClick(t){this.loading||this.disabled?t.preventDefault():("submit"===this.type&&this._host.closest("form").requestSubmit(),this.onClick.emit(t))}_onWindowResize(){"never"!==this.iconOnlyAtBreakpoint&&(this._iconOnlyResizeTimeout&&clearTimeout(this._iconOnlyResizeTimeout),this._iconOnlyResizeTimeout=setTimeout((()=>{switch(this.iconOnlyAtBreakpoint){case"mobile":this._isIconOnly=c("tablet");break;case"tablet":this._isIconOnly=c("desktop-xs");break;case"desktop-xs":this._isIconOnly=c("desktop-sm");break;case"desktop-sm":this._isIconOnly=c("desktop");break;case"desktop":this._isIconOnly=c("desktop-lg");break;case"desktop-lg":this._isIconOnly=c("desktop-xl");break;case"desktop-xl":this._isIconOnly=c("layout-2560")}this._iconOnlyResizeTimeout=void 0}),200))}_getIcon(){if(this.icon)return a("p-icon",{class:h(p({size:this.size,variant:this.variant,disabled:d(this.disabled),active:d(this.active),error:d(this.error),iconOnly:d(this.iconOnly)}),this.iconClass??""),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon})}static get watchers(){return{iconOnlyMobile:[{_onWindowResize:0}]}}};x.style="*{box-sizing:border-box}.static{position:static}.inline-block{display:inline-block}.flex{display:flex}.h-10{height:2.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-10{width:2.5rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-inherit{width:inherit}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.rounded-e-lg{border-end-end-radius:.5rem;border-start-end-radius:.5rem}.rounded-s-lg{border-end-start-radius:.5rem;border-start-start-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-500\\/20{border-color:rgba(24,30,41,.2)}.border-transparent{border-color:transparent}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.font-geist{font-family:Geist,serif}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.text-amber-100{--tw-text-opacity:1;color:rgb(255 246 194/var(--tw-text-opacity,1))}.text-amber-50{--tw-text-opacity:1;color:rgb(255 250 224/var(--tw-text-opacity,1))}.text-amber-500{--tw-text-opacity:1;color:rgb(225 159 35/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-amber-alternative{--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-current{color:currentColor}.text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-hurricane-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-hurricane-50{--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.text-hurricane-500{--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.text-hurricane-600{--tw-text-opacity:1;color:rgb(46 52 62/var(--tw-text-opacity,1))}.text-hurricane-700{--tw-text-opacity:1;color:rgb(35 41 52/var(--tw-text-opacity,1))}.text-hurricane-800{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-hurricane-900{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-indigo-100{--tw-text-opacity:1;color:rgb(227 236 254/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-indigo-300{--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.text-indigo-400{--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.text-indigo-50{--tw-text-opacity:1;color:rgb(241 246 255/var(--tw-text-opacity,1))}.text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-indigo-700{--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-negative-red-100{--tw-text-opacity:1;color:rgb(255 221 221/var(--tw-text-opacity,1))}.text-negative-red-50{--tw-text-opacity:1;color:rgb(253 237 237/var(--tw-text-opacity,1))}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-negative-red-alternative{--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.text-off-white-100{--tw-text-opacity:1;color:rgb(253 252 251/var(--tw-text-opacity,1))}.text-off-white-200{--tw-text-opacity:1;color:rgb(250 249 248/var(--tw-text-opacity,1))}.text-off-white-300{--tw-text-opacity:1;color:rgb(248 247 244/var(--tw-text-opacity,1))}.text-off-white-400{--tw-text-opacity:1;color:rgb(245 244 241/var(--tw-text-opacity,1))}.text-off-white-50{--tw-text-opacity:1;color:rgb(254 254 253/var(--tw-text-opacity,1))}.text-off-white-500{--tw-text-opacity:1;color:rgb(243 241 237/var(--tw-text-opacity,1))}.text-off-white-600{--tw-text-opacity:1;color:rgb(236 234 229/var(--tw-text-opacity,1))}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.text-off-white-800{--tw-text-opacity:1;color:rgb(213 208 195/var(--tw-text-opacity,1))}.text-positive-green-100{--tw-text-opacity:1;color:rgb(213 251 199/var(--tw-text-opacity,1))}.text-positive-green-50{--tw-text-opacity:1;color:rgb(234 253 227/var(--tw-text-opacity,1))}.text-positive-green-500{--tw-text-opacity:1;color:rgb(92 195 14/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-positive-green-alternative{--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-50{--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-storm-500\\/60{color:rgba(24,30,41,.6)}.text-storm-600{--tw-text-opacity:1;color:rgb(15 22 34/var(--tw-text-opacity,1))}.text-storm-700{--tw-text-opacity:1;color:rgb(8 15 28/var(--tw-text-opacity,1))}.text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-transparent{color:transparent}.text-white,.text-white-500{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white-600{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.text-white-700{--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity,1))}.text-white-800{--tw-text-opacity:1;color:rgb(228 227 227/var(--tw-text-opacity,1))}.text-white\\/60{color:hsla(0,0%,100%,.6)}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))}.drop-shadow-1,.drop-shadow-primary-button{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)}.drop-shadow-primary-button{--tw-drop-shadow:drop-shadow(0px 1px 1px 0px rgba(24,30 41,0.08))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.hover\\:bg-white-600:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.hover\\:text-indigo-800:hover{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.hover\\:drop-shadow-1:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))}.hover\\:drop-shadow-1:hover,.hover\\:drop-shadow-2:hover{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)}.hover\\:drop-shadow-2:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))}.active\\:border-indigo-600:active{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.active\\:border-storm-500\\/10:active{border-color:rgba(24,30,41,.1)}.active\\:text-indigo-800:active{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.active\\:text-negative-red-800:active{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.active\\:text-storm-500\\/60:active{color:rgba(24,30,41,.6)}.active\\:text-white\\/60:active{color:hsla(0,0%,100%,.6)}.active\\:ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.active\\:ring-2:active,.active\\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\\:ring-2:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.active\\:ring-indigo-100:active{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-amber-100{--tw-text-opacity:1;color:rgb(255 246 194/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-amber-50{--tw-text-opacity:1;color:rgb(255 250 224/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-amber-500{--tw-text-opacity:1;color:rgb(225 159 35/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-amber-alternative{--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-current{color:currentColor}.group\\/button:hover .group-hover\\/button\\:text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-50{--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-500{--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-600{--tw-text-opacity:1;color:rgb(46 52 62/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-700{--tw-text-opacity:1;color:rgb(35 41 52/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-800{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-hurricane-900{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-100{--tw-text-opacity:1;color:rgb(227 236 254/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-300{--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-400{--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-50{--tw-text-opacity:1;color:rgb(241 246 255/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-700{--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-inherit{color:inherit}.group\\/button:hover .group-hover\\/button\\:text-negative-red-100{--tw-text-opacity:1;color:rgb(255 221 221/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-negative-red-50{--tw-text-opacity:1;color:rgb(253 237 237/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-negative-red-alternative{--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-100{--tw-text-opacity:1;color:rgb(253 252 251/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-200{--tw-text-opacity:1;color:rgb(250 249 248/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-300{--tw-text-opacity:1;color:rgb(248 247 244/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-400{--tw-text-opacity:1;color:rgb(245 244 241/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-50{--tw-text-opacity:1;color:rgb(254 254 253/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-500{--tw-text-opacity:1;color:rgb(243 241 237/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-600{--tw-text-opacity:1;color:rgb(236 234 229/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-off-white-800{--tw-text-opacity:1;color:rgb(213 208 195/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-positive-green-100{--tw-text-opacity:1;color:rgb(213 251 199/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-positive-green-50{--tw-text-opacity:1;color:rgb(234 253 227/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-positive-green-500{--tw-text-opacity:1;color:rgb(92 195 14/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-positive-green-alternative{--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-50{--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-600{--tw-text-opacity:1;color:rgb(15 22 34/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-700{--tw-text-opacity:1;color:rgb(8 15 28/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-storm-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-transparent{color:transparent}.group\\/button:hover .group-hover\\/button\\:text-white,.group\\/button:hover .group-hover\\/button\\:text-white-500{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-white-600{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-white-700{--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity,1))}.group\\/button:hover .group-hover\\/button\\:text-white-800{--tw-text-opacity:1;color:rgb(228 227 227/var(--tw-text-opacity,1))}.group\\/button:active .group-active\\/button\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.group\\/button:active .group-active\\/button\\:text-storm-500\\/60{color:rgba(24,30,41,.6)}.group\\/button:active .group-active\\/button\\:text-white\\/60{color:hsla(0,0%,100%,.6)}.dark\\:border-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-width:0}.dark\\:border-negative-red-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(147 16 16/var(--tw-border-opacity,1))}.dark\\:border-transparent:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:transparent}.dark\\:border-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.05)}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-amber-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 246 194/var(--tw-text-opacity,1))}.dark\\:text-amber-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 250 224/var(--tw-text-opacity,1))}.dark\\:text-amber-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(225 159 35/var(--tw-text-opacity,1))}.dark\\:text-amber-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.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-black:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.dark\\:text-current:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:currentColor}.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-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-hurricane-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(232 232 234/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-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(46 52 62/var(--tw-text-opacity,1))}.dark\\:text-hurricane-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(35 41 52/var(--tw-text-opacity,1))}.dark\\:text-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-900:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.dark\\:text-indigo-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(227 236 254/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-indigo-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(187 209 253/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-indigo-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(241 246 255/var(--tw-text-opacity,1))}.dark\\:text-indigo-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.dark\\:text-indigo-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.dark\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:text-indigo-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:text-indigo-900:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.dark\\:text-inherit:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:inherit}.dark\\:text-negative-red-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 221 221/var(--tw-text-opacity,1))}.dark\\:text-negative-red-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(253 237 237/var(--tw-text-opacity,1))}.dark\\:text-negative-red-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.dark\\:text-negative-red-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.dark\\:text-negative-red-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(141 16 16/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-off-white-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(253 252 251/var(--tw-text-opacity,1))}.dark\\:text-off-white-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(250 249 248/var(--tw-text-opacity,1))}.dark\\:text-off-white-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(248 247 244/var(--tw-text-opacity,1))}.dark\\:text-off-white-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(245 244 241/var(--tw-text-opacity,1))}.dark\\:text-off-white-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(254 254 253/var(--tw-text-opacity,1))}.dark\\:text-off-white-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(243 241 237/var(--tw-text-opacity,1))}.dark\\:text-off-white-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(236 234 229/var(--tw-text-opacity,1))}.dark\\:text-off-white-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:text-off-white-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(213 208 195/var(--tw-text-opacity,1))}.dark\\:text-positive-green-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(213 251 199/var(--tw-text-opacity,1))}.dark\\:text-positive-green-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(234 253 227/var(--tw-text-opacity,1))}.dark\\:text-positive-green-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(92 195 14/var(--tw-text-opacity,1))}.dark\\:text-positive-green-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 100 7/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-storm-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-storm-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-storm-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-storm-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-storm-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.dark\\:text-storm-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-storm-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(15 22 34/var(--tw-text-opacity,1))}.dark\\:text-storm-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(8 15 28/var(--tw-text-opacity,1))}.dark\\:text-storm-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.dark\\:text-transparent:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:transparent}.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-500: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-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:text-white-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity,1))}.dark\\:text-white-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(228 227 227/var(--tw-text-opacity,1))}.dark\\:text-white\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.3)}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:bg-white\\/25:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.dark\\:active\\:border-0:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-width:0}.dark\\:active\\:bg-white\\/25:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.dark\\:active\\:text-white\\/60:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:active\\:ring-0:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 246 194/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 250 224/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(225 159 35/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-black:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-current:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:currentColor}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(46 52 62/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(35 41 52/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-900:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(227 236 254/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(241 246 255/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-900:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-inherit:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:inherit}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 221 221/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(253 237 237/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(253 252 251/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(250 249 248/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(248 247 244/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(245 244 241/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(254 254 253/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(243 241 237/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(236 234 229/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(213 208 195/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(213 251 199/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(234 253 227/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(92 195 14/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-50:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(15 22 34/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(8 15 28/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-transparent:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:transparent}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(228 227 227/var(--tw-text-opacity,1))}.group\\/button:active .dark\\:group-active\\/button\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:border-0:where([data-theme=dark],[data-theme=dark] *){border-width:0}.dark\\:border-negative-red-700:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(147 16 16/var(--tw-border-opacity,1))}.dark\\:border-transparent:where([data-theme=dark],[data-theme=dark] *){border-color:transparent}.dark\\:border-white\\/5:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.05)}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-amber-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 246 194/var(--tw-text-opacity,1))}.dark\\:text-amber-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 250 224/var(--tw-text-opacity,1))}.dark\\:text-amber-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(225 159 35/var(--tw-text-opacity,1))}.dark\\:text-amber-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.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-black:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.dark\\:text-current:where([data-theme=dark],[data-theme=dark] *){color:currentColor}.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-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-hurricane-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(232 232 234/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-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(46 52 62/var(--tw-text-opacity,1))}.dark\\:text-hurricane-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(35 41 52/var(--tw-text-opacity,1))}.dark\\:text-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-900:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.dark\\:text-indigo-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(227 236 254/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-indigo-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(187 209 253/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-indigo-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(241 246 255/var(--tw-text-opacity,1))}.dark\\:text-indigo-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.dark\\:text-indigo-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.dark\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:text-indigo-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:text-indigo-900:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.dark\\:text-inherit:where([data-theme=dark],[data-theme=dark] *){color:inherit}.dark\\:text-negative-red-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 221 221/var(--tw-text-opacity,1))}.dark\\:text-negative-red-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(253 237 237/var(--tw-text-opacity,1))}.dark\\:text-negative-red-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.dark\\:text-negative-red-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.dark\\:text-negative-red-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(141 16 16/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-off-white-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(253 252 251/var(--tw-text-opacity,1))}.dark\\:text-off-white-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(250 249 248/var(--tw-text-opacity,1))}.dark\\:text-off-white-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(248 247 244/var(--tw-text-opacity,1))}.dark\\:text-off-white-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(245 244 241/var(--tw-text-opacity,1))}.dark\\:text-off-white-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(254 254 253/var(--tw-text-opacity,1))}.dark\\:text-off-white-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(243 241 237/var(--tw-text-opacity,1))}.dark\\:text-off-white-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(236 234 229/var(--tw-text-opacity,1))}.dark\\:text-off-white-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:text-off-white-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(213 208 195/var(--tw-text-opacity,1))}.dark\\:text-positive-green-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(213 251 199/var(--tw-text-opacity,1))}.dark\\:text-positive-green-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(234 253 227/var(--tw-text-opacity,1))}.dark\\:text-positive-green-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(92 195 14/var(--tw-text-opacity,1))}.dark\\:text-positive-green-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 100 7/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-storm-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-storm-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-storm-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-storm-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.dark\\:text-storm-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-storm-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(15 22 34/var(--tw-text-opacity,1))}.dark\\:text-storm-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(8 15 28/var(--tw-text-opacity,1))}.dark\\:text-storm-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.dark\\:text-transparent:where([data-theme=dark],[data-theme=dark] *){color:transparent}.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\\:text-white-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\\:text-white-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity,1))}.dark\\:text-white-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(228 227 227/var(--tw-text-opacity,1))}.dark\\:text-white\\/30:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.3)}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:bg-white\\/25:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.dark\\:active\\:border-0:active:where([data-theme=dark],[data-theme=dark] *){border-width:0}.dark\\:active\\:bg-white\\/25:active:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.dark\\:active\\:text-white\\/60:active:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:active\\:ring-0:active:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 246 194/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 250 224/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(225 159 35/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-black:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-current:where([data-theme=dark],[data-theme=dark] *){color:currentColor}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(46 52 62/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(35 41 52/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-hurricane-900:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(227 236 254/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(241 246 255/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-indigo-900:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-inherit:where([data-theme=dark],[data-theme=dark] *){color:inherit}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 221 221/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(253 237 237/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-negative-red-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(253 252 251/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(250 249 248/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(248 247 244/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(245 244 241/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(254 254 253/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(243 241 237/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(236 234 229/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-off-white-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(213 208 195/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(213 251 199/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(234 253 227/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(92 195 14/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-positive-green-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\: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))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-50:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(232 232 234/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(15 22 34/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(8 15 28/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-storm-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-transparent:where([data-theme=dark],[data-theme=dark] *){color:transparent}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-600:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity,1))}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white-800:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(228 227 227/var(--tw-text-opacity,1))}.group\\/button:active .dark\\:group-active\\/button\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}";const g=o(["inline-flex","transform-gpu transition-transform"],{variants:{flip:{none:null,horizontal:"scale-x-flip",vertical:"scale-y-flip"},size:{auto:null,xxs:"text-xxs",xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl"},transform:{true:"scale-[0.9999]",false:null}}}),s=class{constructor(e){t(this,e)}variant;size="base";rotate=0;flip="none";get _el(){return r(this)}componentWillRender(){n[this.variant]||void 0===this.variant||console.warn(`[p-icon] Variant "${this.variant}" does not exist `)}render(){const t=/text-(xs|sm|base|lg|xl)/.test(this._el.className),e=n[this.variant];return a("div",{key:"d710f41ac3d279b128fae8fd465bd8d527fb54b8",class:g({flip:this.flip,size:t?"auto":this.size,transform:"none"!==this.flip||this.rotate>0||this.rotate<0}),innerHTML:e,style:{"--tw-rotate":`${this.rotate}deg`},title:this.variant})}};s.style="*{box-sizing:border-box}:host{--tw-translate-y:0px!important;--tw-translate-x:0px!important;display:inline-flex}.static{position:static}.inline-flex{display:inline-flex}.scale-\\[0\\.9999\\]{--tw-scale-x:0.9999;--tw-scale-y:0.9999}.scale-\\[0\\.9999\\],.scale-x-flip{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))}.scale-x-flip{--tw-scale-x:-1}.scale-y-flip{--tw-scale-y:-1}.scale-y-flip,.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))}.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))}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:2rem;line-height:2.5rem}.text-4xl{font-size:2.5rem;line-height:3rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.5rem;line-height:1rem}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}";const v=class{constructor(e){t(this,e)}show=!0;variant="inline";color="indigo";modalTitle;modalDescription;_show=!1;_showSubscriber;componendDidLoad(){this._show=this.show}componentWillRender(){this._checkShow()}componentShouldUpdate(){this._checkShow()}render(){if(!this._show)return;if("ghost"===this.variant)return a(i,{class:"variant-ghost min-h-4 min-w-4 rounded-2xl"});const t=a("div",{class:`\n loader\n color-${this.color}\n `});return"full-screen"===this.variant?a(i,{class:"variant-full-screen"},a("div",{class:"loading-screen"},a("div",{class:"content"},a("slot",null)))):a(i,{class:`\n variant-default flex\n ${"full-width"===this.variant&&"w-full justify-center text-4xl"}\n `},t)}_checkShow(){this._showSubscriber&&(this._showSubscriber.unsubscribe(),this._showSubscriber=null),"boolean"==typeof this.show?this._show=this.show:this._showSubscriber=this.show?.subscribe((t=>this._show=t))}};v.style=".fixed{position:fixed}.left-0{left:0}.top-0{top:0}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.h-\\[1em\\]{height:1em}.w-\\[1em\\]{width:1em}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.border-2{border-width:2px}.border-off-white-600\\/40{border-color:hsla(43,16%,91%,.4)}.border-white\\/40{border-color:hsla(0,0%,100%,.4)}.border-r-indigo-500\\/40{border-right-color:rgba(142,179,251,.4)}.border-r-storm-400{--tw-border-opacity:1;border-right-color:rgb(70 75 84/var(--tw-border-opacity,1))}.border-t-indigo-500{--tw-border-opacity:1;border-top-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-t-off-white-800{--tw-border-opacity:1;border-top-color:rgb(213 208 195/var(--tw-border-opacity,1))}.border-t-storm-700{--tw-border-opacity:1;border-top-color:rgb(8 15 28/var(--tw-border-opacity,1))}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-off-white-200{--tw-bg-opacity:1;background-color:rgb(250 249 248/var(--tw-bg-opacity,1))}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.h-screen-safe{height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}*{box-sizing:border-box}:host .loader{animation:spin .5s linear infinite;border-radius:9999px;border-style:solid;border-width:2px;display:inline-block;height:1em;width:1em;will-change:transform}:host .loader.color-indigo{--tw-border-opacity:1!important;border-right-color:rgba(142,179,251,.4)!important;border-top-color:rgb(142 179 251/var(--tw-border-opacity,1))!important}:host .loader.color-off-white{--tw-border-opacity:1!important;border-color:hsla(43,16%,91%,.4)!important;border-top-color:rgb(213 208 195/var(--tw-border-opacity,1))!important}:host .loader.color-white{--tw-border-opacity:1!important;border-color:hsla(0,0%,100%,.4)!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}:host .loader.color-storm{--tw-border-opacity:1!important;border-right-color:rgb(70 75 84/var(--tw-border-opacity,1))!important;border-top-color:rgb(8 15 28/var(--tw-border-opacity,1))!important}:host .loading-screen{--tw-bg-opacity:1;align-items:center;background-color:rgb(250 249 248/var(--tw-bg-opacity,1));display:flex;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));justify-content:center;left:0;position:fixed;top:0;width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));z-index:1001}:host .loading-screen:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(35 41 52/var(--tw-bg-opacity,1))}:host .loading-screen:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(35 41 52/var(--tw-bg-opacity,1))}:host .loading-screen .content{max-width:20rem}:host(.variant-ghost){--loading-bg:#f7fafc;--loading-stripe:#fcfdfe;animation:loading 1s ease-in-out infinite;background-color:var(--loading-bg);background:linear-gradient(100deg,hsla(0,0%,100%,0) 40%,var(--loading-stripe) 50%,hsla(0,0%,100%,0) 60%) var(--loading-bg);background-position-x:180%;background-size:200% 100%;box-sizing:border-box;display:block;min-height:1em;min-width:1em;will-change:background,background-position-x,background-color}:host(.variant-ghost[data-theme=dark]){--loading-bg:#363c46;--loading-stripe:#464b54}@keyframes loading{to{background-position-x:-20%}}@keyframes spin{to{transform:rotate(1turn)}}.static{position:static}.inline{display:inline}.min-h-4{min-height:1rem}.w-full{width:100%}.min-w-4{min-width:1rem}.justify-center{justify-content:center}.rounded-2xl{border-radius:1rem}.text-4xl{font-size:2.5rem;line-height:3rem}";export{x as p_button,s as p_icon,v as p_loader}
|