@opens/widget-ui 1.0.5 → 1.0.9
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/app-screen-page.vue.d.ts.map +1 -0
- package/dist/components/pages/app-service-page.vue.d.ts +5 -1
- package/dist/components/typography/types.d.ts +1 -0
- package/dist/components/typography/use-typography-classes.d.ts +2 -1
- package/dist/components/widget/app-widget-anchor.vue.d.ts +1 -1
- package/dist/components/widget/app-widget-view.vue.d.ts +2 -0
- package/dist/components/widget/app-widget.vue.d.ts +4 -2
- package/dist/composables/use-app-widget.d.ts +300 -1
- package/dist/composables/use-hex-color.d.ts +8 -0
- package/dist/composables/use-service-chat-behavior.d.ts +17 -0
- package/dist/composables/use-service-page.d.ts +20 -0
- package/dist/composables/use-service-voice-behavior.d.ts +1 -0
- package/dist/composables/use-widget-appearance.d.ts +1663 -0
- package/dist/index.d.ts +6 -1
- package/dist/main.d.ts +5 -0
- package/dist/typography/app-text.vue.d.ts +1 -1
- package/dist/widget/app-widget-view.vue.d.ts +1 -1
- package/dist/widget/app-widget.vue.d.ts +1 -1
- package/dist/yunique_widget_ui.cjs.js +1 -1
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +1787 -1832
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/pages/app-screen-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-screen-page.vue.d.ts → app-screen-page.vue.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");function bo(){return{maskPhone:i=>{if(!i)return"";let a=i.replace(/\D/g,"");return a.length<=4?a:(a.startsWith("0")&&!a.startsWith("0800")&&a.length>3&&(a=a.replace(/^0+/,"")),a.startsWith("0800")?a.length>11?a:a.replace(/(0800)(\d{0,3})(\d{0,4})/,(l,s,u,c)=>[s,u,c].filter(Boolean).join(" ")):a.length>11?a:a.length<=8?a.replace(/(\d{4})(\d{0,4})/,"$1-$2").replace(/-$/,""):a.length===9?a.replace(/(\d{5})(\d{0,4})/,"$1-$2"):a.length===10?a.replace(/(\d{2})(\d{0,4})(\d{0,4})/,"($1) $2-$3").replace(/-$/,""):a.replace(/(\d{2})(\d{0,5})(\d{0,4})/,"($1) $2-$3").replace(/-$/,""))},maskCnpj:i=>{const a=i.toUpperCase().replace(/[^0-9A-Z]/g,"");let l="";for(const s of a){if(l.length>=14)break;(l.length<12||/\d/.test(s))&&(l+=s)}return l.replace(/^([0-9A-Z]{2})([0-9A-Z])/,"$1.$2").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})([0-9A-Z])/,"$1.$2.$3").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})([0-9A-Z])/,"$1.$2.$3/$4").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})\/([0-9A-Z]{4})(\d)/,"$1.$2.$3/$4-$5")},maskCep:i=>i.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d)/,"$1-$2"),maskCpf:i=>i.replace(/\D/g,"").slice(0,11).replace(/^(\d{3})(\d)/,"$1.$2").replace(/^(\d{3})\.(\d{3})(\d)/,"$1.$2.$3").replace(/^(\d{3})\.(\d{3})\.(\d{3})(\d)/,"$1.$2.$3-$4")}}const fe=t.ref([]),pt=t.ref(void 0);function Ce(){return{currentRuleId:pt,history:fe,setCurrentRuleId:a=>{pt.value=a},clearHistory:()=>{fe.value=[]},pushHistory:a=>{fe.value.push(a)},setHistory:a=>{fe.value=[...a]},popHistory:()=>fe.value.pop()}}const ce=e=>e==="name",ft=e=>!!e?.trim(),ko=e=>{const o=e.filter(r=>ce(r.name)),n=e.filter(r=>!ce(r.name));return[...o,...n]};function Co(e,o){const{maskPhone:n,maskCpf:r}=bo(),{history:i}=Ce(),a=t.ref(0),l=t.ref("forward"),s=t.ref(null),u=t.computed(()=>{const k=t.toValue(e),T=k.settings?.form&&k.settings.form.fields||[];return ko(T)}),c=t.reactive(Object.fromEntries(u.value.map(k=>[k.name,""]))),d=t.computed(()=>u.value[a.value]),p=t.computed(()=>a.value>=u.value.length-1),h=t.computed(()=>i.value.length>0||a.value>0),m=t.computed(()=>l.value==="back"?"step-back":"step-forward");t.watch(a,async()=>{await t.nextTick();const k=s.value;if(!k)return;(k.querySelector(".is-active input")??k.querySelector("input"))?.focus({preventScroll:!0})});const y=t.computed(()=>u.value.every(k=>!k.required||ft(c[k.name]))),x=k=>{const T=u.value[k];return T?T.required&&!ft(c[T.name])?!1:k>=u.value.length-1?y.value:!0:y.value},w=t.computed(()=>x(a.value)),g=t.computed(()=>{const k=u.value.find(T=>ce(T.name));return k?c[k.name]?.trim().split(/\s+/)[0]??"":""}),f=k=>{const T=u.value[k],P=g.value,D=u.value.length?`Passo ${k+1} de ${u.value.length}`:"",z=t.toValue(e),O=k>=u.value.length-1;if(!T)return{eyebrow:D,title:z.settings?.body?.title??"",subtitle:z.settings?.body?.subtitle??""};if(ce(T.name))return{eyebrow:D,title:"Como podemos te chamar?",subtitle:"Primeiro, nos diga o seu nome."};const I=O?P?`Quase lá, ${P}.`:"Quase lá.":P?`Olá, ${P}.`:"Olá.",U=T.required?`Informe seu ${T.alias} para continuar.`:`Gostaria de deixar seu ${T.alias}?`;return{eyebrow:D,title:I,subtitle:U}},v=t.computed(()=>f(a.value)),C=k=>k==="email"?"email":k==="phone"?"tel":"text",_=k=>k==="email"?"email":k==="phone"?"call":ce(k)?"person":k==="order"?"receipt":"badge",$=k=>k.required?`${k.alias} *`:k.alias,b=k=>ce(k.name)?"Seu nome":k.name==="phone"?"Seu telefone":k.name==="email"?"Seu e-mail":k.name==="cpf"?"000.000.000-00":k.alias,B=k=>{if(k==="phone")return n;if(k==="cpf")return r},N=()=>{y.value&&o("submit",{...c})};return{stepTransition:m,currentField:d,canContinue:w,currentStep:a,isLastStep:p,stepIntro:v,fieldHost:s,showBack:h,fields:u,form:c,continueStep:()=>{if(w.value){if(p.value||u.value.length===0)return N();l.value="forward",a.value+=1}},canContinueAt:x,introFor:f,fieldLabel:$,fieldPlaceholder:b,fieldType:C,fieldMask:B,fieldIcon:_,goBack:()=>{if(a.value>0){l.value="back",a.value-=1;return}o("back")}}}function qt(e){const o=t.computed(()=>e.small?"!yu-h-8 !yu-min-h-[2rem]":"!yu-h-12 !yu-min-h-[3rem]"),n=t.computed(()=>"!yu-text-xs"),r=t.computed(()=>e.fluid?"!yu-w-full":"yu-w-fit");return{height:o,textSize:n,width:r}}function $o(e,o){const n=t.computed(()=>({"!yu-font-plus":o.plus,"!yu-font-inter":o.inter,"!yu-font-titillium":o.titillium})),r=t.computed(()=>({"!yu-text-white":o.white,"!yu-text-primary":o.primary,"!yu-text-secondary":o.secondary,"!yu-text-base":o.neutral,"!yu-text-neutral":o.gray})),i=t.computed(()=>({"!yu-font-thin":o.thin,"!yu-font-extralight":o.extralight,"!yu-font-light":o.light,"!yu-font-normal":o.normal,"!yu-font-medium":o.medium,"!yu-font-semibold":o.semibold,"!yu-font-bold":o.bold,"!yu-font-extrabold":o.extrabold,"!yu-font-black":o.black})),a=t.computed(()=>({...{title:{"!yu-text-xl":o.small,"!yu-text-2xl":o.base,"!yu-text-3xl":o.large,"!yu-text-4xl":o.extraLarge},subtitle:{"!yu-text-sm":o.small,"!yu-text-md":o.base,"!yu-text-xl":o.large},text:{"!yu-text-xxs":o.extraSmall,"!yu-text-xs":o.small,"!yu-text-sm":o.base,"!yu-text-lg":o.large,"!yu-text-2xl":o.extraLarge}}[e]}));return{fontClass:n,colorClass:r,weightClass:i,sizeClass:a}}const Bo=t.defineComponent({__name:"app-text",props:{extraSmall:{type:Boolean},inter:{type:Boolean},plus:{type:Boolean},titillium:{type:Boolean},small:{type:Boolean},base:{type:Boolean},large:{type:Boolean},extraLarge:{type:Boolean},thin:{type:Boolean},extralight:{type:Boolean},light:{type:Boolean},normal:{type:Boolean},medium:{type:Boolean},semibold:{type:Boolean},bold:{type:Boolean},extrabold:{type:Boolean},black:{type:Boolean},primary:{type:Boolean},secondary:{type:Boolean},gray:{type:Boolean},neutral:{type:Boolean},white:{type:Boolean}},setup(e){const o=e,{fontClass:n,colorClass:r,weightClass:i,sizeClass:a}=$o("text",o);return(l,s)=>(t.openBlock(),t.createElementBlock("p",{class:t.normalizeClass(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900",[t.unref(n),t.unref(r),t.unref(i),t.unref(a)]])},[t.renderSlot(l.$slots,"default",{},void 0,!0)],2))}}),Pe=(e,o)=>{const n=e.__vccOpts||e;for(const[r,i]of o)n[r]=i;return n},E=Pe(Bo,[["__scopeId","data-v-65153daa"]]),J=t.defineComponent({__name:"app-group",props:{fit:{type:Boolean},full:{type:Boolean},row:{type:Boolean},col:{type:Boolean},gapNone:{type:Boolean},gapXs:{type:Boolean},gapBase:{type:Boolean},gapSm:{type:Boolean},gapMd:{type:Boolean},gapLg:{type:Boolean},wrap:{type:Boolean},paddingNone:{type:Boolean},paddingBase:{type:Boolean},paddingXs:{type:Boolean},paddingSm:{type:Boolean},paddingMd:{type:Boolean},paddingLg:{type:Boolean},center:{type:Boolean},justifyEnd:{type:Boolean},centerBetween:{type:Boolean},border:{type:Boolean},borderPrimary:{type:Boolean},rounded:{type:Boolean},roundedTop:{type:Boolean},roundedBottom:{type:Boolean},bgPrimary:{type:Boolean},bgWhite:{type:Boolean},divisor:{type:Boolean}},setup(e){const o=e,n=t.computed(()=>o.fit?"yu-w-fit yu-h-fit":o.full?"yu-w-full yu-h-full":""),r=t.computed(()=>o.justifyEnd?"yu-items-end yu-justify-end":o.center?"yu-items-center yu-justify-center":o.centerBetween?"yu-items-center yu-justify-between":""),i=t.computed(()=>o.row?"yu-flex-row":o.col?"yu-flex-col":"yu-flex-row"),a=t.computed(()=>o.gapBase?"yu-gap-4":o.gapXs?"yu-gap-1":o.gapSm?"yu-gap-2":o.gapMd?"yu-gap-6":o.gapLg?"yu-gap-8":o.gapNone?"yu-gap-0":"yu-gap-4"),l=t.computed(()=>o.wrap?"yu-flex-wrap":""),s=t.computed(()=>o.paddingXs?"yu-p-1":o.paddingSm?"yu-p-2":o.paddingBase?"yu-p-4":o.paddingMd?"yu-p-6":o.paddingLg?"yu-p-8":""),u=t.computed(()=>o.border?"yu-border":o.borderPrimary?"yu-border yu-border-primary":""),c=t.computed(()=>o.rounded?"yu-rounded-md":o.roundedTop?"yu-rounded-t-md":o.roundedBottom?"yu-rounded-b-md":""),d=t.computed(()=>o.bgPrimary?"yu-bg-primary":o.bgWhite?"yu-bg-white":""),p=t.computed(()=>o.divisor&&o.col?"yu-divide-y":o.divisor&&o.row?"yu-divide-x":""),h=t.computed(()=>[i.value,a.value,l.value,s.value,r.value,u.value,c.value,d.value,n.value,p.value]);return(m,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-flex",h.value])},[t.renderSlot(m.$slots,"default")],2))}}),_o={class:"yu-flex yu-flex-col yu-items-stretch yu-w-full yu-cursor-text yu-gap-1","data-testid":"app-form-text-input"},So=["value","type","placeholder","disabled","maxlength","aria-invalid"],et=t.defineComponent({__name:"app-form-text-input",props:{modelValue:{default:""},type:{default:"text"},placeholder:{},maxLength:{},disabled:{type:Boolean},invalid:{type:Boolean},valid:{type:Boolean},fluid:{type:Boolean},maskFunction:{}},emits:["update:modelValue","keyup-enter"],setup(e,{expose:o,emit:n}){const r=e,i=n,a=t.computed(()=>t.useSlots());function l(w){return!!a.value[w]}const s=t.ref(""),u=t.ref(!1);function c(w){if(!r.maskFunction)return w;try{const g=r.maskFunction(w);return typeof g=="string"?g:w}catch{return w}}t.watch(()=>r.modelValue,w=>{if(w==null){s.value="";return}s.value=r.maskFunction?c(w):w},{immediate:!0});const{width:d}=qt(r),p=t.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":""),h=t.computed(()=>r.invalid?"yu-text-red-600 placeholder:yu-text-red-300 placeholder:yu-font-medium":r.valid?"yu-text-green-700 placeholder:yu-font-medium":"yu-text-gray-900 placeholder:yu-text-gray-400 placeholder:yu-font-medium"),m=t.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":"yu-text-gray-500"),y=t.computed(()=>r.disabled?"yu-opacity-50 yu-pointer-events-none":"");function x(w){const f=w.target.value;s.value=r.maskFunction?c(f):f,i("update:modelValue",s.value)}return o({focus:u,content:s}),(w,g)=>(t.openBlock(),t.createBlock(J,{class:t.normalizeClass([t.unref(d),y.value]),col:"","gap-none":""},{default:t.withCtx(()=>[t.createElementVNode("label",_o,[l("default")?(t.openBlock(),t.createBlock(E,{key:0,small:"",gray:"",class:t.normalizeClass([p.value])},{default:t.withCtx(()=>[t.renderSlot(w.$slots,"default")]),_:3},8,["class"])):t.createCommentVNode("",!0),t.createElementVNode("input",{class:t.normalizeClass(["yu-w-full yu-bg-transparent yu-border-0 yu-outline-none yu-p-0 yu-m-0 yu-appearance-none yu-font-primary yu-text-2xl yu-leading-tight yu-caret-gray-900",[h.value]]),value:s.value,type:e.type,placeholder:e.placeholder,disabled:e.disabled,maxlength:e.maxLength,"aria-invalid":e.invalid?!0:void 0,onInput:x,onFocus:g[0]||(g[0]=f=>u.value=!0),onBlur:g[1]||(g[1]=f=>u.value=!1),onKeyup:g[2]||(g[2]=t.withKeys(f=>i("keyup-enter"),["enter"]))},null,42,So)]),l("feedback")?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["yu-mt-1",[m.value]])},[t.renderSlot(w.$slots,"feedback")],2)):t.createCommentVNode("",!0)]),_:3},8,["class"]))}});function Ao(e){const o=t.computed(()=>e.small?"!yu-h-8 !yu-min-h-[2rem]":""),n=t.computed(()=>"!yu-text-xs"),r=t.computed(()=>e.small?"yu-px-[0.625rem]":"yu-p-[0.9rem]"),i=t.computed(()=>e.fluid?"!yu-w-full":"yu-w-fit");return{height:o,textSize:n,padding:r,width:i}}const R=t.defineComponent({__name:"app-icon",props:{small:Boolean,large:Boolean,extraLarge:Boolean,gray:Boolean,base:Boolean,light:Boolean,dark:Boolean,outlined:Boolean},setup(e){const o=e,n=t.computed(()=>o.small?"!yu-text-xs yu-w-4 yu-h-4":o.large?"!yu-text-2xl yu-w-8 yu-h-8":o.extraLarge?"!yu-text-4xl yu-w-10 yu-h-10":"!yu-text-base yu-w-6 yu-h-6"),r=t.computed(()=>o.dark?"yu-text-neutral-800 dark:yu-text-white":o.light?"yu-text-white dark:yu-text-neutral-800":o.gray?"yu-text-gray-500":""),i=t.computed(()=>o.outlined?"material-symbols-outlined":"material-icons");return(a,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center",[n.value,r.value,i.value]]),"data-testid":"app-icon"},[t.renderSlot(a.$slots,"default")],2))}}),To=["disabled"],No={class:"yu-flex yu-items-center yu-justify-center yu-gap-2"},le=t.defineComponent({__name:"app-button",props:{small:Boolean,soft:Boolean,outline:Boolean,ghost:Boolean,link:Boolean,round:Boolean,icon:Boolean,fluid:Boolean,disabled:Boolean,loading:Boolean,alert:Boolean,warning:Boolean,success:Boolean,block:Boolean},emits:["click"],setup(e){const o=e,n=t.computed(()=>t.useSlots());function r(m){return!!n.value[m]}const{height:i,textSize:a,padding:l,width:s}=Ao(o),u=t.computed(()=>o.soft?"yu-bg-primary-50 !yu-text-primary-400":o.alert?"yu-bg-red-500 !yu-text-white":o.warning?"yu-bg-amber-500 !yu-text-white":o.success?"yu-bg-green-500 !yu-text-white":o.outline?"yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300":o.ghost?"yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100":o.link?"yu-bg-transparent !yu-text-blue-600 hover:yu-underline":"yu-bg-primary-500 !yu-text-white"),c=t.computed(()=>o.block?"yu-rounded-none":o.round?"yu-rounded-full":"yu-rounded-lg"),d=t.computed(()=>o.icon&&o.small?"!yu-w-8 !yu-h-8 yu-p-0":o.icon?"!yu-w-11 !yu-h-11 yu-p-0":l.value),p=t.computed(()=>o.icon?"yu-justify-center":"yu-justify-between"),h=t.computed(()=>o.disabled||o.loading?"yu-opacity-50 yu-pointer-events-none":"");return(m,y)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["yu-inline-flex yu-items-center yu-gap-2 yu-cursor-pointer yu-transition-all yu-border yu-border-transparent disabled:yu-opacity-50 disabled:yu-pointer-events-none hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80",[t.unref(a),u.value,c.value,t.unref(s),t.unref(i),h.value,d.value,p.value]]),type:"button",disabled:e.disabled||e.loading,"data-testid":"app-button",onClick:y[0]||(y[0]=x=>m.$emit("click",x))},[t.createElementVNode("div",No,[e.loading?(t.openBlock(),t.createBlock(R,{key:0,class:"yu-animate-spin yu-flex yu-items-center yu-justify-center",small:"",outlined:""},{default:t.withCtx(()=>[...y[1]||(y[1]=[t.createTextVNode("progress_activity",-1)])]),_:1})):r("icon")?(t.openBlock(),t.createBlock(R,{key:1,small:""},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"icon")]),_:3})):t.createCommentVNode("",!0),!e.loading&&r("default")?(t.openBlock(),t.createBlock(E,{key:2,class:"!yu-text-inherit",small:""},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"default")]),_:3})):t.createCommentVNode("",!0)]),!e.loading&&r("trailing")?(t.openBlock(),t.createBlock(R,{key:0,small:""},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"trailing")]),_:3})):t.createCommentVNode("",!0)],10,To))}}),Eo=["aria-hidden"],Po=t.defineComponent({__name:"app-carousel",props:{modelValue:{default:0},vertical:{type:Boolean},fill:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:o,emit:n}){const r=e,i=n,a=t.useSlots(),l=t.ref(null),s=t.ref(null),u=t.ref(0),c=t.ref(0),d=t.ref(!1);let p=null;const h=t.computed(()=>Math.max(r.modelValue,0)),m=()=>(a.default?.()??[]).flatMap(b=>b.type===t.Comment||b.type===t.Text?[]:b.type===t.Fragment?(b.children??[]).filter(B=>!!B&&typeof B=="object"&&B.type!==t.Comment&&B.type!==t.Text):[b]),y=b=>{const B=Math.abs(b-h.value);return B===0?"is-active":B===1?"is-adjacent":"is-far"},x=b=>{const B=s.value?.childElementCount||m().length,N=Math.min(Math.max(b,0),Math.max(B-1,0));N!==r.modelValue&&i("update:modelValue",N)},w=()=>{const b=l.value;b&&(b.scrollLeft&&(b.scrollLeft=0),b.scrollTop&&(b.scrollTop=0))},g=()=>{const b=l.value,B=s.value;if(!b||!B)return;w();const N=[...B.children],A=parseFloat(getComputedStyle(B).gap)||0,V=parseFloat(getComputedStyle(b).scrollPaddingTop)||0,k=z=>r.vertical?z.offsetHeight:z.offsetWidth,T=N[h.value]?k(N[h.value]):0,P=r.vertical&&r.fill?Math.max((b.clientHeight-T)/2,0):V,D=N.slice(0,h.value).reduce((z,O)=>z+k(O)+A,0);u.value=P-D,c.value=r.vertical&&!r.fill?T+V*2:0,d.value=!0},f=()=>{p?.disconnect();const b=l.value,B=s.value;if(!(!b||!B)&&(g(),!(typeof ResizeObserver>"u"))){if(p=new ResizeObserver(g),p.observe(b),r.vertical)for(const N of B.children)p.observe(N);b.removeEventListener("scroll",w),b.addEventListener("scroll",w,{passive:!0})}},v=t.computed(()=>[r.vertical?"yu-carousel--vertical":"yu-carousel--horizontal",{"is-ready":d.value,"yu-carousel--fill":r.fill}]),C=t.computed(()=>r.vertical?"yu-flex-col yu-items-stretch":"yu-flex-row yu-items-center"),_=t.computed(()=>{if(!(!r.vertical||r.fill||!c.value))return{height:`${c.value}px`}}),$=t.computed(()=>{const b=`${u.value}px`;return{transform:r.vertical?`translate3d(0, ${b}, 0)`:`translate3d(${b}, 0, 0)`}});return t.watch(()=>[r.vertical,r.fill,r.modelValue],async()=>{await t.nextTick(),f()}),t.onMounted(async()=>{await t.nextTick(),f()}),t.onBeforeUnmount(()=>{p?.disconnect(),l.value?.removeEventListener("scroll",w)}),o({next:()=>x(h.value+1),prev:()=>x(h.value-1),goTo:x}),(b,B)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-relative yu-w-full yu-overflow-hidden",v.value]),ref_key:"rootRef",ref:l,"data-testid":"app-carousel",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",{class:t.normalizeClass(["yu-carousel-track yu-flex",C.value]),ref_key:"trackRef",ref:s,style:t.normalizeStyle($.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m(),(N,A)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-carousel-slide",y(A)]),key:N.key??A,"aria-hidden":A!==h.value,"data-testid":"app-carousel-slide"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(N)))],10,Eo))),128))],6)],6))}}),tt=Pe(Po,[["__scopeId","data-v-c6006063"]]),Vo={class:"yu-flex yu-flex-col yu-w-full yu-h-full"},zo={class:"yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0"},Oo={class:"yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"},Lo={class:"yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none"},Ro={class:"yu-flex yu-items-center yu-gap-1.5"},ot=t.defineComponent({__name:"app-identification-page",props:{rule:{},edges:{}},emits:["submit","back"],setup(e,{emit:o}){const n=e,r=o,{currentStep:i,fieldHost:a,showBack:l,fields:s,form:u,continueStep:c,canContinueAt:d,introFor:p,fieldPlaceholder:h,fieldType:m,fieldMask:y,goBack:x}=Co(()=>n.rule,r);return(w,g)=>(t.openBlock(),t.createElementBlock("div",Vo,[t.createElementVNode("div",zo,[t.createElementVNode("div",Oo,[t.createElementVNode("div",{class:t.normalizeClass(["yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",{"yu-invisible yu-pointer-events-none":!t.unref(l)}]),onClick:g[0]||(g[0]=(...f)=>t.unref(x)&&t.unref(x)(...f))},[t.createVNode(R,{class:"yu-transition-colors group-hover:!yu-text-gray-700",small:"",gray:""},{default:t.withCtx(()=>[...g[2]||(g[2]=[t.createTextVNode("chevron_left",-1)])]),_:1}),t.createVNode(E,{class:"yu-transition-colors group-hover:!yu-text-gray-700","extra-small":"",medium:"",gray:""},{default:t.withCtx(()=>[...g[3]||(g[3]=[t.createTextVNode("Voltar",-1)])]),_:1})],2)]),t.createElementVNode("div",Lo,[t.createElementVNode("div",Ro,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(f,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors",v<=t.unref(i)?"yu-bg-gray-900":"yu-bg-gray-200"]),key:v},null,2))),128))])])]),t.createElementVNode("div",{class:"yu-flex-1 yu-min-h-0 yu-w-full yu-px-6 yu-pb-12",ref_key:"fieldHost",ref:a},[t.createVNode(tt,{class:"yu-w-full yu-h-full",modelValue:t.unref(i),"onUpdate:modelValue":g[1]||(g[1]=f=>t.isRef(i)?i.value=f:null),vertical:"",fill:""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(f,v)=>(t.openBlock(),t.createBlock(J,{class:"yu-w-full yu-gap-8",key:f.name,col:"",center:""},{default:t.withCtx(()=>[t.createVNode(J,{class:"yu-w-full yu-relative yu-pr-6",col:"","gap-sm":""},{default:t.withCtx(()=>[t.unref(p)(v).title?(t.openBlock(),t.createBlock(E,{key:0,class:"yu-text-left","extra-large":"",semibold:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(p)(v).title),1)]),_:2},1024)):t.createCommentVNode("",!0),t.unref(p)(v).subtitle?(t.openBlock(),t.createBlock(E,{key:1,class:"yu-text-left",small:"",gray:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(p)(v).subtitle),1)]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(E,{class:"yu-opacity-50 yu-absolute -yu-top-2 yu-right-0",gray:"",small:"",medium:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(v+1),1)]),_:2},1024)]),_:2},1024),t.createVNode(J,{class:"yu-w-full yu-items-center",col:"","gap-md":""},{default:t.withCtx(()=>[t.createVNode(et,{modelValue:t.unref(u)[f.name],"onUpdate:modelValue":C=>t.unref(u)[f.name]=C,"mask-function":t.unref(y)(f.name),placeholder:t.unref(h)(f),type:t.unref(m)(f.name),onKeyupEnter:t.unref(c),fluid:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.alias),1)]),_:2},1032,["modelValue","onUpdate:modelValue","mask-function","placeholder","type","onKeyupEnter"]),t.createVNode(le,{fluid:"",disabled:!t.unref(d)(v),onClick:t.unref(c)},{trailing:t.withCtx(()=>[...g[4]||(g[4]=[t.createTextVNode("arrow_forward",-1)])]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(v>=t.unref(s).length-1?"Finalizar":"Continuar"),1)]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])],512)]))}}),Mo=["disabled"],Fo=["src"],nt=t.defineComponent({__name:"app-widget-anchor",props:{small:Boolean,large:Boolean,logo:{type:String,default:""},label:{type:String,default:""},outline:Boolean,ghost:Boolean,disabled:Boolean,loading:Boolean},emits:["click"],setup(e){const o=e,n=t.computed(()=>!!o.label.trim()),r=t.computed(()=>o.outline?"yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300":o.ghost?"yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100":"yu-bg-gradient-to-br yu-from-primary-500 yu-to-secondary-500 yu-text-white"),i=t.computed(()=>n.value?o.small?"yu-h-12 yu-w-fit yu-px-3 yu-gap-2":o.large?"yu-h-16 yu-w-fit yu-px-5 yu-gap-3":"yu-h-14 yu-w-fit yu-px-4 yu-gap-2":o.small?"yu-w-12 yu-h-12 yu-p-0":o.large?"yu-w-16 yu-h-16 yu-p-0":"yu-w-14 yu-h-14 yu-p-0"),a=t.computed(()=>o.small?"yu-w-6 yu-h-6":o.large?"yu-w-8 yu-h-8":"yu-w-7 yu-h-7"),l=t.computed(()=>o.disabled||o.loading?"yu-opacity-50 yu-pointer-events-none":"");return(s,u)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["yu-rounded-full yu-inline-flex yu-items-center yu-justify-center yu-cursor-pointer yu-overflow-hidden yu-transition-all yu-border yu-border-transparent hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80 disabled:yu-opacity-50 disabled:yu-pointer-events-none",[i.value,r.value,l.value]]),type:"button","data-testid":"app-anchor",disabled:e.disabled||e.loading,onClick:u[0]||(u[0]=c=>s.$emit("click",c))},[e.loading?(t.openBlock(),t.createBlock(R,{key:0,class:"yu-animate-spin",outlined:"",large:!e.small&&!e.large,"extra-large":e.large},{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("progress_activity",-1)])]),_:1},8,["large","extra-large"])):e.logo?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0",a.value]),src:e.logo,alt:"","data-testid":"app-anchor-logo"},null,10,Fo)):t.createCommentVNode("",!0),n.value?(t.openBlock(),t.createBlock(E,{key:2,class:"!yu-text-inherit yu-whitespace-nowrap",small:!e.large,"data-testid":"app-anchor-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1},8,["small"])):t.createCommentVNode("",!0)],10,Mo))}}),Ho={key:0,class:"yu-flex yu-shrink-0 yu-items-end","data-testid":"app-message-avatar"},Do={key:0,class:"yu-w-full yu-flex yu-justify-end yu-h-2","data-testid":"app-message-trailing"},rt=t.defineComponent({__name:"app-message",props:{primary:Boolean,secondary:Boolean,tertiary:Boolean},setup(e){const o=e,n=t.computed(()=>t.useSlots());function r(c){return!!n.value[c]}const i=t.computed(()=>o.tertiary),a=t.computed(()=>!i.value&&o.secondary),l=t.computed(()=>!i.value&&r("avatar")),s=t.computed(()=>i.value?"yu-justify-center":a.value?"yu-flex-row-reverse":""),u=t.computed(()=>i.value?"":a.value?"yu-rounded-br-none yu-bg-blue-100 yu-p-3":"yu-rounded-bl-none yu-bg-gray-200 yu-p-3");return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-flex yu-items-end yu-gap-2 yu-w-full",s.value]),"data-testid":"app-message"},[l.value?(t.openBlock(),t.createElementBlock("div",Ho,[t.renderSlot(c.$slots,"avatar")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["yu-rounded-md yu-relative",u.value]),"data-testid":"app-message-bubble"},[t.renderSlot(c.$slots,"default"),r("trailing")?(t.openBlock(),t.createElementBlock("div",Do,[t.renderSlot(c.$slots,"trailing")])):t.createCommentVNode("",!0)],2)],2))}}),Io={class:"yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-y-auto"},jo={class:"yu-flex yu-flex-col yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto"},qo={key:0,class:"yu-w-full yu-h-12"},Wo={key:0,class:"yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7"},Go=["src"],Zo={key:1,class:"yu-flex yu-w-7 yu-h-7"},Uo={class:"yu-w-full yu-border-t yu-border-gray-200 yu-flex yu-flex-col"},Xo={class:"yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2"},it=t.defineComponent({__name:"app-service-page",props:{rule:{},edges:{}},setup(e){const o=e;t.computed(()=>o.rule.settings?.behavior==="voice");const{history:n}=Ce(),r=t.computed(()=>n.value.length>0),i=[{from:"system",text:'Opção "Falar com um atendente" selecionada'},{from:"system",text:"Você está sendo transferido para o grupo Gustavo Braga"},{from:"operator",text:"Oi! Você costuma jogar vôlei de areia?"},{from:"operator",text:"Se sim, qual é a sua preferência? Quando você joga, você prefere jogar sozinho ou em dupla?"},{from:"contact",text:"Oi! Sim, gosto bastante! É um esporte muito divertido, principalmente quando jogamos com amigos na praia. Você já teve alguma experiência?"},{from:"contact",text:"Sim, gosto bastante! Prefiro jogar em dupla, mas também gosto de jogar sozinho."},{from:"operator",text:"Já brinquei algumas vezes, mas ainda tenho dificuldade para receber a bola. Parece que ela ganha muita velocidade quando vem do outro lado da rede."},{from:"contact",text:"Isso é normal no começo! Uma dica é manter os joelhos flexionados, o corpo um pouco inclinado para a frente e os braços preparados para fazer a manchete. Assim, você consegue reagir melhor."},{from:"operator",text:"Legal! E quais são as principais diferenças entre o vôlei de areia e o vôlei de quadra?"},{from:"contact",text:"A principal diferença é que o vôlei de praia normalmente é disputado em duplas, enquanto o de quadra tem seis jogadores por equipe. Na areia, precisamos cobrir bastante espaço e nos adaptar ao vento e ao terreno irregular."},{from:"operator",text:"Imagino que jogar na areia canse bastante. Existe alguma preparação física que você recomenda para iniciantes?"},{from:"contact",text:"Com certeza! Caminhadas, exercícios leves para as pernas, agachamentos e atividades para fortalecer o abdômen podem ajudar. O ideal é começar aos poucos, respeitando seu condicionamento físico."},{from:"operator",text:"E quanto ao saque? Devo começar tentando sacar por cima ou existe uma técnica mais simples para aprender?"},{from:"contact",text:"Para começar, o saque por baixo costuma ser mais fácil de controlar. Treine o lançamento ou posicionamento da bola, o contato e a direção. Quando ganhar confiança, experimente o saque por cima."},{from:"operator",text:"Outra coisa que acho difícil é jogar em dupla. Como podemos nos organizar melhor durante a partida?"},{from:"contact",text:"A comunicação é fundamental! Antes do saque, combinem quem ficará responsável por cada região da quadra. Chamem a bola em voz alta e conversem sobre a estratégia. Isso evita que os dois vão na mesma bola ou que ela caia sem ninguém tentar defender."},{from:"operator",text:"Gostei da dica! E como faço para melhorar meu ataque? Às vezes tento cortar a bola, mas ela acaba indo para fora."},{from:"contact",text:"Comece treinando a aproximação, o salto e o movimento do braço sem se preocupar tanto com a força. Procure direcionar a bola para espaços vazios da quadra adversária. Um ataque colocado pode ser tão eficiente quanto uma cortada forte."},{from:"operator",text:"E quando está muito quente? Jogar sob o sol durante bastante tempo deve ser complicado."},{from:"contact",text:"Sim! É importante beber água regularmente, fazer pausas e usar protetor solar. Também vale escolher horários menos quentes, como o início da manhã ou o fim da tarde. Segurança e diversão devem andar juntas!"}],a=l=>`https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${l==="operator"?"operator":"user"}`;return(l,s)=>(t.openBlock(),t.createElementBlock("div",Io,[t.createElementVNode("div",jo,[r.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",qo)),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(u,c)=>t.createVNode(rt,{key:c,primary:u.from==="operator",secondary:u.from==="contact",tertiary:u.from==="system"},t.createSlots({default:t.withCtx(()=>[u.from=="system"?(t.openBlock(),t.createBlock(E,{key:0,class:"yu-text-center",gray:"","extra-small":"",medium:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.text),1)]),_:2},1024)):(t.openBlock(),t.createBlock(E,{key:1,gray:"",small:"",medium:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.text),1)]),_:2},1024))]),_:2},[u.from!=="system"?{name:"avatar",fn:t.withCtx(()=>[i[c+1]?.from!==u.from?(t.openBlock(),t.createElementBlock("div",Wo,[t.createElementVNode("img",{class:"yu-rounded-full yu-w-full yu-h-full yu-object-contain",src:a(u.from)},null,8,Go)])):(t.openBlock(),t.createElementBlock("div",Zo))]),key:"0"}:void 0,u.from!=="system"?{name:"trailing",fn:t.withCtx(()=>[t.createVNode(E,{gray:"","extra-small":"",medium:""},{default:t.withCtx(()=>[...s[0]||(s[0]=[t.createTextVNode("12:58",-1)])]),_:1})]),key:"1"}:void 0]),1032,["primary","secondary","tertiary"])),64)),s[1]||(s[1]=t.createElementVNode("div",{class:"yu-w-full yu-h-12"},null,-1))]),t.createElementVNode("div",Uo,[s[4]||(s[4]=t.createElementVNode("textarea",{class:"yu-w-full yu-p-6 yu-resize-none yu-font-primary yu-text-xs placeholder:yu-text-neutral placeholder:yu-text-xs placeholder:yu-font-normal focus:yu-outline-none",placeholder:"Escreva uma mensagem..."},null,-1)),t.createElementVNode("div",Xo,[t.createVNode(le,{icon:"",ghost:"",small:""},{icon:t.withCtx(()=>[t.createVNode(R,{class:"yu-rotate-45"},{default:t.withCtx(()=>[...s[2]||(s[2]=[t.createTextVNode("attach_file",-1)])]),_:1})]),_:1}),t.createVNode(le,{icon:"",small:""},{icon:t.withCtx(()=>[t.createVNode(R,null,{default:t.withCtx(()=>[...s[3]||(s[3]=[t.createTextVNode("send",-1)])]),_:1})]),_:1})])])]))}}),Qo={class:"yu-flex yu-flex-col yu-w-full yu-gap-8"},Yo={key:0,class:"yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"},Ko=["src"],Jo={key:1,class:"yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"},en=["src"],tn=["src"],at=t.defineComponent({__name:"app-screen-page",props:{rule:{},edges:{}},emits:["edge-click"],setup(e,{emit:o}){const n=e,r=o,{history:i}=Ce(),a=t.computed(()=>i.value.length>0),l=t.computed(()=>n.edges??[]),s=t.computed(()=>n.rule.settings?.body);return(u,c)=>(t.openBlock(),t.createElementBlock("div",Qo,[a.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Yo)),t.createVNode(J,{class:"yu-px-6 yu-w-full",col:"",center:"","gap-base":""},{default:t.withCtx(()=>[s.value?.logo?(t.openBlock(),t.createElementBlock("img",{key:0,class:"yu-w-10 yu-h-10 yu-object-contain",src:s.value.logo,alt:""},null,8,Ko)):t.createCommentVNode("",!0),s.value?.eyebrow?(t.openBlock(),t.createBlock(E,{key:1,class:"yu-text-center yu-uppercase yu-tracking-widest yu-leading-none","extra-small":"",primary:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.value.eyebrow),1)]),_:1})):t.createCommentVNode("",!0),s.value?.title?(t.openBlock(),t.createBlock(E,{key:2,class:"yu-text-center","extra-large":"",semibold:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.value.title),1)]),_:1})):t.createCommentVNode("",!0),s.value?.subtitle?(t.openBlock(),t.createBlock(E,{key:3,class:"yu-w-64 yu-text-center",small:"",gray:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.value.subtitle),1)]),_:1})):t.createCommentVNode("",!0)]),_:1}),l.value.length?(t.openBlock(),t.createElementBlock("div",Jo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value.slice(0,3),d=>(t.openBlock(),t.createBlock(le,{class:"hover:yu-translate-x-1 yu-max-w-[25rem]",key:d.id,outline:"",fluid:"",onClick:p=>r("edge-click",d)},t.createSlots({trailing:t.withCtx(()=>[c[0]||(c[0]=t.createTextVNode("chevron_right",-1))]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.name),1)]),_:2},[d.settings?.body?.logo?{name:"icon",fn:t.withCtx(()=>[t.createElementVNode("img",{class:"yu-w-4 yu-h-4 yu-object-contain",src:d.settings.body.logo,alt:""},null,8,en)]),key:"0"}:void 0]),1032,["onClick"]))),128)),t.createElementVNode("div",{class:t.normalizeClass(["yu-flex yu-items-start yu-overflow-x-auto yu-w-full invisible-scrollbar yu-pt-6",{"yu-justify-start":l.value.slice(3).length>4,"yu-justify-center":l.value.slice(3).length<=4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value.slice(3),d=>(t.openBlock(),t.createElementBlock("div",{class:"yu-flex yu-flex-col yu-items-center yu-gap-2",key:d.id},[t.createVNode(le,{outline:"",icon:"",onClick:p=>r("edge-click",d)},t.createSlots({_:2},[d.settings?.body?.logo?{name:"icon",fn:t.withCtx(()=>[t.createElementVNode("img",{class:"yu-w-5 yu-h-5 yu-object-contain",src:d.settings.body.logo,alt:""},null,8,tn)]),key:"0"}:void 0]),1032,["onClick"]),t.createVNode(E,{class:"yu-w-20 yu-text-center yu-leading-3 yu-line-clamp-2","extra-small":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.name),1)]),_:2},1024)]))),128))],2)])):t.createCommentVNode("",!0)]))}}),on="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=",nn={class:"yu-w-full yu-shrink-0 yu-border-b yu-border-gray-200 yu-flex yu-items-center yu-px-4 yu-justify-center yu-h-[4.4rem]"},rn={class:"yu-flex yu-items-center yu-gap-3 yu-min-w-0"},an=["src"],sn={class:"yu-flex yu-flex-col yu-items-start yu-justify-center yu-min-w-0"},ln={class:"yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0"},un={key:0,class:"yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"},cn={class:"yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8"},dn={class:"yu-h-7 yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-items-center yu-justify-center yu-p-2 yu-gap-1 yu-bg-white"},pn=["src"],fn=t.defineComponent({inheritAttrs:!1,__name:"app-widget-view",props:{workflow:{},config:{},fullscreen:{type:Boolean}},emits:["edge-click","submit","close","back"],setup(e,{emit:o}){const n=e,r=o,{history:i,currentRuleId:a}=Ce(),l=f=>{const v=new Set(Object.values(f.edges).flatMap(C=>C.map(_=>_.nextRuleId)));return f.rules.find(C=>!v.has(C.id))??f.rules[0]},s=(f,v)=>{const C=new Map(f.rules.map(_=>[_.id,_]));return(f.edges[v]??[]).flatMap(_=>{const $=C.get(_.nextRuleId);return $?[$]:[]})},u=t.computed(()=>new Map(n.workflow.rules.map(f=>[f.id,f]))),c=t.computed(()=>l(n.workflow)),d=t.computed(()=>{const f=a.value;return f&&u.value.get(f)||c.value}),p=t.computed(()=>s(n.workflow,d.value.id)),h=t.computed(()=>i.value.length>0),m=t.computed(()=>h.value&&d.value.action!=="identification"),y=t.computed(()=>n.config.configurations.general.isClosable),x={identification:ot,service:it,screen:at},w=t.computed(()=>{const f=d.value.action;return f in x?x[f]:void 0}),g=t.computed(()=>n.fullscreen?"yu-w-screen yu-h-screen":"yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl");return(f,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-flex yu-flex-col yu-bg-white yu-overflow-hidden yu-relative",[g.value]]),"data-testid":"app-widget-view"},[t.createElementVNode("div",nn,[t.createElementVNode("div",rn,[d.value.settings?.header?.logo?(t.openBlock(),t.createElementBlock("img",{key:0,class:"yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",src:d.value.settings.header.logo,alt:""},null,8,an)):t.createCommentVNode("",!0),t.createElementVNode("div",sn,[d.value.settings?.header?.title?(t.openBlock(),t.createBlock(E,{key:0,bold:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value.settings.header.title),1)]),_:1})):t.createCommentVNode("",!0),d.value.settings?.header?.subtitle?(t.openBlock(),t.createBlock(E,{key:1,class:"yu-truncate yu-min-w-0 yu-max-w-64","extra-small":"",gray:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value.settings.header.subtitle),1)]),_:1})):t.createCommentVNode("",!0)])]),y.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:"yu-ml-auto yu-cursor-pointer yu-transition-all yu-bg-transparent yu-border-0 yu-p-0 hover:yu-text-red-500",type:"button","aria-label":"Fechar","data-testid":"app-widget-close",onClick:v[0]||(v[0]=C=>r("close"))},[t.createVNode(R,{gray:""},{default:t.withCtx(()=>[...v[5]||(v[5]=[t.createTextVNode("close",-1)])]),_:1})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",ln,[t.createVNode(t.Transition,{name:"page-transition",mode:"out-in"},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("div",{class:"yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",key:d.value.id},[m.value?(t.openBlock(),t.createElementBlock("div",un,[t.createElementVNode("div",{class:"yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",onClick:v[1]||(v[1]=C=>r("back"))},[t.createVNode(R,{class:"yu-transition-colors group-hover:!yu-text-gray-700",small:"",gray:""},{default:t.withCtx(()=>[...v[6]||(v[6]=[t.createTextVNode("chevron_left",-1)])]),_:1}),t.createVNode(E,{class:"yu-transition-colors group-hover:!yu-text-gray-700","extra-small":"",medium:"",gray:""},{default:t.withCtx(()=>[...v[7]||(v[7]=[t.createTextVNode("Voltar",-1)])]),_:1})])])):t.createCommentVNode("",!0),t.createElementVNode("div",cn,[w.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w.value),{key:0,rule:d.value,edges:p.value,onSubmit:v[2]||(v[2]=C=>r("submit",C)),onBack:v[3]||(v[3]=C=>r("back")),onEdgeClick:v[4]||(v[4]=C=>r("edge-click",C))},null,40,["rule","edges"])):t.createCommentVNode("",!0)])]))]),_:1})]),t.createElementVNode("div",dn,[t.createElementVNode("img",{class:"yu-w-3 yu-h-2",src:t.unref(on),alt:"Opens"},null,8,pn),t.createVNode(E,{class:"!yu-text-xxs",gray:""},{default:t.withCtx(()=>[...v[8]||(v[8]=[t.createTextVNode("Powered By",-1),t.createElementVNode("b",{class:"yu-ml-1"},"Opens",-1)])]),_:1})])],2))}}),st=Pe(fn,[["__scopeId","data-v-685573f8"]]),mn={class:"yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none"},hn={class:"yu-h-full yu-flex yu-items-center yu-justify-center"},yn=["value","type","disabled","maxlength"],gn={class:"yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500"},Wt=t.defineComponent({__name:"app-text-input",props:{modelValue:{default:""},type:{default:"text"},maxLength:{},disabled:{type:Boolean},loading:{type:Boolean},invalid:{type:Boolean},small:{type:Boolean},fluid:{type:Boolean},round:{type:Boolean},valid:{type:Boolean},block:{type:Boolean},maskFunction:{},passwordToggle:{type:Boolean}},emits:["update:modelValue","keyup-enter"],setup(e,{expose:o,emit:n}){const r=e,i=n,a=t.computed(()=>t.useSlots());function l($){return!!a.value[$]}const s=t.ref(""),u=t.ref(!1),c=t.ref(!1);function d($){if(!r.maskFunction)return $;try{const b=r.maskFunction($);return typeof b=="string"?b:$}catch{return $}}t.watch(()=>r.modelValue,$=>{if($==null){s.value="";return}s.value=r.maskFunction?d($):$},{immediate:!0});function p(){return!(u.value||s.value)}const{height:h,textSize:m,width:y}=qt(r),x=t.computed(()=>r.invalid?"yu-border-red-500 focus-within:yu-border-red-500":r.valid?"yu-border-green-500 focus-within:yu-border-green-500":"yu-border-gray-200 focus-within:!yu-border-primary/40 hover:yu-border-gray-300"),w=t.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":"yu-text-gray-500"),g=t.computed(()=>r.small&&p()?"yu-translate-y-[7px]":r.small&&!p()?"yu-translate-y-0":p()?"yu-translate-y-[11px]":"yu-translate-y-0"),f=t.computed(()=>l("icon")||r.loading?"yu-pl-[34px]":"yu-pl-3"),v=t.computed(()=>r.block?"yu-rounded-none":r.round?"yu-rounded-full":"yu-rounded-lg"),C=t.computed(()=>r.disabled||r.loading?"yu-opacity-50 yu-pointer-events-none":"");function _($){const B=$.target.value;s.value=r.maskFunction?d(B):B,i("update:modelValue",s.value)}return o({focus:u,content:s}),($,b)=>(t.openBlock(),t.createBlock(J,{class:t.normalizeClass([t.unref(y)]),col:"","gap-none":""},{default:t.withCtx(()=>[t.createVNode(J,{col:"","gap-sm":""},{default:t.withCtx(()=>[l("label")?(t.openBlock(),t.createBlock(E,{key:0,small:"",medium:""},{default:t.withCtx(()=>[t.renderSlot($.$slots,"label")]),_:3})):t.createCommentVNode("",!0),t.createElementVNode("label",{class:t.normalizeClass(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent",[v.value,C.value,t.unref(h),x.value]]),"data-testid":"app-text-input"},[t.createElementVNode("div",mn,[t.createElementVNode("div",hn,[!e.loading&&l("icon")?(t.openBlock(),t.createBlock(R,{key:0,small:""},{default:t.withCtx(()=>[t.renderSlot($.$slots,"icon")]),_:3})):t.createCommentVNode("",!0),e.loading?(t.openBlock(),t.createBlock(R,{key:1,class:"yu-animate-spin",small:"",outlined:""},{default:t.withCtx(()=>[...b[4]||(b[4]=[t.createTextVNode("progress_activity",-1)])]),_:1})):t.createCommentVNode("",!0)]),t.createVNode(E,{class:t.normalizeClass(["yu-py-1 yu-transition",[g.value]]),small:"",medium:"",gray:""},{default:t.withCtx(()=>[t.renderSlot($.$slots,"default")]),_:3},8,["class"])]),t.createElementVNode("input",{class:t.normalizeClass(["yu-absolute yu-inset-0 yu-w-full yu-h-full yu-outline-none yu-appearance-none yu-bg-transparent yu-pt-3 yu-pr-3 yu-text-gray-700 yu-font-primary yu-z-0",[t.unref(m),f.value,v.value]]),value:s.value,type:e.passwordToggle&&c.value?"text":e.type,disabled:e.disabled||e.loading,maxlength:e.maxLength,onInput:_,onFocus:b[0]||(b[0]=B=>u.value=!0),onBlur:b[1]||(b[1]=B=>u.value=!1),onKeyup:b[2]||(b[2]=t.withKeys(B=>i("keyup-enter"),["enter"]))},null,42,yn),t.createElementVNode("div",gn,[e.maxLength?(t.openBlock(),t.createBlock(E,{key:0,small:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(`${s.value.length} / ${e.maxLength}`),1)]),_:1})):t.createCommentVNode("",!0),e.type==="password"&&e.passwordToggle?(t.openBlock(),t.createElementBlock("button",{key:1,class:"yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",type:"button",tabindex:"-1",onClick:b[3]||(b[3]=B=>c.value=!c.value)},[t.createVNode(R,{small:"",gray:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value?"visibility_off":"visibility"),1)]),_:1})])):t.createCommentVNode("",!0),t.renderSlot($.$slots,"suffix")])],2)]),_:3}),l("feedback")?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["yu-mt-1",[w.value]])},[t.renderSlot($.$slots,"feedback")],2)):t.createCommentVNode("",!0)]),_:3},8,["class"]))}}),vn=()=>({isLightHex:o=>{const n=o.replace("#","");if(n.length!==6)return!1;const r=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);return(r*299+i*587+a*114)/1e3>160}}),wn=()=>{const{isLightHex:e}=vn();return{getOffset:(i,a)=>{const l=`${a.x}px`,s=`${a.y}px`;switch(i){case"bottom-left":return{bottom:s,left:l};case"top-left":return{top:s,left:l};case"top-right":return{top:s,right:l};default:return{bottom:s,right:l}}},getPosition:i=>{switch(i){case"bottom-left":return"bottom left";case"top-left":return"top left";case"top-right":return"top right";default:return"bottom right"}},getTone:i=>({backgroundImage:"none",backgroundColor:i,color:e(i)?"#1c1917":"#ffffff"})}},xn=t.defineComponent({__name:"app-widget",props:{workflow:{},config:{},fullscreen:{type:Boolean}},emits:["edge-click","submit","close","back","open"],setup(e,{emit:o}){const n=e,r=o,i=t.ref(n.config.configurations.general.defaultBehavior==="active"),a=t.ref(!i.value),{getOffset:l,getPosition:s,getTone:u}=wn(),c=t.computed(()=>n.config.configurations.anchor),d=t.computed(()=>n.config.configurations.appearance),p=t.computed(()=>{if(!(i.value&&n.fullscreen))return l(c.value.position,c.value.offset)}),h=t.computed(()=>s(c.value.position)),m=t.computed(()=>({workflow:n.workflow,config:n.config,fullscreen:n.fullscreen})),y=t.computed(()=>({style:u(d.value.primaryColor),small:c.value.size==="small",large:c.value.size==="large",logo:c.value.logo??"",label:c.value.label??""})),x=async()=>{i.value||(a.value=!1,await t.nextTick(),i.value=!0,r("open"))},w=()=>{i.value&&(i.value=!1,r("close"))},g=()=>{a.value=!0};return t.watch(()=>n.config.configurations.general.defaultBehavior,f=>{f==="active"?x():w()}),(f,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-fixed yunique yu-z-[99999]",i.value&&e.fullscreen?"yu-inset-0":""]),"data-testid":"app-widget",style:t.normalizeStyle([{"--widget-origin":h.value},p.value])},[t.createVNode(t.Transition,{name:"widget",onAfterLeave:g},{default:t.withCtx(()=>[i.value?(t.openBlock(),t.createBlock(st,t.mergeProps({key:0},m.value,{onClose:w,onBack:v[0]||(v[0]=C=>r("back")),onSubmit:v[1]||(v[1]=C=>r("submit",C)),onEdgeClick:v[2]||(v[2]=C=>r("edge-click",C))}),null,16)):t.createCommentVNode("",!0)]),_:1}),a.value?(t.openBlock(),t.createBlock(nt,{key:0,style:t.normalizeStyle(y.value.style),small:y.value.small,large:y.value.large,logo:y.value.logo,label:y.value.label,onClick:x},null,8,["style","small","large","logo","label"])):t.createCommentVNode("",!0)],6))}}),Gt=Pe(xn,[["__scopeId","data-v-1610b3a0"]]),bn=["top","right","bottom","left"],mt=["start","end"],ht=bn.reduce((e,o)=>e.concat(o,o+"-"+mt[0],o+"-"+mt[1]),[]),ve=Math.min,se=Math.max,kn={left:"right",right:"left",bottom:"top",top:"bottom"},Cn={start:"end",end:"start"};function Ue(e,o,n){return se(e,ve(o,n))}function ue(e,o){return typeof e=="function"?e(o):e}function Y(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function Zt(e){return e==="x"?"y":"x"}function lt(e){return e==="y"?"height":"width"}const $n=new Set(["top","bottom"]);function K(e){return $n.has(Y(e))?"y":"x"}function ut(e){return Zt(K(e))}function Ut(e,o,n){n===void 0&&(n=!1);const r=G(e),i=ut(e),a=lt(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(l=Ae(l)),[l,Ae(l)]}function Bn(e){const o=Ae(e);return[Se(e),o,Se(o)]}function Se(e){return e.replace(/start|end/g,o=>Cn[o])}const yt=["left","right"],gt=["right","left"],_n=["top","bottom"],Sn=["bottom","top"];function An(e,o,n){switch(e){case"top":case"bottom":return n?o?gt:yt:o?yt:gt;case"left":case"right":return o?_n:Sn;default:return[]}}function Tn(e,o,n,r){const i=G(e);let a=An(Y(e),n==="start",r);return i&&(a=a.map(l=>l+"-"+i),o&&(a=a.concat(a.map(Se)))),a}function Ae(e){return e.replace(/left|right|bottom|top/g,o=>kn[o])}function Nn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xt(e){return typeof e!="number"?Nn(e):{top:e,right:e,bottom:e,left:e}}function me(e){const{x:o,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:o,right:o+r,bottom:n+i,x:o,y:n}}function vt(e,o,n){let{reference:r,floating:i}=e;const a=K(o),l=ut(o),s=lt(l),u=Y(o),c=a==="y",d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let m;switch(u){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-i.width,y:p};break;default:m={x:r.x,y:r.y}}switch(G(o)){case"start":m[l]-=h*(n&&c?-1:1);break;case"end":m[l]+=h*(n&&c?-1:1);break}return m}const En=async(e,o,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(o));let c=await l.getElementRects({reference:e,floating:o,strategy:i}),{x:d,y:p}=vt(c,r,u),h=r,m={},y=0;for(let x=0;x<s.length;x++){const{name:w,fn:g}=s[x],{x:f,y:v,data:C,reset:_}=await g({x:d,y:p,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:o}});d=f??d,p=v??p,m={...m,[w]:{...m[w],...C}},_&&y<=50&&(y++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(c=_.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:i}):_.rects),{x:d,y:p}=vt(c,h,u)),x=-1)}return{x:d,y:p,placement:h,strategy:i,middlewareData:m}};async function Ve(e,o){var n;o===void 0&&(o={});const{x:r,y:i,platform:a,rects:l,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=ue(o,e),y=Xt(m),w=s[h?p==="floating"?"reference":"floating":p],g=me(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),f=p==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},_=me(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:f,offsetParent:v,strategy:u}):f);return{top:(g.top-_.top+y.top)/C.y,bottom:(_.bottom-g.bottom+y.bottom)/C.y,left:(g.left-_.left+y.left)/C.x,right:(_.right-g.right+y.right)/C.x}}const Pn=e=>({name:"arrow",options:e,async fn(o){const{x:n,y:r,placement:i,rects:a,platform:l,elements:s,middlewareData:u}=o,{element:c,padding:d=0}=ue(e,o)||{};if(c==null)return{};const p=Xt(d),h={x:n,y:r},m=ut(i),y=lt(m),x=await l.getDimensions(c),w=m==="y",g=w?"top":"left",f=w?"bottom":"right",v=w?"clientHeight":"clientWidth",C=a.reference[y]+a.reference[m]-h[m]-a.floating[y],_=h[m]-a.reference[m],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let b=$?$[v]:0;(!b||!await(l.isElement==null?void 0:l.isElement($)))&&(b=s.floating[v]||a.floating[y]);const B=C/2-_/2,N=b/2-x[y]/2-1,A=ve(p[g],N),V=ve(p[f],N),k=A,T=b-x[y]-V,P=b/2-x[y]/2+B,D=Ue(k,P,T),z=!u.arrow&&G(i)!=null&&P!==D&&a.reference[y]/2-(P<k?A:V)-x[y]/2<0,O=z?P<k?P-k:P-T:0;return{[m]:h[m]+O,data:{[m]:D,centerOffset:P-D-O,...z&&{alignmentOffset:O}},reset:z}}});function Vn(e,o,n){return(e?[...n.filter(i=>G(i)===e),...n.filter(i=>G(i)!==e)]:n.filter(i=>Y(i)===i)).filter(i=>e?G(i)===e||(o?Se(i)!==i:!1):!0)}const zn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,r,i;const{rects:a,middlewareData:l,placement:s,platform:u,elements:c}=o,{crossAxis:d=!1,alignment:p,allowedPlacements:h=ht,autoAlignment:m=!0,...y}=ue(e,o),x=p!==void 0||h===ht?Vn(p||null,m,h):h,w=await Ve(o,y),g=((n=l.autoPlacement)==null?void 0:n.index)||0,f=x[g];if(f==null)return{};const v=Ut(f,a,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==f)return{reset:{placement:x[0]}};const C=[w[Y(f)],w[v[0]],w[v[1]]],_=[...((r=l.autoPlacement)==null?void 0:r.overflows)||[],{placement:f,overflows:C}],$=x[g+1];if($)return{data:{index:g+1,overflows:_},reset:{placement:$}};const b=_.map(A=>{const V=G(A.placement);return[A.placement,V&&d?A.overflows.slice(0,2).reduce((k,T)=>k+T,0):A.overflows[0],A.overflows]}).sort((A,V)=>A[1]-V[1]),N=((i=b.filter(A=>A[2].slice(0,G(A[0])?2:3).every(V=>V<=0))[0])==null?void 0:i[0])||b[0][0];return N!==s?{data:{index:g+1,overflows:_},reset:{placement:N}}:{}}}},On=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(o){var n,r;const{placement:i,middlewareData:a,rects:l,initialPlacement:s,platform:u,elements:c}=o,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...w}=ue(e,o);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=Y(i),f=K(s),v=Y(s)===s,C=await(u.isRTL==null?void 0:u.isRTL(c.floating)),_=h||(v||!x?[Ae(s)]:Bn(s)),$=y!=="none";!h&&$&&_.push(...Tn(s,x,y,C));const b=[s,..._],B=await Ve(o,w),N=[];let A=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(B[g]),p){const P=Ut(i,l,C);N.push(B[P[0]],B[P[1]])}if(A=[...A,{placement:i,overflows:N}],!N.every(P=>P<=0)){var V,k;const P=(((V=a.flip)==null?void 0:V.index)||0)+1,D=b[P];if(D&&(!(p==="alignment"?f!==K(D):!1)||A.every(I=>K(I.placement)===f?I.overflows[0]>0:!0)))return{data:{index:P,overflows:A},reset:{placement:D}};let z=(k=A.filter(O=>O.overflows[0]<=0).sort((O,I)=>O.overflows[1]-I.overflows[1])[0])==null?void 0:k.placement;if(!z)switch(m){case"bestFit":{var T;const O=(T=A.filter(I=>{if($){const U=K(I.placement);return U===f||U==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(U=>U>0).reduce((U,xo)=>U+xo,0)]).sort((I,U)=>I[1]-U[1])[0])==null?void 0:T[0];O&&(z=O);break}case"initialPlacement":z=s;break}if(i!==z)return{reset:{placement:z}}}return{}}}},Ln=new Set(["left","top"]);async function Rn(e,o){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Y(n),s=G(n),u=K(n)==="y",c=Ln.has(l)?-1:1,d=a&&u?-1:1,p=ue(o,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof y=="number"&&(m=s==="end"?y*-1:y),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Mn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(o){var n,r;const{x:i,y:a,placement:l,middlewareData:s}=o,u=await Rn(o,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:l}}}}},Fn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){const{x:n,y:r,placement:i}=o,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:w=>{let{x:g,y:f}=w;return{x:g,y:f}}},...u}=ue(e,o),c={x:n,y:r},d=await Ve(o,u),p=K(Y(i)),h=Zt(p);let m=c[h],y=c[p];if(a){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",f=m+d[w],v=m-d[g];m=Ue(f,m,v)}if(l){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",f=y+d[w],v=y-d[g];y=Ue(f,y,v)}const x=s.fn({...o,[h]:m,[p]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[h]:a,[p]:l}}}}}},Hn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(o){var n,r;const{placement:i,rects:a,platform:l,elements:s}=o,{apply:u=()=>{},...c}=ue(e,o),d=await Ve(o,c),p=Y(i),h=G(i),m=K(i)==="y",{width:y,height:x}=a.floating;let w,g;p==="top"||p==="bottom"?(w=p,g=h===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(g=p,w=h==="end"?"top":"bottom");const f=x-d.top-d.bottom,v=y-d.left-d.right,C=ve(x-d[w],f),_=ve(y-d[g],v),$=!o.middlewareData.shift;let b=C,B=_;if((n=o.middlewareData.shift)!=null&&n.enabled.x&&(B=v),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(b=f),$&&!h){const A=se(d.left,0),V=se(d.right,0),k=se(d.top,0),T=se(d.bottom,0);m?B=y-2*(A!==0||V!==0?A+V:se(d.left,d.right)):b=x-2*(k!==0||T!==0?k+T:se(d.top,d.bottom))}await u({...o,availableWidth:B,availableHeight:b});const N=await l.getDimensions(s.floating);return y!==N.width||x!==N.height?{reset:{rects:!0}}:{}}}};function q(e){var o;return((o=e.ownerDocument)==null?void 0:o.defaultView)||window}function X(e){return q(e).getComputedStyle(e)}const wt=Math.min,he=Math.max,Te=Math.round;function Qt(e){const o=X(e);let n=parseFloat(o.width),r=parseFloat(o.height);const i=e.offsetWidth,a=e.offsetHeight,l=Te(n)!==i||Te(r)!==a;return l&&(n=i,r=a),{width:n,height:r,fallback:l}}function re(e){return Kt(e)?(e.nodeName||"").toLowerCase():""}let $e;function Yt(){if($e)return $e;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?($e=e.brands.map((o=>o.brand+"/"+o.version)).join(" "),$e):navigator.userAgent}function Q(e){return e instanceof q(e).HTMLElement}function oe(e){return e instanceof q(e).Element}function Kt(e){return e instanceof q(e).Node}function xt(e){return typeof ShadowRoot>"u"?!1:e instanceof q(e).ShadowRoot||e instanceof ShadowRoot}function ze(e){const{overflow:o,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+r+n)&&!["inline","contents"].includes(i)}function Dn(e){return["table","td","th"].includes(re(e))}function Xe(e){const o=/firefox/i.test(Yt()),n=X(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||o&&n.willChange==="filter"||o&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((i=>n.willChange.includes(i)))||["paint","layout","strict","content"].some((i=>{const a=n.contain;return a!=null&&a.includes(i)}))}function Jt(){return!/^((?!chrome|android).)*safari/i.test(Yt())}function ct(e){return["html","body","#document"].includes(re(e))}function eo(e){return oe(e)?e:e.contextElement}const to={x:1,y:1};function de(e){const o=eo(e);if(!Q(o))return to;const n=o.getBoundingClientRect(),{width:r,height:i,fallback:a}=Qt(o);let l=(a?Te(n.width):n.width)/r,s=(a?Te(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function we(e,o,n,r){var i,a;o===void 0&&(o=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),s=eo(e);let u=to;o&&(r?oe(r)&&(u=de(r)):u=de(e));const c=s?q(s):window,d=!Jt()&&n;let p=(l.left+(d&&((i=c.visualViewport)==null?void 0:i.offsetLeft)||0))/u.x,h=(l.top+(d&&((a=c.visualViewport)==null?void 0:a.offsetTop)||0))/u.y,m=l.width/u.x,y=l.height/u.y;if(s){const x=q(s),w=r&&oe(r)?q(r):r;let g=x.frameElement;for(;g&&r&&w!==x;){const f=de(g),v=g.getBoundingClientRect(),C=getComputedStyle(g);v.x+=(g.clientLeft+parseFloat(C.paddingLeft))*f.x,v.y+=(g.clientTop+parseFloat(C.paddingTop))*f.y,p*=f.x,h*=f.y,m*=f.x,y*=f.y,p+=v.x,h+=v.y,g=q(g).frameElement}}return{width:m,height:y,top:h,right:p+m,bottom:h+y,left:p,x:p,y:h}}function ne(e){return((Kt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oo(e){return we(ne(e)).left+Oe(e).scrollLeft}function xe(e){if(re(e)==="html")return e;const o=e.assignedSlot||e.parentNode||xt(e)&&e.host||ne(e);return xt(o)?o.host:o}function no(e){const o=xe(e);return ct(o)?o.ownerDocument.body:Q(o)&&ze(o)?o:no(o)}function Ne(e,o){var n;o===void 0&&(o=[]);const r=no(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=q(r);return i?o.concat(a,a.visualViewport||[],ze(r)?r:[]):o.concat(r,Ne(r))}function bt(e,o,n){return o==="viewport"?me((function(r,i){const a=q(r),l=ne(r),s=a.visualViewport;let u=l.clientWidth,c=l.clientHeight,d=0,p=0;if(s){u=s.width,c=s.height;const h=Jt();(h||!h&&i==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}return{width:u,height:c,x:d,y:p}})(e,n)):oe(o)?me((function(r,i){const a=we(r,!0,i==="fixed"),l=a.top+r.clientTop,s=a.left+r.clientLeft,u=Q(r)?de(r):{x:1,y:1};return{width:r.clientWidth*u.x,height:r.clientHeight*u.y,x:s*u.x,y:l*u.y}})(o,n)):me((function(r){const i=ne(r),a=Oe(r),l=r.ownerDocument.body,s=he(i.scrollWidth,i.clientWidth,l.scrollWidth,l.clientWidth),u=he(i.scrollHeight,i.clientHeight,l.scrollHeight,l.clientHeight);let c=-a.scrollLeft+oo(r);const d=-a.scrollTop;return X(l).direction==="rtl"&&(c+=he(i.clientWidth,l.clientWidth)-s),{width:s,height:u,x:c,y:d}})(ne(e)))}function kt(e){return Q(e)&&X(e).position!=="fixed"?e.offsetParent:null}function Ct(e){const o=q(e);let n=kt(e);for(;n&&Dn(n)&&X(n).position==="static";)n=kt(n);return n&&(re(n)==="html"||re(n)==="body"&&X(n).position==="static"&&!Xe(n))?o:n||(function(r){let i=xe(r);for(;Q(i)&&!ct(i);){if(Xe(i))return i;i=xe(i)}return null})(e)||o}function In(e,o,n){const r=Q(o),i=ne(o),a=we(e,!0,n==="fixed",o);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((re(o)!=="body"||ze(i))&&(l=Oe(o)),Q(o)){const u=we(o,!0);s.x=u.x+o.clientLeft,s.y=u.y+o.clientTop}else i&&(s.x=oo(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}const jn={getClippingRect:function(e){let{element:o,boundary:n,rootBoundary:r,strategy:i}=e;const a=n==="clippingAncestors"?(function(c,d){const p=d.get(c);if(p)return p;let h=Ne(c).filter((w=>oe(w)&&re(w)!=="body")),m=null;const y=X(c).position==="fixed";let x=y?xe(c):c;for(;oe(x)&&!ct(x);){const w=X(x),g=Xe(x);(y?g||m:g||w.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=w:h=h.filter((f=>f!==x)),x=xe(x)}return d.set(c,h),h})(o,this._c):[].concat(n),l=[...a,r],s=l[0],u=l.reduce(((c,d)=>{const p=bt(o,d,i);return c.top=he(p.top,c.top),c.right=wt(p.right,c.right),c.bottom=wt(p.bottom,c.bottom),c.left=he(p.left,c.left),c}),bt(o,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:o,offsetParent:n,strategy:r}=e;const i=Q(n),a=ne(n);if(n===a)return o;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const u={x:0,y:0};if((i||!i&&r!=="fixed")&&((re(n)!=="body"||ze(a))&&(l=Oe(n)),Q(n))){const c=we(n);s=de(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-l.scrollLeft*s.x+u.x,y:o.y*s.y-l.scrollTop*s.y+u.y}},isElement:oe,getDimensions:function(e){return Q(e)?Qt(e):e.getBoundingClientRect()},getOffsetParent:Ct,getDocumentElement:ne,getScale:de,async getElementRects(e){let{reference:o,floating:n,strategy:r}=e;const i=this.getOffsetParent||Ct,a=this.getDimensions;return{reference:In(o,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>X(e).direction==="rtl"},qn=(e,o,n)=>{const r=new Map,i={platform:jn,...n},a={...i.platform,_c:r};return En(e,o,{...i,platform:a})};function ro(e,o){for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(typeof o[n]=="object"&&e[n]?ro(e[n],o[n]):e[n]=o[n])}const Z={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function be(e,o){let n=Z.themes[e]||{},r;do r=n[o],typeof r>"u"?n.$extend?n=Z.themes[n.$extend]||{}:(n=null,r=Z[o]):n=null;while(n);return r}function Wn(e){const o=[e];let n=Z.themes[e]||{};do n.$extend&&!n.$resetCss?(o.push(n.$extend),n=Z.themes[n.$extend]||{}):n=null;while(n);return o.map(r=>`v-popper--theme-${r}`)}function $t(e){const o=[e];let n=Z.themes[e]||{};do n.$extend?(o.push(n.$extend),n=Z.themes[n.$extend]||{}):n=null;while(n);return o}let pe=!1;if(typeof window<"u"){pe=!1;try{const e=Object.defineProperty({},"passive",{get(){pe=!0}});window.addEventListener("test",null,e)}catch{}}let io=!1;typeof window<"u"&&typeof navigator<"u"&&(io=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const ao=["auto","top","bottom","left","right"].reduce((e,o)=>e.concat([o,`${o}-start`,`${o}-end`]),[]),Bt={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},_t={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function St(e,o){const n=e.indexOf(o);n!==-1&&e.splice(n,1)}function Fe(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const W=[];let ie=null;const At={};function Tt(e){let o=At[e];return o||(o=At[e]=[]),o}let Qe=function(){};typeof window<"u"&&(Qe=window.Element);function S(e){return function(o){return be(o.theme,e)}}const He="__floating-vue__popper",so=()=>t.defineComponent({name:"VPopper",provide(){return{[He]:{parentPopper:this}}},inject:{[He]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:S("disabled")},positioningDisabled:{type:Boolean,default:S("positioningDisabled")},placement:{type:String,default:S("placement"),validator:e=>ao.includes(e)},delay:{type:[String,Number,Object],default:S("delay")},distance:{type:[Number,String],default:S("distance")},skidding:{type:[Number,String],default:S("skidding")},triggers:{type:Array,default:S("triggers")},showTriggers:{type:[Array,Function],default:S("showTriggers")},hideTriggers:{type:[Array,Function],default:S("hideTriggers")},popperTriggers:{type:Array,default:S("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:S("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:S("popperHideTriggers")},container:{type:[String,Object,Qe,Boolean],default:S("container")},boundary:{type:[String,Qe],default:S("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:S("strategy")},autoHide:{type:[Boolean,Function],default:S("autoHide")},handleResize:{type:Boolean,default:S("handleResize")},instantMove:{type:Boolean,default:S("instantMove")},eagerMount:{type:Boolean,default:S("eagerMount")},popperClass:{type:[String,Array,Object],default:S("popperClass")},computeTransformOrigin:{type:Boolean,default:S("computeTransformOrigin")},autoMinSize:{type:Boolean,default:S("autoMinSize")},autoSize:{type:[Boolean,String],default:S("autoSize")},autoMaxSize:{type:Boolean,default:S("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:S("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:S("preventOverflow")},overflowPadding:{type:[Number,String],default:S("overflowPadding")},arrowPadding:{type:[Number,String],default:S("arrowPadding")},arrowOverflow:{type:Boolean,default:S("arrowOverflow")},flip:{type:Boolean,default:S("flip")},shift:{type:Boolean,default:S("shift")},shiftCrossAxis:{type:Boolean,default:S("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:S("noAutoFocus")},disposeTimeout:{type:Number,default:S("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[He])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,o;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((o=this.popperShowTriggers)==null?void 0:o.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,o)=>(e[o]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:o=!1,force:n=!1}={}){var r,i;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,o),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:o=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:o}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,o),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(o=>o.nodeType===o.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Mn({mainAxis:this.distance,crossAxis:this.skidding}));const o=this.placement.startsWith("auto");if(o?e.middleware.push(zn({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Fn({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!o&&this.flip&&e.middleware.push(On({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Pn({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:i,middlewareData:a})=>{let l;const{centerOffset:s}=a.arrow;return r.startsWith("top")||r.startsWith("bottom")?l=Math.abs(s)>i.reference.width/2:l=Math.abs(s)>i.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:i,placement:a,middlewareData:l})=>{var s;if((s=l.autoSize)!=null&&s.skip)return{};let u,c;return a.startsWith("top")||a.startsWith("bottom")?u=i.reference.width:c=i.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Hn({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:i})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const n=await qn(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,o=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ie&&this.instantMove&&ie.instantMove&&ie!==this.parentPopper){ie.$_applyHide(!0),this.$_applyShow(!0);return}o?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,o=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ie=this),o?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const o=this.delay;return parseInt(o&&o[e]||o||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Fe(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ne(this.$_referenceNode),...Ne(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const o=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),i=o.x+o.width/2-(r.left+n.offsetLeft),a=o.y+o.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${i}px ${a}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let o;for(let n=0;n<W.length;n++)o=W[n],o.showGroup!==e&&(o.hide(),o.$emit("close-group"))}W.push(this),document.body.classList.add("v-popper--some-open");for(const o of $t(this.theme))Tt(o).push(this),document.body.classList.add(`v-popper--some-open--${o}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Fe(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,St(W,this),W.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of $t(this.theme)){const r=Tt(n);St(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}ie===this&&(ie=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const o=this.disposeTimeout;o!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},o)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Fe(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Bt,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Bt,this.popperTriggers,this.popperShowTriggers,e);const o=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,_t,this.triggers,this.hideTriggers,o),this.$_registerTriggerListeners([this.$_popperNode],_t,this.popperTriggers,this.popperHideTriggers,o)},$_registerEventListeners(e,o,n){this.$_events.push({targetNodes:e,eventType:o,handler:n}),e.forEach(r=>r.addEventListener(o,n,pe?{passive:!0}:void 0))},$_registerTriggerListeners(e,o,n,r,i){let a=n;r!=null&&(a=typeof r=="function"?r(a):r),a.forEach(l=>{const s=o[l];s&&this.$_registerEventListeners(e,s,i)})},$_removeEventListeners(e){const o=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(l=>l.removeEventListener(i,a)):o.push(n)}),this.$_events=o},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,o=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),o&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,o){for(const n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(o,r))}},$_applyAttrsToTarget(e){for(const o of this.$_targetNodes)for(const n in e){const r=e[n];r==null?o.removeAttribute(n):o.setAttribute(n,r)}},$_updateParentShownChildren(e){let o=this.parentPopper;for(;o;)e?o.shownChildren.add(this.randomId):(o.shownChildren.delete(this.randomId),o.pendingHide&&o.hide()),o=o.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ye>=e.left&&ye<=e.right&&ge>=e.top&&ge<=e.bottom){const o=this.$_popperNode.getBoundingClientRect(),n=ye-ee,r=ge-te,i=o.left+o.width/2-ee+(o.top+o.height/2)-te+o.width+o.height,a=ee+n*i,l=te+r*i;return Be(ee,te,a,l,o.left,o.top,o.left,o.bottom)||Be(ee,te,a,l,o.left,o.top,o.right,o.top)||Be(ee,te,a,l,o.right,o.top,o.right,o.bottom)||Be(ee,te,a,l,o.left,o.bottom,o.right,o.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(io){const e=pe?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",o=>Nt(o,!0),e),document.addEventListener("touchend",o=>Et(o,!0),e)}else window.addEventListener("mousedown",e=>Nt(e,!1),!0),window.addEventListener("click",e=>Et(e,!1),!0);window.addEventListener("resize",Zn)}function Nt(e,o){if(Z.autoHideOnMousedown)lo(e,o);else for(let n=0;n<W.length;n++){const r=W[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Et(e,o){Z.autoHideOnMousedown||lo(e,o)}function lo(e,o){const n={};for(let r=W.length-1;r>=0;r--){const i=W[r];try{const a=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Pt(i,a,e)){if(i.$_handleGlobalClose(e,o),!e.closeAllPopover&&e.closePopover&&a){let s=i.parentPopper;for(;s;)n[s.randomId]=!0,s=s.parentPopper;return}let l=i.parentPopper;for(;l&&Pt(l,l.containsGlobalTarget,e);)l.$_handleGlobalClose(e,o),l=l.parentPopper}})}catch{}}}function Pt(e,o,n){return n.closeAllPopover||n.closePopover&&o||Gn(e,n)&&!o}function Gn(e,o){if(typeof e.autoHide=="function"){const n=e.autoHide(o);return e.lastAutoHide=n,n}return e.autoHide}function Zn(){for(let e=0;e<W.length;e++)W[e].$_computePosition()}let ee=0,te=0,ye=0,ge=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ee=ye,te=ge,ye=e.clientX,ge=e.clientY},pe?{passive:!0}:void 0);function Be(e,o,n,r,i,a,l,s){const u=((l-i)*(o-a)-(s-a)*(e-i))/((s-a)*(n-e)-(l-i)*(r-o)),c=((n-e)*(o-a)-(r-o)*(e-i))/((s-a)*(n-e)-(l-i)*(r-o));return u>=0&&u<=1&&c>=0&&c<=1}const Un={extends:so()},Le=(e,o)=>{const n=e.__vccOpts||e;for(const[r,i]of o)n[r]=i;return n};function Xn(e,o,n,r,i,a){return t.openBlock(),t.createElementBlock("div",{ref:"reference",class:t.normalizeClass(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(e.slotData)))],2)}const Qn=Le(Un,[["render",Xn]]);function Yn(){var e=window.navigator.userAgent,o=e.indexOf("MSIE ");if(o>0)return parseInt(e.substring(o+5,e.indexOf(".",o)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let _e;function Ye(){Ye.init||(Ye.init=!0,_e=Yn()!==-1)}var Re={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ye(),t.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",_e&&this.$el.appendChild(e),e.data="about:blank",_e||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!_e&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Kn=t.withScopeId("data-v-b329ee4c");t.pushScopeId("data-v-b329ee4c");const Jn={class:"resize-observer",tabindex:"-1"};t.popScopeId();const er=Kn((e,o,n,r,i,a)=>(t.openBlock(),t.createBlock("div",Jn)));Re.render=er;Re.__scopeId="data-v-b329ee4c";Re.__file="src/components/ResizeObserver.vue";const uo=(e="theme")=>({computed:{themeClass(){return Wn(this[e])}}}),tr=t.defineComponent({name:"VPopperContent",components:{ResizeObserver:Re},mixins:[uo()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),or=["id","aria-hidden","tabindex","data-popper-placement"],nr={ref:"inner",class:"v-popper__inner"},rr=t.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),ir=t.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),ar=[rr,ir];function sr(e,o,n,r,i,a){const l=t.resolveComponent("ResizeObserver");return t.openBlock(),t.createElementBlock("div",{id:e.popperId,ref:"popover",class:t.normalizeClass(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:t.normalizeStyle(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:o[2]||(o[2]=t.withKeys(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[t.createElementVNode("div",{class:"v-popper__backdrop",onClick:o[0]||(o[0]=s=>e.autoHide&&e.$emit("hide"))}),t.createElementVNode("div",{class:"v-popper__wrapper",style:t.normalizeStyle(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[t.createElementVNode("div",nr,[e.mounted?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.renderSlot(e.$slots,"default")]),e.handleResize?(t.openBlock(),t.createBlock(l,{key:0,onNotify:o[1]||(o[1]=s=>e.$emit("resize",s))})):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],512),t.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:t.normalizeStyle(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},ar,4)],4)],46,or)}const co=Le(tr,[["render",sr]]),po={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Ke=function(){};typeof window<"u"&&(Ke=window.Element);const lr=t.defineComponent({name:"VPopperWrapper",components:{Popper:Qn,PopperContent:co},mixins:[po,uo("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Ke,Boolean],default:void 0},boundary:{type:[String,Ke],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function ur(e,o,n,r,i,a){const l=t.resolveComponent("PopperContent"),s=t.resolveComponent("Popper");return t.openBlock(),t.createBlock(s,t.mergeProps({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:o[0]||(o[0]=()=>e.$emit("show")),onHide:o[1]||(o[1]=()=>e.$emit("hide")),"onUpdate:shown":o[2]||(o[2]=u=>e.$emit("update:shown",u)),onApplyShow:o[3]||(o[3]=()=>e.$emit("apply-show")),onApplyHide:o[4]||(o[4]=()=>e.$emit("apply-hide")),onCloseGroup:o[5]||(o[5]=()=>e.$emit("close-group")),onCloseDirective:o[6]||(o[6]=()=>e.$emit("close-directive")),onAutoHide:o[7]||(o[7]=()=>e.$emit("auto-hide")),onResize:o[8]||(o[8]=()=>e.$emit("resize"))}),{default:t.withCtx(({popperId:u,isShown:c,shouldMountContent:d,skipTransition:p,autoHide:h,show:m,hide:y,handleResize:x,onResize:w,classes:g,result:f})=>[t.renderSlot(e.$slots,"default",{shown:c,show:m,hide:y}),t.createVNode(l,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:c,mounted:d,"skip-transition":p,"auto-hide":h,"handle-resize":x,classes:g,result:f,onHide:y,onResize:w},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"popper",{shown:c,hide:y})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const dt=Le(lr,[["render",ur]]),cr={...dt,name:"VDropdown",vPopperTheme:"dropdown"},dr={...dt,name:"VMenu",vPopperTheme:"menu"},pr={...dt,name:"VTooltip",vPopperTheme:"tooltip"},fr=t.defineComponent({name:"VTooltipDirective",components:{Popper:so(),PopperContent:co},mixins:[po],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>be(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>be(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const o=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(o,r)):this.onResult(o,n)}},onResult(e,o){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=o)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),mr=["innerHTML"],hr=["textContent"];function yr(e,o,n,r,i,a){const l=t.resolveComponent("PopperContent"),s=t.resolveComponent("Popper");return t.openBlock(),t.createBlock(s,t.mergeProps({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:t.withCtx(({popperId:u,isShown:c,shouldMountContent:d,skipTransition:p,autoHide:h,hide:m,handleResize:y,onResize:x,classes:w,result:g})=>[t.createVNode(l,{ref:"popperContent",class:t.normalizeClass({"v-popper--tooltip-loading":e.loading}),"popper-id":u,theme:e.theme,shown:c,mounted:d,"skip-transition":p,"auto-hide":h,"handle-resize":y,classes:w,result:g,onHide:m,onResize:x},{default:t.withCtx(()=>[e.html?(t.openBlock(),t.createElementBlock("div",{key:0,innerHTML:e.finalContent},null,8,mr)):(t.openBlock(),t.createElementBlock("div",{key:1,textContent:t.toDisplayString(e.finalContent)},null,8,hr))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const gr=Le(fr,[["render",yr]]),fo="v-popper--has-tooltip";function vr(e,o){let n=e.placement;if(!n&&o)for(const r of ao)o[r]&&(n=r);return n||(n=be(e.theme||"tooltip","placement")),n}function mo(e,o,n){let r;const i=typeof o;return i==="string"?r={content:o}:o&&i==="object"?r=o:r={content:!1},r.placement=vr(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let De,ke,wr=0;function xr(){if(De)return;ke=t.ref([]),De=t.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:ke}},render(){return this.directives.map(o=>t.h(gr,{...o.options,shown:o.shown||o.options.shown,key:o.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),De.mount(e)}function br(e,o,n){xr();const r=t.ref(mo(e,o,n)),i=t.ref(!1),a={id:wr++,options:r,shown:i};return ke.value.push(a),e.classList&&e.classList.add(fo),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function ho(e){if(e.$_popper){const o=ke.value.indexOf(e.$_popper.item);o!==-1&&ke.value.splice(o,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(fo)}function Vt(e,{value:o,modifiers:n}){const r=mo(e,o,n);if(!r.content||be(r.theme||"tooltip","disabled"))ho(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=br(e,o,n),typeof o.shown<"u"&&o.shown!==e.$_popperOldShown&&(e.$_popperOldShown=o.shown,o.shown?i.show():i.hide())}}const kr={beforeMount:Vt,updated:Vt,beforeUnmount(e){ho(e)}};function zt(e){e.addEventListener("mousedown",Ee),e.addEventListener("click",Ee),e.addEventListener("touchstart",yo,pe?{passive:!0}:!1)}function Ot(e){e.removeEventListener("mousedown",Ee),e.removeEventListener("click",Ee),e.removeEventListener("touchstart",yo),e.removeEventListener("touchend",go),e.removeEventListener("touchcancel",vo)}function Ee(e){const o=e.currentTarget;e.closePopover=!o.$_vclosepopover_touch,e.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}function yo(e){if(e.changedTouches.length===1){const o=e.currentTarget;o.$_vclosepopover_touch=!0;const n=e.changedTouches[0];o.$_vclosepopover_touchPoint=n,o.addEventListener("touchend",go),o.addEventListener("touchcancel",vo)}}function go(e){const o=e.currentTarget;if(o.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],r=o.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}}function vo(e){const o=e.currentTarget;o.$_vclosepopover_touch=!1}const Cr={beforeMount(e,{value:o,modifiers:n}){e.$_closePopoverModifiers=n,(typeof o>"u"||o)&&zt(e)},updated(e,{value:o,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,o!==n&&(typeof o>"u"||o?zt(e):Ot(e))},beforeUnmount(e){Ot(e)}};function $r(e,o={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,ro(Z,o),e.directive("tooltip",kr),e.directive("close-popper",Cr),e.component("VTooltip",pr),e.component("VDropdown",cr),e.component("VMenu",dr))}const Br={version:"5.2.2",install:$r,options:Z},_r="c3fd21c9-c91a-4c66-baa5-c3e050c2cc74",Lt="2026-10-13T14:00:00.000Z",Sr="69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1",ae="https://i.allsvgicons.com/lucide",L={marketplace:"https://svgl.app/library/mercado-libre.svg",shipping:`${ae}/truck.svg`,exchange:`${ae}/arrow-left-right.svg`,returns:`${ae}/undo-2.svg`,support:`${ae}/headphones.svg`,chat:`${ae}/message-circle.svg`,cancel:`${ae}/x.svg`,payment:`${ae}/credit-card.svg`},M={logo:L.marketplace,title:"Mercado Livre",subtitle:"Atendimento online"},F=(e,o,n)=>({logo:e,eyebrow:"MERCADO LIVRE",title:o,subtitle:n}),Me=[{name:"name",alias:"Nome",required:!0},{name:"phone",alias:"Telefone",required:!0},{name:"email",alias:"E-mail",required:!1}],Ar=[{name:"name",alias:"Nome",required:!0},{name:"phone",alias:"Telefone",required:!0},{name:"email",alias:"E-mail",required:!1},{name:"cpf",alias:"CPF",required:!0}],H=e=>({id:e.id,companyId:_r,name:e.name,action:e.action,message:null,automaticMessage:null,callOnQueue:null,uraDescription:null,interactiveMessageId:null,configId:e.configId??null,queueId:null,redirectQueue:null,redirectRuleId:null,questionnaire:null,webhook:null,isRoot:!1,redirectDefault:!1,redirectTimeout:60,delay:null,disableTyping:!1,settings:e.settings??null,archivedAt:null,autoTagEnabled:!1,autoTagIds:[],createdAt:Lt,updatedAt:Lt}),j=(e,o)=>({id:e,nextRuleId:o}),Rt=H({id:"a1111111-1111-4111-8111-111111111101",name:"Acompanhar pedido",action:"service",settings:{header:M,body:F(L.shipping,"Acompanhar pedido","Vamos te ajudar a localizar a entrega."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Mt=H({id:"a1111111-1111-4111-8111-111111111102",name:"Troca",action:"service",settings:{header:M,body:F(L.exchange,"Solicitar troca","Vamos te orientar sobre as opções de troca."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Ft=H({id:"a1111111-1111-4111-8111-111111111103",name:"Devolução",action:"service",settings:{header:M,body:F(L.returns,"Solicitar devolução","Vamos te orientar sobre a devolução."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Ht=H({id:"a1111111-1111-4111-8111-111111111104",name:"Consultar solicitação",action:"service",settings:{header:M,body:F(L.support,"Consultar solicitação","Conte o que você precisa sobre o atendimento."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Dt=H({id:"a1111111-1111-4111-8111-111111111105",name:"Falar com a equipe",action:"service",settings:{header:M,body:F(L.chat,"Falar com a equipe","Conte o que você precisa e vamos te ajudar."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),It=H({id:"a1111111-1111-4111-8111-111111111106",name:"Cancelar pedido",action:"service",settings:{header:M,body:F(L.cancel,"Cancelar pedido","Vamos verificar se o pedido ainda pode ser cancelado."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),jt=H({id:"a1111111-1111-4111-8111-111111111107",name:"Pagamento",action:"service",settings:{header:M,body:F(L.payment,"Pagamento","Dúvidas sobre Pix, boleto ou cartão."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Ie=H({id:"b2222222-2222-4222-8222-222222222201",name:"Acompanhar pedido",action:"identification",settings:{header:M,body:F(L.shipping,"Localizar pedido","Informe seus dados para acompanhar a entrega."),form:{fields:[...Me]}}}),je=H({id:"b2222222-2222-4222-8222-222222222202",name:"Solicitar troca",action:"identification",settings:{header:M,body:F(L.exchange,"Solicitar troca","Informe seus dados para iniciar o atendimento."),form:{fields:[...Me]}}}),qe=H({id:"b2222222-2222-4222-8222-222222222203",name:"Solicitar devolução",action:"identification",settings:{header:M,body:F(L.returns,"Solicitar devolução","Informe seus dados para falar sobre a devolução."),form:{fields:[...Me]}}}),We=H({id:"b2222222-2222-4222-8222-222222222204",name:"Cancelar pedido",action:"identification",settings:{header:M,body:F(L.cancel,"Cancelar pedido","Informe seus dados para verificar o cancelamento."),form:{fields:[...Ar]}}}),Ge=H({id:"b2222222-2222-4222-8222-222222222205",name:"Pagamento",action:"identification",settings:{header:M,body:F(L.payment,"Pagamento","Informe seus dados para falar sobre o pagamento."),form:{fields:[...Me]}}}),Ze=H({id:"c3333333-3333-4333-8333-333333333301",name:"Trocas e devoluções",action:"screen",settings:{header:M,body:F(L.returns,"Trocas e devoluções","Escolha o que você precisa.")}}),Je=H({id:"d0000000-0000-4000-8000-000000000001",name:"Mercado Livre",action:"screen",configId:"37b0b2d3-6a07-4567-a5ad-7456a820905d",settings:{header:M,body:F(L.marketplace,"Como podemos ajudar?","Escolha uma opção para continuar.")}}),wo={id:Sr,rules:[Ie,We,Ge,Ze,Dt,je,qe,Ht,Rt,It,jt,Mt,Ft,Je],edges:{[Je.id]:[j("aa2db433-f691-4b0e-b2f3-703eb131fcc1",Ie.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc2",We.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc3",Ge.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc4",Ze.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc5",Dt.id)],[Ze.id]:[j("bb2db433-f691-4b0e-b2f3-703eb131fcc1",je.id),j("bb2db433-f691-4b0e-b2f3-703eb131fcc2",qe.id),j("bb2db433-f691-4b0e-b2f3-703eb131fcc3",Ht.id)],[Ie.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc1",Rt.id)],[We.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc2",It.id)],[Ge.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc3",jt.id)],[je.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc4",Mt.id)],[qe.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc5",Ft.id)]}},Tr=Je,Nr=e=>wo.rules.find(o=>o.id===e),Er={configurations:{alias:"Mercado Livre",general:{defaultBehavior:"inactive",language:"pt-BR",isClosable:!0},appearance:{theme:"light",primaryColor:"#FFE600"},anchor:{label:"Fale conosco",size:"medium",logo:"https://svgl.app/library/mercado-libre.svg",position:"bottom-right",offset:{x:32,y:36}}}},Pr={install:e=>{e.use(Br),e.component("AppIdentificationPage",ot),e.component("AppFormTextInput",et),e.component("AppWidgetAnchor",nt),e.component("AppServicePage",it),e.component("AppScreenPage",at),e.component("AppWidgetView",st),e.component("AppTextInput",Wt),e.component("AppCarousel",tt),e.component("AppMessage",rt),e.component("AppWidget",Gt),e.component("AppButton",le),e.component("AppGroup",J),e.component("AppIcon",R),e.component("AppText",E)}};exports.AppButton=le;exports.AppCarousel=tt;exports.AppFormTextInput=et;exports.AppGroup=J;exports.AppIcon=R;exports.AppIdentificationPage=ot;exports.AppMessage=rt;exports.AppScreenPage=at;exports.AppServicePage=it;exports.AppText=E;exports.AppTextInput=Wt;exports.AppWidget=Gt;exports.AppWidgetAnchor=nt;exports.AppWidgetView=st;exports.default=Pr;exports.demoRootRule=Tr;exports.demoWidgetConfig=Er;exports.demoWorkflow=wo;exports.findDemoRuleById=Nr;exports.useAppWidget=Ce;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");function wo(){return{maskPhone:i=>{if(!i)return"";let s=i.replace(/\D/g,"");return s.length<=4?s:(s.startsWith("0")&&!s.startsWith("0800")&&s.length>3&&(s=s.replace(/^0+/,"")),s.startsWith("0800")?s.length>11?s:s.replace(/(0800)(\d{0,3})(\d{0,4})/,(a,l,u,c)=>[l,u,c].filter(Boolean).join(" ")):s.length>11?s:s.length<=8?s.replace(/(\d{4})(\d{0,4})/,"$1-$2").replace(/-$/,""):s.length===9?s.replace(/(\d{5})(\d{0,4})/,"$1-$2"):s.length===10?s.replace(/(\d{2})(\d{0,4})(\d{0,4})/,"($1) $2-$3").replace(/-$/,""):s.replace(/(\d{2})(\d{0,5})(\d{0,4})/,"($1) $2-$3").replace(/-$/,""))},maskCnpj:i=>{const s=i.toUpperCase().replace(/[^0-9A-Z]/g,"");let a="";for(const l of s){if(a.length>=14)break;(a.length<12||/\d/.test(l))&&(a+=l)}return a.replace(/^([0-9A-Z]{2})([0-9A-Z])/,"$1.$2").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})([0-9A-Z])/,"$1.$2.$3").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})([0-9A-Z])/,"$1.$2.$3/$4").replace(/^([0-9A-Z]{2})\.([0-9A-Z]{3})\.([0-9A-Z]{3})\/([0-9A-Z]{4})(\d)/,"$1.$2.$3/$4-$5")},maskCep:i=>i.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d)/,"$1-$2"),maskCpf:i=>i.replace(/\D/g,"").slice(0,11).replace(/^(\d{3})(\d)/,"$1.$2").replace(/^(\d{3})\.(\d{3})(\d)/,"$1.$2.$3").replace(/^(\d{3})\.(\d{3})\.(\d{3})(\d)/,"$1.$2.$3-$4")}}function Rt(){return{}}const Oe=e.ref([]),xo=e.ref("");function Ot(){return{messages:Oe,text:xo,setMessages:n=>{Oe.value=[...n]},addMessage:n=>{Oe.value.push(n)}}}const bo=t=>t==="voice";function Ht(t){const o=Ot(),n=Rt(),r=e.computed(()=>bo(e.toValue(t)?.settings?.behavior)?"voice":"chat"),i=e.computed(()=>r.value==="voice"?n:o);return{behavior:r,service:i,voice:n,chat:o}}const fe=e.ref([]),He=e.ref(void 0),te=e.ref(void 0),ue=()=>{const t=d=>{const y=new Set(Object.values(d.edges??{}).flatMap(v=>v.map(g=>g.nextRuleId)));return d.rules.find(v=>!y.has(v.id))??d.rules[0]},o=(d,y)=>{const v=new Map(d.rules.map(g=>[g.id,g]));return(d.edges[y]??[]).flatMap(g=>{const f=v.get(g.nextRuleId);return f?[f]:[]})},n=e.computed(()=>new Map((te.value?.rules??[]).map(d=>[d.id,d]))),r=e.computed(()=>te.value?t(te.value):void 0),i=e.computed(()=>{const d=He.value;return d&&n.value.get(d)||r.value}),s=e.computed(()=>!te.value||!i.value?[]:o(te.value,i.value.id)),a=Ht(i);return{currentRuleId:He,currentRule:i,rootRule:r,workflow:te,history:fe,edges:s,setCurrentRuleId:d=>{He.value=d},clearHistory:()=>{fe.value=[]},setWorkflow:d=>{te.value=d},pushHistory:d=>{fe.value.push(d)},setHistory:d=>{fe.value=[...d]},popHistory:()=>fe.value.pop(),...a}},se=t=>t==="name",ct=t=>!!t?.trim(),ko=t=>{const o=t.filter(r=>se(r.name)),n=t.filter(r=>!se(r.name));return[...o,...n]};function Co(t,o){const{maskPhone:n,maskCpf:r}=wo(),{history:i}=ue(),s=e.ref(0),a=e.ref("forward"),l=e.ref(null),u=e.computed(()=>{const b=e.toValue(t),T=b.settings?.form&&b.settings.form.fields||[];return ko(T)}),c=e.reactive(Object.fromEntries(u.value.map(b=>[b.name,""]))),h=e.computed(()=>u.value[s.value]),m=e.computed(()=>s.value>=u.value.length-1),p=e.computed(()=>i.value.length>0||s.value>0),d=e.computed(()=>a.value==="back"?"step-back":"step-forward");e.watch(s,async()=>{await e.nextTick();const b=l.value;if(!b)return;(b.querySelector(".is-active input")??b.querySelector("input"))?.focus({preventScroll:!0})});const y=e.computed(()=>u.value.every(b=>!b.required||ct(c[b.name]))),v=b=>{const T=u.value[b];return T?T.required&&!ct(c[T.name])?!1:b>=u.value.length-1?y.value:!0:y.value},g=e.computed(()=>v(s.value)),f=e.computed(()=>{const b=u.value.find(T=>se(T.name));return b?c[b.name]?.trim().split(/\s+/)[0]??"":""}),w=b=>{const T=u.value[b],P=f.value,R=u.value.length?`Passo ${b+1} de ${u.value.length}`:"",z=e.toValue(t),L=b>=u.value.length-1;if(!T)return{eyebrow:R,title:z.settings?.body?.title??"",subtitle:z.settings?.body?.subtitle??""};if(se(T.name))return{eyebrow:R,title:"Como podemos te chamar?",subtitle:"Primeiro, nos diga o seu nome."};const O=L?P?`Quase lá, ${P}.`:"Quase lá.":P?`Olá, ${P}.`:"Olá.",W=T.required?`Informe seu ${T.alias} para continuar.`:`Gostaria de deixar seu ${T.alias}?`;return{eyebrow:R,title:O,subtitle:W}},k=e.computed(()=>w(s.value)),A=b=>b==="email"?"email":b==="phone"?"tel":"text",B=b=>b==="email"?"email":b==="phone"?"call":se(b)?"person":b==="order"?"receipt":"badge",C=b=>b.required?`${b.alias} *`:b.alias,x=b=>se(b.name)?"Seu nome":b.name==="phone"?"Seu telefone":b.name==="email"?"Seu e-mail":b.name==="cpf"?"000.000.000-00":b.alias,$=b=>{if(b==="phone")return n;if(b==="cpf")return r},N=()=>{y.value&&o("submit",{...c})};return{stepTransition:d,currentField:h,canContinue:g,currentStep:s,isLastStep:m,stepIntro:k,fieldHost:l,showBack:p,fields:u,form:c,continueStep:()=>{if(g.value){if(m.value||u.value.length===0)return N();a.value="forward",s.value+=1}},canContinueAt:v,introFor:w,fieldLabel:C,fieldPlaceholder:x,fieldType:A,fieldMask:$,fieldIcon:B,goBack:()=>{if(s.value>0){a.value="back",s.value-=1;return}o("back")}}}function Ft(t){const o=e.computed(()=>t.small?"!yu-h-8 !yu-min-h-[2rem]":"!yu-h-12 !yu-min-h-[3rem]"),n=e.computed(()=>"!yu-text-xs"),r=e.computed(()=>t.fluid?"!yu-w-full":"yu-w-fit");return{height:o,textSize:n,width:r}}function $o(t,o){const n=e.computed(()=>({"!yu-font-plus":o.plus,"!yu-font-inter":o.inter,"!yu-font-titillium":o.titillium,"!yu-font-mono":o.mono})),r=e.computed(()=>({"!yu-text-white":o.white,"!yu-text-primary":o.primary,"!yu-text-secondary":o.secondary,"!yu-text-base":o.neutral,"!yu-text-neutral dark:!yu-text-neutral-200":o.gray})),i=e.computed(()=>({"!yu-font-thin":o.thin,"!yu-font-extralight":o.extralight,"!yu-font-light":o.light,"!yu-font-normal":o.normal,"!yu-font-medium":o.medium,"!yu-font-semibold":o.semibold,"!yu-font-bold":o.bold,"!yu-font-extrabold":o.extrabold,"!yu-font-black":o.black})),s=e.computed(()=>({...{title:{"!yu-text-xl":o.small,"!yu-text-2xl":o.base,"!yu-text-3xl":o.large,"!yu-text-4xl":o.extraLarge},subtitle:{"!yu-text-sm":o.small,"!yu-text-md":o.base,"!yu-text-xl":o.large},text:{"!yu-text-xxs":o.extraSmall,"!yu-text-xs":o.small,"!yu-text-sm":o.base,"!yu-text-lg":o.large,"!yu-text-2xl":o.extraLarge}}[t]}));return{fontClass:n,colorClass:r,weightClass:i,sizeClass:s}}const Bo=e.defineComponent({__name:"app-text",props:{extraSmall:{type:Boolean},inter:{type:Boolean},plus:{type:Boolean},titillium:{type:Boolean},mono:{type:Boolean},small:{type:Boolean},base:{type:Boolean},large:{type:Boolean},extraLarge:{type:Boolean},thin:{type:Boolean},extralight:{type:Boolean},light:{type:Boolean},normal:{type:Boolean},medium:{type:Boolean},semibold:{type:Boolean},bold:{type:Boolean},extrabold:{type:Boolean},black:{type:Boolean},primary:{type:Boolean},secondary:{type:Boolean},gray:{type:Boolean},neutral:{type:Boolean},white:{type:Boolean}},setup(t){const o=t,{fontClass:n,colorClass:r,weightClass:i,sizeClass:s}=$o("text",o);return(a,l)=>(e.openBlock(),e.createElementBlock("p",{class:e.normalizeClass(["yu-font-primary yu-text-sm yu-font-normal yu-text-gray-900 dark:yu-text-neutral-100",[e.unref(n),e.unref(r),e.unref(i),e.unref(s)]])},[e.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),Pe=(t,o)=>{const n=t.__vccOpts||t;for(const[r,i]of o)n[r]=i;return n},V=Pe(Bo,[["__scopeId","data-v-030e2417"]]),U=e.defineComponent({__name:"app-group",props:{fit:{type:Boolean},full:{type:Boolean},row:{type:Boolean},col:{type:Boolean},gapNone:{type:Boolean},gapXs:{type:Boolean},gapBase:{type:Boolean},gapSm:{type:Boolean},gapMd:{type:Boolean},gapLg:{type:Boolean},wrap:{type:Boolean},paddingNone:{type:Boolean},paddingBase:{type:Boolean},paddingXs:{type:Boolean},paddingSm:{type:Boolean},paddingMd:{type:Boolean},paddingLg:{type:Boolean},center:{type:Boolean},justifyEnd:{type:Boolean},centerBetween:{type:Boolean},border:{type:Boolean},borderPrimary:{type:Boolean},rounded:{type:Boolean},roundedTop:{type:Boolean},roundedBottom:{type:Boolean},bgPrimary:{type:Boolean},bgWhite:{type:Boolean},divisor:{type:Boolean}},setup(t){const o=t,n=e.computed(()=>o.fit?"yu-w-fit yu-h-fit":o.full?"yu-w-full yu-h-full":""),r=e.computed(()=>o.justifyEnd?"yu-items-end yu-justify-end":o.center?"yu-items-center yu-justify-center":o.centerBetween?"yu-items-center yu-justify-between":""),i=e.computed(()=>o.row?"yu-flex-row":o.col?"yu-flex-col":"yu-flex-row"),s=e.computed(()=>o.gapBase?"yu-gap-4":o.gapXs?"yu-gap-1":o.gapSm?"yu-gap-2":o.gapMd?"yu-gap-6":o.gapLg?"yu-gap-8":o.gapNone?"yu-gap-0":"yu-gap-4"),a=e.computed(()=>o.wrap?"yu-flex-wrap":""),l=e.computed(()=>o.paddingXs?"yu-p-1":o.paddingSm?"yu-p-2":o.paddingBase?"yu-p-4":o.paddingMd?"yu-p-6":o.paddingLg?"yu-p-8":""),u=e.computed(()=>o.border?"yu-border":o.borderPrimary?"yu-border yu-border-primary":""),c=e.computed(()=>o.rounded?"yu-rounded-md":o.roundedTop?"yu-rounded-t-md":o.roundedBottom?"yu-rounded-b-md":""),h=e.computed(()=>o.bgPrimary?"yu-bg-primary":o.bgWhite?"yu-bg-white":""),m=e.computed(()=>o.divisor&&o.col?"yu-divide-y":o.divisor&&o.row?"yu-divide-x":""),p=e.computed(()=>[i.value,s.value,a.value,l.value,r.value,u.value,c.value,h.value,n.value,m.value]);return(d,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yu-flex",p.value])},[e.renderSlot(d.$slots,"default")],2))}}),_o={class:"yu-flex yu-flex-col yu-items-stretch yu-w-full yu-cursor-text yu-gap-1","data-testid":"app-form-text-input"},So=["value","type","placeholder","disabled","maxlength","aria-invalid"],Qe=e.defineComponent({__name:"app-form-text-input",props:{modelValue:{default:""},type:{default:"text"},placeholder:{},maxLength:{},disabled:{type:Boolean},invalid:{type:Boolean},valid:{type:Boolean},fluid:{type:Boolean},maskFunction:{}},emits:["update:modelValue","keyup-enter"],setup(t,{expose:o,emit:n}){const r=t,i=n,s=e.computed(()=>e.useSlots());function a(g){return!!s.value[g]}const l=e.ref(""),u=e.ref(!1);function c(g){if(!r.maskFunction)return g;try{const f=r.maskFunction(g);return typeof f=="string"?f:g}catch{return g}}e.watch(()=>r.modelValue,g=>{if(g==null){l.value="";return}l.value=r.maskFunction?c(g):g},{immediate:!0});const{width:h}=Ft(r),m=e.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":""),p=e.computed(()=>r.invalid?"yu-text-red-600 placeholder:yu-text-red-300 placeholder:yu-font-medium":r.valid?"yu-text-green-700 placeholder:yu-font-medium":"yu-text-gray-900 placeholder:yu-text-gray-400 placeholder:yu-font-medium dark:yu-text-neutral-100 dark:placeholder:yu-text-neutral-500"),d=e.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":"yu-text-gray-500"),y=e.computed(()=>r.disabled?"yu-opacity-50 yu-pointer-events-none":"");function v(g){const w=g.target.value;l.value=r.maskFunction?c(w):w,i("update:modelValue",l.value)}return o({focus:u,content:l}),(g,f)=>(e.openBlock(),e.createBlock(U,{class:e.normalizeClass([e.unref(h),y.value]),col:"","gap-none":""},{default:e.withCtx(()=>[e.createElementVNode("label",_o,[a("default")?(e.openBlock(),e.createBlock(V,{key:0,small:"",gray:"",class:e.normalizeClass([m.value])},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["class"])):e.createCommentVNode("",!0),e.createElementVNode("input",{class:e.normalizeClass(["yu-w-full yu-bg-transparent yu-border-0 yu-outline-none yu-p-0 yu-m-0 yu-appearance-none yu-font-primary yu-text-2xl yu-leading-tight yu-caret-gray-900 dark:yu-caret-white",[p.value]]),value:l.value,type:t.type,placeholder:t.placeholder,disabled:t.disabled,maxlength:t.maxLength,"aria-invalid":t.invalid?!0:void 0,onInput:v,onFocus:f[0]||(f[0]=w=>u.value=!0),onBlur:f[1]||(f[1]=w=>u.value=!1),onKeyup:f[2]||(f[2]=e.withKeys(w=>i("keyup-enter"),["enter"]))},null,42,So)]),a("feedback")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yu-mt-1",[d.value]])},[e.renderSlot(g.$slots,"feedback")],2)):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});function Ao(t){const o=e.computed(()=>t.small?"!yu-h-8 !yu-min-h-[2rem]":""),n=e.computed(()=>"!yu-text-xs"),r=e.computed(()=>t.small?"yu-px-[0.625rem]":"yu-p-[0.9rem]"),i=e.computed(()=>t.fluid?"!yu-w-full":"yu-w-fit");return{height:o,textSize:n,padding:r,width:i}}const M=e.defineComponent({__name:"app-icon",props:{small:Boolean,large:Boolean,extraLarge:Boolean,gray:Boolean,base:Boolean,light:Boolean,dark:Boolean,outlined:Boolean},setup(t){const o=t,n=e.computed(()=>o.small?"!yu-text-xs yu-w-4 yu-h-4":o.large?"!yu-text-2xl yu-w-8 yu-h-8":o.extraLarge?"!yu-text-4xl yu-w-10 yu-h-10":"!yu-text-base yu-w-6 yu-h-6"),r=e.computed(()=>o.dark?"yu-text-neutral-800 dark:yu-text-white":o.light?"yu-text-white dark:yu-text-neutral-800":o.gray?"yu-text-gray-500 dark:yu-text-neutral-400":""),i=e.computed(()=>o.outlined?"material-symbols-outlined":"material-icons");return(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["notranslate yu-flex yu-items-center yu-justify-center yu-text-center",[n.value,r.value,i.value]]),"data-testid":"app-icon"},[e.renderSlot(s.$slots,"default")],2))}}),To=["disabled"],No={class:"yu-flex yu-items-center yu-justify-center yu-gap-2"},J=e.defineComponent({__name:"app-button",props:{small:Boolean,soft:Boolean,outline:Boolean,ghost:Boolean,link:Boolean,round:Boolean,icon:Boolean,fluid:Boolean,disabled:Boolean,loading:Boolean,alert:Boolean,warning:Boolean,success:Boolean,block:Boolean},emits:["click"],setup(t){const o=t,n=e.computed(()=>e.useSlots());function r(d){return!!n.value[d]}const{height:i,textSize:s,padding:a,width:l}=Ao(o),u=e.computed(()=>o.soft?"yu-bg-primary-50 !yu-text-primary-400":o.alert?"yu-bg-red-500 !yu-text-white":o.warning?"yu-bg-amber-500 !yu-text-white":o.success?"yu-bg-green-500 !yu-text-white":o.outline?"yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300 dark:!yu-border-neutral-600 dark:hover:!yu-bg-neutral-700 dark:hover:!yu-border-neutral-500 dark:!yu-text-neutral-100":o.ghost?"yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100 dark:!yu-text-neutral-200 dark:hover:!yu-bg-neutral-700":o.link?"yu-bg-transparent !yu-text-blue-600 hover:yu-underline":"yu-bg-primary-500 !yu-text-[var(--yu-primary-fg)]"),c=e.computed(()=>o.block?"yu-rounded-none":o.round?"yu-rounded-full":"yu-rounded-lg"),h=e.computed(()=>o.icon&&o.small?"!yu-w-8 !yu-h-8 yu-p-0":o.icon?"!yu-w-11 !yu-h-11 yu-p-0":a.value),m=e.computed(()=>o.icon?"yu-justify-center":"yu-justify-between"),p=e.computed(()=>o.disabled||o.loading?"yu-opacity-50 yu-pointer-events-none":"");return(d,y)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["yu-inline-flex yu-items-center yu-gap-2 yu-cursor-pointer yu-transition-all yu-border yu-border-transparent disabled:yu-opacity-50 disabled:yu-pointer-events-none hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80",[e.unref(s),u.value,c.value,e.unref(l),e.unref(i),p.value,h.value,m.value]]),type:"button",disabled:t.disabled||t.loading,"data-testid":"app-button",onClick:y[0]||(y[0]=v=>d.$emit("click",v))},[e.createElementVNode("div",No,[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"yu-animate-spin yu-flex yu-items-center yu-justify-center",small:"",outlined:""},{default:e.withCtx(()=>[...y[1]||(y[1]=[e.createTextVNode("progress_activity",-1)])]),_:1})):r("icon")?(e.openBlock(),e.createBlock(M,{key:1,small:""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"icon")]),_:3})):e.createCommentVNode("",!0),!t.loading&&r("default")?(e.openBlock(),e.createBlock(V,{key:2,class:"!yu-text-inherit",small:""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3})):e.createCommentVNode("",!0)]),!t.loading&&r("trailing")?(e.openBlock(),e.createBlock(M,{key:0,small:""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"trailing")]),_:3})):e.createCommentVNode("",!0)],10,To))}}),Vo=["aria-hidden"],Po=e.defineComponent({__name:"app-carousel",props:{modelValue:{default:0},vertical:{type:Boolean},fill:{type:Boolean}},emits:["update:modelValue"],setup(t,{expose:o,emit:n}){const r=t,i=n,s=e.useSlots(),a=e.ref(null),l=e.ref(null),u=e.ref(0),c=e.ref(0),h=e.ref(!1);let m=null;const p=e.computed(()=>Math.max(r.modelValue,0)),d=()=>(s.default?.()??[]).flatMap(x=>x.type===e.Comment||x.type===e.Text?[]:x.type===e.Fragment?(x.children??[]).filter($=>!!$&&typeof $=="object"&&$.type!==e.Comment&&$.type!==e.Text):[x]),y=x=>{const $=Math.abs(x-p.value);return $===0?"is-active":$===1?"is-adjacent":"is-far"},v=x=>{const $=l.value?.childElementCount||d().length,N=Math.min(Math.max(x,0),Math.max($-1,0));N!==r.modelValue&&i("update:modelValue",N)},g=()=>{const x=a.value;x&&(x.scrollLeft&&(x.scrollLeft=0),x.scrollTop&&(x.scrollTop=0))},f=()=>{const x=a.value,$=l.value;if(!x||!$)return;g();const N=[...$.children],S=parseFloat(getComputedStyle($).gap)||0,E=parseFloat(getComputedStyle(x).scrollPaddingTop)||0,b=z=>r.vertical?z.offsetHeight:z.offsetWidth,T=N[p.value]?b(N[p.value]):0,P=r.vertical&&r.fill?Math.max((x.clientHeight-T)/2,0):E,R=N.slice(0,p.value).reduce((z,L)=>z+b(L)+S,0);u.value=P-R,c.value=r.vertical&&!r.fill?T+E*2:0,h.value=!0},w=()=>{m?.disconnect();const x=a.value,$=l.value;if(!(!x||!$)&&(f(),!(typeof ResizeObserver>"u"))){if(m=new ResizeObserver(f),m.observe(x),r.vertical)for(const N of $.children)m.observe(N);x.removeEventListener("scroll",g),x.addEventListener("scroll",g,{passive:!0})}},k=e.computed(()=>[r.vertical?"yu-carousel--vertical":"yu-carousel--horizontal",{"is-ready":h.value,"yu-carousel--fill":r.fill}]),A=e.computed(()=>r.vertical?"yu-flex-col yu-items-stretch":"yu-flex-row yu-items-center"),B=e.computed(()=>{if(!(!r.vertical||r.fill||!c.value))return{height:`${c.value}px`}}),C=e.computed(()=>{const x=`${u.value}px`;return{transform:r.vertical?`translate3d(0, ${x}, 0)`:`translate3d(${x}, 0, 0)`}});return e.watch(()=>[r.vertical,r.fill,r.modelValue],async()=>{await e.nextTick(),w()}),e.onMounted(async()=>{await e.nextTick(),w()}),e.onBeforeUnmount(()=>{m?.disconnect(),a.value?.removeEventListener("scroll",g)}),o({next:()=>v(p.value+1),prev:()=>v(p.value-1),goTo:v}),(x,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yu-relative yu-w-full yu-overflow-hidden",k.value]),ref_key:"rootRef",ref:a,"data-testid":"app-carousel",style:e.normalizeStyle(B.value)},[e.createElementVNode("div",{class:e.normalizeClass(["yu-carousel-track yu-flex",A.value]),ref_key:"trackRef",ref:l,style:e.normalizeStyle(C.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d(),(N,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yu-carousel-slide",y(S)]),key:N.key??S,"aria-hidden":S!==p.value,"data-testid":"app-carousel-slide"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N)))],10,Vo))),128))],6)],6))}}),Je=Pe(Po,[["__scopeId","data-v-c6006063"]]),Eo={class:"yu-flex yu-flex-col yu-w-full yu-h-full"},zo={class:"yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0"},Lo={class:"yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"},Mo={class:"yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none"},Ro={class:"yu-flex yu-items-center yu-gap-1.5"},et=e.defineComponent({__name:"app-identification-page",props:{rule:{},edges:{}},emits:["submit","back"],setup(t,{emit:o}){const n=t,r=o,{currentStep:i,fieldHost:s,showBack:a,fields:l,form:u,continueStep:c,canContinueAt:h,introFor:m,fieldPlaceholder:p,fieldType:d,fieldMask:y,goBack:v}=Co(()=>n.rule,r);return(g,f)=>(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("div",zo,[e.createElementVNode("div",Lo,[e.createElementVNode("div",{class:e.normalizeClass(["yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",{"yu-invisible yu-pointer-events-none":!e.unref(a)}]),onClick:f[0]||(f[0]=(...w)=>e.unref(v)&&e.unref(v)(...w))},[e.createVNode(M,{class:"yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",small:"",gray:""},{default:e.withCtx(()=>[...f[2]||(f[2]=[e.createTextVNode("chevron_left",-1)])]),_:1}),e.createVNode(V,{class:"yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200","extra-small":"",medium:"",gray:""},{default:e.withCtx(()=>[...f[3]||(f[3]=[e.createTextVNode("Voltar",-1)])]),_:1})],2)]),e.createElementVNode("div",Mo,[e.createElementVNode("div",Ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(w,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors",k<=e.unref(i)?"yu-bg-gray-900 dark:yu-bg-white":"yu-bg-gray-200 dark:yu-bg-neutral-600"]),key:k},null,2))),128))])])]),e.createElementVNode("div",{class:"yu-flex-1 yu-min-h-0 yu-w-full yu-px-6 yu-pb-12",ref_key:"fieldHost",ref:s},[e.createVNode(Je,{class:"yu-w-full yu-h-full",modelValue:e.unref(i),"onUpdate:modelValue":f[1]||(f[1]=w=>e.isRef(i)?i.value=w:null),vertical:"",fill:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(w,k)=>(e.openBlock(),e.createBlock(U,{class:"yu-w-full yu-gap-8",key:w.name,col:"",center:""},{default:e.withCtx(()=>[e.createVNode(U,{class:"yu-w-full yu-relative yu-pr-6",col:"","gap-sm":""},{default:e.withCtx(()=>[e.unref(m)(k).title?(e.openBlock(),e.createBlock(V,{key:0,class:"yu-text-left","extra-large":"",semibold:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)(k).title),1)]),_:2},1024)):e.createCommentVNode("",!0),e.unref(m)(k).subtitle?(e.openBlock(),e.createBlock(V,{key:1,class:"yu-text-left",small:"",gray:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)(k).subtitle),1)]),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(V,{class:"yu-opacity-50 yu-absolute -yu-top-2 yu-right-0",gray:"",small:"",medium:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k+1),1)]),_:2},1024)]),_:2},1024),e.createVNode(U,{class:"yu-w-full yu-items-center",col:"","gap-md":""},{default:e.withCtx(()=>[e.createVNode(Qe,{modelValue:e.unref(u)[w.name],"onUpdate:modelValue":A=>e.unref(u)[w.name]=A,"mask-function":e.unref(y)(w.name),placeholder:e.unref(p)(w),type:e.unref(d)(w.name),onKeyupEnter:e.unref(c),fluid:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.alias),1)]),_:2},1032,["modelValue","onUpdate:modelValue","mask-function","placeholder","type","onKeyupEnter"]),e.createVNode(J,{fluid:"",disabled:!e.unref(h)(k),onClick:e.unref(c)},{trailing:e.withCtx(()=>[...f[4]||(f[4]=[e.createTextVNode("arrow_forward",-1)])]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k>=e.unref(l).length-1?"Finalizar":"Continuar"),1)]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])],512)]))}}),Oo=["disabled"],Ho=["src"],tt=e.defineComponent({__name:"app-widget-anchor",props:{small:Boolean,large:Boolean,logo:{type:String,default:""},label:{type:String,default:""},outline:Boolean,ghost:Boolean,disabled:Boolean,loading:Boolean},emits:["click"],setup(t){const o=t,n=e.computed(()=>!!o.label.trim()),r=e.computed(()=>o.outline?"yu-bg-transparent !yu-border-gray-200 hover:!yu-bg-gray-100 hover:!yu-border-gray-300":o.ghost?"yu-bg-transparent !yu-text-gray-700 hover:!yu-bg-gray-100":"yu-bg-gradient-to-br yu-from-primary-500 yu-to-secondary-500 yu-text-white"),i=e.computed(()=>n.value?o.small?"yu-h-12 yu-w-fit yu-px-3 yu-gap-2":o.large?"yu-h-16 yu-w-fit yu-px-5 yu-gap-3":"yu-h-14 yu-w-fit yu-px-4 yu-gap-2":o.small?"yu-w-12 yu-h-12 yu-p-0":o.large?"yu-w-16 yu-h-16 yu-p-0":"yu-w-14 yu-h-14 yu-p-0"),s=e.computed(()=>o.small?"yu-w-6 yu-h-6":o.large?"yu-w-8 yu-h-8":"yu-w-7 yu-h-7"),a=e.computed(()=>o.disabled||o.loading?"yu-opacity-50 yu-pointer-events-none":"");return(l,u)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["yu-rounded-full yu-inline-flex yu-items-center yu-justify-center yu-cursor-pointer yu-overflow-hidden yu-transition-all yu-border yu-border-transparent hover:yu-opacity-80 focus:yu-outline-hidden focus:yu-opacity-80 disabled:yu-opacity-50 disabled:yu-pointer-events-none",[i.value,r.value,a.value]]),type:"button","data-testid":"app-anchor",disabled:t.disabled||t.loading,onClick:u[0]||(u[0]=c=>l.$emit("click",c))},[t.loading?(e.openBlock(),e.createBlock(M,{key:0,class:"yu-animate-spin",outlined:"",large:!t.small&&!t.large,"extra-large":t.large},{default:e.withCtx(()=>[...u[1]||(u[1]=[e.createTextVNode("progress_activity",-1)])]),_:1},8,["large","extra-large"])):t.logo?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(["yu-object-contain yu-pointer-events-none yu-select-none yu-shrink-0",s.value]),src:t.logo,alt:"","data-testid":"app-anchor-logo"},null,10,Ho)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createBlock(V,{key:2,class:"!yu-text-inherit yu-whitespace-nowrap",small:!t.large,"data-testid":"app-anchor-label"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:1},8,["small"])):e.createCommentVNode("",!0)],10,Oo))}}),Fo={key:0,class:"yu-flex yu-shrink-0 yu-items-end","data-testid":"app-message-avatar"},Do={key:0,class:"yu-w-full yu-flex yu-justify-end yu-h-2","data-testid":"app-message-trailing"},ot=e.defineComponent({__name:"app-message",props:{primary:Boolean,secondary:Boolean,tertiary:Boolean},setup(t){const o=t,n=e.computed(()=>e.useSlots());function r(c){return!!n.value[c]}const i=e.computed(()=>o.tertiary),s=e.computed(()=>!i.value&&o.secondary),a=e.computed(()=>!i.value&&r("avatar")),l=e.computed(()=>i.value?"yu-justify-center":s.value?"yu-flex-row-reverse":""),u=e.computed(()=>i.value?"":s.value?"yu-rounded-br-none yu-bg-primary-100 yu-p-3 dark:yu-bg-primary-900":"yu-rounded-bl-none yu-bg-gray-200 yu-p-3 dark:yu-bg-neutral-700");return(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yu-flex yu-items-end yu-gap-2 yu-w-full",l.value]),"data-testid":"app-message"},[a.value?(e.openBlock(),e.createElementBlock("div",Fo,[e.renderSlot(c.$slots,"avatar")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yu-rounded-md yu-relative",u.value]),"data-testid":"app-message-bubble"},[e.renderSlot(c.$slots,"default"),r("trailing")?(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(c.$slots,"trailing")])):e.createCommentVNode("",!0)],2)],2))}}),Io={class:"yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-hidden"},Wo={key:0,class:"yu-w-full yu-h-12"},jo={key:0,class:"yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7 dark:yu-bg-neutral-700"},qo=["src"],Go={key:1,class:"yu-flex yu-w-7 yu-h-7"},Zo={class:"yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-flex-col dark:yu-border-neutral-700"},Uo=["onKeydown"],Xo={class:"yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2"},nt=e.defineComponent({__name:"app-service-page",props:{rule:{},edges:{}},emits:["send-message"],setup(t,{emit:o}){const n=o,{history:r,chat:i}=ue(),{messages:s,text:a,setMessages:l}=i,u=e.computed(()=>r.value.length>0),c=e.ref(null),h=(d=!0)=>{const y=c.value;y&&y.scrollTo({top:y.scrollHeight,behavior:d?"smooth":"auto"})},m=d=>`https://api.dicebear.com/10.x/marbles/svg?backgroundColor=&seed=${d==="operator"?"operator":"user"}`,p=()=>{n("send-message",a.value)};return e.watch(()=>s.value.length,async()=>{await e.nextTick(),h()}),e.onMounted(()=>{h(!1)}),(d,y)=>(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("div",{class:"yu-flex yu-flex-col yu-flex-1 yu-min-h-0 yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto",ref_key:"messagesList",ref:c,"data-testid":"app-service-messages"},[u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wo)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(v,g)=>(e.openBlock(),e.createBlock(ot,{key:g,primary:v.from==="operator",secondary:v.from==="contact",tertiary:v.from==="system"},e.createSlots({default:e.withCtx(()=>[v.from=="system"?(e.openBlock(),e.createBlock(V,{key:0,class:"yu-text-center",gray:"","extra-small":"",medium:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.text),1)]),_:2},1024)):(e.openBlock(),e.createBlock(V,{key:1,gray:"",small:"",medium:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.text),1)]),_:2},1024))]),_:2},[v.from!=="system"?{name:"avatar",fn:e.withCtx(()=>[e.unref(s)[g+1]?.from!==v.from?(e.openBlock(),e.createElementBlock("div",jo,[e.createElementVNode("img",{class:"yu-rounded-full yu-w-full yu-h-full yu-object-contain",src:m(v.from)},null,8,qo)])):(e.openBlock(),e.createElementBlock("div",Go))]),key:"0"}:void 0,v.from!=="system"?{name:"trailing",fn:e.withCtx(()=>[e.createVNode(V,{gray:"","extra-small":"",medium:""},{default:e.withCtx(()=>[...y[1]||(y[1]=[e.createTextVNode("12:58",-1)])]),_:1})]),key:"1"}:void 0]),1032,["primary","secondary","tertiary"]))),128)),y[2]||(y[2]=e.createElementVNode("div",{class:"yu-w-full yu-h-12"},null,-1))],512),e.createElementVNode("div",Zo,[e.withDirectives(e.createElementVNode("textarea",{class:"yu-w-full yu-p-6 yu-resize-none yu-font-primary yu-text-xs yu-bg-transparent yu-text-gray-900 placeholder:yu-text-neutral placeholder:yu-text-xs placeholder:yu-font-normal focus:yu-outline-none dark:yu-text-neutral-100","onUpdate:modelValue":y[0]||(y[0]=v=>e.isRef(a)?a.value=v:null),placeholder:"Escreva uma mensagem...",onKeydown:e.withKeys(e.withModifiers(p,["exact","prevent"]),["enter"])},null,40,Uo),[[e.vModelText,e.unref(a)]]),e.createElementVNode("div",Xo,[e.createVNode(J,{icon:"",ghost:"",small:""},{icon:e.withCtx(()=>[e.createVNode(M,{class:"yu-rotate-45"},{default:e.withCtx(()=>[...y[3]||(y[3]=[e.createTextVNode("attach_file",-1)])]),_:1})]),_:1}),e.createVNode(J,{icon:"",small:"",onClick:p},{icon:e.withCtx(()=>[e.createVNode(M,null,{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode("send",-1)])]),_:1})]),_:1})])])]))}}),Ko=t=>{const o=n=>n.toString(16).padStart(2,"0");return`#${o(t.r)}${o(t.g)}${o(t.b)}`},Dt=()=>{const t="#6D3595",o=i=>{const s=i.replace("#","").trim(),a=s.length===3&&/^[0-9a-fA-F]{3}$/.test(s)?`${s[0]}${s[0]}${s[1]}${s[1]}${s[2]}${s[2]}`:s;return a.length!==6||!/^[0-9a-fA-F]{6}$/.test(a)?null:{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16)}};return{isLightHex:i=>{const s=o(i);return s?(s.r*299+s.g*587+s.b*114)/1e3>160:!1},normalizeHex:i=>{const s=o(i)??o(t);return s?Ko(s):t.toLowerCase()},parseHex:o}},Yo=()=>typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches,It=t=>{const{isLightHex:o,normalizeHex:n,parseHex:r}=Dt(),i=(m,p)=>m==="dark"?"dark":m==="light"?"light":p?"dark":"light",s=m=>{const p=n(m),d=r(p)??{r:109,g:53,b:149},y=o(p);return{"--yu-primary":p,"--yu-primary-rgb":`${d.r} ${d.g} ${d.b}`,"--yu-primary-fg":y?"#1c1917":"#ffffff","--yu-primary-50":`color-mix(in srgb, ${p} 8%, white)`,"--yu-primary-100":`color-mix(in srgb, ${p} 22%, white)`,"--yu-primary-200":`color-mix(in srgb, ${p} 38%, white)`,"--yu-primary-300":`color-mix(in srgb, ${p} 55%, white)`,"--yu-primary-400":y?`color-mix(in srgb, ${p} 70%, black)`:`color-mix(in srgb, ${p} 78%, white)`,"--yu-primary-500":p,"--yu-primary-600":`color-mix(in srgb, ${p} 82%, black)`,"--yu-primary-700":`color-mix(in srgb, ${p} 64%, black)`,"--yu-primary-800":`color-mix(in srgb, ${p} 42%, black)`,"--yu-primary-900":`color-mix(in srgb, ${p} 22%, black)`}},a=m=>{const p=e.ref(Yo()),d=e.computed(()=>i(e.toValue(m),p.value)),y=e.computed(()=>d.value==="dark"),v=e.computed(()=>y.value?"yu-dark":"");return e.onMounted(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const g=window.matchMedia("(prefers-color-scheme: dark)");p.value=g.matches;const f=w=>{p.value=w.matches};g.addEventListener("change",f),e.onBeforeUnmount(()=>g.removeEventListener("change",f))}),{isDark:y,resolvedTheme:d,themeClass:v}},{isDark:l,themeClass:u,resolvedTheme:c}=a(()=>e.toValue(t).theme),h=e.computed(()=>({...s(e.toValue(t).primaryColor),colorScheme:c.value}));return{isDark:l,themeClass:u,resolvedTheme:c,appearanceStyle:h}},Qo={class:"yu-flex yu-flex-col yu-w-full yu-gap-8"},Jo={key:0,class:"yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"},en=["src"],tn={key:1,class:"yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"},on=["src"],nn=["src"],rt=e.defineComponent({__name:"app-screen-page",props:{rule:{},edges:{}},emits:["edge-click"],setup(t,{emit:o}){const n=t,r=o,{history:i}=ue(),s=e.computed(()=>i.value.length>0),a=e.computed(()=>n.edges??[]),l=e.computed(()=>n.rule.settings?.body);return(u,c)=>(e.openBlock(),e.createElementBlock("div",Qo,[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Jo)),e.createVNode(U,{class:"yu-px-6 yu-w-full",col:"",center:"","gap-base":""},{default:e.withCtx(()=>[l.value?.logo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"yu-w-10 yu-h-10 yu-object-contain",src:l.value.logo,alt:""},null,8,en)):e.createCommentVNode("",!0),l.value?.eyebrow?(e.openBlock(),e.createBlock(V,{key:1,class:"yu-text-center yu-uppercase yu-tracking-widest yu-leading-none","extra-small":"",gray:"",mono:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.eyebrow),1)]),_:1})):e.createCommentVNode("",!0),l.value?.title?(e.openBlock(),e.createBlock(V,{key:2,class:"yu-text-center","extra-large":"",semibold:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1})):e.createCommentVNode("",!0),l.value?.subtitle?(e.openBlock(),e.createBlock(V,{key:3,class:"yu-w-64 yu-text-center",small:"",gray:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.subtitle),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}),a.value.length?(e.openBlock(),e.createElementBlock("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value.slice(0,3),h=>(e.openBlock(),e.createBlock(J,{class:"hover:yu-translate-x-1 yu-max-w-[25rem]",key:h.id,outline:"",fluid:"",onClick:m=>r("edge-click",h)},e.createSlots({trailing:e.withCtx(()=>[c[0]||(c[0]=e.createTextVNode("chevron_right",-1))]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.name),1)]),_:2},[h.settings?.body?.logo?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("img",{class:"yu-w-4 yu-h-4 yu-object-contain",src:h.settings.body.logo,alt:""},null,8,on)]),key:"0"}:void 0]),1032,["onClick"]))),128)),e.createElementVNode("div",{class:e.normalizeClass(["yu-flex yu-items-start yu-overflow-x-auto yu-w-full invisible-scrollbar yu-pt-6",{"yu-justify-start":a.value.slice(3).length>4,"yu-justify-center":a.value.slice(3).length<=4}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value.slice(3),h=>(e.openBlock(),e.createElementBlock("div",{class:"yu-flex yu-flex-col yu-items-center yu-gap-2",key:h.id},[e.createVNode(J,{outline:"",icon:"",onClick:m=>r("edge-click",h)},e.createSlots({_:2},[h.settings?.body?.logo?{name:"icon",fn:e.withCtx(()=>[e.createElementVNode("img",{class:"yu-w-5 yu-h-5 yu-object-contain",src:h.settings.body.logo,alt:""},null,8,nn)]),key:"0"}:void 0]),1032,["onClick"]),e.createVNode(V,{class:"yu-w-20 yu-text-center yu-leading-3 yu-line-clamp-2","extra-small":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.name),1)]),_:2},1024)]))),128))],2)])):e.createCommentVNode("",!0)]))}}),rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAVCAYAAAAnzezqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVtSURBVHgBpVVriFVVFF6Pvc+5c+/MOM2Yo2hq41tDU1EsC50pU9NySqZUDCQiCwWZSKJQGOpHZjhpomOGNkE4pBQUgUIPGAz9Of0oGS0tCpWY0dIf93nO3q1zzzn3Xh+J1oHLPfusvb/v299ea22EO3hmz35RN2XGNyimOrZYr8g0aFZ1RH49k63VbIcogrsI4S6Wb4qhToGRmHwjk5IYypoLiu0hzjrbNn77xiW8FeHS+vdrdQOtR7ZPC8FkhbZOQIDRgIxByU/A5V/GaC2zEMQxLMatxJGL8wwU1wbvEtNk+zGTncc3p7b4+LhhS1SKPhKAdbJwlPwSjGAFFFWJPCQKCYq7sxQQczAHICQ3VkUilGxXYhCtb1Aupm9wYMm9eychwy6FfrMAOEVSARRgGy40AZiNCEMhoQj5FokruWGBKubEDgQiojW/lgTMH3qgpro21y7A7RIcwmWykm2lXcuuigICkBCsTH7NEUFkfXhU5aMxESakVUD+6PiuxcpmdxBioyz+XianZdJ98j+FA9sE/FoBEAriCBgt8o3Hcq2oIqEBSVRLRfFFoWepdWzXWGXsIUDyQJn5Z/Xgyiqb3TCiALOE/G3F5jryEJhjG9HEZ2orRNhYqPyCHCjFCMPNBGMi/Epl2bwpZZNOg7d8qOGWqVj/k9WWLpE9nshnn0ClR8uiuUR2IBLys9j6kOxifAR0kcA/KmBSntDCYB1xpldio8SdExJvkflN8p6Rbz0iplHGj4gDuRzmO3HZhL0DAH6PsXZLyrEXZEIqVihkrxL6fRppTiNU7x5M/F3nopkIKvej67v7RNSElI8LTcIsVWDPofLqFeBWhYMLyW0Yw8ZPkZs/5xrdJyY847KtId+m2cFJhGZE66Ft70hP8V1GHFRUGMaoErGlQfmIkHuUhq/JGhiAS1UJ4DNSt0ll3BccNh0IOMO6djKBeUx8/XPIwIgtucaLrTXpBiw45oi4NC2ZqRruJ7wT5OSvWJ/nogsrRLhHycttQf6RWHFaiKbAVTgvifdLOZHk3BT1SiebGJxllatHir3JwB1AM7lKq8tgC1cdyF9R5B9z0esr3H1xpVidhLqgZ9haweGcylTLZlLaqD0OQX+ygGvBy7/05P796UCAOEB7FHoHsZ6/YJNbRqS3S4LVSLJ+nvTtcd+Fb0RETzVnTuXA3cWE9yvM7/Wsv9BRNAvBP02Mm4DgiuRKL7HfJPkdlR2AZyCoin5A/ztFtMu45ljrJ52b4/JXR05t6F47fedy2fk+1k5nUtFWT9usk4epvvK/lDqdIVb2ZD13dEL5n0nh73ZJr0A0r8lxDWfG88yFNcqolAh/Oej7iJnpijQFx+kmaLpGmCkDR1xa7fxR3V/Z+EqNaN3M9553yWwVu8YU7SdLHOcCweua/F4RclJihkulCRgdmYlqn+JykzuhWO86KlsKy/Lwko+3P1spgOKX7r72g57NLZIS+kAI0kylboYaTZNCfCDIBWmtFDSeiDyub1Jxb6C4xmNxIU4gRHJmx/Wt/6a34eYH3xoHpFdLpm+SnQ2N22h4sQgYhgTXdb+wQVV8q2xg0tQ+XdT97qrbEhA/Hcs7kphxnhMHXhGQCSIg6v8QVkkwrrA7uqyKIsN2W7wJAwHS17w5zd07f7sjASUhHR1UcxIXCFg7sV0sgnTZARNdMCAiDKqKS6d8kZmNzQc799wM+7YExE9bWxu3ZKctEGvbmf1FQuaWGxdAOQHLF5EIPqN0et7DXV1//W8BlU/XUx3Dqtlbr8msF7KRlW6UckaaHLC3qvnDnT/8G85/FhA/h9s6HFKZVulya6SC5Ao30l3xdym7o5C2B5p7dgzeav0/0mtgehRo/YYAAAAASUVORK5CYII=",sn={class:"yu-flex yu-flex-col yu-h-full yu-w-full yu-bg-white yu-overflow-hidden dark:yu-bg-neutral-800"},an={class:"yu-w-full yu-shrink-0 yu-border-b yu-flex yu-items-center yu-px-4 yu-justify-between yu-gap-2 yu-bg-primary yu-h-[4.4rem] yu-text-[var(--yu-primary-fg)] yu-border-[color-mix(in_srgb,var(--yu-primary-fg)_22%,transparent)]"},ln={class:"yu-flex yu-items-center yu-gap-3 yu-min-w-0 yu-flex-1"},un=["src"],cn={class:"yu-flex yu-flex-col yu-justify-center yu-min-w-0 yu-overflow-hidden"},dn={class:"yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0"},pn={key:0,class:"yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"},fn={class:"yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8"},mn={class:"yu-h-7 yu-w-full yu-shrink-0 yu-border-t yu-border-gray-200 yu-flex yu-items-center yu-justify-center yu-p-2 yu-gap-1 yu-bg-white dark:yu-border-neutral-700 dark:yu-bg-neutral-800"},yn=["src"],hn=e.defineComponent({inheritAttrs:!1,__name:"app-widget-view",props:{workflow:{},config:{},fullscreen:{type:Boolean}},emits:["send-message","edge-click","submit","close","back"],setup(t,{emit:o}){const n=t,r=o,{history:i,currentRule:s,edges:a,setWorkflow:l}=ue(),{appearanceStyle:u,themeClass:c}=It(()=>n.config.configurations.appearance);l(n.workflow),e.watch(()=>n.workflow,g=>l(g));const h=e.computed(()=>i.value.length>0),m=e.computed(()=>h.value&&s.value?.action!=="identification"),p=e.computed(()=>n.config.configurations.general.isClosable),d={identification:et,service:nt,screen:rt},y=e.computed(()=>{const g=s.value?.action;return g&&g in d?d[g]:void 0}),v=e.computed(()=>n.fullscreen?"yu-w-screen yu-h-screen":"yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl");return(g,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yunique yu-overflow-hidden yu-relative",[v.value,e.unref(c)]]),"data-testid":"app-widget-view",style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("div",sn,[e.createElementVNode("div",an,[e.createElementVNode("div",ln,[e.unref(s)?.settings?.header?.logo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"yu-w-9 yu-h-9 yu-object-contain yu-rounded-lg yu-shrink-0",src:e.unref(s).settings.header.logo,alt:""},null,8,un)):e.createCommentVNode("",!0),e.createElementVNode("div",cn,[e.unref(s)?.settings?.header?.title?(e.openBlock(),e.createBlock(V,{key:0,class:"yu-w-full yu-truncate !yu-text-inherit",bold:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s).settings.header.title),1)]),_:1})):e.createCommentVNode("",!0),e.unref(s)?.settings?.header?.subtitle?(e.openBlock(),e.createBlock(V,{key:1,class:"yu-w-full yu-truncate !yu-text-inherit yu-opacity-75","extra-small":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s).settings.header.subtitle),1)]),_:1})):e.createCommentVNode("",!0)])]),p.value?(e.openBlock(),e.createBlock(J,{key:0,class:"yu-shrink-0 !yu-bg-transparent hover:!yu-bg-[color-mix(in_srgb,var(--yu-primary-fg)_12%,transparent)]",onClick:f[0]||(f[0]=w=>r("close")),"data-testid":"app-widget-close",small:"",icon:""},{default:e.withCtx(()=>[e.createVNode(M,null,{default:e.withCtx(()=>[...f[6]||(f[6]=[e.createTextVNode("close",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",dn,[e.createVNode(e.Transition,{name:"page-transition",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("div",{class:"yu-flex yu-flex-col yu-w-full yu-h-full yu-min-h-0",key:e.unref(s)?.id},[m.value?(e.openBlock(),e.createElementBlock("div",pn,[e.createElementVNode("div",{class:"yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",onClick:f[1]||(f[1]=w=>r("back"))},[e.createVNode(M,{class:"yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200",small:"",gray:""},{default:e.withCtx(()=>[...f[7]||(f[7]=[e.createTextVNode("chevron_left",-1)])]),_:1}),e.createVNode(V,{class:"yu-transition-colors group-hover:!yu-text-gray-700 dark:group-hover:!yu-text-neutral-200","extra-small":"",medium:"",gray:""},{default:e.withCtx(()=>[...f[8]||(f[8]=[e.createTextVNode("Voltar",-1)])]),_:1})])])):e.createCommentVNode("",!0),e.createElementVNode("div",fn,[y.value&&e.unref(s)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:0,rule:e.unref(s),edges:e.unref(a),onSubmit:f[2]||(f[2]=w=>r("submit",w)),onBack:f[3]||(f[3]=w=>r("back")),onEdgeClick:f[4]||(f[4]=w=>r("edge-click",w)),onSendMessage:f[5]||(f[5]=w=>r("send-message",w))},null,40,["rule","edges"])):e.createCommentVNode("",!0)])]))]),_:1})]),e.createElementVNode("div",mn,[e.createElementVNode("img",{class:"yu-w-3 yu-h-2",src:e.unref(rn),alt:"Opens"},null,8,yn),e.createVNode(V,{class:"!yu-text-xxs",gray:""},{default:e.withCtx(()=>[...f[9]||(f[9]=[e.createTextVNode("Powered By",-1),e.createElementVNode("b",{class:"yu-ml-1"},"Opens",-1)])]),_:1})])])],6))}}),it=Pe(hn,[["__scopeId","data-v-12d9af03"]]),gn={class:"yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none"},vn={class:"yu-h-full yu-flex yu-items-center yu-justify-center"},wn=["value","type","disabled","maxlength"],xn={class:"yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500"},Wt=e.defineComponent({__name:"app-text-input",props:{modelValue:{default:""},type:{default:"text"},maxLength:{},disabled:{type:Boolean},loading:{type:Boolean},invalid:{type:Boolean},small:{type:Boolean},fluid:{type:Boolean},round:{type:Boolean},valid:{type:Boolean},block:{type:Boolean},maskFunction:{},passwordToggle:{type:Boolean}},emits:["update:modelValue","keyup-enter"],setup(t,{expose:o,emit:n}){const r=t,i=n,s=e.computed(()=>e.useSlots());function a(C){return!!s.value[C]}const l=e.ref(""),u=e.ref(!1),c=e.ref(!1);function h(C){if(!r.maskFunction)return C;try{const x=r.maskFunction(C);return typeof x=="string"?x:C}catch{return C}}e.watch(()=>r.modelValue,C=>{if(C==null){l.value="";return}l.value=r.maskFunction?h(C):C},{immediate:!0});function m(){return!(u.value||l.value)}const{height:p,textSize:d,width:y}=Ft(r),v=e.computed(()=>r.invalid?"yu-border-red-500 focus-within:yu-border-red-500":r.valid?"yu-border-green-500 focus-within:yu-border-green-500":"yu-border-gray-200 focus-within:!yu-border-primary/40 hover:yu-border-gray-300"),g=e.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":"yu-text-gray-500"),f=e.computed(()=>r.small&&m()?"yu-translate-y-[7px]":r.small&&!m()?"yu-translate-y-0":m()?"yu-translate-y-[11px]":"yu-translate-y-0"),w=e.computed(()=>a("icon")||r.loading?"yu-pl-[34px]":"yu-pl-3"),k=e.computed(()=>r.block?"yu-rounded-none":r.round?"yu-rounded-full":"yu-rounded-lg"),A=e.computed(()=>r.disabled||r.loading?"yu-opacity-50 yu-pointer-events-none":"");function B(C){const $=C.target.value;l.value=r.maskFunction?h($):$,i("update:modelValue",l.value)}return o({focus:u,content:l}),(C,x)=>(e.openBlock(),e.createBlock(U,{class:e.normalizeClass([e.unref(y)]),col:"","gap-none":""},{default:e.withCtx(()=>[e.createVNode(U,{col:"","gap-sm":""},{default:e.withCtx(()=>[a("label")?(e.openBlock(),e.createBlock(V,{key:0,small:"",medium:""},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"label")]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("label",{class:e.normalizeClass(["yu-relative yu-flex yu-flex-col yu-justify-center yu-items-start yu-border yu-cursor-text yu-transition-colors yu-w-full yu-bg-transparent",[k.value,A.value,e.unref(p),v.value]]),"data-testid":"app-text-input"},[e.createElementVNode("div",gn,[e.createElementVNode("div",vn,[!t.loading&&a("icon")?(e.openBlock(),e.createBlock(M,{key:0,small:""},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"icon")]),_:3})):e.createCommentVNode("",!0),t.loading?(e.openBlock(),e.createBlock(M,{key:1,class:"yu-animate-spin",small:"",outlined:""},{default:e.withCtx(()=>[...x[4]||(x[4]=[e.createTextVNode("progress_activity",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(V,{class:e.normalizeClass(["yu-py-1 yu-transition",[f.value]]),small:"",medium:"",gray:""},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},8,["class"])]),e.createElementVNode("input",{class:e.normalizeClass(["yu-absolute yu-inset-0 yu-w-full yu-h-full yu-outline-none yu-appearance-none yu-bg-transparent yu-pt-3 yu-pr-3 yu-text-gray-700 yu-font-primary yu-z-0",[e.unref(d),w.value,k.value]]),value:l.value,type:t.passwordToggle&&c.value?"text":t.type,disabled:t.disabled||t.loading,maxlength:t.maxLength,onInput:B,onFocus:x[0]||(x[0]=$=>u.value=!0),onBlur:x[1]||(x[1]=$=>u.value=!1),onKeyup:x[2]||(x[2]=e.withKeys($=>i("keyup-enter"),["enter"]))},null,42,wn),e.createElementVNode("div",xn,[t.maxLength?(e.openBlock(),e.createBlock(V,{key:0,small:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`${l.value.length} / ${t.maxLength}`),1)]),_:1})):e.createCommentVNode("",!0),t.type==="password"&&t.passwordToggle?(e.openBlock(),e.createElementBlock("button",{key:1,class:"yu-bg-transparent yu-border-0 yu-p-0 yu-cursor-pointer yu-flex yu-items-center",type:"button",tabindex:"-1",onClick:x[3]||(x[3]=$=>c.value=!c.value)},[e.createVNode(M,{small:"",gray:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value?"visibility_off":"visibility"),1)]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(C.$slots,"suffix")])],2)]),_:3}),a("feedback")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yu-mt-1",[g.value]])},[e.renderSlot(C.$slots,"feedback")],2)):e.createCommentVNode("",!0)]),_:3},8,["class"]))}}),bn=()=>{const{isLightHex:t,normalizeHex:o}=Dt();return{getOffset:(s,a)=>{const l=`${a.x}px`,u=`${a.y}px`;switch(s){case"bottom-left":return{bottom:u,left:l};case"top-left":return{top:u,left:l};case"top-right":return{top:u,right:l};default:return{bottom:u,right:l}}},getPosition:s=>{switch(s){case"bottom-left":return"bottom left";case"top-left":return"top left";case"top-right":return"top right";default:return"bottom right"}},getTone:s=>{const a=o(s);return{backgroundImage:"none",backgroundColor:a,color:t(a)?"#1c1917":"#ffffff"}}}},kn=e.defineComponent({__name:"app-widget",props:{workflow:{},config:{},fullscreen:{type:Boolean}},emits:["send-message","edge-click","submit","close","back","open"],setup(t,{emit:o}){const n=t,r=o,i=e.ref(n.config.configurations.general.defaultBehavior==="active"),s=e.ref(!i.value),{setWorkflow:a}=ue(),{getOffset:l,getPosition:u,getTone:c}=bn(),{appearanceStyle:h,themeClass:m}=It(()=>n.config.configurations.appearance),p=e.computed(()=>n.config.configurations.anchor),d=e.computed(()=>n.config.configurations.appearance),y=e.computed(()=>{if(!(i.value&&n.fullscreen))return l(p.value.position,p.value.offset)}),v=e.computed(()=>u(p.value.position)),g=e.computed(()=>({workflow:n.workflow,config:n.config,fullscreen:n.fullscreen})),f=e.computed(()=>({style:c(d.value.primaryColor),small:p.value.size==="small",large:p.value.size==="large",logo:p.value.logo??"",label:p.value.label??""})),w=async()=>{i.value||(s.value=!1,await e.nextTick(),i.value=!0,r("open"))},k=()=>{i.value&&(i.value=!1,r("close"))},A=()=>{s.value=!0};return a(n.workflow),e.watch(()=>n.workflow,B=>a(B)),e.watch(()=>n.config.configurations.general.defaultBehavior,B=>{B==="active"?w():k()}),(B,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yu-fixed yunique yu-z-[99999]",[e.unref(m),i.value&&t.fullscreen?"yu-inset-0":""]]),"data-testid":"app-widget",style:e.normalizeStyle([{"--widget-origin":v.value},y.value,e.unref(h)])},[e.createVNode(e.Transition,{name:"widget",onAfterLeave:A},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createBlock(it,e.mergeProps({key:0},g.value,{onClose:k,onBack:C[0]||(C[0]=x=>r("back")),onSubmit:C[1]||(C[1]=x=>r("submit",x)),onEdgeClick:C[2]||(C[2]=x=>r("edge-click",x)),onSendMessage:C[3]||(C[3]=x=>r("send-message",x))}),null,16)):e.createCommentVNode("",!0)]),_:1}),s.value?(e.openBlock(),e.createBlock(tt,{key:0,style:e.normalizeStyle(f.value.style),small:f.value.small,large:f.value.large,logo:f.value.logo,label:f.value.label,onClick:w},null,8,["style","small","large","logo","label"])):e.createCommentVNode("",!0)],6))}}),jt=Pe(kn,[["__scopeId","data-v-5da01276"]]),Cn=["top","right","bottom","left"],dt=["start","end"],pt=Cn.reduce((t,o)=>t.concat(o,o+"-"+dt[0],o+"-"+dt[1]),[]),we=Math.min,ne=Math.max,$n={left:"right",right:"left",bottom:"top",top:"bottom"},Bn={start:"end",end:"start"};function Ge(t,o,n){return ne(t,we(o,n))}function re(t,o){return typeof t=="function"?t(o):t}function G(t){return t.split("-")[0]}function D(t){return t.split("-")[1]}function qt(t){return t==="x"?"y":"x"}function st(t){return t==="y"?"height":"width"}const _n=new Set(["top","bottom"]);function Z(t){return _n.has(G(t))?"y":"x"}function at(t){return qt(Z(t))}function Gt(t,o,n){n===void 0&&(n=!1);const r=D(t),i=at(t),s=st(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[s]>o.floating[s]&&(a=Ae(a)),[a,Ae(a)]}function Sn(t){const o=Ae(t);return[Se(t),o,Se(o)]}function Se(t){return t.replace(/start|end/g,o=>Bn[o])}const ft=["left","right"],mt=["right","left"],An=["top","bottom"],Tn=["bottom","top"];function Nn(t,o,n){switch(t){case"top":case"bottom":return n?o?mt:ft:o?ft:mt;case"left":case"right":return o?An:Tn;default:return[]}}function Vn(t,o,n,r){const i=D(t);let s=Nn(G(t),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),o&&(s=s.concat(s.map(Se)))),s}function Ae(t){return t.replace(/left|right|bottom|top/g,o=>$n[o])}function Pn(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zt(t){return typeof t!="number"?Pn(t):{top:t,right:t,bottom:t,left:t}}function ye(t){const{x:o,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:o,right:o+r,bottom:n+i,x:o,y:n}}function yt(t,o,n){let{reference:r,floating:i}=t;const s=Z(o),a=at(o),l=st(a),u=G(o),c=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let d;switch(u){case"top":d={x:h,y:r.y-i.height};break;case"bottom":d={x:h,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:m};break;case"left":d={x:r.x-i.width,y:m};break;default:d={x:r.x,y:r.y}}switch(D(o)){case"start":d[a]-=p*(n&&c?-1:1);break;case"end":d[a]+=p*(n&&c?-1:1);break}return d}const En=async(t,o,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:h,y:m}=yt(c,r,u),p=r,d={},y=0;for(let v=0;v<l.length;v++){const{name:g,fn:f}=l[v],{x:w,y:k,data:A,reset:B}=await f({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});h=w??h,m=k??m,d={...d,[g]:{...d[g],...A}},B&&y<=50&&(y++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(c=B.rects===!0?await a.getElementRects({reference:t,floating:o,strategy:i}):B.rects),{x:h,y:m}=yt(c,p,u)),v=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:d}};async function Ee(t,o){var n;o===void 0&&(o={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:d=0}=re(o,t),y=Zt(d),g=l[p?m==="floating"?"reference":"floating":m],f=ye(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:h,strategy:u})),w=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},B=ye(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:k,strategy:u}):w);return{top:(f.top-B.top+y.top)/A.y,bottom:(B.bottom-f.bottom+y.bottom)/A.y,left:(f.left-B.left+y.left)/A.x,right:(B.right-f.right+y.right)/A.x}}const zn=t=>({name:"arrow",options:t,async fn(o){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:u}=o,{element:c,padding:h=0}=re(t,o)||{};if(c==null)return{};const m=Zt(h),p={x:n,y:r},d=at(i),y=st(d),v=await a.getDimensions(c),g=d==="y",f=g?"top":"left",w=g?"bottom":"right",k=g?"clientHeight":"clientWidth",A=s.reference[y]+s.reference[d]-p[d]-s.floating[y],B=p[d]-s.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let x=C?C[k]:0;(!x||!await(a.isElement==null?void 0:a.isElement(C)))&&(x=l.floating[k]||s.floating[y]);const $=A/2-B/2,N=x/2-v[y]/2-1,S=we(m[f],N),E=we(m[w],N),b=S,T=x-v[y]-E,P=x/2-v[y]/2+$,R=Ge(b,P,T),z=!u.arrow&&D(i)!=null&&P!==R&&s.reference[y]/2-(P<b?S:E)-v[y]/2<0,L=z?P<b?P-b:P-T:0;return{[d]:p[d]+L,data:{[d]:R,centerOffset:P-R-L,...z&&{alignmentOffset:L}},reset:z}}});function Ln(t,o,n){return(t?[...n.filter(i=>D(i)===t),...n.filter(i=>D(i)!==t)]:n.filter(i=>G(i)===i)).filter(i=>t?D(i)===t||(o?Se(i)!==i:!1):!0)}const Mn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(o){var n,r,i;const{rects:s,middlewareData:a,placement:l,platform:u,elements:c}=o,{crossAxis:h=!1,alignment:m,allowedPlacements:p=pt,autoAlignment:d=!0,...y}=re(t,o),v=m!==void 0||p===pt?Ln(m||null,d,p):p,g=await Ee(o,y),f=((n=a.autoPlacement)==null?void 0:n.index)||0,w=v[f];if(w==null)return{};const k=Gt(w,s,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(l!==w)return{reset:{placement:v[0]}};const A=[g[G(w)],g[k[0]],g[k[1]]],B=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:w,overflows:A}],C=v[f+1];if(C)return{data:{index:f+1,overflows:B},reset:{placement:C}};const x=B.map(S=>{const E=D(S.placement);return[S.placement,E&&h?S.overflows.slice(0,2).reduce((b,T)=>b+T,0):S.overflows[0],S.overflows]}).sort((S,E)=>S[1]-E[1]),N=((i=x.filter(S=>S[2].slice(0,D(S[0])?2:3).every(E=>E<=0))[0])==null?void 0:i[0])||x[0][0];return N!==l?{data:{index:f+1,overflows:B},reset:{placement:N}}:{}}}},Rn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(o){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:u,elements:c}=o,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...g}=re(t,o);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const f=G(i),w=Z(l),k=G(l)===l,A=await(u.isRTL==null?void 0:u.isRTL(c.floating)),B=p||(k||!v?[Ae(l)]:Sn(l)),C=y!=="none";!p&&C&&B.push(...Vn(l,v,y,A));const x=[l,...B],$=await Ee(o,g),N=[];let S=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&N.push($[f]),m){const P=Gt(i,a,A);N.push($[P[0]],$[P[1]])}if(S=[...S,{placement:i,overflows:N}],!N.every(P=>P<=0)){var E,b;const P=(((E=s.flip)==null?void 0:E.index)||0)+1,R=x[P];if(R&&(!(m==="alignment"?w!==Z(R):!1)||S.every(O=>Z(O.placement)===w?O.overflows[0]>0:!0)))return{data:{index:P,overflows:S},reset:{placement:R}};let z=(b=S.filter(L=>L.overflows[0]<=0).sort((L,O)=>L.overflows[1]-O.overflows[1])[0])==null?void 0:b.placement;if(!z)switch(d){case"bestFit":{var T;const L=(T=S.filter(O=>{if(C){const W=Z(O.placement);return W===w||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,vo)=>W+vo,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:T[0];L&&(z=L);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}},On=new Set(["left","top"]);async function Hn(t,o){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=G(n),l=D(n),u=Z(n)==="y",c=On.has(a)?-1:1,h=s&&u?-1:1,m=re(o,t);let{mainAxis:p,crossAxis:d,alignmentAxis:y}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof y=="number"&&(d=l==="end"?y*-1:y),u?{x:d*h,y:p*c}:{x:p*c,y:d*h}}const Fn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(o){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=o,u=await Hn(o,t);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:s+u.y,data:{...u,placement:a}}}}},Dn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(o){const{x:n,y:r,placement:i}=o,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:f,y:w}=g;return{x:f,y:w}}},...u}=re(t,o),c={x:n,y:r},h=await Ee(o,u),m=Z(G(i)),p=qt(m);let d=c[p],y=c[m];if(s){const g=p==="y"?"top":"left",f=p==="y"?"bottom":"right",w=d+h[g],k=d-h[f];d=Ge(w,d,k)}if(a){const g=m==="y"?"top":"left",f=m==="y"?"bottom":"right",w=y+h[g],k=y-h[f];y=Ge(w,y,k)}const v=l.fn({...o,[p]:d,[m]:y});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:s,[m]:a}}}}}},In=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(o){var n,r;const{placement:i,rects:s,platform:a,elements:l}=o,{apply:u=()=>{},...c}=re(t,o),h=await Ee(o,c),m=G(i),p=D(i),d=Z(i)==="y",{width:y,height:v}=s.floating;let g,f;m==="top"||m==="bottom"?(g=m,f=p===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(f=m,g=p==="end"?"top":"bottom");const w=v-h.top-h.bottom,k=y-h.left-h.right,A=we(v-h[g],w),B=we(y-h[f],k),C=!o.middlewareData.shift;let x=A,$=B;if((n=o.middlewareData.shift)!=null&&n.enabled.x&&($=k),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(x=w),C&&!p){const S=ne(h.left,0),E=ne(h.right,0),b=ne(h.top,0),T=ne(h.bottom,0);d?$=y-2*(S!==0||E!==0?S+E:ne(h.left,h.right)):x=v-2*(b!==0||T!==0?b+T:ne(h.top,h.bottom))}await u({...o,availableWidth:$,availableHeight:x});const N=await a.getDimensions(l.floating);return y!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function H(t){var o;return((o=t.ownerDocument)==null?void 0:o.defaultView)||window}function j(t){return H(t).getComputedStyle(t)}const ht=Math.min,he=Math.max,Te=Math.round;function Ut(t){const o=j(t);let n=parseFloat(o.width),r=parseFloat(o.height);const i=t.offsetWidth,s=t.offsetHeight,a=Te(n)!==i||Te(r)!==s;return a&&(n=i,r=s),{width:n,height:r,fallback:a}}function ee(t){return Kt(t)?(t.nodeName||"").toLowerCase():""}let $e;function Xt(){if($e)return $e;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?($e=t.brands.map((o=>o.brand+"/"+o.version)).join(" "),$e):navigator.userAgent}function q(t){return t instanceof H(t).HTMLElement}function Y(t){return t instanceof H(t).Element}function Kt(t){return t instanceof H(t).Node}function gt(t){return typeof ShadowRoot>"u"?!1:t instanceof H(t).ShadowRoot||t instanceof ShadowRoot}function ze(t){const{overflow:o,overflowX:n,overflowY:r,display:i}=j(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+n)&&!["inline","contents"].includes(i)}function Wn(t){return["table","td","th"].includes(ee(t))}function Ze(t){const o=/firefox/i.test(Xt()),n=j(t),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||o&&n.willChange==="filter"||o&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((i=>n.willChange.includes(i)))||["paint","layout","strict","content"].some((i=>{const s=n.contain;return s!=null&&s.includes(i)}))}function Yt(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function lt(t){return["html","body","#document"].includes(ee(t))}function Qt(t){return Y(t)?t:t.contextElement}const Jt={x:1,y:1};function ae(t){const o=Qt(t);if(!q(o))return Jt;const n=o.getBoundingClientRect(),{width:r,height:i,fallback:s}=Ut(o);let a=(s?Te(n.width):n.width)/r,l=(s?Te(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function xe(t,o,n,r){var i,s;o===void 0&&(o=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),l=Qt(t);let u=Jt;o&&(r?Y(r)&&(u=ae(r)):u=ae(t));const c=l?H(l):window,h=!Yt()&&n;let m=(a.left+(h&&((i=c.visualViewport)==null?void 0:i.offsetLeft)||0))/u.x,p=(a.top+(h&&((s=c.visualViewport)==null?void 0:s.offsetTop)||0))/u.y,d=a.width/u.x,y=a.height/u.y;if(l){const v=H(l),g=r&&Y(r)?H(r):r;let f=v.frameElement;for(;f&&r&&g!==v;){const w=ae(f),k=f.getBoundingClientRect(),A=getComputedStyle(f);k.x+=(f.clientLeft+parseFloat(A.paddingLeft))*w.x,k.y+=(f.clientTop+parseFloat(A.paddingTop))*w.y,m*=w.x,p*=w.y,d*=w.x,y*=w.y,m+=k.x,p+=k.y,f=H(f).frameElement}}return{width:d,height:y,top:p,right:m+d,bottom:p+y,left:m,x:m,y:p}}function Q(t){return((Kt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Le(t){return Y(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function eo(t){return xe(Q(t)).left+Le(t).scrollLeft}function be(t){if(ee(t)==="html")return t;const o=t.assignedSlot||t.parentNode||gt(t)&&t.host||Q(t);return gt(o)?o.host:o}function to(t){const o=be(t);return lt(o)?o.ownerDocument.body:q(o)&&ze(o)?o:to(o)}function Ne(t,o){var n;o===void 0&&(o=[]);const r=to(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=H(r);return i?o.concat(s,s.visualViewport||[],ze(r)?r:[]):o.concat(r,Ne(r))}function vt(t,o,n){return o==="viewport"?ye((function(r,i){const s=H(r),a=Q(r),l=s.visualViewport;let u=a.clientWidth,c=a.clientHeight,h=0,m=0;if(l){u=l.width,c=l.height;const p=Yt();(p||!p&&i==="fixed")&&(h=l.offsetLeft,m=l.offsetTop)}return{width:u,height:c,x:h,y:m}})(t,n)):Y(o)?ye((function(r,i){const s=xe(r,!0,i==="fixed"),a=s.top+r.clientTop,l=s.left+r.clientLeft,u=q(r)?ae(r):{x:1,y:1};return{width:r.clientWidth*u.x,height:r.clientHeight*u.y,x:l*u.x,y:a*u.y}})(o,n)):ye((function(r){const i=Q(r),s=Le(r),a=r.ownerDocument.body,l=he(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),u=he(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let c=-s.scrollLeft+eo(r);const h=-s.scrollTop;return j(a).direction==="rtl"&&(c+=he(i.clientWidth,a.clientWidth)-l),{width:l,height:u,x:c,y:h}})(Q(t)))}function wt(t){return q(t)&&j(t).position!=="fixed"?t.offsetParent:null}function xt(t){const o=H(t);let n=wt(t);for(;n&&Wn(n)&&j(n).position==="static";)n=wt(n);return n&&(ee(n)==="html"||ee(n)==="body"&&j(n).position==="static"&&!Ze(n))?o:n||(function(r){let i=be(r);for(;q(i)&&!lt(i);){if(Ze(i))return i;i=be(i)}return null})(t)||o}function jn(t,o,n){const r=q(o),i=Q(o),s=xe(t,!0,n==="fixed",o);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&n!=="fixed")if((ee(o)!=="body"||ze(i))&&(a=Le(o)),q(o)){const u=xe(o,!0);l.x=u.x+o.clientLeft,l.y=u.y+o.clientTop}else i&&(l.x=eo(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}const qn={getClippingRect:function(t){let{element:o,boundary:n,rootBoundary:r,strategy:i}=t;const s=n==="clippingAncestors"?(function(c,h){const m=h.get(c);if(m)return m;let p=Ne(c).filter((g=>Y(g)&&ee(g)!=="body")),d=null;const y=j(c).position==="fixed";let v=y?be(c):c;for(;Y(v)&&!lt(v);){const g=j(v),f=Ze(v);(y?f||d:f||g.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=g:p=p.filter((w=>w!==v)),v=be(v)}return h.set(c,p),p})(o,this._c):[].concat(n),a=[...s,r],l=a[0],u=a.reduce(((c,h)=>{const m=vt(o,h,i);return c.top=he(m.top,c.top),c.right=ht(m.right,c.right),c.bottom=ht(m.bottom,c.bottom),c.left=he(m.left,c.left),c}),vt(o,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:n,strategy:r}=t;const i=q(n),s=Q(n);if(n===s)return o;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((i||!i&&r!=="fixed")&&((ee(n)!=="body"||ze(s))&&(a=Le(n)),q(n))){const c=xe(n);l=ae(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+u.x,y:o.y*l.y-a.scrollTop*l.y+u.y}},isElement:Y,getDimensions:function(t){return q(t)?Ut(t):t.getBoundingClientRect()},getOffsetParent:xt,getDocumentElement:Q,getScale:ae,async getElementRects(t){let{reference:o,floating:n,strategy:r}=t;const i=this.getOffsetParent||xt,s=this.getDimensions;return{reference:jn(o,await i(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>j(t).direction==="rtl"},Gn=(t,o,n)=>{const r=new Map,i={platform:qn,...n},s={...i.platform,_c:r};return En(t,o,{...i,platform:s})};function oo(t,o){for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(typeof o[n]=="object"&&t[n]?oo(t[n],o[n]):t[n]=o[n])}const I={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ke(t,o){let n=I.themes[t]||{},r;do r=n[o],typeof r>"u"?n.$extend?n=I.themes[n.$extend]||{}:(n=null,r=I[o]):n=null;while(n);return r}function Zn(t){const o=[t];let n=I.themes[t]||{};do n.$extend&&!n.$resetCss?(o.push(n.$extend),n=I.themes[n.$extend]||{}):n=null;while(n);return o.map(r=>`v-popper--theme-${r}`)}function bt(t){const o=[t];let n=I.themes[t]||{};do n.$extend?(o.push(n.$extend),n=I.themes[n.$extend]||{}):n=null;while(n);return o}let le=!1;if(typeof window<"u"){le=!1;try{const t=Object.defineProperty({},"passive",{get(){le=!0}});window.addEventListener("test",null,t)}catch{}}let no=!1;typeof window<"u"&&typeof navigator<"u"&&(no=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const ro=["auto","top","bottom","left","right"].reduce((t,o)=>t.concat([o,`${o}-start`,`${o}-end`]),[]),kt={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Ct={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $t(t,o){const n=t.indexOf(o);n!==-1&&t.splice(n,1)}function Fe(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const F=[];let oe=null;const Bt={};function _t(t){let o=Bt[t];return o||(o=Bt[t]=[]),o}let Ue=function(){};typeof window<"u"&&(Ue=window.Element);function _(t){return function(o){return ke(o.theme,t)}}const De="__floating-vue__popper",io=()=>e.defineComponent({name:"VPopper",provide(){return{[De]:{parentPopper:this}}},inject:{[De]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:_("disabled")},positioningDisabled:{type:Boolean,default:_("positioningDisabled")},placement:{type:String,default:_("placement"),validator:t=>ro.includes(t)},delay:{type:[String,Number,Object],default:_("delay")},distance:{type:[Number,String],default:_("distance")},skidding:{type:[Number,String],default:_("skidding")},triggers:{type:Array,default:_("triggers")},showTriggers:{type:[Array,Function],default:_("showTriggers")},hideTriggers:{type:[Array,Function],default:_("hideTriggers")},popperTriggers:{type:Array,default:_("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:_("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:_("popperHideTriggers")},container:{type:[String,Object,Ue,Boolean],default:_("container")},boundary:{type:[String,Ue],default:_("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:_("strategy")},autoHide:{type:[Boolean,Function],default:_("autoHide")},handleResize:{type:Boolean,default:_("handleResize")},instantMove:{type:Boolean,default:_("instantMove")},eagerMount:{type:Boolean,default:_("eagerMount")},popperClass:{type:[String,Array,Object],default:_("popperClass")},computeTransformOrigin:{type:Boolean,default:_("computeTransformOrigin")},autoMinSize:{type:Boolean,default:_("autoMinSize")},autoSize:{type:[Boolean,String],default:_("autoSize")},autoMaxSize:{type:Boolean,default:_("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:_("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:_("preventOverflow")},overflowPadding:{type:[Number,String],default:_("overflowPadding")},arrowPadding:{type:[Number,String],default:_("arrowPadding")},arrowOverflow:{type:Boolean,default:_("arrowOverflow")},flip:{type:Boolean,default:_("flip")},shift:{type:Boolean,default:_("shift")},shiftCrossAxis:{type:Boolean,default:_("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:_("noAutoFocus")},disposeTimeout:{type:Number,default:_("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[De])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,o;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((o=this.popperShowTriggers)==null?void 0:o.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,o)=>(t[o]="$_computePosition",t),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:o=!1,force:n=!1}={}){var r,i;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,o),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:o=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:o}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,o),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(o=>o.nodeType===o.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Fn({mainAxis:this.distance,crossAxis:this.skidding}));const o=this.placement.startsWith("auto");if(o?t.middleware.push(Mn({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Dn({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!o&&this.flip&&t.middleware.push(Rn({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(zn({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:i,middlewareData:s})=>{let a;const{centerOffset:l}=s.arrow;return r.startsWith("top")||r.startsWith("bottom")?a=Math.abs(l)>i.reference.width/2:a=Math.abs(l)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:s,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let u,c;return s.startsWith("top")||s.startsWith("bottom")?u=i.reference.width:c=i.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(In({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:i})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const n=await Gn(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(t,o=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),oe&&this.instantMove&&oe.instantMove&&oe!==this.parentPopper){oe.$_applyHide(!0),this.$_applyShow(!0);return}o?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,o=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(oe=this),o?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const o=this.delay;return parseInt(o&&o[t]||o||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Fe(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ne(this.$_referenceNode),...Ne(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const o=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),i=o.x+o.width/2-(r.left+n.offsetLeft),s=o.y+o.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${i}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let o;for(let n=0;n<F.length;n++)o=F[n],o.showGroup!==t&&(o.hide(),o.$emit("close-group"))}F.push(this),document.body.classList.add("v-popper--some-open");for(const o of bt(this.theme))_t(o).push(this),document.body.classList.add(`v-popper--some-open--${o}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Fe(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,$t(F,this),F.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of bt(this.theme)){const r=_t(n);$t(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}oe===this&&(oe=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const o=this.disposeTimeout;o!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},o)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Fe(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,kt,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],kt,this.popperTriggers,this.popperShowTriggers,t);const o=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Ct,this.triggers,this.hideTriggers,o),this.$_registerTriggerListeners([this.$_popperNode],Ct,this.popperTriggers,this.popperHideTriggers,o)},$_registerEventListeners(t,o,n){this.$_events.push({targetNodes:t,eventType:o,handler:n}),t.forEach(r=>r.addEventListener(o,n,le?{passive:!0}:void 0))},$_registerTriggerListeners(t,o,n,r,i){let s=n;r!=null&&(s=typeof r=="function"?r(s):r),s.forEach(a=>{const l=o[a];l&&this.$_registerEventListeners(t,l,i)})},$_removeEventListeners(t){const o=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:i,handler:s}=n;!t||t===i?r.forEach(a=>a.removeEventListener(i,s)):o.push(n)}),this.$_events=o},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,o=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),o&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,o){for(const n of this.$_targetNodes){const r=n.getAttribute(t);r&&(n.removeAttribute(t),n.setAttribute(o,r))}},$_applyAttrsToTarget(t){for(const o of this.$_targetNodes)for(const n in t){const r=t[n];r==null?o.removeAttribute(n):o.setAttribute(n,r)}},$_updateParentShownChildren(t){let o=this.parentPopper;for(;o;)t?o.shownChildren.add(this.randomId):(o.shownChildren.delete(this.randomId),o.pendingHide&&o.hide()),o=o.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(ge>=t.left&&ge<=t.right&&ve>=t.top&&ve<=t.bottom){const o=this.$_popperNode.getBoundingClientRect(),n=ge-X,r=ve-K,i=o.left+o.width/2-X+(o.top+o.height/2)-K+o.width+o.height,s=X+n*i,a=K+r*i;return Be(X,K,s,a,o.left,o.top,o.left,o.bottom)||Be(X,K,s,a,o.left,o.top,o.right,o.top)||Be(X,K,s,a,o.right,o.top,o.right,o.bottom)||Be(X,K,s,a,o.left,o.bottom,o.right,o.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(no){const t=le?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",o=>St(o,!0),t),document.addEventListener("touchend",o=>At(o,!0),t)}else window.addEventListener("mousedown",t=>St(t,!1),!0),window.addEventListener("click",t=>At(t,!1),!0);window.addEventListener("resize",Xn)}function St(t,o){if(I.autoHideOnMousedown)so(t,o);else for(let n=0;n<F.length;n++){const r=F[n];try{r.mouseDownContains=r.popperNode().contains(t.target)}catch{}}}function At(t,o){I.autoHideOnMousedown||so(t,o)}function so(t,o){const n={};for(let r=F.length-1;r>=0;r--){const i=F[r];try{const s=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(t.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Tt(i,s,t)){if(i.$_handleGlobalClose(t,o),!t.closeAllPopover&&t.closePopover&&s){let l=i.parentPopper;for(;l;)n[l.randomId]=!0,l=l.parentPopper;return}let a=i.parentPopper;for(;a&&Tt(a,a.containsGlobalTarget,t);)a.$_handleGlobalClose(t,o),a=a.parentPopper}})}catch{}}}function Tt(t,o,n){return n.closeAllPopover||n.closePopover&&o||Un(t,n)&&!o}function Un(t,o){if(typeof t.autoHide=="function"){const n=t.autoHide(o);return t.lastAutoHide=n,n}return t.autoHide}function Xn(){for(let t=0;t<F.length;t++)F[t].$_computePosition()}let X=0,K=0,ge=0,ve=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{X=ge,K=ve,ge=t.clientX,ve=t.clientY},le?{passive:!0}:void 0);function Be(t,o,n,r,i,s,a,l){const u=((a-i)*(o-s)-(l-s)*(t-i))/((l-s)*(n-t)-(a-i)*(r-o)),c=((n-t)*(o-s)-(r-o)*(t-i))/((l-s)*(n-t)-(a-i)*(r-o));return u>=0&&u<=1&&c>=0&&c<=1}const Kn={extends:io()},Me=(t,o)=>{const n=t.__vccOpts||t;for(const[r,i]of o)n[r]=i;return n};function Yn(t,o,n,r,i,s){return e.openBlock(),e.createElementBlock("div",{ref:"reference",class:e.normalizeClass(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps(t.slotData)))],2)}const Qn=Me(Kn,[["render",Yn]]);function Jn(){var t=window.navigator.userAgent,o=t.indexOf("MSIE ");if(o>0)return parseInt(t.substring(o+5,t.indexOf(".",o)),10);var n=t.indexOf("Trident/");if(n>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let _e;function Xe(){Xe.init||(Xe.init=!0,_e=Jn()!==-1)}var Re={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Xe(),e.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",_e&&this.$el.appendChild(t),t.data="about:blank",_e||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!_e&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const er=e.withScopeId("data-v-b329ee4c");e.pushScopeId("data-v-b329ee4c");const tr={class:"resize-observer",tabindex:"-1"};e.popScopeId();const or=er((t,o,n,r,i,s)=>(e.openBlock(),e.createBlock("div",tr)));Re.render=or;Re.__scopeId="data-v-b329ee4c";Re.__file="src/components/ResizeObserver.vue";const ao=(t="theme")=>({computed:{themeClass(){return Zn(this[t])}}}),nr=e.defineComponent({name:"VPopperContent",components:{ResizeObserver:Re},mixins:[ao()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),rr=["id","aria-hidden","tabindex","data-popper-placement"],ir={ref:"inner",class:"v-popper__inner"},sr=e.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),ar=e.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),lr=[sr,ar];function ur(t,o,n,r,i,s){const a=e.resolveComponent("ResizeObserver");return e.openBlock(),e.createElementBlock("div",{id:t.popperId,ref:"popover",class:e.normalizeClass(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:e.normalizeStyle(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:o[2]||(o[2]=e.withKeys(l=>t.autoHide&&t.$emit("hide"),["esc"]))},[e.createElementVNode("div",{class:"v-popper__backdrop",onClick:o[0]||(o[0]=l=>t.autoHide&&t.$emit("hide"))}),e.createElementVNode("div",{class:"v-popper__wrapper",style:e.normalizeStyle(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[e.createElementVNode("div",ir,[t.mounted?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"default")]),t.handleResize?(e.openBlock(),e.createBlock(a,{key:0,onNotify:o[1]||(o[1]=l=>t.$emit("resize",l))})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],512),e.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:e.normalizeStyle(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},lr,4)],4)],46,rr)}const lo=Me(nr,[["render",ur]]),uo={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let Ke=function(){};typeof window<"u"&&(Ke=window.Element);const cr=e.defineComponent({name:"VPopperWrapper",components:{Popper:Qn,PopperContent:lo},mixins:[uo,ao("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Ke,Boolean],default:void 0},boundary:{type:[String,Ke],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function dr(t,o,n,r,i,s){const a=e.resolveComponent("PopperContent"),l=e.resolveComponent("Popper");return e.openBlock(),e.createBlock(l,e.mergeProps({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:o[0]||(o[0]=()=>t.$emit("show")),onHide:o[1]||(o[1]=()=>t.$emit("hide")),"onUpdate:shown":o[2]||(o[2]=u=>t.$emit("update:shown",u)),onApplyShow:o[3]||(o[3]=()=>t.$emit("apply-show")),onApplyHide:o[4]||(o[4]=()=>t.$emit("apply-hide")),onCloseGroup:o[5]||(o[5]=()=>t.$emit("close-group")),onCloseDirective:o[6]||(o[6]=()=>t.$emit("close-directive")),onAutoHide:o[7]||(o[7]=()=>t.$emit("auto-hide")),onResize:o[8]||(o[8]=()=>t.$emit("resize"))}),{default:e.withCtx(({popperId:u,isShown:c,shouldMountContent:h,skipTransition:m,autoHide:p,show:d,hide:y,handleResize:v,onResize:g,classes:f,result:w})=>[e.renderSlot(t.$slots,"default",{shown:c,show:d,hide:y}),e.createVNode(a,{ref:"popperContent","popper-id":u,theme:t.finalTheme,shown:c,mounted:h,"skip-transition":m,"auto-hide":p,"handle-resize":v,classes:f,result:w,onHide:y,onResize:g},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"popper",{shown:c,hide:y})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const ut=Me(cr,[["render",dr]]),pr={...ut,name:"VDropdown",vPopperTheme:"dropdown"},fr={...ut,name:"VMenu",vPopperTheme:"menu"},mr={...ut,name:"VTooltip",vPopperTheme:"tooltip"},yr=e.defineComponent({name:"VTooltipDirective",components:{Popper:io(),PopperContent:lo},mixins:[uo],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>ke(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>ke(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const o=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(o,r)):this.onResult(o,n)}},onResult(t,o){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=o)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),hr=["innerHTML"],gr=["textContent"];function vr(t,o,n,r,i,s){const a=e.resolveComponent("PopperContent"),l=e.resolveComponent("Popper");return e.openBlock(),e.createBlock(l,e.mergeProps({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:e.withCtx(({popperId:u,isShown:c,shouldMountContent:h,skipTransition:m,autoHide:p,hide:d,handleResize:y,onResize:v,classes:g,result:f})=>[e.createVNode(a,{ref:"popperContent",class:e.normalizeClass({"v-popper--tooltip-loading":t.loading}),"popper-id":u,theme:t.theme,shown:c,mounted:h,"skip-transition":m,"auto-hide":p,"handle-resize":y,classes:g,result:f,onHide:d,onResize:v},{default:e.withCtx(()=>[t.html?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.finalContent},null,8,hr)):(e.openBlock(),e.createElementBlock("div",{key:1,textContent:e.toDisplayString(t.finalContent)},null,8,gr))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const wr=Me(yr,[["render",vr]]),co="v-popper--has-tooltip";function xr(t,o){let n=t.placement;if(!n&&o)for(const r of ro)o[r]&&(n=r);return n||(n=ke(t.theme||"tooltip","placement")),n}function po(t,o,n){let r;const i=typeof o;return i==="string"?r={content:o}:o&&i==="object"?r=o:r={content:!1},r.placement=xr(r,n),r.targetNodes=()=>[t],r.referenceNode=()=>t,r}let Ie,Ce,br=0;function kr(){if(Ie)return;Ce=e.ref([]),Ie=e.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:Ce}},render(){return this.directives.map(o=>e.h(wr,{...o.options,shown:o.shown||o.options.shown,key:o.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Ie.mount(t)}function Cr(t,o,n){kr();const r=e.ref(po(t,o,n)),i=e.ref(!1),s={id:br++,options:r,shown:i};return Ce.value.push(s),t.classList&&t.classList.add(co),t.$_popper={options:r,item:s,show(){i.value=!0},hide(){i.value=!1}}}function fo(t){if(t.$_popper){const o=Ce.value.indexOf(t.$_popper.item);o!==-1&&Ce.value.splice(o,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(co)}function Nt(t,{value:o,modifiers:n}){const r=po(t,o,n);if(!r.content||ke(r.theme||"tooltip","disabled"))fo(t);else{let i;t.$_popper?(i=t.$_popper,i.options.value=r):i=Cr(t,o,n),typeof o.shown<"u"&&o.shown!==t.$_popperOldShown&&(t.$_popperOldShown=o.shown,o.shown?i.show():i.hide())}}const $r={beforeMount:Nt,updated:Nt,beforeUnmount(t){fo(t)}};function Vt(t){t.addEventListener("mousedown",Ve),t.addEventListener("click",Ve),t.addEventListener("touchstart",mo,le?{passive:!0}:!1)}function Pt(t){t.removeEventListener("mousedown",Ve),t.removeEventListener("click",Ve),t.removeEventListener("touchstart",mo),t.removeEventListener("touchend",yo),t.removeEventListener("touchcancel",ho)}function Ve(t){const o=t.currentTarget;t.closePopover=!o.$_vclosepopover_touch,t.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}function mo(t){if(t.changedTouches.length===1){const o=t.currentTarget;o.$_vclosepopover_touch=!0;const n=t.changedTouches[0];o.$_vclosepopover_touchPoint=n,o.addEventListener("touchend",yo),o.addEventListener("touchcancel",ho)}}function yo(t){const o=t.currentTarget;if(o.$_vclosepopover_touch=!1,t.changedTouches.length===1){const n=t.changedTouches[0],r=o.$_vclosepopover_touchPoint;t.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,t.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}}function ho(t){const o=t.currentTarget;o.$_vclosepopover_touch=!1}const Br={beforeMount(t,{value:o,modifiers:n}){t.$_closePopoverModifiers=n,(typeof o>"u"||o)&&Vt(t)},updated(t,{value:o,oldValue:n,modifiers:r}){t.$_closePopoverModifiers=r,o!==n&&(typeof o>"u"||o?Vt(t):Pt(t))},beforeUnmount(t){Pt(t)}};function _r(t,o={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,oo(I,o),t.directive("tooltip",$r),t.directive("close-popper",Br),t.component("VTooltip",mr),t.component("VDropdown",pr),t.component("VMenu",fr))}const Sr={version:"5.2.2",install:_r,options:I},Ar="c3fd21c9-c91a-4c66-baa5-c3e050c2cc74",Et="2026-10-13T14:00:00.000Z",Tr="69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1",We="https://i.allsvgicons.com/lucide",ie={marketplace:"https://svgl.app/library/mercado-libre.svg",support:`${We}/headphones.svg`,chat:`${We}/message-circle.svg`,cancel:`${We}/x.svg`},ce={logo:ie.marketplace,title:"Mercado Livre",subtitle:"Atendimento online"},de=(t,o,n)=>({logo:t,eyebrow:"MERCADO LIVRE",title:o,subtitle:n}),Nr=[{name:"name",alias:"Nome",required:!0},{name:"phone",alias:"Telefone",required:!0},{name:"email",alias:"E-mail",required:!1}],Vr=[{name:"name",alias:"Nome",required:!0},{name:"phone",alias:"Telefone",required:!0},{name:"email",alias:"E-mail",required:!1},{name:"cpf",alias:"CPF",required:!0}],pe=t=>({id:t.id,companyId:Ar,name:t.name,action:t.action,message:null,automaticMessage:null,callOnQueue:null,uraDescription:null,interactiveMessageId:null,configId:t.configId??null,queueId:null,redirectQueue:null,redirectRuleId:null,questionnaire:null,webhook:null,isRoot:!1,redirectDefault:!1,redirectTimeout:60,delay:null,disableTyping:!1,settings:t.settings??null,archivedAt:null,autoTagEnabled:!1,autoTagIds:[],createdAt:Et,updatedAt:Et}),me=(t,o)=>({id:t,nextRuleId:o}),zt=pe({id:"a1111111-1111-4111-8111-111111111105",name:"Falar com atendente",action:"service",settings:{header:ce,body:de(ie.chat,"Falar com atendente","Conte o que você precisa e vamos te ajudar."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Lt=pe({id:"a1111111-1111-4111-8111-111111111101",name:"Consultar meu plano",action:"service",settings:{header:ce,body:de(ie.support,"Consultar meu plano","Vamos te ajudar a entender o seu plano."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Mt=pe({id:"a1111111-1111-4111-8111-111111111106",name:"Cancelar plano",action:"service",settings:{header:ce,body:de(ie.cancel,"Cancelar plano","Vamos verificar se o plano ainda pode ser cancelado."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),je=pe({id:"b2222222-2222-4222-8222-222222222201",name:"Consultar meu plano",action:"identification",settings:{header:ce,body:de(ie.support,"Consultar meu plano","Informe seus dados para consultar o plano."),form:{fields:[...Nr]}}}),qe=pe({id:"b2222222-2222-4222-8222-222222222204",name:"Cancelar plano",action:"identification",settings:{header:ce,body:de(ie.cancel,"Cancelar plano","Informe seus dados para verificar o cancelamento."),form:{fields:[...Vr]}}}),Ye=pe({id:"d0000000-0000-4000-8000-000000000001",name:"Mercado Livre",action:"screen",configId:"37b0b2d3-6a07-4567-a5ad-7456a820905d",settings:{header:ce,body:de(ie.marketplace,"Como podemos ajudar?","Escolha uma opção para continuar.")}}),go={id:Tr,rules:[zt,je,qe,Lt,Mt,Ye],edges:{[Ye.id]:[me("aa2db433-f691-4b0e-b2f3-703eb131fcc1",zt.id),me("aa2db433-f691-4b0e-b2f3-703eb131fcc2",je.id),me("aa2db433-f691-4b0e-b2f3-703eb131fcc3",qe.id)],[je.id]:[me("cc2db433-f691-4b0e-b2f3-703eb131fcc1",Lt.id)],[qe.id]:[me("cc2db433-f691-4b0e-b2f3-703eb131fcc2",Mt.id)]}},Pr=Ye,Er=t=>go.rules.find(o=>o.id===t),zr={configurations:{alias:"Mercado Livre",general:{defaultBehavior:"inactive",language:"pt-BR",isClosable:!0},appearance:{theme:"light",primaryColor:"#FFE600"},anchor:{label:"Fale conosco",size:"medium",logo:"https://svgl.app/library/mercado-libre.svg",position:"bottom-right",offset:{x:32,y:36}}}},Lr={install:t=>{t.use(Sr),t.component("AppIdentificationPage",et),t.component("AppFormTextInput",Qe),t.component("AppWidgetAnchor",tt),t.component("AppServicePage",nt),t.component("AppScreenPage",rt),t.component("AppWidgetView",it),t.component("AppTextInput",Wt),t.component("AppCarousel",Je),t.component("AppMessage",ot),t.component("AppWidget",jt),t.component("AppButton",J),t.component("AppGroup",U),t.component("AppIcon",M),t.component("AppText",V)}};exports.AppButton=J;exports.AppCarousel=Je;exports.AppFormTextInput=Qe;exports.AppGroup=U;exports.AppIcon=M;exports.AppIdentificationPage=et;exports.AppMessage=ot;exports.AppScreenPage=rt;exports.AppServicePage=nt;exports.AppText=V;exports.AppTextInput=Wt;exports.AppWidget=jt;exports.AppWidgetAnchor=tt;exports.AppWidgetView=it;exports.default=Lr;exports.demoRootRule=Pr;exports.demoWidgetConfig=zr;exports.demoWorkflow=go;exports.findDemoRuleById=Er;exports.useAppWidget=ue;exports.useServiceChatBehavior=Ot;exports.useServicePage=Ht;exports.useServiceVoiceBehavior=Rt;
|