@paperless/core 3.17.3 → 3.18.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.
Files changed (103) hide show
  1. package/dist/assets/icons/time/history.svg +12 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/{p-05f7279a.js → p-112e3ccc.js} +1 -1
  4. package/dist/{paperless/p-C8Ju8eG_.js → build/p-C8RpJKnN.js} +1 -1
  5. package/dist/build/{p-fa7c3951.entry.js → p-c0599b0e.entry.js} +1 -1
  6. package/dist/build/paperless.esm.js +1 -1
  7. package/dist/cjs/{icons-DIczdKrP.js → icons-DOXVTo-k.js} +16 -0
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  10. package/dist/collection/assets/icons/time/history.svg +12 -0
  11. package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
  12. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +1 -1
  13. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
  14. package/dist/collection/components/atoms/icon/icon.component.js +1 -1
  15. package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
  16. package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
  17. package/dist/collection/components/helpers/table/row-action/table-row-action.component.js +1 -1
  18. package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
  19. package/dist/collection/components/molecules/button/button.component.js +1 -1
  20. package/dist/collection/components/molecules/dropzone/dropzone.component.js +1 -1
  21. package/dist/collection/components/molecules/empty-state/empty-state.component.js +1 -1
  22. package/dist/collection/components/molecules/field/field/field.component.js +1 -1
  23. package/dist/collection/components/molecules/label/label.component.js +1 -1
  24. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +1 -1
  25. package/dist/collection/components/molecules/select/select.component.js +2 -2
  26. package/dist/collection/components/molecules/table/header/table-header.component.js +1 -1
  27. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  28. package/dist/collection/components/organisms/table/table.component.js +1 -1
  29. package/dist/collection/utils/icons.js +3 -0
  30. package/dist/components/index.js +1 -1
  31. package/dist/components/{p-wYHaAjO_.js → p-B4-tGTJs.js} +1 -1
  32. package/dist/components/{p-B91CxVcz.js → p-BAQuP-An.js} +1 -1
  33. package/dist/components/{p-B6hIbVwt.js → p-BFvoC7BA.js} +1 -1
  34. package/dist/components/{p-SUrtpFuE.js → p-BRDvNH4S.js} +1 -1
  35. package/dist/components/{p-C0cLQxQE.js → p-BZNy3k2j.js} +1 -1
  36. package/dist/components/{p-Dv2ILejF.js → p-BdzBKuLb.js} +1 -1
  37. package/dist/components/{p-xkXCC7GI.js → p-Bg73A-l5.js} +1 -1
  38. package/dist/components/{p-CTI55iY5.js → p-C3fzR817.js} +1 -1
  39. package/dist/{build/p-C8Ju8eG_.js → components/p-C8RpJKnN.js} +1 -1
  40. package/dist/components/{p-DM-VvZXT.js → p-CYJ2s8gf.js} +1 -1
  41. package/dist/components/{p-D6g8cYWI.js → p-CdX4ibSM.js} +1 -1
  42. package/dist/components/{p-CRBPo2To.js → p-D34oUQRc.js} +1 -1
  43. package/dist/components/{p-Dp4CjRib.js → p-DHzp47zt.js} +1 -1
  44. package/dist/components/{p-CjhbgGH8.js → p-DOjiMWKc.js} +1 -1
  45. package/dist/components/{p-Bk5wUwrW.js → p-DY2oKnxw.js} +1 -1
  46. package/dist/components/{p-COuYu8I6.js → p-D_ZHRLtg.js} +1 -1
  47. package/dist/components/{p-BEo__1-X.js → p-DlYs-VL_.js} +1 -1
  48. package/dist/components/{p-Dkr0Ta5m.js → p-PAx1R45S.js} +1 -1
  49. package/dist/components/{p-BOJwTddb.js → p-Sl3w6Zuw.js} +1 -1
  50. package/dist/components/p-accordion.js +1 -1
  51. package/dist/components/p-attachment.js +1 -1
  52. package/dist/components/{p-BSCgVJQ9.js → p-b-xaFyhe.js} +1 -1
  53. package/dist/components/p-button.js +1 -1
  54. package/dist/components/p-calendar.js +1 -1
  55. package/dist/components/p-card-header.js +1 -1
  56. package/dist/components/p-checkbox.js +1 -1
  57. package/dist/components/p-cropper.js +2 -2
  58. package/dist/components/p-datepicker.js +1 -1
  59. package/dist/components/p-drawer-header.js +1 -1
  60. package/dist/components/p-drawer.js +1 -1
  61. package/dist/components/p-dropdown-menu-item.js +1 -1
  62. package/dist/components/p-dropzone.js +1 -1
  63. package/dist/components/p-empty-state.js +1 -1
  64. package/dist/components/p-field-container.js +1 -1
  65. package/dist/components/p-field.js +1 -1
  66. package/dist/components/p-floating-menu-container.js +1 -1
  67. package/dist/components/p-floating-menu-item.js +1 -1
  68. package/dist/components/p-helper.js +1 -1
  69. package/dist/components/p-icon.js +1 -1
  70. package/dist/components/p-info-panel.js +1 -1
  71. package/dist/components/p-label.js +1 -1
  72. package/dist/components/p-listing-item.js +1 -1
  73. package/dist/components/p-modal-header.js +1 -1
  74. package/dist/components/p-modal.js +1 -1
  75. package/dist/components/p-navbar.js +1 -1
  76. package/dist/components/p-navigation-item.js +1 -1
  77. package/dist/components/{p-CQ6JEZg6.js → p-p7QZcgoc.js} +1 -1
  78. package/dist/components/p-pagination-pages.js +1 -1
  79. package/dist/components/p-pagination-size.js +1 -1
  80. package/dist/components/p-pagination.js +1 -1
  81. package/dist/components/p-profile.js +1 -1
  82. package/dist/components/p-range.js +1 -1
  83. package/dist/components/p-segment-item.js +1 -1
  84. package/dist/components/p-select.js +1 -1
  85. package/dist/components/p-table-footer.js +1 -1
  86. package/dist/components/p-table-header.js +1 -1
  87. package/dist/components/p-table.js +1 -1
  88. package/dist/components/p-toast.js +1 -1
  89. package/dist/components/{p-7-twKt34.js → p-wQxTl8yW.js} +1 -1
  90. package/dist/esm/{icons-C8Ju8eG_.js → icons-C8RpJKnN.js} +16 -0
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/p-button_3.entry.js +1 -1
  93. package/dist/index.html +1 -1
  94. package/dist/paperless/index.esm.js +1 -1
  95. package/dist/{components/p-C8Ju8eG_.js → paperless/p-C8RpJKnN.js} +1 -1
  96. package/dist/paperless/{p-fa7c3951.entry.js → p-c0599b0e.entry.js} +1 -1
  97. package/dist/paperless/paperless.esm.js +1 -1
  98. package/dist/sw.js +1 -1
  99. package/dist/sw.js.map +1 -1
  100. package/dist/types/utils/icons.d.ts +2 -0
  101. package/hydrate/index.js +15 -0
  102. package/hydrate/index.mjs +15 -0
  103. package/package.json +1 -1
