| 1 |
- import{c as ge,e as v,h as S,f as ke,g as Se,i as at,j as me,l as nt,k as A,w as k,o as he,m as St,u as Be,n as Qe,s as Lt,p as ze,q as Tt,t as lt,v as qt,x as Ee,y as $t,z as Ne,A as Ze,B as Vt,T as De,D as ot,E as Pt,F as it,G as st,H as rt,I as It,J as Bt,K as We,L as W,M as At,N as E,O as Ht,P as Ot,R as Ue,S as Le,U as Ke,V as Mt,X as _e,Y as Qt,Z as ut,_ as Fe,$ as T,a0 as g,a1 as l,a2 as Q,a3 as F,a4 as i,a5 as I,a6 as V,a7 as B,a8 as U,a9 as ye,aa as le,ab as X,ac as He,ad as Oe,ae as ct,af as dt,ag as zt,ah as Et,ai as Dt,aj as Ft,ak as jt,al as Rt,am as Nt}from"./index-Cd2JsgaO.js";import{Q as Zt}from"./QSpace-CuZ9kSI7.js";import{Q as Wt}from"./QScrollObserver-DaC2mRIK.js";import{Q as Ut}from"./QScrollArea-CtpbWe6O.js";import{Q as Kt}from"./QPage-B7-ssm6p.js";import{Q as Yt,a as Gt}from"./QLayout-CrrplIE4.js";import{Q as be}from"./QImg-BF12-OqT.js";import{v as Xt,a as Ye,u as Jt,p as Ge,b as ea,c as ta,d as aa,r as Xe,s as na,e as Je,Q as K,f as et,g as $,h as la}from"./QItemLabel-CbaSgT54.js";import{Q as ve}from"./QList-Bn1R9hCU.js";import{T as Ae}from"./TouchPan-Y70gTfBa.js";import{b as Ce}from"./format-hlGAdIUH.js";import{C as oa}from"./ClosePopup-C6d9qYlL.js";import{L as ft}from"./logo_serprati_parceiro-BC652OUz.js";import{_ as je}from"./_plugin-vue_export-helper-DlAUqK2U.js";const ia=ge({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:L}){const x=v(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>S("div",{class:x.value,role:"toolbar"},ke(L.default))}}),sa=ge({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:L,emit:x}){const{proxy:{$q:C}}=Se(),f=at(nt,me);if(f===me)return console.error("QHeader needs to be child of QLayout"),me;const m=A(parseInt(e.heightHint,10)),s=A(!0),r=v(()=>e.reveal===!0||f.view.value.indexOf("H")!==-1||C.platform.is.ios&&f.isContainer.value===!0),p=v(()=>{if(e.modelValue!==!0)return 0;if(r.value===!0)return s.value===!0?m.value:0;const d=m.value-f.scroll.value.position;return d>0?d:0}),q=v(()=>e.modelValue!==!0||r.value===!0&&s.value!==!0),a=v(()=>e.modelValue===!0&&q.value===!0&&e.reveal===!0),b=v(()=>"q-header q-layout__section--marginal "+(r.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(q.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),o=v(()=>{const d=f.rows.value.top,O={};return d[0]==="l"&&f.left.space===!0&&(O[C.lang.rtl===!0?"right":"left"]=`${f.left.size}px`),d[2]==="r"&&f.right.space===!0&&(O[C.lang.rtl===!0?"left":"right"]=`${f.right.size}px`),O});function u(d,O){f.update("header",d,O)}function n(d,O){d.value!==O&&(d.value=O)}function c({height:d}){n(m,d),u("size",d)}function y(d){a.value===!0&&n(s,!0),x("focusin",d)}k(()=>e.modelValue,d=>{u("space",d),n(s,!0),f.animate()}),k(p,d=>{u("offset",d)}),k(()=>e.reveal,d=>{d===!1&&n(s,e.modelValue)}),k(s,d=>{f.animate(),x("reveal",d)}),k(f.scroll,d=>{e.reveal===!0&&n(s,d.direction==="up"||d.position<=e.revealOffset||d.position-d.inflectionPoint<100)});const w={};return f.instances.header=w,e.modelValue===!0&&u("size",m.value),u("space",e.modelValue),u("offset",p.value),he(()=>{f.instances.header===w&&(f.instances.header=void 0,u("size",0),u("offset",0),u("space",!1))}),()=>{const d=St(L.default,[]);return e.elevated===!0&&d.push(S("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),d.push(S(Wt,{debounce:0,onResize:c})),S("header",{class:b.value,style:o.value,onFocusin:y},d)}}}),fe=ge({name:"QTooltip",inheritAttrs:!1,props:{...Jt,...ze,...Be,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Be.transitionShow,default:"jump-down"},transitionHide:{...Be.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Ye},self:{type:String,default:"top middle",validator:Ye},offset:{type:Array,default:()=>[14,14],validator:Xt},scrollTarget:Lt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Qe],setup(e,{slots:L,emit:x,attrs:C}){let f,m;const s=Se(),{proxy:{$q:r}}=s,p=A(null),q=A(!1),a=v(()=>Ge(e.anchor,r.lang.rtl)),b=v(()=>Ge(e.self,r.lang.rtl)),o=v(()=>e.persistent!==!0),{registerTick:u,removeTick:n}=Tt(),{registerTimeout:c}=lt(),{transitionProps:y,transitionStyle:w}=qt(e),{localScrollTarget:d,changeScrollEvent:O,unconfigureScrollTarget:re}=ea(e,de),{anchorEl:H,canShow:J,anchorEvents:ee}=ta({showing:q,configureAnchorEl:N}),{show:ue,hide:Y}=Ee({showing:q,canShow:J,handleShow:G,handleHide:oe,hideOnRouteChange:o,processOnMount:!0});Object.assign(ee,{delayShow:h,delayHide:M});const{showPortal:z,hidePortal:j,renderPortal:ce}=$t(s,p,qe,"tooltip");if(r.platform.is.mobile===!0){const P={anchorEl:H,innerRef:p,onClickOutside(te){return Y(te),te.target.classList.contains("q-dialog__backdrop")&&ot(te),!0}},pe=v(()=>e.modelValue===null&&e.persistent!==!0&&q.value===!0);k(pe,te=>{(te===!0?aa:Xe)(P)}),he(()=>{Xe(P)})}function G(P){z(),u(()=>{m=new MutationObserver(()=>R()),m.observe(p.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),R(),de()}),f===void 0&&(f=k(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,R)),c(()=>{z(!0),x("show",P)},e.transitionDuration)}function oe(P){n(),j(),ie(),c(()=>{j(!0),x("hide",P)},e.transitionDuration)}function ie(){m!==void 0&&(m.disconnect(),m=void 0),f!==void 0&&(f(),f=void 0),re(),Ne(ee,"tooltipTemp")}function R(){na({targetEl:p.value,offset:e.offset,anchorEl:H.value,anchorOrigin:a.value,selfOrigin:b.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function h(P){if(r.platform.is.mobile===!0){Je(),document.body.classList.add("non-selectable");const pe=H.value,te=["touchmove","touchcancel","touchend","click"].map(we=>[pe,we,"delayHide","passiveCapture"]);Ze(ee,"tooltipTemp",te)}c(()=>{ue(P)},e.delay)}function M(P){r.platform.is.mobile===!0&&(Ne(ee,"tooltipTemp"),Je(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),c(()=>{Y(P)},e.hideDelay)}function N(){if(e.noParentEvent===!0||H.value===null)return;const P=r.platform.is.mobile===!0?[[H.value,"touchstart","delayShow","passive"]]:[[H.value,"mouseenter","delayShow","passive"],[H.value,"mouseleave","delayHide","passive"]];Ze(ee,"anchor",P)}function de(){if(H.value!==null||e.scrollTarget!==void 0){d.value=Vt(H.value,e.scrollTarget);const P=e.noParentEvent===!0?R:Y;O(d.value,P)}}function Te(){return q.value===!0?S("div",{...C,ref:p,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",C.class],style:[C.style,w.value],role:"tooltip"},ke(L.default)):null}function qe(){return S(De,y.value,Te)}return he(ie),Object.assign(s.proxy,{updatePosition:R}),ce}}),ra=ge({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:L,emit:x}){let C=!1,f,m,s=null,r=null,p,q;function a(){f?.(),f=null,C=!1,s!==null&&(clearTimeout(s),s=null),r!==null&&(clearTimeout(r),r=null),m?.removeEventListener("transitionend",p),p=null}function b(c,y,w){y!==void 0&&(c.style.height=`${y}px`),c.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,C=!0,f=w}function o(c,y){c.style.overflowY=null,c.style.height=null,c.style.transition=null,a(),y!==q&&x(y)}function u(c,y){let w=0;m=c,C===!0?(a(),w=c.offsetHeight===c.scrollHeight?0:void 0):(q="hide",c.style.overflowY="hidden"),b(c,w,y),s=setTimeout(()=>{s=null,c.style.height=`${c.scrollHeight}px`,p=d=>{r=null,(Object(d)!==d||d.target===c)&&o(c,"show")},c.addEventListener("transitionend",p),r=setTimeout(p,e.duration*1.1)},100)}function n(c,y){let w;m=c,C===!0?a():(q="show",c.style.overflowY="hidden",w=c.scrollHeight),b(c,w,y),s=setTimeout(()=>{s=null,c.style.height=0,p=d=>{r=null,(Object(d)!==d||d.target===c)&&o(c,"hide")},c.addEventListener("transitionend",p),r=setTimeout(p,e.duration*1.1)},100)}return he(()=>{C===!0&&a()}),()=>S(De,{css:!1,appear:e.appear,onEnter:u,onLeave:n},L.default)}}),se=Pt({}),ua=Object.keys(st),vt=ge({name:"QExpansionItem",props:{...st,...ze,...it,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:{},headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...Qe,"click","afterShow","afterHide"],setup(e,{slots:L,emit:x}){const{proxy:{$q:C}}=Se(),f=rt(e,C),m=A(e.modelValue!==null?e.modelValue:e.defaultOpened),s=A(null),r=It(),{show:p,hide:q,toggle:a}=Ee({showing:m});let b,o;const u=v(()=>`q-expansion-item q-item-type q-expansion-item--${m.value===!0?"expanded":"collapsed"} q-expansion-item--${e.popup===!0?"popup":"standard"}`),n=v(()=>e.contentInsetLevel===void 0?null:{["padding"+(C.lang.rtl===!0?"Right":"Left")]:e.contentInsetLevel*56+"px"}),c=v(()=>e.disable!==!0&&(e.href!==void 0||e.to!==void 0&&e.to!==null&&e.to!=="")),y=v(()=>{const h={};return ua.forEach(M=>{h[M]=e[M]}),h}),w=v(()=>c.value===!0||e.expandIconToggle!==!0),d=v(()=>e.expandedIcon!==void 0&&m.value===!0?e.expandedIcon:e.expandIcon||C.iconSet.expansionItem[e.denseToggle===!0?"denseIcon":"icon"]),O=v(()=>e.disable!==!0&&(c.value===!0||e.expandIconToggle===!0)),re=v(()=>({expanded:m.value===!0,detailsId:r.value,toggle:a,show:p,hide:q})),H=v(()=>{const h=e.toggleAriaLabel!==void 0?e.toggleAriaLabel:C.lang.label[m.value===!0?"collapse":"expand"](e.label);return{role:"button","aria-expanded":m.value===!0?"true":"false","aria-controls":r.value,"aria-label":h}});k(()=>e.group,h=>{o?.(),h!==void 0&&j()});function J(h){c.value!==!0&&a(h),x("click",h)}function ee(h){h.keyCode===13&&ue(h,!0)}function ue(h,M){M!==!0&&h.qAvoidFocus!==!0&&s.value?.focus(),a(h),ot(h)}function Y(){x("afterShow")}function z(){x("afterHide")}function j(){b===void 0&&(b=Bt()),m.value===!0&&(se[e.group]=b);const h=k(m,N=>{N===!0?se[e.group]=b:se[e.group]===b&&delete se[e.group]}),M=k(()=>se[e.group],(N,de)=>{de===b&&N!==void 0&&N!==b&&q()});o=()=>{h(),M(),se[e.group]===b&&delete se[e.group],o=void 0}}function ce(){const h={class:[`q-focusable relative-position cursor-pointer${e.denseToggle===!0&&e.switchToggleSide===!0?" items-end":""}`,e.expandIconClass],side:e.switchToggleSide!==!0,avatar:e.switchToggleSide},M=[S(E,{class:"q-expansion-item__toggle-icon"+(e.expandedIcon===void 0&&m.value===!0?" q-expansion-item__toggle-icon--rotated":""),name:d.value})];return O.value===!0&&(Object.assign(h,{tabindex:0,...H.value,onClick:ue,onKeyup:ee}),M.unshift(S("div",{ref:s,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),S($,h,()=>M)}function G(){let h;return L.header!==void 0?h=[].concat(L.header(re.value)):(h=[S($,()=>[S(et,{lines:e.labelLines},()=>e.label||""),e.caption?S(et,{lines:e.captionLines,caption:!0},()=>e.caption):null])],e.icon&&h[e.switchToggleSide===!0?"push":"unshift"](S($,{side:e.switchToggleSide===!0,avatar:e.switchToggleSide!==!0},()=>S(E,{name:e.icon})))),e.disable!==!0&&e.hideExpandIcon!==!0&&h[e.switchToggleSide===!0?"unshift":"push"](ce()),h}function oe(){const h={ref:"item",style:e.headerStyle,class:e.headerClass,dark:f.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return w.value===!0&&(h.clickable=!0,h.onClick=J,Object.assign(h,c.value===!0?y.value:H.value)),S(K,h,G)}function ie(){return W(S("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:n.value,id:r.value},ke(L.default)),[[At,m.value]])}function R(){const h=[oe(),S(ra,{duration:e.duration,onShow:Y,onHide:z},ie)];return e.expandSeparator===!0&&h.push(S(We,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:f.value}),S(We,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:f.value})),h}return e.group!==void 0&&j(),he(()=>{o?.()}),()=>S("div",{class:u.value},[S("div",{class:"q-expansion-item__container relative-position"},R())])}}),tt=150,mt=ge({name:"QDrawer",inheritAttrs:!1,props:{...ze,...it,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...Qe,"onLayout","miniState"],setup(e,{slots:L,emit:x,attrs:C}){const f=Se(),{proxy:{$q:m}}=f,s=rt(e,m),{preventBodyScroll:r}=Ot(),{registerTimeout:p,removeTimeout:q}=lt(),a=at(nt,me);if(a===me)return console.error("QDrawer needs to be child of QLayout"),me;let b,o=null,u;const n=A(e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint),c=v(()=>e.mini===!0&&n.value!==!0),y=v(()=>c.value===!0?e.miniWidth:e.width),w=A(e.showIfAbove===!0&&n.value===!1?!0:e.modelValue===!0),d=v(()=>e.persistent!==!0&&(n.value===!0||de.value===!0));function O(t,_){if(ee(),t!==!1&&a.animate(),Z(0),n.value===!0){const D=a.instances[R.value];D?.belowBreakpoint===!0&&D.hide(!1),ae(1),a.isContainer.value!==!0&&r(!0)}else ae(0),t!==!1&&Ve(!1);p(()=>{t!==!1&&Ve(!0),_!==!0&&x("show",t)},tt)}function re(t,_){ue(),t!==!1&&a.animate(),ae(0),Z(j.value*y.value),Pe(),_!==!0?p(()=>{x("hide",t)},tt):q()}const{show:H,hide:J}=Ee({showing:w,hideOnRouteChange:d,handleShow:O,handleHide:re}),{addToHistory:ee,removeFromHistory:ue}=Ht(w,J,d),Y={belowBreakpoint:n,hide:J},z=v(()=>e.side==="right"),j=v(()=>(m.lang.rtl===!0?-1:1)*(z.value===!0?1:-1)),ce=A(0),G=A(!1),oe=A(!1),ie=A(y.value*j.value),R=v(()=>z.value===!0?"left":"right"),h=v(()=>w.value===!0&&n.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:y.value:0),M=v(()=>e.overlay===!0||e.miniToOverlay===!0||a.view.value.indexOf(z.value?"R":"L")!==-1||m.platform.is.ios===!0&&a.isContainer.value===!0),N=v(()=>e.overlay===!1&&w.value===!0&&n.value===!1),de=v(()=>e.overlay===!0&&w.value===!0&&n.value===!1),Te=v(()=>"fullscreen q-drawer__backdrop"+(w.value===!1&&G.value===!1?" hidden":"")),qe=v(()=>({backgroundColor:`rgba(0,0,0,${ce.value*.4})`})),P=v(()=>z.value===!0?a.rows.value.top[2]==="r":a.rows.value.top[0]==="l"),pe=v(()=>z.value===!0?a.rows.value.bottom[2]==="r":a.rows.value.bottom[0]==="l"),te=v(()=>{const t={};return a.header.space===!0&&P.value===!1&&(M.value===!0?t.top=`${a.header.offset}px`:a.header.space===!0&&(t.top=`${a.header.size}px`)),a.footer.space===!0&&pe.value===!1&&(M.value===!0?t.bottom=`${a.footer.offset}px`:a.footer.space===!0&&(t.bottom=`${a.footer.size}px`)),t}),we=v(()=>{const t={width:`${y.value}px`,transform:`translateX(${ie.value}px)`};return n.value===!0?t:Object.assign(t,te.value)}),pt=v(()=>"q-drawer__content fit "+(a.isContainer.value!==!0?"scroll":"overflow-auto")),yt=v(()=>`q-drawer q-drawer--${e.side}`+(oe.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(s.value===!0?" q-drawer--dark q-dark":"")+(G.value===!0?" no-transition":w.value===!0?"":" q-layout--prevent-focus")+(n.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${c.value===!0?"mini":"standard"}`+(M.value===!0||N.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(P.value===!0?" q-drawer--top-padding":""))),bt=v(()=>{const t=m.lang.rtl===!0?e.side:R.value;return[[Ae,_t,void 0,{[t]:!0,mouse:!0}]]}),wt=v(()=>{const t=m.lang.rtl===!0?R.value:e.side;return[[Ae,Re,void 0,{[t]:!0,mouse:!0}]]}),xt=v(()=>{const t=m.lang.rtl===!0?R.value:e.side;return[[Ae,Re,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]});function $e(){kt(n,e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint)}k(n,t=>{t===!0?(b=w.value,w.value===!0&&J(!1)):e.overlay===!1&&e.behavior!=="mobile"&&b!==!1&&(w.value===!0?(Z(0),ae(0),Pe()):H(!1))}),k(()=>e.side,(t,_)=>{a.instances[_]===Y&&(a.instances[_]=void 0,a[_].space=!1,a[_].offset=0),a.instances[t]=Y,a[t].size=y.value,a[t].space=N.value,a[t].offset=h.value}),k(a.totalWidth,()=>{(a.isContainer.value===!0||document.qScrollPrevented!==!0)&&$e()}),k(()=>e.behavior+e.breakpoint,$e),k(a.isContainer,t=>{w.value===!0&&r(t!==!0),t===!0&&$e()}),k(a.scrollbarWidth,()=>{Z(w.value===!0?0:void 0)}),k(h,t=>{ne("offset",t)}),k(N,t=>{x("onLayout",t),ne("space",t)}),k(z,()=>{Z()}),k(y,t=>{Z(),Ie(e.miniToOverlay,t)}),k(()=>e.miniToOverlay,t=>{Ie(t,y.value)}),k(()=>m.lang.rtl,()=>{Z()}),k(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Ct(),a.animate())}),k(c,t=>{x("miniState",t)});function Z(t){t===void 0?Ue(()=>{t=w.value===!0?0:y.value,Z(j.value*t)}):(a.isContainer.value===!0&&z.value===!0&&(n.value===!0||Math.abs(t)===y.value)&&(t+=j.value*a.scrollbarWidth.value),ie.value=t)}function ae(t){ce.value=t}function Ve(t){const _=t===!0?"remove":a.isContainer.value!==!0?"add":"";_!==""&&document.body.classList[_]("q-body--drawer-toggle")}function Ct(){o!==null&&clearTimeout(o),f.proxy&&f.proxy.$el&&f.proxy.$el.classList.add("q-drawer--mini-animate"),oe.value=!0,o=setTimeout(()=>{o=null,oe.value=!1,f?.proxy?.$el?.classList.remove("q-drawer--mini-animate")},150)}function _t(t){if(w.value!==!1)return;const _=y.value,D=Ce(t.distance.x,0,_);if(t.isFinal===!0){D>=Math.min(75,_)===!0?H():(a.animate(),ae(0),Z(j.value*_)),G.value=!1;return}Z((m.lang.rtl===!0?z.value!==!0:z.value)?Math.max(_-D,0):Math.min(0,D-_)),ae(Ce(D/_,0,1)),t.isFirst===!0&&(G.value=!0)}function Re(t){if(w.value!==!0)return;const _=y.value,D=t.direction===e.side,xe=(m.lang.rtl===!0?D!==!0:D)?Ce(t.distance.x,0,_):0;if(t.isFinal===!0){Math.abs(xe)<Math.min(75,_)===!0?(a.animate(),ae(1),Z(0)):J(),G.value=!1;return}Z(j.value*xe),ae(Ce(1-xe/_,0,1)),t.isFirst===!0&&(G.value=!0)}function Pe(){r(!1),Ve(!0)}function ne(t,_){a.update(e.side,t,_)}function kt(t,_){t.value!==_&&(t.value=_)}function Ie(t,_){ne("size",t===!0?e.miniWidth:_)}return a.instances[e.side]=Y,Ie(e.miniToOverlay,y.value),ne("space",N.value),ne("offset",h.value),e.showIfAbove===!0&&e.modelValue!==!0&&w.value===!0&&e["onUpdate:modelValue"]!==void 0&&x("update:modelValue",!0),Le(()=>{x("onLayout",N.value),x("miniState",c.value),b=e.showIfAbove===!0;const t=()=>{(w.value===!0?O:re)(!1,!0)};if(a.totalWidth.value!==0){Ue(t);return}u=k(a.totalWidth,()=>{u(),u=void 0,w.value===!1&&e.showIfAbove===!0&&n.value===!1?H(!1):t()})}),he(()=>{u?.(),o!==null&&(clearTimeout(o),o=null),w.value===!0&&Pe(),a.instances[e.side]===Y&&(a.instances[e.side]=void 0,ne("size",0),ne("offset",0),ne("space",!1))}),()=>{const t=[];n.value===!0&&(e.noSwipeOpen===!1&&t.push(W(S("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),bt.value)),t.push(Ke("div",{ref:"backdrop",class:Te.value,style:qe.value,"aria-hidden":"true",onClick:J},void 0,"backdrop",e.noSwipeBackdrop!==!0&&w.value===!0,()=>xt.value)));const _=c.value===!0&&L.mini!==void 0,D=[S("div",{...C,key:""+_,class:[pt.value,C.class]},_===!0?L.mini():ke(L.default))];return e.elevated===!0&&w.value===!0&&D.push(S("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.push(Ke("aside",{ref:"content",class:yt.value,style:we.value},D,"contentclose",e.noSwipeClose!==!0&&n.value===!0,()=>wt.value)),S("div",{class:"q-drawer-container"},t)}}}),ht=Mt("navigation",()=>{const e=Object.freeze([{type:"single",title:"ui.navigation.carteirinha",name:"CarteirinhaPage",icon:"mdi-card-account-details-outline",disable:!1,permission:!0},{type:"single",title:"ui.navigation.meu_perfil",name:"MeuPerfilPage",icon:"mdi-account-outline",disable:!1,permission:!1,permissionScope:"associado.perfil"},{type:"single",title:"ui.navigation.convenios",name:"ConveniosPage",icon:"mdi-handshake-outline",disable:!1,permission:!1,permissionScope:"associado.convenio"},{type:"single",title:"ui.navigation.loja",name:"AssociadoLojaPage",icon:"mdi-cart-outline",disable:!1,permission:!1,permissionScope:"associado.loja"},{type:"single",title:"ui.navigation.meus_interesses",name:"AssociadoInteressesPage",icon:"mdi-heart-outline",disable:!1,permission:!1,permissionScope:"associado.interesses"},{type:"single",title:"ui.navigation.meus_agendamentos",name:"AssociadoAgendamentosPage",icon:"mdi-calendar-clock-outline",disable:!1,permission:!1,permissionScope:"associado.agendamento"},{type:"single",title:"ui.navigation.notifications",name:"NotificacoesAssociadoPage",icon:"mdi-bell-outline",disable:!1,permission:!1,permissionScope:"associado.notificacao"}]),L=_e.get("miniState"),x=A(L==="true"),C=()=>{x.value=!x.value};k(x,s=>{_e.set("miniState",s,{path:"/",sameSite:"Lax"})});const f=()=>{const{getAccess:s}=Qt();return e.map(r=>(r?.permissionScope&&(r.permission=s(r.permissionScope,"menu")),r)).filter(r=>r!==null)};return{navigationItems:v(()=>f()),miniState:x,toggleMini:C}}),Me="0.0.1",ca=""+new URL("logo_serprati_parceiro_small-CgkhmgYZ.svg",import.meta.url).href,gt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-25%200%20134%2030'%20fill='none'%3e%3cg%20%3e%3cpath%20d='M5.4184%209.83466C4.26961%209.67132%203.35282%209.55357%203.35282%208.78626C3.35282%208.20509%203.81309%207.69229%204.84588%207.69229C5.71776%207.69229%206.26783%208.08733%206.33893%208.71789H9.3924C9.32504%206.66668%207.59998%205.03711%204.80097%205.03711C2.00196%205.03711%200.205809%206.6173%200.205809%208.97239C0.205809%2011.7681%202.77656%2012.1176%204.43052%2012.3531C5.57931%2012.5164%206.49609%2012.6076%206.49609%2013.4243C6.49609%2014.0055%206.01338%2014.4955%204.79723%2014.4955C3.67089%2014.4955%203.12082%2014.0776%203.09837%2013.4015H0C0.0710978%2015.5705%201.92712%2017.1544%204.81968%2017.1544C7.71224%2017.1544%209.61691%2015.5932%209.61691%2013.2381C9.61691%2010.4424%206.97507%2010.0702%205.41466%209.83466H5.4184Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M10.0547%2011.0919C10.0547%207.59722%2012.5805%205.0332%2016.1616%205.0332C19.7427%205.0332%2022.1002%207.43008%2022.2611%2010.7462C22.2648%2010.8602%2022.2685%2010.9779%2022.2685%2011.0919C22.2685%2014.5865%2019.7427%2017.1505%2016.1616%2017.1505C12.5805%2017.1505%2010.0547%2014.5865%2010.0547%2011.0919ZM19.1253%2011.0919C19.1253%209.24958%2017.9316%207.96947%2016.1616%207.96947C14.3917%207.96947%2013.2017%209.24958%2013.2017%2011.0919C13.2017%2012.9342%2014.3954%2014.2143%2016.1616%2014.2143C17.9278%2014.2143%2019.1253%2012.9304%2019.1253%2011.0919Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M23.5073%205.15082C23.5073%201.70174%2025.5505%200%2028.559%200C31.5676%200%2033.5882%201.72454%2033.5882%205.15082H30.4899C30.4899%203.52124%2029.6853%202.93627%2028.5628%202.93627C27.4402%202.93627%2026.6094%203.54403%2026.6094%205.15082V6.94373H32.1887V9.78503H26.6094V16.8465H23.5111V5.15082H23.5073Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M33.674%2012.3524V1.25684H36.7724V5.33646H42.3741V8.17777H36.7724V12.3486C36.7724%2013.7236%2037.4384%2014.2136%2038.3777%2014.2136C39.3169%2014.2136%2039.9605%2013.7464%2039.9605%2012.3486V12.0219H43.0589V12.3486C43.0589%2015.5887%2041.1542%2017.1499%2038.3739%2017.1499C35.5936%2017.1499%2033.6665%2015.5887%2033.6665%2012.3486L33.674%2012.3524Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M43.8447%2011.2096C43.8447%207.3883%2046.3706%205.0332%2049.8843%205.0332C53.398%205.0332%2056.0137%207.52504%2056.0137%2011.2324C56.0137%2015.1943%2053.0987%2017.1505%2050.4344%2017.1505C48.9413%2017.1505%2047.7027%2016.5428%2046.9431%2015.3804V21.7658H43.8447V11.2096ZM52.8667%2011.0919C52.8667%209.24958%2051.673%207.96947%2049.9068%207.96947C48.1405%207.96947%2046.9468%209.24958%2046.9468%2011.0919C46.9468%2012.9342%2048.1405%2014.2143%2049.9068%2014.2143C51.673%2014.2143%2052.8667%2012.9304%2052.8667%2011.0919Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M56.4219%2011.2324C56.4219%207.52504%2058.9477%205.0332%2062.5513%205.0332C66.1548%205.0332%2068.5908%207.45667%2068.5908%2011.2096V16.8505H65.7432V14.7765C65.0996%2016.3376%2063.7%2017.1543%2061.9787%2017.1543C59.3631%2017.1543%2056.4219%2015.1981%2056.4219%2011.2362V11.2324ZM65.4925%2011.0919C65.4925%209.24958%2064.2988%207.96947%2062.5288%207.96947C60.7588%207.96947%2059.5689%209.24958%2059.5689%2011.0919C59.5689%2012.9342%2060.7626%2014.2143%2062.5288%2014.2143C64.295%2014.2143%2065.4925%2012.9304%2065.4925%2011.0919Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M69.9229%2010.2296C69.9229%206.71216%2071.966%205.0332%2074.9745%205.0332C77.9831%205.0332%2079.9813%206.68937%2080.0038%2010.2752V10.3436H76.9054V10.2258C76.9054%208.52406%2076.1009%207.96567%2074.9783%207.96567C73.8557%207.96567%2073.0287%208.52406%2073.0287%2010.2258V16.8429H69.9303V10.2258L69.9229%2010.2296Z'%20fill='%2320306B'%3e%3c/path%3e%3cpath%20d='M56.8182%2027.0004C51.92%2027.0004%2048.8029%2023.9654%2047.9497%2023.012L50.1612%2020.9646C50.629%2021.485%2053.166%2024.0756%2057.0989%2023.9578C60.5153%2023.8515%2063.5763%2021.3596%2064.1525%2020.748L66.3191%2022.8448C66.2817%2022.8866%2062.4275%2026.8333%2057.1924%2026.9966C57.0689%2027.0004%2056.9417%2027.0042%2056.822%2027.0042L56.8182%2027.0004Z'%20fill='%230F86FA'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_523_2053'%3e%3crect%20width='80'%20height='27'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",da="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-15%20-15%2080%2080'%20fill='none'%3e%3crect%20width='50'%20height='50'%20rx='25'%20fill='%2321316C'%3e%3c/rect%3e%3cpath%20d='M10%2019.549C10%2014.8784%2013.1257%2012%2017.474%2012C21.8222%2012%2025.0591%2015.0456%2025.0591%2019.5768C25.0591%2024.4191%2021.4518%2026.8101%2018.1547%2026.8101C16.307%2026.8101%2014.7743%2026.0672%2013.8342%2024.6466V32.4509H10V19.549ZM21.1646%2019.405C21.1646%2017.1533%2019.6874%2015.5888%2017.5018%2015.5888C15.3161%2015.5888%2013.8389%2017.1533%2013.8389%2019.405C13.8389%2021.6567%2015.3161%2023.2213%2017.5018%2023.2213C19.6874%2023.2213%2021.1646%2021.6521%2021.1646%2019.405Z'%20fill='%23EEF4FF'%3e%3c/path%3e%3cpath%20d='M25.5635%2019.5768C25.5635%2015.0456%2028.6892%2012%2033.1486%2012C37.608%2012%2040.6226%2014.962%2040.6226%2019.549V26.4433H37.0986V23.9084C36.3021%2025.8165%2034.5702%2026.8147%2032.4401%2026.8147C29.2032%2026.8147%2025.5635%2024.4237%2025.5635%2019.5815V19.5768ZM36.7883%2019.405C36.7883%2017.1533%2035.3111%2015.5888%2033.1208%2015.5888C30.9305%2015.5888%2029.4579%2017.1533%2029.4579%2019.405C29.4579%2021.6567%2030.9351%2023.2213%2033.1208%2023.2213C35.3065%2023.2213%2036.7883%2021.6521%2036.7883%2019.405Z'%20fill='%23EEF4FF'%3e%3c/path%3e%3cpath%20d='M26.0549%2038.8485C19.9933%2038.8485%2016.1359%2035.139%2015.0801%2033.9737L17.8168%2031.4713C18.3957%2032.1073%2021.5353%2035.2736%2026.4022%2035.1297C30.63%2034.9997%2034.4179%2031.9541%2035.1311%2031.2067L37.8122%2033.7694C37.7659%2033.8205%2032.9963%2038.6442%2026.5179%2038.8438C26.3651%2038.8485%2026.2077%2038.8531%2026.0595%2038.8531L26.0549%2038.8485Z'%20fill='%230F86FA'%3e%3c/path%3e%3c/svg%3e",fa={class:"column full-height no-wrap"},va={class:"menu-header"},ma={class:"menu-content column full-height no-wrap"},ha={class:"toggle-button-wrapper absolute",style:{top:"2px",right:"-32px","z-index":"1"}},ga={class:"flex"},pa={class:"flex full-width justify-center"},ya={key:0,class:"text-caption text-weight-light"},ba={key:1,class:"text-caption text-weight-light"},wa={__name:"LeftMenuLayout",setup(e){const{logout:L}=dt(),x=ut(),C=Fe(),f=ht(),m=_e.get("miniState"),s=A(m==="true"),r=o=>!Array.isArray(o)||o.length===0?!1:o.some(u=>C?.name===u?.name),p=A([]),q=async()=>{await L(),x.push({name:"LoginPage"})},a=o=>{window.open(o,"_blank")},b=()=>{x.push({name:"SystemVersionsPage"})};return k(s,()=>{_e.set("miniState",s.value,{path:"/",sameSite:"Lax"})}),Le(()=>{f.navigationItems.forEach((o,u)=>{r(o.childrens)&&(p.value[u]=!0)})}),(o,u)=>(g(),T(mt,ct(o.$attrs,{"model-value":!0,"show-if-above":"","no-swipe-close":"","no-swipe-open":"",width:214,"mini-width":60,breakpoint:500,mini:s.value,behavior:"desktop",class:"detached-container"}),{default:l(()=>[Q("div",fa,[Q("div",va,[s.value?(g(),T(be,{key:1,src:F(ca),style:{width:"32px",height:"32px"}},null,8,["src"])):(g(),T(be,{key:0,src:F(ft),style:{width:"100px",height:"36px"}},null,8,["src"]))]),Q("div",ma,[Q("div",ha,[Q("div",{onClick:u[0]||(u[0]=n=>s.value=!s.value)},[i(E,{size:"sm",name:s.value?"mdi-page-layout-sidebar-right":"mdi-page-layout-sidebar-left",color:"primary"},null,8,["name"]),i(fe,{anchor:"center right",self:"center left",offset:[10,10]},{default:l(()=>[I(V(s.value?o.$t("ui.navigation.expand_menu"):o.$t("ui.navigation.collapse_menu")),1)]),_:1})])]),i(ve,{class:"column no-wrap"},{default:l(()=>[(g(!0),B(U,null,ye(F(f).navigationItems,(n,c)=>(g(),B(U,null,[n.permission?(g(),B(U,{key:0},[n.type==="single"?W((g(),T(K,{key:n.name,clickable:"",exact:n.name=="HomePage","exact-active-class":"menu-selected","active-class":"menu-selected",to:{name:n.name}},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:n.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(o.$t(n.title)),1)]),_:2},1024),s.value?(g(),T(fe,{key:0,anchor:"center right",self:"center left",offset:[10,10]},{default:l(()=>[I(V(o.$t(n.title)),1)]),_:2},1024)):le("",!0)]),_:2},1032,["exact","to"])),[[X]]):(g(),B("div",{key:n.title},[s.value?W((g(),T(K,{key:1,clickable:"",exact:"","exact-active-class":"menu-selected",class:He({"menu-selected":r(n.childrens)})},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:n.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(o.$t(n.title)),1)]),_:2},1024),s.value?(g(),T(fe,{key:0,anchor:"center right",self:"center left",offset:[10,10]},{default:l(()=>[I(V(o.$t(n.title)),1)]),_:2},1024)):le("",!0),i(la,{class:"menu-drawer",anchor:"center right",self:"top start"},{default:l(()=>[i(ve,null,{default:l(()=>[(g(!0),B(U,null,ye(n.childrens,y=>W((g(),T(K,{key:y.name,clickable:"",to:{name:y.name},exact:"","exact-active-class":"menu-selected",class:"menu-drawer"},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:y.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(o.$t(y.title)),1)]),_:2},1024)]),_:2},1032,["to"])),[[X],[oa]])),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"])),[[X]]):(g(),B(U,{key:0},[s.value?(g(),T(fe,{key:0,anchor:"center right",self:"center left",offset:[10,10]},{default:l(()=>[I(V(o.$t(n.title)),1)]),_:2},1024)):le("",!0),i(vt,{modelValue:p.value[c],"onUpdate:modelValue":y=>p.value[c]=y,class:He({"menu-selected":r(n.childrens)&&!p.value[c]})},{header:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:n.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(o.$t(n.title)),1)]),_:2},1024)]),default:l(()=>[(g(!0),B(U,null,ye(n.childrens,y=>(g(),B("div",{key:y.name},[W((g(),T(K,{clickable:"",to:{name:y.name},exact:"","exact-active-class":"menu-selected",class:"q-pl-lg"},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:y.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(o.$t(y.title)),1)]),_:2},1024),s.value?(g(),T(fe,{key:0,anchor:"center right",self:"center left",offset:[10,10]},{default:l(()=>[I(V(o.$t(y.title)),1)]),_:2},1024)):le("",!0)]),_:2},1032,["to"])),[[X]])]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","class"])],64))]))],64)):le("",!0)],64))),256))]),_:1}),i(ve,{class:"column q-mb-md no-wrap",style:{"border-radius":"6px"}}),i(ve,{class:"q-mt-auto"},{default:l(()=>[W((g(),T(K,{clickable:"",onClick:q},{default:l(()=>[Q("div",ga,[i($,{avatar:""},{default:l(()=>[i(E,{name:"logout",color:"negative",style:{"font-size":"20px"}})]),_:1}),i($,null,{default:l(()=>[I(V(o.$t("auth.logout")),1)]),_:1})]),s.value?(g(),T(fe,{key:0,anchor:"center right",self:"center left",offset:[10,10]},{default:l(()=>[I(V(o.$t("auth.logout")),1)]),_:1})):le("",!0)]),_:1})),[[X]]),W((g(),T(K,{clickable:"",onClick:u[1]||(u[1]=n=>a("https://softpar.inf.br"))},{default:l(()=>[Q("div",pa,[i(be,{src:s.value?F(da):F(gt),style:Oe([{width:"100%",height:"30px"},s.value?"max-width: 48px":"max-width: 100px"])},null,8,["src","style"])])]),_:1})),[[X]])]),_:1}),Q("div",{class:"full-width text-center text-subtitle3 q-pb-xs cursor-pointer",onClick:u[2]||(u[2]=n=>b())},[s.value?(g(),B("span",ba,V(F(Me)),1)):(g(),B("span",ya,V(o.$t("common.terms.version")+" "+F(Me)),1))])])])]),_:1},16,["mini"]))}},xa=je(wa,[["__scopeId","data-v-f46045ff"]]),Ca={class:"menu-wrapper"},_a={class:"menu-header"},ka={class:"menu-content"},Sa={class:"flex full-width justify-center"},La={class:"text-caption text-weight-light text-grey-6"},Ta={__name:"LeftMenuLayoutMobile",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const L=ut(),x=Fe(),C=ht(),{logout:f}=dt(),m=async()=>{await f(),L.push({name:"LoginPage"})},s=zt(e,"modelValue"),r=A([]),p=b=>!Array.isArray(b)||b.length===0?!1:b.some(o=>x?.name===o?.name),q=b=>{window.open(b,"_blank")},a=()=>{L.push({name:"SystemVersionsPage"})};return Le(()=>{C.navigationItems.forEach((b,o)=>{p(b.childrens)&&(r.value[o]=!0)})}),(b,o)=>(g(),T(mt,ct(b.$attrs,{modelValue:s.value,"onUpdate:modelValue":o[3]||(o[3]=u=>s.value=u),width:214,breakpoint:500,behavior:"mobile",class:"detached-container"}),{default:l(()=>[Q("div",Ca,[Q("div",_a,[i(be,{src:F(ft),style:{"max-width":"100px"}},null,8,["src"])]),Q("div",ka,[i(ve,{class:"column no-wrap"},{default:l(()=>[(g(!0),B(U,null,ye(F(C).navigationItems,u=>(g(),B(U,null,[u.permission?(g(),B(U,{key:0},[u.type==="single"?W((g(),T(K,{key:u.name,clickable:"","exact-active-class":"menu-selected","active-class":"menu-selected",exact:u.name=="CarteirinhaPage",to:{name:u.name}},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:u.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(b.$t(u.title)),1)]),_:2},1024)]),_:2},1032,["exact","to"])),[[X]]):(g(),T(vt,{key:u.icon,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=n=>r.value=n),class:He({"menu-selected":p(u.children)&&!r.value})},{header:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:u.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(b.$t(u.title)),1)]),_:2},1024)]),default:l(()=>[(g(!0),B(U,null,ye(u.childrens,n=>(g(),B("div",{key:n.name},[W((g(),T(K,{clickable:"",to:{name:n.name},exact:"","exact-active-class":"menu-selected",class:"q-pl-lg"},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:n.icon,style:{"font-size":"20px"}},null,8,["name"])]),_:2},1024),i($,null,{default:l(()=>[I(V(b.$t(n.title)),1)]),_:2},1024)]),_:2},1032,["to"])),[[X]])]))),128))]),_:2},1032,["modelValue","class"]))],64)):le("",!0)],64))),256))]),_:1}),i(ve,{class:"q-mt-auto"},{default:l(()=>[W((g(),T(K,{clickable:"",onClick:m},{default:l(()=>[i($,{avatar:""},{default:l(()=>[i(E,{name:"mdi-logout",color:"negative",style:{"font-size":"20px"}})]),_:1}),i($,null,{default:l(()=>[I(V(b.$t("auth.logout")),1)]),_:1})]),_:1})),[[X]]),W((g(),T(K,{clickable:"",onClick:o[1]||(o[1]=u=>q("https://softpar.inf.br"))},{default:l(()=>[Q("div",Sa,[i(be,{src:F(gt),style:{width:"100%",height:"30px","max-width":"114px"}},null,8,["src"])])]),_:1})),[[X]])]),_:1}),Q("div",{class:"full-width text-center cursor-pointer q-pb-xs",onClick:o[2]||(o[2]=u=>a())},[Q("span",La,V(b.$t("common.terms.version")+" "+F(Me)),1)])])])]),_:1},16,["modelValue"]))}},qa=je(Ta,[["__scopeId","data-v-dc49e449"]]),$a={class:"text-subtitle1 text-weight-bold text-primary q-ml-xs"},Va=["src"],Pa={__name:"MainLayout",setup(e){const L=Fe(),x=Et(),C=A(!1),f=Dt("scrollAreaRef"),m=v(()=>(x.user?.name||"").charAt(0).toUpperCase()||"A");let s=L.path;const r=()=>{C.value=!C.value};return Le(()=>{}),k(L,p=>{s.path!=p.path&&(f.value.setScrollPosition("vertical",0,0),f.value.setScrollPosition("horizontal",0,0)),s=p.path}),(p,q)=>{const a=Ft("router-view");return g(),T(Yt,{class:"relative",view:"hHh lpR fFf"},{default:l(()=>[p.$q.screen.gt.sm?(g(),T(xa,{key:0})):(g(),T(qa,{key:1,modelValue:C.value,"onUpdate:modelValue":q[0]||(q[0]=b=>C.value=b)},null,8,["modelValue"])),p.$q.screen.gt.sm?le("",!0):(g(),T(sa,{key:2,class:"bg-transparent",style:{padding:"8px","padding-top":"calc(env(safe-area-inset-top) + 8px)"}},{default:l(()=>[i(ia,{class:"bg-surface items-center",style:{"border-radius":"6px !important",padding:"0 8px","min-height":"50px"}},{default:l(()=>[i(jt,{dense:"",flat:"",round:"",size:"sm",onClick:r},{default:l(()=>[i(E,{name:"menu",color:"primary",size:"28px"})]),_:1}),Q("span",$a,V(p.$t("auth.type.associado")),1),i(Zt),i(Rt,{size:"40px",color:"violet-normal","text-color":"white",style:{"font-size":"20px","font-weight":"700",cursor:"default"}},{default:l(()=>[F(x).user?.photo_url?(g(),B("img",{key:0,src:F(x).user.photo_url,style:{"object-fit":"cover",width:"100%",height:"100%"}},null,8,Va)):(g(),B(U,{key:1},[I(V(m.value),1)],64))]),_:1})]),_:1})]),_:1})),i(Gt,null,{default:l(()=>[i(Kt,null,{default:l(()=>[i(Ut,{ref_key:"scrollAreaRef",ref:f,style:Oe(p.$q.screen.gt.sm?"height: calc(100dvh - env(safe-area-inset-bottom)) !important; width: 100%; overflow-x: hidden;":"height: calc(100dvh - 68px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important; width: 100%; overflow-x: hidden;")},{default:l(()=>[i(a,null,{default:l(({Component:b})=>[i(De,{mode:"out-in"},{default:l(()=>[(g(),T(Nt(b),{style:Oe([{padding:"20px !important","padding-right":"10px !important"},[p.$q.screen.gt.sm?"":"padding-left: 10px !important;",p.$q.screen.gt.sm?"padding-top: calc(env(safe-area-inset-top) + 20px) !important;":""]])},null,8,["style"]))]),_:2},1024)]),_:1})]),_:1},8,["style"])]),_:1})]),_:1})]),_:1})}}},Wa=je(Pa,[["__scopeId","data-v-bfad2853"]]);export{Wa as default};
|