@opens/widget-ui 1.0.3 → 1.0.5
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/components/widget/{app-anchor.vue.d.ts → app-widget-anchor.vue.d.ts} +9 -0
- package/dist/components/widget/app-widget-view.vue.d.ts +19 -0
- package/dist/components/widget/app-widget.vue.d.ts +4 -2
- package/dist/composables/use-app-widget.d.ts +2 -0
- package/dist/composables/use-hex-color.d.ts +3 -0
- package/dist/composables/use-widget-anchor.d.ts +10 -0
- package/dist/index.d.ts +3 -4
- package/dist/main.d.ts +8 -8
- package/dist/widget/app-widget-anchor.vue.d.ts +4 -0
- package/dist/widget/app-widget-anchor.vue.d.ts.map +1 -0
- package/dist/widget/app-widget-view.vue.d.ts +5 -0
- package/dist/widget/app-widget-view.vue.d.ts.map +1 -0
- 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 +3836 -3771
- package/dist/yunique_widget_ui.umd.js +2 -2
- package/package.json +1 -1
- package/dist/composables/use-app-flow.d.ts +0 -13
- package/dist/widget/app-anchor.vue.d.ts +0 -4
- package/dist/widget/app-anchor.vue.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),ko=["top","right","bottom","left"],ct=["start","end"],dt=ko.reduce((e,o)=>e.concat(o,o+"-"+ct[0],o+"-"+ct[1]),[]),ve=Math.min,se=Math.max,Co={left:"right",right:"left",bottom:"top",top:"bottom"},$o={start:"end",end:"start"};function Ze(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 Dt(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}const Bo=new Set(["top","bottom"]);function K(e){return Bo.has(Y(e))?"y":"x"}function et(e){return Dt(K(e))}function It(e,o,n){n===void 0&&(n=!1);const r=G(e),i=et(e),a=Je(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 _o(e){const o=Ae(e);return[Se(e),o,Se(o)]}function Se(e){return e.replace(/start|end/g,o=>$o[o])}const pt=["left","right"],ft=["right","left"],So=["top","bottom"],Ao=["bottom","top"];function To(e,o,n){switch(e){case"top":case"bottom":return n?o?ft:pt:o?pt:ft;case"left":case"right":return o?So:Ao;default:return[]}}function No(e,o,n,r){const i=G(e);let a=To(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=>Co[o])}function Eo(e){return{top:0,right:0,bottom:0,left:0,...e}}function jt(e){return typeof e!="number"?Eo(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 mt(e,o,n){let{reference:r,floating:i}=e;const a=K(o),l=et(o),s=Je(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 Po=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}=mt(c,r,u),h=r,m={},g=0;for(let w=0;w<s.length;w++){const{name:f,fn:y}=s[w],{x:v,y:k,data:C,reset:S}=await y({x:d,y:p,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:o}});d=v??d,p=k??p,m={...m,[f]:{...m[f],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:i}):S.rects),{x:d,y:p}=mt(c,h,u)),w=-1)}return{x:d,y:p,placement:h,strategy:i,middlewareData:m}};async function Pe(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),g=jt(m),f=s[h?p==="floating"?"reference":"floating":p],y=me(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(f)))==null||n?f:f.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),v=p==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},S=me(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:k,strategy:u}):v);return{top:(y.top-S.top+g.top)/C.y,bottom:(S.bottom-y.bottom+g.bottom)/C.y,left:(y.left-S.left+g.left)/C.x,right:(S.right-y.right+g.right)/C.x}}const Vo=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=jt(d),h={x:n,y:r},m=et(i),g=Je(m),w=await l.getDimensions(c),f=m==="y",y=f?"top":"left",v=f?"bottom":"right",k=f?"clientHeight":"clientWidth",C=a.reference[g]+a.reference[m]-h[m]-a.floating[g],S=h[m]-a.reference[m],B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let x=B?B[k]:0;(!x||!await(l.isElement==null?void 0:l.isElement(B)))&&(x=s.floating[k]||a.floating[g]);const $=C/2-S/2,N=x/2-w[g]/2-1,A=ve(p[y],N),V=ve(p[v],N),b=A,T=x-w[g]-V,P=x/2-w[g]/2+$,D=Ze(b,P,T),z=!u.arrow&&G(i)!=null&&P!==D&&a.reference[g]/2-(P<b?A:V)-w[g]/2<0,R=z?P<b?P-b:P-T:0;return{[m]:h[m]+R,data:{[m]:D,centerOffset:P-D-R,...z&&{alignmentOffset:R}},reset:z}}});function zo(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 Ro=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=dt,autoAlignment:m=!0,...g}=ue(e,o),w=p!==void 0||h===dt?zo(p||null,m,h):h,f=await Pe(o,g),y=((n=l.autoPlacement)==null?void 0:n.index)||0,v=w[y];if(v==null)return{};const k=It(v,a,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==v)return{reset:{placement:w[0]}};const C=[f[Y(v)],f[k[0]],f[k[1]]],S=[...((r=l.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:C}],B=w[y+1];if(B)return{data:{index:y+1,overflows:S},reset:{placement:B}};const x=S.map(A=>{const V=G(A.placement);return[A.placement,V&&d?A.overflows.slice(0,2).reduce((b,T)=>b+T,0):A.overflows[0],A.overflows]}).sort((A,V)=>A[1]-V[1]),N=((i=x.filter(A=>A[2].slice(0,G(A[0])?2:3).every(V=>V<=0))[0])==null?void 0:i[0])||x[0][0];return N!==s?{data:{index:y+1,overflows:S},reset:{placement:N}}:{}}}},Oo=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:g="none",flipAlignment:w=!0,...f}=ue(e,o);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Y(i),v=K(s),k=Y(s)===s,C=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(k||!w?[Ae(s)]:_o(s)),B=g!=="none";!h&&B&&S.push(...No(s,w,g,C));const x=[s,...S],$=await Pe(o,f),N=[];let A=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push($[y]),p){const P=It(i,l,C);N.push($[P[0]],$[P[1]])}if(A=[...A,{placement:i,overflows:N}],!N.every(P=>P<=0)){var V,b;const P=(((V=a.flip)==null?void 0:V.index)||0)+1,D=x[P];if(D&&(!(p==="alignment"?v!==K(D):!1)||A.every(I=>K(I.placement)===v?I.overflows[0]>0:!0)))return{data:{index:P,overflows:A},reset:{placement:D}};let z=(b=A.filter(R=>R.overflows[0]<=0).sort((R,I)=>R.overflows[1]-I.overflows[1])[0])==null?void 0:b.placement;if(!z)switch(m){case"bestFit":{var T;const R=(T=A.filter(I=>{if(B){const U=K(I.placement);return U===v||U==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(U=>U>0).reduce((U,bo)=>U+bo,0)]).sort((I,U)=>I[1]-U[1])[0])==null?void 0:T[0];R&&(z=R);break}case"initialPlacement":z=s;break}if(i!==z)return{reset:{placement:z}}}return{}}}},Lo=new Set(["left","top"]);async function Mo(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=Lo.has(l)?-1:1,d=a&&u?-1:1,p=ue(o,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Fo=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 Mo(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}}}}},Ho=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:f=>{let{x:y,y:v}=f;return{x:y,y:v}}},...u}=ue(e,o),c={x:n,y:r},d=await Pe(o,u),p=K(Y(i)),h=Dt(p);let m=c[h],g=c[p];if(a){const f=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=m+d[f],k=m-d[y];m=Ze(v,m,k)}if(l){const f=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+d[f],k=g-d[y];g=Ze(v,g,k)}const w=s.fn({...o,[h]:m,[p]:g});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:a,[p]:l}}}}}},Do=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 Pe(o,c),p=Y(i),h=G(i),m=K(i)==="y",{width:g,height:w}=a.floating;let f,y;p==="top"||p==="bottom"?(f=p,y=h===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,f=h==="end"?"top":"bottom");const v=w-d.top-d.bottom,k=g-d.left-d.right,C=ve(w-d[f],v),S=ve(g-d[y],k),B=!o.middlewareData.shift;let x=C,$=S;if((n=o.middlewareData.shift)!=null&&n.enabled.x&&($=k),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(x=v),B&&!h){const A=se(d.left,0),V=se(d.right,0),b=se(d.top,0),T=se(d.bottom,0);m?$=g-2*(A!==0||V!==0?A+V:se(d.left,d.right)):x=w-2*(b!==0||T!==0?b+T:se(d.top,d.bottom))}await u({...o,availableWidth:$,availableHeight:x});const N=await l.getDimensions(s.floating);return g!==N.width||w!==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 ht=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 Gt(e)?(e.nodeName||"").toLowerCase():""}let $e;function Wt(){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 Gt(e){return e instanceof q(e).Node}function yt(e){return typeof ShadowRoot>"u"?!1:e instanceof q(e).ShadowRoot||e instanceof ShadowRoot}function Ve(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 Io(e){return["table","td","th"].includes(re(e))}function Ue(e){const o=/firefox/i.test(Wt()),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 Zt(){return!/^((?!chrome|android).)*safari/i.test(Wt())}function tt(e){return["html","body","#document"].includes(re(e))}function Ut(e){return oe(e)?e:e.contextElement}const Xt={x:1,y:1};function de(e){const o=Ut(e);if(!Q(o))return Xt;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=Ut(e);let u=Xt;o&&(r?oe(r)&&(u=de(r)):u=de(e));const c=s?q(s):window,d=!Zt()&&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,g=l.height/u.y;if(s){const w=q(s),f=r&&oe(r)?q(r):r;let y=w.frameElement;for(;y&&r&&f!==w;){const v=de(y),k=y.getBoundingClientRect(),C=getComputedStyle(y);k.x+=(y.clientLeft+parseFloat(C.paddingLeft))*v.x,k.y+=(y.clientTop+parseFloat(C.paddingTop))*v.y,p*=v.x,h*=v.y,m*=v.x,g*=v.y,p+=k.x,h+=k.y,y=q(y).frameElement}}return{width:m,height:g,top:h,right:p+m,bottom:h+g,left:p,x:p,y:h}}function ne(e){return((Gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ze(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qt(e){return we(ne(e)).left+ze(e).scrollLeft}function xe(e){if(re(e)==="html")return e;const o=e.assignedSlot||e.parentNode||yt(e)&&e.host||ne(e);return yt(o)?o.host:o}function Yt(e){const o=xe(e);return tt(o)?o.ownerDocument.body:Q(o)&&Ve(o)?o:Yt(o)}function Ne(e,o){var n;o===void 0&&(o=[]);const r=Yt(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=q(r);return i?o.concat(a,a.visualViewport||[],Ve(r)?r:[]):o.concat(r,Ne(r))}function gt(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=Zt();(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=ze(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+Qt(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 vt(e){return Q(e)&&X(e).position!=="fixed"?e.offsetParent:null}function wt(e){const o=q(e);let n=vt(e);for(;n&&Io(n)&&X(n).position==="static";)n=vt(n);return n&&(re(n)==="html"||re(n)==="body"&&X(n).position==="static"&&!Ue(n))?o:n||(function(r){let i=xe(r);for(;Q(i)&&!tt(i);){if(Ue(i))return i;i=xe(i)}return null})(e)||o}function jo(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"||Ve(i))&&(l=ze(o)),Q(o)){const u=we(o,!0);s.x=u.x+o.clientLeft,s.y=u.y+o.clientTop}else i&&(s.x=Qt(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}const qo={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((f=>oe(f)&&re(f)!=="body")),m=null;const g=X(c).position==="fixed";let w=g?xe(c):c;for(;oe(w)&&!tt(w);){const f=X(w),y=Ue(w);(g?y||m:y||f.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=f:h=h.filter((v=>v!==w)),w=xe(w)}return d.set(c,h),h})(o,this._c):[].concat(n),l=[...a,r],s=l[0],u=l.reduce(((c,d)=>{const p=gt(o,d,i);return c.top=he(p.top,c.top),c.right=ht(p.right,c.right),c.bottom=ht(p.bottom,c.bottom),c.left=he(p.left,c.left),c}),gt(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"||Ve(a))&&(l=ze(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:wt,getDocumentElement:ne,getScale:de,async getElementRects(e){let{reference:o,floating:n,strategy:r}=e;const i=this.getOffsetParent||wt,a=this.getDimensions;return{reference:jo(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"},Wo=(e,o,n)=>{const r=new Map,i={platform:qo,...n},a={...i.platform,_c:r};return Po(e,o,{...i,platform:a})};function Kt(e,o){for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(typeof o[n]=="object"&&e[n]?Kt(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 Go(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 xt(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 Jt=!1;typeof window<"u"&&typeof navigator<"u"&&(Jt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const eo=["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"},kt={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Ct(e,o){const n=e.indexOf(o);n!==-1&&e.splice(n,1)}function Me(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const W=[];let ie=null;const $t={};function Bt(e){let o=$t[e];return o||(o=$t[e]=[]),o}let Xe=function(){};typeof window<"u"&&(Xe=window.Element);function _(e){return function(o){return be(o.theme,e)}}const Fe="__floating-vue__popper",to=()=>t.defineComponent({name:"VPopper",provide(){return{[Fe]:{parentPopper:this}}},inject:{[Fe]:{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:e=>eo.includes(e)},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,Xe,Boolean],default:_("container")},boundary:{type:[String,Xe],default:_("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),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":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[Fe])==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(Fo({mainAxis:this.distance,crossAxis:this.skidding}));const o=this.placement.startsWith("auto");if(o?e.middleware.push(Ro({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Ho({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!o&&this.flip&&e.middleware.push(Oo({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Vo({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(Do({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 Wo(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 Me(),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 xt(this.theme))Bt(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 Me(),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,Ct(W,this),W.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of xt(this.theme)){const r=Bt(n);Ct(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 Me(),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,kt,this.triggers,this.hideTriggers,o),this.$_registerTriggerListeners([this.$_popperNode],kt,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(Jt){const e=pe?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",o=>_t(o,!0),e),document.addEventListener("touchend",o=>St(o,!0),e)}else window.addEventListener("mousedown",e=>_t(e,!1),!0),window.addEventListener("click",e=>St(e,!1),!0);window.addEventListener("resize",Uo)}function _t(e,o){if(Z.autoHideOnMousedown)oo(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 St(e,o){Z.autoHideOnMousedown||oo(e,o)}function oo(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]&&At(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&&At(l,l.containsGlobalTarget,e);)l.$_handleGlobalClose(e,o),l=l.parentPopper}})}catch{}}}function At(e,o,n){return n.closeAllPopover||n.closePopover&&o||Zo(e,n)&&!o}function Zo(e,o){if(typeof e.autoHide=="function"){const n=e.autoHide(o);return e.lastAutoHide=n,n}return e.autoHide}function Uo(){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 Xo={extends:to()},Re=(e,o)=>{const n=e.__vccOpts||e;for(const[r,i]of o)n[r]=i;return n};function Qo(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 Yo=Re(Xo,[["render",Qo]]);function Ko(){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 Qe(){Qe.init||(Qe.init=!0,_e=Ko()!==-1)}var Oe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Qe(),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 Jo=t.withScopeId("data-v-b329ee4c");t.pushScopeId("data-v-b329ee4c");const en={class:"resize-observer",tabindex:"-1"};t.popScopeId();const tn=Jo((e,o,n,r,i,a)=>(t.openBlock(),t.createBlock("div",en)));Oe.render=tn;Oe.__scopeId="data-v-b329ee4c";Oe.__file="src/components/ResizeObserver.vue";const no=(e="theme")=>({computed:{themeClass(){return Go(this[e])}}}),on=t.defineComponent({name:"VPopperContent",components:{ResizeObserver:Oe},mixins:[no()],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}}}),nn=["id","aria-hidden","tabindex","data-popper-placement"],rn={ref:"inner",class:"v-popper__inner"},an=t.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),sn=t.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1),ln=[an,sn];function un(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",rn,[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)},ln,4)],4)],46,nn)}const ro=Re(on,[["render",un]]),io={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 Ye=function(){};typeof window<"u"&&(Ye=window.Element);const cn=t.defineComponent({name:"VPopperWrapper",components:{Popper:Yo,PopperContent:ro},mixins:[io,no("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,Ye,Boolean],default:void 0},boundary:{type:[String,Ye],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 dn(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:g,handleResize:w,onResize:f,classes:y,result:v})=>[t.renderSlot(e.$slots,"default",{shown:c,show:m,hide:g}),t.createVNode(l,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:c,mounted:d,"skip-transition":p,"auto-hide":h,"handle-resize":w,classes:y,result:v,onHide:g,onResize:f},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"popper",{shown:c,hide:g})]),_: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 ot=Re(cn,[["render",dn]]),pn={...ot,name:"VDropdown",vPopperTheme:"dropdown"},fn={...ot,name:"VMenu",vPopperTheme:"menu"},mn={...ot,name:"VTooltip",vPopperTheme:"tooltip"},hn=t.defineComponent({name:"VTooltipDirective",components:{Popper:to(),PopperContent:ro},mixins:[io],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}}}),yn=["innerHTML"],gn=["textContent"];function vn(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:g,onResize:w,classes:f,result:y})=>[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":g,classes:f,result:y,onHide:m,onResize:w},{default:t.withCtx(()=>[e.html?(t.openBlock(),t.createElementBlock("div",{key:0,innerHTML:e.finalContent},null,8,yn)):(t.openBlock(),t.createElementBlock("div",{key:1,textContent:t.toDisplayString(e.finalContent)},null,8,gn))]),_: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 wn=Re(hn,[["render",vn]]),ao="v-popper--has-tooltip";function xn(e,o){let n=e.placement;if(!n&&o)for(const r of eo)o[r]&&(n=r);return n||(n=be(e.theme||"tooltip","placement")),n}function so(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=xn(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let He,ke,bn=0;function kn(){if(He)return;ke=t.ref([]),He=t.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:ke}},render(){return this.directives.map(o=>t.h(wn,{...o.options,shown:o.shown||o.options.shown,key:o.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),He.mount(e)}function Cn(e,o,n){kn();const r=t.ref(so(e,o,n)),i=t.ref(!1),a={id:bn++,options:r,shown:i};return ke.value.push(a),e.classList&&e.classList.add(ao),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function lo(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(ao)}function Tt(e,{value:o,modifiers:n}){const r=so(e,o,n);if(!r.content||be(r.theme||"tooltip","disabled"))lo(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=Cn(e,o,n),typeof o.shown<"u"&&o.shown!==e.$_popperOldShown&&(e.$_popperOldShown=o.shown,o.shown?i.show():i.hide())}}const $n={beforeMount:Tt,updated:Tt,beforeUnmount(e){lo(e)}};function Nt(e){e.addEventListener("mousedown",Ee),e.addEventListener("click",Ee),e.addEventListener("touchstart",uo,pe?{passive:!0}:!1)}function Et(e){e.removeEventListener("mousedown",Ee),e.removeEventListener("click",Ee),e.removeEventListener("touchstart",uo),e.removeEventListener("touchend",co),e.removeEventListener("touchcancel",po)}function Ee(e){const o=e.currentTarget;e.closePopover=!o.$_vclosepopover_touch,e.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}function uo(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",co),o.addEventListener("touchcancel",po)}}function co(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 po(e){const o=e.currentTarget;o.$_vclosepopover_touch=!1}const Bn={beforeMount(e,{value:o,modifiers:n}){e.$_closePopoverModifiers=n,(typeof o>"u"||o)&&Nt(e)},updated(e,{value:o,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,o!==n&&(typeof o>"u"||o?Nt(e):Et(e))},beforeUnmount(e){Et(e)}};function _n(e,o={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Kt(Z,o),e.directive("tooltip",$n),e.directive("close-popper",Bn),e.component("VTooltip",mn),e.component("VDropdown",pn),e.component("VMenu",fn))}const Sn={version:"5.2.2",install:_n,options:Z};function An(){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([]);function Ce(){return{history:fe,clearHistory:()=>{fe.value=[]},pushHistory:i=>{fe.value.push(i)},setHistory:i=>{fe.value=[...i]},popHistory:()=>fe.value.pop()}}const ce=e=>e==="name",Pt=e=>!!e?.trim(),Tn=e=>{const o=e.filter(r=>ce(r.name)),n=e.filter(r=>!ce(r.name));return[...o,...n]};function Nn(e,o){const{maskPhone:n,maskCpf:r}=An(),{history:i}=Ce(),a=t.ref(0),l=t.ref("forward"),s=t.ref(null),u=t.computed(()=>{const b=t.toValue(e),T=b.settings?.form&&b.settings.form.fields||[];return Tn(T)}),c=t.reactive(Object.fromEntries(u.value.map(b=>[b.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 b=s.value;if(!b)return;(b.querySelector(".is-active input")??b.querySelector("input"))?.focus({preventScroll:!0})});const g=t.computed(()=>u.value.every(b=>!b.required||Pt(c[b.name]))),w=b=>{const T=u.value[b];return T?T.required&&!Pt(c[T.name])?!1:b>=u.value.length-1?g.value:!0:g.value},f=t.computed(()=>w(a.value)),y=t.computed(()=>{const b=u.value.find(T=>ce(T.name));return b?c[b.name]?.trim().split(/\s+/)[0]??"":""}),v=b=>{const T=u.value[b],P=y.value,D=u.value.length?`Passo ${b+1} de ${u.value.length}`:"",z=t.toValue(e),R=b>=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=R?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}},k=t.computed(()=>v(a.value)),C=b=>b==="email"?"email":b==="phone"?"tel":"text",S=b=>b==="email"?"email":b==="phone"?"call":ce(b)?"person":b==="order"?"receipt":"badge",B=b=>b.required?`${b.alias} *`:b.alias,x=b=>ce(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=()=>{g.value&&o("submit",{...c})};return{stepTransition:m,currentField:d,canContinue:f,currentStep:a,isLastStep:p,stepIntro:k,fieldHost:s,showBack:h,fields:u,form:c,continueStep:()=>{if(f.value){if(p.value||u.value.length===0)return N();l.value="forward",a.value+=1}},canContinueAt:w,introFor:v,fieldLabel:B,fieldPlaceholder:x,fieldType:C,fieldMask:$,fieldIcon:S,goBack:()=>{if(a.value>0){l.value="back",a.value-=1;return}o("back")}}}function fo(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 En(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 Pn=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}=En("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))}}),nt=(e,o)=>{const n=e.__vccOpts||e;for(const[r,i]of o)n[r]=i;return n},E=nt(Pn,[["__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,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-flex",h.value])},[t.renderSlot(m.$slots,"default")],2))}}),Vn={class:"yu-flex yu-flex-col yu-items-stretch yu-w-full yu-cursor-text yu-gap-1","data-testid":"app-form-text-input"},zn=["value","type","placeholder","disabled","maxlength","aria-invalid"],rt=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(f){return!!a.value[f]}const s=t.ref(""),u=t.ref(!1);function c(f){if(!r.maskFunction)return f;try{const y=r.maskFunction(f);return typeof y=="string"?y:f}catch{return f}}t.watch(()=>r.modelValue,f=>{if(f==null){s.value="";return}s.value=r.maskFunction?c(f):f},{immediate:!0});const{width:d}=fo(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"),g=t.computed(()=>r.disabled?"yu-opacity-50 yu-pointer-events-none":"");function w(f){const v=f.target.value;s.value=r.maskFunction?c(v):v,i("update:modelValue",s.value)}return o({focus:u,content:s}),(f,y)=>(t.openBlock(),t.createBlock(J,{class:t.normalizeClass([t.unref(d),g.value]),col:"","gap-none":""},{default:t.withCtx(()=>[t.createElementVNode("label",Vn,[l("default")?(t.openBlock(),t.createBlock(E,{key:0,small:"",gray:"",class:t.normalizeClass([p.value])},{default:t.withCtx(()=>[t.renderSlot(f.$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:w,onFocus:y[0]||(y[0]=v=>u.value=!0),onBlur:y[1]||(y[1]=v=>u.value=!1),onKeyup:y[2]||(y[2]=t.withKeys(v=>i("keyup-enter"),["enter"]))},null,42,zn)]),l("feedback")?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["yu-mt-1",[m.value]])},[t.renderSlot(f.$slots,"feedback")],2)):t.createCommentVNode("",!0)]),_:3},8,["class"]))}});function Rn(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 L=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))}}),On=["disabled"],Ln={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}=Rn(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,g)=>(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:g[0]||(g[0]=w=>m.$emit("click",w))},[t.createElementVNode("div",Ln,[e.loading?(t.openBlock(),t.createBlock(L,{key:0,class:"yu-animate-spin yu-flex yu-items-center yu-justify-center",small:"",outlined:""},{default:t.withCtx(()=>[...g[1]||(g[1]=[t.createTextVNode("progress_activity",-1)])]),_:1})):r("icon")?(t.openBlock(),t.createBlock(L,{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(L,{key:0,small:""},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"trailing")]),_:3})):t.createCommentVNode("",!0)],10,On))}}),Mn=["aria-hidden"],Fn=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(x=>x.type===t.Comment||x.type===t.Text?[]:x.type===t.Fragment?(x.children??[]).filter($=>!!$&&typeof $=="object"&&$.type!==t.Comment&&$.type!==t.Text):[x]),g=x=>{const $=Math.abs(x-h.value);return $===0?"is-active":$===1?"is-adjacent":"is-far"},w=x=>{const $=s.value?.childElementCount||m().length,N=Math.min(Math.max(x,0),Math.max($-1,0));N!==r.modelValue&&i("update:modelValue",N)},f=()=>{const x=l.value;x&&(x.scrollLeft&&(x.scrollLeft=0),x.scrollTop&&(x.scrollTop=0))},y=()=>{const x=l.value,$=s.value;if(!x||!$)return;f();const N=[...$.children],A=parseFloat(getComputedStyle($).gap)||0,V=parseFloat(getComputedStyle(x).scrollPaddingTop)||0,b=z=>r.vertical?z.offsetHeight:z.offsetWidth,T=N[h.value]?b(N[h.value]):0,P=r.vertical&&r.fill?Math.max((x.clientHeight-T)/2,0):V,D=N.slice(0,h.value).reduce((z,R)=>z+b(R)+A,0);u.value=P-D,c.value=r.vertical&&!r.fill?T+V*2:0,d.value=!0},v=()=>{p?.disconnect();const x=l.value,$=s.value;if(!(!x||!$)&&(y(),!(typeof ResizeObserver>"u"))){if(p=new ResizeObserver(y),p.observe(x),r.vertical)for(const N of $.children)p.observe(N);x.removeEventListener("scroll",f),x.addEventListener("scroll",f,{passive:!0})}},k=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"),S=t.computed(()=>{if(!(!r.vertical||r.fill||!c.value))return{height:`${c.value}px`}}),B=t.computed(()=>{const x=`${u.value}px`;return{transform:r.vertical?`translate3d(0, ${x}, 0)`:`translate3d(${x}, 0, 0)`}});return t.watch(()=>[r.vertical,r.fill,r.modelValue],async()=>{await t.nextTick(),v()}),t.onMounted(async()=>{await t.nextTick(),v()}),t.onBeforeUnmount(()=>{p?.disconnect(),l.value?.removeEventListener("scroll",f)}),o({next:()=>w(h.value+1),prev:()=>w(h.value-1),goTo:w}),(x,$)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-relative yu-w-full yu-overflow-hidden",k.value]),ref_key:"rootRef",ref:l,"data-testid":"app-carousel",style:t.normalizeStyle(S.value)},[t.createElementVNode("div",{class:t.normalizeClass(["yu-carousel-track yu-flex",C.value]),ref_key:"trackRef",ref:s,style:t.normalizeStyle(B.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",g(A)]),key:N.key??A,"aria-hidden":A!==h.value,"data-testid":"app-carousel-slide"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(N)))],10,Mn))),128))],6)],6))}}),it=nt(Fn,[["__scopeId","data-v-c6006063"]]),Hn={class:"yu-flex yu-flex-col yu-w-full yu-h-full"},Dn={class:"yu-relative yu-flex yu-items-center yu-w-full yu-shrink-0"},In={class:"yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"},jn={class:"yu-absolute yu-inset-0 yu-flex yu-items-center yu-justify-center yu-pointer-events-none"},qn={class:"yu-flex yu-items-center yu-gap-1.5"},at=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:g,goBack:w}=Nn(()=>n.rule,r);return(f,y)=>(t.openBlock(),t.createElementBlock("div",Hn,[t.createElementVNode("div",Dn,[t.createElementVNode("div",In,[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:y[0]||(y[0]=(...v)=>t.unref(w)&&t.unref(w)(...v))},[t.createVNode(L,{class:"yu-transition-colors group-hover:!yu-text-gray-700",small:"",gray:""},{default:t.withCtx(()=>[...y[2]||(y[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(()=>[...y[3]||(y[3]=[t.createTextVNode("Voltar",-1)])]),_:1})],2)]),t.createElementVNode("div",jn,[t.createElementVNode("div",qn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(v,k)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-h-1 yu-w-6 yu-rounded-full yu-transition-colors",k<=t.unref(i)?"yu-bg-gray-900":"yu-bg-gray-200"]),key:k},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(it,{class:"yu-w-full yu-h-full",modelValue:t.unref(i),"onUpdate:modelValue":y[1]||(y[1]=v=>t.isRef(i)?i.value=v:null),vertical:"",fill:""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(v,k)=>(t.openBlock(),t.createBlock(J,{class:"yu-w-full yu-gap-8",key:v.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)(k).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)(k).title),1)]),_:2},1024)):t.createCommentVNode("",!0),t.unref(p)(k).subtitle?(t.openBlock(),t.createBlock(E,{key:1,class:"yu-text-left",small:"",gray:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(p)(k).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(k+1),1)]),_:2},1024)]),_:2},1024),t.createVNode(J,{class:"yu-w-full yu-items-center",col:"","gap-md":""},{default:t.withCtx(()=>[t.createVNode(rt,{modelValue:t.unref(u)[v.name],"onUpdate:modelValue":C=>t.unref(u)[v.name]=C,"mask-function":t.unref(g)(v.name),placeholder:t.unref(h)(v),type:t.unref(m)(v.name),onKeyupEnter:t.unref(c),fluid:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(v.alias),1)]),_:2},1032,["modelValue","onUpdate:modelValue","mask-function","placeholder","type","onKeyupEnter"]),t.createVNode(le,{fluid:"",disabled:!t.unref(d)(k),onClick:t.unref(c)},{trailing:t.withCtx(()=>[...y[4]||(y[4]=[t.createTextVNode("arrow_forward",-1)])]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k>=t.unref(s).length-1?"Finalizar":"Continuar"),1)]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])],512)]))}}),Wn={key:0,class:"yu-flex yu-shrink-0 yu-items-end","data-testid":"app-message-avatar"},Gn={key:0,class:"yu-w-full yu-flex yu-justify-end yu-h-2","data-testid":"app-message-trailing"},st=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",Wn,[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",Gn,[t.renderSlot(c.$slots,"trailing")])):t.createCommentVNode("",!0)],2)],2))}}),Zn={class:"yu-flex yu-flex-col yu-items-center yu-h-full yu-w-full yu-overflow-y-auto"},Un={class:"yu-flex yu-flex-col yu-gap-2 yu-w-full yu-px-6 yu-overflow-y-auto"},Xn={key:0,class:"yu-w-full yu-h-12"},Qn={key:0,class:"yu-flex yu-items-center yu-justify-center yu-rounded-full yu-bg-gray-100 yu-w-7 yu-h-7"},Yn=["src"],Kn={key:1,class:"yu-flex yu-w-7 yu-h-7"},Jn={class:"yu-w-full yu-border-t yu-border-gray-200 yu-flex yu-flex-col"},er={class:"yu-flex yu-items-center yu-gap-2 yu-w-full yu-justify-end yu-px-6 yu-py-2"},lt=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",Zn,[t.createElementVNode("div",Un,[r.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Xn)),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(u,c)=>t.createVNode(st,{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",Qn,[t.createElementVNode("img",{class:"yu-rounded-full yu-w-full yu-h-full yu-object-contain",src:a(u.from)},null,8,Yn)])):(t.openBlock(),t.createElementBlock("div",Kn))]),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",Jn,[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",er,[t.createVNode(le,{icon:"",ghost:"",small:""},{icon:t.withCtx(()=>[t.createVNode(L,{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(L,null,{default:t.withCtx(()=>[...s[3]||(s[3]=[t.createTextVNode("send",-1)])]),_:1})]),_:1})])])]))}}),tr={class:"yu-flex yu-flex-col yu-w-full yu-gap-8"},or={key:0,class:"yu-flex yu-items-center yu-w-fit yu-justify-center yu-h-0"},nr=["src"],rr={key:1,class:"yu-flex yu-flex-col yu-items-center yu-justify-start yu-gap-2 yu-px-6 yu-w-full"},ir=["src"],ar=["src"],ut=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",tr,[a.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",or)),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,nr)):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",rr,[(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,ir)]),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,ar)]),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)]))}}),sr={class:"yu-flex yu-h-full yu-pl-3 yu-gap-2 yu-z-10 yu-pointer-events-none"},lr={class:"yu-h-full yu-flex yu-items-center yu-justify-center"},ur=["value","type","disabled","maxlength"],cr={class:"yu-absolute yu-right-2 yu-z-10 yu-flex yu-items-center yu-gap-1 yu-text-gray-500"},mo=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(B){return!!a.value[B]}const s=t.ref(""),u=t.ref(!1),c=t.ref(!1);function d(B){if(!r.maskFunction)return B;try{const x=r.maskFunction(B);return typeof x=="string"?x:B}catch{return B}}t.watch(()=>r.modelValue,B=>{if(B==null){s.value="";return}s.value=r.maskFunction?d(B):B},{immediate:!0});function p(){return!(u.value||s.value)}const{height:h,textSize:m,width:g}=fo(r),w=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"),f=t.computed(()=>r.invalid?"yu-text-red-500":r.valid?"yu-text-green-500":"yu-text-gray-500"),y=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"),v=t.computed(()=>l("icon")||r.loading?"yu-pl-[34px]":"yu-pl-3"),k=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 S(B){const $=B.target.value;s.value=r.maskFunction?d($):$,i("update:modelValue",s.value)}return o({focus:u,content:s}),(B,x)=>(t.openBlock(),t.createBlock(J,{class:t.normalizeClass([t.unref(g)]),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(B.$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",[k.value,C.value,t.unref(h),w.value]]),"data-testid":"app-text-input"},[t.createElementVNode("div",sr,[t.createElementVNode("div",lr,[!e.loading&&l("icon")?(t.openBlock(),t.createBlock(L,{key:0,small:""},{default:t.withCtx(()=>[t.renderSlot(B.$slots,"icon")]),_:3})):t.createCommentVNode("",!0),e.loading?(t.openBlock(),t.createBlock(L,{key:1,class:"yu-animate-spin",small:"",outlined:""},{default:t.withCtx(()=>[...x[4]||(x[4]=[t.createTextVNode("progress_activity",-1)])]),_:1})):t.createCommentVNode("",!0)]),t.createVNode(E,{class:t.normalizeClass(["yu-py-1 yu-transition",[y.value]]),small:"",medium:"",gray:""},{default:t.withCtx(()=>[t.renderSlot(B.$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),v.value,k.value]]),value:s.value,type:e.passwordToggle&&c.value?"text":e.type,disabled:e.disabled||e.loading,maxlength:e.maxLength,onInput:S,onFocus:x[0]||(x[0]=$=>u.value=!0),onBlur:x[1]||(x[1]=$=>u.value=!1),onKeyup:x[2]||(x[2]=t.withKeys($=>i("keyup-enter"),["enter"]))},null,42,ur),t.createElementVNode("div",cr,[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:x[3]||(x[3]=$=>c.value=!c.value)},[t.createVNode(L,{small:"",gray:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value?"visibility_off":"visibility"),1)]),_:1})])):t.createCommentVNode("",!0),t.renderSlot(B.$slots,"suffix")])],2)]),_:3}),l("feedback")?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["yu-mt-1",[f.value]])},[t.renderSlot(B.$slots,"feedback")],2)):t.createCommentVNode("",!0)]),_:3},8,["class"]))}});function ho(e){const o=new Set(Object.values(e.edges).flatMap(n=>n.map(r=>r.nextRuleId)));return e.rules.find(n=>!o.has(n.id))??e.rules[0]}function yo(e,o){const n=new Map(e.rules.map(r=>[r.id,r]));return(e.edges[o]??[]).flatMap(r=>{const i=n.get(r.nextRuleId);return i?[i]:[]})}function go(e){const{history:o,pushHistory:n,popHistory:r,clearHistory:i}=Ce(),a=t.computed(()=>t.toValue(e)),l=t.computed(()=>new Map(a.value.rules.map(f=>[f.id,f]))),s=t.computed(()=>ho(a.value)),u=t.ref(s.value.id);t.watch(()=>a.value.id,()=>{i(),u.value=s.value.id},{flush:"sync"});const c=t.computed(()=>l.value.get(u.value)??s.value),d=t.computed(()=>yo(a.value,u.value)),p=f=>{f===u.value||!l.value.has(f)||(n(u.value),u.value=f)};return{currentRule:c,edges:d,history:o,edgeClick:f=>{p(f.id)},submit:f=>{const y=d.value[0];y&&p(y.id)},back:()=>{const f=r();f&&(u.value=f)},reset:()=>{i(),u.value=s.value.id}}}const dr="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=",pr={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]"},fr={class:"yu-flex yu-items-center yu-gap-3 yu-min-w-0"},mr=["src"],hr={class:"yu-flex yu-flex-col yu-items-start yu-justify-center yu-min-w-0"},yr={class:"yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0"},gr={key:0,class:"yu-flex yu-shrink-0 yu-items-center yu-w-fit yu-justify-center yu-px-6 yu-py-4"},vr={class:"yu-flex yu-flex-col yu-w-full yu-flex-1 yu-min-h-0 yu-overflow-y-auto yu-gap-8"},wr={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"},xr=["src"],br=t.defineComponent({inheritAttrs:!1,__name:"app-widget",props:{workflow:{},config:{},fullscreen:{type:Boolean}},emits:["edge-click","submit","close","back"],setup(e,{emit:o}){const n=e,r=o,{currentRule:i,edges:a,history:l,edgeClick:s,submit:u,back:c,reset:d}=go(()=>n.workflow);d(),t.onBeforeUnmount(d);const p={identification:at,service:lt,screen:ut},h=t.computed(()=>{const k=i.value.action;return k in p?p[k]:void 0}),m=t.computed(()=>l.value.length>0),g=t.computed(()=>n.config.configurations.general.isClosable),w=t.computed(()=>n.fullscreen?"yu-w-screen yu-h-screen":"yu-w-[24.4rem] yu-h-[38rem] widget-shadow yu-rounded-2xl"),f=k=>{r("edge-click",k),s(k)},y=k=>{r("submit",k),u(k)},v=()=>{r("back"),c()};return(k,C)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["yu-flex yu-flex-col yu-bg-white yu-overflow-hidden yu-relative",[w.value]])},[t.createElementVNode("div",pr,[t.createElementVNode("div",fr,[t.unref(i).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:t.unref(i).settings.header.logo,alt:""},null,8,mr)):t.createCommentVNode("",!0),t.createElementVNode("div",hr,[t.unref(i).settings?.header?.title?(t.openBlock(),t.createBlock(E,{key:0,bold:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i).settings.header.title),1)]),_:1})):t.createCommentVNode("",!0),t.unref(i).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(t.unref(i).settings.header.subtitle),1)]),_:1})):t.createCommentVNode("",!0)])]),g.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:C[0]||(C[0]=S=>r("close"))},[t.createVNode(L,{gray:""},{default:t.withCtx(()=>[...C[1]||(C[1]=[t.createTextVNode("close",-1)])]),_:1})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yr,[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:t.unref(i).id},[m.value&&t.unref(i).action!=="identification"?(t.openBlock(),t.createElementBlock("div",gr,[t.createElementVNode("div",{class:"yu-flex yu-items-center yu-w-fit yu-justify-center yu-cursor-pointer yu-group",onClick:v},[t.createVNode(L,{class:"yu-transition-colors group-hover:!yu-text-gray-700",small:"",gray:""},{default:t.withCtx(()=>[...C[2]||(C[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(()=>[...C[3]||(C[3]=[t.createTextVNode("Voltar",-1)])]),_:1})])])):t.createCommentVNode("",!0),t.createElementVNode("div",vr,[h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.value),{key:0,rule:t.unref(i),edges:t.unref(a),onSubmit:y,onBack:v,onEdgeClick:f},null,40,["rule","edges"])):t.createCommentVNode("",!0)])]))]),_:1})]),t.createElementVNode("div",wr,[t.createElementVNode("img",{class:"yu-w-3 yu-h-2",src:t.unref(dr),alt:"Opens"},null,8,xr),t.createVNode(E,{class:"!yu-text-xxs",gray:""},{default:t.withCtx(()=>[...C[4]||(C[4]=[t.createTextVNode("Powered By",-1),t.createElementVNode("b",{class:"yu-ml-1"},"Opens",-1)])]),_:1})])],2))}}),vo=nt(br,[["__scopeId","data-v-ffab5770"]]),kr=["disabled"],Cr=["src"],wo=t.defineComponent({__name:"app-anchor",props:{small:Boolean,large:Boolean,logo:{type:String,default:""},outline:Boolean,ghost:Boolean,disabled:Boolean,loading:Boolean},emits:["click"],setup(e){const o=e,n=t.computed(()=>t.useSlots());function r(c){return!!n.value[c]}const i=t.computed(()=>r("default")),a=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"),l=t.computed(()=>i.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=t.computed(()=>o.small?"yu-w-6 yu-h-6":o.large?"yu-w-8 yu-h-8":"yu-w-7 yu-h-7"),u=t.computed(()=>o.disabled||o.loading?"yu-opacity-50 yu-pointer-events-none":"");return(c,d)=>(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",[l.value,a.value,u.value]]),type:"button","data-testid":"app-anchor",disabled:e.disabled||e.loading,onClick:d[0]||(d[0]=p=>c.$emit("click",p))},[e.loading?(t.openBlock(),t.createBlock(L,{key:0,class:"yu-animate-spin",outlined:"",large:!e.small&&!e.large,"extra-large":e.large},{default:t.withCtx(()=>[...d[1]||(d[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",s.value]),src:e.logo,alt:"","data-testid":"app-anchor-logo"},null,10,Cr)):t.createCommentVNode("",!0),i.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.renderSlot(c.$slots,"default")]),_:3},8,["small"])):t.createCommentVNode("",!0)],10,kr))}}),$r={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}}}},Br="c3fd21c9-c91a-4c66-baa5-c3e050c2cc74",Vt="2026-10-13T14:00:00.000Z",_r="69756c6a-cd47-41ef-a9c3-faa0b1aeb4a1",ae="https://i.allsvgicons.com/lucide",O={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:O.marketplace,title:"Mercado Livre",subtitle:"Atendimento online"},F=(e,o,n)=>({logo:e,eyebrow:"MERCADO LIVRE",title:o,subtitle:n}),Le=[{name:"name",alias:"Nome",required:!0},{name:"phone",alias:"Telefone",required:!0},{name:"email",alias:"E-mail",required:!1}],Sr=[{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:Br,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:Vt,updatedAt:Vt}),j=(e,o)=>({id:e,nextRuleId:o}),zt=H({id:"a1111111-1111-4111-8111-111111111101",name:"Acompanhar pedido",action:"service",settings:{header:M,body:F(O.shipping,"Acompanhar pedido","Vamos te ajudar a localizar a entrega."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Rt=H({id:"a1111111-1111-4111-8111-111111111102",name:"Troca",action:"service",settings:{header:M,body:F(O.exchange,"Solicitar troca","Vamos te orientar sobre as opções de troca."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Ot=H({id:"a1111111-1111-4111-8111-111111111103",name:"Devolução",action:"service",settings:{header:M,body:F(O.returns,"Solicitar devolução","Vamos te orientar sobre a devolução."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Lt=H({id:"a1111111-1111-4111-8111-111111111104",name:"Consultar solicitação",action:"service",settings:{header:M,body:F(O.support,"Consultar solicitação","Conte o que você precisa sobre o atendimento."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Mt=H({id:"a1111111-1111-4111-8111-111111111105",name:"Falar com a equipe",action:"service",settings:{header:M,body:F(O.chat,"Falar com a equipe","Conte o que você precisa e vamos te ajudar."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Ft=H({id:"a1111111-1111-4111-8111-111111111106",name:"Cancelar pedido",action:"service",settings:{header:M,body:F(O.cancel,"Cancelar pedido","Vamos verificar se o pedido ainda pode ser cancelado."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),Ht=H({id:"a1111111-1111-4111-8111-111111111107",name:"Pagamento",action:"service",settings:{header:M,body:F(O.payment,"Pagamento","Dúvidas sobre Pix, boleto ou cartão."),features:{sendMessage:!0,sendAttachment:!0},behavior:"chat"}}),De=H({id:"b2222222-2222-4222-8222-222222222201",name:"Acompanhar pedido",action:"identification",settings:{header:M,body:F(O.shipping,"Localizar pedido","Informe seus dados para acompanhar a entrega."),form:{fields:[...Le]}}}),Ie=H({id:"b2222222-2222-4222-8222-222222222202",name:"Solicitar troca",action:"identification",settings:{header:M,body:F(O.exchange,"Solicitar troca","Informe seus dados para iniciar o atendimento."),form:{fields:[...Le]}}}),je=H({id:"b2222222-2222-4222-8222-222222222203",name:"Solicitar devolução",action:"identification",settings:{header:M,body:F(O.returns,"Solicitar devolução","Informe seus dados para falar sobre a devolução."),form:{fields:[...Le]}}}),qe=H({id:"b2222222-2222-4222-8222-222222222204",name:"Cancelar pedido",action:"identification",settings:{header:M,body:F(O.cancel,"Cancelar pedido","Informe seus dados para verificar o cancelamento."),form:{fields:[...Sr]}}}),We=H({id:"b2222222-2222-4222-8222-222222222205",name:"Pagamento",action:"identification",settings:{header:M,body:F(O.payment,"Pagamento","Informe seus dados para falar sobre o pagamento."),form:{fields:[...Le]}}}),Ge=H({id:"c3333333-3333-4333-8333-333333333301",name:"Trocas e devoluções",action:"screen",settings:{header:M,body:F(O.returns,"Trocas e devoluções","Escolha o que você precisa.")}}),Ke=H({id:"d0000000-0000-4000-8000-000000000001",name:"Mercado Livre",action:"screen",configId:"37b0b2d3-6a07-4567-a5ad-7456a820905d",settings:{header:M,body:F(O.marketplace,"Como podemos ajudar?","Escolha uma opção para continuar.")}}),xo={id:_r,rules:[De,qe,We,Ge,Mt,Ie,je,Lt,zt,Ft,Ht,Rt,Ot,Ke],edges:{[Ke.id]:[j("aa2db433-f691-4b0e-b2f3-703eb131fcc1",De.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc2",qe.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc3",We.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc4",Ge.id),j("aa2db433-f691-4b0e-b2f3-703eb131fcc5",Mt.id)],[Ge.id]:[j("bb2db433-f691-4b0e-b2f3-703eb131fcc1",Ie.id),j("bb2db433-f691-4b0e-b2f3-703eb131fcc2",je.id),j("bb2db433-f691-4b0e-b2f3-703eb131fcc3",Lt.id)],[De.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc1",zt.id)],[qe.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc2",Ft.id)],[We.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc3",Ht.id)],[Ie.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc4",Rt.id)],[je.id]:[j("cc2db433-f691-4b0e-b2f3-703eb131fcc5",Ot.id)]}},Ar=Ke,Tr=e=>xo.rules.find(o=>o.id===e),Nr={install:e=>{e.use(Sn),e.component("AppIdentificationPage",at),e.component("AppServicePage",lt),e.component("AppScreenPage",ut),e.component("AppFormTextInput",rt),e.component("AppTextInput",mo),e.component("AppMessage",st),e.component("AppWidget",vo),e.component("AppAnchor",wo),e.component("AppButton",le),e.component("AppCarousel",it),e.component("AppGroup",J),e.component("AppIcon",L),e.component("AppText",E)}};exports.AppAnchor=wo;exports.AppButton=le;exports.AppCarousel=it;exports.AppFormTextInput=rt;exports.AppGroup=J;exports.AppIcon=L;exports.AppIdentificationPage=at;exports.AppMessage=st;exports.AppScreenPage=ut;exports.AppServicePage=lt;exports.AppText=E;exports.AppTextInput=mo;exports.AppWidget=vo;exports.default=Nr;exports.demoRootRule=Ar;exports.demoWidgetConfig=$r;exports.demoWorkflow=xo;exports.findDemoRuleById=Tr;exports.getWorkflowEdges=yo;exports.getWorkflowRootRule=ho;exports.useAppFlow=go;exports.useAppWidget=Ce;
|
|
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;
|