@@ -1 +1 @@
1
- import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-D6g8cYWI.js";import{d as m}from"./p-BOJwTddb.js";import{d as l}from"./p-CEcyKdij.js";import{d}from"./p-D8faiybE.js";const p=n(["flex w-full max-w-[20rem] flex-col items-center justify-start"],{variants:{enableAction:{true:"cursor-pointer",false:null}}}),h=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=a(this,"action",3)}illustration;header;content;enableAction=!0;actionText;actionVariant="secondary";actionIcon;actionIconPosition="start";actionLoading=!1;action;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]'),o=!!this._el.querySelector(':scope > [slot="action"]');return i(s,{key:"a1c5b7682ac5ffd11beb25f2dd91d156becec4a3"},i("div",{key:"d19221f86c59cc8583d1e96f59263e01ea4ad22d",class:p({enableAction:r(this.enableAction,!0)}),onClick:t=>this.enableAction&&!this.actionLoading?this.action.emit(t):void 0},this.illustration&&i("p-illustration",{key:"0a078690887ee5eba9c383fe8ccba7aaeb110cdc",class:"mb-8 text-5xl text-indigo-600",variant:this.illustration}),t?i("slot",{name:"header"}):this.header?.length&&i("p",{class:"\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n "},this.header),e?i("slot",{name:"content"}):this.content?.length&&i("p",{class:"\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n "},this.content),this.enableAction&&(o?i("slot",{name:"action"}):i("p-button",{class:"mt-4",icon:this.actionIcon,iconPosition:this.actionIconPosition,loading:this.actionLoading,variant:this.actionVariant},this.actionText))))}static get style(){return'*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-8{margin-bottom:2rem}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.max-w-\\[20rem\\]{max-width:20rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-5xl{font-size:3rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.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-empty-state",{illustration:[1],header:[1],content:[1],enableAction:[4,"enable-action"],actionText:[1,"action-text"],actionVariant:[1,"action-variant"],actionIcon:[1,"action-icon"],actionIconPosition:[1,"action-icon-position"],actionLoading:[4,"action-loading"]}]);function x(){"undefined"!=typeof customElements&&["p-empty-state","p-button","p-icon","p-illustration","p-loader"].forEach((e=>{switch(e){case"p-empty-state":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||c();break;case"p-icon":customElements.get(t(e))||m();break;case"p-illustration":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||d()}}))}x();export{h as E,x as d}
1
+ import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-CdX4ibSM.js";import{d as m}from"./p-Sl3w6Zuw.js";import{d as l}from"./p-CEcyKdij.js";import{d}from"./p-D8faiybE.js";const p=n(["flex w-full max-w-[20rem] flex-col items-center justify-start"],{variants:{enableAction:{true:"cursor-pointer",false:null}}}),h=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=a(this,"action",3)}illustration;header;content;enableAction=!0;actionText;actionVariant="secondary";actionIcon;actionIconPosition="start";actionLoading=!1;action;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]'),o=!!this._el.querySelector(':scope > [slot="action"]');return i(s,{key:"a1c5b7682ac5ffd11beb25f2dd91d156becec4a3"},i("div",{key:"d19221f86c59cc8583d1e96f59263e01ea4ad22d",class:p({enableAction:r(this.enableAction,!0)}),onClick:t=>this.enableAction&&!this.actionLoading?this.action.emit(t):void 0},this.illustration&&i("p-illustration",{key:"0a078690887ee5eba9c383fe8ccba7aaeb110cdc",class:"mb-8 text-5xl text-indigo-600",variant:this.illustration}),t?i("slot",{name:"header"}):this.header?.length&&i("p",{class:"\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n "},this.header),e?i("slot",{name:"content"}):this.content?.length&&i("p",{class:"\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n "},this.content),this.enableAction&&(o?i("slot",{name:"action"}):i("p-button",{class:"mt-4",icon:this.actionIcon,iconPosition:this.actionIconPosition,loading:this.actionLoading,variant:this.actionVariant},this.actionText))))}static get style(){return'*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-8{margin-bottom:2rem}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.max-w-\\[20rem\\]{max-width:20rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-5xl{font-size:3rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.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-empty-state",{illustration:[1],header:[1],content:[1],enableAction:[4,"enable-action"],actionText:[1,"action-text"],actionVariant:[1,"action-variant"],actionIcon:[1,"action-icon"],actionIconPosition:[1,"action-icon-position"],actionLoading:[4,"action-loading"]}]);function x(){"undefined"!=typeof customElements&&["p-empty-state","p-button","p-icon","p-illustration","p-loader"].forEach((e=>{switch(e){case"p-empty-state":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||c();break;case"p-icon":customElements.get(t(e))||m();break;case"p-illustration":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||d()}}))}x();export{h as E,x as d}
@@ -1 +1 @@
1
- import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as d}from"./p-xs4N_Y-0.js";import{a as n}from"./p-C5CTp9IA.js";import{d as h}from"./p-BEo__1-X.js";import{d as c}from"./p-BOJwTddb.js";const s=o(["group flex max-w-full items-center gap-2 rounded-lg text-sm"],{variants:{variant:{default:null,storm:null,negative:null,pagination:"\n h-6 px-2 text-xs text-storm-300\n dark:text-hurricane-200\n "},active:{false:null,true:null},disabled:{false:"cursor-pointer",true:"cursor-not-allowed"},enableHover:{false:null,true:null},enableTextWrap:{true:null,false:null},autoHeight:{true:null,false:null}},compoundVariants:[{autoHeight:!1,enableTextWrap:!0,class:"min-h-8"},{autoHeight:!1,enableTextWrap:!1,class:"h-8"},{variant:["default","storm","negative"],class:"px-2 py-1 font-medium"},{variant:["default","pagination"],active:!1,enableHover:!0,disabled:!1,class:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "},{variant:"default",active:!0,disabled:!1,class:"\n bg-indigo-100\n dark:bg-indigo-600/20\n "},{variant:"default",disabled:!1,class:"\n text-storm-500\n dark:text-white\n "},{variant:"default",disabled:!0,class:"\n text-storm-200\n dark:text-hurricane-300\n "},{variant:"default",disabled:!0,active:!0,class:"\n bg-indigo-50\n dark:bg-white/5\n "},{variant:"storm",active:!1,enableHover:!0,class:"\n text-white\n dark:text-storm-500\n "},{variant:"storm",active:!1,enableHover:!0,disabled:!1,class:"\n hover:bg-storm-500\n dark:hover:bg-storm-500/15\n "},{variant:"storm",active:!0,class:"\n bg-storm-600 text-white\n dark:bg-storm-500/20 dark:text-storm-500\n "},{variant:"storm",disabled:!0,class:"opacity-40"},{variant:"negative",active:!1,enableHover:!0,disabled:!1,class:"\n text-negative-red-500\n hover:bg-negative-red-50\n dark:hover:bg-negative-red-500/10\n "},{variant:"negative",active:!0,disabled:!1,class:"\n bg-negative-red-100 text-negative-red-500\n dark:bg-negative-red-500/15\n "},{variant:"negative",disabled:!0,class:"text-negative-red-100"},{variant:"negative",disabled:!0,active:!0,class:"bg-negative-red-50"},{enableHover:!0,disabled:!1,class:"cursor-pointer"}]}),g=o(["text-base"],{variants:{variant:{default:null,storm:null,negative:null,pagination:null},active:{false:null,true:null},disabled:{false:null,true:"text-storm-100"},wave:{true:"group-hover:animate-wave",false:null}},compoundVariants:[{variant:"default",active:!1,disabled:!1,class:["\n text-storm-300\n group-hover:text-storm-500\n ","\n dark:text-hurricane-200\n dark:group-hover:text-white\n "]},{variant:"storm",active:!1,disabled:!1,class:["\n text-storm-100\n group-hover:text-white\n ","\n dark:text-storm-300\n dark:group-hover:text-storm-500\n "]},{variant:"negative",active:!1,disabled:!1,class:"\n text-negative-red-500\n group-hover:text-negative-red-800\n dark:text-negative-red-alternative\n dark:group-hover:text-negative-red-500\n "},{variant:"negative",active:!0,disabled:!1,class:"\n text-negative-red-800\n dark:text-negative-red-500\n "}]}),m=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}active=!1;checkbox=!1;variant="default";enableHover=!0;enableTextWrap=!1;disabled=!1;icon;iconWave=!1;useContainer=!0;autoHeight=!1;render(){return r(i,{key:"4ba8f69906bcf37e693ee6b58e6f2545b0b7661a"},r("div",{key:"25e4aaff0c2c9ae87794ed8b218e049e50b3b12d",class:d(s({variant:this.variant,active:n(this.active),enableHover:n(this.enableHover??!0),autoHeight:n(this.autoHeight??!1),enableTextWrap:this.enableTextWrap,disabled:n(this.disabled)}))},this.icon&&r("p-icon",{key:"01a95197b48fdebc2ad3517bc7184dd56371e622",class:g({variant:this.variant,active:n(this.active),disabled:n(this.disabled),wave:n(this.iconWave)}),variant:this.icon}),this.checkbox&&r("p-checkbox",{key:"0b6d9ec947b49d9c918dc7af3197fb78648bdf8b",checked:this.active,disabled:this.disabled}),this.useContainer?r("div",{class:d("block w-full overflow-hidden text-start",{"text-ellipsis whitespace-nowrap":!this.enableTextWrap})},r("slot",null)):r("slot",null)))}static get style(){return"*{box-sizing:border-box}.static{position:static}.block{display:block}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-8{min-height:2rem}.w-full{width:100%}.max-w-full{max-width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-negative-red-50{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.bg-storm-600{--tw-bg-opacity:1;background-color:rgb(15 22 34/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-start{text-align:start}.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-medium{font-weight:500}.text-negative-red-100{--tw-text-opacity:1;color:rgb(255 221 221/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-800{--tw-text-opacity:1;color:rgb(141 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-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-40{opacity:.4}.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-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.hover\\:bg-negative-red-50:hover{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.hover\\:bg-storm-500:hover{--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}@keyframes wave{0%{transform:rotate(0deg)}to{transform:rotate(-15deg)}}.group:hover .group-hover\\:animate-wave{animation:wave .5s ease-in-out -.5s infinite alternate forwards}.group:hover .group-hover\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-indigo-600\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.2)}.dark\\:bg-negative-red-500\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(230,30,30,.15)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.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-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-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-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-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-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.dark\\:hover\\:bg-negative-red-500\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(230,30,30,.1)}.dark\\:hover\\:bg-storm-500\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.15)}.group:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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-indigo-600\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.2)}.dark\\:bg-negative-red-500\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(230,30,30,.15)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.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-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-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/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-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.dark\\:hover\\:bg-negative-red-500\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(230,30,30,.1)}.dark\\:hover\\:bg-storm-500\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.15)}.group:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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-dropdown-menu-item",{active:[4],checkbox:[4],variant:[1],enableHover:[4,"enable-hover"],enableTextWrap:[4,"enable-text-wrap"],disabled:[4],icon:[1],iconWave:[4,"icon-wave"],useContainer:[4,"use-container"],autoHeight:[4,"auto-height"]}]);function l(){"undefined"!=typeof customElements&&["p-dropdown-menu-item","p-checkbox","p-icon"].forEach((e=>{switch(e){case"p-dropdown-menu-item":customElements.get(t(e))||customElements.define(t(e),m);break;case"p-checkbox":customElements.get(t(e))||h();break;case"p-icon":customElements.get(t(e))||c()}}))}l();export{m as D,l as d}
1
+ import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c as d}from"./p-xs4N_Y-0.js";import{a as n}from"./p-C5CTp9IA.js";import{d as h}from"./p-DlYs-VL_.js";import{d as c}from"./p-Sl3w6Zuw.js";const s=o(["group flex max-w-full items-center gap-2 rounded-lg text-sm"],{variants:{variant:{default:null,storm:null,negative:null,pagination:"\n h-6 px-2 text-xs text-storm-300\n dark:text-hurricane-200\n "},active:{false:null,true:null},disabled:{false:"cursor-pointer",true:"cursor-not-allowed"},enableHover:{false:null,true:null},enableTextWrap:{true:null,false:null},autoHeight:{true:null,false:null}},compoundVariants:[{autoHeight:!1,enableTextWrap:!0,class:"min-h-8"},{autoHeight:!1,enableTextWrap:!1,class:"h-8"},{variant:["default","storm","negative"],class:"px-2 py-1 font-medium"},{variant:["default","pagination"],active:!1,enableHover:!0,disabled:!1,class:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "},{variant:"default",active:!0,disabled:!1,class:"\n bg-indigo-100\n dark:bg-indigo-600/20\n "},{variant:"default",disabled:!1,class:"\n text-storm-500\n dark:text-white\n "},{variant:"default",disabled:!0,class:"\n text-storm-200\n dark:text-hurricane-300\n "},{variant:"default",disabled:!0,active:!0,class:"\n bg-indigo-50\n dark:bg-white/5\n "},{variant:"storm",active:!1,enableHover:!0,class:"\n text-white\n dark:text-storm-500\n "},{variant:"storm",active:!1,enableHover:!0,disabled:!1,class:"\n hover:bg-storm-500\n dark:hover:bg-storm-500/15\n "},{variant:"storm",active:!0,class:"\n bg-storm-600 text-white\n dark:bg-storm-500/20 dark:text-storm-500\n "},{variant:"storm",disabled:!0,class:"opacity-40"},{variant:"negative",active:!1,enableHover:!0,disabled:!1,class:"\n text-negative-red-500\n hover:bg-negative-red-50\n dark:hover:bg-negative-red-500/10\n "},{variant:"negative",active:!0,disabled:!1,class:"\n bg-negative-red-100 text-negative-red-500\n dark:bg-negative-red-500/15\n "},{variant:"negative",disabled:!0,class:"text-negative-red-100"},{variant:"negative",disabled:!0,active:!0,class:"bg-negative-red-50"},{enableHover:!0,disabled:!1,class:"cursor-pointer"}]}),g=o(["text-base"],{variants:{variant:{default:null,storm:null,negative:null,pagination:null},active:{false:null,true:null},disabled:{false:null,true:"text-storm-100"},wave:{true:"group-hover:animate-wave",false:null}},compoundVariants:[{variant:"default",active:!1,disabled:!1,class:["\n text-storm-300\n group-hover:text-storm-500\n ","\n dark:text-hurricane-200\n dark:group-hover:text-white\n "]},{variant:"storm",active:!1,disabled:!1,class:["\n text-storm-100\n group-hover:text-white\n ","\n dark:text-storm-300\n dark:group-hover:text-storm-500\n "]},{variant:"negative",active:!1,disabled:!1,class:"\n text-negative-red-500\n group-hover:text-negative-red-800\n dark:text-negative-red-alternative\n dark:group-hover:text-negative-red-500\n "},{variant:"negative",active:!0,disabled:!1,class:"\n text-negative-red-800\n dark:text-negative-red-500\n "}]}),m=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}active=!1;checkbox=!1;variant="default";enableHover=!0;enableTextWrap=!1;disabled=!1;icon;iconWave=!1;useContainer=!0;autoHeight=!1;render(){return r(i,{key:"4ba8f69906bcf37e693ee6b58e6f2545b0b7661a"},r("div",{key:"25e4aaff0c2c9ae87794ed8b218e049e50b3b12d",class:d(s({variant:this.variant,active:n(this.active),enableHover:n(this.enableHover??!0),autoHeight:n(this.autoHeight??!1),enableTextWrap:this.enableTextWrap,disabled:n(this.disabled)}))},this.icon&&r("p-icon",{key:"01a95197b48fdebc2ad3517bc7184dd56371e622",class:g({variant:this.variant,active:n(this.active),disabled:n(this.disabled),wave:n(this.iconWave)}),variant:this.icon}),this.checkbox&&r("p-checkbox",{key:"0b6d9ec947b49d9c918dc7af3197fb78648bdf8b",checked:this.active,disabled:this.disabled}),this.useContainer?r("div",{class:d("block w-full overflow-hidden text-start",{"text-ellipsis whitespace-nowrap":!this.enableTextWrap})},r("slot",null)):r("slot",null)))}static get style(){return"*{box-sizing:border-box}.static{position:static}.block{display:block}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-8{min-height:2rem}.w-full{width:100%}.max-w-full{max-width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-negative-red-50{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.bg-storm-600{--tw-bg-opacity:1;background-color:rgb(15 22 34/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-start{text-align:start}.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-medium{font-weight:500}.text-negative-red-100{--tw-text-opacity:1;color:rgb(255 221 221/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-800{--tw-text-opacity:1;color:rgb(141 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-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-40{opacity:.4}.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-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.hover\\:bg-negative-red-50:hover{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.hover\\:bg-storm-500:hover{--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}@keyframes wave{0%{transform:rotate(0deg)}to{transform:rotate(-15deg)}}.group:hover .group-hover\\:animate-wave{animation:wave .5s ease-in-out -.5s infinite alternate forwards}.group:hover .group-hover\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-indigo-600\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.2)}.dark\\:bg-negative-red-500\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(230,30,30,.15)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.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-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-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-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-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-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.dark\\:hover\\:bg-negative-red-500\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(230,30,30,.1)}.dark\\:hover\\:bg-storm-500\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.15)}.group:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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-indigo-600\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.2)}.dark\\:bg-negative-red-500\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(230,30,30,.15)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.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-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-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/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-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.dark\\:hover\\:bg-negative-red-500\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(230,30,30,.1)}.dark\\:hover\\:bg-storm-500\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.15)}.group:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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:hover .dark\\:group-hover\\: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-dropdown-menu-item",{active:[4],checkbox:[4],variant:[1],enableHover:[4,"enable-hover"],enableTextWrap:[4,"enable-text-wrap"],disabled:[4],icon:[1],iconWave:[4,"icon-wave"],useContainer:[4,"use-container"],autoHeight:[4,"auto-height"]}]);function l(){"undefined"!=typeof customElements&&["p-dropdown-menu-item","p-checkbox","p-icon"].forEach((e=>{switch(e){case"p-dropdown-menu-item":customElements.get(t(e))||customElements.define(t(e),m);break;case"p-checkbox":customElements.get(t(e))||h();break;case"p-icon":customElements.get(t(e))||c()}}))}l();export{m as D,l as d}
@@ -1 +1 @@
1
- import{t as e,p as a,H as t,c as r,h as i,F as o}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as p}from"./p-Au2WuEGF.js";import{P as n,a as d}from"./p-CEaB2BT0.js";import{d as c}from"./p-D6g8cYWI.js";import{d as h}from"./p-BEo__1-X.js";import{d as m}from"./p-BANLejQ8.js";import{d as g}from"./p-DU-stXqd.js";import{d as b}from"./p-BNMkjAgS.js";import{d as l}from"./p-B91CxVcz.js";import{d as f}from"./p-xkXCC7GI.js";import{d as u}from"./p-SUrtpFuE.js";import{d as k}from"./p-CTI55iY5.js";import{d as w}from"./p-BOJwTddb.js";import{d as y}from"./p-D8faiybE.js";import{d as x}from"./p-DM-VvZXT.js";import{d as E}from"./p-C-ljhNrW.js";import{d as j}from"./p-Bk5wUwrW.js";import{d as z}from"./p-GYxEYTaZ.js";const v=s(["items-center gap-2","rounded-full","border border-solid border-off-white-700 bg-off-white-300","dark:border-hurricane-400 dark:bg-hurricane-500","p-1"],{variants:{hidden:{false:"flex",true:"hidden"}}}),P=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pageChange=r(this,"pageChange",3),this.pageSizeChange=r(this,"pageSizeChange",3),this.pagesChange=r(this,"pagesChange",3)}hideOnSinglePage=!0;enablePaginationSize=!0;enablePaginationPages=!0;page=1;total;pageSize=n;pageSizeOptions=d;pageChange;pageSizeChange;pagesChange;_hasPaginationPages=!0;render(){const e=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];return i(p,{key:"ad344b2396e42451325894b7376ed3d690057d83"},i("div",{key:"671608ac708b712031af5c200c3ce07e8131cb03",class:v({hidden:e&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages})},this.enablePaginationPages&&this.enablePaginationSize&&i(o,{key:"9cdc73872c65ab22e8c9ef4158be2016181fc6ba"},i("p-pagination-size",{key:"5e574099fa2e4236d50d7593f19fcfb8c90ecc7f",hidden:e,size:this.pageSize,sizeOptions:this.pageSizeOptions,onSizeChange:({detail:e})=>this._changePageSize(e)}),!e&&this.hideOnSinglePage&&this._hasPaginationPages&&i("p-divider",{key:"6b5d9cb7d4d8067b68b2c600eaa644cf6e14e6d5",class:"\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ",variant:"vertical"})),this.enablePaginationPages&&i("p-pagination-pages",{key:"9e3dba15164786562aa0d912a67f57f8b2cc7366",hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,total:this.total,onPageChange:({detail:e})=>this.pageChange.emit(e),onPagesChange:({detail:e})=>{this._hasPaginationPages=e>1,this.pagesChange.emit(e)}})))}_changePageSize(e){e&&(this.pageSize=e,this.pageSizeChange.emit(this.pageSize))}static get style(){return"*{box-sizing:border-box}.static{position:static}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.hidden{display:none}.h-4{height:1rem}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}"}},[513,"p-pagination",{hideOnSinglePage:[4,"hide-on-single-page"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],_hasPaginationPages:[32]}]);function C(){"undefined"!=typeof customElements&&["p-pagination","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-tooltip"].forEach((a=>{switch(a){case"p-pagination":customElements.get(e(a))||customElements.define(e(a),P);break;case"p-button":customElements.get(e(a))||c();break;case"p-checkbox":customElements.get(e(a))||h();break;case"p-divider":customElements.get(e(a))||m();break;case"p-dropdown":customElements.get(e(a))||g();break;case"p-dropdown-menu-container":customElements.get(e(a))||b();break;case"p-dropdown-menu-item":customElements.get(e(a))||l();break;case"p-field":customElements.get(e(a))||f();break;case"p-field-container":customElements.get(e(a))||u();break;case"p-helper":customElements.get(e(a))||k();break;case"p-icon":customElements.get(e(a))||w();break;case"p-loader":customElements.get(e(a))||y();break;case"p-pagination-pages":customElements.get(e(a))||x();break;case"p-pagination-pages-item":customElements.get(e(a))||E();break;case"p-pagination-size":customElements.get(e(a))||j();break;case"p-tooltip":customElements.get(e(a))||z()}}))}C();export{P,C as d}
1
+ import{t as e,p as a,H as t,c as r,h as i,F as o}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as n}from"./p-Au2WuEGF.js";import{P as p,a as d}from"./p-CEaB2BT0.js";import{d as c}from"./p-CdX4ibSM.js";import{d as h}from"./p-DlYs-VL_.js";import{d as m}from"./p-BANLejQ8.js";import{d as g}from"./p-DU-stXqd.js";import{d as b}from"./p-BNMkjAgS.js";import{d as l}from"./p-BAQuP-An.js";import{d as f}from"./p-Bg73A-l5.js";import{d as u}from"./p-BRDvNH4S.js";import{d as k}from"./p-C3fzR817.js";import{d as w}from"./p-Sl3w6Zuw.js";import{d as y}from"./p-D8faiybE.js";import{d as x}from"./p-CYJ2s8gf.js";import{d as j}from"./p-C-ljhNrW.js";import{d as E}from"./p-DY2oKnxw.js";import{d as z}from"./p-GYxEYTaZ.js";const P=s(["items-center gap-2","rounded-full","border border-solid border-off-white-700 bg-off-white-300","dark:border-hurricane-400 dark:bg-hurricane-500","p-1"],{variants:{hidden:{false:"flex",true:"hidden"}}}),S=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pageChange=r(this,"pageChange",3),this.pageSizeChange=r(this,"pageSizeChange",3),this.pagesChange=r(this,"pagesChange",3)}hideOnSinglePage=!0;enablePaginationSize=!0;enablePaginationPages=!0;page=1;total;pageSize=p;pageSizeOptions=d;pageChange;pageSizeChange;pagesChange;_hasPaginationPages=!0;render(){const e=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];return i(n,{key:"ad344b2396e42451325894b7376ed3d690057d83"},i("div",{key:"671608ac708b712031af5c200c3ce07e8131cb03",class:P({hidden:e&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages})},this.enablePaginationPages&&this.enablePaginationSize&&i(o,{key:"9cdc73872c65ab22e8c9ef4158be2016181fc6ba"},i("p-pagination-size",{key:"5e574099fa2e4236d50d7593f19fcfb8c90ecc7f",hidden:e,size:this.pageSize,sizeOptions:this.pageSizeOptions,onSizeChange:({detail:e})=>this._changePageSize(e)}),!e&&this.hideOnSinglePage&&this._hasPaginationPages&&i("p-divider",{key:"6b5d9cb7d4d8067b68b2c600eaa644cf6e14e6d5",class:"\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ",variant:"vertical"})),this.enablePaginationPages&&i("p-pagination-pages",{key:"9e3dba15164786562aa0d912a67f57f8b2cc7366",hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,total:this.total,onPageChange:({detail:e})=>this.pageChange.emit(e),onPagesChange:({detail:e})=>{this._hasPaginationPages=e>1,this.pagesChange.emit(e)}})))}_changePageSize(e){e&&(this.pageSize=e,this.pageSizeChange.emit(this.pageSize))}static get style(){return"*{box-sizing:border-box}.static{position:static}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.hidden{display:none}.h-4{height:1rem}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}"}},[513,"p-pagination",{hideOnSinglePage:[4,"hide-on-single-page"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],_hasPaginationPages:[32]}]);function v(){"undefined"!=typeof customElements&&["p-pagination","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-tooltip"].forEach((a=>{switch(a){case"p-pagination":customElements.get(e(a))||customElements.define(e(a),S);break;case"p-button":customElements.get(e(a))||c();break;case"p-checkbox":customElements.get(e(a))||h();break;case"p-divider":customElements.get(e(a))||m();break;case"p-dropdown":customElements.get(e(a))||g();break;case"p-dropdown-menu-container":customElements.get(e(a))||b();break;case"p-dropdown-menu-item":customElements.get(e(a))||l();break;case"p-field":customElements.get(e(a))||f();break;case"p-field-container":customElements.get(e(a))||u();break;case"p-helper":customElements.get(e(a))||k();break;case"p-icon":customElements.get(e(a))||w();break;case"p-loader":customElements.get(e(a))||y();break;case"p-pagination-pages":customElements.get(e(a))||x();break;case"p-pagination-pages-item":customElements.get(e(a))||j();break;case"p-pagination-size":customElements.get(e(a))||E();break;case"p-tooltip":customElements.get(e(a))||z()}}))}v();export{S as P,v as d}
@@ -1 +1 @@
1
- import{t as e,p as t,H as a,c as r,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{c as d}from"./p-xs4N_Y-0.js";import{a as h}from"./p-C5CTp9IA.js";import{d as m}from"./p-CTI55iY5.js";import{d as c}from"./p-BOJwTddb.js";import{d as p}from"./p-D8faiybE.js";import{d as w}from"./p-GYxEYTaZ.js";const x=o(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),f=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.focus=r(this,"focus",7)}_defaultOptionalTemplate=()=>n(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return this}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:e,hasErrorSlot:t,helper:a,label:r,errorAndErrorIsNotBoolean:o}=this._getSlotInfo();let n=i("slot",{key:"ee38d5be02a899e0d63749e4b13c17cae4711637",name:"content",slot:"trigger"});return this.loading&&(n=i("p-loader",{key:"5e445ed28e4ff1254b6c724d5bb859d37ed669b3",class:x({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),i(s,{key:"b9e499d2dc7e962d706997c8d16f61c5252f118d"},i("label",{key:"4233b212952fa641e2509ea1c942453e77ec5f82",class:d("flex h-inherit w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},i("div",{key:"20e48d5f03656193a1b837070ae750a8d4296465",class:d("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!r?.length||!!a?.length)&&i("div",{key:"ee34ef249bb30262496793d5f8417e137313cf03",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},i("span",{key:"1a73b8c8c753253a46be784bbd03aaf515c33d3d",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},r),a&&i("p-helper",{key:"fe0c268b0fee3a855bcc44ef844ca8a2a727dee2",class:"flex flex-shrink-0",placement:"top"},a)),(!h(this.required)&&h(this.showOptional)||e)&&i("div",{key:"14466e8a589be9b1b599750e9d94fdd507e63637",class:"flex items-center gap-1"},!h(this.required)&&h(this.showOptional)&&"write"===this.variant&&i("span",{key:"2103c58a2d6283a3776386fc48b817b0a6c11775",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),e&&i("slot",{key:"daa792f0973fb224b65694b2b3da0bce094bc013",name:"header"}))),i("p-tooltip",{key:"f5a7db0a4adf1b122a1297e3216c67abd4dc824e",class:d({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:o&&h(this.forceShowTooltip,!1),variant:"error"},t&&i("slot",{key:"38ce560479de40f7b704bf9f7736f217286a39b8",name:"error",slot:"content"}),n)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const e=!!this._el.querySelector(':scope > [slot="helper"]'),t=!!this._el.querySelector(':scope > [slot="label"]'),a=!!this._el.querySelector(':scope > [slot="header"]'),r=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:e,hasLabelSlot:t,hasHeaderSlot:a,hasErrorSlot:r,helper:e?i("slot",{name:"helper"}):this.helper,label:t?i("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:r||this.error&&"string"==typeof this.error&&"true"!==this.error}}static get style(){return"*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-inherit{height:inherit}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.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}}.empty\\:hidden:empty{display:none}.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-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-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-field-container",{id:[1],align:[1],label:[1],loading:[4],loadingSize:[1,"loading-size"],variant:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],errorPlacement:[1,"error-placement"],forceShowTooltip:[516,"force-show-tooltip"],optionalTemplate:[16],_locales:[32]},[[16,"localeChanged","_setLocales"]]]);function b(){"undefined"!=typeof customElements&&["p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((t=>{switch(t){case"p-field-container":customElements.get(e(t))||customElements.define(e(t),f);break;case"p-helper":customElements.get(e(t))||m();break;case"p-icon":customElements.get(e(t))||c();break;case"p-loader":customElements.get(e(t))||p();break;case"p-tooltip":customElements.get(e(t))||w()}}))}b();export{f as F,b as d}
1
+ import{t as e,p as t,H as a,c as r,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{c as d}from"./p-xs4N_Y-0.js";import{a as h}from"./p-C5CTp9IA.js";import{d as m}from"./p-C3fzR817.js";import{d as c}from"./p-Sl3w6Zuw.js";import{d as p}from"./p-D8faiybE.js";import{d as w}from"./p-GYxEYTaZ.js";const x=o(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),f=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.focus=r(this,"focus",7)}_defaultOptionalTemplate=()=>n(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return this}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:e,hasErrorSlot:t,helper:a,label:r,errorAndErrorIsNotBoolean:o}=this._getSlotInfo();let n=i("slot",{key:"ee38d5be02a899e0d63749e4b13c17cae4711637",name:"content",slot:"trigger"});return this.loading&&(n=i("p-loader",{key:"5e445ed28e4ff1254b6c724d5bb859d37ed669b3",class:x({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),i(s,{key:"b9e499d2dc7e962d706997c8d16f61c5252f118d"},i("label",{key:"4233b212952fa641e2509ea1c942453e77ec5f82",class:d("flex h-inherit w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},i("div",{key:"20e48d5f03656193a1b837070ae750a8d4296465",class:d("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!r?.length||!!a?.length)&&i("div",{key:"ee34ef249bb30262496793d5f8417e137313cf03",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},i("span",{key:"1a73b8c8c753253a46be784bbd03aaf515c33d3d",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},r),a&&i("p-helper",{key:"fe0c268b0fee3a855bcc44ef844ca8a2a727dee2",class:"flex flex-shrink-0",placement:"top"},a)),(!h(this.required)&&h(this.showOptional)||e)&&i("div",{key:"14466e8a589be9b1b599750e9d94fdd507e63637",class:"flex items-center gap-1"},!h(this.required)&&h(this.showOptional)&&"write"===this.variant&&i("span",{key:"2103c58a2d6283a3776386fc48b817b0a6c11775",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),e&&i("slot",{key:"daa792f0973fb224b65694b2b3da0bce094bc013",name:"header"}))),i("p-tooltip",{key:"f5a7db0a4adf1b122a1297e3216c67abd4dc824e",class:d({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:o&&h(this.forceShowTooltip,!1),variant:"error"},t&&i("slot",{key:"38ce560479de40f7b704bf9f7736f217286a39b8",name:"error",slot:"content"}),n)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const e=!!this._el.querySelector(':scope > [slot="helper"]'),t=!!this._el.querySelector(':scope > [slot="label"]'),a=!!this._el.querySelector(':scope > [slot="header"]'),r=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:e,hasLabelSlot:t,hasHeaderSlot:a,hasErrorSlot:r,helper:e?i("slot",{name:"helper"}):this.helper,label:t?i("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:r||this.error&&"string"==typeof this.error&&"true"!==this.error}}static get style(){return"*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-inherit{height:inherit}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.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}}.empty\\:hidden:empty{display:none}.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-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-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-field-container",{id:[1],align:[1],label:[1],loading:[4],loadingSize:[1,"loading-size"],variant:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],errorPlacement:[1,"error-placement"],forceShowTooltip:[516,"force-show-tooltip"],optionalTemplate:[16],_locales:[32]},[[16,"localeChanged","_setLocales"]]]);function b(){"undefined"!=typeof customElements&&["p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((t=>{switch(t){case"p-field-container":customElements.get(e(t))||customElements.define(e(t),f);break;case"p-helper":customElements.get(e(t))||m();break;case"p-icon":customElements.get(e(t))||c();break;case"p-loader":customElements.get(e(t))||p();break;case"p-tooltip":customElements.get(e(t))||w()}}))}b();export{f as F,b as d}