@neowit/orbit-vue 0.2.0 → 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 -13
- package/dist/orbit.js +1939 -1724
- 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,24 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ue=e.defineComponent({__name:"OText",props:{variant:{},as:{default:void 0},weight:{default:void 0}},setup(t){const i=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"},c=e.computed(()=>i.as||o[i.variant]||"span");return(r,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),{class:e.normalizeClass(["orb-text",`orb-text--${t.variant}`,t.weight?`orb-text--w-${t.weight}`:""])},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["class"]))}}),yt=["aria-label"],xt={key:0,class:"orb-badge__dot"},Ze=e.defineComponent({__name:"OBadge",props:{type:{default:"soft"},color:{default:"gray"},maxWidth:{},iconOnly:{type:Boolean}},setup(t){return(i,o)=>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,yt)):(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",xt)):e.createCommentVNode("",!0),t.type==="icon"?e.renderSlot(i.$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(i.$slots,"default")],4))],2))}}),Qe=e.defineComponent({__name:"OTooltip",props:{text:{},placement:{default:"top"},maxWidth:{},showDelay:{default:100},hideDelay:{default:80}},setup(t){const i=t,o=e.ref(!1);let c=null,r=null;function b(){r&&(clearTimeout(r),r=null),c=setTimeout(()=>{o.value=!0},i.showDelay)}function s(){c&&(clearTimeout(c),c=null),r=setTimeout(()=>{o.value=!1},i.hideDelay)}function v(){c&&(clearTimeout(c),c=null),r&&(clearTimeout(r),r=null),o.value=!1}return(u,g)=>(e.openBlock(),e.createElementBlock("span",{class:"orb-tooltip-trigger",onMouseenter:b,onMouseleave:s,onFocusin:b,onFocusout:s,onKeydown:e.withKeys(v,["escape"])},[e.renderSlot(u.$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(u.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),g[0]||(g[0]=e.createElementVNode("span",{class:"orb-tooltip__arrow"},null,-1))],6)):e.createCommentVNode("",!0)]),_:3})],32))}}),Bt=["role"],ue=e.defineComponent({__name:"OHelpText",props:{variant:{default:"neutral"},disabled:{type:Boolean,default:!1}},setup(t){return(i,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(i.$slots,"default")],10,Bt))}}),Ct={key:0,class:"orb-field-label"},wt={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 i=t,o=e.computed(()=>i.required?" (obrigatório)":i.optional?" (opcional)":"");return(c,r)=>t.label||t.maxLength?(e.openBlock(),e.createElementBlock("div",Ct,[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",wt,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)}}),Vt=["checked","aria-checked","disabled"],Et={key:0,class:"orb-checkbox__content"},Nt={key:0,class:"orb-checkbox__label"},$t={key:1,class:"orb-checkbox__description"},Ye=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:i}){const o=t,c=i,r=e.computed(()=>o.modelValue),b=e.ref(null);e.watch(()=>o.indeterminate,v=>{b.value&&(b.value.indeterminate=v)}),e.onMounted(()=>{b.value&&o.indeterminate&&(b.value.indeterminate=!0)});function s(){o.disabled||c("update:modelValue",!o.modelValue)}return(v,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":r.value&&!t.indeterminate,"orb-checkbox__box--indeterminate":t.indeterminate,"orb-checkbox__box--disabled":t.disabled}])},[e.createElementVNode("input",{ref_key:"inputRef",ref:b,type:"checkbox",checked:r.value,"aria-checked":t.indeterminate?"mixed":r.value,disabled:t.disabled,class:"orb-checkbox__input",onChange:s},null,40,Vt),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--check",{"orb-checkbox__icon--visible":r.value&&!t.indeterminate}]),viewBox:"0 0 24 24",fill:"none"},[...u[0]||(u[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"},[...u[1]||(u[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",Et,[t.label?(e.openBlock(),e.createElementBlock("span",Nt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",$t,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),_t=["name","value","checked","disabled","aria-label"],St={key:0,class:"orb-radio__content"},zt={key:0,class:"orb-radio__label"},Tt={key:1,class:"orb-radio__description"},Je=e.defineComponent({__name:"ORadioButton",props:{modelValue:{},value:{},disabled:{type:Boolean,default:!1},label:{},description:{},name:{}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t,c=i;function r(){o.disabled||c("update:modelValue",o.value)}return(b,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:r},null,40,_t),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",St,[t.label?(e.openBlock(),e.createElementBlock("span",zt,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))}}),Dt=["aria-checked","aria-label","disabled"],Lt={key:0,class:"orb-switch__content"},Ot={key:0,class:"orb-switch__label"},Mt={key:1,class:"orb-switch__description"},Xe=e.defineComponent({__name:"OSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{},description:{}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t,c=i;function r(){o.disabled||c("update:modelValue",!o.modelValue)}return(b,s)=>(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:r},[...s[0]||(s[0]=[e.createElementVNode("span",{class:"orb-switch__thumb"},null,-1)])],10,Dt),t.label||t.description?(e.openBlock(),e.createElementBlock("span",Lt,[t.label?(e.openBlock(),e.createElementBlock("span",Ot,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),we=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 i=t,o=e.computed(()=>["orb-field-wrap",`orb-field-wrap--${i.size}`,{"orb-field-wrap--focus":i.focused&&!i.disabled,"orb-field-wrap--invalid":i.invalid,"orb-field-wrap--disabled":i.disabled}]);return(c,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value)},[e.renderSlot(c.$slots,"default")],2))}}),Ft=["width","height","stroke-width"],Wt=e.defineComponent({__name:"IconCheckmarkCircle1",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,Ft))}}),It=["width","height","stroke-width"],ge=e.defineComponent({__name:"IconDeleteDisabled",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,It))}}),Rt=["width","height","stroke-width"],jt=e.defineComponent({__name:"IconEye2",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,Rt))}}),Ht=["width","height","stroke-width"],At=e.defineComponent({__name:"IconEyeCross1",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,Ht))}}),Pt=["width","height","stroke-width"],je=e.defineComponent({__name:"IconFullScreenArrow",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,Pt))}}),qt=["width","height","stroke-width"],Gt=e.defineComponent({__name:"IconInfoInformationCircle",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,qt))}}),Kt=["width","height","stroke-width"],ze=e.defineComponent({__name:"IconSearchLoupe",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,Kt))}}),Ut=["width","height","stroke-width"],Zt=e.defineComponent({__name:"IconWarning",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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},i.$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,Ut))}}),Qt=["width","height"],Yt=["stroke-width"],Jt=["stroke-width"],Xt=["stroke-width"],eo=["stroke-width"],to=["stroke-width"],oo=["stroke-width"],He=e.defineComponent({__name:"IconCustomExitFullscreen",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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,Yt),e.createElementVNode("path",{d:"M21 3L15 9",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Jt),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,Xt),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,eo),e.createElementVNode("path",{d:"M5 15L9 15L9 19",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,to),e.createElementVNode("path",{d:"M3 21L9 15",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,oo)],10,Qt))}}),lo=["width","height"],ao=["stroke-width"],no=["stroke-width"],ro=e.defineComponent({__name:"IconCustomErrorCircle",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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,ao),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,no)],10,lo))}}),io=["width","height"],co=["stroke-width"],so=["stroke-width"],et=e.defineComponent({__name:"IconCustomPlus",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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,co),e.createElementVNode("path",{d:"M12 6.34315V17.6569",stroke:"currentColor","stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,so)],10,io))}}),uo=["width","height"],bo=["stroke-width"],mo=e.defineComponent({__name:"IconCustomMinus",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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,bo)],10,uo))}}),ho=["width","height"],pe=e.defineComponent({__name:"IconCustomSpinner",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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,ho))}}),ko=["width","height"],fo=["stroke-width"],vo=e.defineComponent({__name:"IconCustomPhone",props:{size:{default:24},strokeWidth:{default:1.5},className:{}},setup(t){return(i,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,fo)],10,ko))}}),go={class:"orb-btn__spinner orb-btn__spinner--inline orb-btn__spinner--visible","aria-hidden":"true"},po={class:"orb-btn__label"},yo={key:0,class:"orb-btn__icon"},xo={key:1,class:"orb-btn__content"},Bo={key:0,class:"orb-btn__label"},Co={key:1,class:"orb-btn__description"},wo={key:2,class:"orb-btn__count"},Vo={key:3,class:"orb-btn__icon"},tt=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:i}){const o=t,c=i,r=e.useSlots(),b=e.computed(()=>!r.default&&!o.description&&(!!r["leading-icon"]||!!r["trailing-icon"])),s=e.computed(()=>!!o.description),v=e.computed(()=>o.disclosure===!0||o.disclosure==="down"?"down":o.disclosure==="up"?"up":null),u=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":b.value,"orb-btn--compound":s.value}]),g=e.computed(()=>o.disabled||o.loading),d=e.computed(()=>o.href?"a":"button");function x(k){if(g.value){k.preventDefault();return}c("click",k)}return(k,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.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&&g.value?!0:void 0,"aria-disabled":t.href&&g.value?"true":void 0,tabindex:t.href&&g.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:x},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["orb-btn__spinner",{"orb-btn__spinner--visible":t.loading&&!t.loadingText}]),"aria-hidden":"true"},[...m[0]||(m[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",go,[e.createVNode(e.unref(pe),{"aria-hidden":"true"})]),e.createElementVNode("span",po,e.toDisplayString(t.loadingText),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k.$slots["leading-icon"]?(e.openBlock(),e.createElementBlock("span",yo,[e.renderSlot(k.$slots,"leading-icon")])):e.createCommentVNode("",!0),k.$slots.default||t.description?(e.openBlock(),e.createElementBlock("span",xo,[k.$slots.default?(e.openBlock(),e.createElementBlock("span",Bo,[e.renderSlot(k.$slots,"default")])):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("span",Co,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.count!==void 0?(e.openBlock(),e.createElementBlock("span",wo,e.toDisplayString(t.count),1)):e.createCommentVNode("",!0),k.$slots["trailing-icon"]?(e.openBlock(),e.createElementBlock("span",Vo,[e.renderSlot(k.$slots,"trailing-icon")])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(["orb-btn__disclosure",{"orb-btn__disclosure--up":v.value==="up"}]),"aria-hidden":"true"},[...m[1]||(m[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"]))}}),Eo=["aria-label"],ye=e.defineComponent({__name:"OStatusIcon",props:{status:{},size:{default:"md"},filled:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},setup(t){return(i,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(Wt),{key:0,"aria-hidden":"true"})):t.status==="warning"?(e.openBlock(),e.createBlock(e.unref(Zt),{key:1,"aria-hidden":"true"})):t.status==="error"?(e.openBlock(),e.createBlock(e.unref(ro),{key:2,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(Gt),{key:3,"aria-hidden":"true"}))],10,Eo))}}),No={key:0,class:"orb-text-field__icon orb-text-field__icon--prefix"},$o={key:1,class:"orb-text-field__icon orb-text-field__icon--prefix"},_o=["disabled"],So={key:3,class:"orb-text-field__icon orb-text-field__icon--prefix"},zo={key:4,class:"orb-text-field__affix"},To=["id","type","value","placeholder","disabled","maxlength","min","max","step","inputmode","aria-invalid","aria-label"],Do={key:5,class:"orb-text-field__icon orb-text-field__icon--validation"},Lo=["aria-label"],Oo=["disabled"],Mo={key:9,class:"orb-text-field__affix"},Fo={key:10,class:"orb-text-field__icon orb-text-field__icon--suffix"},Wo=["href"],Io={key:0,class:"orb-text-field__hyperlink-icon"},ot=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:i}){const o={cpf:"###.###.###-##",cnpj:"##.###.###/####-##",cep:"#####-###",tel:"(##) ####-####",cel:"(##) #####-####"};function c(p,N){const L=p.replace(/\D/g,"");let _="",R=0;for(let j=0;j<N.length&&R<L.length;j++)N[j]==="#"?(_+=L[R],R++):_+=N[j];return _}function r(p){return p.replace(/\D/g,"")}function b(p){return o[p]??p}const s=t,v=i,u=e.ref(!1),g=e.ref(null),d=e.ref(s.modelValue??""),x=e.computed(()=>s.type==="search"),k=e.computed(()=>s.type==="password"),m=e.computed(()=>s.type==="number"),B=e.computed(()=>s.type==="tel"),T=e.computed(()=>!!s.mask),O=e.computed(()=>s.mask?b(s.mask):""),P=e.computed(()=>d.value.length>0),D=e.ref(!1),A=e.computed(()=>T.value?c(d.value,O.value):d.value),w=e.computed(()=>k.value?D.value?"text":"password":s.type);e.watch(()=>s.modelValue,p=>{d.value=p??""});function S(p){const N=p.target;if(T.value){const L=r(N.value),_=O.value.replace(/[^#]/g,"").length,R=L.slice(0,_);d.value=R;const j=c(R,O.value);N.value=j,v("update:modelValue",R)}else d.value=N.value,v("update:modelValue",N.value)}function Z(){var p;d.value="",v("update:modelValue",""),v("clear"),(p=g.value)==null||p.focus()}function $(){var p;D.value=!D.value,(p=g.value)==null||p.focus()}function J(p){var j;const N=parseFloat(d.value)||0,L=s.step??1;let _=N+L*p;s.min!=null&&_<s.min&&(_=s.min),s.max!=null&&_>s.max&&(_=s.max);const R=String(_);d.value=R,v("update:modelValue",R),(j=g.value)==null||j.focus()}function xe(){u.value=!0}function Q(){u.value=!1}return(p,N)=>{var L;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":((L=t.modelValue)==null?void 0:L.length)??0,"max-length":t.maxLength},null,8,["label","required","optional","disabled","char-count","max-length"])):e.createCommentVNode("",!0),e.createVNode(e.unref(we),{size:t.size,focused:u.value,invalid:t.state==="invalid",disabled:t.state==="disabled"},{default:e.withCtx(()=>[x.value&&!p.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",No,[e.createVNode(e.unref(ze),{"aria-hidden":"true"})])):e.createCommentVNode("",!0),B.value&&!p.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",$o,[e.createVNode(e.unref(vo),{"aria-hidden":"true"})])):e.createCommentVNode("",!0),m.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(d.value)||0)<=t.min,onClick:N[0]||(N[0]=_=>J(-1))},[e.createVNode(e.unref(mo),{"aria-hidden":"true"})],8,_o)):e.createCommentVNode("",!0),p.$slots["prefix-icon"]?(e.openBlock(),e.createElementBlock("span",So,[e.renderSlot(p.$slots,"prefix-icon")])):e.createCommentVNode("",!0),t.prefixText?(e.openBlock(),e.createElementBlock("span",zo,e.toDisplayString(t.prefixText),1)):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputRef",ref:g,id:t.id,type:w.value,value:T.value?A.value:t.modelValue,placeholder:t.placeholder,disabled:t.state==="disabled",maxlength:T.value?O.value.length:t.maxLength,min:m.value?t.min:void 0,max:m.value?t.max:void 0,step:m.value?t.step:void 0,inputmode:m.value?"numeric":B.value?"tel":T.value?"numeric":void 0,"aria-invalid":t.state==="invalid"?!0:void 0,"aria-label":x.value&&!t.label?t.placeholder||"Pesquisar":void 0,class:"orb-text-field__input",onInput:S,onFocus:xe,onBlur:Q},null,40,To),t.validationIcon&&t.state!=="invalid"?(e.openBlock(),e.createElementBlock("span",Do,[e.createVNode(ye,{status:"success",size:"sm"})])):e.createCommentVNode("",!0),x.value&&P.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:6,type:"button",class:"orb-text-field__clear","aria-label":"Limpar busca",onClick:Z},[e.createVNode(e.unref(ge),{"aria-hidden":"true"})])):e.createCommentVNode("",!0),k.value&&t.state!=="disabled"?(e.openBlock(),e.createElementBlock("button",{key:7,type:"button",class:"orb-text-field__toggle","aria-label":D.value?"Ocultar senha":"Mostrar senha",onClick:$},[D.value?(e.openBlock(),e.createBlock(e.unref(At),{key:1,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(jt),{key:0,"aria-hidden":"true"}))],8,Lo)):e.createCommentVNode("",!0),m.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(d.value)||0)>=t.max,onClick:N[1]||(N[1]=_=>J(1))},[e.createVNode(e.unref(et),{"aria-hidden":"true"})],8,Oo)):e.createCommentVNode("",!0),t.suffixText?(e.openBlock(),e.createElementBlock("span",Mo,e.toDisplayString(t.suffixText),1)):e.createCommentVNode("",!0),p.$slots["suffix-icon"]?(e.openBlock(),e.createElementBlock("span",Fo,[e.renderSlot(p.$slots,"suffix-icon")])):e.createCommentVNode("",!0)]),_:3},8,["size","focused","invalid","disabled"]),t.helpText?(e.openBlock(),e.createBlock(e.unref(ue),{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:N[2]||(N[2]=e.withModifiers(_=>t.state!=="disabled"&&v("hyperlink-click"),["prevent"]))},[p.$slots["hyperlink-icon"]?(e.openBlock(),e.createElementBlock("span",Io,[e.renderSlot(p.$slots,"hyperlink-icon")])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.hyperlinkText),1)],10,Wo)):e.createCommentVNode("",!0)],2)}}}),Ro=["id","value","placeholder","disabled","maxlength","rows","aria-invalid"],jo=["href"],lt=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:i}){const o=t,c=i,r=e.ref(!1),b=e.ref(null);function s(d){const x=d.target;c("update:modelValue",x.value),o.resize==="auto"&&e.nextTick(()=>v())}function v(){const d=b.value;d&&(d.style.height="auto",d.style.height=`${d.scrollHeight}px`)}function u(){r.value=!0}function g(){r.value=!1}return e.watch(()=>o.modelValue,()=>{o.resize==="auto"&&e.nextTick(()=>v())}),e.onMounted(()=>{o.resize==="auto"&&v()}),(d,x)=>{var k;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":((k=t.modelValue)==null?void 0:k.length)??0,"max-length":t.maxLength},null,8,["label","required","optional","disabled","char-count","max-length"])):e.createCommentVNode("",!0),e.createVNode(e.unref(we),{size:t.size,focused:r.value,invalid:t.state==="invalid",disabled:t.state==="disabled"},{default:e.withCtx(()=>[e.createElementVNode("textarea",{ref_key:"textareaRef",ref:b,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:u,onBlur:g},null,42,Ro)]),_:1},8,["size","focused","invalid","disabled"]),t.helpText?(e.openBlock(),e.createBlock(e.unref(ue),{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:x[0]||(x[0]=e.withModifiers(m=>t.state!=="disabled"&&c("hyperlink-click"),["prevent"]))},e.toDisplayString(t.hyperlinkText),11,jo)):e.createCommentVNode("",!0)],2)}}}),Ho=["disabled","aria-invalid"],Ao={key:0,class:"orb-field-label__suffix"},Po=["name","value","checked","disabled","aria-label","onChange"],qo={class:"orb-radio__content"},Go={class:"orb-radio__label"},Ko={key:0,class:"orb-radio__description"},at=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:i}){const o=t,c=i,r=e.computed(()=>o.required?" (obrigatório)":o.optional?" (opcional)":"");function b(s){o.state!=="disabled"&&c("update:modelValue",s)}return(s,v)=>(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),r.value?(e.openBlock(),e.createElementBlock("span",Ao,e.toDisplayString(r.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:g=>b(u.value)},null,40,Po),e.createElementVNode("span",{class:e.normalizeClass(["orb-radio__dot",{"orb-radio__dot--visible":t.modelValue===u.value}])},null,2)],2),e.createElementVNode("span",qo,[e.createElementVNode("span",Go,e.toDisplayString(u.label),1),u.description?(e.openBlock(),e.createElementBlock("span",Ko,e.toDisplayString(u.description),1)):e.createCommentVNode("",!0)])],2))),128))],2),t.helpText?(e.openBlock(),e.createBlock(e.unref(ue),{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,Ho))}}),Uo=["disabled","aria-invalid"],Zo={key:0,class:"orb-field-label__suffix"},Qo=["checked","aria-checked","disabled","aria-label"],Yo={class:"orb-checkbox__content"},Jo={class:"orb-checkbox__label"},Xo=["value","checked","disabled","aria-label","onChange"],el={class:"orb-checkbox__content"},tl={class:"orb-checkbox__label"},ol={key:0,class:"orb-checkbox__description"},nt=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:i}){const o=t,c=i,r=e.computed(()=>o.required?" (obrigatório)":o.optional?" (opcional)":"");function b(k){return o.modelValue.includes(k)}function s(k){if(o.state==="disabled")return;const m=b(k)?o.modelValue.filter(B=>B!==k):[...o.modelValue,k];c("update:modelValue",m)}const v=e.computed(()=>o.options.map(k=>k.value)),u=e.computed(()=>v.value.length>0&&v.value.every(k=>o.modelValue.includes(k))),g=e.computed(()=>!u.value&&o.modelValue.length>0),d=e.ref(null);e.watch(g,k=>{d.value&&(d.value.indeterminate=k)}),e.onMounted(()=>{d.value&&g.value&&(d.value.indeterminate=!0)});function x(){o.state!=="disabled"&&(u.value?c("update:modelValue",[]):c("update:modelValue",[...v.value]))}return(k,m)=>(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),r.value?(e.openBlock(),e.createElementBlock("span",Zo,e.toDisplayString(r.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":g.value,"orb-checkbox__box--disabled":t.state==="disabled"}])},[e.createElementVNode("input",{ref_key:"selectAllRef",ref:d,type:"checkbox",checked:u.value,"aria-checked":g.value?"mixed":u.value,disabled:t.state==="disabled","aria-label":t.selectAllLabel,class:"orb-checkbox__input",onChange:x},null,40,Qo),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--check",{"orb-checkbox__icon--visible":u.value}]),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":g.value}]),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),e.createElementVNode("span",Yo,[e.createElementVNode("span",Jo,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,B=>(e.openBlock(),e.createElementBlock("label",{key:B.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":b(B.value),"orb-checkbox__box--disabled":t.state==="disabled","orb-checkbox__box--invalid":t.state==="invalid"&&!b(B.value)}])},[e.createElementVNode("input",{type:"checkbox",value:B.value,checked:b(B.value),disabled:t.state==="disabled","aria-label":B.label,class:"orb-checkbox__input",onChange:T=>s(B.value)},null,40,Xo),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["orb-checkbox__icon orb-checkbox__icon--check",{"orb-checkbox__icon--visible":b(B.value)}]),viewBox:"0 0 24 24",fill:"none"},[...m[2]||(m[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",el,[e.createElementVNode("span",tl,e.toDisplayString(B.label),1),B.description?(e.openBlock(),e.createElementBlock("span",ol,e.toDisplayString(B.description),1)):e.createCommentVNode("",!0)])],2))),128))],2),t.helpText?(e.openBlock(),e.createBlock(e.unref(ue),{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,Uo))}}),rt=e.defineComponent({__name:"OButtonGroup",props:{orientation:{default:"horizontal"}},setup(t){const i=t,o=e.computed(()=>["orb-btn-group",`orb-btn-group--${i.orientation}`]);return(c,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value),role:"group"},[e.renderSlot(c.$slots,"default")],2))}}),ll=["id","aria-expanded","aria-controls","aria-activedescendant","aria-invalid","aria-label","aria-multiselectable","disabled"],al=["innerHTML"],nl={key:0,class:"orb-select__tags"},rl=["innerHTML"],il={class:"orb-select__tag-label"},cl=["aria-label","onClick"],sl={key:0,class:"orb-select__tag orb-select__tag--count"},dl={key:1,class:"orb-select__value orb-select__value--placeholder"},ul={key:2,class:"orb-select__spinner","aria-hidden":"true"},bl=["aria-label"],ml={class:"orb-select__listbox-inner"},hl={key:0,class:"orb-select__toolbar orb-select__toolbar--top"},kl={key:1,class:"orb-select__search"},fl={class:"orb-select__search-icon","aria-hidden":"true"},vl=["placeholder"],gl=["id","aria-multiselectable"],pl={class:"orb-select__group-label",role:"presentation"},yl=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],xl={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Bl=["innerHTML"],Cl={class:"orb-select__option-content"},wl={class:"orb-select__option-label"},Vl={key:0,class:"orb-select__option-desc"},El={key:2,class:"orb-select__option-check","aria-hidden":"true"},Nl=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],$l={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},_l=["innerHTML"],Sl={class:"orb-select__option-content"},zl={class:"orb-select__option-label"},Tl={key:0,class:"orb-select__option-desc"},Dl={key:2,class:"orb-select__option-check","aria-hidden":"true"},Ll=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],Ol={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Ml=["innerHTML"],Fl={class:"orb-select__option-content"},Wl={class:"orb-select__option-label"},Il={key:0,class:"orb-select__option-desc"},Rl={key:2,class:"orb-select__option-check","aria-hidden":"true"},jl=["id","data-active"],Hl={class:"orb-select__create-icon","aria-hidden":"true"},Al={class:"orb-select__option-label"},Pl={key:3,class:"orb-select__empty"},ql={key:4,class:"orb-select__limit-msg"},Gl={key:2,class:"orb-select__toolbar orb-select__toolbar--bottom"},Kl=["aria-label"],Ul={class:"orb-select__listbox-inner"},Zl={key:0,class:"orb-select__toolbar orb-select__toolbar--top"},Ql={key:1,class:"orb-select__search"},Yl={class:"orb-select__search-icon","aria-hidden":"true"},Jl=["placeholder"],Xl=["id","aria-multiselectable"],ea=["id","aria-selected","aria-disabled","data-active","onClick","onMouseenter"],ta={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},oa=["innerHTML"],la={class:"orb-select__option-content"},aa={class:"orb-select__option-label"},na={key:0,class:"orb-select__option-desc"},ra={key:2,class:"orb-select__option-check","aria-hidden":"true"},ia={key:0,class:"orb-select__empty"},ca={key:1,class:"orb-select__limit-msg"},sa={key:2,class:"orb-select__toolbar orb-select__toolbar--bottom"},it=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:i}){const o=t,c=i,r=e.ref(!1),b=e.ref(!1),s=e.ref(null),v=e.ref(null),u=e.ref(null),g=e.ref(null),d=e.ref(-1),x=e.ref(""),k=e.ref(null),m=e.ref(""),B=e.ref({}),T=e.ref("down"),O=e.ref(null),P=e.ref(!1),D=e.computed(()=>o.state==="disabled"),A=e.computed(()=>o.state==="invalid"),w=e.computed(()=>o.multiple?Array.isArray(o.modelValue)?o.modelValue:[]:typeof o.modelValue=="string"&&o.modelValue!==""?[o.modelValue]:[]),S=e.computed(()=>{const l=[];for(const a of o.options)"options"in a?l.push(...a.options):l.push(a);return l});function Z(l,a){return o.filterFn?o.filterFn(l,a):l.label.toLowerCase().includes(a.toLowerCase())}const $=e.computed(()=>!o.searchable||!m.value?S.value:S.value.filter(l=>Z(l,m.value))),J=e.computed(()=>!o.searchable||!m.value?o.options:o.options.map(l=>{if("options"in l){const a=l.options.filter(n=>Z(n,m.value));return a.length>0?{...l,options:a}:null}return Z(l,m.value)?l:null}).filter(Boolean)),xe=e.computed(()=>o.options.some(l=>"options"in l)),Q=e.computed(()=>S.value.find(l=>l.value===(o.multiple?"":o.modelValue))),p=e.computed(()=>S.value.filter(l=>w.value.includes(l.value))),N=e.computed(()=>{var l;return((l=Q.value)==null?void 0:l.label)??""}),L=e.computed(()=>o.multiple?w.value.length>0:o.modelValue!==""&&o.modelValue!=null),_=e.computed(()=>(o.id??"orb-select")+"-listbox"),R=e.computed(()=>$.value.length===0),j=e.computed(()=>!o.multiple||o.maxSelections<=0?!1:w.value.length>=o.maxSelections),Y=e.computed(()=>{if(!o.creatable||!o.searchable||!m.value.trim())return!1;const l=m.value.trim().toLowerCase();return!S.value.some(a=>a.label.toLowerCase()===l)}),Ne=e.computed(()=>o.maxTagCount>0&&p.value.length>o.maxTagCount?p.value.slice(0,o.maxTagCount):p.value),Ve=e.computed(()=>o.maxTagCount>0&&p.value.length>o.maxTagCount?p.value.length-o.maxTagCount:0);e.onMounted(()=>{document.addEventListener("mousedown",Oe)}),e.onBeforeUnmount(()=>{document.removeEventListener("mousedown",Oe),k.value&&clearTimeout(k.value)}),e.watch(r,l=>{if(l){m.value="",P.value=!1,Fe(),o.teleport&&ft();const a=o.multiple?"":o.modelValue,n=$.value.findIndex(h=>h.value===a);d.value=n>=0?n:0,e.nextTick(()=>{var h;o.searchable&&((h=u.value)==null||h.focus()),be()})}else d.value=-1,m.value=""}),e.watch(()=>o.options,()=>{P.value=!1},{deep:!1}),e.watch(m,l=>{d.value=$.value.length>0?0:-1,o.searchable&&c("search",l)});function f(){D.value||o.loading||(r.value=!r.value)}function C(){D.value||o.loading||r.value||(r.value=!0)}function X(){var l;r.value&&(r.value=!1,(l=s.value)==null||l.focus())}function ee(l){if(!l.disabled)if(o.multiple){const a=[...w.value],n=a.indexOf(l.value);if(n>=0)a.splice(n,1);else{if(j.value)return;a.push(l.value)}c("update:modelValue",a),c("change",a),e.nextTick(()=>{var h;o.searchable&&((h=u.value)==null||h.focus())})}else o.allowDeselect&&l.value===o.modelValue?(c("update:modelValue",""),c("change","")):(c("update:modelValue",l.value),c("change",l.value)),X()}function mt(l){var n;l.stopPropagation();const a=o.multiple?[]:"";c("update:modelValue",a),c("change",a),(n=s.value)==null||n.focus()}function Le(l,a){const n=w.value.filter(h=>h!==l);c("update:modelValue",n),c("change",n)}function Oe(l){var n,h;const a=l.target;if(!((n=g.value)!=null&&n.contains(a))){if(o.teleport&&((h=v.value)!=null&&h.contains(a)))return;r.value=!1}}function ht(){b.value=!0}function kt(){b.value=!1}function Me(){const l=m.value.trim();if(!l)return;const a=l.toLowerCase().replace(/\s+/g,"-");if(c("create",l),o.multiple){const n=[...w.value,a];c("update:modelValue",n),c("change",n)}else c("update:modelValue",a),c("change",a),X();m.value=""}function Fe(){if(o.direction!=="auto"){T.value=o.direction;return}if(!g.value){T.value="down";return}const l=g.value.getBoundingClientRect(),a=window.innerHeight-l.bottom,n=l.top;T.value=a<280&&n>a?"up":"down"}function ft(){if(!g.value)return;Fe();const l=g.value.getBoundingClientRect();T.value==="up"?B.value={position:"fixed",bottom:`${window.innerHeight-l.top+4}px`,left:`${l.left}px`,width:`${l.width}px`,zIndex:"9999"}:B.value={position:"fixed",top:`${l.bottom+4}px`,left:`${l.left}px`,width:`${l.width}px`,zIndex:"9999"}}function We(l){const a=l.target;if(!a)return;a.scrollHeight-a.scrollTop-a.clientHeight<40&&!P.value&&!o.loading&&(P.value=!0,c("loadMore"))}function $e(l){switch($.value.length+(Y.value?1:0),l.key){case"Enter":case" ":if(o.searchable&&r.value&&l.key===" ")return;if(l.preventDefault(),r.value)if(Y.value&&d.value===$.value.length)Me();else{const a=$.value[d.value];a&&!a.disabled&&ee(a)}else C();break;case"ArrowDown":l.preventDefault(),r.value?Ie(1):C();break;case"ArrowUp":l.preventDefault(),r.value?Ie(-1):C();break;case"Home":l.preventDefault(),r.value&&vt();break;case"End":l.preventDefault(),r.value&>();break;case"Escape":l.preventDefault(),X();break;case"Backspace":o.multiple&&o.searchable&&r.value&&!m.value&&w.value.length>0&&Le(w.value[w.value.length-1]);break;case"Tab":r.value&&(r.value=!1);break;default:!o.searchable&&l.key.length===1&&!l.ctrlKey&&!l.metaKey&&(l.preventDefault(),pt(l.key))}}function Ie(l){var oe,Re;const a=$.value,n=a.length+(Y.value?1:0);if(n===0)return;let h=d.value,y=0;do if(h+=l,h<0&&(h=n-1),h>=n&&(h=0),y++,h===a.length&&Y.value)break;while(h<a.length&&((oe=a[h])!=null&&oe.disabled)&&y<n);(h===a.length||!((Re=a[h])!=null&&Re.disabled))&&(d.value=h,e.nextTick(()=>be()))}function vt(){const l=$.value.findIndex(a=>!a.disabled);l>=0&&(d.value=l,e.nextTick(()=>be()))}function gt(){if(Y.value){d.value=$.value.length,e.nextTick(()=>be());return}const l=$.value;for(let a=l.length-1;a>=0;a--)if(!l[a].disabled){d.value=a,e.nextTick(()=>be());return}}function pt(l){x.value+=l.toLowerCase(),k.value&&clearTimeout(k.value),k.value=setTimeout(()=>{x.value=""},500);const a=x.value,n=S.value,h=d.value>=0?d.value:0;for(let y=0;y<n.length;y++){const oe=(h+y)%n.length;if(!n[oe].disabled&&n[oe].label.toLowerCase().startsWith(a)){d.value=oe,r.value||C(),e.nextTick(()=>be());return}}}function be(){var a;const l=(a=v.value)==null?void 0:a.querySelector('[data-active="true"]');l==null||l.scrollIntoView({block:"nearest"})}function me(l){return`${_.value}-option-${l}`}function te(l){return $.value.indexOf(l)}function z(l){return w.value.includes(l.value)}return(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"selectRoot",ref:g,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:D.value},null,8,["label","required","optional","disabled"])):e.createCommentVNode("",!0),e.createVNode(e.unref(we),{size:t.size,focused:b.value,invalid:A.value,disabled:D.value},{default:e.withCtx(()=>{var n;return[e.createElementVNode("button",{ref_key:"triggerRef",ref:s,type:"button",role:"combobox",id:t.id,"aria-expanded":r.value,"aria-haspopup":"listbox","aria-controls":_.value,"aria-activedescendant":d.value>=0?me(d.value):void 0,"aria-invalid":A.value?!0:void 0,"aria-label":t.label?void 0:t.placeholder||"Selecionar","aria-multiselectable":t.multiple||void 0,disabled:D.value,class:e.normalizeClass(["orb-select__trigger",{"orb-select__trigger--multi":t.multiple&&L.value}]),onClick:f,onKeydown:$e,onFocus:ht,onBlur:kt},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[L.value?(e.openBlock(),e.createElementBlock("div",nl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ne.value,h=>(e.openBlock(),e.createElementBlock("span",{key:h.value,class:"orb-select__tag"},[h.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:"orb-select__tag-icon","aria-hidden":"true",innerHTML:h.icon},null,8,rl)):e.createCommentVNode("",!0),e.createElementVNode("span",il,e.toDisplayString(h.label),1),e.createElementVNode("button",{type:"button",class:"orb-select__tag-remove","aria-label":`Remover ${h.label}`,onClick:e.withModifiers(y=>Le(h.value),["stop"]),onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(ge),{"aria-hidden":"true"})],40,cl)]))),128)),Ve.value>0?(e.openBlock(),e.createElementBlock("span",sl," +"+e.toDisplayString(Ve.value),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",dl,e.toDisplayString(t.placeholder||""),1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(n=Q.value)!=null&&n.icon&&L.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"orb-select__trigger-icon","aria-hidden":"true",innerHTML:Q.value.icon},null,8,al)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["orb-select__value",{"orb-select__value--placeholder":!L.value}])},[e.renderSlot(l.$slots,"selected",{option:Q.value},()=>[e.createTextVNode(e.toDisplayString(L.value?N.value:t.placeholder||""),1)])],2)],64)),t.loading?(e.openBlock(),e.createElementBlock("span",ul,[e.createVNode(e.unref(pe))])):e.createCommentVNode("",!0),t.clearable&&L.value&&!D.value&&!t.loading?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"orb-select__clear","aria-label":"Limpar seleção",onClick:mt,onMousedown:a[1]||(a[1]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(ge),{"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":r.value}]),"aria-hidden":"true"},[...a[6]||(a[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,ll)]}),_:3},8,["size","focused","invalid","disabled"]),t.teleport?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"listboxRef",ref:v,class:e.normalizeClass(["orb-select__listbox",{"orb-select__listbox--up":T.value==="up"}]),"aria-label":t.label||t.placeholder||"Opções"},[e.createElementVNode("div",ml,[l.$slots["dropdown-header"]?(e.openBlock(),e.createElementBlock("div",hl,[e.renderSlot(l.$slots,"dropdown-header")])):e.createCommentVNode("",!0),t.searchable?(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("span",fl,[e.createVNode(e.unref(ze),{"aria-hidden":"true"})]),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":a[2]||(a[2]=n=>m.value=n),type:"text",class:"orb-select__search-input",placeholder:t.searchPlaceholder,autocomplete:"off",onKeydown:$e},null,40,vl),[[e.vModelText,m.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"optionsContainerRef",ref:O,id:_.value,role:"listbox","aria-multiselectable":t.multiple||void 0,class:"orb-select__options",onScroll:We},[xe.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.searchable?J.value:t.options,(n,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},["options"in n?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",pl,e.toDisplayString(n.label),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,y=>(e.openBlock(),e.createElementBlock("div",{key:y.value,id:me(te(y)),role:"option","aria-selected":z(y),"aria-disabled":y.disabled||void 0,"data-active":te(y)===d.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":z(y),"orb-select__option--active":te(y)===d.value,"orb-select__option--disabled":y.disabled}]),onClick:oe=>ee(y),onMouseenter:oe=>d.value=te(y)},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":z(y)}]),"aria-hidden":"true"},[z(y)?(e.openBlock(),e.createElementBlock("svg",xl,[...a[7]||(a[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),y.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:y.icon},null,8,Bl)):e.createCommentVNode("",!0),e.createElementVNode("span",Cl,[e.createElementVNode("span",wl,e.toDisplayString(y.label),1),y.description?(e.openBlock(),e.createElementBlock("span",Vl,e.toDisplayString(y.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&z(y)?(e.openBlock(),e.createElementBlock("span",El,[...a[8]||(a[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,yl))),128))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,id:me(te(n)),role:"option","aria-selected":z(n),"aria-disabled":n.disabled||void 0,"data-active":te(n)===d.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":z(n),"orb-select__option--active":te(n)===d.value,"orb-select__option--disabled":n.disabled}]),onClick:y=>ee(n),onMouseenter:y=>d.value=te(n)},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":z(n)}]),"aria-hidden":"true"},[z(n)?(e.openBlock(),e.createElementBlock("svg",$l,[...a[9]||(a[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),n.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:n.icon},null,8,_l)):e.createCommentVNode("",!0),e.createElementVNode("span",Sl,[e.createElementVNode("span",zl,e.toDisplayString(n.label),1),n.description?(e.openBlock(),e.createElementBlock("span",Tl,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&z(n)?(e.openBlock(),e.createElementBlock("span",Dl,[...a[10]||(a[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,Nl))],64))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList($.value,(n,h)=>(e.openBlock(),e.createElementBlock("div",{key:n.value,id:me(h),role:"option","aria-selected":z(n),"aria-disabled":n.disabled||void 0,"data-active":h===d.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":z(n),"orb-select__option--active":h===d.value,"orb-select__option--disabled":n.disabled}]),onClick:y=>ee(n),onMouseenter:y=>d.value=h},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":z(n)}]),"aria-hidden":"true"},[z(n)?(e.openBlock(),e.createElementBlock("svg",Ol,[...a[11]||(a[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),n.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:n.icon},null,8,Ml)):e.createCommentVNode("",!0),e.createElementVNode("span",Fl,[e.createElementVNode("span",Wl,e.toDisplayString(n.label),1),n.description?(e.openBlock(),e.createElementBlock("span",Il,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&z(n)?(e.openBlock(),e.createElementBlock("span",Rl,[...a[12]||(a[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,Ll))),128)),Y.value?(e.openBlock(),e.createElementBlock("div",{key:2,id:me($.value.length),role:"option","aria-selected":!1,"data-active":d.value===$.value.length,class:e.normalizeClass(["orb-select__option","orb-select__option--create",{"orb-select__option--active":d.value===$.value.length}]),onClick:Me,onMouseenter:a[3]||(a[3]=n=>d.value=$.value.length)},[e.createElementVNode("span",Hl,[e.createVNode(e.unref(et),{"aria-hidden":"true"})]),e.createElementVNode("span",Al,e.toDisplayString(t.createLabel.replace("{query}",m.value.trim())),1)],42,jl)):e.createCommentVNode("",!0),R.value&&!Y.value?(e.openBlock(),e.createElementBlock("div",Pl,e.toDisplayString(t.searchable&&m.value?"Nenhum resultado encontrado":"Nenhuma opção disponível"),1)):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createElementBlock("div",ql," Limite de "+e.toDisplayString(t.maxSelections)+" "+e.toDisplayString(t.maxSelections===1?"seleção":"seleções")+" atingido ",1)):e.createCommentVNode("",!0)],40,gl),l.$slots["dropdown-footer"]?(e.openBlock(),e.createElementBlock("div",Gl,[e.renderSlot(l.$slots,"dropdown-footer")])):e.createCommentVNode("",!0)])],10,bl)),[[e.vShow,r.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:v,class:e.normalizeClass(["orb-select__listbox",`orb-select--${t.size}`,{"orb-select__listbox--up":T.value==="up"}]),style:e.normalizeStyle(B.value),"aria-label":t.label||t.placeholder||"Opções",onMousedown:a[5]||(a[5]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",Ul,[l.$slots["dropdown-header"]?(e.openBlock(),e.createElementBlock("div",Zl,[e.renderSlot(l.$slots,"dropdown-header")])):e.createCommentVNode("",!0),t.searchable?(e.openBlock(),e.createElementBlock("div",Ql,[e.createElementVNode("span",Yl,[e.createVNode(e.unref(ze),{"aria-hidden":"true"})]),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":a[4]||(a[4]=n=>m.value=n),type:"text",class:"orb-select__search-input",placeholder:t.searchPlaceholder,autocomplete:"off",onKeydown:$e},null,40,Jl),[[e.vModelText,m.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",{id:_.value,role:"listbox","aria-multiselectable":t.multiple||void 0,class:"orb-select__options",onScroll:We},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(n,h)=>(e.openBlock(),e.createElementBlock("div",{key:n.value,id:me(h),role:"option","aria-selected":z(n),"aria-disabled":n.disabled||void 0,"data-active":h===d.value,class:e.normalizeClass(["orb-select__option",{"orb-select__option--selected":z(n),"orb-select__option--active":h===d.value,"orb-select__option--disabled":n.disabled}]),onClick:y=>ee(n),onMouseenter:y=>d.value=h},[t.multiple?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["orb-select__option-checkbox",{"orb-select__option-checkbox--checked":z(n)}]),"aria-hidden":"true"},[z(n)?(e.openBlock(),e.createElementBlock("svg",ta,[...a[13]||(a[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),n.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:"orb-select__option-icon","aria-hidden":"true",innerHTML:n.icon},null,8,oa)):e.createCommentVNode("",!0),e.createElementVNode("span",la,[e.createElementVNode("span",aa,e.toDisplayString(n.label),1),n.description?(e.openBlock(),e.createElementBlock("span",na,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)]),!t.multiple&&z(n)?(e.openBlock(),e.createElementBlock("span",ra,[...a[14]||(a[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,ea))),128)),R.value?(e.openBlock(),e.createElementBlock("div",ia,e.toDisplayString(t.searchable&&m.value?"Nenhum resultado encontrado":"Nenhuma opção disponível"),1)):e.createCommentVNode("",!0),j.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,Xl),l.$slots["dropdown-footer"]?(e.openBlock(),e.createElementBlock("div",sa,[e.renderSlot(l.$slots,"dropdown-footer")])):e.createCommentVNode("",!0)])],46,Kl)),[[e.vShow,r.value]]):e.createCommentVNode("",!0)],8,["to","disabled"])),t.helpText?(e.openBlock(),e.createBlock(e.unref(ue),{key:2,variant:A.value?"negative":"neutral",disabled:D.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.helpText),1)]),_:1},8,["variant","disabled"])):e.createCommentVNode("",!0)],2))}}),da=["role"],ua={key:0,class:"orb-alert__icon"},ba={class:"orb-alert__content"},ma={key:0,class:"orb-alert__title"},ha={key:1,class:"orb-alert__description"},ka={key:2,class:"orb-alert__actions"},ct=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:i}){const o=t,c=i,r=e.ref(!0),b=e.ref(!1),s=e.computed(()=>!o.hideIcon&&o.variant!=="neutral"),v=e.computed(()=>o.variant==="warning"||o.variant==="error"?"alert":"status");function u(){b.value=!0}function g(){b.value&&(r.value=!1,c("close"))}return(d,x)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["orb-alert",`orb-alert--${t.variant}`,`orb-alert--${t.appearance}`,{"orb-alert--closing":b.value},{"orb-alert--has-icon":s.value}]),role:v.value,onTransitionend:g},[s.value?(e.openBlock(),e.createElementBlock("span",ua,[e.renderSlot(d.$slots,"icon",{},()=>[e.createVNode(e.unref(ye),{status:t.variant,size:"md"},null,8,["status"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ba,[t.title?(e.openBlock(),e.createElementBlock("p",ma,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),d.$slots.default?(e.openBlock(),e.createElementBlock("div",ha,[e.renderSlot(d.$slots,"default")])):e.createCommentVNode("",!0),d.$slots.actions?(e.openBlock(),e.createElementBlock("div",ka,[e.renderSlot(d.$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},[e.createVNode(e.unref(ge),{"aria-hidden":"true"})])):e.createCommentVNode("",!0)],42,da)):e.createCommentVNode("",!0)}}),fa=["role","aria-label","aria-labelledby","aria-describedby","aria-busy"],va={key:0,class:"orb-dialog__hero"},ga={class:"orb-dialog__hero-actions"},pa=["aria-label"],ya=["disabled"],xa={class:"orb-dialog__header-text"},Ba=["aria-label"],Ca=["disabled"],he=[];let Be=0,Ae="",Pe="";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:i}){const o=t,c=i,r=`orb-dialog-${Math.random().toString(36).slice(2,8)}`,b=e.ref(null),s=e.ref(null),v=`orb-dialog-title-${Math.random().toString(36).slice(2,8)}`,u=`orb-dialog-desc-${Math.random().toString(36).slice(2,8)}`,g=e.ref(0),d=e.ref(!1),x=e.ref(!1),k=e.ref(!1),m=e.ref(!1);let B=null;function T(){x.value=!x.value}async function O(f){if(!(o.loading&&o.preventCloseWhileLoading)&&!d.value){if(o.beforeClose){d.value=!0;try{if(await o.beforeClose(f)===!1){d.value=!1;return}}catch{d.value=!1;return}}d.value=!1,c("update:open",!1),c("close",{reason:f})}}function P(f){f.target===f.currentTarget&&o.closeOnOverlayClick&&o.role!=="alertdialog"&&O("overlay")}function D(f){if(f.key==="Escape"&&o.closeOnEscape&&o.role!=="alertdialog"){const C=he[he.length-1];if(C&&C.id!==r)return;f.stopPropagation(),O("escape");return}if(f.key==="Tab"&&b.value){const C=b.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(C.length===0)return;const X=C[0],ee=C[C.length-1];f.shiftKey?document.activeElement===X&&(f.preventDefault(),ee.focus()):document.activeElement===ee&&(f.preventDefault(),X.focus())}}let A=!1;function w(){if(o.preventBodyScroll&&!A){if(A=!0,Be===0){Ae=document.body.style.overflow,Pe=document.body.style.paddingRight;const f=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",f>0&&(document.body.style.paddingRight=`${f}px`)}Be++}}function S(){A&&(A=!1,Be--,Be<=0&&(Be=0,document.body.style.overflow=Ae,document.body.style.paddingRight=Pe))}async function Z(){var f;if(await e.nextTick(),(f=o.initialFocusRef)!=null&&f.value){o.initialFocusRef.value.focus();return}if(b.value){const C=b.value.querySelector('button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href]');C?C.focus():b.value.focus()}}function $(){var f;(f=o.returnFocusRef)!=null&&f.value?o.returnFocusRef.value.focus():B&&B.focus()}function J(){if(!s.value)return;const f=s.value,C=1;k.value=f.scrollTop>C,m.value=f.scrollTop+f.clientHeight<f.scrollHeight-C}async function xe(){await e.nextTick(),s.value&&o.scrollBehavior==="inside"&&(J(),s.value.addEventListener("scroll",J,{passive:!0}))}function Q(){s.value&&s.value.removeEventListener("scroll",J),k.value=!1,m.value=!1}function p(){he.push({id:r,close:()=>O("escape")}),g.value=he.length-1}function N(){const f=he.findIndex(C=>C.id===r);f!==-1&&he.splice(f,1),g.value=0}e.watch(()=>o.open,f=>{f?(B=document.activeElement,p(),w(),Z(),xe()):(x.value=!1,N(),S(),$(),Q())}),e.onBeforeUnmount(()=>{o.open&&(N(),S(),Q())});const L=e.computed(()=>1e3+g.value*10),_=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":""]),R=e.computed(()=>x.value?"full":o.size),j=e.computed(()=>["orb-dialog",`orb-dialog--${R.value}`,o.scrollBehavior==="inside"?"orb-dialog--scroll-inside":"",o.loading?"orb-dialog--loading":"",o.responsive?"":"orb-dialog--no-responsive"]),Y=e.computed(()=>["orb-dialog__header",k.value?"orb-dialog__header--shadow":""]),Ne=e.computed(()=>["orb-dialog__footer",m.value?"orb-dialog__footer--shadow":""]),Ve=e.computed(()=>o.motionPreset==="none"?"":`orb-dialog--${o.motionPreset}`);return(f,C)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:Ve.value},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(_.value),style:e.normalizeStyle({zIndex:L.value}),onMousedown:e.withModifiers(P,["self"])},[e.createElementVNode("div",{ref_key:"dialogRef",ref:b,class:e.normalizeClass(j.value),role:t.role,"aria-modal":"true","aria-label":t.ariaLabel&&!t.title?t.ariaLabel:void 0,"aria-labelledby":t.title?v:void 0,"aria-describedby":t.description?u:void 0,"aria-busy":t.loading||void 0,tabindex:"-1",onKeydown:D},[f.$slots.hero?(e.openBlock(),e.createElementBlock("div",va,[e.renderSlot(f.$slots,"hero"),e.createElementVNode("div",ga,[t.allowFullscreen?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"orb-dialog__fullscreen orb-dialog__fullscreen--over-hero","aria-label":x.value?"Restaurar tamanho":"Tela cheia",onClick:T},[x.value?(e.openBlock(),e.createBlock(e.unref(He),{key:1,size:18,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(je),{key:0,size:18,"aria-hidden":"true"}))],8,pa)):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:C[0]||(C[0]=X=>O("close-button"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,class:"orb-dialog__spinner",size:20,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(ge),{key:1,size:20,"aria-hidden":"true"}))],8,ya)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),f.$slots.header||t.title?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(Y.value)},[e.renderSlot(f.$slots,"header",{},()=>[e.createElementVNode("div",xa,[t.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:v,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)])]),f.$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":x.value?"Restaurar tamanho":"Tela cheia",onClick:T},[x.value?(e.openBlock(),e.createBlock(e.unref(He),{key:1,size:18,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(je),{key:0,size:18,"aria-hidden":"true"}))],8,Ba)):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:C[1]||(C[1]=X=>O("close-button"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,class:"orb-dialog__spinner",size:20,"aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(ge),{key:1,size:20,"aria-hidden":"true"}))],8,Ca)):e.createCommentVNode("",!0)],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:s,class:"orb-dialog__body"},[e.renderSlot(f.$slots,"default")],512),f.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(Ne.value)},[e.renderSlot(f.$slots,"footer",{loading:t.loading})],2)):e.createCommentVNode("",!0)],42,fa)],38)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),U=e.reactive([]);function wa(){function t(r){return new Promise(b=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:r.destructive?"destructive":"confirmation",open:!0,options:r,resolve:b};U.push(s)})}function i(r){return new Promise(b=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"alert",variant:"info",open:!0,options:{...r,confirmText:r.confirmText??"OK"},resolve:b};U.push(s)})}function o(r){return new Promise(b=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:"warning",open:!0,options:r,resolve:b};U.push(s)})}function c(r){return new Promise(b=>{const s={id:`dlg-${Math.random().toString(36).slice(2,8)}`,type:"confirm",variant:"destructive",open:!0,options:r,resolve:b};U.push(s)})}return{confirm:t,alert:i,warning:o,destructive:c}}function Va(){return U}function qe(t,i){const o=U.findIndex(c=>c.id===t);o!==-1&&(U[o].resolve(i),U[o].open=!1,setTimeout(()=>{const c=U.findIndex(r=>r.id===t);c!==-1&&U.splice(c,1)},300))}const Ea={key:0,class:"orb-alert-dialog orb-alert-dialog--centered"},Na={class:"orb-alert-dialog__title"},$a={key:1,class:"orb-alert-dialog__description"},_a={key:2,class:"orb-alert-dialog__body"},Sa={class:"orb-alert-dialog__actions orb-alert-dialog__actions--centered"},za=["disabled"],Ta={class:"orb-alert-dialog orb-alert-dialog--horizontal"},Da={class:"orb-alert-dialog__text"},La={class:"orb-alert-dialog__title"},Oa={class:"orb-alert-dialog__desc-wrap"},Ma={key:0,class:"orb-alert-dialog__description"},Fa={key:1,class:"orb-alert-dialog__body"},Wa={key:2,class:"orb-alert-dialog__confirmation"},Ia={class:"orb-alert-dialog__confirmation-label"},Ra=["placeholder"],ja={key:0,class:"orb-alert-dialog__actions orb-alert-dialog__actions--inline"},Ha=["disabled"],Aa=["disabled"],Pa=["disabled"],qa={class:"orb-alert-dialog__actions orb-alert-dialog__actions--footer"},Ga=["disabled"],Ka=["disabled"],Ua=["disabled"],Za={key:0,class:"orb-alert-dialog__spinner",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},De=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:i}){const o=t,c=i,r=e.ref(null),b=e.ref(null),s=e.ref(""),v=e.computed(()=>o.variant==="info"),u=e.computed(()=>o.confirmationText?s.value===o.confirmationText:!0),g=e.computed(()=>v.value?b:r),d=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"}}),x=e.computed(()=>o.cancelLabel??"Cancelar"),k=e.computed(()=>{switch(o.variant){case"info":return"info";case"warning":return"warning";case"confirmation":case"destructive":default:return"error"}}),m=e.computed(()=>`orb-alert-dialog__icon orb-alert-dialog__icon--${o.variant}`),B=e.computed(()=>{if(v.value)return"orb-alert-dialog__btn orb-alert-dialog__btn--confirm orb-alert-dialog__btn--primary orb-alert-dialog__btn--wide";const w="orb-alert-dialog__btn orb-alert-dialog__btn--confirm";return o.variant==="destructive"?`${w} orb-alert-dialog__btn--destructive`:`${w} orb-alert-dialog__btn--primary`}),T=e.computed(()=>!v.value);async function O(){o.loading||!u.value||(c("confirm"),await e.nextTick(),o.loading||c("update:open",!1))}function P(){o.loading||(c("cancel"),c("update:open",!1))}function D(){o.loading||c("secondary")}function A(w){w||(s.value="",c("cancel")),c("update:open",w)}return(w,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":g.value,"onUpdate:open":A},e.createSlots({default:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("div",Ea,[t.showIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(m.value)},[e.createVNode(ye,{status:k.value,size:"md"},null,8,["status"])],2)):e.createCommentVNode("",!0),e.createElementVNode("h3",Na,e.toDisplayString(t.title),1),t.description?(e.openBlock(),e.createElementBlock("p",$a,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),w.$slots.default?(e.openBlock(),e.createElementBlock("div",_a,[e.renderSlot(w.$slots,"default")])):e.createCommentVNode("",!0),e.createElementVNode("div",Sa,[e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:b,type:"button",class:e.normalizeClass(B.value),disabled:t.loading,onClick:O},[t.loading?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,class:"orb-alert-dialog__spinner",size:16,"aria-hidden":"true"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(d.value),1)],10,za)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Ta,[t.showIcon?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(m.value)},[e.createVNode(ye,{status:k.value,size:"md"},null,8,["status"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Da,[e.createElementVNode("h3",La,e.toDisplayString(t.title),1),e.createElementVNode("div",Oa,[t.description?(e.openBlock(),e.createElementBlock("p",Ma,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),w.$slots.default?(e.openBlock(),e.createElementBlock("div",Fa,[e.renderSlot(w.$slots,"default")])):e.createCommentVNode("",!0),t.confirmationText?(e.openBlock(),e.createElementBlock("div",Wa,[e.createElementVNode("p",Ia,[S[1]||(S[1]=e.createTextVNode(" Digite ",-1)),e.createElementVNode("strong",null,e.toDisplayString(t.confirmationText),1),S[2]||(S[2]=e.createTextVNode(" para confirmar: ",-1))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":S[0]||(S[0]=Z=>s.value=Z),type:"text",class:"orb-alert-dialog__confirmation-input",placeholder:t.confirmationText,autocomplete:"off",spellcheck:"false"},null,8,Ra),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0)])])]),t.inlineActions?(e.openBlock(),e.createElementBlock("div",ja,[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:D},e.toDisplayString(t.secondaryLabel),9,Ha)):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("button",{key:1,ref_key:"cancelBtnRef",ref:r,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--cancel",disabled:t.loading,onClick:P},e.toDisplayString(x.value),9,Aa)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:b,type:"button",class:e.normalizeClass(B.value),disabled:t.loading||!u.value,onClick:O},[t.loading?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,class:"orb-alert-dialog__spinner",size:16,"aria-hidden":"true"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(d.value),1)],10,Pa)])):e.createCommentVNode("",!0)],64))]),_:2},[!v.value&&!t.inlineActions?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",qa,[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:D},e.toDisplayString(t.secondaryLabel),9,Ga)):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("button",{key:1,ref_key:"cancelBtnRef",ref:r,type:"button",class:"orb-alert-dialog__btn orb-alert-dialog__btn--cancel",disabled:t.loading,onClick:P},e.toDisplayString(x.value),9,Ka)):e.createCommentVNode("",!0),e.createElementVNode("button",{ref_key:"confirmBtnRef",ref:b,type:"button",class:e.normalizeClass(B.value),disabled:t.loading||!u.value,onClick:O},[t.loading?(e.openBlock(),e.createElementBlock("svg",Za,[...S[3]||(S[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(d.value),1)],10,Ua)])]),key:"0"}:void 0]),1032,["open","size","close-on-overlay-click","close-on-escape","loading","aria-label","initial-focus-ref"]))}}),st=e.defineComponent({__name:"ODialogProvider",setup(t){const i=Va();function o(s){qe(s,!0)}function c(s){qe(s,!1)}function r(s){return s.options.confirmText??(s.type==="alert"?"OK":s.variant==="destructive"?"Excluir":s.variant==="warning"?"Continuar":"Confirmar")}function b(s){return s.options.cancelText??"Cancelar"}return(s,v)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),u=>(e.openBlock(),e.createBlock(De,{key:u.id,open:u.open,title:u.options.title,description:u.options.description,variant:u.variant,"confirm-label":r(u),"cancel-label":b(u),size:u.options.size??"sm",onConfirm:g=>o(u.id),onCancel:g=>c(u.id),"onUpdate:open":g=>{g||c(u.id)}},null,8,["open","title","description","variant","confirm-label","cancel-label","size","onConfirm","onCancel","onUpdate:open"]))),128))}}),Ge="orb-theme",ke=e.ref("system"),Ee=e.ref("light");function dt(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _e(t){typeof document>"u"||(document.documentElement.setAttribute("data-theme",t),Ee.value=t)}function Ke(t){return t==="system"?dt():t}function Qa(){e.onMounted(()=>{const o=localStorage.getItem(Ge);o&&(ke.value=o),_e(Ke(ke.value));const c=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{ke.value==="system"&&_e(dt())};c.addEventListener("change",r)}),e.watchEffect(()=>{_e(Ke(ke.value))});function t(o){ke.value=o,localStorage.setItem(Ge,o)}function i(){const o=Ee.value==="light"?"dark":"light";t(o)}return{theme:e.computed(()=>ke.value),resolvedTheme:e.computed(()=>Ee.value),isDark:e.computed(()=>Ee.value==="dark"),setTheme:t,toggleTheme:i}}var E={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)"}},ut={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"},V={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)"},le={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)"},q={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)"},ae={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)"},Ya={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)"},K={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)"},H={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)"},ne={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)"},re={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)"},G={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)"},ie={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)"},ce={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)"},Ja={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)"},se={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)"},Xa={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)"},de={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)"},en={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)"},tn={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)"},on={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)"},ln={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)"},an={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)"},nn={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)"},rn={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)"},cn={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)"},sn={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)"},dn={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)"},un={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)"},bn={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)"},mn={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)"},hn={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)"},kn={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)"},M={display:"'Inter Display', 'Inter', system-ui, -apple-system, sans-serif"},fn={display:"'salt' on"},F={regular:"400",medium:"500","semi-bold":"600",bold:"700"},W={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"},vn={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"},gn={0:"0px",100:"4px",200:"8px",300:"12px",pill:"9999px"},pn={0:"0px",100:"1px",150:"1.5px",200:"2px",300:"3px"},fe={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)"},ve={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)"},yn={xs:"375px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},xn={hide:"-1",base:"0",dropdown:"1000",sticky:"1100",fixed:"1200",overlay:"1300",modal:"1400",popover:"1500",tooltip:"1600",toast:"1700"},Bn={fastest:"50ms",fast:"100ms",normal:"200ms",slow:"300ms",slower:"400ms",slowest:"500ms"},Cn={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)"},wn={h1:{fontFamily:M.display,fontWeight:F.bold,fontSize:W[1200],lineHeight:I[700],letterSpacing:"0px"},h2:{fontFamily:M.display,fontWeight:F.bold,fontSize:W[1e3],lineHeight:I[600],letterSpacing:"0px"},h3:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[800],lineHeight:I[500],letterSpacing:"0px"},h4:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[600],lineHeight:I[400],letterSpacing:"0px"},h5:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[500],lineHeight:I[300],letterSpacing:"0px"},h6:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[400],lineHeight:I[200],letterSpacing:"0px"}},Vn={large:{fontFamily:M.display,fontWeight:F.regular,fontSize:W[400],lineHeight:I[300],letterSpacing:"0px"},medium:{fontFamily:M.display,fontWeight:F.regular,fontSize:W[300],lineHeight:I[300],letterSpacing:"0px"},small:{fontFamily:M.display,fontWeight:F.regular,fontSize:W[200],lineHeight:I[200],letterSpacing:"0px"},"extra-small":{fontFamily:M.display,fontWeight:F.regular,fontSize:W[100],lineHeight:I[100],letterSpacing:"0px"}},En={large:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[200],lineHeight:I[200],letterSpacing:"0px"},small:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[100],lineHeight:I[100],letterSpacing:"0px"}},Nn={large:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[300],lineHeight:I[300],letterSpacing:"0px"},medium:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[200],lineHeight:I[300],letterSpacing:"0px"},small:{fontFamily:M.display,fontWeight:F["semi-bold"],fontSize:W[100],lineHeight:I[100],letterSpacing:"0px"}},$n={bg:"var(--orb-base-0)","bg-subtle":"var(--orb-base-50)","bg-muted":"var(--orb-base-100)","bg-emphasis":"var(--orb-base-200)","bg-inverse":"var(--orb-base-1000)",fg:"var(--orb-base-950)","fg-subtle":"var(--orb-base-800)","fg-muted":"var(--orb-base-500)","fg-on-emphasis":"var(--orb-base-0)","fg-inverse":"var(--orb-base-0)","fg-disabled":E.black[250],border:"var(--orb-base-200)","border-subtle":"var(--orb-base-100)","border-emphasis":"var(--orb-base-400)","border-disabled":E.black[100],ring:"oklch(73% 0.08 250)","ring-offset":"var(--orb-base-0)",surface:"var(--orb-base-0)","surface-raised":"var(--orb-base-50)","surface-overlay":"var(--orb-base-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":"var(--orb-base-0)","primary-border":"var(--orb-branding-600)",secondary:"var(--orb-base-0)","secondary-hover":"var(--orb-base-300)","secondary-active":"var(--orb-base-400)","secondary-focus":"var(--orb-base-200)","secondary-fg":"var(--orb-base-900)","secondary-border":"var(--orb-base-300)",success:H[600],"success-hover":H[700],"success-subtle":H[50],"success-fg":"var(--orb-base-0)","success-border":H[300],"success-text":H[700],warning:q[500],"warning-hover":q[600],"warning-subtle":q[50],"warning-fg":"var(--orb-base-1000)","warning-border":q[300],"warning-text":q[700],error:V[600],"error-hover":V[700],"error-subtle":V[50],"error-fg":"var(--orb-base-0)","error-border":V[300],"error-text":V[700],info:G[600],"info-hover":G[700],"info-subtle":G[50],"info-fg":"var(--orb-base-0)","info-border":G[300],"info-text":G[700],"input-bg":"var(--orb-base-50)","input-border":"var(--orb-base-200)","input-border-hover":"var(--orb-base-300)","input-border-focus":"var(--orb-base-200)","input-placeholder":"var(--orb-base-400)","input-disabled-bg":E.black[100],"input-disabled-fg":E.black[250],"bg-medium-pink":de[600],"bg-light-pink":de[50],"text-medium-pink":de[600],"bg-medium-gray":"var(--orb-base-700)","bg-light-gray":"var(--orb-base-100)","text-medium-gray":"var(--orb-base-600)","bg-medium-green":K[600],"bg-light-green":K[50],"text-medium-green":K[700],"bg-medium-red":V[600],"bg-light-red":V[50],"text-medium-red":V[600],"bg-medium-yellow":ae[500],"bg-light-yellow":ae[50],"text-medium-yellow":ae[700],"bg-medium-blue":ie[600],"bg-light-blue":ie[50],"text-medium-blue":ie[600],"bg-medium-purple":se[600],"bg-light-purple":se[50],"text-medium-purple":se[600],"bg-medium-indigo":ce[600],"bg-light-indigo":ce[50],"text-medium-indigo":ce[600],"bg-medium-orange":le[600],"bg-light-orange":le[50],"text-medium-orange":le[700],"bg-medium-teal":ne[600],"bg-light-teal":ne[50],"text-medium-teal":ne[700],"bg-medium-cyan":re[600],"bg-light-cyan":re[50],"text-medium-cyan":re[700],"tooltip-bg":"var(--orb-base-900)","tooltip-fg":"var(--orb-base-0)","icon-default":"var(--orb-base-600)","icon-disabled":E.black[250],"icon-hyperlink":"var(--orb-branding-600)","icon-success":H[600],"text-hyperlink":"var(--orb-branding-600)","text-disabled":E.black[250],"text-invalid":V[600],"border-field":"var(--orb-base-200)","border-field-action":"var(--orb-base-700)","border-invalid":V[600],"border-neutral":"var(--orb-base-0)","bg-field":"var(--orb-base-0)","bg-field-disabled":E.black[100],"bg-layer2":"var(--orb-base-50)","bg-disabled":E.black[100],"shadow-sm":fe[100],"shadow-md":fe[200],"shadow-lg":fe[300],"shadow-overlay":fe[200],"overlay-bg":E.white[200],"dialog-bg":"var(--orb-base-0)","dialog-border":"var(--orb-base-200)","dialog-shadow":fe[300],"dialog-scrim":E.black[400],"dialog-outline":"transparent","dialog-header-border":"transparent","dialog-footer-border":"transparent","dialog-footer-bg":"var(--orb-base-50)","text-support":"var(--orb-base-500)","frame-bg-layer3":"var(--orb-base-100)"},_n={bg:"var(--orb-base-900)","bg-subtle":"var(--orb-base-800)","bg-muted":"var(--orb-base-700)","bg-emphasis":"var(--orb-base-600)","bg-inverse":"var(--orb-base-50)",fg:"var(--orb-base-0)","fg-subtle":"var(--orb-base-300)","fg-muted":"var(--orb-base-400)","fg-on-emphasis":"var(--orb-base-0)","fg-inverse":"var(--orb-base-950)","fg-disabled":E.white[250],border:"var(--orb-base-700)","border-subtle":"var(--orb-base-800)","border-emphasis":"var(--orb-base-600)","border-disabled":E.white[100],ring:"oklch(55% 0.06 250)","ring-offset":"var(--orb-base-900)",surface:"var(--orb-base-800)","surface-raised":"var(--orb-base-700)","surface-overlay":"var(--orb-base-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":"var(--orb-base-0)","primary-border":"var(--orb-branding-600)",secondary:"color-mix(in oklch, var(--orb-base-400) 10%, transparent)","secondary-hover":"color-mix(in oklch, var(--orb-base-300) 10%, transparent)","secondary-active":"color-mix(in oklch, var(--orb-base-100) 25%, transparent)","secondary-focus":"color-mix(in oklch, var(--orb-base-100) 10%, transparent)","secondary-fg":"var(--orb-base-0)","secondary-border":"transparent",success:H[600],"success-hover":H[500],"success-subtle":H[950],"success-fg":"var(--orb-base-0)","success-border":H[800],"success-text":H[400],warning:q[500],"warning-hover":q[400],"warning-subtle":q[950],"warning-fg":"var(--orb-base-1000)","warning-border":q[800],"warning-text":q[400],error:V[500],"error-hover":V[400],"error-subtle":V[950],"error-fg":"var(--orb-base-0)","error-border":V[800],"error-text":V[400],info:G[600],"info-hover":G[500],"info-subtle":G[950],"info-fg":"var(--orb-base-0)","info-border":G[800],"info-text":G[400],"input-bg":"var(--orb-base-800)","input-border":"var(--orb-base-600)","input-border-hover":"var(--orb-base-500)","input-border-focus":"var(--orb-base-600)","input-placeholder":"var(--orb-base-400)","input-disabled-bg":E.white[100],"input-disabled-fg":E.white[250],"bg-medium-pink":de[600],"bg-light-pink":de[950],"text-medium-pink":de[400],"bg-medium-gray":"var(--orb-base-400)","bg-light-gray":"var(--orb-base-700)","text-medium-gray":"var(--orb-base-300)","bg-medium-green":K[600],"bg-light-green":K[950],"text-medium-green":K[400],"bg-medium-red":V[500],"bg-light-red":V[950],"text-medium-red":V[400],"bg-medium-yellow":ae[500],"bg-light-yellow":ae[950],"text-medium-yellow":ae[400],"bg-medium-blue":ie[500],"bg-light-blue":ie[950],"text-medium-blue":ie[400],"bg-medium-purple":se[500],"bg-light-purple":se[950],"text-medium-purple":se[400],"bg-medium-indigo":ce[500],"bg-light-indigo":ce[950],"text-medium-indigo":ce[400],"bg-medium-orange":le[500],"bg-light-orange":le[950],"text-medium-orange":le[400],"bg-medium-teal":ne[500],"bg-light-teal":ne[950],"text-medium-teal":ne[400],"bg-medium-cyan":re[500],"bg-light-cyan":re[950],"text-medium-cyan":re[400],"tooltip-bg":"var(--orb-base-700)","tooltip-fg":"var(--orb-base-0)","icon-default":"var(--orb-base-300)","icon-disabled":E.white[250],"icon-hyperlink":"var(--orb-branding-600)","icon-success":H[500],"text-hyperlink":"var(--orb-branding-600)","text-disabled":E.white[250],"text-invalid":V[400],"border-field":"var(--orb-base-600)","border-field-action":"var(--orb-base-300)","border-invalid":V[500],"border-neutral":"var(--orb-base-0)","bg-field":"var(--orb-base-800)","bg-field-disabled":E.white[100],"bg-layer2":"var(--orb-base-800)","bg-disabled":E.white[100],"shadow-sm":ve[100],"shadow-md":ve[200],"shadow-lg":ve[300],"shadow-overlay":ve[200],"overlay-bg":E.white[120],"dialog-bg":"var(--orb-base-800)","dialog-border":"var(--orb-base-600)","dialog-shadow":ve[300],"dialog-scrim":E.black[700],"dialog-outline":E.white[100],"dialog-header-border":"transparent","dialog-footer-border":"transparent","dialog-footer-bg":"color-mix(in oklch, var(--orb-base-700) 25%, transparent)","text-support":"var(--orb-base-400)","frame-bg-layer3":"var(--orb-base-600)"},Sn={"static-success-default":K[600],"static-success-hover":K[700],"static-success-active":K[800],"static-success-focus":K[600],"static-invalid-default":V[600],"static-invalid-hover":V[700],"static-invalid-active":V[800],"static-invalid-focus":V[600],"static-overlay-bg":E.black[400],"static-overlay-bg-hover":E.black[550],"static-overlay-fg":ut[0]},zn={branding:un},Tn={branding:bn},Dn={branding:mn,base:"gray"},Ln={branding:hn},On={branding:kn};function Mn(t){return t}function Se(t){return Object.entries(t).map(([i,o])=>` --orb-${i}: ${o};`).join(`
|
|
2
|
-
`)}function
|
|
3
|
-
`)}function Wn(t){var r,b;const i=[];i.push(`/**
|
|
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(`/**
|
|
4
3
|
* Orbit Design System - Custom Theme Overrides
|
|
5
4
|
* Auto-generated from orbit.config.ts
|
|
6
5
|
*
|
|
7
6
|
* Import AFTER variables.css:
|
|
8
7
|
* import '@neowit/orbit-tokens/css'
|
|
9
8
|
* import './orbit-overrides.css'
|
|
10
|
-
*/`),t.
|
|
11
|
-
${Fn(t.base)}
|
|
12
|
-
}`);const o=(r=t.theme)==null?void 0:r.light,c=(b=t.theme)==null?void 0:b.dark;return o&&Object.keys(o).length>0&&i.push(`:root,
|
|
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,
|
|
13
10
|
[data-theme="light"] {
|
|
14
|
-
${
|
|
15
|
-
}`),
|
|
16
|
-
${
|
|
17
|
-
}`),
|
|
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) {
|
|
18
15
|
:root:not([data-theme="light"]):not([data-theme="dark"]) {
|
|
19
|
-
${
|
|
16
|
+
${Le(r)}
|
|
20
17
|
}
|
|
21
|
-
}`)),
|
|
18
|
+
}`)),l.join(`
|
|
22
19
|
|
|
23
20
|
`)+`
|
|
24
|
-
`}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;
|