@neowit/orbit-vue 0.1.3 → 0.3.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/orbit.cjs +10 -10
- package/dist/orbit.js +2735 -2293
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/atoms/OBadge/OBadge.vue.d.ts +0 -30
- package/dist/atoms/OBadge/OBadge.vue.d.ts.map +0 -1
- package/dist/atoms/OBadge/index.d.ts +0 -3
- package/dist/atoms/OBadge/index.d.ts.map +0 -1
- package/dist/atoms/OButton/OButton.vue.d.ts +0 -53
- package/dist/atoms/OButton/OButton.vue.d.ts.map +0 -1
- package/dist/atoms/OButton/index.d.ts +0 -3
- package/dist/atoms/OButton/index.d.ts.map +0 -1
- package/dist/atoms/OCheckbox/OCheckbox.vue.d.ts +0 -18
- package/dist/atoms/OCheckbox/OCheckbox.vue.d.ts.map +0 -1
- package/dist/atoms/OCheckbox/index.d.ts +0 -3
- package/dist/atoms/OCheckbox/index.d.ts.map +0 -1
- package/dist/atoms/OFieldLabel/OFieldLabel.vue.d.ts +0 -15
- package/dist/atoms/OFieldLabel/OFieldLabel.vue.d.ts.map +0 -1
- package/dist/atoms/OFieldLabel/index.d.ts +0 -3
- package/dist/atoms/OFieldLabel/index.d.ts.map +0 -1
- package/dist/atoms/OFieldWrap/OFieldWrap.vue.d.ts +0 -25
- package/dist/atoms/OFieldWrap/OFieldWrap.vue.d.ts.map +0 -1
- package/dist/atoms/OFieldWrap/index.d.ts +0 -3
- package/dist/atoms/OFieldWrap/index.d.ts.map +0 -1
- package/dist/atoms/OHelpText/OHelpText.vue.d.ts +0 -21
- package/dist/atoms/OHelpText/OHelpText.vue.d.ts.map +0 -1
- package/dist/atoms/OHelpText/index.d.ts +0 -3
- package/dist/atoms/OHelpText/index.d.ts.map +0 -1
- package/dist/atoms/ORadioButton/ORadioButton.vue.d.ts +0 -17
- package/dist/atoms/ORadioButton/ORadioButton.vue.d.ts.map +0 -1
- package/dist/atoms/ORadioButton/index.d.ts +0 -3
- package/dist/atoms/ORadioButton/index.d.ts.map +0 -1
- package/dist/atoms/OStatusIcon/OStatusIcon.vue.d.ts +0 -19
- package/dist/atoms/OStatusIcon/OStatusIcon.vue.d.ts.map +0 -1
- package/dist/atoms/OStatusIcon/index.d.ts +0 -3
- package/dist/atoms/OStatusIcon/index.d.ts.map +0 -1
- package/dist/atoms/OSwitch/OSwitch.vue.d.ts +0 -16
- package/dist/atoms/OSwitch/OSwitch.vue.d.ts.map +0 -1
- package/dist/atoms/OSwitch/index.d.ts +0 -3
- package/dist/atoms/OSwitch/index.d.ts.map +0 -1
- package/dist/atoms/OText/OText.vue.d.ts +0 -25
- package/dist/atoms/OText/OText.vue.d.ts.map +0 -1
- package/dist/atoms/OText/index.d.ts +0 -3
- package/dist/atoms/OText/index.d.ts.map +0 -1
- package/dist/atoms/OTooltip/OTooltip.vue.d.ts +0 -32
- package/dist/atoms/OTooltip/OTooltip.vue.d.ts.map +0 -1
- package/dist/atoms/OTooltip/index.d.ts +0 -3
- package/dist/atoms/OTooltip/index.d.ts.map +0 -1
- package/dist/composables/index.d.ts +0 -5
- package/dist/composables/index.d.ts.map +0 -1
- package/dist/composables/useDialog.d.ts +0 -100
- package/dist/composables/useDialog.d.ts.map +0 -1
- package/dist/composables/useTheme.d.ts +0 -15
- package/dist/composables/useTheme.d.ts.map +0 -1
- package/dist/index.d.ts +0 -49
- package/dist/index.d.ts.map +0 -1
- package/dist/molecules/OAlert/OAlert.vue.d.ts +0 -40
- package/dist/molecules/OAlert/OAlert.vue.d.ts.map +0 -1
- package/dist/molecules/OAlert/index.d.ts +0 -3
- package/dist/molecules/OAlert/index.d.ts.map +0 -1
- package/dist/molecules/OButtonGroup/OButtonGroup.vue.d.ts +0 -19
- package/dist/molecules/OButtonGroup/OButtonGroup.vue.d.ts.map +0 -1
- package/dist/molecules/OButtonGroup/index.d.ts +0 -3
- package/dist/molecules/OButtonGroup/index.d.ts.map +0 -1
- package/dist/molecules/OCheckboxGroup/OCheckboxGroup.vue.d.ts +0 -36
- package/dist/molecules/OCheckboxGroup/OCheckboxGroup.vue.d.ts.map +0 -1
- package/dist/molecules/OCheckboxGroup/index.d.ts +0 -3
- package/dist/molecules/OCheckboxGroup/index.d.ts.map +0 -1
- package/dist/molecules/ORadioGroup/ORadioGroup.vue.d.ts +0 -30
- package/dist/molecules/ORadioGroup/ORadioGroup.vue.d.ts.map +0 -1
- package/dist/molecules/ORadioGroup/index.d.ts +0 -3
- package/dist/molecules/ORadioGroup/index.d.ts.map +0 -1
- package/dist/molecules/OSelect/OSelect.vue.d.ts +0 -93
- package/dist/molecules/OSelect/OSelect.vue.d.ts.map +0 -1
- package/dist/molecules/OSelect/index.d.ts +0 -3
- package/dist/molecules/OSelect/index.d.ts.map +0 -1
- package/dist/molecules/OTextArea/OTextArea.vue.d.ts +0 -36
- package/dist/molecules/OTextArea/OTextArea.vue.d.ts.map +0 -1
- package/dist/molecules/OTextArea/index.d.ts +0 -3
- package/dist/molecules/OTextArea/index.d.ts.map +0 -1
- package/dist/molecules/OTextField/OTextField.vue.d.ts +0 -63
- package/dist/molecules/OTextField/OTextField.vue.d.ts.map +0 -1
- package/dist/molecules/OTextField/index.d.ts +0 -3
- package/dist/molecules/OTextField/index.d.ts.map +0 -1
- package/dist/organisms/OAlertDialog/OAlertDialog.vue.d.ts +0 -64
- package/dist/organisms/OAlertDialog/OAlertDialog.vue.d.ts.map +0 -1
- package/dist/organisms/OAlertDialog/index.d.ts +0 -3
- package/dist/organisms/OAlertDialog/index.d.ts.map +0 -1
- package/dist/organisms/ODialog/ODialog.vue.d.ts +0 -96
- package/dist/organisms/ODialog/ODialog.vue.d.ts.map +0 -1
- package/dist/organisms/ODialog/ODialogProvider.vue.d.ts +0 -3
- package/dist/organisms/ODialog/ODialogProvider.vue.d.ts.map +0 -1
- package/dist/organisms/ODialog/index.d.ts +0 -4
- package/dist/organisms/ODialog/index.d.ts.map +0 -1
package/dist/orbit.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),qe=e.defineComponent({__name:"OText",props:{variant:{},as:{default:void 0},weight:{default:void 0}},setup(t){const d=t,l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6","body-large":"p","body-medium":"p","body-small":"p","body-extra-small":"p","caption-large":"span","caption-small":"span","button-large":"span","button-medium":"span","button-small":"span"},r=e.computed(()=>d.as||l[d.variant]||"span");return(i,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{class:e.normalizeClass(["orb-text",`orb-text--${t.variant}`,t.weight?`orb-text--w-${t.weight}`:""])},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["class"]))}}),kt=["aria-label"],ft={key:0,class:"orb-badge__dot"},je=e.defineComponent({__name:"OBadge",props:{type:{default:"soft"},color:{default:"gray"},maxWidth:{},iconOnly:{type:Boolean}},setup(t){return(d,l)=>t.type==="dot"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-badge","orb-badge--dot",`orb-badge--${t.color}`]),"aria-label":`Status: ${t.color}`},null,10,kt)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["orb-badge",`orb-badge--${t.type}`,`orb-badge--${t.color}`,{"orb-badge--icon-only":t.iconOnly}])},[t.type==="status"?(e.openBlock(),e.createElementBlock("span",ft)):e.createCommentVNode("",!0),t.type==="icon"?e.renderSlot(d.$slots,"icon",{key:1}):e.createCommentVNode("",!0),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:2,class:"orb-badge__label",style:e.normalizeStyle(t.maxWidth?{maxWidth:t.maxWidth,overflow:"hidden",textOverflow:"ellipsis"}:void 0)},[e.renderSlot(d.$slots,"default")],4))],2))}}),Ge=e.defineComponent({__name:"OTooltip",props:{text:{},placement:{default:"top"},maxWidth:{},showDelay:{default:100},hideDelay:{default:80}},setup(t){const d=t,l=e.ref(!1);let r=null,i=null;function m(){i&&(clearTimeout(i),i=null),r=setTimeout(()=>{l.value=!0},d.showDelay)}function c(){r&&(clearTimeout(r),r=null),i=setTimeout(()=>{l.value=!1},d.hideDelay)}function p(){r&&(clearTimeout(r),r=null),i&&(clearTimeout(i),i=null),l.value=!1}return(u,y)=>(e.openBlock(),e.createElementBlock("span",{class:"orb-tooltip-trigger",onMouseenter:m,onMouseleave:c,onFocusin:m,onFocusout:c,onKeydown:e.withKeys(p,["escape"])},[e.renderSlot(u.$slots,"default"),e.createVNode(e.Transition,{name:"orb-tooltip"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,role:"tooltip",class:e.normalizeClass(["orb-tooltip",`orb-tooltip--${t.placement}`]),style:e.normalizeStyle(t.maxWidth?{maxWidth:t.maxWidth,whiteSpace:"normal"}:void 0)},[e.renderSlot(u.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),y[0]||(y[0]=e.createElementVNode("span",{class:"orb-tooltip__arrow"},null,-1))],6)):e.createCommentVNode("",!0)]),_:3})],32))}}),vt=["role"],be=e.defineComponent({__name:"OHelpText",props:{variant:{default:"neutral"},disabled:{type:Boolean,default:!1}},setup(t){return(d,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["orb-help-text",`orb-help-text--${t.variant}`,{"orb-help-text--disabled":t.disabled&&t.variant==="neutral"}]),role:t.variant==="negative"?"alert":void 0},[e.renderSlot(d.$slots,"default")],10,vt))}}),gt={key:0,class:"orb-field-label"},pt={key:0,class:"orb-field-label__suffix"},Ce=e.defineComponent({__name:"OFieldLabel",props:{label:{},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},charCount:{},maxLength:{}},setup(t){const d=t,l=e.computed(()=>d.required?" (obrigatório)":d.optional?" (opcional)":"");return(r,i)=>t.label||t.maxLength?(e.openBlock(),e.createElementBlock("div",gt,[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["orb-field-label__text",{"orb-field-label__text--disabled":t.disabled}])},[e.createTextVNode(e.toDisplayString(t.label),1),l.value?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.maxLength!=null?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["orb-field-label__counter",{"orb-field-label__counter--disabled":t.disabled}])},e.toDisplayString(t.charCount??0),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),yt=["checked","aria-checked","disabled"],xt={key:0,class:"orb-checkbox__content"},Bt={key:0,class:"orb-checkbox__label"},Ct={key:1,class:"orb-checkbox__description"},Ke=e.defineComponent({__name:"OCheckbox",props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{},description:{}},emits:["update:modelValue"],setup(t,{emit:d}){const l=t,r=d,i=e.computed(()=>l.modelValue),m=e.ref(null);e.watch(()=>l.indeterminate,p=>{m.value&&(m.value.indeterminate=p)}),e.onMounted(()=>{m.value&&l.indeterminate&&(m.value.indeterminate=!0)});function c(){l.disabled||r("update:modelValue",!l.modelValue)}return(p,u)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["orb-checkbox",{"orb-checkbox--disabled":t.disabled}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-checkbox__box",{"orb-checkbox__box--checked":i.value&&!t.indeterminate,"orb-checkbox__box--indeterminate":t.indeterminate,"orb-checkbox__box--disabled":t.disabled}])},[e.createElementVNode("input",{ref_key:"inputRef",ref:m,type:"checkbox",checked:i.value,"aria-checked":t.indeterminate?"mixed":i.value,disabled:t.disabled,class:"orb-checkbox__input",onChange:c},null,40,yt),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon",{"orb-checkbox__icon--visible":i.value&&!t.indeterminate}]),viewBox:"0 0 16 16",fill:"none"},[...u[0]||(u[0]=[e.createElementVNode("path",{d:"M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z",fill:"currentColor"},null,-1)])],2)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--dash",{"orb-checkbox__icon--visible":t.indeterminate}]),viewBox:"0 0 16 16",fill:"none"},[...u[1]||(u[1]=[e.createElementVNode("path",{d:"M3 8h10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)])],2))],2),t.label||t.description?(e.openBlock(),e.createElementBlock("span",xt,[t.label?(e.openBlock(),e.createElementBlock("span",Bt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Vt=["name","value","checked","disabled","aria-label"],wt={key:0,class:"orb-radio__content"},Et={key:0,class:"orb-radio__label"},Nt={key:1,class:"orb-radio__description"},Ue=e.defineComponent({__name:"ORadioButton",props:{modelValue:{},value:{},disabled:{type:Boolean,default:!1},label:{},description:{},name:{}},emits:["update:modelValue"],setup(t,{emit:d}){const l=t,r=d;function i(){l.disabled||r("update:modelValue",l.value)}return(m,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["orb-radio",{"orb-radio--disabled":t.disabled}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__circle",{"orb-radio__circle--checked":t.modelValue===t.value,"orb-radio__circle--disabled":t.disabled}])},[e.createElementVNode("input",{type:"radio",name:t.name,value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,"aria-label":t.label||t.value,class:"orb-radio__input",onChange:i},null,40,Vt),e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__dot",{"orb-radio__dot--visible":t.modelValue===t.value}])},null,2)],2),t.label||t.description?(e.openBlock(),e.createElementBlock("span",wt,[t.label?(e.openBlock(),e.createElementBlock("span",Et,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Nt,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),$t=["aria-checked","aria-label","disabled"],St={key:0,class:"orb-switch__content"},_t={key:0,class:"orb-switch__label"},Tt={key:1,class:"orb-switch__description"},Qe=e.defineComponent({__name:"OSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{},description:{}},emits:["update:modelValue"],setup(t,{emit:d}){const l=t,r=d;function i(){l.disabled||r("update:modelValue",!l.modelValue)}return(m,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["orb-switch",{"orb-switch--disabled":t.disabled}])},[e.createElementVNode("button",{type:"button",role:"switch","aria-checked":t.modelValue,"aria-label":t.label,disabled:t.disabled,class:e.normalizeClass(["orb-switch__track",{"orb-switch__track--on":t.modelValue,"orb-switch__track--disabled":t.disabled}]),onClick:i},[...c[0]||(c[0]=[e.createElementVNode("span",{class:"orb-switch__thumb"},null,-1)])],10,$t),t.label||t.description?(e.openBlock(),e.createElementBlock("span",St,[t.label?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Tt,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Ve=e.defineComponent({__name:"OFieldWrap",props:{size:{default:"medium"},focused:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(t){const d=t,l=e.computed(()=>["orb-field-wrap",`orb-field-wrap--${d.size}`,{"orb-field-wrap--focus":d.focused&&!d.disabled,"orb-field-wrap--invalid":d.invalid,"orb-field-wrap--disabled":d.disabled}]);return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(r.$slots,"default")],2))}}),zt={class:"orb-btn__label"},Dt={key:0,class:"orb-btn__icon"},Ot={key:1,class:"orb-btn__content"},Lt={key:0,class:"orb-btn__label"},Mt={key:1,class:"orb-btn__description"},Ft={key:2,class:"orb-btn__count"},At={key:3,class:"orb-btn__icon"},Ye=e.defineComponent({__name:"OButton",props:{variant:{default:"primary"},size:{default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{default:void 0},fullWidth:{type:Boolean,default:!1},pressed:{type:Boolean,default:void 0},count:{default:void 0},description:{default:void 0},disclosure:{type:[String,Boolean],default:void 0},type:{default:"button"},href:{},target:{}},emits:["click"],setup(t,{emit:d}){const l=t,r=d,i=e.useSlots(),m=e.computed(()=>!i.default&&!l.description&&(!!i["leading-icon"]||!!i["trailing-icon"])),c=e.computed(()=>!!l.description),p=e.computed(()=>l.disclosure===!0||l.disclosure==="down"?"down":l.disclosure==="up"?"up":null),u=e.computed(()=>["orb-btn",`orb-btn--${l.variant}`,`orb-btn--${l.size}`,{"orb-btn--full-width":l.fullWidth,"orb-btn--loading":l.loading,"orb-btn--disabled":l.disabled,"orb-btn--pressed":l.pressed===!0,"orb-btn--icon-only":m.value,"orb-btn--compound":c.value}]),y=e.computed(()=>l.disabled||l.loading),s=e.computed(()=>l.href?"a":"button");function w(f){if(y.value){f.preventDefault();return}r("click",f)}return(f,h)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{class:e.normalizeClass(u.value),type:t.href?void 0:t.type,href:t.href,target:t.href?t.target:void 0,disabled:!t.href&&y.value?!0:void 0,"aria-disabled":t.href&&y.value?"true":void 0,tabindex:t.href&&y.value?-1:void 0,rel:t.href&&t.target==="_blank"?"noopener noreferrer":void 0,"aria-pressed":t.pressed!==void 0?String(t.pressed):void 0,onClick:w},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["orb-btn__spinner",{"orb-btn__spinner--visible":t.loading&&!t.loadingText}]),"aria-hidden":"true"},[...h[0]||(h[0]=[e.createElementVNode("svg",{viewBox:"0 0 32 32",fill:"none"},[e.createElementVNode("path",{d:"M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z",fill:"currentColor"})],-1)])],2),t.loading&&t.loadingText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[h[1]||(h[1]=e.createElementVNode("span",{class:"orb-btn__spinner orb-btn__spinner--inline orb-btn__spinner--visible","aria-hidden":"true"},[e.createElementVNode("svg",{viewBox:"0 0 32 32",fill:"none"},[e.createElementVNode("path",{d:"M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z",fill:"currentColor"})])],-1)),e.createElementVNode("span",zt,e.toDisplayString(t.loadingText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.$slots["leading-icon"]?(e.openBlock(),e.createElementBlock("span",Dt,[e.renderSlot(f.$slots,"leading-icon")])):e.createCommentVNode("",!0),f.$slots.default||t.description?(e.openBlock(),e.createElementBlock("span",Ot,[f.$slots.default?(e.openBlock(),e.createElementBlock("span",Lt,[e.renderSlot(f.$slots,"default")])):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.count!==void 0?(e.openBlock(),e.createElementBlock("span",Ft,e.toDisplayString(t.count),1)):e.createCommentVNode("",!0),f.$slots["trailing-icon"]?(e.openBlock(),e.createElementBlock("span",At,[e.renderSlot(f.$slots,"trailing-icon")])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["orb-btn__disclosure",{"orb-btn__disclosure--up":p.value==="up"}]),"aria-hidden":"true"},[...h[2]||(h[2]=[e.createElementVNode("svg",{viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})],-1)])],2)):e.createCommentVNode("",!0)],64))]),_:3},8,["class","type","href","target","disabled","aria-disabled","tabindex","rel","aria-pressed"]))}}),Rt=["aria-label"],Ht={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},It={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Wt={key:2,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Zt={key:3,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},ye=e.defineComponent({__name:"OStatusIcon",props:{status:{},size:{default:"md"},filled:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},setup(t){return(d,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["orb-status-icon",[`orb-status-icon--${t.status}`,`orb-status-icon--${t.size}`,{"orb-status-icon--filled":t.filled},{"orb-status-icon--inverted":t.inverted}]]),role:"img","aria-label":t.status},[t.status==="success"?(e.openBlock(),e.createElementBlock("svg",Ht,[...l[0]||(l[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("path",{d:"m9 12 2 2 4-4"},null,-1)])])):t.status==="warning"?(e.openBlock(),e.createElementBlock("svg",It,[...l[1]||(l[1]=[e.createElementVNode("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},null,-1),e.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),e.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1)])])):t.status==="error"?(e.openBlock(),e.createElementBlock("svg",Wt,[...l[2]||(l[2]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"15",y1:"9",x2:"9",y2:"15"},null,-1),e.createElementVNode("line",{x1:"9",y1:"9",x2:"15",y2:"15"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Zt,[...l[3]||(l[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"12",y1:"16",x2:"12",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"},null,-1)])]))],10,Rt))}}),Pt={key:0,class:"orb-text-field__icon orb-text-field__icon--prefix"},qt={key:1,class:"orb-text-field__icon orb-text-field__icon--prefix"},jt=["disabled"],Gt={key:3,class:"orb-text-field__icon orb-text-field__icon--prefix"},Kt={key:4,class:"orb-text-field__affix"},Ut=["id","type","value","placeholder","disabled","maxlength","min","max","step","inputmode","aria-invalid","aria-label"],Qt={key:5,class:"orb-text-field__icon orb-text-field__icon--validation"},Yt=["aria-label"],Jt={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},Xt={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},el=["disabled"],tl={key:9,class:"orb-text-field__affix"},ll={key:10,class:"orb-text-field__icon orb-text-field__icon--suffix"},ol=["href"],al={key:0,class:"orb-text-field__hyperlink-icon"},Je=e.defineComponent({__name:"OTextField",props:{modelValue:{default:""},label:{},placeholder:{},size:{default:"medium"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},maxLength:{},prefixText:{},suffixText:{},validationIcon:{type:Boolean},hyperlinkText:{},hyperlinkHref:{},type:{default:"text"},id:{},min:{},max:{},step:{default:1},mask:{}},emits:["update:modelValue","hyperlink-click","clear"],setup(t,{emit:d}){const l={cpf:"###.###.###-##",cnpj:"##.###.###/####-##",cep:"#####-###",tel:"(##) ####-####",cel:"(##) #####-####"};function r(B,x){const M=B.replace(/\D/g,"");let z="",W=0;for(let Z=0;Z<x.length&&W<M.length;Z++)x[Z]==="#"?(z+=M[W],W++):z+=x[Z];return z}function i(B){return B.replace(/\D/g,"")}function m(B){return l[B]??B}const c=t,p=d,u=e.ref(!1),y=e.ref(null),s=e.ref(c.modelValue??""),w=e.computed(()=>c.type==="search"),f=e.computed(()=>c.type==="password"),h=e.computed(()=>c.type==="number"),E=e.computed(()=>c.type==="tel"),O=e.computed(()=>!!c.mask),F=e.computed(()=>c.mask?m(c.mask):""),j=e.computed(()=>s.value.length>0),L=e.ref(!1),q=e.computed(()=>O.value?r(s.value,F.value):s.value),N=e.computed(()=>f.value?L.value?"text":"password":c.type);e.watch(()=>c.modelValue,B=>{s.value=B??""});function S(B){const x=B.target;if(O.value){const M=i(x.value),z=F.value.replace(/[^#]/g,"").length,W=M.slice(0,z);s.value=W;const Z=r(W,F.value);x.value=Z,p("update:modelValue",W)}else s.value=x.value,p("update:modelValue",x.value)}function Y(){var B;s.value="",p("update:modelValue",""),p("clear"),(B=y.value)==null||B.focus()}function T(){var B;L.value=!L.value,(B=y.value)==null||B.focus()}function ee(B){var Z;const x=parseFloat(s.value)||0,M=c.step??1;let z=x+M*B;c.min!=null&&z<c.min&&(z=c.min),c.max!=null&&z>c.max&&(z=c.max);const W=String(z);s.value=W,p("update:modelValue",W),(Z=y.value)==null||Z.focus()}function xe(){u.value=!0}function J(){u.value=!1}return(B,x)=>{var M;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["orb-text-field",`orb-text-field--${t.size}`])},[t.label||t.maxLength?(e.openBlock(),e.createBlock(e.unref(Ce),{key:0,label:t.label,required:t.required,optional:t.optional,disabled:t.state==="disabled","char-count":((M=t.modelValue)==null?void 0:M.length)??0,"max-length":t.maxLength},null,8,["label","required","optional","disabled","char-count","max-length"])):e.createCommentVNode("",!0),e.createVNode(e.unref(Ve),{size:t.size,focused:u.value,invalid:t.state==="invalid",disabled:t.state==="disabled"},{default:e.withCtx(()=>[w.value&&!B.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",Pt,[...x[3]||(x[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"})],-1)])])):e.createCommentVNode("",!0),E.value&&!B.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",qt,[...x[4]||(x[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.17-1.4,8.12,8.12,0,0,0,.75-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"})],-1)])])):e.createCommentVNode("",!0),h.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"orb-text-field__stepper","aria-label":"Diminuir",disabled:t.min!=null&&(parseFloat(s.value)||0)<=t.min,onClick:x[0]||(x[0]=z=>ee(-1))},[...x[5]||(x[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"})],-1)])],8,jt)):e.createCommentVNode("",!0),B.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",Gt,[e.renderSlot(B.$slots,"prefix-icon")])):e.createCommentVNode("",!0),t.prefixText?(e.openBlock(),e.createElementBlock("span",Kt,e.toDisplayString(t.prefixText),1)):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputRef",ref:y,id:t.id,type:N.value,value:O.value?q.value:t.modelValue,placeholder:t.placeholder,disabled:t.state==="disabled",maxlength:O.value?F.value.length:t.maxLength,min:h.value?t.min:void 0,max:h.value?t.max:void 0,step:h.value?t.step:void 0,inputmode:h.value?"numeric":E.value?"tel":O.value?"numeric":void 0,"aria-invalid":t.state==="invalid"?!0:void 0,"aria-label":w.value&&!t.label?t.placeholder||"Pesquisar":void 0,class:"orb-text-field__input",onInput:S,onFocus:xe,onBlur:J},null,40,Ut),t.validationIcon&&t.state!=="invalid"?(e.openBlock(),e.createElementBlock("span",Qt,[e.createVNode(ye,{status:"success",size:"sm"})])):e.createCommentVNode("",!0),w.value&&j.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:6,type:"button",class:"orb-text-field__clear","aria-label":"Limpar busca",onClick:Y},[...x[6]||(x[6]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})],-1)])])):e.createCommentVNode("",!0),f.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:7,type:"button",class:"orb-text-field__toggle","aria-label":L.value?"Ocultar senha":"Mostrar senha",onClick:T},[L.value?(e.openBlock(),e.createElementBlock("svg",Xt,[...x[8]||(x[8]=[e.createElementVNode("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a120.69,120.69,0,0,0,52.57-12.13l21.51,23.75A8,8,0,0,0,208,224a8,8,0,0,0,5.92-13.38ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128c4.65-8.48,19.23-33.33,43.78-49.93l18.44,20.29A48,48,0,0,0,128,176a47.58,47.58,0,0,0,12.27-1.63L155,190.72A104.82,104.82,0,0,1,128,192Zm-4-80.18,29.58,32.54A32,32,0,0,1,124,111.82Zm123.31,12.94c-.35.79-8.82,19.57-27.65,38.4A8,8,0,0,1,204.34,152c14.54-14.54,23.32-29.36,27.09-36A169.47,169.47,0,0,0,207.93,85.3C185.67,63.19,158.78,52,128,52a121.12,121.12,0,0,0-19.69,1.6,8,8,0,1,1-2.62-15.78A137.7,137.7,0,0,1,128,36c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,124.76ZM164,128a36,36,0,0,0-6.21-20.26,8,8,0,1,1,13.42-8.7A52,52,0,0,1,180,128a8,8,0,0,1-16,0Z"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Jt,[...x[7]||(x[7]=[e.createElementVNode("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128,169.47,169.47,0,0,1,48.07,97.29C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.29A169.47,169.47,0,0,1,231.43,128C223.72,141.72,192.44,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},null,-1)])]))],8,Yt)):e.createCommentVNode("",!0),h.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:8,type:"button",class:"orb-text-field__stepper","aria-label":"Aumentar",disabled:t.max!=null&&(parseFloat(s.value)||0)>=t.max,onClick:x[1]||(x[1]=z=>ee(1))},[...x[9]||(x[9]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"})],-1)])],8,el)):e.createCommentVNode("",!0),t.suffixText?(e.openBlock(),e.createElementBlock("span",tl,e.toDisplayString(t.suffixText),1)):e.createCommentVNode("",!0),B.$slots["suffix-icon"]?(e.openBlock(),e.createElementBlock("span",ll,[e.renderSlot(B.$slots,"suffix-icon")])):e.createCommentVNode("",!0)]),_:3},8,["size","focused","invalid","disabled"]),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:1,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0),t.hyperlinkText?(e.openBlock(),e.createElementBlock("a",{key:2,href:t.hyperlinkHref||"#",class:e.normalizeClass(["orb-text-field__hyperlink",{"orb-text-field__hyperlink--disabled":t.state==="disabled"}]),onClick:x[2]||(x[2]=e.withModifiers(z=>t.state!=="disabled"&&p("hyperlink-click"),["prevent"]))},[B.$slots["hyperlink-icon"]?(e.openBlock(),e.createElementBlock("span",al,[e.renderSlot(B.$slots,"hyperlink-icon")])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.hyperlinkText),1)],10,ol)):e.createCommentVNode("",!0)],2)}}}),nl=["id","value","placeholder","disabled","maxlength","rows","aria-invalid"],il=["href"],Xe=e.defineComponent({__name:"OTextArea",props:{modelValue:{default:""},label:{},placeholder:{},size:{default:"medium"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},maxLength:{},rows:{default:3},resize:{default:"vertical"},hyperlinkText:{},hyperlinkHref:{},id:{}},emits:["update:modelValue","hyperlink-click"],setup(t,{emit:d}){const l=t,r=d,i=e.ref(!1),m=e.ref(null);function c(s){const w=s.target;r("update:modelValue",w.value),l.resize==="auto"&&e.nextTick(()=>p())}function p(){const s=m.value;s&&(s.style.height="auto",s.style.height=`${s.scrollHeight}px`)}function u(){i.value=!0}function y(){i.value=!1}return e.watch(()=>l.modelValue,()=>{l.resize==="auto"&&e.nextTick(()=>p())}),e.onMounted(()=>{l.resize==="auto"&&p()}),(s,w)=>{var f;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["orb-text-area",`orb-text-area--${t.size}`])},[t.label||t.maxLength?(e.openBlock(),e.createBlock(e.unref(Ce),{key:0,label:t.label,required:t.required,optional:t.optional,disabled:t.state==="disabled","char-count":((f=t.modelValue)==null?void 0:f.length)??0,"max-length":t.maxLength},null,8,["label","required","optional","disabled","char-count","max-length"])):e.createCommentVNode("",!0),e.createVNode(e.unref(Ve),{size:t.size,focused:i.value,invalid:t.state==="invalid",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createElementVNode("textarea",{ref_key:"textareaRef",ref:m,id:t.id,value:t.modelValue,placeholder:t.placeholder,disabled:t.state==="disabled",maxlength:t.maxLength,rows:t.rows,"aria-invalid":t.state==="invalid"?!0:void 0,class:e.normalizeClass(["orb-text-area__input",`orb-text-area__input--resize-${t.resize}`]),onInput:c,onFocus:u,onBlur:y},null,42,nl)]),_:1},8,["size","focused","invalid","disabled"]),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:1,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0),t.hyperlinkText?(e.openBlock(),e.createElementBlock("a",{key:2,href:t.hyperlinkHref||"#",class:e.normalizeClass(["orb-text-area__hyperlink",{"orb-text-area__hyperlink--disabled":t.state==="disabled"}]),onClick:w[0]||(w[0]=e.withModifiers(h=>t.state!=="disabled"&&r("hyperlink-click"),["prevent"]))},e.toDisplayString(t.hyperlinkText),11,il)):e.createCommentVNode("",!0)],2)}}}),rl=["disabled","aria-invalid"],cl={key:0,class:"orb-field-label__suffix"},sl=["name","value","checked","disabled","aria-label","onChange"],dl={class:"orb-radio__content"},ul={class:"orb-radio__label"},ml={key:0,class:"orb-radio__description"},et=e.defineComponent({__name:"ORadioGroup",props:{modelValue:{},options:{},label:{},orientation:{default:"vertical"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},name:{}},emits:["update:modelValue"],setup(t,{emit:d}){const l=t,r=d,i=e.computed(()=>l.required?" (obrigatório)":l.optional?" (opcional)":"");function m(c){l.state!=="disabled"&&r("update:modelValue",c)}return(c,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["orb-radio-group",`orb-radio-group--${t.orientation}`,{"orb-radio-group--disabled":t.state==="disabled"}]),disabled:t.state==="disabled","aria-invalid":t.state==="invalid"?!0:void 0,role:"radiogroup"},[t.label?(e.openBlock(),e.createElementBlock("legend",{key:0,class:e.normalizeClass(["orb-field-label__text orb-radio-group__legend",{"orb-field-label__text--disabled":t.state==="disabled"}])},[e.createTextVNode(e.toDisplayString(t.label),1),i.value?(e.openBlock(),e.createElementBlock("span",cl,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["orb-radio-group__options",`orb-radio-group__options--${t.orientation}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,u=>(e.openBlock(),e.createElementBlock("label",{key:u.value,class:e.normalizeClass(["orb-radio",{"orb-radio--disabled":t.state==="disabled"}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__circle",{"orb-radio__circle--checked":t.modelValue===u.value,"orb-radio__circle--disabled":t.state==="disabled","orb-radio__circle--invalid":t.state==="invalid"&&t.modelValue!==u.value}])},[e.createElementVNode("input",{type:"radio",name:t.name,value:u.value,checked:t.modelValue===u.value,disabled:t.state==="disabled","aria-label":u.label,class:"orb-radio__input",onChange:y=>m(u.value)},null,40,sl),e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__dot",{"orb-radio__dot--visible":t.modelValue===u.value}])},null,2)],2),e.createElementVNode("span",dl,[e.createElementVNode("span",ul,e.toDisplayString(u.label),1),u.description?(e.openBlock(),e.createElementBlock("span",ml,e.toDisplayString(u.description),1)):e.createCommentVNode("",!0)])],2))),128))],2),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:1,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],10,rl))}}),bl=["disabled","aria-invalid"],hl={key:0,class:"orb-field-label__suffix"},kl=["checked","aria-checked","disabled","aria-label"],fl={class:"orb-checkbox__content"},vl={class:"orb-checkbox__label"},gl=["value","checked","disabled","aria-label","onChange"],pl={class:"orb-checkbox__content"},yl={class:"orb-checkbox__label"},xl={key:0,class:"orb-checkbox__description"},tt=e.defineComponent({__name:"OCheckboxGroup",props:{modelValue:{default:()=>[]},options:{},label:{},orientation:{default:"vertical"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},selectAll:{type:Boolean,default:!1},selectAllLabel:{default:"Selecionar todos"}},emits:["update:modelValue"],setup(t,{emit:d}){const l=t,r=d,i=e.computed(()=>l.required?" (obrigatório)":l.optional?" (opcional)":"");function m(f){return l.modelValue.includes(f)}function c(f){if(l.state==="disabled")return;const h=m(f)?l.modelValue.filter(E=>E!==f):[...l.modelValue,f];r("update:modelValue",h)}const p=e.computed(()=>l.options.map(f=>f.value)),u=e.computed(()=>p.value.length>0&&p.value.every(f=>l.modelValue.includes(f))),y=e.computed(()=>!u.value&&l.modelValue.length>0),s=e.ref(null);e.watch(y,f=>{s.value&&(s.value.indeterminate=f)}),e.onMounted(()=>{s.value&&y.value&&(s.value.indeterminate=!0)});function w(){l.state!=="disabled"&&(u.value?r("update:modelValue",[]):r("update:modelValue",[...p.value]))}return(f,h)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["orb-checkbox-group",`orb-checkbox-group--${t.orientation}`,{"orb-checkbox-group--disabled":t.state==="disabled"}]),disabled:t.state==="disabled","aria-invalid":t.state==="invalid"?!0:void 0,role:"group"},[t.label?(e.openBlock(),e.createElementBlock("legend",{key:0,class:e.normalizeClass(["orb-field-label__text orb-checkbox-group__legend",{"orb-field-label__text--disabled":t.state==="disabled"}])},[e.createTextVNode(e.toDisplayString(t.label),1),i.value?(e.openBlock(),e.createElementBlock("span",hl,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.selectAll?(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["orb-checkbox","orb-checkbox-group__select-all",{"orb-checkbox--disabled":t.state==="disabled"}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-checkbox__box",{"orb-checkbox__box--checked":u.value,"orb-checkbox__box--indeterminate":y.value,"orb-checkbox__box--disabled":t.state==="disabled"}])},[e.createElementVNode("input",{ref_key:"selectAllRef",ref:s,type:"checkbox",checked:u.value,"aria-checked":y.value?"mixed":u.value,disabled:t.state==="disabled","aria-label":t.selectAllLabel,class:"orb-checkbox__input",onChange:w},null,40,kl),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon",{"orb-checkbox__icon--visible":u.value}]),viewBox:"0 0 16 16",fill:"none"},[...h[0]||(h[0]=[e.createElementVNode("path",{d:"M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z",fill:"currentColor"},null,-1)])],2)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--dash",{"orb-checkbox__icon--visible":y.value}]),viewBox:"0 0 16 16",fill:"none"},[...h[1]||(h[1]=[e.createElementVNode("path",{d:"M3 8h10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)])],2))],2),e.createElementVNode("span",fl,[e.createElementVNode("span",vl,e.toDisplayString(t.selectAllLabel),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["orb-checkbox-group__options",`orb-checkbox-group__options--${t.orientation}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,E=>(e.openBlock(),e.createElementBlock("label",{key:E.value,class:e.normalizeClass(["orb-checkbox",{"orb-checkbox--disabled":t.state==="disabled"}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-checkbox__box",{"orb-checkbox__box--checked":m(E.value),"orb-checkbox__box--disabled":t.state==="disabled","orb-checkbox__box--invalid":t.state==="invalid"&&!m(E.value)}])},[e.createElementVNode("input",{type:"checkbox",value:E.value,checked:m(E.value),disabled:t.state==="disabled","aria-label":E.label,class:"orb-checkbox__input",onChange:O=>c(E.value)},null,40,gl),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon",{"orb-checkbox__icon--visible":m(E.value)}]),viewBox:"0 0 16 16",fill:"none"},[...h[2]||(h[2]=[e.createElementVNode("path",{d:"M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z",fill:"currentColor"},null,-1)])],2))],2),e.createElementVNode("span",pl,[e.createElementVNode("span",yl,e.toDisplayString(E.label),1),E.description?(e.openBlock(),e.createElementBlock("span",xl,e.toDisplayString(E.description),1)):e.createCommentVNode("",!0)])],2))),128))],2),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:2,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],10,bl))}}),lt=e.defineComponent({__name:"OButtonGroup",props:{orientation:{default:"horizontal"}},setup(t){const d=t,l=e.computed(()=>["orb-btn-group",`orb-btn-group--${d.orientation}`]);return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value),role:"group"},[e.renderSlot(r.$slots,"default")],2))}}),Bl=["id","aria-expanded","aria-controls","aria-activedescendant","aria-invalid","aria-label","aria-multiselectable","disabled"],Cl=["innerHTML"],Vl={key:0,class:"orb-select__tags"},wl=["innerHTML"],El={class:"orb-select__tag-label"},Nl=["aria-label","onClick"],$l={key:0,class:"orb-select__tag orb-select__tag--count"},Sl={key:1,class:"orb-select__value orb-select__value--placeholder"},_l={key:2,class:"orb-select__spinner","aria-hidden":"true"},Tl=["aria-label"],zl={class:"orb-select__listbox-inner"},Dl={key:0,class:"orb-select__toolbar orb-select__toolbar--top"},Ol={key:1,class:"orb-select__search"},Ll=["placeholder"],Ml=["id","aria-multiselectable"],Fl={class:"orb-select__group-label",role:"presentation"},Al=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],Rl={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Hl=["innerHTML"],Il={class:"orb-select__option-content"},Wl={class:"orb-select__option-label"},Zl={key:0,class:"orb-select__option-desc"},Pl={key:2,class:"orb-select__option-check","aria-hidden":"true"},ql=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],jl={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},Gl=["innerHTML"],Kl={class:"orb-select__option-content"},Ul={class:"orb-select__option-label"},Ql={key:0,class:"orb-select__option-desc"},Yl={key:2,class:"orb-select__option-check","aria-hidden":"true"},Jl=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],Xl={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},eo=["innerHTML"],to={class:"orb-select__option-content"},lo={class:"orb-select__option-label"},oo={key:0,class:"orb-select__option-desc"},ao={key:2,class:"orb-select__option-check","aria-hidden":"true"},no=["id","data-active"],io={class:"orb-select__option-label"},ro={key:3,class:"orb-select__empty"},co={key:4,class:"orb-select__limit-msg"},so={key:2,class:"orb-select__toolbar orb-select__toolbar--bottom"},uo=["aria-label"],mo={class:"orb-select__listbox-inner"},bo={key:0,class:"orb-select__toolbar orb-select__toolbar--top"},ho={key:1,class:"orb-select__search"},ko=["placeholder"],fo=["id","aria-multiselectable"],vo=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],go={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},po=["innerHTML"],yo={class:"orb-select__option-content"},xo={class:"orb-select__option-label"},Bo={key:0,class:"orb-select__option-desc"},Co={key:2,class:"orb-select__option-check","aria-hidden":"true"},Vo={key:0,class:"orb-select__empty"},wo={key:1,class:"orb-select__limit-msg"},Eo={key:2,class:"orb-select__toolbar orb-select__toolbar--bottom"},ot=e.defineComponent({__name:"OSelect",props:{modelValue:{default:""},options:{default:()=>[]},label:{},placeholder:{},size:{default:"medium"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},clearable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Buscar..."},multiple:{type:Boolean,default:!1},maxTagCount:{default:0},maxSelections:{default:0},allowDeselect:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createLabel:{default:'Criar "{query}"'},filterFn:{},teleport:{type:[Boolean,String],default:!1},direction:{default:"down"},id:{}},emits:["update:modelValue","change","search","create","loadMore"],setup(t,{emit:d}){const l=t,r=d,i=e.ref(!1),m=e.ref(!1),c=e.ref(null),p=e.ref(null),u=e.ref(null),y=e.ref(null),s=e.ref(-1),w=e.ref(""),f=e.ref(null),h=e.ref(""),E=e.ref({}),O=e.ref("down"),F=e.ref(null),j=e.ref(!1),L=e.computed(()=>l.state==="disabled"),q=e.computed(()=>l.state==="invalid"),N=e.computed(()=>l.multiple?Array.isArray(l.modelValue)?l.modelValue:[]:typeof l.modelValue=="string"&&l.modelValue!==""?[l.modelValue]:[]),S=e.computed(()=>{const o=[];for(const a of l.options)"options"in a?o.push(...a.options):o.push(a);return o});function Y(o,a){return l.filterFn?l.filterFn(o,a):o.label.toLowerCase().includes(a.toLowerCase())}const T=e.computed(()=>!l.searchable||!h.value?S.value:S.value.filter(o=>Y(o,h.value))),ee=e.computed(()=>!l.searchable||!h.value?l.options:l.options.map(o=>{if("options"in o){const a=o.options.filter(n=>Y(n,h.value));return a.length>0?{...o,options:a}:null}return Y(o,h.value)?o:null}).filter(Boolean)),xe=e.computed(()=>l.options.some(o=>"options"in o)),J=e.computed(()=>S.value.find(o=>o.value===(l.multiple?"":l.modelValue))),B=e.computed(()=>S.value.filter(o=>N.value.includes(o.value))),x=e.computed(()=>{var o;return((o=J.value)==null?void 0:o.label)??""}),M=e.computed(()=>l.multiple?N.value.length>0:l.modelValue!==""&&l.modelValue!=null),z=e.computed(()=>(l.id??"orb-select")+"-listbox"),W=e.computed(()=>T.value.length===0),Z=e.computed(()=>!l.multiple||l.maxSelections<=0?!1:N.value.length>=l.maxSelections),X=e.computed(()=>{if(!l.creatable||!l.searchable||!h.value.trim())return!1;const o=h.value.trim().toLowerCase();return!S.value.some(a=>a.label.toLowerCase()===o)}),Ne=e.computed(()=>l.maxTagCount>0&&B.value.length>l.maxTagCount?B.value.slice(0,l.maxTagCount):B.value),we=e.computed(()=>l.maxTagCount>0&&B.value.length>l.maxTagCount?B.value.length-l.maxTagCount:0);e.onMounted(()=>{document.addEventListener("mousedown",Oe)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",Oe),f.value&&clearTimeout(f.value)}),e.watch(i,o=>{if(o){h.value="",j.value=!1,Me(),l.teleport&&ut();const a=l.multiple?"":l.modelValue,n=T.value.findIndex(k=>k.value===a);s.value=n>=0?n:0,e.nextTick(()=>{var k;l.searchable&&((k=u.value)==null||k.focus()),he()})}else s.value=-1,h.value=""}),e.watch(()=>l.options,()=>{j.value=!1},{deep:!1}),e.watch(h,o=>{s.value=T.value.length>0?0:-1,l.searchable&&r("search",o)});function v(){L.value||l.loading||(i.value=!i.value)}function g(){L.value||l.loading||i.value||(i.value=!0)}function te(){var o;i.value&&(i.value=!1,(o=c.value)==null||o.focus())}function le(o){if(!o.disabled)if(l.multiple){const a=[...N.value],n=a.indexOf(o.value);if(n>=0)a.splice(n,1);else{if(Z.value)return;a.push(o.value)}r("update:modelValue",a),r("change",a),e.nextTick(()=>{var k;l.searchable&&((k=u.value)==null||k.focus())})}else l.allowDeselect&&o.value===l.modelValue?(r("update:modelValue",""),r("change","")):(r("update:modelValue",o.value),r("change",o.value)),te()}function ct(o){var n;o.stopPropagation();const a=l.multiple?[]:"";r("update:modelValue",a),r("change",a),(n=c.value)==null||n.focus()}function De(o,a){const n=N.value.filter(k=>k!==o);r("update:modelValue",n),r("change",n)}function Oe(o){var n,k;const a=o.target;if(!((n=y.value)!=null&&n.contains(a))){if(l.teleport&&((k=p.value)!=null&&k.contains(a)))return;i.value=!1}}function st(){m.value=!0}function dt(){m.value=!1}function Le(){const o=h.value.trim();if(!o)return;const a=o.toLowerCase().replace(/\s+/g,"-");if(r("create",o),l.multiple){const n=[...N.value,a];r("update:modelValue",n),r("change",n)}else r("update:modelValue",a),r("change",a),te();h.value=""}function Me(){if(l.direction!=="auto"){O.value=l.direction;return}if(!y.value){O.value="down";return}const o=y.value.getBoundingClientRect(),a=window.innerHeight-o.bottom,n=o.top;O.value=a<280&&n>a?"up":"down"}function ut(){if(!y.value)return;Me();const o=y.value.getBoundingClientRect();O.value==="up"?E.value={position:"fixed",bottom:`${window.innerHeight-o.top+4}px`,left:`${o.left}px`,width:`${o.width}px`,zIndex:"9999"}:E.value={position:"fixed",top:`${o.bottom+4}px`,left:`${o.left}px`,width:`${o.width}px`,zIndex:"9999"}}function Fe(o){const a=o.target;if(!a)return;a.scrollHeight-a.scrollTop-a.clientHeight<40&&!j.value&&!l.loading&&(j.value=!0,r("loadMore"))}function $e(o){switch(T.value.length+(X.value?1:0),o.key){case"Enter":case" ":if(l.searchable&&i.value&&o.key===" ")return;if(o.preventDefault(),i.value)if(X.value&&s.value===T.value.length)Le();else{const a=T.value[s.value];a&&!a.disabled&&le(a)}else g();break;case"ArrowDown":o.preventDefault(),i.value?Ae(1):g();break;case"ArrowUp":o.preventDefault(),i.value?Ae(-1):g();break;case"Home":o.preventDefault(),i.value&&mt();break;case"End":o.preventDefault(),i.value&&bt();break;case"Escape":o.preventDefault(),te();break;case"Backspace":l.multiple&&l.searchable&&i.value&&!h.value&&N.value.length>0&&De(N.value[N.value.length-1]);break;case"Tab":i.value&&(i.value=!1);break;default:!l.searchable&&o.key.length===1&&!o.ctrlKey&&!o.metaKey&&(o.preventDefault(),ht(o.key))}}function Ae(o){var ae,Re;const a=T.value,n=a.length+(X.value?1:0);if(n===0)return;let k=s.value,V=0;do if(k+=o,k<0&&(k=n-1),k>=n&&(k=0),V++,k===a.length&&X.value)break;while(k<a.length&&((ae=a[k])!=null&&ae.disabled)&&V<n);(k===a.length||!((Re=a[k])!=null&&Re.disabled))&&(s.value=k,e.nextTick(()=>he()))}function mt(){const o=T.value.findIndex(a=>!a.disabled);o>=0&&(s.value=o,e.nextTick(()=>he()))}function bt(){if(X.value){s.value=T.value.length,e.nextTick(()=>he());return}const o=T.value;for(let a=o.length-1;a>=0;a--)if(!o[a].disabled){s.value=a,e.nextTick(()=>he());return}}function ht(o){w.value+=o.toLowerCase(),f.value&&clearTimeout(f.value),f.value=setTimeout(()=>{w.value=""},500);const a=w.value,n=S.value,k=s.value>=0?s.value:0;for(let V=0;V<n.length;V++){const ae=(k+V)%n.length;if(!n[ae].disabled&&n[ae].label.toLowerCase().startsWith(a)){s.value=ae,i.value||g(),e.nextTick(()=>he());return}}}function he(){var a;const o=(a=p.value)==null?void 0:a.querySelector('[data-active="true"]');o==null||o.scrollIntoView({block:"nearest"})}function ke(o){return`${z.value}-option-${o}`}function oe(o){return T.value.indexOf(o)}function D(o){return N.value.includes(o.value)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"selectRoot",ref:y,class:e.normalizeClass(["orb-select",`orb-select--${t.size}`])},[t.label?(e.openBlock(),e.createBlock(e.unref(Ce),{key:0,label:t.label,required:t.required,optional:t.optional,disabled:L.value},null,8,["label","required","optional","disabled"])):e.createCommentVNode("",!0),e.createVNode(e.unref(Ve),{size:t.size,focused:m.value,invalid:q.value,disabled:L.value},{default:e.withCtx(()=>{var n;return[e.createElementVNode("button",{ref_key:"triggerRef",ref:c,type:"button",role:"combobox",id:t.id,"aria-expanded":i.value,"aria-haspopup":"listbox","aria-controls":z.value,"aria-activedescendant":s.value>=0?ke(s.value):void 0,"aria-invalid":q.value?!0:void 0,"aria-label":t.label?void 0:t.placeholder||"Selecionar","aria-multiselectable":t.multiple||void 0,disabled:L.value,class:e.normalizeClass(["orb-select__trigger",{"orb-select__trigger--multi":t.multiple&&M.value}]),onClick:v,onKeydown:$e,onFocus:st,onBlur:dt},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[M.value?(e.openBlock(),e.createElementBlock("div",Vl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ne.value,k=>(e.openBlock(),e.createElementBlock("span",{key:k.value,class:"orb-select__tag"},[k.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:"orb-select__tag-icon","aria-hidden":"true",innerHTML:k.icon},null,8,wl)):e.createCommentVNode("",!0),e.createElementVNode("span",El,e.toDisplayString(k.label),1),e.createElementVNode("button",{type:"button",class:"orb-select__tag-remove","aria-label":`Remover ${k.label}`,onClick:e.withModifiers(V=>De(k.value),["stop"]),onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"]))},[...a[6]||(a[6]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})],-1)])],40,Nl)]))),128)),we.value>0?(e.openBlock(),e.createElementBlock("span",$l," +"+e.toDisplayString(we.value),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",Sl,e.toDisplayString(t.placeholder||""),1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(n=J.value)!=null&&n.icon&&M.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"orb-select__trigger-icon","aria-hidden":"true",innerHTML:J.value.icon},null,8,Cl)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["orb-select__value",{"orb-select__value--placeholder":!M.value}])},[e.renderSlot(o.$slots,"selected",{option:J.value},()=>[e.createTextVNode(e.toDisplayString(M.value?x.value:t.placeholder||""),1)])],2)],64)),t.loading?(e.openBlock(),e.createElementBlock("span",_l,[...a[7]||(a[7]=[e.createElementVNode("svg",{viewBox:"0 0 16 16",fill:"none"},[e.createElementVNode("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"28","stroke-dashoffset":"8"})],-1)])])):e.createCommentVNode("",!0),t.clearable&&M.value&&!L.value&&!t.loading?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"orb-select__clear","aria-label":"Limpar seleção",onClick:ct,onMousedown:a[1]||(a[1]=e.withModifiers(()=>{},["prevent"]))},[...a[8]||(a[8]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})],-1)])],32)):e.createCommentVNode("",!0),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["orb-select__chevron",{"orb-select__chevron--open":i.value}]),"aria-hidden":"true"},[...a[9]||(a[9]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})],-1)])],2))],42,Bl)]}),_:3},8,["size","focused","invalid","disabled"]),t.teleport?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"listboxRef",ref:p,class:e.normalizeClass(["orb-select__listbox",{"orb-select__listbox--up":O.value==="up"}]),"aria-label":t.label||t.placeholder||"Opções"},[e.createElementVNode("div",zl,[o.$slots["dropdown-header"]?(e.openBlock(),e.createElementBlock("div",Dl,[e.renderSlot(o.$slots,"dropdown-header")])):e.createCommentVNode("",!0),t.searchable?(e.openBlock(),e.createElementBlock("div",Ol,[a[10]||(a[10]=e.createElementVNode("span",{class:"orb-select__search-icon","aria-hidden":"true"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"})])],-1)),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":a[2]||(a[2]=n=>h.value=n),type:"text",class:"orb-select__search-input",placeholder:t.searchPlaceholder,autocomplete:"off",onKeydown:$e},null,40,Ll),[[e.vModelText,h.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"optionsContainerRef",ref:F,id:z.value,role:"listbox","aria-multiselectable":t.multiple||void 0,class:"orb-select__options",onScroll:Fe},[xe.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.searchable?ee.value:t.options,(n,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:k},["options"in n?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Fl,e.toDisplayString(n.label),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,V=>(e.openBlock(),e.createElementBlock("div",{key:V.value,id:ke(oe(V)),role:"option","aria-selected":D(V),"aria-disabled":V.disabled||void 0,"data-active":oe(V)===s.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":D(V),"orb-select__option--active":oe(V)===s.value,"orb-select__option--disabled":V.disabled}]),onClick:ae=>le(V),onMouseenter:ae=>s.value=oe(V)},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":D(V)}]),"aria-hidden":"true"},[D(V)?(e.openBlock(),e.createElementBlock("svg",Rl,[...a[11]||(a[11]=[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),V.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:V.icon},null,8,Hl)):e.createCommentVNode("",!0),e.createElementVNode("span",Il,[e.createElementVNode("span",Wl,e.toDisplayString(V.label),1),V.description?(e.openBlock(),e.createElementBlock("span",Zl,e.toDisplayString(V.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&D(V)?(e.openBlock(),e.createElementBlock("span",Pl,[...a[12]||(a[12]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"})],-1)])])):e.createCommentVNode("",!0)],42,Al))),128))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,id:ke(oe(n)),role:"option","aria-selected":D(n),"aria-disabled":n.disabled||void 0,"data-active":oe(n)===s.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":D(n),"orb-select__option--active":oe(n)===s.value,"orb-select__option--disabled":n.disabled}]),onClick:V=>le(n),onMouseenter:V=>s.value=oe(n)},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":D(n)}]),"aria-hidden":"true"},[D(n)?(e.openBlock(),e.createElementBlock("svg",jl,[...a[13]||(a[13]=[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:n.icon},null,8,Gl)):e.createCommentVNode("",!0),e.createElementVNode("span",Kl,[e.createElementVNode("span",Ul,e.toDisplayString(n.label),1),n.description?(e.openBlock(),e.createElementBlock("span",Ql,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&D(n)?(e.openBlock(),e.createElementBlock("span",Yl,[...a[14]||(a[14]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"})],-1)])])):e.createCommentVNode("",!0)],42,ql))],64))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(T.value,(n,k)=>(e.openBlock(),e.createElementBlock("div",{key:n.value,id:ke(k),role:"option","aria-selected":D(n),"aria-disabled":n.disabled||void 0,"data-active":k===s.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":D(n),"orb-select__option--active":k===s.value,"orb-select__option--disabled":n.disabled}]),onClick:V=>le(n),onMouseenter:V=>s.value=k},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":D(n)}]),"aria-hidden":"true"},[D(n)?(e.openBlock(),e.createElementBlock("svg",Xl,[...a[15]||(a[15]=[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:n.icon},null,8,eo)):e.createCommentVNode("",!0),e.createElementVNode("span",to,[e.createElementVNode("span",lo,e.toDisplayString(n.label),1),n.description?(e.openBlock(),e.createElementBlock("span",oo,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&D(n)?(e.openBlock(),e.createElementBlock("span",ao,[...a[16]||(a[16]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"})],-1)])])):e.createCommentVNode("",!0)],42,Jl))),128)),X.value?(e.openBlock(),e.createElementBlock("div",{key:2,id:ke(T.value.length),role:"option","aria-selected":!1,"data-active":s.value===T.value.length,class:e.normalizeClass(["orb-select__option","orb-select__option--create",{"orb-select__option--active":s.value===T.value.length}]),onClick:Le,onMouseenter:a[3]||(a[3]=n=>s.value=T.value.length)},[a[17]||(a[17]=e.createElementVNode("span",{class:"orb-select__create-icon","aria-hidden":"true"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"})])],-1)),e.createElementVNode("span",io,e.toDisplayString(t.createLabel.replace("{query}",h.value.trim())),1)],42,no)):e.createCommentVNode("",!0),W.value&&!X.value?(e.openBlock(),e.createElementBlock("div",ro,e.toDisplayString(t.searchable&&h.value?"Nenhum resultado encontrado":"Nenhuma opção disponível"),1)):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createElementBlock("div",co," Limite de "+e.toDisplayString(t.maxSelections)+" "+e.toDisplayString(t.maxSelections===1?"seleção":"seleções")+" atingido ",1)):e.createCommentVNode("",!0)],40,Ml),o.$slots["dropdown-footer"]?(e.openBlock(),e.createElementBlock("div",so,[e.renderSlot(o.$slots,"dropdown-footer")])):e.createCommentVNode("",!0)])],10,Tl)),[[e.vShow,i.value]]),(e.openBlock(),e.createBlock(e.Teleport,{to:typeof t.teleport=="string"?t.teleport:"body",disabled:!t.teleport},[t.teleport?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"listboxRef",ref:p,class:e.normalizeClass(["orb-select__listbox",`orb-select--${t.size}`,{"orb-select__listbox--up":O.value==="up"}]),style:e.normalizeStyle(E.value),"aria-label":t.label||t.placeholder||"Opções",onMousedown:a[5]||(a[5]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",mo,[o.$slots["dropdown-header"]?(e.openBlock(),e.createElementBlock("div",bo,[e.renderSlot(o.$slots,"dropdown-header")])):e.createCommentVNode("",!0),t.searchable?(e.openBlock(),e.createElementBlock("div",ho,[a[18]||(a[18]=e.createElementVNode("span",{class:"orb-select__search-icon","aria-hidden":"true"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"})])],-1)),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":a[4]||(a[4]=n=>h.value=n),type:"text",class:"orb-select__search-input",placeholder:t.searchPlaceholder,autocomplete:"off",onKeydown:$e},null,40,ko),[[e.vModelText,h.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",{id:z.value,role:"listbox","aria-multiselectable":t.multiple||void 0,class:"orb-select__options",onScroll:Fe},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(n,k)=>(e.openBlock(),e.createElementBlock("div",{key:n.value,id:ke(k),role:"option","aria-selected":D(n),"aria-disabled":n.disabled||void 0,"data-active":k===s.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":D(n),"orb-select__option--active":k===s.value,"orb-select__option--disabled":n.disabled}]),onClick:V=>le(n),onMouseenter:V=>s.value=k},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":D(n)}]),"aria-hidden":"true"},[D(n)?(e.openBlock(),e.createElementBlock("svg",go,[...a[19]||(a[19]=[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),n.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:n.icon},null,8,po)):e.createCommentVNode("",!0),e.createElementVNode("span",yo,[e.createElementVNode("span",xo,e.toDisplayString(n.label),1),n.description?(e.openBlock(),e.createElementBlock("span",Bo,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&D(n)?(e.openBlock(),e.createElementBlock("span",Co,[...a[20]||(a[20]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},[e.createElementVNode("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"})],-1)])])):e.createCommentVNode("",!0)],42,vo))),128)),W.value?(e.openBlock(),e.createElementBlock("div",Vo,e.toDisplayString(t.searchable&&h.value?"Nenhum resultado encontrado":"Nenhuma opção disponível"),1)):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createElementBlock("div",wo," Limite de "+e.toDisplayString(t.maxSelections)+" "+e.toDisplayString(t.maxSelections===1?"seleção":"seleções")+" atingido ",1)):e.createCommentVNode("",!0)],40,fo),o.$slots["dropdown-footer"]?(e.openBlock(),e.createElementBlock("div",Eo,[e.renderSlot(o.$slots,"dropdown-footer")])):e.createCommentVNode("",!0)])],46,uo)),[[e.vShow,i.value]]):e.createCommentVNode("",!0)],8,["to","disabled"])),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:2,variant:q.value?"negative":"neutral",disabled:L.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],2))}}),No=["role"],$o={key:0,class:"orb-alert__icon"},So={class:"orb-alert__content"},_o={key:0,class:"orb-alert__title"},To={key:1,class:"orb-alert__description"},zo={key:2,class:"orb-alert__actions"},at=e.defineComponent({__name:"OAlert",props:{variant:{default:"info"},appearance:{default:"soft"},title:{},closable:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:d}){const l=t,r=d,i=e.ref(!0),m=e.ref(!1),c=e.computed(()=>!l.hideIcon&&l.variant!=="neutral"),p=e.computed(()=>l.variant==="warning"||l.variant==="error"?"alert":"status");function u(){m.value=!0}function y(){m.value&&(i.value=!1,r("close"))}return(s,w)=>i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["orb-alert",`orb-alert--${t.variant}`,`orb-alert--${t.appearance}`,{"orb-alert--closing":m.value},{"orb-alert--has-icon":c.value}]),role:p.value,onTransitionend:y},[c.value?(e.openBlock(),e.createElementBlock("span",$o,[e.renderSlot(s.$slots,"icon",{},()=>[e.createVNode(e.unref(ye),{status:t.variant,size:"md"},null,8,["status"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",So,[t.title?(e.openBlock(),e.createElementBlock("p",_o,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),s.$slots.default?(e.openBlock(),e.createElementBlock("div",To,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0),s.$slots.actions?(e.openBlock(),e.createElementBlock("div",zo,[e.renderSlot(s.$slots,"actions")])):e.createCommentVNode("",!0)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"orb-alert__close","aria-label":"Fechar",onClick:u},[...w[0]||(w[0]=[e.createElementVNode("svg",{viewBox:"0 0 256 256",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})],-1)])])):e.createCommentVNode("",!0)],42,No)):e.createCommentVNode("",!0)}}),Do=["role","aria-label","aria-labelledby","aria-describedby","aria-busy"],Oo={key:0,class:"orb-dialog__hero"},Lo={class:"orb-dialog__hero-actions"},Mo=["aria-label"],Fo={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Ao={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Ro=["disabled"],Ho={key:0,class:"orb-dialog__spinner",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Io={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Wo={class:"orb-dialog__header-text"},Zo=["aria-label"],Po={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},qo={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},jo=["disabled"],Go={key:0,class:"orb-dialog__spinner",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Ko={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},fe=[];let Be=0,He="",Ie="";const Te=e.defineComponent({__name:"ODialog",props:{open:{type:Boolean,default:!1},size:{default:"md"},title:{},description:{},role:{default:"dialog"},backdrop:{default:"opaque"},closeOnOverlayClick:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},preventBodyScroll:{type:Boolean,default:!0},scrollBehavior:{default:"inside"},showCloseButton:{type:Boolean,default:!0},initialFocusRef:{},returnFocusRef:{},ariaLabel:{},motionPreset:{default:"scale"},loading:{type:Boolean,default:!1},preventCloseWhileLoading:{type:Boolean,default:!0},beforeClose:{},responsive:{type:Boolean,default:!0},allowFullscreen:{type:Boolean,default:!1},position:{default:"center"}},emits:["update:open","close"],setup(t,{emit:d}){const l=t,r=d,i=`orb-dialog-${Math.random().toString(36).slice(2,8)}`,m=e.ref(null),c=e.ref(null),p=`orb-dialog-title-${Math.random().toString(36).slice(2,8)}`,u=`orb-dialog-desc-${Math.random().toString(36).slice(2,8)}`,y=e.ref(0),s=e.ref(!1),w=e.ref(!1),f=e.ref(!1),h=e.ref(!1);let E=null;function O(){w.value=!w.value}async function F(v){if(!(l.loading&&l.preventCloseWhileLoading)&&!s.value){if(l.beforeClose){s.value=!0;try{if(await l.beforeClose(v)===!1){s.value=!1;return}}catch{s.value=!1;return}}s.value=!1,r("update:open",!1),r("close",{reason:v})}}function j(v){v.target===v.currentTarget&&l.closeOnOverlayClick&&l.role!=="alertdialog"&&F("overlay")}function L(v){if(v.key==="Escape"&&l.closeOnEscape&&l.role!=="alertdialog"){const g=fe[fe.length-1];if(g&&g.id!==i)return;v.stopPropagation(),F("escape");return}if(v.key==="Tab"&&m.value){const g=m.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(g.length===0)return;const te=g[0],le=g[g.length-1];v.shiftKey?document.activeElement===te&&(v.preventDefault(),le.focus()):document.activeElement===le&&(v.preventDefault(),te.focus())}}let q=!1;function N(){if(l.preventBodyScroll&&!q){if(q=!0,Be===0){He=document.body.style.overflow,Ie=document.body.style.paddingRight;const v=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",v>0&&(document.body.style.paddingRight=`${v}px`)}Be++}}function S(){q&&(q=!1,Be--,Be<=0&&(Be=0,document.body.style.overflow=He,document.body.style.paddingRight=Ie))}async function Y(){var v;if(await e.nextTick(),(v=l.initialFocusRef)!=null&&v.value){l.initialFocusRef.value.focus();return}if(m.value){const g=m.value.querySelector('button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href]');g?g.focus():m.value.focus()}}function T(){var v;(v=l.returnFocusRef)!=null&&v.value?l.returnFocusRef.value.focus():E&&E.focus()}function ee(){if(!c.value)return;const v=c.value,g=1;f.value=v.scrollTop>g,h.value=v.scrollTop+v.clientHeight<v.scrollHeight-g}async function xe(){await e.nextTick(),c.value&&l.scrollBehavior==="inside"&&(ee(),c.value.addEventListener("scroll",ee,{passive:!0}))}function J(){c.value&&c.value.removeEventListener("scroll",ee),f.value=!1,h.value=!1}function B(){fe.push({id:i,close:()=>F("escape")}),y.value=fe.length-1}function x(){const v=fe.findIndex(g=>g.id===i);v!==-1&&fe.splice(v,1),y.value=0}e.watch(()=>l.open,v=>{v?(E=document.activeElement,B(),N(),Y(),xe()):(w.value=!1,x(),S(),T(),J())}),e.onBeforeUnmount(()=>{l.open&&(x(),S(),J())});const M=e.computed(()=>1e3+y.value*10),z=e.computed(()=>["orb-dialog-backdrop",`orb-dialog-backdrop--${l.backdrop}`,l.scrollBehavior==="outside"?"orb-dialog-backdrop--scroll-outside":"",l.responsive?"":"orb-dialog-backdrop--no-responsive",l.position==="top"?"orb-dialog-backdrop--top":""]),W=e.computed(()=>w.value?"full":l.size),Z=e.computed(()=>["orb-dialog",`orb-dialog--${W.value}`,l.scrollBehavior==="inside"?"orb-dialog--scroll-inside":"",l.loading?"orb-dialog--loading":"",l.responsive?"":"orb-dialog--no-responsive"]),X=e.computed(()=>["orb-dialog__header",f.value?"orb-dialog__header--shadow":""]),Ne=e.computed(()=>["orb-dialog__footer",h.value?"orb-dialog__footer--shadow":""]),we=e.computed(()=>l.motionPreset==="none"?"":`orb-dialog--${l.motionPreset}`);return(v,g)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:we.value},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(z.value),style:e.normalizeStyle({zIndex:M.value}),onMousedown:e.withModifiers(j,["self"])},[e.createElementVNode("div",{ref_key:"dialogRef",ref:m,class:e.normalizeClass(Z.value),role:t.role,"aria-modal":"true","aria-label":t.ariaLabel&&!t.title?t.ariaLabel:void 0,"aria-labelledby":t.title?p:void 0,"aria-describedby":t.description?u:void 0,"aria-busy":t.loading||void 0,tabindex:"-1",onKeydown:L},[v.$slots.hero?(e.openBlock(),e.createElementBlock("div",Oo,[e.renderSlot(v.$slots,"hero"),e.createElementVNode("div",Lo,[t.allowFullscreen?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-dialog__fullscreen orb-dialog__fullscreen--over-hero","aria-label":w.value?"Restaurar tamanho":"Tela cheia",onClick:O},[w.value?(e.openBlock(),e.createElementBlock("svg",Ao,[...g[3]||(g[3]=[e.createElementVNode("polyline",{points:"4 14 10 14 10 20"},null,-1),e.createElementVNode("polyline",{points:"20 10 14 10 14 4"},null,-1),e.createElementVNode("line",{x1:"14",y1:"10",x2:"21",y2:"3"},null,-1),e.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Fo,[...g[2]||(g[2]=[e.createElementVNode("polyline",{points:"15 3 21 3 21 9"},null,-1),e.createElementVNode("polyline",{points:"9 21 3 21 3 15"},null,-1),e.createElementVNode("line",{x1:"21",y1:"3",x2:"14",y2:"10"},null,-1),e.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])]))],8,Mo)):e.createCommentVNode("",!0),t.showCloseButton?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"orb-dialog__close orb-dialog__close--over-hero","aria-label":"Fechar",disabled:t.loading&&t.preventCloseWhileLoading,onClick:g[0]||(g[0]=te=>F("close-button"))},[t.loading?(e.openBlock(),e.createElementBlock("svg",Ho,[...g[4]||(g[4]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.4 31.4"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Io,[...g[5]||(g[5]=[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])]))],8,Ro)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),v.$slots.header||t.title?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(X.value)},[e.renderSlot(v.$slots,"header",{},()=>[e.createElementVNode("div",Wo,[t.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:p,class:"orb-dialog__title"},e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:1,id:u,class:"orb-dialog__description"},e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),v.$slots.hero?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.allowFullscreen?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-dialog__fullscreen","aria-label":w.value?"Restaurar tamanho":"Tela cheia",onClick:O},[w.value?(e.openBlock(),e.createElementBlock("svg",qo,[...g[7]||(g[7]=[e.createElementVNode("polyline",{points:"4 14 10 14 10 20"},null,-1),e.createElementVNode("polyline",{points:"20 10 14 10 14 4"},null,-1),e.createElementVNode("line",{x1:"14",y1:"10",x2:"21",y2:"3"},null,-1),e.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Po,[...g[6]||(g[6]=[e.createElementVNode("polyline",{points:"15 3 21 3 21 9"},null,-1),e.createElementVNode("polyline",{points:"9 21 3 21 3 15"},null,-1),e.createElementVNode("line",{x1:"21",y1:"3",x2:"14",y2:"10"},null,-1),e.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])]))],8,Zo)):e.createCommentVNode("",!0),t.showCloseButton?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"orb-dialog__close","aria-label":"Fechar",disabled:t.loading&&t.preventCloseWhileLoading,onClick:g[1]||(g[1]=te=>F("close-button"))},[t.loading?(e.openBlock(),e.createElementBlock("svg",Go,[...g[8]||(g[8]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.4 31.4"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Ko,[...g[9]||(g[9]=[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])]))],8,jo)):e.createCommentVNode("",!0)],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:c,class:"orb-dialog__body"},[e.renderSlot(v.$slots,"default")],512),v.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(Ne.value)},[e.renderSlot(v.$slots,"footer",{loading:t.loading})],2)):e.createCommentVNode("",!0)],42,Do)],38)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),Q=e.reactive([]);function Uo(){function t(i){return new Promise(m=>{const c={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:i.destructive?"destructive":"confirmation",open:!0,options:i,resolve:m};Q.push(c)})}function d(i){return new Promise(m=>{const c={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"alert",variant:"info",open:!0,options:{...i,confirmText:i.confirmText??"OK"},resolve:m};Q.push(c)})}function l(i){return new Promise(m=>{const c={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:"warning",open:!0,options:i,resolve:m};Q.push(c)})}function r(i){return new Promise(m=>{const c={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:"destructive",open:!0,options:i,resolve:m};Q.push(c)})}return{confirm:t,alert:d,warning:l,destructive:r}}function Qo(){return Q}function We(t,d){const l=Q.findIndex(r=>r.id===t);l!==-1&&(Q[l].resolve(d),Q[l].open=!1,setTimeout(()=>{const r=Q.findIndex(i=>i.id===t);r!==-1&&Q.splice(r,1)},300))}const Yo={key:0,class:"orb-alert-dialog orb-alert-dialog--centered"},Jo={class:"orb-alert-dialog__title"},Xo={key:1,class:"orb-alert-dialog__description"},ea={key:2,class:"orb-alert-dialog__body"},ta={class:"orb-alert-dialog__actions orb-alert-dialog__actions--centered"},la=["disabled"],oa={key:0,class:"orb-alert-dialog__spinner",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},aa={class:"orb-alert-dialog orb-alert-dialog--horizontal"},na={class:"orb-alert-dialog__text"},ia={class:"orb-alert-dialog__title"},ra={class:"orb-alert-dialog__desc-wrap"},ca={key:0,class:"orb-alert-dialog__description"},sa={key:1,class:"orb-alert-dialog__body"},da={key:2,class:"orb-alert-dialog__confirmation"},ua={class:"orb-alert-dialog__confirmation-label"},ma=["placeholder"],ba={key:0,class:"orb-alert-dialog__actions orb-alert-dialog__actions--inline"},ha=["disabled"],ka=["disabled"],fa=["disabled"],va={key:0,class:"orb-alert-dialog__spinner",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},ga={class:"orb-alert-dialog__actions orb-alert-dialog__actions--footer"},pa=["disabled"],ya=["disabled"],xa=["disabled"],Ba={key:0,class:"orb-alert-dialog__spinner",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},ze=e.defineComponent({__name:"OAlertDialog",props:{open:{type:Boolean,default:!1},title:{},description:{},variant:{default:"confirmation"},confirmLabel:{},cancelLabel:{},secondaryLabel:{},loading:{type:Boolean},size:{default:"sm"},closeOnEscape:{type:Boolean,default:!1},closeOnOverlayClick:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},confirmationText:{},inlineActions:{type:Boolean,default:!0}},emits:["update:open","confirm","cancel","secondary"],setup(t,{emit:d}){const l=t,r=d,i=e.ref(null),m=e.ref(null),c=e.ref(""),p=e.computed(()=>l.variant==="info"),u=e.computed(()=>l.confirmationText?c.value===l.confirmationText:!0),y=e.computed(()=>p.value?m:i),s=e.computed(()=>{if(l.confirmLabel)return l.confirmLabel;switch(l.variant){case"info":return"OK";case"destructive":return"Excluir";case"warning":return"Continuar";default:return"Confirmar"}}),w=e.computed(()=>l.cancelLabel??"Cancelar"),f=e.computed(()=>{switch(l.variant){case"info":return"info";case"warning":return"warning";case"confirmation":case"destructive":default:return"error"}}),h=e.computed(()=>`orb-alert-dialog__icon orb-alert-dialog__icon--${l.variant}`),E=e.computed(()=>{if(p.value)return"orb-alert-dialog__btn orb-alert-dialog__btn--confirm orb-alert-dialog__btn--primary orb-alert-dialog__btn--wide";const N="orb-alert-dialog__btn orb-alert-dialog__btn--confirm";return l.variant==="destructive"?`${N} orb-alert-dialog__btn--destructive`:`${N} orb-alert-dialog__btn--primary`}),O=e.computed(()=>!p.value);async function F(){l.loading||!u.value||(r("confirm"),await e.nextTick(),l.loading||r("update:open",!1))}function j(){l.loading||(r("cancel"),r("update:open",!1))}function L(){l.loading||r("secondary")}function q(N){N||(c.value="",r("cancel")),r("update:open",N)}return(N,S)=>(e.openBlock(),e.createBlock(Te,{open:t.open,size:t.size,role:"alertdialog","close-on-overlay-click":t.closeOnOverlayClick,"close-on-escape":t.closeOnEscape,"show-close-button":!1,loading:t.loading,"prevent-close-while-loading":!0,"aria-label":t.title,"initial-focus-ref":y.value,"onUpdate:open":q},e.createSlots({default:e.withCtx(()=>[p.value?(e.openBlock(),e.createElementBlock("div",Yo,[t.showIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(h.value)},[e.createVNode(ye,{status:f.value,size:"md"},null,8,["status"])],2)):e.createCommentVNode("",!0),e.createElementVNode("h3",Jo,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("p",Xo,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),N.$slots.default?(e.openBlock(),e.createElementBlock("div",ea,[e.renderSlot(N.$slots,"default")])):e.createCommentVNode("",!0),e.createElementVNode("div",ta,[e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:m,type:"button",class:e.normalizeClass(E.value),disabled:t.loading,onClick:F},[t.loading?(e.openBlock(),e.createElementBlock("svg",oa,[...S[1]||(S[1]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.4 31.4"},null,-1)])])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.value),1)],10,la)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",aa,[t.showIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(h.value)},[e.createVNode(ye,{status:f.value,size:"md"},null,8,["status"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",na,[e.createElementVNode("h3",ia,e.toDisplayString(t.title),1),e.createElementVNode("div",ra,[t.description?(e.openBlock(),e.createElementBlock("p",ca,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),N.$slots.default?(e.openBlock(),e.createElementBlock("div",sa,[e.renderSlot(N.$slots,"default")])):e.createCommentVNode("",!0),t.confirmationText?(e.openBlock(),e.createElementBlock("div",da,[e.createElementVNode("p",ua,[S[2]||(S[2]=e.createTextVNode(" Digite ",-1)),e.createElementVNode("strong",null,e.toDisplayString(t.confirmationText),1),S[3]||(S[3]=e.createTextVNode(" para confirmar: ",-1))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":S[0]||(S[0]=Y=>c.value=Y),type:"text",class:"orb-alert-dialog__confirmation-input",placeholder:t.confirmationText,autocomplete:"off",spellcheck:"false"},null,8,ma),[[e.vModelText,c.value]])])):e.createCommentVNode("",!0)])])]),t.inlineActions?(e.openBlock(),e.createElementBlock("div",ba,[t.secondaryLabel?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--secondary",disabled:t.loading,onClick:L},e.toDisplayString(t.secondaryLabel),9,ha)):e.createCommentVNode("",!0),O.value?(e.openBlock(),e.createElementBlock("button",{key:1,ref_key:"cancelBtnRef",ref:i,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--cancel",disabled:t.loading,onClick:j},e.toDisplayString(w.value),9,ka)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:m,type:"button",class:e.normalizeClass(E.value),disabled:t.loading||!u.value,onClick:F},[t.loading?(e.openBlock(),e.createElementBlock("svg",va,[...S[4]||(S[4]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.4 31.4"},null,-1)])])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.value),1)],10,fa)])):e.createCommentVNode("",!0)],64))]),_:2},[!p.value&&!t.inlineActions?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ga,[t.secondaryLabel?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--secondary",disabled:t.loading,onClick:L},e.toDisplayString(t.secondaryLabel),9,pa)):e.createCommentVNode("",!0),O.value?(e.openBlock(),e.createElementBlock("button",{key:1,ref_key:"cancelBtnRef",ref:i,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--cancel",disabled:t.loading,onClick:j},e.toDisplayString(w.value),9,ya)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:m,type:"button",class:e.normalizeClass(E.value),disabled:t.loading||!u.value,onClick:F},[t.loading?(e.openBlock(),e.createElementBlock("svg",Ba,[...S[5]||(S[5]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.4 31.4"},null,-1)])])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.value),1)],10,xa)])]),key:"0"}:void 0]),1032,["open","size","close-on-overlay-click","close-on-escape","loading","aria-label","initial-focus-ref"]))}}),nt=e.defineComponent({__name:"ODialogProvider",setup(t){const d=Qo();function l(c){We(c,!0)}function r(c){We(c,!1)}function i(c){return c.options.confirmText??(c.type==="alert"?"OK":c.variant==="destructive"?"Excluir":c.variant==="warning"?"Continuar":"Confirmar")}function m(c){return c.options.cancelText??"Cancelar"}return(c,p)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),u=>(e.openBlock(),e.createBlock(ze,{key:u.id,open:u.open,title:u.options.title,description:u.options.description,variant:u.variant,"confirm-label":i(u),"cancel-label":m(u),size:u.options.size??"sm",onConfirm:y=>l(u.id),onCancel:y=>r(u.id),"onUpdate:open":y=>{y||r(u.id)}},null,8,["open","title","description","variant","confirm-label","cancel-label","size","onConfirm","onCancel","onUpdate:open"]))),128))}}),Ze="orb-theme",ve=e.ref("system"),Ee=e.ref("light");function it(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Se(t){typeof document>"u"||(document.documentElement.setAttribute("data-theme",t),Ee.value=t)}function Pe(t){return t==="system"?it():t}function Ca(){e.onMounted(()=>{const l=localStorage.getItem(Ze);l&&(ve.value=l),Se(Pe(ve.value));const r=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{ve.value==="system"&&Se(it())};r.addEventListener("change",i)}),e.watchEffect(()=>{Se(Pe(ve.value))});function t(l){ve.value=l,localStorage.setItem(Ze,l)}function d(){const l=Ee.value==="light"?"dark":"light";t(l)}return{theme:e.computed(()=>ve.value),resolvedTheme:e.computed(()=>Ee.value),isDark:e.computed(()=>Ee.value==="dark"),setTheme:t,toggleTheme:d}}var _={white:{100:"rgba(255, 255, 255, 0.10)",120:"rgba(255, 255, 255, 0.12)",200:"rgba(255, 255, 255, 0.20)",250:"rgba(255, 255, 255, 0.25)",400:"rgba(255, 255, 255, 0.40)",550:"rgba(255, 255, 255, 0.55)",700:"rgba(255, 255, 255, 0.70)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.90)",1e3:"rgba(255, 255, 255, 1)"},black:{100:"rgba(0, 0, 0, 0.10)",250:"rgba(0, 0, 0, 0.25)",400:"rgba(0, 0, 0, 0.40)",550:"rgba(0, 0, 0, 0.55)",700:"rgba(0, 0, 0, 0.70)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.90)",1e3:"rgba(0, 0, 0, 1)"}},b={0:"#fff",50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)",1e3:"#000"},$={50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},ne={50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},G={50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},ie={50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},Va={50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},U={50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},P={50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},re={50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},ce={50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},K={50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},se={50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},de={50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},wa={50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},ue={50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},Ea={50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},me={50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},Na={50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},C={50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},$a={50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},Sa={50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},_a={50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},Ta={50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},za={50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},Da={50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},Oa={50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},La={50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},Ma={50:"oklch(97.9% 0.011 356.992)",100:"oklch(95.1% 0.026 2.758)",200:"oklch(88.9% 0.062 2.08)",300:"oklch(82.9% 0.099 3.505)",400:"oklch(74.4% 0.161 6.263)",500:"oklch(69.4% 0.201 9.064)",600:"oklch(66.4% 0.226 12.253)",700:"oklch(56.9% 0.192 12.094)",800:"oklch(47.4% 0.157 11.378)",900:"oklch(40.8% 0.132 10.888)",950:"oklch(27% 0.08 10.488)"},Fa={50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},Aa={50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},Ra={50:"oklch(97.5% 0.015 94.196)",100:"oklch(93.7% 0.038 92.236)",200:"oklch(87.4% 0.071 89.461)",300:"oklch(78.3% 0.109 85.27)",400:"oklch(72.3% 0.122 79.487)",500:"oklch(66.4% 0.119 73.618)",600:"oklch(57.5% 0.108 64.952)",700:"oklch(47.9% 0.09 57.119)",800:"oklch(42.3% 0.075 51.375)",900:"oklch(38.1% 0.065 45.673)",950:"oklch(25.9% 0.045 41.584)"},Ha={50:"oklch(97.4% 0.006 239.819)",100:"oklch(95.2% 0.009 242.84)",200:"oklch(91% 0.018 245.4)",300:"oklch(85.3% 0.029 246.519)",400:"oklch(77.8% 0.043 258.371)",500:"oklch(70.8% 0.057 264.115)",600:"oklch(65.4% 0.065 269.289)",700:"oklch(56.1% 0.068 269.924)",800:"oklch(48.7% 0.057 270.368)",900:"oklch(43.6% 0.038 267.435)",950:"oklch(30.6% 0.025 268.465)"},A={display:"'Inter Display', 'Inter', system-ui, -apple-system, sans-serif"},Ia={display:"'salt' on"},R={regular:"400",medium:"500","semi-bold":"600",bold:"700"},H={100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px",1e3:"40px",1100:"44px",1200:"48px",1300:"60px"},I={100:"16px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"44px",800:"48px",900:"52px",1e3:"56px",1100:"76px"},Wa={0:"0px",100:"2px",200:"4px",300:"8px",400:"12px",500:"16px",600:"20px",700:"24px",800:"28px",900:"32px",1e3:"48px",1100:"64px",1200:"80px",1300:"128px",1400:"200px",1500:"400px"},Za={0:"0px",100:"4px",200:"8px",300:"12px",pill:"9999px"},Pa={0:"0px",100:"1px",150:"1.5px",200:"2px",300:"3px"},ge={0:"none",100:"0px 2px 2px 0px rgba(30, 41, 59, 0.04), 0px 4px 8px 0px rgba(30, 41, 59, 0.08)",200:"0px 4px 4px 0px rgba(30, 41, 59, 0.04), 0px 8px 24px 0px rgba(30, 41, 59, 0.08)",300:"0px 16px 40px 0px rgba(30, 41, 59, 0.08), 0px 8px 8px 0px rgba(30, 41, 59, 0.04)",400:"0px 24px 56px 0px rgba(30, 41, 59, 0.08), 0px 12px 12px 0px rgba(30, 41, 59, 0.04)"},pe={0:"none",100:"0px 2px 2px 0px rgba(0, 0, 0, 0.20), 0px 4px 8px 0px rgba(0, 0, 0, 0.30)",200:"0px 4px 4px 0px rgba(0, 0, 0, 0.20), 0px 8px 24px 0px rgba(0, 0, 0, 0.40)",300:"0px 16px 40px 0px rgba(0, 0, 0, 0.40), 0px 8px 8px 0px rgba(0, 0, 0, 0.20)",400:"0px 24px 56px 0px rgba(0, 0, 0, 0.50), 0px 12px 12px 0px rgba(0, 0, 0, 0.25)"},qa={xs:"375px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},ja={hide:"-1",base:"0",dropdown:"1000",sticky:"1100",fixed:"1200",overlay:"1300",modal:"1400",popover:"1500",tooltip:"1600",toast:"1700"},Ga={fastest:"50ms",fast:"100ms",normal:"200ms",slow:"300ms",slower:"400ms",slowest:"500ms"},Ka={linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)",inOut:"cubic-bezier(0.4, 0, 0.2, 1)"},Ua={h1:{fontFamily:A.display,fontWeight:R.bold,fontSize:H[1200],lineHeight:I[700],letterSpacing:"0px"},h2:{fontFamily:A.display,fontWeight:R.bold,fontSize:H[1e3],lineHeight:I[600],letterSpacing:"0px"},h3:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[800],lineHeight:I[500],letterSpacing:"0px"},h4:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[600],lineHeight:I[400],letterSpacing:"0px"},h5:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[500],lineHeight:I[300],letterSpacing:"0px"},h6:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[400],lineHeight:I[200],letterSpacing:"0px"}},Qa={large:{fontFamily:A.display,fontWeight:R.regular,fontSize:H[400],lineHeight:I[300],letterSpacing:"0px"},medium:{fontFamily:A.display,fontWeight:R.regular,fontSize:H[300],lineHeight:I[300],letterSpacing:"0px"},small:{fontFamily:A.display,fontWeight:R.regular,fontSize:H[200],lineHeight:I[200],letterSpacing:"0px"},"extra-small":{fontFamily:A.display,fontWeight:R.regular,fontSize:H[100],lineHeight:I[100],letterSpacing:"0px"}},Ya={large:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[200],lineHeight:I[200],letterSpacing:"0px"},small:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[100],lineHeight:I[100],letterSpacing:"0px"}},Ja={large:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[300],lineHeight:I[300],letterSpacing:"0px"},medium:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[200],lineHeight:I[300],letterSpacing:"0px"},small:{fontFamily:A.display,fontWeight:R["semi-bold"],fontSize:H[100],lineHeight:I[100],letterSpacing:"0px"}},Xa={bg:b[0],"bg-subtle":b[50],"bg-muted":b[100],"bg-emphasis":b[200],"bg-inverse":b[1e3],fg:b[950],"fg-subtle":b[800],"fg-muted":b[500],"fg-on-emphasis":b[0],"fg-inverse":b[0],"fg-disabled":_.black[250],border:b[200],"border-subtle":b[100],"border-emphasis":b[400],"border-disabled":_.black[100],ring:"var(--orb-branding-200)","ring-offset":b[0],surface:b[0],"surface-raised":b[50],"surface-overlay":b[0],primary:"var(--orb-branding-600)","primary-hover":"var(--orb-branding-700)","primary-active":"var(--orb-branding-800)","primary-focus":"var(--orb-branding-600)","primary-subtle":"var(--orb-branding-50)","primary-fg":b[0],"primary-border":"var(--orb-branding-600)",secondary:b[0],"secondary-hover":b[300],"secondary-active":b[400],"secondary-focus":b[200],"secondary-fg":b[900],"secondary-border":b[300],success:P[600],"success-hover":P[700],"success-subtle":P[50],"success-fg":b[0],"success-border":P[300],"success-text":P[700],warning:G[500],"warning-hover":G[600],"warning-subtle":G[50],"warning-fg":b[1e3],"warning-border":G[300],"warning-text":G[700],error:$[600],"error-hover":$[700],"error-subtle":$[50],"error-fg":b[0],"error-border":$[300],"error-text":$[700],info:K[600],"info-hover":K[700],"info-subtle":K[50],"info-fg":b[0],"info-border":K[300],"info-text":K[700],"input-bg":b[50],"input-border":b[200],"input-border-hover":b[300],"input-border-focus":"var(--orb-branding-600)","input-placeholder":b[400],"input-disabled-bg":_.black[100],"input-disabled-fg":_.black[250],"bg-medium-pink":me[600],"bg-light-pink":me[50],"text-medium-pink":me[600],"bg-medium-gray":b[700],"bg-light-gray":b[100],"text-medium-gray":b[600],"bg-medium-green":U[600],"bg-light-green":U[50],"text-medium-green":U[700],"bg-medium-red":$[600],"bg-light-red":$[50],"text-medium-red":$[600],"bg-medium-yellow":ie[500],"bg-light-yellow":ie[50],"text-medium-yellow":ie[700],"bg-medium-blue":se[600],"bg-light-blue":se[50],"text-medium-blue":se[600],"bg-medium-purple":ue[600],"bg-light-purple":ue[50],"text-medium-purple":ue[600],"bg-medium-indigo":de[600],"bg-light-indigo":de[50],"text-medium-indigo":de[600],"bg-medium-orange":ne[600],"bg-light-orange":ne[50],"text-medium-orange":ne[700],"bg-medium-teal":re[600],"bg-light-teal":re[50],"text-medium-teal":re[700],"bg-medium-cyan":ce[600],"bg-light-cyan":ce[50],"text-medium-cyan":ce[700],"tooltip-bg":b[900],"tooltip-fg":b[0],"icon-default":b[600],"icon-disabled":_.black[250],"icon-hyperlink":"var(--orb-branding-600)","icon-success":P[600],"text-hyperlink":"var(--orb-branding-600)","text-disabled":_.black[250],"text-invalid":$[600],"border-field":b[200],"border-field-action":b[700],"border-invalid":$[600],"border-neutral":b[0],"bg-field":b[0],"bg-field-disabled":_.black[100],"bg-layer2":b[50],"bg-disabled":_.black[100],"shadow-sm":ge[100],"shadow-md":ge[200],"shadow-lg":ge[300],"shadow-overlay":ge[200],"overlay-bg":_.white[200],"dialog-bg":b[0],"dialog-border":b[200],"dialog-shadow":ge[300],"dialog-scrim":_.black[400],"dialog-outline":"transparent","dialog-header-border":"transparent","dialog-footer-border":"transparent","dialog-footer-bg":b[50],"text-support":C[500],"frame-bg-layer3":b[100]},en={bg:C[900],"bg-subtle":C[800],"bg-muted":C[700],"bg-emphasis":C[600],"bg-inverse":C[50],fg:b[0],"fg-subtle":C[300],"fg-muted":C[400],"fg-on-emphasis":b[0],"fg-inverse":C[950],"fg-disabled":_.white[250],border:C[700],"border-subtle":C[800],"border-emphasis":C[600],"border-disabled":_.white[100],ring:"var(--orb-branding-300)","ring-offset":C[900],surface:C[800],"surface-raised":C[700],"surface-overlay":C[700],primary:"var(--orb-branding-600)","primary-hover":"var(--orb-branding-700)","primary-active":"var(--orb-branding-800)","primary-focus":"var(--orb-branding-600)","primary-subtle":"var(--orb-branding-950)","primary-fg":b[0],"primary-border":"var(--orb-branding-600)",secondary:"rgba(148, 163, 184, 0.1)","secondary-hover":"rgba(203, 213, 225, 0.1)","secondary-active":"rgba(241, 245, 249, 0.25)","secondary-focus":"rgba(241, 245, 249, 0.10)","secondary-fg":b[0],"secondary-border":"transparent",success:P[600],"success-hover":P[500],"success-subtle":P[950],"success-fg":b[0],"success-border":P[800],"success-text":P[400],warning:G[500],"warning-hover":G[400],"warning-subtle":G[950],"warning-fg":b[1e3],"warning-border":G[800],"warning-text":G[400],error:$[500],"error-hover":$[400],"error-subtle":$[950],"error-fg":b[0],"error-border":$[800],"error-text":$[400],info:K[600],"info-hover":K[500],"info-subtle":K[950],"info-fg":b[0],"info-border":K[800],"info-text":K[400],"input-bg":C[800],"input-border":C[600],"input-border-hover":C[500],"input-border-focus":"var(--orb-branding-600)","input-placeholder":C[400],"input-disabled-bg":_.white[100],"input-disabled-fg":_.white[250],"bg-medium-pink":me[600],"bg-light-pink":me[950],"text-medium-pink":me[400],"bg-medium-gray":C[400],"bg-light-gray":C[700],"text-medium-gray":C[300],"bg-medium-green":U[600],"bg-light-green":U[950],"text-medium-green":U[400],"bg-medium-red":$[500],"bg-light-red":$[950],"text-medium-red":$[400],"bg-medium-yellow":ie[500],"bg-light-yellow":ie[950],"text-medium-yellow":ie[400],"bg-medium-blue":se[500],"bg-light-blue":se[950],"text-medium-blue":se[400],"bg-medium-purple":ue[500],"bg-light-purple":ue[950],"text-medium-purple":ue[400],"bg-medium-indigo":de[500],"bg-light-indigo":de[950],"text-medium-indigo":de[400],"bg-medium-orange":ne[500],"bg-light-orange":ne[950],"text-medium-orange":ne[400],"bg-medium-teal":re[500],"bg-light-teal":re[950],"text-medium-teal":re[400],"bg-medium-cyan":ce[500],"bg-light-cyan":ce[950],"text-medium-cyan":ce[400],"tooltip-bg":C[700],"tooltip-fg":b[0],"icon-default":C[300],"icon-disabled":_.white[250],"icon-hyperlink":"var(--orb-branding-600)","icon-success":P[500],"text-hyperlink":"var(--orb-branding-600)","text-disabled":_.white[250],"text-invalid":$[400],"border-field":C[600],"border-field-action":C[300],"border-invalid":$[500],"border-neutral":b[0],"bg-field":C[800],"bg-field-disabled":_.white[100],"bg-layer2":C[800],"bg-disabled":_.white[100],"shadow-sm":pe[100],"shadow-md":pe[200],"shadow-lg":pe[300],"shadow-overlay":pe[200],"overlay-bg":_.white[120],"dialog-bg":C[800],"dialog-border":C[600],"dialog-shadow":pe[300],"dialog-scrim":_.black[700],"dialog-outline":_.white[100],"dialog-header-border":"transparent","dialog-footer-border":"transparent","dialog-footer-bg":"rgba(51, 65, 85, 0.25)","text-support":C[400],"frame-bg-layer3":C[600]},tn={"static-success-default":U[600],"static-success-hover":U[700],"static-success-active":U[800],"static-success-focus":U[600],"static-invalid-default":$[600],"static-invalid-hover":$[700],"static-invalid-active":$[800],"static-invalid-focus":$[600],"static-overlay-bg":_.black[400],"static-overlay-bg-hover":_.black[550],"static-overlay-fg":b[0]},ln={branding:Ma},on={branding:Fa},an={branding:Aa},nn={branding:Ra},rn={branding:Ha};function cn(t){return t}function _e(t){return Object.entries(t).map(([d,l])=>` --orb-${d}: ${l};`).join(`
|
|
2
|
-
`)}function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),et=e.defineComponent({__name:"OText",props:{variant:{},as:{default:void 0},weight:{default:void 0}},setup(t){const l=t,o={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6","body-large":"p","body-medium":"p","body-small":"p","body-extra-small":"p","caption-large":"span","caption-small":"span","button-large":"span","button-medium":"span","button-small":"span"},r=e.computed(()=>l.as||o[l.variant]||"span");return(n,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{class:e.normalizeClass(["orb-text",`orb-text--${t.variant}`,t.weight?`orb-text--w-${t.weight}`:""])},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),ze=new Map;async function $t(t){if(!t)return null;if(ze.has(t))return ze.get(t);try{const l=await import(`@neowit/orbit-icons/vue/icons/${t}.vue`);return ze.set(t,l.default),l.default}catch{try{const l=await import(`@neowit/orbit-icons/vue/custom/${t}.vue`);return ze.set(t,l.default),l.default}catch{return console.warn(`[Orbit] Icon "${t}" not found in @neowit/orbit-icons`),null}}}function K(t,l){const o=e.shallowRef(null),r=()=>e.isRef(t)?t.value:l?t[l]:void 0;return e.watch(()=>r(),async n=>{if(!n){o.value=null;return}o.value=await $t(n)},{immediate:!0}),o}const _t=["aria-label"],zt={key:0,class:"orb-badge__dot"},tt=e.defineComponent({__name:"OBadge",props:{type:{default:"soft"},color:{default:"gray"},maxWidth:{},iconOnly:{type:Boolean},icon:{}},setup(t){const o=K(t,"icon");return(r,n)=>t.type==="dot"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-badge","orb-badge--dot",`orb-badge--${t.color}`]),"aria-label":`Status: ${t.color}`},null,10,_t)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["orb-badge",`orb-badge--${t.type}`,`orb-badge--${t.color}`,{"orb-badge--icon-only":t.iconOnly}])},[t.type==="status"?(e.openBlock(),e.createElementBlock("span",zt)):e.createCommentVNode("",!0),t.type==="icon"&&e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)),{key:1,size:14,"aria-hidden":"true"})):t.type==="icon"?e.renderSlot(r.$slots,"icon",{key:2}):e.createCommentVNode("",!0),t.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:3,class:"orb-badge__label",style:e.normalizeStyle(t.maxWidth?{maxWidth:t.maxWidth,overflow:"hidden",textOverflow:"ellipsis"}:void 0)},[e.renderSlot(r.$slots,"default")],4))],2))}}),ot=e.defineComponent({__name:"OTooltip",props:{text:{},placement:{default:"top"},maxWidth:{},showDelay:{default:100},hideDelay:{default:80},disabled:{type:Boolean}},setup(t){const l=t,o=e.ref(!1);let r=null,n=null;function d(){l.disabled||(n&&(clearTimeout(n),n=null),r=setTimeout(()=>{o.value=!0},l.showDelay))}function s(){r&&(clearTimeout(r),r=null),n=setTimeout(()=>{o.value=!1},l.hideDelay)}function b(){r&&(clearTimeout(r),r=null),n&&(clearTimeout(n),n=null),o.value=!1}return(m,v)=>(e.openBlock(),e.createElementBlock("span",{class:"orb-tooltip-trigger",onMouseenter:d,onMouseleave:s,onFocusin:d,onFocusout:s,onKeydown:e.withKeys(b,["escape"])},[e.renderSlot(m.$slots,"default"),e.createVNode(e.Transition,{name:"orb-tooltip"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("span",{key:0,role:"tooltip",class:e.normalizeClass(["orb-tooltip",`orb-tooltip--${t.placement}`]),style:e.normalizeStyle(t.maxWidth?{maxWidth:t.maxWidth,whiteSpace:"normal"}:void 0)},[e.renderSlot(m.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),v[0]||(v[0]=e.createElementVNode("span",{class:"orb-tooltip__arrow"},null,-1))],6)):e.createCommentVNode("",!0)]),_:3})],32))}}),St=["role"],be=e.defineComponent({__name:"OHelpText",props:{variant:{default:"neutral"},disabled:{type:Boolean,default:!1}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["orb-help-text",`orb-help-text--${t.variant}`,{"orb-help-text--disabled":t.disabled&&t.variant==="neutral"}]),role:t.variant==="negative"?"alert":void 0},[e.renderSlot(l.$slots,"default")],10,St))}}),Tt={key:0,class:"orb-field-label"},Dt={key:0,class:"orb-field-label__suffix"},$e=e.defineComponent({__name:"OFieldLabel",props:{label:{},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},charCount:{},maxLength:{}},setup(t){const l=t,o=e.computed(()=>l.required?" (obrigatório)":l.optional?" (opcional)":"");return(r,n)=>t.label||t.maxLength?(e.openBlock(),e.createElementBlock("div",Tt,[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["orb-field-label__text",{"orb-field-label__text--disabled":t.disabled}])},[e.createTextVNode(e.toDisplayString(t.label),1),o.value?(e.openBlock(),e.createElementBlock("span",Dt,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.maxLength!=null?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["orb-field-label__counter",{"orb-field-label__counter--disabled":t.disabled}])},e.toDisplayString(t.charCount??0),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),Ot=["checked","aria-checked","disabled"],Lt={key:0,class:"orb-checkbox__content"},Mt={key:0,class:"orb-checkbox__label"},It={key:1,class:"orb-checkbox__description"},lt=e.defineComponent({__name:"OCheckbox",props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{},description:{}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,r=l,n=e.computed(()=>o.modelValue),d=e.ref(null);e.watch(()=>o.indeterminate,b=>{d.value&&(d.value.indeterminate=b)}),e.onMounted(()=>{d.value&&o.indeterminate&&(d.value.indeterminate=!0)});function s(){o.disabled||r("update:modelValue",!o.modelValue)}return(b,m)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["orb-checkbox",{"orb-checkbox--disabled":t.disabled}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-checkbox__box",{"orb-checkbox__box--checked":n.value&&!t.indeterminate,"orb-checkbox__box--indeterminate":t.indeterminate,"orb-checkbox__box--disabled":t.disabled}])},[e.createElementVNode("input",{ref_key:"inputRef",ref:d,type:"checkbox",checked:n.value,"aria-checked":t.indeterminate?"mixed":n.value,disabled:t.disabled,class:"orb-checkbox__input",onChange:s},null,40,Ot),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--check",{"orb-checkbox__icon--visible":n.value&&!t.indeterminate}]),viewBox:"0 0 24 24",fill:"none"},[...m[0]||(m[0]=[e.createElementVNode("path",{class:"orb-checkbox__stroke",d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--dash",{"orb-checkbox__icon--visible":t.indeterminate}]),viewBox:"0 0 16 16",fill:"none"},[...m[1]||(m[1]=[e.createElementVNode("path",{class:"orb-checkbox__stroke",d:"M13 8H3",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)])],2))],2),t.label||t.description?(e.openBlock(),e.createElementBlock("span",Lt,[t.label?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",It,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Ft=["name","value","checked","disabled","aria-label"],Wt={key:0,class:"orb-radio__content"},Rt={key:0,class:"orb-radio__label"},jt={key:1,class:"orb-radio__description"},at=e.defineComponent({__name:"ORadioButton",props:{modelValue:{},value:{},disabled:{type:Boolean,default:!1},label:{},description:{},name:{}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,r=l;function n(){o.disabled||r("update:modelValue",o.value)}return(d,s)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["orb-radio",{"orb-radio--disabled":t.disabled}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__circle",{"orb-radio__circle--checked":t.modelValue===t.value,"orb-radio__circle--disabled":t.disabled}])},[e.createElementVNode("input",{type:"radio",name:t.name,value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,"aria-label":t.label||t.value,class:"orb-radio__input",onChange:n},null,40,Ft),e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__dot",{"orb-radio__dot--visible":t.modelValue===t.value}])},null,2)],2),t.label||t.description?(e.openBlock(),e.createElementBlock("span",Wt,[t.label?(e.openBlock(),e.createElementBlock("span",Rt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",jt,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Ht=["aria-checked","aria-label","disabled"],At={class:"orb-switch__track-icon orb-switch__track-icon--on"},Pt={class:"orb-switch__track-icon orb-switch__track-icon--off"},qt={class:"orb-switch__thumb"},Gt={key:0,class:"orb-switch__content"},Kt={key:0,class:"orb-switch__label"},Ut={key:1,class:"orb-switch__description"},Ie=e.defineComponent({__name:"OSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{},description:{},size:{default:"md"},iconOn:{},iconOff:{},iconThumb:{},iconThumbOff:{}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,r=l,n=K(o,"iconOn"),d=K(o,"iconOff"),s=K(o,"iconThumb"),b=K(o,"iconThumbOff"),m=e.computed(()=>o.size==="sm"?10:12),v=e.computed(()=>o.size==="sm"?10:14);function u(){o.disabled||r("update:modelValue",!o.modelValue)}return(y,p)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["orb-switch",`orb-switch--${t.size}`,{"orb-switch--disabled":t.disabled}])},[e.createElementVNode("button",{type:"button",role:"switch","aria-checked":t.modelValue,"aria-label":t.label,disabled:t.disabled,class:e.normalizeClass(["orb-switch__track",{"orb-switch__track--on":t.modelValue,"orb-switch__track--disabled":t.disabled}]),onClick:u},[e.createElementVNode("span",At,[e.unref(n)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)),{key:0,size:m.value,"aria-hidden":"true"},null,8,["size"])):e.renderSlot(y.$slots,"track-on",{key:1})]),e.createElementVNode("span",Pt,[e.unref(d)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{key:0,size:m.value,"aria-hidden":"true"},null,8,["size"])):e.renderSlot(y.$slots,"track-off",{key:1})]),e.createElementVNode("span",qt,[e.unref(s)||e.unref(b)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.modelValue&&e.unref(s)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(s)),{key:0,size:v.value,"aria-hidden":"true",style:{color:"var(--orb-fg-muted)"}},null,8,["size"])):!t.modelValue&&e.unref(b)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(b)),{key:1,size:v.value,"aria-hidden":"true",style:{color:"var(--orb-fg-muted)"}},null,8,["size"])):e.unref(s)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(s)),{key:2,size:v.value,"aria-hidden":"true",style:{color:"var(--orb-fg-muted)"}},null,8,["size"])):e.createCommentVNode("",!0)],64)):e.renderSlot(y.$slots,"thumb",{key:1})])],10,Ht),t.label||t.description?(e.openBlock(),e.createElementBlock("span",Gt,[t.label?(e.openBlock(),e.createElementBlock("span",Kt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Ut,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),_e=e.defineComponent({__name:"OFieldWrap",props:{size:{default:"medium"},focused:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(t){const l=t,o=e.computed(()=>["orb-field-wrap",`orb-field-wrap--${l.size}`,{"orb-field-wrap--focus":l.focused&&!l.disabled,"orb-field-wrap--invalid":l.invalid,"orb-field-wrap--disabled":l.disabled}]);return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(r.$slots,"default")],2))}}),Zt=["width","height","stroke-width"],Qt=e.defineComponent({__name:"IconCheckmarkCircle1",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"9.004",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8.443 12.34 2.167 2.168-.014-.014 4.891-4.891"},null,-1)])],16,Zt))}}),Yt=["width","height","stroke-width"],Ce=e.defineComponent({__name:"IconDeleteDisabled",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 8 8 8m0-8-8 8"},null,-1)])],16,Yt))}}),Jt=["width","height","stroke-width"],Xt=e.defineComponent({__name:"IconEye2",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M2.996 12a4.36 4.36 0 0 1 .446-1.912v0A9.46 9.46 0 0 1 12 4.998a9.46 9.46 0 0 1 8.558 5.09v0a4.32 4.32 0 0 1 0 3.825v0A9.46 9.46 0 0 1 12 19.003a9.46 9.46 0 0 1-8.558-5.09v0a4.35 4.35 0 0 1-.446-1.912","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M15.001 12A3.001 3.001 0 1 1 12 9"},null,-1)])],16,Jt))}}),eo=["width","height","stroke-width"],to=e.defineComponent({__name:"IconEyeCross1",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M14.558 13.558a3.003 3.003 0 1 1-4.114-4.115"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M17.997 16.997A9.87 9.87 0 0 1 12 19.003a9.46 9.46 0 0 1-8.558-5.09 4.32 4.32 0 0 1 0-3.825 8.9 8.9 0 0 1 3.779-3.867m13.206 7.914c.04-.076.093-.144.13-.222a4.32 4.32 0 0 0 0-3.825A9.46 9.46 0 0 0 12 4.998c-.225 0-.444.03-.665.044m9.669 14.961L3.997 2.996"},null,-1)])],16,eo))}}),oo=["width","height","stroke-width"],Ke=e.defineComponent({__name:"IconFullScreenArrow",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M17 3h4v4m-6 2 6-6M7 21H3v-4m6-2-6 6m1-10V6a2 2 0 0 1 2-2h5m9 9v5a2 2 0 0 1-2 2h-6"},null,-1)])],16,oo))}}),lo=["width","height","stroke-width"],ao=e.defineComponent({__name:"IconInfoInformationCircle",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"9.004",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M11 15.501h2.31m-1.15.001V11.25h-1.151M12.1 8.245a.25.25 0 1 1-.25-.25"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M11.85 7.995a.25.25 0 0 1 .25.25"},null,-1)])],16,lo))}}),no=["width","height","stroke-width"],Me=e.defineComponent({__name:"IconSearchLoupe",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("circle",{cx:"11.059",cy:"11.059",r:"7.062",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m20.003 20.003-3.951-3.951"},null,-1)])],16,no))}}),ro=["width","height","stroke-width"],io=e.defineComponent({__name:"IconWarning",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",e.mergeProps({xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:t.className},l.$attrs),[...o[0]||(o[0]=[e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m14.029 4.14 7.659 13.403c.89 1.558-.235 3.497-2.029 3.497H4.341c-1.795 0-2.92-1.939-2.029-3.497L9.971 4.14c.897-1.57 3.161-1.57 4.058 0","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M12 13.12V9.38m-.001 6.745a.25.25 0 1 0 .002.5.25.25 0 0 0-.002-.5"},null,-1)])],16,ro))}}),co=["width","height"],so=["stroke-width"],uo=["stroke-width"],mo=["stroke-width"],ho=["stroke-width"],ko=["stroke-width"],bo=["stroke-width"],Ue=e.defineComponent({__name:"IconCustomExitFullscreen",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(t.className)},[e.createElementVNode("path",{d:"M19 9L15 9L15 5",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,so),e.createElementVNode("path",{d:"M21 3L15 9",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,uo),e.createElementVNode("path",{d:"M4 11V6C4 4.895 4.895 4 6 4H11",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,mo),e.createElementVNode("path",{d:"M20 13V18C20 19.105 19.105 20 18 20H12",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ho),e.createElementVNode("path",{d:"M5 15L9 15L9 19",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ko),e.createElementVNode("path",{d:"M3 21L9 15",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,bo)],10,co))}}),fo=["width","height"],vo=["stroke-width"],go=["stroke-width"],po=e.defineComponent({__name:"IconCustomErrorCircle",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(t.className)},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor","stroke-width":t.strokeWidth},null,8,vo),e.createElementVNode("path",{d:"m15 9-6 6m0-6 6 6",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,go)],10,fo))}}),yo=["width","height"],xo=["stroke-width"],Bo=["stroke-width"],nt=e.defineComponent({__name:"IconCustomPlus",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(t.className)},[e.createElementVNode("path",{d:"M6.34314 12H17.6568",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,xo),e.createElementVNode("path",{d:"M12 6.34315V17.6569",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Bo)],10,yo))}}),Co=["width","height"],wo=["stroke-width"],Vo=e.defineComponent({__name:"IconCustomMinus",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(t.className)},[e.createElementVNode("path",{d:"M6.34314 12H17.6568",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,wo)],10,Co))}}),Eo=["width","height"],we=e.defineComponent({__name:"IconCustomSpinner",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(t.className)},[...o[0]||(o[0]=[e.createElementVNode("path",{d:"M21.1621 12C21.6249 12 22.0036 11.6242 21.9649 11.163C21.8089 9.30539 21.136 7.52216 20.0144 6.01922C18.7252 4.29172 16.9124 3.02701 14.846 2.41355C12.7797 1.80009 10.5704 1.87071 8.54748 2.6149C6.52453 3.35909 4.79619 4.737 3.62 6.5433C2.44381 8.3496 1.88275 10.4876 2.02042 12.6387C2.15809 14.7898 2.98712 16.8388 4.38397 18.4804C5.78083 20.1221 7.67073 21.2684 9.77204 21.7487C11.6002 22.1665 13.5033 22.0606 15.2653 21.4519C15.7027 21.3008 15.8931 20.8023 15.706 20.3791C15.5188 19.9559 15.0249 19.7689 14.585 19.9127C13.1558 20.3796 11.6213 20.4523 10.1454 20.115C8.39623 19.7152 6.82304 18.761 5.66028 17.3944C4.49751 16.0279 3.80741 14.3223 3.69281 12.5317C3.57821 10.7411 4.04525 8.96134 5.02433 7.45774C6.00341 5.95414 7.44212 4.80714 9.12606 4.18766C10.81 3.56819 12.649 3.5094 14.3691 4.02006C16.0892 4.53072 17.5982 5.58349 18.6713 7.02148C19.5768 8.23481 20.131 9.66758 20.2821 11.1635C20.3286 11.6239 20.6993 12 21.1621 12Z",fill:"currentColor"},null,-1)])],10,Eo))}}),No=["width","height"],$o=["stroke-width"],_o=e.defineComponent({__name:"IconCustomPhone",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass(t.className)},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.856 13.144C9.686 11.974 8.804 10.664 8.218 9.335C8.094 9.054 8.167 8.725 8.384 8.508L9.203 7.69C9.874 7.019 9.874 6.07 9.288 5.484L8.114 4.31C7.333 3.529 6.067 3.529 5.286 4.31L4.634 4.962C3.893 5.703 3.584 6.772 3.784 7.832C4.278 10.445 5.796 13.306 8.245 15.755C10.694 18.204 13.555 19.722 16.168 20.216C17.228 20.416 18.297 20.107 19.038 19.366L19.689 18.715C20.47 17.934 20.47 16.668 19.689 15.887L18.516 14.714C17.93 14.128 16.98 14.128 16.395 14.714L15.492 15.618C15.275 15.835 14.946 15.908 14.665 15.784C13.336 15.197 12.026 14.314 10.856 13.144Z",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,$o)],10,No))}}),zo={class:"orb-btn__spinner orb-btn__spinner--inline orb-btn__spinner--visible","aria-hidden":"true"},So={class:"orb-btn__label"},To={key:0,class:"orb-btn__icon"},Do={key:1,class:"orb-btn__content"},Oo={key:0,class:"orb-btn__label"},Lo={key:1,class:"orb-btn__description"},Mo={key:2,class:"orb-btn__count"},Io={key:3,class:"orb-btn__icon"},rt=e.defineComponent({__name:"OButton",props:{variant:{default:"primary"},size:{default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{default:void 0},fullWidth:{type:Boolean,default:!1},pressed:{type:Boolean,default:void 0},count:{default:void 0},description:{default:void 0},disclosure:{type:[String,Boolean],default:void 0},type:{default:"button"},href:{},target:{},icon:{},iconTrailing:{}},emits:["click"],setup(t,{emit:l}){const o=t,r=l,n=e.useSlots(),d=K(o,"icon"),s=K(o,"iconTrailing"),b=e.computed(()=>!!d.value||!!n["leading-icon"]),m=e.computed(()=>!!s.value||!!n["trailing-icon"]),v=e.computed(()=>!n.default&&!o.description&&(b.value||m.value)),u=e.computed(()=>!!o.description),y=e.computed(()=>o.disclosure===!0||o.disclosure==="down"?"down":o.disclosure==="up"?"up":null),p=e.computed(()=>["orb-btn",`orb-btn--${o.variant}`,`orb-btn--${o.size}`,{"orb-btn--full-width":o.fullWidth,"orb-btn--loading":o.loading,"orb-btn--disabled":o.disabled,"orb-btn--pressed":o.pressed===!0,"orb-btn--icon-only":v.value,"orb-btn--compound":u.value}]),k=e.computed(()=>o.disabled||o.loading),w=e.computed(()=>o.href?"a":"button"),I=e.computed(()=>({large:18,medium:16,small:14})[o.size]);function L(T){if(k.value){T.preventDefault();return}r("click",T)}return(T,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.value),{class:e.normalizeClass(p.value),type:t.href?void 0:t.type,href:t.href,target:t.href?t.target:void 0,disabled:!t.href&&k.value?!0:void 0,"aria-disabled":t.href&&k.value?"true":void 0,tabindex:t.href&&k.value?-1:void 0,rel:t.href&&t.target==="_blank"?"noopener noreferrer":void 0,"aria-pressed":t.pressed!==void 0?String(t.pressed):void 0,onClick:L},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["orb-btn__spinner",{"orb-btn__spinner--visible":t.loading&&!t.loadingText}]),"aria-hidden":"true"},[...S[0]||(S[0]=[e.createElementVNode("svg",{viewBox:"0 0 32 32",fill:"none"},[e.createElementVNode("path",{d:"M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z",fill:"currentColor"})],-1)])],2),t.loading&&t.loadingText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",zo,[e.createVNode(e.unref(we),{"aria-hidden":"true"})]),e.createElementVNode("span",So,e.toDisplayString(t.loadingText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createElementBlock("span",To,[e.unref(d)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{key:0,size:I.value,"aria-hidden":"true"},null,8,["size"])):e.renderSlot(T.$slots,"leading-icon",{key:1})])):e.createCommentVNode("",!0),T.$slots.default||t.description?(e.openBlock(),e.createElementBlock("span",Do,[T.$slots.default?(e.openBlock(),e.createElementBlock("span",Oo,[e.renderSlot(T.$slots,"default")])):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Lo,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.count!==void 0?(e.openBlock(),e.createElementBlock("span",Mo,e.toDisplayString(t.count),1)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("span",Io,[e.unref(s)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(s)),{key:0,size:I.value,"aria-hidden":"true"},null,8,["size"])):e.renderSlot(T.$slots,"trailing-icon",{key:1})])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["orb-btn__disclosure",{"orb-btn__disclosure--up":y.value==="up"}]),"aria-hidden":"true"},[...S[1]||(S[1]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M8 10L12 14L16 10",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],2)):e.createCommentVNode("",!0)],64))]),_:3},8,["class","type","href","target","disabled","aria-disabled","tabindex","rel","aria-pressed"]))}}),Fo=["aria-label"],Ve=e.defineComponent({__name:"OStatusIcon",props:{status:{},size:{default:"md"},filled:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["orb-status-icon",[`orb-status-icon--${t.status}`,`orb-status-icon--${t.size}`,{"orb-status-icon--filled":t.filled},{"orb-status-icon--inverted":t.inverted}]]),role:"img","aria-label":t.status},[t.status==="success"?(e.openBlock(),e.createBlock(e.unref(Qt),{key:0,"aria-hidden":"true"})):t.status==="warning"?(e.openBlock(),e.createBlock(e.unref(io),{key:1,"aria-hidden":"true"})):t.status==="error"?(e.openBlock(),e.createBlock(e.unref(po),{key:2,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(ao),{key:3,"aria-hidden":"true"}))],10,Fo))}}),Ze="orb-theme",pe=e.ref("system"),Se=e.ref("light");function it(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function De(t){typeof document>"u"||(document.documentElement.setAttribute("data-theme",t),Se.value=t)}function Qe(t){return t==="system"?it():t}function ct(){e.onMounted(()=>{const o=localStorage.getItem(Ze);o&&(pe.value=o),De(Qe(pe.value));const r=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>{pe.value==="system"&&De(it())};r.addEventListener("change",n)}),e.watchEffect(()=>{De(Qe(pe.value))});function t(o){pe.value=o,localStorage.setItem(Ze,o)}function l(){const o=Se.value==="light"?"dark":"light";t(o)}return{theme:e.computed(()=>pe.value),resolvedTheme:e.computed(()=>Se.value),isDark:e.computed(()=>Se.value==="dark"),setTheme:t,toggleTheme:l}}const Wo=["aria-label"],Ro=e.defineComponent({__name:"OThemeToggle",props:{mode:{default:"button"},size:{default:"md"},preview:{type:Boolean,default:!1}},setup(t){const l=t,{isDark:o,toggleTheme:r}=ct(),n=e.ref(!1),d=e.computed(()=>l.preview?n.value:o.value);function s(){l.preview?n.value=!n.value:r()}const b=e.computed(()=>l.size==="sm"?16:18),m=K(e.ref("IconSun")),v=K(e.ref("IconMoon"));return(u,y)=>t.mode==="button"?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["orb-theme-toggle",`orb-theme-toggle--${t.size}`]),"aria-label":d.value?"Alternar para modo claro":"Alternar para modo escuro",onClick:s},[d.value&&e.unref(m)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m)),{key:0,size:b.value,"aria-hidden":"true"},null,8,["size"])):e.unref(v)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v)),{key:1,size:b.value,"aria-hidden":"true"},null,8,["size"])):e.createCommentVNode("",!0)],10,Wo)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["orb-theme-toggle-switch",`orb-theme-toggle-switch--${t.size}`])},[e.createVNode(Ie,{"model-value":d.value,size:t.size,"aria-label":d.value?"Alternar para modo claro":"Alternar para modo escuro","icon-on":"IconSun","icon-off":"IconMoon","icon-thumb":"IconMoon","icon-thumb-off":"IconSun","onUpdate:modelValue":s},null,8,["model-value","size","aria-label"])],2))}}),st=e.defineComponent({__name:"OIcon",props:{icon:{},size:{default:"lg"},color:{}},setup(t){const o=K(t,"icon"),r={xs:12,sm:14,md:16,lg:20,xl:24,xxl:32};return(n,d)=>e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)),{key:0,size:r[t.size],class:e.normalizeClass(["orb-icon",t.color?`orb-icon--${t.color}`:void 0]),"aria-hidden":"true"},null,8,["size","class"])):e.createCommentVNode("",!0)}}),Oe=new Map;async function jo(t){if(!t)return null;if(Oe.has(t))return Oe.get(t);try{const l=await import(`@neowit/orbit-icons/vue/logos/${t}.vue`);return Oe.set(t,l.default),l.default}catch{return console.warn(`[Orbit] Logo "${t}" not found in @neowit/orbit-icons`),null}}function dt(t,l){const o=e.shallowRef(null),r=()=>e.isRef(t)?t.value:l?t[l]:void 0;return e.watch(()=>r(),async n=>{if(!n){o.value=null;return}o.value=await jo(n)},{immediate:!0}),o}const ut=e.defineComponent({__name:"OLogo",props:{name:{},size:{default:"md"}},setup(t){const o=dt(t,"name"),r={sm:16,md:24,lg:32,xl:40};return(n,d)=>e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)),{key:0,size:r[t.size],class:"orb-logo","aria-hidden":"true"},null,8,["size"])):e.createCommentVNode("",!0)}}),Ho={key:0,class:"orb-text-field__icon orb-text-field__icon--prefix"},Ao={key:1,class:"orb-text-field__icon orb-text-field__icon--prefix"},Po=["disabled"],qo={key:3,class:"orb-text-field__icon orb-text-field__icon--prefix"},Go={key:4,class:"orb-text-field__affix"},Ko=["id","type","value","placeholder","disabled","maxlength","min","max","step","inputmode","aria-invalid","aria-label"],Uo={key:5,class:"orb-text-field__icon orb-text-field__icon--validation"},Zo=["aria-label"],Qo=["disabled"],Yo={key:9,class:"orb-text-field__affix"},Jo={key:10,class:"orb-text-field__icon orb-text-field__icon--suffix"},Xo=["href"],el={key:0,class:"orb-text-field__hyperlink-icon"},mt=e.defineComponent({__name:"OTextField",props:{modelValue:{default:""},label:{},placeholder:{},size:{default:"medium"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},maxLength:{},prefixText:{},suffixText:{},validationIcon:{type:Boolean},hyperlinkText:{},hyperlinkHref:{},type:{default:"text"},id:{},min:{},max:{},step:{default:1},mask:{},iconLeft:{},iconRight:{}},emits:["update:modelValue","hyperlink-click","clear"],setup(t,{emit:l}){const o={cpf:"###.###.###-##",cnpj:"##.###.###/####-##",cep:"#####-###",tel:"(##) ####-####",cel:"(##) #####-####"};function r(x,D){const A=x.replace(/\D/g,"");let _="",P=0;for(let q=0;q<D.length&&P<A.length;q++)D[q]==="#"?(_+=A[P],P++):_+=D[q];return _}function n(x){return x.replace(/\D/g,"")}function d(x){return o[x]??x}const s=t,b=l,m=K(s,"iconLeft"),v=K(s,"iconRight"),u=e.computed(()=>s.size==="small"?16:20),y=e.ref(!1),p=e.ref(null),k=e.ref(s.modelValue??""),w=e.computed(()=>s.type==="search"),I=e.computed(()=>s.type==="password"),L=e.computed(()=>s.type==="number"),T=e.computed(()=>s.type==="tel"),S=e.computed(()=>!!s.mask),H=e.computed(()=>s.mask?d(s.mask):""),E=e.computed(()=>k.value.length>0),$=e.ref(!1),ee=e.computed(()=>S.value?r(k.value,H.value):k.value),O=e.computed(()=>I.value?$.value?"text":"password":s.type);e.watch(()=>s.modelValue,x=>{k.value=x??""});function re(x){const D=x.target;if(S.value){const A=n(D.value),_=H.value.replace(/[^#]/g,"").length,P=A.slice(0,_);k.value=P;const q=r(P,H.value);D.value=q,b("update:modelValue",P)}else k.value=D.value,b("update:modelValue",D.value)}function Ee(){var x;k.value="",b("update:modelValue",""),b("clear"),(x=p.value)==null||x.focus()}function te(){var x;$.value=!$.value,(x=p.value)==null||x.focus()}function Y(x){var q;const D=parseFloat(k.value)||0,A=s.step??1;let _=D+A*x;s.min!=null&&_<s.min&&(_=s.min),s.max!=null&&_>s.max&&(_=s.max);const P=String(_);k.value=P,b("update:modelValue",P),(q=p.value)==null||q.focus()}function fe(){y.value=!0}function J(){y.value=!1}return(x,D)=>{var A;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["orb-text-field",`orb-text-field--${t.size}`])},[t.label||t.maxLength?(e.openBlock(),e.createBlock(e.unref($e),{key:0,label:t.label,required:t.required,optional:t.optional,disabled:t.state==="disabled","char-count":((A=t.modelValue)==null?void 0:A.length)??0,"max-length":t.maxLength},null,8,["label","required","optional","disabled","char-count","max-length"])):e.createCommentVNode("",!0),e.createVNode(e.unref(_e),{size:t.size,focused:y.value,invalid:t.state==="invalid",disabled:t.state==="disabled"},{default:e.withCtx(()=>[w.value&&!t.iconLeft&&!x.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",Ho,[e.createVNode(e.unref(Me),{"aria-hidden":"true"})])):e.createCommentVNode("",!0),T.value&&!t.iconLeft&&!x.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",Ao,[e.createVNode(e.unref(_o),{"aria-hidden":"true"})])):e.createCommentVNode("",!0),L.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"orb-text-field__stepper","aria-label":"Diminuir",disabled:t.min!=null&&(parseFloat(k.value)||0)<=t.min,onClick:D[0]||(D[0]=_=>Y(-1))},[e.createVNode(e.unref(Vo),{"aria-hidden":"true"})],8,Po)):e.createCommentVNode("",!0),e.unref(m)||x.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",qo,[e.unref(m)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m)),{key:0,size:u.value,"aria-hidden":"true"},null,8,["size"])):e.renderSlot(x.$slots,"prefix-icon",{key:1})])):e.createCommentVNode("",!0),t.prefixText?(e.openBlock(),e.createElementBlock("span",Go,e.toDisplayString(t.prefixText),1)):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputRef",ref:p,id:t.id,type:O.value,value:S.value?ee.value:t.modelValue,placeholder:t.placeholder,disabled:t.state==="disabled",maxlength:S.value?H.value.length:t.maxLength,min:L.value?t.min:void 0,max:L.value?t.max:void 0,step:L.value?t.step:void 0,inputmode:L.value?"numeric":T.value?"tel":S.value?"numeric":void 0,"aria-invalid":t.state==="invalid"?!0:void 0,"aria-label":w.value&&!t.label?t.placeholder||"Pesquisar":void 0,class:"orb-text-field__input",onInput:re,onFocus:fe,onBlur:J},null,40,Ko),t.validationIcon&&t.state!=="invalid"?(e.openBlock(),e.createElementBlock("span",Uo,[e.createVNode(Ve,{status:"success",size:"sm"})])):e.createCommentVNode("",!0),w.value&&E.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:6,type:"button",class:"orb-text-field__clear","aria-label":"Limpar busca",onClick:Ee},[e.createVNode(e.unref(Ce),{"aria-hidden":"true"})])):e.createCommentVNode("",!0),I.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:7,type:"button",class:"orb-text-field__toggle","aria-label":$.value?"Ocultar senha":"Mostrar senha",onClick:te},[$.value?(e.openBlock(),e.createBlock(e.unref(to),{key:1,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Xt),{key:0,"aria-hidden":"true"}))],8,Zo)):e.createCommentVNode("",!0),L.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:8,type:"button",class:"orb-text-field__stepper","aria-label":"Aumentar",disabled:t.max!=null&&(parseFloat(k.value)||0)>=t.max,onClick:D[1]||(D[1]=_=>Y(1))},[e.createVNode(e.unref(nt),{"aria-hidden":"true"})],8,Qo)):e.createCommentVNode("",!0),t.suffixText?(e.openBlock(),e.createElementBlock("span",Yo,e.toDisplayString(t.suffixText),1)):e.createCommentVNode("",!0),e.unref(v)||x.$slots["suffix-icon"]?(e.openBlock(),e.createElementBlock("span",Jo,[e.unref(v)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v)),{key:0,size:u.value,"aria-hidden":"true"},null,8,["size"])):e.renderSlot(x.$slots,"suffix-icon",{key:1})])):e.createCommentVNode("",!0)]),_:3},8,["size","focused","invalid","disabled"]),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:1,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0),t.hyperlinkText?(e.openBlock(),e.createElementBlock("a",{key:2,href:t.hyperlinkHref||"#",class:e.normalizeClass(["orb-text-field__hyperlink",{"orb-text-field__hyperlink--disabled":t.state==="disabled"}]),onClick:D[2]||(D[2]=e.withModifiers(_=>t.state!=="disabled"&&b("hyperlink-click"),["prevent"]))},[x.$slots["hyperlink-icon"]?(e.openBlock(),e.createElementBlock("span",el,[e.renderSlot(x.$slots,"hyperlink-icon")])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.hyperlinkText),1)],10,Xo)):e.createCommentVNode("",!0)],2)}}}),tl=["id","value","placeholder","disabled","maxlength","rows","aria-invalid"],ol=["href"],ht=e.defineComponent({__name:"OTextArea",props:{modelValue:{default:""},label:{},placeholder:{},size:{default:"medium"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},maxLength:{},rows:{default:3},resize:{default:"vertical"},hyperlinkText:{},hyperlinkHref:{},id:{}},emits:["update:modelValue","hyperlink-click"],setup(t,{emit:l}){const o=t,r=l,n=e.ref(!1),d=e.ref(null);function s(u){const y=u.target;r("update:modelValue",y.value),o.resize==="auto"&&e.nextTick(()=>b())}function b(){const u=d.value;u&&(u.style.height="auto",u.style.height=`${u.scrollHeight}px`)}function m(){n.value=!0}function v(){n.value=!1}return e.watch(()=>o.modelValue,()=>{o.resize==="auto"&&e.nextTick(()=>b())}),e.onMounted(()=>{o.resize==="auto"&&b()}),(u,y)=>{var p;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["orb-text-area",`orb-text-area--${t.size}`])},[t.label||t.maxLength?(e.openBlock(),e.createBlock(e.unref($e),{key:0,label:t.label,required:t.required,optional:t.optional,disabled:t.state==="disabled","char-count":((p=t.modelValue)==null?void 0:p.length)??0,"max-length":t.maxLength},null,8,["label","required","optional","disabled","char-count","max-length"])):e.createCommentVNode("",!0),e.createVNode(e.unref(_e),{size:t.size,focused:n.value,invalid:t.state==="invalid",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createElementVNode("textarea",{ref_key:"textareaRef",ref:d,id:t.id,value:t.modelValue,placeholder:t.placeholder,disabled:t.state==="disabled",maxlength:t.maxLength,rows:t.rows,"aria-invalid":t.state==="invalid"?!0:void 0,class:e.normalizeClass(["orb-text-area__input",`orb-text-area__input--resize-${t.resize}`]),onInput:s,onFocus:m,onBlur:v},null,42,tl)]),_:1},8,["size","focused","invalid","disabled"]),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:1,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0),t.hyperlinkText?(e.openBlock(),e.createElementBlock("a",{key:2,href:t.hyperlinkHref||"#",class:e.normalizeClass(["orb-text-area__hyperlink",{"orb-text-area__hyperlink--disabled":t.state==="disabled"}]),onClick:y[0]||(y[0]=e.withModifiers(k=>t.state!=="disabled"&&r("hyperlink-click"),["prevent"]))},e.toDisplayString(t.hyperlinkText),11,ol)):e.createCommentVNode("",!0)],2)}}}),ll=["disabled","aria-invalid"],al={key:0,class:"orb-field-label__suffix"},nl=["name","value","checked","disabled","aria-label","onChange"],rl={class:"orb-radio__content"},il={class:"orb-radio__label"},cl={key:0,class:"orb-radio__description"},kt=e.defineComponent({__name:"ORadioGroup",props:{modelValue:{},options:{},label:{},orientation:{default:"vertical"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},name:{}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,r=l,n=e.computed(()=>o.required?" (obrigatório)":o.optional?" (opcional)":"");function d(s){o.state!=="disabled"&&r("update:modelValue",s)}return(s,b)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["orb-radio-group",`orb-radio-group--${t.orientation}`,{"orb-radio-group--disabled":t.state==="disabled"}]),disabled:t.state==="disabled","aria-invalid":t.state==="invalid"?!0:void 0,role:"radiogroup"},[t.label?(e.openBlock(),e.createElementBlock("legend",{key:0,class:e.normalizeClass(["orb-field-label__text orb-radio-group__legend",{"orb-field-label__text--disabled":t.state==="disabled"}])},[e.createTextVNode(e.toDisplayString(t.label),1),n.value?(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["orb-radio-group__options",`orb-radio-group__options--${t.orientation}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("label",{key:m.value,class:e.normalizeClass(["orb-radio",{"orb-radio--disabled":t.state==="disabled"}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__circle",{"orb-radio__circle--checked":t.modelValue===m.value,"orb-radio__circle--disabled":t.state==="disabled","orb-radio__circle--invalid":t.state==="invalid"&&t.modelValue!==m.value}])},[e.createElementVNode("input",{type:"radio",name:t.name,value:m.value,checked:t.modelValue===m.value,disabled:t.state==="disabled","aria-label":m.label,class:"orb-radio__input",onChange:v=>d(m.value)},null,40,nl),e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__dot",{"orb-radio__dot--visible":t.modelValue===m.value}])},null,2)],2),e.createElementVNode("span",rl,[e.createElementVNode("span",il,e.toDisplayString(m.label),1),m.description?(e.openBlock(),e.createElementBlock("span",cl,e.toDisplayString(m.description),1)):e.createCommentVNode("",!0)])],2))),128))],2),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:1,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],10,ll))}}),sl=["disabled","aria-invalid"],dl={key:0,class:"orb-field-label__suffix"},ul=["checked","aria-checked","disabled","aria-label"],ml={class:"orb-checkbox__content"},hl={class:"orb-checkbox__label"},kl=["value","checked","disabled","aria-label","onChange"],bl={class:"orb-checkbox__content"},fl={class:"orb-checkbox__label"},vl={key:0,class:"orb-checkbox__description"},bt=e.defineComponent({__name:"OCheckboxGroup",props:{modelValue:{default:()=>[]},options:{},label:{},orientation:{default:"vertical"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},selectAll:{type:Boolean,default:!1},selectAllLabel:{default:"Selecionar todos"}},emits:["update:modelValue"],setup(t,{emit:l}){const o=t,r=l,n=e.computed(()=>o.required?" (obrigatório)":o.optional?" (opcional)":"");function d(p){return o.modelValue.includes(p)}function s(p){if(o.state==="disabled")return;const k=d(p)?o.modelValue.filter(w=>w!==p):[...o.modelValue,p];r("update:modelValue",k)}const b=e.computed(()=>o.options.map(p=>p.value)),m=e.computed(()=>b.value.length>0&&b.value.every(p=>o.modelValue.includes(p))),v=e.computed(()=>!m.value&&o.modelValue.length>0),u=e.ref(null);e.watch(v,p=>{u.value&&(u.value.indeterminate=p)}),e.onMounted(()=>{u.value&&v.value&&(u.value.indeterminate=!0)});function y(){o.state!=="disabled"&&(m.value?r("update:modelValue",[]):r("update:modelValue",[...b.value]))}return(p,k)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(["orb-checkbox-group",`orb-checkbox-group--${t.orientation}`,{"orb-checkbox-group--disabled":t.state==="disabled"}]),disabled:t.state==="disabled","aria-invalid":t.state==="invalid"?!0:void 0,role:"group"},[t.label?(e.openBlock(),e.createElementBlock("legend",{key:0,class:e.normalizeClass(["orb-field-label__text orb-checkbox-group__legend",{"orb-field-label__text--disabled":t.state==="disabled"}])},[e.createTextVNode(e.toDisplayString(t.label),1),n.value?(e.openBlock(),e.createElementBlock("span",dl,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),t.selectAll?(e.openBlock(),e.createElementBlock("label",{key:1,class:e.normalizeClass(["orb-checkbox","orb-checkbox-group__select-all",{"orb-checkbox--disabled":t.state==="disabled"}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-checkbox__box",{"orb-checkbox__box--checked":m.value,"orb-checkbox__box--indeterminate":v.value,"orb-checkbox__box--disabled":t.state==="disabled"}])},[e.createElementVNode("input",{ref_key:"selectAllRef",ref:u,type:"checkbox",checked:m.value,"aria-checked":v.value?"mixed":m.value,disabled:t.state==="disabled","aria-label":t.selectAllLabel,class:"orb-checkbox__input",onChange:y},null,40,ul),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--check",{"orb-checkbox__icon--visible":m.value}]),viewBox:"0 0 24 24",fill:"none"},[...k[0]||(k[0]=[e.createElementVNode("path",{class:"orb-checkbox__stroke",d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--dash",{"orb-checkbox__icon--visible":v.value}]),viewBox:"0 0 16 16",fill:"none"},[...k[1]||(k[1]=[e.createElementVNode("path",{class:"orb-checkbox__stroke",d:"M13 8H3",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)])],2))],2),e.createElementVNode("span",ml,[e.createElementVNode("span",hl,e.toDisplayString(t.selectAllLabel),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["orb-checkbox-group__options",`orb-checkbox-group__options--${t.orientation}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,w=>(e.openBlock(),e.createElementBlock("label",{key:w.value,class:e.normalizeClass(["orb-checkbox",{"orb-checkbox--disabled":t.state==="disabled"}])},[e.createElementVNode("span",{class:e.normalizeClass(["orb-checkbox__box",{"orb-checkbox__box--checked":d(w.value),"orb-checkbox__box--disabled":t.state==="disabled","orb-checkbox__box--invalid":t.state==="invalid"&&!d(w.value)}])},[e.createElementVNode("input",{type:"checkbox",value:w.value,checked:d(w.value),disabled:t.state==="disabled","aria-label":w.label,class:"orb-checkbox__input",onChange:I=>s(w.value)},null,40,kl),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--check",{"orb-checkbox__icon--visible":d(w.value)}]),viewBox:"0 0 24 24",fill:"none"},[...k[2]||(k[2]=[e.createElementVNode("path",{class:"orb-checkbox__stroke",d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2))],2),e.createElementVNode("span",bl,[e.createElementVNode("span",fl,e.toDisplayString(w.label),1),w.description?(e.openBlock(),e.createElementBlock("span",vl,e.toDisplayString(w.description),1)):e.createCommentVNode("",!0)])],2))),128))],2),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:2,variant:t.state==="invalid"?"negative":"neutral",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],10,sl))}}),ft=e.defineComponent({__name:"OButtonGroup",props:{orientation:{default:"horizontal"}},setup(t){const l=t,o=e.computed(()=>["orb-btn-group",`orb-btn-group--${l.orientation}`]);return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value),role:"group"},[e.renderSlot(r.$slots,"default")],2))}}),gl=["id","aria-expanded","aria-controls","aria-activedescendant","aria-invalid","aria-label","aria-multiselectable","disabled"],pl=["innerHTML"],yl={key:0,class:"orb-select__tags"},xl=["innerHTML"],Bl={class:"orb-select__tag-label"},Cl=["aria-label","onClick"],wl={key:0,class:"orb-select__tag orb-select__tag--count"},Vl={key:1,class:"orb-select__value orb-select__value--placeholder"},El={key:2,class:"orb-select__spinner","aria-hidden":"true"},Nl=["aria-label"],$l={class:"orb-select__listbox-inner"},_l={key:0,class:"orb-select__toolbar orb-select__toolbar--top"},zl={key:1,class:"orb-select__search"},Sl={class:"orb-select__search-icon","aria-hidden":"true"},Tl=["placeholder"],Dl=["id","aria-multiselectable"],Ol={class:"orb-select__group-label",role:"presentation"},Ll=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],Ml={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Il=["innerHTML"],Fl={class:"orb-select__option-content"},Wl={class:"orb-select__option-label"},Rl={key:0,class:"orb-select__option-desc"},jl={key:2,class:"orb-select__option-check","aria-hidden":"true"},Hl=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],Al={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Pl=["innerHTML"],ql={class:"orb-select__option-content"},Gl={class:"orb-select__option-label"},Kl={key:0,class:"orb-select__option-desc"},Ul={key:2,class:"orb-select__option-check","aria-hidden":"true"},Zl=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],Ql={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Yl=["innerHTML"],Jl={class:"orb-select__option-content"},Xl={class:"orb-select__option-label"},ea={key:0,class:"orb-select__option-desc"},ta={key:2,class:"orb-select__option-check","aria-hidden":"true"},oa=["id","data-active"],la={class:"orb-select__create-icon","aria-hidden":"true"},aa={class:"orb-select__option-label"},na={key:3,class:"orb-select__empty"},ra={key:4,class:"orb-select__limit-msg"},ia={key:2,class:"orb-select__toolbar orb-select__toolbar--bottom"},ca=["aria-label"],sa={class:"orb-select__listbox-inner"},da={key:0,class:"orb-select__toolbar orb-select__toolbar--top"},ua={key:1,class:"orb-select__search"},ma={class:"orb-select__search-icon","aria-hidden":"true"},ha=["placeholder"],ka=["id","aria-multiselectable"],ba=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],fa={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},va=["innerHTML"],ga={class:"orb-select__option-content"},pa={class:"orb-select__option-label"},ya={key:0,class:"orb-select__option-desc"},xa={key:2,class:"orb-select__option-check","aria-hidden":"true"},Ba={key:0,class:"orb-select__empty"},Ca={key:1,class:"orb-select__limit-msg"},wa={key:2,class:"orb-select__toolbar orb-select__toolbar--bottom"},vt=e.defineComponent({__name:"OSelect",props:{modelValue:{default:""},options:{default:()=>[]},label:{},placeholder:{},size:{default:"medium"},state:{default:"default"},required:{type:Boolean,default:!1},optional:{type:Boolean,default:!1},helpText:{},clearable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Buscar..."},multiple:{type:Boolean,default:!1},maxTagCount:{default:0},maxSelections:{default:0},allowDeselect:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createLabel:{default:'Criar "{query}"'},filterFn:{},teleport:{type:[Boolean,String],default:!1},direction:{default:"down"},id:{}},emits:["update:modelValue","change","search","create","loadMore"],setup(t,{emit:l}){const o=t,r=l,n=e.ref(!1),d=e.ref(!1),s=e.ref(null),b=e.ref(null),m=e.ref(null),v=e.ref(null),u=e.ref(-1),y=e.ref(""),p=e.ref(null),k=e.ref(""),w=e.ref({}),I=e.ref("down"),L=e.ref(null),T=e.ref(!1),S=e.computed(()=>o.state==="disabled"),H=e.computed(()=>o.state==="invalid"),E=e.computed(()=>o.multiple?Array.isArray(o.modelValue)?o.modelValue:[]:typeof o.modelValue=="string"&&o.modelValue!==""?[o.modelValue]:[]),$=e.computed(()=>{const a=[];for(const i of o.options)"options"in i?a.push(...i.options):a.push(i);return a});function ee(a,i){return o.filterFn?o.filterFn(a,i):a.label.toLowerCase().includes(i.toLowerCase())}const O=e.computed(()=>!o.searchable||!k.value?$.value:$.value.filter(a=>ee(a,k.value))),re=e.computed(()=>!o.searchable||!k.value?o.options:o.options.map(a=>{if("options"in a){const i=a.options.filter(c=>ee(c,k.value));return i.length>0?{...a,options:i}:null}return ee(a,k.value)?a:null}).filter(Boolean)),Ee=e.computed(()=>o.options.some(a=>"options"in a)),te=e.computed(()=>$.value.find(a=>a.value===(o.multiple?"":o.modelValue))),Y=e.computed(()=>$.value.filter(a=>E.value.includes(a.value))),fe=e.computed(()=>{var a;return((a=te.value)==null?void 0:a.label)??""}),J=e.computed(()=>o.multiple?E.value.length>0:o.modelValue!==""&&o.modelValue!=null),x=e.computed(()=>(o.id??"orb-select")+"-listbox"),D=e.computed(()=>O.value.length===0),A=e.computed(()=>!o.multiple||o.maxSelections<=0?!1:E.value.length>=o.maxSelections),_=e.computed(()=>{if(!o.creatable||!o.searchable||!k.value.trim())return!1;const a=k.value.trim().toLowerCase();return!$.value.some(i=>i.label.toLowerCase()===a)}),P=e.computed(()=>o.maxTagCount>0&&Y.value.length>o.maxTagCount?Y.value.slice(0,o.maxTagCount):Y.value),q=e.computed(()=>o.maxTagCount>0&&Y.value.length>o.maxTagCount?Y.value.length-o.maxTagCount:0);e.onMounted(()=>{document.addEventListener("mousedown",je)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",je),p.value&&clearTimeout(p.value)}),e.watch(n,a=>{if(a){k.value="",T.value=!1,Ae(),o.teleport&&wt();const i=o.multiple?"":o.modelValue,c=O.value.findIndex(f=>f.value===i);u.value=c>=0?c:0,e.nextTick(()=>{var f;o.searchable&&((f=m.value)==null||f.focus()),ve()})}else u.value=-1,k.value=""}),e.watch(()=>o.options,()=>{T.value=!1},{deep:!1}),e.watch(k,a=>{u.value=O.value.length>0?0:-1,o.searchable&&r("search",a)});function g(){S.value||o.loading||(n.value=!n.value)}function V(){S.value||o.loading||n.value||(n.value=!0)}function oe(){var a;n.value&&(n.value=!1,(a=s.value)==null||a.focus())}function le(a){if(!a.disabled)if(o.multiple){const i=[...E.value],c=i.indexOf(a.value);if(c>=0)i.splice(c,1);else{if(A.value)return;i.push(a.value)}r("update:modelValue",i),r("change",i),e.nextTick(()=>{var f;o.searchable&&((f=m.value)==null||f.focus())})}else o.allowDeselect&&a.value===o.modelValue?(r("update:modelValue",""),r("change","")):(r("update:modelValue",a.value),r("change",a.value)),oe()}function xt(a){var c;a.stopPropagation();const i=o.multiple?[]:"";r("update:modelValue",i),r("change",i),(c=s.value)==null||c.focus()}function Re(a,i){const c=E.value.filter(f=>f!==a);r("update:modelValue",c),r("change",c)}function je(a){var c,f;const i=a.target;if(!((c=v.value)!=null&&c.contains(i))){if(o.teleport&&((f=b.value)!=null&&f.contains(i)))return;n.value=!1}}function Bt(){d.value=!0}function Ct(){d.value=!1}function He(){const a=k.value.trim();if(!a)return;const i=a.toLowerCase().replace(/\s+/g,"-");if(r("create",a),o.multiple){const c=[...E.value,i];r("update:modelValue",c),r("change",c)}else r("update:modelValue",i),r("change",i),oe();k.value=""}function Ae(){if(o.direction!=="auto"){I.value=o.direction;return}if(!v.value){I.value="down";return}const a=v.value.getBoundingClientRect(),i=window.innerHeight-a.bottom,c=a.top;I.value=i<280&&c>i?"up":"down"}function wt(){if(!v.value)return;Ae();const a=v.value.getBoundingClientRect();I.value==="up"?w.value={position:"fixed",bottom:`${window.innerHeight-a.top+4}px`,left:`${a.left}px`,width:`${a.width}px`,zIndex:"9999"}:w.value={position:"fixed",top:`${a.bottom+4}px`,left:`${a.left}px`,width:`${a.width}px`,zIndex:"9999"}}function Pe(a){const i=a.target;if(!i)return;i.scrollHeight-i.scrollTop-i.clientHeight<40&&!T.value&&!o.loading&&(T.value=!0,r("loadMore"))}function Te(a){switch(O.value.length+(_.value?1:0),a.key){case"Enter":case" ":if(o.searchable&&n.value&&a.key===" ")return;if(a.preventDefault(),n.value)if(_.value&&u.value===O.value.length)He();else{const i=O.value[u.value];i&&!i.disabled&&le(i)}else V();break;case"ArrowDown":a.preventDefault(),n.value?qe(1):V();break;case"ArrowUp":a.preventDefault(),n.value?qe(-1):V();break;case"Home":a.preventDefault(),n.value&&Vt();break;case"End":a.preventDefault(),n.value&&Et();break;case"Escape":a.preventDefault(),oe();break;case"Backspace":o.multiple&&o.searchable&&n.value&&!k.value&&E.value.length>0&&Re(E.value[E.value.length-1]);break;case"Tab":n.value&&(n.value=!1);break;default:!o.searchable&&a.key.length===1&&!a.ctrlKey&&!a.metaKey&&(a.preventDefault(),Nt(a.key))}}function qe(a){var ne,Ge;const i=O.value,c=i.length+(_.value?1:0);if(c===0)return;let f=u.value,C=0;do if(f+=a,f<0&&(f=c-1),f>=c&&(f=0),C++,f===i.length&&_.value)break;while(f<i.length&&((ne=i[f])!=null&&ne.disabled)&&C<c);(f===i.length||!((Ge=i[f])!=null&&Ge.disabled))&&(u.value=f,e.nextTick(()=>ve()))}function Vt(){const a=O.value.findIndex(i=>!i.disabled);a>=0&&(u.value=a,e.nextTick(()=>ve()))}function Et(){if(_.value){u.value=O.value.length,e.nextTick(()=>ve());return}const a=O.value;for(let i=a.length-1;i>=0;i--)if(!a[i].disabled){u.value=i,e.nextTick(()=>ve());return}}function Nt(a){y.value+=a.toLowerCase(),p.value&&clearTimeout(p.value),p.value=setTimeout(()=>{y.value=""},500);const i=y.value,c=$.value,f=u.value>=0?u.value:0;for(let C=0;C<c.length;C++){const ne=(f+C)%c.length;if(!c[ne].disabled&&c[ne].label.toLowerCase().startsWith(i)){u.value=ne,n.value||V(),e.nextTick(()=>ve());return}}}function ve(){var i;const a=(i=b.value)==null?void 0:i.querySelector('[data-active="true"]');a==null||a.scrollIntoView({block:"nearest"})}function ge(a){return`${x.value}-option-${a}`}function ae(a){return O.value.indexOf(a)}function M(a){return E.value.includes(a.value)}return(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"selectRoot",ref:v,class:e.normalizeClass(["orb-select",`orb-select--${t.size}`])},[t.label?(e.openBlock(),e.createBlock(e.unref($e),{key:0,label:t.label,required:t.required,optional:t.optional,disabled:S.value},null,8,["label","required","optional","disabled"])):e.createCommentVNode("",!0),e.createVNode(e.unref(_e),{size:t.size,focused:d.value,invalid:H.value,disabled:S.value},{default:e.withCtx(()=>{var c;return[e.createElementVNode("button",{ref_key:"triggerRef",ref:s,type:"button",role:"combobox",id:t.id,"aria-expanded":n.value,"aria-haspopup":"listbox","aria-controls":x.value,"aria-activedescendant":u.value>=0?ge(u.value):void 0,"aria-invalid":H.value?!0:void 0,"aria-label":t.label?void 0:t.placeholder||"Selecionar","aria-multiselectable":t.multiple||void 0,disabled:S.value,class:e.normalizeClass(["orb-select__trigger",{"orb-select__trigger--multi":t.multiple&&J.value}]),onClick:g,onKeydown:Te,onFocus:Bt,onBlur:Ct},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[J.value?(e.openBlock(),e.createElementBlock("div",yl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,f=>(e.openBlock(),e.createElementBlock("span",{key:f.value,class:"orb-select__tag"},[f.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:"orb-select__tag-icon","aria-hidden":"true",innerHTML:f.icon},null,8,xl)):e.createCommentVNode("",!0),e.createElementVNode("span",Bl,e.toDisplayString(f.label),1),e.createElementVNode("button",{type:"button",class:"orb-select__tag-remove","aria-label":`Remover ${f.label}`,onClick:e.withModifiers(C=>Re(f.value),["stop"]),onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(Ce),{"aria-hidden":"true"})],40,Cl)]))),128)),q.value>0?(e.openBlock(),e.createElementBlock("span",wl," +"+e.toDisplayString(q.value),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",Vl,e.toDisplayString(t.placeholder||""),1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(c=te.value)!=null&&c.icon&&J.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"orb-select__trigger-icon","aria-hidden":"true",innerHTML:te.value.icon},null,8,pl)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["orb-select__value",{"orb-select__value--placeholder":!J.value}])},[e.renderSlot(a.$slots,"selected",{option:te.value},()=>[e.createTextVNode(e.toDisplayString(J.value?fe.value:t.placeholder||""),1)])],2)],64)),t.loading?(e.openBlock(),e.createElementBlock("span",El,[e.createVNode(e.unref(we))])):e.createCommentVNode("",!0),t.clearable&&J.value&&!S.value&&!t.loading?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"orb-select__clear","aria-label":"Limpar seleção",onClick:xt,onMousedown:i[1]||(i[1]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(Ce),{"aria-hidden":"true"})],32)):e.createCommentVNode("",!0),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["orb-select__chevron",{"orb-select__chevron--open":n.value}]),"aria-hidden":"true"},[...i[6]||(i[6]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M8 10L12 14L16 10",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],2))],42,gl)]}),_:3},8,["size","focused","invalid","disabled"]),t.teleport?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"listboxRef",ref:b,class:e.normalizeClass(["orb-select__listbox",{"orb-select__listbox--up":I.value==="up"}]),"aria-label":t.label||t.placeholder||"Opções"},[e.createElementVNode("div",$l,[a.$slots["dropdown-header"]?(e.openBlock(),e.createElementBlock("div",_l,[e.renderSlot(a.$slots,"dropdown-header")])):e.createCommentVNode("",!0),t.searchable?(e.openBlock(),e.createElementBlock("div",zl,[e.createElementVNode("span",Sl,[e.createVNode(e.unref(Me),{"aria-hidden":"true"})]),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:m,"onUpdate:modelValue":i[2]||(i[2]=c=>k.value=c),type:"text",class:"orb-select__search-input",placeholder:t.searchPlaceholder,autocomplete:"off",onKeydown:Te},null,40,Tl),[[e.vModelText,k.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"optionsContainerRef",ref:L,id:x.value,role:"listbox","aria-multiselectable":t.multiple||void 0,class:"orb-select__options",onScroll:Pe},[Ee.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.searchable?re.value:t.options,(c,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},["options"in c?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Ol,e.toDisplayString(c.label),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options,C=>(e.openBlock(),e.createElementBlock("div",{key:C.value,id:ge(ae(C)),role:"option","aria-selected":M(C),"aria-disabled":C.disabled||void 0,"data-active":ae(C)===u.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":M(C),"orb-select__option--active":ae(C)===u.value,"orb-select__option--disabled":C.disabled}]),onClick:ne=>le(C),onMouseenter:ne=>u.value=ae(C)},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":M(C)}]),"aria-hidden":"true"},[M(C)?(e.openBlock(),e.createElementBlock("svg",Ml,[...i[7]||(i[7]=[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),C.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:C.icon},null,8,Il)):e.createCommentVNode("",!0),e.createElementVNode("span",Fl,[e.createElementVNode("span",Wl,e.toDisplayString(C.label),1),C.description?(e.openBlock(),e.createElementBlock("span",Rl,e.toDisplayString(C.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&M(C)?(e.openBlock(),e.createElementBlock("span",jl,[...i[8]||(i[8]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):e.createCommentVNode("",!0)],42,Ll))),128))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,id:ge(ae(c)),role:"option","aria-selected":M(c),"aria-disabled":c.disabled||void 0,"data-active":ae(c)===u.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":M(c),"orb-select__option--active":ae(c)===u.value,"orb-select__option--disabled":c.disabled}]),onClick:C=>le(c),onMouseenter:C=>u.value=ae(c)},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":M(c)}]),"aria-hidden":"true"},[M(c)?(e.openBlock(),e.createElementBlock("svg",Al,[...i[9]||(i[9]=[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),c.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:c.icon},null,8,Pl)):e.createCommentVNode("",!0),e.createElementVNode("span",ql,[e.createElementVNode("span",Gl,e.toDisplayString(c.label),1),c.description?(e.openBlock(),e.createElementBlock("span",Kl,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&M(c)?(e.openBlock(),e.createElementBlock("span",Ul,[...i[10]||(i[10]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):e.createCommentVNode("",!0)],42,Hl))],64))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(O.value,(c,f)=>(e.openBlock(),e.createElementBlock("div",{key:c.value,id:ge(f),role:"option","aria-selected":M(c),"aria-disabled":c.disabled||void 0,"data-active":f===u.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":M(c),"orb-select__option--active":f===u.value,"orb-select__option--disabled":c.disabled}]),onClick:C=>le(c),onMouseenter:C=>u.value=f},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":M(c)}]),"aria-hidden":"true"},[M(c)?(e.openBlock(),e.createElementBlock("svg",Ql,[...i[11]||(i[11]=[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),c.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:c.icon},null,8,Yl)):e.createCommentVNode("",!0),e.createElementVNode("span",Jl,[e.createElementVNode("span",Xl,e.toDisplayString(c.label),1),c.description?(e.openBlock(),e.createElementBlock("span",ea,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&M(c)?(e.openBlock(),e.createElementBlock("span",ta,[...i[12]||(i[12]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):e.createCommentVNode("",!0)],42,Zl))),128)),_.value?(e.openBlock(),e.createElementBlock("div",{key:2,id:ge(O.value.length),role:"option","aria-selected":!1,"data-active":u.value===O.value.length,class:e.normalizeClass(["orb-select__option","orb-select__option--create",{"orb-select__option--active":u.value===O.value.length}]),onClick:He,onMouseenter:i[3]||(i[3]=c=>u.value=O.value.length)},[e.createElementVNode("span",la,[e.createVNode(e.unref(nt),{"aria-hidden":"true"})]),e.createElementVNode("span",aa,e.toDisplayString(t.createLabel.replace("{query}",k.value.trim())),1)],42,oa)):e.createCommentVNode("",!0),D.value&&!_.value?(e.openBlock(),e.createElementBlock("div",na,e.toDisplayString(t.searchable&&k.value?"Nenhum resultado encontrado":"Nenhuma opção disponível"),1)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("div",ra," Limite de "+e.toDisplayString(t.maxSelections)+" "+e.toDisplayString(t.maxSelections===1?"seleção":"seleções")+" atingido ",1)):e.createCommentVNode("",!0)],40,Dl),a.$slots["dropdown-footer"]?(e.openBlock(),e.createElementBlock("div",ia,[e.renderSlot(a.$slots,"dropdown-footer")])):e.createCommentVNode("",!0)])],10,Nl)),[[e.vShow,n.value]]),(e.openBlock(),e.createBlock(e.Teleport,{to:typeof t.teleport=="string"?t.teleport:"body",disabled:!t.teleport},[t.teleport?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"listboxRef",ref:b,class:e.normalizeClass(["orb-select__listbox",`orb-select--${t.size}`,{"orb-select__listbox--up":I.value==="up"}]),style:e.normalizeStyle(w.value),"aria-label":t.label||t.placeholder||"Opções",onMousedown:i[5]||(i[5]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",sa,[a.$slots["dropdown-header"]?(e.openBlock(),e.createElementBlock("div",da,[e.renderSlot(a.$slots,"dropdown-header")])):e.createCommentVNode("",!0),t.searchable?(e.openBlock(),e.createElementBlock("div",ua,[e.createElementVNode("span",ma,[e.createVNode(e.unref(Me),{"aria-hidden":"true"})]),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:m,"onUpdate:modelValue":i[4]||(i[4]=c=>k.value=c),type:"text",class:"orb-select__search-input",placeholder:t.searchPlaceholder,autocomplete:"off",onKeydown:Te},null,40,ha),[[e.vModelText,k.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",{id:x.value,role:"listbox","aria-multiselectable":t.multiple||void 0,class:"orb-select__options",onScroll:Pe},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(c,f)=>(e.openBlock(),e.createElementBlock("div",{key:c.value,id:ge(f),role:"option","aria-selected":M(c),"aria-disabled":c.disabled||void 0,"data-active":f===u.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":M(c),"orb-select__option--active":f===u.value,"orb-select__option--disabled":c.disabled}]),onClick:C=>le(c),onMouseenter:C=>u.value=f},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":M(c)}]),"aria-hidden":"true"},[M(c)?(e.openBlock(),e.createElementBlock("svg",fa,[...i[13]||(i[13]=[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),c.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:c.icon},null,8,va)):e.createCommentVNode("",!0),e.createElementVNode("span",ga,[e.createElementVNode("span",pa,e.toDisplayString(c.label),1),c.description?(e.openBlock(),e.createElementBlock("span",ya,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&M(c)?(e.openBlock(),e.createElementBlock("span",xa,[...i[14]||(i[14]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M20 6.5L9 17.5L4 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):e.createCommentVNode("",!0)],42,ba))),128)),D.value?(e.openBlock(),e.createElementBlock("div",Ba,e.toDisplayString(t.searchable&&k.value?"Nenhum resultado encontrado":"Nenhuma opção disponível"),1)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("div",Ca," Limite de "+e.toDisplayString(t.maxSelections)+" "+e.toDisplayString(t.maxSelections===1?"seleção":"seleções")+" atingido ",1)):e.createCommentVNode("",!0)],40,ka),a.$slots["dropdown-footer"]?(e.openBlock(),e.createElementBlock("div",wa,[e.renderSlot(a.$slots,"dropdown-footer")])):e.createCommentVNode("",!0)])],46,ca)),[[e.vShow,n.value]]):e.createCommentVNode("",!0)],8,["to","disabled"])),t.helpText?(e.openBlock(),e.createBlock(e.unref(be),{key:2,variant:H.value?"negative":"neutral",disabled:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],2))}}),Va=["role"],Ea={key:0,class:"orb-alert__icon"},Na={class:"orb-alert__content"},$a={key:0,class:"orb-alert__title"},_a={key:1,class:"orb-alert__description"},za={key:2,class:"orb-alert__actions"},gt=e.defineComponent({__name:"OAlert",props:{variant:{default:"info"},appearance:{default:"soft"},title:{},closable:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:l}){const o=t,r=l,n=e.ref(!0),d=e.ref(!1),s=e.computed(()=>!o.hideIcon&&o.variant!=="neutral"),b=e.computed(()=>o.variant==="warning"||o.variant==="error"?"alert":"status");function m(){d.value=!0}function v(){d.value&&(n.value=!1,r("close"))}return(u,y)=>n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["orb-alert",`orb-alert--${t.variant}`,`orb-alert--${t.appearance}`,{"orb-alert--closing":d.value},{"orb-alert--has-icon":s.value}]),role:b.value,onTransitionend:v},[s.value?(e.openBlock(),e.createElementBlock("span",Ea,[e.renderSlot(u.$slots,"icon",{},()=>[e.createVNode(e.unref(Ve),{status:t.variant,size:"md"},null,8,["status"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Na,[t.title?(e.openBlock(),e.createElementBlock("p",$a,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),u.$slots.default?(e.openBlock(),e.createElementBlock("div",_a,[e.renderSlot(u.$slots,"default")])):e.createCommentVNode("",!0),u.$slots.actions?(e.openBlock(),e.createElementBlock("div",za,[e.renderSlot(u.$slots,"actions")])):e.createCommentVNode("",!0)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"orb-alert__close","aria-label":"Fechar",onClick:m},[e.createVNode(e.unref(Ce),{"aria-hidden":"true"})])):e.createCommentVNode("",!0)],42,Va)):e.createCommentVNode("",!0)}}),Sa=["role","aria-label","aria-labelledby","aria-describedby","aria-busy"],Ta={key:0,class:"orb-dialog__hero"},Da={class:"orb-dialog__hero-actions"},Oa=["aria-label"],La=["disabled"],Ma={class:"orb-dialog__header-text"},Ia=["aria-label"],Fa=["disabled"],ye=[];let Ne=0,Ye="",Je="";const Fe=e.defineComponent({__name:"ODialog",props:{open:{type:Boolean,default:!1},size:{default:"md"},title:{},description:{},role:{default:"dialog"},backdrop:{default:"opaque"},closeOnOverlayClick:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},preventBodyScroll:{type:Boolean,default:!0},scrollBehavior:{default:"inside"},showCloseButton:{type:Boolean,default:!0},initialFocusRef:{},returnFocusRef:{},ariaLabel:{},motionPreset:{default:"scale"},loading:{type:Boolean,default:!1},preventCloseWhileLoading:{type:Boolean,default:!0},beforeClose:{},responsive:{type:Boolean,default:!0},allowFullscreen:{type:Boolean,default:!1},position:{default:"center"}},emits:["update:open","close"],setup(t,{emit:l}){const o=t,r=l,n=`orb-dialog-${Math.random().toString(36).slice(2,8)}`,d=e.ref(null),s=e.ref(null),b=`orb-dialog-title-${Math.random().toString(36).slice(2,8)}`,m=`orb-dialog-desc-${Math.random().toString(36).slice(2,8)}`,v=e.ref(0),u=e.ref(!1),y=e.ref(!1),p=e.ref(!1),k=e.ref(!1);let w=null;function I(){y.value=!y.value}async function L(g){if(!(o.loading&&o.preventCloseWhileLoading)&&!u.value){if(o.beforeClose){u.value=!0;try{if(await o.beforeClose(g)===!1){u.value=!1;return}}catch{u.value=!1;return}}u.value=!1,r("update:open",!1),r("close",{reason:g})}}function T(g){g.target===g.currentTarget&&o.closeOnOverlayClick&&o.role!=="alertdialog"&&L("overlay")}function S(g){if(g.key==="Escape"&&o.closeOnEscape&&o.role!=="alertdialog"){const V=ye[ye.length-1];if(V&&V.id!==n)return;g.stopPropagation(),L("escape");return}if(g.key==="Tab"&&d.value){const V=d.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(V.length===0)return;const oe=V[0],le=V[V.length-1];g.shiftKey?document.activeElement===oe&&(g.preventDefault(),le.focus()):document.activeElement===le&&(g.preventDefault(),oe.focus())}}let H=!1;function E(){if(o.preventBodyScroll&&!H){if(H=!0,Ne===0){Ye=document.body.style.overflow,Je=document.body.style.paddingRight;const g=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",g>0&&(document.body.style.paddingRight=`${g}px`)}Ne++}}function $(){H&&(H=!1,Ne--,Ne<=0&&(Ne=0,document.body.style.overflow=Ye,document.body.style.paddingRight=Je))}async function ee(){var g;if(await e.nextTick(),(g=o.initialFocusRef)!=null&&g.value){o.initialFocusRef.value.focus();return}if(d.value){const V=d.value.querySelector('button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href]');V?V.focus():d.value.focus()}}function O(){var g;(g=o.returnFocusRef)!=null&&g.value?o.returnFocusRef.value.focus():w&&w.focus()}function re(){if(!s.value)return;const g=s.value,V=1;p.value=g.scrollTop>V,k.value=g.scrollTop+g.clientHeight<g.scrollHeight-V}async function Ee(){await e.nextTick(),s.value&&o.scrollBehavior==="inside"&&(re(),s.value.addEventListener("scroll",re,{passive:!0}))}function te(){s.value&&s.value.removeEventListener("scroll",re),p.value=!1,k.value=!1}function Y(){ye.push({id:n,close:()=>L("escape")}),v.value=ye.length-1}function fe(){const g=ye.findIndex(V=>V.id===n);g!==-1&&ye.splice(g,1),v.value=0}e.watch(()=>o.open,g=>{g?(w=document.activeElement,Y(),E(),ee(),Ee()):(y.value=!1,fe(),$(),O(),te())}),e.onBeforeUnmount(()=>{o.open&&(fe(),$(),te())});const J=e.computed(()=>1e3+v.value*10),x=e.computed(()=>["orb-dialog-backdrop",`orb-dialog-backdrop--${o.backdrop}`,o.scrollBehavior==="outside"?"orb-dialog-backdrop--scroll-outside":"",o.responsive?"":"orb-dialog-backdrop--no-responsive",o.position==="top"?"orb-dialog-backdrop--top":""]),D=e.computed(()=>y.value?"full":o.size),A=e.computed(()=>["orb-dialog",`orb-dialog--${D.value}`,o.scrollBehavior==="inside"?"orb-dialog--scroll-inside":"",o.loading?"orb-dialog--loading":"",o.responsive?"":"orb-dialog--no-responsive"]),_=e.computed(()=>["orb-dialog__header",p.value?"orb-dialog__header--shadow":""]),P=e.computed(()=>["orb-dialog__footer",k.value?"orb-dialog__footer--shadow":""]),q=e.computed(()=>o.motionPreset==="none"?"":`orb-dialog--${o.motionPreset}`);return(g,V)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:q.value},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(x.value),style:e.normalizeStyle({zIndex:J.value}),onMousedown:e.withModifiers(T,["self"])},[e.createElementVNode("div",{ref_key:"dialogRef",ref:d,class:e.normalizeClass(A.value),role:t.role,"aria-modal":"true","aria-label":t.ariaLabel&&!t.title?t.ariaLabel:void 0,"aria-labelledby":t.title?b:void 0,"aria-describedby":t.description?m:void 0,"aria-busy":t.loading||void 0,tabindex:"-1",onKeydown:S},[g.$slots.hero?(e.openBlock(),e.createElementBlock("div",Ta,[e.renderSlot(g.$slots,"hero"),e.createElementVNode("div",Da,[t.allowFullscreen?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-dialog__fullscreen orb-dialog__fullscreen--over-hero","aria-label":y.value?"Restaurar tamanho":"Tela cheia",onClick:I},[y.value?(e.openBlock(),e.createBlock(e.unref(Ue),{key:1,size:18,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Ke),{key:0,size:18,"aria-hidden":"true"}))],8,Oa)):e.createCommentVNode("",!0),t.showCloseButton?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"orb-dialog__close orb-dialog__close--over-hero","aria-label":"Fechar",disabled:t.loading&&t.preventCloseWhileLoading,onClick:V[0]||(V[0]=oe=>L("close-button"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(we),{key:0,class:"orb-dialog__spinner",size:20,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Ce),{key:1,size:20,"aria-hidden":"true"}))],8,La)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),g.$slots.header||t.title?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(_.value)},[e.renderSlot(g.$slots,"header",{},()=>[e.createElementVNode("div",Ma,[t.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:b,class:"orb-dialog__title"},e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:1,id:m,class:"orb-dialog__description"},e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),g.$slots.hero?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.allowFullscreen?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-dialog__fullscreen","aria-label":y.value?"Restaurar tamanho":"Tela cheia",onClick:I},[y.value?(e.openBlock(),e.createBlock(e.unref(Ue),{key:1,size:18,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Ke),{key:0,size:18,"aria-hidden":"true"}))],8,Ia)):e.createCommentVNode("",!0),t.showCloseButton?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"orb-dialog__close","aria-label":"Fechar",disabled:t.loading&&t.preventCloseWhileLoading,onClick:V[1]||(V[1]=oe=>L("close-button"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(we),{key:0,class:"orb-dialog__spinner",size:20,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Ce),{key:1,size:20,"aria-hidden":"true"}))],8,Fa)):e.createCommentVNode("",!0)],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:s,class:"orb-dialog__body"},[e.renderSlot(g.$slots,"default")],512),g.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(P.value)},[e.renderSlot(g.$slots,"footer",{loading:t.loading})],2)):e.createCommentVNode("",!0)],42,Sa)],38)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),X=e.reactive([]);function Wa(){function t(n){return new Promise(d=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:n.destructive?"destructive":"confirmation",open:!0,options:n,resolve:d};X.push(s)})}function l(n){return new Promise(d=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"alert",variant:"info",open:!0,options:{...n,confirmText:n.confirmText??"OK"},resolve:d};X.push(s)})}function o(n){return new Promise(d=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:"warning",open:!0,options:n,resolve:d};X.push(s)})}function r(n){return new Promise(d=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:"destructive",open:!0,options:n,resolve:d};X.push(s)})}return{confirm:t,alert:l,warning:o,destructive:r}}function Ra(){return X}function Xe(t,l){const o=X.findIndex(r=>r.id===t);o!==-1&&(X[o].resolve(l),X[o].open=!1,setTimeout(()=>{const r=X.findIndex(n=>n.id===t);r!==-1&&X.splice(r,1)},300))}const ja={key:0,class:"orb-alert-dialog orb-alert-dialog--centered"},Ha={class:"orb-alert-dialog__title"},Aa={key:1,class:"orb-alert-dialog__description"},Pa={key:2,class:"orb-alert-dialog__body"},qa={class:"orb-alert-dialog__actions orb-alert-dialog__actions--centered"},Ga=["disabled"],Ka={class:"orb-alert-dialog orb-alert-dialog--horizontal"},Ua={class:"orb-alert-dialog__text"},Za={class:"orb-alert-dialog__title"},Qa={class:"orb-alert-dialog__desc-wrap"},Ya={key:0,class:"orb-alert-dialog__description"},Ja={key:1,class:"orb-alert-dialog__body"},Xa={key:2,class:"orb-alert-dialog__confirmation"},en={class:"orb-alert-dialog__confirmation-label"},tn=["placeholder"],on={key:0,class:"orb-alert-dialog__actions orb-alert-dialog__actions--inline"},ln=["disabled"],an=["disabled"],nn=["disabled"],rn={class:"orb-alert-dialog__actions orb-alert-dialog__actions--footer"},cn=["disabled"],sn=["disabled"],dn=["disabled"],un={key:0,class:"orb-alert-dialog__spinner",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},We=e.defineComponent({__name:"OAlertDialog",props:{open:{type:Boolean,default:!1},title:{},description:{},variant:{default:"confirmation"},confirmLabel:{},cancelLabel:{},secondaryLabel:{},loading:{type:Boolean},size:{default:"sm"},closeOnEscape:{type:Boolean,default:!1},closeOnOverlayClick:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},confirmationText:{},inlineActions:{type:Boolean,default:!0}},emits:["update:open","confirm","cancel","secondary"],setup(t,{emit:l}){const o=t,r=l,n=e.ref(null),d=e.ref(null),s=e.ref(""),b=e.computed(()=>o.variant==="info"),m=e.computed(()=>o.confirmationText?s.value===o.confirmationText:!0),v=e.computed(()=>b.value?d:n),u=e.computed(()=>{if(o.confirmLabel)return o.confirmLabel;switch(o.variant){case"info":return"OK";case"destructive":return"Excluir";case"warning":return"Continuar";default:return"Confirmar"}}),y=e.computed(()=>o.cancelLabel??"Cancelar"),p=e.computed(()=>{switch(o.variant){case"info":return"info";case"warning":return"warning";case"confirmation":case"destructive":default:return"error"}}),k=e.computed(()=>`orb-alert-dialog__icon orb-alert-dialog__icon--${o.variant}`),w=e.computed(()=>{if(b.value)return"orb-alert-dialog__btn orb-alert-dialog__btn--confirm orb-alert-dialog__btn--primary orb-alert-dialog__btn--wide";const E="orb-alert-dialog__btn orb-alert-dialog__btn--confirm";return o.variant==="destructive"?`${E} orb-alert-dialog__btn--destructive`:`${E} orb-alert-dialog__btn--primary`}),I=e.computed(()=>!b.value);async function L(){o.loading||!m.value||(r("confirm"),await e.nextTick(),o.loading||r("update:open",!1))}function T(){o.loading||(r("cancel"),r("update:open",!1))}function S(){o.loading||r("secondary")}function H(E){E||(s.value="",r("cancel")),r("update:open",E)}return(E,$)=>(e.openBlock(),e.createBlock(Fe,{open:t.open,size:t.size,role:"alertdialog","close-on-overlay-click":t.closeOnOverlayClick,"close-on-escape":t.closeOnEscape,"show-close-button":!1,loading:t.loading,"prevent-close-while-loading":!0,"aria-label":t.title,"initial-focus-ref":v.value,"onUpdate:open":H},e.createSlots({default:e.withCtx(()=>[b.value?(e.openBlock(),e.createElementBlock("div",ja,[t.showIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(k.value)},[e.createVNode(Ve,{status:p.value,size:"md"},null,8,["status"])],2)):e.createCommentVNode("",!0),e.createElementVNode("h3",Ha,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("p",Aa,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),E.$slots.default?(e.openBlock(),e.createElementBlock("div",Pa,[e.renderSlot(E.$slots,"default")])):e.createCommentVNode("",!0),e.createElementVNode("div",qa,[e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:d,type:"button",class:e.normalizeClass(w.value),disabled:t.loading,onClick:L},[t.loading?(e.openBlock(),e.createBlock(e.unref(we),{key:0,class:"orb-alert-dialog__spinner",size:16,"aria-hidden":"true"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(u.value),1)],10,Ga)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Ka,[t.showIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(k.value)},[e.createVNode(Ve,{status:p.value,size:"md"},null,8,["status"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Ua,[e.createElementVNode("h3",Za,e.toDisplayString(t.title),1),e.createElementVNode("div",Qa,[t.description?(e.openBlock(),e.createElementBlock("p",Ya,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),E.$slots.default?(e.openBlock(),e.createElementBlock("div",Ja,[e.renderSlot(E.$slots,"default")])):e.createCommentVNode("",!0),t.confirmationText?(e.openBlock(),e.createElementBlock("div",Xa,[e.createElementVNode("p",en,[$[1]||($[1]=e.createTextVNode(" Digite ",-1)),e.createElementVNode("strong",null,e.toDisplayString(t.confirmationText),1),$[2]||($[2]=e.createTextVNode(" para confirmar: ",-1))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":$[0]||($[0]=ee=>s.value=ee),type:"text",class:"orb-alert-dialog__confirmation-input",placeholder:t.confirmationText,autocomplete:"off",spellcheck:"false"},null,8,tn),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0)])])]),t.inlineActions?(e.openBlock(),e.createElementBlock("div",on,[t.secondaryLabel?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--secondary",disabled:t.loading,onClick:S},e.toDisplayString(t.secondaryLabel),9,ln)):e.createCommentVNode("",!0),I.value?(e.openBlock(),e.createElementBlock("button",{key:1,ref_key:"cancelBtnRef",ref:n,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--cancel",disabled:t.loading,onClick:T},e.toDisplayString(y.value),9,an)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:d,type:"button",class:e.normalizeClass(w.value),disabled:t.loading||!m.value,onClick:L},[t.loading?(e.openBlock(),e.createBlock(e.unref(we),{key:0,class:"orb-alert-dialog__spinner",size:16,"aria-hidden":"true"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(u.value),1)],10,nn)])):e.createCommentVNode("",!0)],64))]),_:2},[!b.value&&!t.inlineActions?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",rn,[t.secondaryLabel?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--secondary",disabled:t.loading,onClick:S},e.toDisplayString(t.secondaryLabel),9,cn)):e.createCommentVNode("",!0),I.value?(e.openBlock(),e.createElementBlock("button",{key:1,ref_key:"cancelBtnRef",ref:n,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--cancel",disabled:t.loading,onClick:T},e.toDisplayString(y.value),9,sn)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:d,type:"button",class:e.normalizeClass(w.value),disabled:t.loading||!m.value,onClick:L},[t.loading?(e.openBlock(),e.createElementBlock("svg",un,[...$[3]||($[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.4 31.4"},null,-1)])])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(u.value),1)],10,dn)])]),key:"0"}:void 0]),1032,["open","size","close-on-overlay-click","close-on-escape","loading","aria-label","initial-focus-ref"]))}}),pt=e.defineComponent({__name:"ODialogProvider",setup(t){const l=Ra();function o(s){Xe(s,!0)}function r(s){Xe(s,!1)}function n(s){return s.options.confirmText??(s.type==="alert"?"OK":s.variant==="destructive"?"Excluir":s.variant==="warning"?"Continuar":"Confirmar")}function d(s){return s.options.cancelText??"Cancelar"}return(s,b)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),m=>(e.openBlock(),e.createBlock(We,{key:m.id,open:m.open,title:m.options.title,description:m.options.description,variant:m.variant,"confirm-label":n(m),"cancel-label":d(m),size:m.options.size??"sm",onConfirm:v=>o(m.id),onCancel:v=>r(m.id),"onUpdate:open":v=>{v||r(m.id)}},null,8,["open","title","description","variant","confirm-label","cancel-label","size","onConfirm","onCancel","onUpdate:open"]))),128))}});var z={white:{100:"rgba(255, 255, 255, 0.10)",120:"rgba(255, 255, 255, 0.12)",200:"rgba(255, 255, 255, 0.20)",250:"rgba(255, 255, 255, 0.25)",400:"rgba(255, 255, 255, 0.40)",550:"rgba(255, 255, 255, 0.55)",700:"rgba(255, 255, 255, 0.70)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.90)",1e3:"rgba(255, 255, 255, 1)"},black:{100:"rgba(0, 0, 0, 0.10)",250:"rgba(0, 0, 0, 0.25)",400:"rgba(0, 0, 0, 0.40)",550:"rgba(0, 0, 0, 0.55)",700:"rgba(0, 0, 0, 0.70)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.90)",1e3:"rgba(0, 0, 0, 1)"}},h={0:"#fff",50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)",1e3:"#000"},N={50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},ie={50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},U={50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},ce={50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},mn={50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},Q={50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},G={50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},se={50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},de={50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},Z={50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},ue={50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},me={50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},hn={50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},he={50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},kn={50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},ke={50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},bn={50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},B={50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},fn={50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},vn={50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},gn={50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},pn={50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},yn={50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},xn={50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},Bn={50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},Cn={50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},wn={50:"oklch(97.9% 0.011 356.992)",100:"oklch(95.1% 0.026 2.758)",200:"oklch(88.9% 0.062 2.08)",300:"oklch(82.9% 0.099 3.505)",400:"oklch(74.4% 0.161 6.263)",500:"oklch(69.4% 0.201 9.064)",600:"oklch(66.4% 0.226 12.253)",700:"oklch(56.9% 0.192 12.094)",800:"oklch(47.4% 0.157 11.378)",900:"oklch(40.8% 0.132 10.888)",950:"oklch(27% 0.08 10.488)"},Vn={50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},En={50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},Nn={50:"oklch(97.5% 0.015 94.196)",100:"oklch(93.7% 0.038 92.236)",200:"oklch(87.4% 0.071 89.461)",300:"oklch(78.3% 0.109 85.27)",400:"oklch(72.3% 0.122 79.487)",500:"oklch(66.4% 0.119 73.618)",600:"oklch(57.5% 0.108 64.952)",700:"oklch(47.9% 0.09 57.119)",800:"oklch(42.3% 0.075 51.375)",900:"oklch(38.1% 0.065 45.673)",950:"oklch(25.9% 0.045 41.584)"},$n={50:"oklch(97.4% 0.006 239.819)",100:"oklch(95.2% 0.009 242.84)",200:"oklch(91% 0.018 245.4)",300:"oklch(85.3% 0.029 246.519)",400:"oklch(77.8% 0.043 258.371)",500:"oklch(70.8% 0.057 264.115)",600:"oklch(65.4% 0.065 269.289)",700:"oklch(56.1% 0.068 269.924)",800:"oklch(48.7% 0.057 270.368)",900:"oklch(43.6% 0.038 267.435)",950:"oklch(30.6% 0.025 268.465)"},F={display:"'Inter Display', 'Inter', system-ui, -apple-system, sans-serif"},_n={display:"'salt' on"},W={regular:"400",medium:"500","semi-bold":"600",bold:"700"},R={100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px",1e3:"40px",1100:"44px",1200:"48px",1300:"60px"},j={100:"16px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"44px",800:"48px",900:"52px",1e3:"56px",1100:"76px"},zn={0:"0px",100:"2px",200:"4px",300:"8px",400:"12px",500:"16px",600:"20px",700:"24px",800:"28px",900:"32px",1e3:"48px",1100:"64px",1200:"80px",1300:"128px",1400:"200px",1500:"400px"},Sn={0:"0px",100:"4px",200:"8px",300:"12px",pill:"9999px"},Tn={0:"0px",100:"1px",150:"1.5px",200:"2px",300:"3px"},xe={0:"none",100:"0px 2px 2px 0px rgba(30, 41, 59, 0.04), 0px 4px 8px 0px rgba(30, 41, 59, 0.08)",200:"0px 4px 4px 0px rgba(30, 41, 59, 0.04), 0px 8px 24px 0px rgba(30, 41, 59, 0.08)",300:"0px 16px 40px 0px rgba(30, 41, 59, 0.08), 0px 8px 8px 0px rgba(30, 41, 59, 0.04)",400:"0px 24px 56px 0px rgba(30, 41, 59, 0.08), 0px 12px 12px 0px rgba(30, 41, 59, 0.04)"},Be={0:"none",100:"0px 2px 2px 0px rgba(0, 0, 0, 0.20), 0px 4px 8px 0px rgba(0, 0, 0, 0.30)",200:"0px 4px 4px 0px rgba(0, 0, 0, 0.20), 0px 8px 24px 0px rgba(0, 0, 0, 0.40)",300:"0px 16px 40px 0px rgba(0, 0, 0, 0.40), 0px 8px 8px 0px rgba(0, 0, 0, 0.20)",400:"0px 24px 56px 0px rgba(0, 0, 0, 0.50), 0px 12px 12px 0px rgba(0, 0, 0, 0.25)"},Dn={xs:"375px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},On={hide:"-1",base:"0",dropdown:"1000",sticky:"1100",fixed:"1200",overlay:"1300",modal:"1400",popover:"1500",tooltip:"1600",toast:"1700"},Ln={fastest:"50ms",fast:"100ms",normal:"200ms",slow:"300ms",slower:"400ms",slowest:"500ms"},Mn={linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)",inOut:"cubic-bezier(0.4, 0, 0.2, 1)"},In={h1:{fontFamily:F.display,fontWeight:W.bold,fontSize:R[1200],lineHeight:j[700],letterSpacing:"0px"},h2:{fontFamily:F.display,fontWeight:W.bold,fontSize:R[1e3],lineHeight:j[600],letterSpacing:"0px"},h3:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[800],lineHeight:j[500],letterSpacing:"0px"},h4:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[600],lineHeight:j[400],letterSpacing:"0px"},h5:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[500],lineHeight:j[300],letterSpacing:"0px"},h6:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[400],lineHeight:j[200],letterSpacing:"0px"}},Fn={large:{fontFamily:F.display,fontWeight:W.regular,fontSize:R[400],lineHeight:j[300],letterSpacing:"0px"},medium:{fontFamily:F.display,fontWeight:W.regular,fontSize:R[300],lineHeight:j[300],letterSpacing:"0px"},small:{fontFamily:F.display,fontWeight:W.regular,fontSize:R[200],lineHeight:j[200],letterSpacing:"0px"},"extra-small":{fontFamily:F.display,fontWeight:W.regular,fontSize:R[100],lineHeight:j[100],letterSpacing:"0px"}},Wn={large:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[200],lineHeight:j[200],letterSpacing:"0px"},small:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[100],lineHeight:j[100],letterSpacing:"0px"}},Rn={large:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[300],lineHeight:j[300],letterSpacing:"0px"},medium:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[200],lineHeight:j[300],letterSpacing:"0px"},small:{fontFamily:F.display,fontWeight:W["semi-bold"],fontSize:R[100],lineHeight:j[100],letterSpacing:"0px"}},jn={bg:h[0],"bg-subtle":h[50],"bg-muted":h[100],"bg-emphasis":h[200],"bg-inverse":h[1e3],fg:h[950],"fg-subtle":h[800],"fg-muted":h[500],"fg-on-emphasis":h[0],"fg-inverse":h[0],"fg-disabled":z.black[250],border:h[200],"border-subtle":h[100],"border-emphasis":h[400],"border-disabled":z.black[100],ring:"var(--orb-branding-200)","ring-offset":h[0],surface:h[0],"surface-raised":h[50],"surface-overlay":h[0],primary:"var(--orb-branding-600)","primary-hover":"var(--orb-branding-700)","primary-active":"var(--orb-branding-800)","primary-focus":"var(--orb-branding-600)","primary-subtle":"var(--orb-branding-50)","primary-fg":h[0],"primary-border":"var(--orb-branding-600)",secondary:h[0],"secondary-hover":h[300],"secondary-active":h[400],"secondary-focus":h[200],"secondary-fg":h[900],"secondary-border":h[300],success:G[600],"success-hover":G[700],"success-subtle":G[50],"success-fg":h[0],"success-border":G[300],"success-text":G[700],warning:U[500],"warning-hover":U[600],"warning-subtle":U[50],"warning-fg":h[1e3],"warning-border":U[300],"warning-text":U[700],error:N[600],"error-hover":N[700],"error-subtle":N[50],"error-fg":h[0],"error-border":N[300],"error-text":N[700],info:Z[600],"info-hover":Z[700],"info-subtle":Z[50],"info-fg":h[0],"info-border":Z[300],"info-text":Z[700],"input-bg":h[50],"input-border":h[200],"input-border-hover":h[300],"input-border-focus":"var(--orb-branding-600)","input-placeholder":h[400],"input-disabled-bg":z.black[100],"input-disabled-fg":z.black[250],"bg-medium-pink":ke[600],"bg-light-pink":ke[50],"text-medium-pink":ke[600],"bg-medium-gray":h[700],"bg-light-gray":h[100],"text-medium-gray":h[600],"bg-medium-green":Q[600],"bg-light-green":Q[50],"text-medium-green":Q[700],"bg-medium-red":N[600],"bg-light-red":N[50],"text-medium-red":N[600],"bg-medium-yellow":ce[500],"bg-light-yellow":ce[50],"text-medium-yellow":ce[700],"bg-medium-blue":ue[600],"bg-light-blue":ue[50],"text-medium-blue":ue[600],"bg-medium-purple":he[600],"bg-light-purple":he[50],"text-medium-purple":he[600],"bg-medium-indigo":me[600],"bg-light-indigo":me[50],"text-medium-indigo":me[600],"bg-medium-orange":ie[600],"bg-light-orange":ie[50],"text-medium-orange":ie[700],"bg-medium-teal":se[600],"bg-light-teal":se[50],"text-medium-teal":se[700],"bg-medium-cyan":de[600],"bg-light-cyan":de[50],"text-medium-cyan":de[700],"tooltip-bg":h[900],"tooltip-fg":h[0],"icon-default":h[600],"icon-disabled":z.black[250],"icon-hyperlink":"var(--orb-branding-600)","icon-success":G[600],"text-hyperlink":"var(--orb-branding-600)","text-disabled":z.black[250],"text-invalid":N[600],"border-field":h[200],"border-field-action":h[700],"border-invalid":N[600],"border-neutral":h[0],"bg-field":h[0],"bg-field-disabled":z.black[100],"bg-layer2":h[50],"bg-disabled":z.black[100],"shadow-sm":xe[100],"shadow-md":xe[200],"shadow-lg":xe[300],"shadow-overlay":xe[200],"overlay-bg":z.white[200],"dialog-bg":h[0],"dialog-border":h[200],"dialog-shadow":xe[300],"dialog-scrim":z.black[400],"dialog-outline":"transparent","dialog-header-border":"transparent","dialog-footer-border":"transparent","dialog-footer-bg":h[50],"text-support":B[500],"frame-bg-layer3":h[100]},Hn={bg:B[900],"bg-subtle":B[800],"bg-muted":B[700],"bg-emphasis":B[600],"bg-inverse":B[50],fg:h[0],"fg-subtle":B[300],"fg-muted":B[400],"fg-on-emphasis":h[0],"fg-inverse":B[950],"fg-disabled":z.white[250],border:B[700],"border-subtle":B[800],"border-emphasis":B[600],"border-disabled":z.white[100],ring:"var(--orb-branding-300)","ring-offset":B[900],surface:B[800],"surface-raised":B[700],"surface-overlay":B[700],primary:"var(--orb-branding-600)","primary-hover":"var(--orb-branding-700)","primary-active":"var(--orb-branding-800)","primary-focus":"var(--orb-branding-600)","primary-subtle":"var(--orb-branding-950)","primary-fg":h[0],"primary-border":"var(--orb-branding-600)",secondary:"rgba(148, 163, 184, 0.1)","secondary-hover":"rgba(203, 213, 225, 0.1)","secondary-active":"rgba(241, 245, 249, 0.25)","secondary-focus":"rgba(241, 245, 249, 0.10)","secondary-fg":h[0],"secondary-border":"transparent",success:G[600],"success-hover":G[500],"success-subtle":G[950],"success-fg":h[0],"success-border":G[800],"success-text":G[400],warning:U[500],"warning-hover":U[400],"warning-subtle":U[950],"warning-fg":h[1e3],"warning-border":U[800],"warning-text":U[400],error:N[500],"error-hover":N[400],"error-subtle":N[950],"error-fg":h[0],"error-border":N[800],"error-text":N[400],info:Z[600],"info-hover":Z[500],"info-subtle":Z[950],"info-fg":h[0],"info-border":Z[800],"info-text":Z[400],"input-bg":B[800],"input-border":B[600],"input-border-hover":B[500],"input-border-focus":"var(--orb-branding-600)","input-placeholder":B[400],"input-disabled-bg":z.white[100],"input-disabled-fg":z.white[250],"bg-medium-pink":ke[600],"bg-light-pink":ke[950],"text-medium-pink":ke[400],"bg-medium-gray":B[400],"bg-light-gray":B[700],"text-medium-gray":B[300],"bg-medium-green":Q[600],"bg-light-green":Q[950],"text-medium-green":Q[400],"bg-medium-red":N[500],"bg-light-red":N[950],"text-medium-red":N[400],"bg-medium-yellow":ce[500],"bg-light-yellow":ce[950],"text-medium-yellow":ce[400],"bg-medium-blue":ue[500],"bg-light-blue":ue[950],"text-medium-blue":ue[400],"bg-medium-purple":he[500],"bg-light-purple":he[950],"text-medium-purple":he[400],"bg-medium-indigo":me[500],"bg-light-indigo":me[950],"text-medium-indigo":me[400],"bg-medium-orange":ie[500],"bg-light-orange":ie[950],"text-medium-orange":ie[400],"bg-medium-teal":se[500],"bg-light-teal":se[950],"text-medium-teal":se[400],"bg-medium-cyan":de[500],"bg-light-cyan":de[950],"text-medium-cyan":de[400],"tooltip-bg":B[700],"tooltip-fg":h[0],"icon-default":B[300],"icon-disabled":z.white[250],"icon-hyperlink":"var(--orb-branding-600)","icon-success":G[500],"text-hyperlink":"var(--orb-branding-600)","text-disabled":z.white[250],"text-invalid":N[400],"border-field":B[600],"border-field-action":B[300],"border-invalid":N[500],"border-neutral":h[0],"bg-field":B[800],"bg-field-disabled":z.white[100],"bg-layer2":B[800],"bg-disabled":z.white[100],"shadow-sm":Be[100],"shadow-md":Be[200],"shadow-lg":Be[300],"shadow-overlay":Be[200],"overlay-bg":z.white[120],"dialog-bg":B[800],"dialog-border":B[600],"dialog-shadow":Be[300],"dialog-scrim":z.black[700],"dialog-outline":z.white[100],"dialog-header-border":"transparent","dialog-footer-border":"transparent","dialog-footer-bg":"rgba(51, 65, 85, 0.25)","text-support":B[400],"frame-bg-layer3":B[600]},An={"static-success-default":Q[600],"static-success-hover":Q[700],"static-success-active":Q[800],"static-success-focus":Q[600],"static-invalid-default":N[600],"static-invalid-hover":N[700],"static-invalid-active":N[800],"static-invalid-focus":N[600],"static-overlay-bg":z.black[400],"static-overlay-bg-hover":z.black[550],"static-overlay-fg":h[0]},Pn={branding:wn},qn={branding:Vn},Gn={branding:En},Kn={branding:Nn},Un={branding:$n};function Zn(t){return t}function Le(t){return Object.entries(t).map(([l,o])=>` --orb-${l}: ${o};`).join(`
|
|
2
|
+
`)}function Qn(t){var n,d;const l=[];l.push(`/**
|
|
3
3
|
* Orbit Design System - Custom Theme Overrides
|
|
4
4
|
* Auto-generated from orbit.config.ts
|
|
5
5
|
*
|
|
6
6
|
* Import AFTER variables.css:
|
|
7
7
|
* import '@neowit/orbit-tokens/css'
|
|
8
8
|
* import './orbit-overrides.css'
|
|
9
|
-
*/`);const
|
|
9
|
+
*/`);const o=(n=t.theme)==null?void 0:n.light,r=(d=t.theme)==null?void 0:d.dark;return o&&Object.keys(o).length>0&&l.push(`:root,
|
|
10
10
|
[data-theme="light"] {
|
|
11
|
-
${
|
|
12
|
-
}`),r&&Object.keys(r).length>0&&(
|
|
13
|
-
${
|
|
14
|
-
}`),
|
|
11
|
+
${Le(o)}
|
|
12
|
+
}`),r&&Object.keys(r).length>0&&(l.push(`[data-theme="dark"] {
|
|
13
|
+
${Le(r)}
|
|
14
|
+
}`),l.push(`@media (prefers-color-scheme: dark) {
|
|
15
15
|
:root:not([data-theme="light"]):not([data-theme="dark"]) {
|
|
16
|
-
${
|
|
16
|
+
${Le(r)}
|
|
17
17
|
}
|
|
18
|
-
}`)),
|
|
18
|
+
}`)),l.join(`
|
|
19
19
|
|
|
20
20
|
`)+`
|
|
21
|
-
`}const
|
|
21
|
+
`}const Yn={OText:et,OBadge:tt,OTooltip:ot,OHelpText:be,OFieldLabel:$e,OCheckbox:lt,ORadioButton:at,OSwitch:Ie,OFieldWrap:_e,OButton:rt,OStatusIcon:Ve,OIcon:st,OLogo:ut,OTextField:mt,OTextArea:ht,ORadioGroup:kt,OCheckboxGroup:bt,OButtonGroup:ft,OSelect:vt,OAlert:gt,ODialog:Fe,ODialogProvider:pt,OAlertDialog:We},yt={install(t){for(const[l,o]of Object.entries(Yn))t.component(l,o)}};exports.OAlert=gt;exports.OAlertDialog=We;exports.OBadge=tt;exports.OButton=rt;exports.OButtonGroup=ft;exports.OCheckbox=lt;exports.OCheckboxGroup=bt;exports.ODialog=Fe;exports.ODialogProvider=pt;exports.OFieldLabel=$e;exports.OFieldWrap=_e;exports.OHelpText=be;exports.OIcon=st;exports.OLogo=ut;exports.ORadioButton=at;exports.ORadioGroup=kt;exports.OSelect=vt;exports.OStatusIcon=Ve;exports.OSwitch=Ie;exports.OText=et;exports.OTextArea=ht;exports.OTextField=mt;exports.OThemeToggle=Ro;exports.OTooltip=ot;exports.OrbitPlugin=yt;exports.amber=U;exports.blue=ue;exports.body=Fn;exports.borderRadius=Sn;exports.borderWidth=Tn;exports.breakpoints=Dn;exports.button=Rn;exports.caption=Wn;exports.contasy=Pn;exports.contasyGlobal=Un;exports.contasyPrivate=Kn;exports.contasyStart=Gn;exports.cyan=de;exports.dark=Hn;exports.default=yt;exports.defineOrbitConfig=Zn;exports.duration=Ln;exports.easing=Mn;exports.emerald=G;exports.fontFamily=F;exports.fontFeatureSettings=_n;exports.fontSize=R;exports.fontWeight=W;exports.fuchsia=kn;exports.generateConfigCss=Qn;exports.gray=fn;exports.green=Q;exports.heading=In;exports.indigo=me;exports.light=jn;exports.lime=mn;exports.lineHeight=j;exports.mauve=pn;exports.mist=xn;exports.neutral=h;exports.notasy=qn;exports.olive=yn;exports.orange=ie;exports.orbit=Cn;exports.pink=ke;exports.purple=he;exports.red=N;exports.rose=bn;exports.shadows=xe;exports.shadowsDark=Be;exports.sky=Z;exports.slate=B;exports.spacing=zn;exports.staticTokens=An;exports.stone=gn;exports.taupe=Bn;exports.teal=se;exports.transparent=z;exports.useDialog=Wa;exports.useIcon=K;exports.useLogo=dt;exports.useTheme=ct;exports.violet=hn;exports.yellow=ce;exports.zIndex=On;exports.zinc=vn;
|