66 lines
56 KiB
JavaScript
66 lines
56 KiB
JavaScript
(function(v,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vuetify/components/VBtn"),require("vuetify/components/VBadge"),require("vuetify/components/VCheckbox"),require("vuetify/components/VIcon"),require("vuetify/components/VRadio"),require("vuetify/components/VRadioGroup"),require("vuetify/components/VSelect"),require("vuetify/components/VTextField"),require("vuetify/components/VTextarea"),require("vuetify/components/VCard"),require("vuetify/components/VGrid")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components/VBtn","vuetify/components/VBadge","vuetify/components/VCheckbox","vuetify/components/VIcon","vuetify/components/VRadio","vuetify/components/VRadioGroup","vuetify/components/VSelect","vuetify/components/VTextField","vuetify/components/VTextarea","vuetify/components/VCard","vuetify/components/VGrid"],t):(v=typeof globalThis<"u"?globalThis:v||self,t(v.eli_vue={},v.Vue,v.VBtn,v.VBadge,v.VCheckbox,v.VIcon,v.VRadio,v.VRadioGroup,v.VSelect,v.VTextField,v.VTextarea,v.VCard,v.VGrid))})(this,(function(v,t,_e,Me,Ae,Ne,Te,ve,Pe,ue,Oe,G,Ie){"use strict";const qe=t.defineComponent({name:"EliBotao",inheritAttrs:!1,props:{color:{type:String,default:"primary"},variant:{type:String,default:"elevated"},size:{type:String,default:"default"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}}),I=(e,a)=>{const i=e.__vccOpts||e;for(const[r,c]of a)i[r]=c;return i};function Fe(e,a,i,r,c,u){return t.openBlock(),t.createBlock(_e.VBtn,t.mergeProps({color:e.color,variant:e.variant,size:e.size,disabled:e.disabled,loading:e.loading},e.$attrs,{class:"eli-botao text-none pt-1"}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["color","variant","size","disabled","loading"])}const se=I(qe,[["render",Fe]]),me={suave:"4px",pill:"10px"},Le=t.defineComponent({name:"EliBadge",inheritAttrs:!1,props:{color:{type:String,default:"primary"},location:{type:String,default:"top right"},offsetX:{type:String,default:"0"},offsetY:{type:String,default:"0"},dot:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},badge:{type:[String,Number],default:void 0},radius:{type:String,default:"suave"}},setup(e){const a=t.computed(()=>e.radius in me?me[e.radius]:e.radius),i=t.computed(()=>e.dot||e.badge!==void 0?e.visible:!1),r=t.computed(()=>({"--eli-badge-radius":a.value}));return{showBadge:i,badgeStyle:r}}});function ze(e,a,i,r,c,u){return e.showBadge?(t.openBlock(),t.createBlock(Me.VBadge,t.mergeProps({key:0,color:e.color},e.$attrs,{location:e.location,"offset-x":e.offsetX,"offset-y":e.offsetY,dot:e.dot,content:e.badge,style:e.badgeStyle,class:"eli-badge"}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["color","location","offset-x","offset-y","dot","content","style"])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)}const te=I(Le,[["render",ze],["__scopeId","data-v-371c8db4"]]);function je(e){return e.replace(/\D+/g,"")}function Ue(e){const a=je(e);return a.length<=11?a.replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2").slice(0,14):a.replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2").slice(0,18)}function He(e){return e.replace(/\D+/g,"")}function Re(e){const a=He(e);return a?a.length<=10?a.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{4})(\d)/,"$1-$2").slice(0,14):a.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{5})(\d)/,"$1-$2").slice(0,15):""}function ce(e){return e.replace(/\D+/g,"")}function pe(e){const a=e.replace(/[^\d,]/g,""),i=a.split(",");return i.length>2?i[0]+","+i.slice(1).join(""):a}function Ye(e){return pe(e.replace(/%/g,""))}function Je(e){const a=ce(e);return a?(parseInt(a,10)/100).toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g,"."):""}function We(e){const a=ce(e).slice(0,8);return a.length<=5?a:a.replace(/^(\d{5})(\d{1,3})$/,"$1-$2")}const Ge=t.defineComponent({name:"EliInput",inheritAttrs:!1,props:{modelValue:{type:[String,Number,Boolean,Array],default:""},type:{type:String,default:"text"},label:String,placeholder:String,disabled:Boolean,error:Boolean,errorMessages:{type:[String,Array],default:()=>[]},hint:String,persistentHint:Boolean,rows:{type:Number,default:4},options:{type:Array,default:()=>[]},clearable:Boolean,variant:{type:String,default:"outlined"},density:{type:String,default:"comfortable"},color:{type:String,default:"primary"},row:Boolean,showPasswordToggle:Boolean,multiple:Boolean,chips:Boolean},emits:["update:modelValue","change","focus","blur"],setup(e,{emit:a,attrs:i}){const r=t.ref(!1),c=t.ref(!1),u=t.computed({get:()=>e.modelValue,set:C=>{a("update:modelValue",C),a("change",C)}}),o=t.computed(()=>["text","password","email","search","url","telefone","cpfCnpj","numericoInteiro","numericoDecimal","numericoMoeda","porcentagem","cep"].includes(e.type)),l=t.computed(()=>e.type==="password"?c.value?"text":"password":"text"),g=t.computed(()=>{if(e.type==="telefone")return"tel";if(e.type==="porcentagem")return"decimal";if(e.type.startsWith("numerico"))return"numeric"}),n=t.computed(()=>e.error?"error":r.value?e.color:void 0);function h(C){const S=C.target;let f=S.value;switch(e.type){case"numericoInteiro":f=ce(f);break;case"numericoDecimal":f=pe(f);break;case"numericoMoeda":f=Je(f);break;case"porcentagem":f=Ye(f);break;case"telefone":f=Re(f);break;case"cpfCnpj":f=Ue(f);break;case"cep":f=We(f);break}S.value=f,a("update:modelValue",f),a("change",f)}function $(){c.value=!c.value}const P=t.computed(()=>(e.options||[]).map(C=>{if(C&&typeof C=="object"&&"value"in C){const f=C.value;return{label:C.label??String(f),value:f,disabled:C.disabled}}const S=C;return{label:String(S),value:S}}));return{attrs:i,value:u,isTextLike:o,inputHtmlType:l,inputMode:g,internalColor:n,showPassword:c,togglePassword:$,onInput:h,onFocus:()=>a("focus"),onBlur:()=>a("blur"),computedItems:P}}}),Ze={class:"eli-input"},Xe={key:4,class:"checkbox-group"};function Ke(e,a,i,r,c,u){return t.openBlock(),t.createElementBlock("div",Ze,[e.isTextLike?(t.openBlock(),t.createBlock(ue.VTextField,t.mergeProps({key:0,modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=o=>e.value=o),type:e.inputHtmlType,label:e.label,placeholder:e.placeholder,disabled:e.disabled,clearable:e.clearable&&e.type!=="password",error:e.error,"error-messages":e.errorMessages,hint:e.hint,"persistent-hint":e.persistentHint,density:e.density,variant:e.variant,color:e.internalColor,inputmode:e.inputMode,suffix:e.type==="porcentagem"?"%":void 0},e.attrs,{onFocus:e.onFocus,onBlur:e.onBlur,onInput:e.onInput}),t.createSlots({_:2},[e.type==="password"&&e.showPasswordToggle?{name:"append-inner",fn:t.withCtx(()=>[t.createVNode(Ne.VIcon,{class:"cursor-pointer",onClick:e.togglePassword},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.showPassword?"mdi-eye-off":"mdi-eye"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["modelValue","type","label","placeholder","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","color","inputmode","suffix","onFocus","onBlur","onInput"])):e.type==="textarea"?(t.openBlock(),t.createBlock(Oe.VTextarea,t.mergeProps({key:1,modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=o=>e.value=o),label:e.label,rows:e.rows,density:e.density,variant:e.variant},e.attrs),null,16,["modelValue","label","rows","density","variant"])):e.type==="select"?(t.openBlock(),t.createBlock(Pe.VSelect,t.mergeProps({key:2,modelValue:e.value,"onUpdate:modelValue":a[2]||(a[2]=o=>e.value=o),items:e.computedItems,label:e.label,placeholder:e.placeholder,multiple:e.multiple,chips:e.chips,clearable:e.clearable,disabled:e.disabled,density:e.density,variant:e.variant,"item-title":"label","item-value":"value",error:e.error,"error-messages":e.errorMessages},e.attrs,{onFocus:e.onFocus,onBlur:e.onBlur}),null,16,["modelValue","items","label","placeholder","multiple","chips","clearable","disabled","density","variant","error","error-messages","onFocus","onBlur"])):e.type==="radio"?(t.openBlock(),t.createBlock(ve.VRadioGroup,{key:3,modelValue:e.value,"onUpdate:modelValue":a[3]||(a[3]=o=>e.value=o),row:e.row},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedItems,o=>(t.openBlock(),t.createBlock(Te.VRadio,{key:String(o.value),label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","row"])):e.type==="checkbox"?(t.openBlock(),t.createElementBlock("div",Xe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedItems,o=>(t.openBlock(),t.createBlock(Ae.VCheckbox,{key:String(o.value),modelValue:e.value,"onUpdate:modelValue":a[4]||(a[4]=l=>e.value=l),label:o.label,value:o.value,density:e.density},null,8,["modelValue","label","value","density"]))),128))])):t.createCommentVNode("",!0)])}const de=I(Ge,[["render",Ke],["__scopeId","data-v-756cb549"]]),Qe=t.defineComponent({name:"EliOlaMundo",components:{EliBotao:se,EliBadge:te,EliInput:de},setup(){const e=t.ref(""),a=t.ref([]),i=t.ref(""),r=t.ref(""),c=t.ref(""),u=t.ref(""),o=t.ref(""),l=t.ref(""),g=t.ref(""),n=t.ref(""),h=t.ref(""),$=t.ref(null),P=t.ref([]);return{nome:e,email:l,documento:h,estado:a,telefone:r,mensagem:g,senha:n,cor:$,habilidades:P,idade:c,altura:u,cep:i,valor:o}}}),xe={class:"grid-example"};function et(e,a,i,r,c,u){const o=t.resolveComponent("EliBadge"),l=t.resolveComponent("EliInput"),g=t.resolveComponent("EliBotao");return t.openBlock(),t.createBlock(Ie.VContainer,null,{default:t.withCtx(()=>[t.createVNode(G.VCard,{class:"mx-auto",max_width:"400"},{default:t.withCtx(()=>[t.createVNode(G.VCardTitle,null,{default:t.withCtx(()=>[t.createVNode(o,{badge:"Novo","offset-x":"-15",location:"right center"},{default:t.withCtx(()=>[...a[14]||(a[14]=[t.createTextVNode(" Olá Mundo! ",-1)])]),_:1})]),_:1}),t.createVNode(G.VCardText,null,{default:t.withCtx(()=>[a[15]||(a[15]=t.createTextVNode(" Este é um componente de exemplo integrado com Vuetify. ",-1)),t.createElementVNode("div",xe,[t.createVNode(l,{modelValue:e.nome,"onUpdate:modelValue":a[0]||(a[0]=n=>e.nome=n),label:"Nome",placeholder:"Digite o nome",density:"compact"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.idade,"onUpdate:modelValue":a[1]||(a[1]=n=>e.idade=n),type:"numericoInteiro",label:"Idade",density:"default"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.altura,"onUpdate:modelValue":a[2]||(a[2]=n=>e.altura=n),type:"numericoDecimal",label:"Altura",density:"comfortable"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.valor,"onUpdate:modelValue":a[3]||(a[3]=n=>e.valor=n),type:"numericoMoeda",label:"Valor"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.telefone,"onUpdate:modelValue":a[4]||(a[4]=n=>e.telefone=n),type:"telefone",label:"Telefone"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.cep,"onUpdate:modelValue":a[5]||(a[5]=n=>e.cep=n),type:"cep",label:"CEP",placeholder:"00000-000"},null,8,["modelValue"]),t.createVNode(l,{type:"select",label:"Estado",options:[{label:"São Paulo",value:"SP"},{label:"Rio de Janeiro",value:"RJ"}],modelValue:e.estado,"onUpdate:modelValue":a[6]||(a[6]=n=>e.estado=n),multiple:""},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.documento,"onUpdate:modelValue":a[7]||(a[7]=n=>e.documento=n),type:"cpfCnpj",label:"CPF / CNPJ"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.email,"onUpdate:modelValue":a[8]||(a[8]=n=>e.email=n),label:"Email",placeholder:"email@exemplo.com"},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.senha,"onUpdate:modelValue":a[9]||(a[9]=n=>e.senha=n),label:"Senha",type:"password",showPasswordToggle:!0,placeholder:"Digite sua senha"},null,8,["modelValue"]),t.createVNode(l,{type:"textarea",modelValue:e.mensagem,"onUpdate:modelValue":a[10]||(a[10]=n=>e.mensagem=n),label:"Mensagem",rows:5},null,8,["modelValue"]),t.createVNode(l,{type:"radio",modelValue:e.cor,"onUpdate:modelValue":a[11]||(a[11]=n=>e.cor=n),label:"Cor favorita",options:[{label:"Azul",value:"azul"},{label:"Verde",value:"verde"}]},null,8,["modelValue"]),t.createVNode(l,{type:"checkbox",modelValue:e.habilidades,"onUpdate:modelValue":a[12]||(a[12]=n=>e.habilidades=n),options:[{label:"Vue",value:"vue"},{label:"React",value:"react"}]},null,8,["modelValue"]),t.createVNode(l,{modelValue:e.nome,"onUpdate:modelValue":a[13]||(a[13]=n=>e.nome=n),label:"Nome",error:!0,"error-messages":["Obrigatório"]},null,8,["modelValue"])])]),_:1}),t.createVNode(G.VCardActions,null,{default:t.withCtx(()=>[t.createVNode(g,{color:"primary",variant:"elevated",block:""},{default:t.withCtx(()=>[...a[16]||(a[16]=[t.createTextVNode(" Botão Vuetify ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})}const fe=I(Qe,[["render",et]]),tt=t.defineComponent({name:"EliCartao",components:{EliBadge:te},inheritAttrs:!1,props:{titulo:{type:String,default:""},status:{type:String,required:!0},variant:{type:String,default:"outlined"}},emits:{clicar:e=>!0},setup(e,{emit:a}){const i=t.computed(()=>e.status),r=t.computed(()=>{switch(e.status){case"novo":return"primary";case"rascunho":return"secondary";case"vendido":return"success";case"cancelado":return"error"}}),c=t.computed(()=>`eli-cartao--${e.status}`);function u(){a("clicar",e.status)}return{rotuloStatus:i,corStatus:r,classeStatus:c,onClick:u}}}),at={class:"eli-cartao__titulo-texto"},ot={class:"eli-cartao__status"};function nt(e,a,i,r,c,u){const o=t.resolveComponent("EliBadge");return t.openBlock(),t.createBlock(G.VCard,t.mergeProps({class:["eli-cartao",e.classeStatus],variant:e.variant},e.$attrs),{default:t.withCtx(()=>[t.createVNode(G.VCardTitle,{class:"eli-cartao__titulo"},{default:t.withCtx(()=>[t.createElementVNode("div",at,[t.renderSlot(e.$slots,"titulo",{},()=>[t.createTextVNode(t.toDisplayString(e.titulo),1)],!0)]),t.createElementVNode("div",ot,[t.createVNode(o,{badge:e.rotuloStatus,radius:"pill",color:e.corStatus},{default:t.withCtx(()=>[...a[0]||(a[0]=[t.createElementVNode("span",null,null,-1)])]),_:1},8,["badge","color"])])]),_:3}),t.createVNode(G.VCardText,{class:"eli-cartao__conteudo"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3}),e.$slots.acoes?(t.openBlock(),t.createBlock(G.VCardActions,{key:0,class:"eli-cartao__acoes"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"acoes",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),_:3},16,["variant","class"])}const be=I(tt,[["render",nt],["__scopeId","data-v-6c492bd9"]]);function rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ae={exports:{}},lt=ae.exports,ge;function it(){return ge||(ge=1,(function(e,a){(function(i,r){e.exports=r()})(lt,(function(){var i=1e3,r=6e4,c=36e5,u="millisecond",o="second",l="minute",g="hour",n="day",h="week",$="month",P="quarter",C="year",S="date",f="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(y){var m=["th","st","nd","rd"],s=y%100;return"["+y+(m[(s-20)%10]||m[s]||m[0])+"]"}},j=function(y,m,s){var b=String(y);return!b||b.length>=m?y:""+Array(m+1-b.length).join(s)+y},U={s:j,z:function(y){var m=-y.utcOffset(),s=Math.abs(m),b=Math.floor(s/60),d=s%60;return(m<=0?"+":"-")+j(b,2,"0")+":"+j(d,2,"0")},m:function y(m,s){if(m.date()<s.date())return-y(s,m);var b=12*(s.year()-m.year())+(s.month()-m.month()),d=m.clone().add(b,$),k=s-d<0,V=m.clone().add(b+(k?-1:1),$);return+(-(b+(s-d)/(k?d-V:V-d))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:$,y:C,w:h,d:n,D:S,h:g,m:l,s:o,ms:u,Q:P}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},Z="en",W={};W[Z]=w;var re="$isDayjsObject",Q=function(y){return y instanceof J||!(!y||!y[re])},X=function y(m,s,b){var d;if(!m)return Z;if(typeof m=="string"){var k=m.toLowerCase();W[k]&&(d=k),s&&(W[k]=s,d=k);var V=m.split("-");if(!d&&V.length>1)return y(V[0])}else{var _=m.name;W[_]=m,d=_}return!b&&d&&(Z=d),d||!b&&Z},O=function(y,m){if(Q(y))return y.clone();var s=typeof m=="object"?m:{};return s.date=y,s.args=arguments,new J(s)},T=U;T.l=X,T.i=Q,T.w=function(y,m){return O(y,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var J=(function(){function y(s){this.$L=X(s.locale,null,!0),this.parse(s),this.$x=this.$x||s.x||{},this[re]=!0}var m=y.prototype;return m.parse=function(s){this.$d=(function(b){var d=b.date,k=b.utc;if(d===null)return new Date(NaN);if(T.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var V=d.match(N);if(V){var _=V[2]-1||0,p=(V[7]||"0").substring(0,3);return k?new Date(Date.UTC(V[1],_,V[3]||1,V[4]||0,V[5]||0,V[6]||0,p)):new Date(V[1],_,V[3]||1,V[4]||0,V[5]||0,V[6]||0,p)}}return new Date(d)})(s),this.init()},m.init=function(){var s=this.$d;this.$y=s.getFullYear(),this.$M=s.getMonth(),this.$D=s.getDate(),this.$W=s.getDay(),this.$H=s.getHours(),this.$m=s.getMinutes(),this.$s=s.getSeconds(),this.$ms=s.getMilliseconds()},m.$utils=function(){return T},m.isValid=function(){return this.$d.toString()!==f},m.isSame=function(s,b){var d=O(s);return this.startOf(b)<=d&&d<=this.endOf(b)},m.isAfter=function(s,b){return O(s)<this.startOf(b)},m.isBefore=function(s,b){return this.endOf(b)<O(s)},m.$g=function(s,b,d){return T.u(s)?this[b]:this.set(d,s)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(s,b){var d=this,k=!!T.u(b)||b,V=T.p(s),_=function(q,D){var H=T.w(d.$u?Date.UTC(d.$y,D,q):new Date(d.$y,D,q),d);return k?H:H.endOf(n)},p=function(q,D){return T.w(d.toDate()[q].apply(d.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(D)),d)},B=this.$W,M=this.$M,A=this.$D,z="set"+(this.$u?"UTC":"");switch(V){case C:return k?_(1,0):_(31,11);case $:return k?_(1,M):_(0,M+1);case h:var F=this.$locale().weekStart||0,L=(B<F?B+7:B)-F;return _(k?A-L:A+(6-L),M);case n:case S:return p(z+"Hours",0);case g:return p(z+"Minutes",1);case l:return p(z+"Seconds",2);case o:return p(z+"Milliseconds",3);default:return this.clone()}},m.endOf=function(s){return this.startOf(s,!1)},m.$set=function(s,b){var d,k=T.p(s),V="set"+(this.$u?"UTC":""),_=(d={},d[n]=V+"Date",d[S]=V+"Date",d[$]=V+"Month",d[C]=V+"FullYear",d[g]=V+"Hours",d[l]=V+"Minutes",d[o]=V+"Seconds",d[u]=V+"Milliseconds",d)[k],p=k===n?this.$D+(b-this.$W):b;if(k===$||k===C){var B=this.clone().set(S,1);B.$d[_](p),B.init(),this.$d=B.set(S,Math.min(this.$D,B.daysInMonth())).$d}else _&&this.$d[_](p);return this.init(),this},m.set=function(s,b){return this.clone().$set(s,b)},m.get=function(s){return this[T.p(s)]()},m.add=function(s,b){var d,k=this;s=Number(s);var V=T.p(b),_=function(M){var A=O(k);return T.w(A.date(A.date()+Math.round(M*s)),k)};if(V===$)return this.set($,this.$M+s);if(V===C)return this.set(C,this.$y+s);if(V===n)return _(1);if(V===h)return _(7);var p=(d={},d[l]=r,d[g]=c,d[o]=i,d)[V]||1,B=this.$d.getTime()+s*p;return T.w(B,this)},m.subtract=function(s,b){return this.add(-1*s,b)},m.format=function(s){var b=this,d=this.$locale();if(!this.isValid())return d.invalidDate||f;var k=s||"YYYY-MM-DDTHH:mm:ssZ",V=T.z(this),_=this.$H,p=this.$m,B=this.$M,M=d.weekdays,A=d.months,z=d.meridiem,F=function(D,H,R,Y){return D&&(D[H]||D(b,k))||R[H].slice(0,Y)},L=function(D){return T.s(_%12||12,D,"0")},q=z||function(D,H,R){var Y=D<12?"AM":"PM";return R?Y.toLowerCase():Y};return k.replace(E,(function(D,H){return H||(function(R){switch(R){case"YY":return String(b.$y).slice(-2);case"YYYY":return T.s(b.$y,4,"0");case"M":return B+1;case"MM":return T.s(B+1,2,"0");case"MMM":return F(d.monthsShort,B,A,3);case"MMMM":return F(A,B);case"D":return b.$D;case"DD":return T.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return F(d.weekdaysMin,b.$W,M,2);case"ddd":return F(d.weekdaysShort,b.$W,M,3);case"dddd":return M[b.$W];case"H":return String(_);case"HH":return T.s(_,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return q(_,p,!0);case"A":return q(_,p,!1);case"m":return String(p);case"mm":return T.s(p,2,"0");case"s":return String(b.$s);case"ss":return T.s(b.$s,2,"0");case"SSS":return T.s(b.$ms,3,"0");case"Z":return V}return null})(D)||V.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(s,b,d){var k,V=this,_=T.p(b),p=O(s),B=(p.utcOffset()-this.utcOffset())*r,M=this-p,A=function(){return T.m(V,p)};switch(_){case C:k=A()/12;break;case $:k=A();break;case P:k=A()/3;break;case h:k=(M-B)/6048e5;break;case n:k=(M-B)/864e5;break;case g:k=M/c;break;case l:k=M/r;break;case o:k=M/i;break;default:k=M}return d?k:T.a(k)},m.daysInMonth=function(){return this.endOf($).$D},m.$locale=function(){return W[this.$L]},m.locale=function(s,b){if(!s)return this.$L;var d=this.clone(),k=X(s,b,!0);return k&&(d.$L=k),d},m.clone=function(){return T.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y})(),x=J.prototype;return O.prototype=x,[["$ms",u],["$s",o],["$m",l],["$H",g],["$W",n],["$M",$],["$y",C],["$D",S]].forEach((function(y){x[y[1]]=function(m){return this.$g(m,y[0],y[1])}})),O.extend=function(y,m){return y.$i||(y(m,J,O),y.$i=!0),O},O.locale=X,O.isDayjs=Q,O.unix=function(y){return O(1e3*y)},O.en=W[Z],O.Ls=W,O.p={},O}))})(ae)),ae.exports}var st=it();const oe=rt(st),ct=t.defineComponent({name:"EliDataHora",inheritAttrs:!1,props:{modelValue:{type:String,default:null},modo:{type:String,default:"dataHora"},rotulo:{type:String,default:"Data e hora"},placeholder:{type:String,default:""},desabilitado:{type:Boolean,default:!1},limpavel:{type:Boolean,default:!1},erro:{type:Boolean,default:!1},mensagensErro:{type:[String,Array],default:()=>[]},dica:{type:String,default:""},dicaPersistente:{type:Boolean,default:!1},densidade:{type:String,default:"comfortable"},variante:{type:String,default:"outlined"},min:{type:String,default:void 0},max:{type:String,default:void 0}},emits:{"update:modelValue":e=>!0,alterar:e=>!0,foco:()=>!0,desfoco:()=>!0},setup(e,{emit:a,attrs:i}){const r=t.computed(()=>e.modo==="data"?"date":"datetime-local");function c(n){return e.modo==="data"?oe(n).format("YYYY-MM-DD"):oe(n).format("YYYY-MM-DDTHH:mm")}function u(n){return e.modo==="data"?oe(`${n}T00:00`).format():oe(n).format()}const o=t.computed({get:()=>e.modelValue?c(e.modelValue):"",set:n=>{const h=n&&n.length>0?n:null;if(!h){a("update:modelValue",null),a("alterar",null);return}const $=u(h);a("update:modelValue",$),a("alterar",$)}}),l=t.computed(()=>{if(e.min)return c(e.min)}),g=t.computed(()=>{if(e.max)return c(e.max)});return{attrs:i,valor:o,emit:a,minLocal:l,maxLocal:g,tipoInput:r}}}),dt={class:"eli-data-hora"};function ut(e,a,i,r,c,u){return t.openBlock(),t.createElementBlock("div",dt,[t.createVNode(ue.VTextField,t.mergeProps({modelValue:e.valor,"onUpdate:modelValue":a[0]||(a[0]=o=>e.valor=o),type:e.tipoInput,label:e.rotulo,placeholder:e.placeholder,disabled:e.desabilitado,clearable:e.limpavel,error:e.erro,"error-messages":e.mensagensErro,hint:e.dica,"persistent-hint":e.dicaPersistente,density:e.densidade,variant:e.variante,min:e.minLocal,max:e.maxLocal},e.attrs,{onFocus:a[1]||(a[1]=o=>e.emit("foco")),onBlur:a[2]||(a[2]=o=>e.emit("desfoco"))}),null,16,["modelValue","type","label","placeholder","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","min","max"])])}const he=I(ct,[["render",ut],["__scopeId","data-v-71afabb6"]]);var ye=(e=>(e[e.sucesso=200]="sucesso",e[e.erroConhecido=400]="erroConhecido",e[e.erroPermissao=401]="erroPermissao",e[e.erroNaoEncontrado=404]="erroNaoEncontrado",e[e.erroDesconhecido=500]="erroDesconhecido",e[e.tempoEsgotado=504]="tempoEsgotado",e))(ye||{});/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mt=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $e=e=>e==="";/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pt=(...e)=>e.filter((a,i,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===i).join(" ").trim();/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ke=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ft=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,r)=>r?r.toUpperCase():i.toLowerCase());/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bt=e=>{const a=ft(e);return a.charAt(0).toUpperCase()+a.slice(1)};/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var K={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gt=({name:e,iconNode:a,absoluteStrokeWidth:i,"absolute-stroke-width":r,strokeWidth:c,"stroke-width":u,size:o=K.width,color:l=K.stroke,...g},{slots:n})=>t.h("svg",{...K,...g,width:o,height:o,stroke:l,"stroke-width":$e(i)||$e(r)||i===!0||r===!0?Number(c||u||K["stroke-width"])*24/Number(o):c||u||K["stroke-width"],class:pt("lucide",g.class,...e?[`lucide-${ke(bt(e))}-icon`,`lucide-${ke(e)}`]:["lucide-icon"]),...!n.default&&!mt(g)&&{"aria-hidden":"true"}},[...a.map(h=>t.h(...h)),...n.default?[n.default()]:[]]);/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ne=(e,a)=>(i,{slots:r,attrs:c})=>t.h(gt,{...c,...i,iconNode:a,name:e},r);/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Be=ne("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ve=ne("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ht=ne("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
||
* @license lucide-vue-next v0.563.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yt=ne("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),$t=t.defineComponent({name:"EliTabelaCaixaDeBusca",components:{Search:yt},props:{modelo:{type:String,required:!1,default:""}},emits:{buscar(e){return typeof e=="string"}},setup(e,{emit:a}){const i=t.ref(e.modelo??"");t.watch(()=>e.modelo,c=>{c!==void 0&&c!==i.value&&(i.value=c)});function r(){a("buscar",i.value.trim())}return{texto:i,emitirBusca:r}}}),kt={class:"eli-tabela__busca"},Bt={class:"eli-tabela__busca-input-wrapper"};function Vt(e,a,i,r,c,u){const o=t.resolveComponent("Search");return t.openBlock(),t.createElementBlock("div",kt,[t.createElementVNode("div",Bt,[t.withDirectives(t.createElementVNode("input",{id:"eli-tabela-busca","onUpdate:modelValue":a[0]||(a[0]=l=>e.texto=l),type:"search",class:"eli-tabela__busca-input",placeholder:"Digite termos para filtrar",onKeyup:a[1]||(a[1]=t.withKeys((...l)=>e.emitirBusca&&e.emitirBusca(...l),["enter"]))},null,544),[[t.vModelText,e.texto]]),t.createElementVNode("button",{type:"button",class:"eli-tabela__busca-botao","aria-label":"Buscar",title:"Buscar",onClick:a[2]||(a[2]=(...l)=>e.emitirBusca&&e.emitirBusca(...l))},[t.createVNode(o,{class:"eli-tabela__busca-botao-icone",size:16,"stroke-width":2,"aria-hidden":"true"})])])])}const Ct=I($t,[["render",Vt],["__scopeId","data-v-f7b534c8"]]),Et=t.defineComponent({name:"EliTabelaCabecalho",components:{EliTabelaCaixaDeBusca:Ct},props:{exibirBusca:{type:Boolean,required:!0},exibirBotaoColunas:{type:Boolean,required:!1,default:!0},valorBusca:{type:String,required:!0},acoesCabecalho:{type:Array,required:!0}},emits:{buscar(e){return typeof e=="string"},colunas(){return!0}},setup(e,{emit:a}){const i=t.computed(()=>e.acoesCabecalho.length>0);function r(u){a("buscar",u)}function c(){a("colunas")}return{temAcoesCabecalho:i,emitBuscar:r,emitColunas:c}}}),St={class:"eli-tabela__cabecalho"},wt={key:0,class:"eli-tabela__busca-grupo"},Dt={key:1,class:"eli-tabela__acoes-cabecalho"},_t=["onClick"],Mt={class:"eli-tabela__acoes-cabecalho-rotulo"};function At(e,a,i,r,c,u){const o=t.resolveComponent("EliTabelaCaixaDeBusca");return t.openBlock(),t.createElementBlock("div",St,[e.exibirBusca?(t.openBlock(),t.createElementBlock("div",wt,[e.exibirBotaoColunas?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas",onClick:a[0]||(a[0]=(...l)=>e.emitColunas&&e.emitColunas(...l))}," Colunas ")):t.createCommentVNode("",!0),t.createVNode(o,{modelo:e.valorBusca,onBuscar:e.emitBuscar},null,8,["modelo","onBuscar"])])):t.createCommentVNode("",!0),e.temAcoesCabecalho?(t.openBlock(),t.createElementBlock("div",Dt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.acoesCabecalho,(l,g)=>(t.openBlock(),t.createElementBlock("button",{key:`${l.rotulo}-${g}`,type:"button",class:"eli-tabela__acoes-cabecalho-botao",style:t.normalizeStyle(l.cor?{backgroundColor:l.cor,color:"#fff"}:void 0),onClick:l.acao},[l.icone?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icone),{key:0,class:"eli-tabela__acoes-cabecalho-icone",size:16,"stroke-width":2})):t.createCommentVNode("",!0),t.createElementVNode("span",Mt,t.toDisplayString(l.rotulo),1)],12,_t))),128))])):t.createCommentVNode("",!0)])}const Nt=I(Et,[["render",At],["__scopeId","data-v-5b4ab3b9"]]),Tt=t.defineComponent({name:"EliTabelaEstados",props:{carregando:{type:Boolean,required:!0},erro:{type:String,required:!0},mensagemVazio:{type:String,required:!1,default:void 0}}}),vt={key:0,class:"eli-tabela eli-tabela--carregando","aria-busy":"true"},Pt={key:1,class:"eli-tabela eli-tabela--erro",role:"alert"},Ot={class:"eli-tabela__erro-mensagem"},It={key:2,class:"eli-tabela eli-tabela--vazio"};function qt(e,a,i,r,c,u){return e.carregando?(t.openBlock(),t.createElementBlock("div",vt," Carregando... ")):e.erro?(t.openBlock(),t.createElementBlock("div",Pt,[a[0]||(a[0]=t.createElementVNode("div",{class:"eli-tabela__erro-titulo"},"Erro",-1)),t.createElementVNode("div",Ot,t.toDisplayString(e.erro),1)])):(t.openBlock(),t.createElementBlock("div",It,t.toDisplayString(e.mensagemVazio??"Nenhum registro encontrado."),1))}const Ft=I(Tt,[["render",qt]]),Lt=t.defineComponent({name:"EliTabelaDebug",props:{isDev:{type:Boolean,required:!0},menuAberto:{type:Number,required:!0},menuPopupPos:{type:Object,required:!0}}}),zt={key:0,style:{position:"fixed",left:"8px",bottom:"8px","z-index":"999999",background:"rgba(185,28,28,0.9)",color:"#fff",padding:"6px 10px","border-radius":"8px","font-size":"12px","max-width":"500px"}};function jt(e,a,i,r,c,u){return e.isDev?(t.openBlock(),t.createElementBlock("div",zt,[a[0]||(a[0]=t.createElementVNode("div",null,[t.createElementVNode("b",null,"EliTabela debug")],-1)),t.createElementVNode("div",null,"menuAberto: "+t.toDisplayString(e.menuAberto),1),t.createElementVNode("div",null,"menuPos: top="+t.toDisplayString(e.menuPopupPos.top)+", left="+t.toDisplayString(e.menuPopupPos.left),1)])):t.createCommentVNode("",!0)}const Ut=I(Lt,[["render",jt]]),Ht=t.defineComponent({name:"EliTabelaHead",components:{ArrowUp:Ve,ArrowDown:Be},props:{colunas:{type:Array,required:!0},temAcoes:{type:Boolean,required:!0},colunaOrdenacao:{type:String,required:!0},direcaoOrdenacao:{type:String,required:!0}},emits:{alternarOrdenacao(e){return typeof e=="string"&&e.length>0}},setup(e,{emit:a}){function i(u){return(u==null?void 0:u.coluna_ordem)!==void 0&&(u==null?void 0:u.coluna_ordem)!==null}function r(u){return u==="direita"?"eli-tabela__celula--direita":u==="centro"?"eli-tabela__celula--centro":"eli-tabela__celula--esquerda"}function c(u){a("alternarOrdenacao",u)}return{ArrowUp:Ve,ArrowDown:Be,isOrdenavel:i,obterClasseAlinhamento:r,emitAlternarOrdenacao:c}}}),Rt={class:"eli-tabela__thead"},Yt={class:"eli-tabela__tr eli-tabela__tr--header"},Jt=["onClick"],Wt={class:"eli-tabela__th-texto"},Gt={key:1,class:"eli-tabela__th-label"},Zt={key:0,class:"eli-tabela__th eli-tabela__th--acoes",scope:"col"};function Xt(e,a,i,r,c,u){const o=t.resolveComponent("ArrowUp");return t.openBlock(),t.createElementBlock("thead",Rt,[t.createElementVNode("tr",Yt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.colunas,(l,g)=>(t.openBlock(),t.createElementBlock("th",{key:`th-${g}`,class:t.normalizeClass(["eli-tabela__th",[e.isOrdenavel(l)?"eli-tabela__th--ordenavel":void 0,e.obterClasseAlinhamento(l.alinhamento)]]),scope:"col"},[e.isOrdenavel(l)?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:t.normalizeClass(["eli-tabela__th-botao",[e.colunaOrdenacao===String(l.coluna_ordem)?"eli-tabela__th-botao--ativo":void 0]]),onClick:n=>e.emitAlternarOrdenacao(String(l.coluna_ordem))},[t.createElementVNode("span",Wt,t.toDisplayString(l.rotulo),1),e.colunaOrdenacao===String(l.coluna_ordem)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.direcaoOrdenacao==="asc"?e.ArrowUp:e.ArrowDown),{key:0,class:"eli-tabela__th-icone",size:16,"stroke-width":2,"aria-hidden":"true"})):(t.openBlock(),t.createBlock(o,{key:1,class:"eli-tabela__th-icone eli-tabela__th-icone--oculto",size:16,"stroke-width":2,"aria-hidden":"true"}))],10,Jt)):(t.openBlock(),t.createElementBlock("span",Gt,t.toDisplayString(l.rotulo),1))],2))),128)),e.temAcoes?(t.openBlock(),t.createElementBlock("th",Zt," Ações ")):t.createCommentVNode("",!0)])])}const Kt=I(Ht,[["render",Xt]]),Qt=t.defineComponent({name:"EliTabelaCelulaTextoSimples",components:{},props:{dados:{type:Object}},data(){return{}},methods:{},setup({dados:e}){return{dados:e}}});function xt(e,a,i,r,c,u){var o;return t.toDisplayString((o=e.dados)==null?void 0:o.texto)}const ea=I(Qt,[["render",xt]]),ta=t.defineComponent({name:"EliTabelaCelulaNumero",components:{},props:{dados:{type:Object}},data(){return{}},methods:{},setup({dados:e}){return{dados:e}}});function aa(e,a,i,r,c,u){var o;return t.toDisplayString(String((o=e.dados)==null?void 0:o.numero).replace(".",","))}const oa={textoSimples:ea,numero:I(ta,[["render",aa]])},na=t.defineComponent({name:"EliTabelaCelula",props:{celula:{type:Array,required:!0}},setup(e){const a=t.computed(()=>e.celula[0]),i=t.computed(()=>e.celula[1]),r=t.computed(()=>oa[a.value]),c=t.computed(()=>i.value);return{Componente:r,dadosParaComponente:c}}});function ra(e,a,i,r,c,u){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Componente),{dados:e.dadosParaComponente},null,8,["dados"])}const la=I(na,[["render",ra]]),ia=t.defineComponent({name:"EliTabelaBody",components:{EliTabelaCelula:la,MoreVertical:ht},props:{colunas:{type:Array,required:!0},linhas:{type:Array,required:!0},temAcoes:{type:Boolean,required:!0},menuAberto:{type:Number,required:!0},possuiAcoes:{type:Function,required:!0},toggleMenu:{type:Function,required:!0}},setup(){function e(r){return r==="direita"?"eli-tabela__celula--direita":r==="centro"?"eli-tabela__celula--centro":"eli-tabela__celula--esquerda"}function a(r){if(r!=null)return typeof r=="number"?`${r}px`:String(r)}function i(r){if(!Array.isArray(r))return;const c=r[0],u=r[1];if(c==="textoSimples")return typeof(u==null?void 0:u.texto)=="string"?u.texto:void 0;if(c==="numero")return typeof(u==null?void 0:u.numero)=="number"?String(u.numero):void 0}return{obterClasseAlinhamento:e,obterMaxWidth:a,obterTooltipCelula:i}}}),sa={class:"eli-tabela__tbody"},ca=["onClick"],da=["title"],ua=["id","disabled","aria-expanded","aria-controls","aria-label","title","onClick"];function ma(e,a,i,r,c,u){const o=t.resolveComponent("EliTabelaCelula"),l=t.resolveComponent("MoreVertical");return t.openBlock(),t.createElementBlock("tbody",sa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linhas,(g,n)=>(t.openBlock(),t.createElementBlock("tr",{key:`tr-${n}`,class:t.normalizeClass(["eli-tabela__tr",[n%2===1?"eli-tabela__tr--zebra":void 0]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.colunas,(h,$)=>(t.openBlock(),t.createElementBlock("td",{key:`td-${n}-${$}`,class:t.normalizeClass(["eli-tabela__td",[h.acao?"eli-tabela__td--clicavel":void 0,e.obterClasseAlinhamento(h.alinhamento)]]),onClick:P=>h.acao?()=>{var C;return(C=h.acao)==null?void 0:C.call(h)}:void 0},[h.truncar?(t.openBlock(),t.createElementBlock("span",{key:0,class:"eli-tabela__celula-conteudo",style:t.normalizeStyle(h.largura_maxima?{maxWidth:e.obterMaxWidth(h.largura_maxima)}:void 0),title:e.obterTooltipCelula(h.celula(g))},[t.createVNode(o,{celula:h.celula(g)},null,8,["celula"])],12,da)):(t.openBlock(),t.createBlock(o,{key:1,celula:h.celula(g)},null,8,["celula"]))],10,ca))),128)),e.temAcoes?(t.openBlock(),t.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--acoes",key:`td-${n}-acoes`},[t.createElementVNode("div",{class:t.normalizeClass(["eli-tabela__acoes-container",[e.menuAberto===n?"eli-tabela__acoes-container--aberto":void 0]])},[t.createElementVNode("button",{class:"eli-tabela__acoes-toggle",type:"button",id:`eli-tabela-acoes-toggle-${n}`,disabled:!e.possuiAcoes(n),"aria-haspopup":"menu","aria-expanded":e.menuAberto===n?"true":"false","aria-controls":e.possuiAcoes(n)?`eli-tabela-acoes-menu-${n}`:void 0,"aria-label":e.possuiAcoes(n)?"Ações da linha":"Nenhuma ação disponível",title:e.possuiAcoes(n)?"Ações":"Nenhuma ação disponível",onClick:t.withModifiers(h=>e.toggleMenu(n,h),["stop"])},[t.createVNode(l,{class:"eli-tabela__acoes-toggle-icone",size:18,"stroke-width":2})],8,ua)],2)])):t.createCommentVNode("",!0)],2))),128))])}const pa=I(ia,[["render",ma]]),fa=t.defineComponent({name:"EliTabelaMenuAcoes",props:{menuAberto:{type:Number,required:!0},posicao:{type:Object,required:!0},acoes:{type:Array,required:!0},linha:{type:null,required:!0}},emits:{executar(e){return e!==null&&typeof e=="object"}},setup(e,{emit:a,expose:i}){const r=t.ref(null);i({menuEl:r});const c=t.computed(()=>e.acoes.length>0);function u(o){e.linha&&a("executar",{acao:o.acao,linha:e.linha})}return{menuEl:r,possuiAcoes:c,emitExecutar:u}}}),ba=["id","aria-labelledby"],ga=["aria-label","title","onClick"],ha={class:"eli-tabela__acoes-item-texto"};function ya(e,a,i,r,c,u){return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[e.menuAberto!==null&&e.possuiAcoes?(t.openBlock(),t.createElementBlock("ul",{key:0,id:`eli-tabela-acoes-menu-${e.menuAberto}`,ref:"menuEl",class:"eli-tabela__acoes-menu",role:"menu","aria-labelledby":`eli-tabela-acoes-toggle-${e.menuAberto}`,style:t.normalizeStyle({position:"fixed",top:`${e.posicao.top}px`,left:`${e.posicao.left}px`,zIndex:999999})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.acoes,o=>(t.openBlock(),t.createElementBlock("li",{key:`acao-${e.menuAberto}-${o.indice}`,class:"eli-tabela__acoes-item",role:"none"},[t.createElementVNode("button",{type:"button",class:"eli-tabela__acoes-item-botao",style:t.normalizeStyle({color:o.acao.cor}),role:"menuitem","aria-label":o.acao.rotulo,title:o.acao.rotulo,onClick:t.withModifiers(l=>e.emitExecutar(o),["stop"])},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.acao.icone),{class:"eli-tabela__acoes-item-icone",size:16,"stroke-width":2})),t.createElementVNode("span",ha,t.toDisplayString(o.acao.rotulo),1)],12,ga)]))),128))],12,ba)):t.createCommentVNode("",!0)])}const $a=I(fa,[["render",ya]]),ka=t.defineComponent({name:"EliTabelaPaginacao",props:{pagina:{type:Number,required:!0},totalPaginas:{type:Number,required:!0},maximoBotoes:{type:Number,required:!1}},emits:{alterar(e){return Number.isFinite(e)}},setup(e,{emit:a}){const i=t.computed(()=>{const n=e.maximoBotoes;return typeof n=="number"&&n>=5?Math.floor(n):7}),r=t.computed(()=>{const n=e.totalPaginas,h=e.pagina,$=i.value,P=[],C=w=>{P.push({label:String(w),pagina:w,ativo:w===h})},S=()=>{P.push({label:"…",ehEllipsis:!0})};if(n<=$){for(let w=1;w<=n;w+=1)C(w);return P}const f=Math.max(3,$-2);let N=Math.max(2,h-Math.floor(f/2)),E=N+f-1;E>=n&&(E=n-1,N=E-f+1),C(1),N>2&&S();for(let w=N;w<=E;w+=1)C(w);return E<n-1&&S(),C(n),P});function c(n){if(!n)return;const h=Math.min(Math.max(1,n),e.totalPaginas);h!==e.pagina&&a("alterar",h)}const u=t.computed(()=>e.pagina<=1),o=t.computed(()=>e.pagina>=e.totalPaginas),l=t.computed(()=>e.pagina),g=t.computed(()=>e.totalPaginas);return{botoes:r,irParaPagina:c,anteriorDesabilitado:u,proximaDesabilitada:o,paginaAtual:l,totalPaginasExibidas:g}}}),Ba={key:0,class:"eli-tabela__paginacao",role:"navigation","aria-label":"Paginação de resultados"},Va=["disabled"],Ca={key:0,class:"eli-tabela__pagina-ellipsis","aria-hidden":"true"},Ea=["disabled","aria-current","aria-label","onClick"],Sa=["disabled"];function wa(e,a,i,r,c,u){return e.totalPaginasExibidas>1?(t.openBlock(),t.createElementBlock("nav",Ba,[t.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.anteriorDesabilitado,"aria-label":"Página anterior",onClick:a[0]||(a[0]=o=>e.irParaPagina(e.paginaAtual-1))}," << ",8,Va),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.botoes,(o,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${o.label}-${l}`},[o.ehEllipsis?(t.openBlock(),t.createElementBlock("span",Ca,t.toDisplayString(o.label),1)):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:t.normalizeClass(["eli-tabela__pagina-botao",o.ativo?"eli-tabela__pagina-botao--ativo":void 0]),disabled:o.ativo,"aria-current":o.ativo?"page":void 0,"aria-label":`Ir para página ${o.label}`,onClick:g=>e.irParaPagina(o.pagina)},t.toDisplayString(o.label),11,Ea))],64))),128)),t.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.proximaDesabilitada,"aria-label":"Próxima página",onClick:a[1]||(a[1]=o=>e.irParaPagina(e.paginaAtual+1))}," >> ",8,Sa)])):t.createCommentVNode("",!0)}const Da=I(ka,[["render",wa],["__scopeId","data-v-59d12455"]]),Ce="application/x-eli-tabela-coluna",_a=t.defineComponent({name:"EliTabelaModalColunas",props:{aberto:{type:Boolean,required:!0},rotulosColunas:{type:Array,required:!0},configInicial:{type:Object,required:!0}},emits:{fechar(){return!0},salvar(e){return!0}},setup(e,{emit:a}){const i=t.ref([]),r=t.ref([]);function c(){const S=e.rotulosColunas,f=new Set(e.configInicial.invisiveis??[]),N=S.filter(U=>!f.has(U)),E=e.configInicial.visiveis??[],w=new Set(N),j=[];for(const U of E)w.has(U)&&j.push(U);for(const U of N)j.includes(U)||j.push(U);i.value=j,r.value=S.filter(U=>f.has(U))}t.watch(()=>[e.aberto,e.rotulosColunas,e.configInicial],()=>{e.aberto&&c()},{deep:!0,immediate:!0});function u(){a("fechar")}function o(){a("salvar",{visiveis:[...i.value],invisiveis:[...r.value]})}function l(S,f){var N,E;try{(N=S.dataTransfer)==null||N.setData(Ce,JSON.stringify(f)),(E=S.dataTransfer)==null||E.setData("text/plain",f.rotulo),S.dataTransfer.effectAllowed="move"}catch{}}function g(S){var f;try{const N=(f=S.dataTransfer)==null?void 0:f.getData(Ce);if(!N)return null;const E=JSON.parse(N);return!E||typeof E.rotulo!="string"||E.origem!=="visiveis"&&E.origem!=="invisiveis"?null:E}catch{return null}}function n(S){const f=S.origem==="visiveis"?i.value:r.value,N=f.indexOf(S.rotulo);N>=0&&f.splice(N,1)}function h(S,f,N){const E=S==="visiveis"?i.value:r.value,w=E.indexOf(f);w>=0&&E.splice(w,1),N===null||N<0||N>E.length?E.push(f):E.splice(N,0,f)}function $(S,f,N,E){l(S,{rotulo:f,origem:N,index:E})}function P(S,f,N){const E=g(S);if(E)if(n(E),h(f,E.rotulo,N),f==="visiveis"){const w=r.value.indexOf(E.rotulo);w>=0&&r.value.splice(w,1)}else{const w=i.value.indexOf(E.rotulo);w>=0&&i.value.splice(w,1)}}function C(S,f,N){const E=g(S);if(E)if(n(E),h(f,E.rotulo,null),f==="visiveis"){const w=r.value.indexOf(E.rotulo);w>=0&&r.value.splice(w,1)}else{const w=i.value.indexOf(E.rotulo);w>=0&&i.value.splice(w,1)}}return{visiveisLocal:i,invisiveisLocal:r,emitFechar:u,emitSalvar:o,onDragStart:$,onDropItem:P,onDropLista:C}}}),Ma={class:"eli-tabela-modal-colunas__modal",role:"dialog","aria-modal":"true","aria-label":"Configurar colunas"},Aa={class:"eli-tabela-modal-colunas__header"},Na={class:"eli-tabela-modal-colunas__conteudo"},Ta={class:"eli-tabela-modal-colunas__coluna"},va=["onDragstart","onDrop"],Pa={class:"eli-tabela-modal-colunas__item-texto"},Oa={class:"eli-tabela-modal-colunas__coluna"},Ia=["onDragstart","onDrop"],qa={class:"eli-tabela-modal-colunas__item-texto"},Fa={class:"eli-tabela-modal-colunas__footer"};function La(e,a,i,r,c,u){return e.aberto?(t.openBlock(),t.createElementBlock("div",{key:0,class:"eli-tabela-modal-colunas__overlay",role:"presentation",onClick:a[9]||(a[9]=t.withModifiers((...o)=>e.emitFechar&&e.emitFechar(...o),["self"]))},[t.createElementVNode("div",Ma,[t.createElementVNode("header",Aa,[a[10]||(a[10]=t.createElementVNode("h3",{class:"eli-tabela-modal-colunas__titulo"},"Colunas",-1)),t.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__fechar","aria-label":"Fechar",onClick:a[0]||(a[0]=(...o)=>e.emitFechar&&e.emitFechar(...o))}," × ")]),t.createElementVNode("div",Na,[t.createElementVNode("div",Ta,[a[12]||(a[12]=t.createElementVNode("div",{class:"eli-tabela-modal-colunas__coluna-titulo"},"Invisíveis",-1)),t.createElementVNode("div",{class:"eli-tabela-modal-colunas__lista",onDragover:a[2]||(a[2]=t.withModifiers(()=>{},["prevent"])),onDrop:a[3]||(a[3]=o=>e.onDropLista(o,"invisiveis",null))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.invisiveisLocal,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:`inv-${o}`,class:"eli-tabela-modal-colunas__item",draggable:"true",onDragstart:g=>e.onDragStart(g,o,"invisiveis",l),onDragover:a[1]||(a[1]=t.withModifiers(()=>{},["prevent"])),onDrop:g=>e.onDropItem(g,"invisiveis",l)},[a[11]||(a[11]=t.createElementVNode("span",{class:"eli-tabela-modal-colunas__item-handle","aria-hidden":"true"},"⋮⋮",-1)),t.createElementVNode("span",Pa,t.toDisplayString(o),1)],40,va))),128))],32)]),t.createElementVNode("div",Oa,[a[14]||(a[14]=t.createElementVNode("div",{class:"eli-tabela-modal-colunas__coluna-titulo"},"Visíveis",-1)),t.createElementVNode("div",{class:"eli-tabela-modal-colunas__lista",onDragover:a[5]||(a[5]=t.withModifiers(()=>{},["prevent"])),onDrop:a[6]||(a[6]=o=>e.onDropLista(o,"visiveis",null))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visiveisLocal,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:`vis-${o}`,class:"eli-tabela-modal-colunas__item",draggable:"true",onDragstart:g=>e.onDragStart(g,o,"visiveis",l),onDragover:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"])),onDrop:g=>e.onDropItem(g,"visiveis",l)},[a[13]||(a[13]=t.createElementVNode("span",{class:"eli-tabela-modal-colunas__item-handle","aria-hidden":"true"},"⋮⋮",-1)),t.createElementVNode("span",qa,t.toDisplayString(o),1)],40,Ia))),128))],32)])]),t.createElementVNode("footer",Fa,[t.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec",onClick:a[7]||(a[7]=(...o)=>e.emitFechar&&e.emitFechar(...o))}," Cancelar "),t.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim",onClick:a[8]||(a[8]=(...o)=>e.emitSalvar&&e.emitSalvar(...o))}," Salvar ")])])])):t.createCommentVNode("",!0)}const za=I(_a,[["render",La],["__scopeId","data-v-c7d1b6d2"]]),ja="eli:tabela";function Ee(e){return`${ja}:${e}:colunas`}function Se(e){if(!e||typeof e!="object")return{visiveis:[],invisiveis:[]};const a=e,i=Array.isArray(a.visiveis)?a.visiveis.filter(c=>typeof c=="string"):[],r=Array.isArray(a.invisiveis)?a.invisiveis.filter(c=>typeof c=="string"):[];return{visiveis:i,invisiveis:r}}function we(e){try{const a=window.localStorage.getItem(Ee(e));return a?Se(JSON.parse(a)):{visiveis:[],invisiveis:[]}}catch{return{visiveis:[],invisiveis:[]}}}function Ua(e,a){try{window.localStorage.setItem(Ee(e),JSON.stringify(Se(a)))}catch{}}const Ha=t.defineComponent({name:"EliTabela",inheritAttrs:!1,components:{EliTabelaCabecalho:Nt,EliTabelaEstados:Ft,EliTabelaDebug:Ut,EliTabelaHead:Kt,EliTabelaBody:pa,EliTabelaMenuAcoes:$a,EliTabelaPaginacao:Da,EliTabelaModalColunas:za},props:{tabela:{type:Object,required:!0}},setup(e){const i=t.ref(!1),r=t.ref(null),c=t.ref([]),u=t.ref(0),o=t.ref([]),l=t.ref(null),g=t.ref(null),n=t.ref({top:0,left:0}),h=t.ref(""),$=t.ref(1),P=t.ref(null),C=t.ref("asc"),S=t.computed(()=>e.tabela),f=t.computed(()=>!!e.tabela.mostrarCaixaDeBusca),N=t.computed(()=>e.tabela.acoesTabela??[]),E=t.computed(()=>N.value.length>0),w=t.ref(!1),j=t.ref(we(e.tabela.nome)),U=t.computed(()=>e.tabela.colunas.map(p=>p.rotulo)),Z=t.computed(()=>{const p=e.tabela.colunas,B=U.value,M=new Set(j.value.invisiveis??[]),A=B.filter(D=>!M.has(D)),z=new Set(A),F=j.value.visiveis??[],L=[];for(const D of F)z.has(D)&&L.push(D);for(const D of A)L.includes(D)||L.push(D);const q=new Map;for(const D of p)q.has(D.rotulo)||q.set(D.rotulo,D);return L.map(D=>q.get(D)).filter(Boolean)});function W(){w.value=!0}function re(){w.value=!1}function Q(p){j.value=p,Ua(e.tabela.nome,p),w.value=!1}const X=t.computed(()=>{const p=e.tabela.registros_por_consulta;return typeof p=="number"&&p>0?Math.floor(p):10}),O=t.computed(()=>{const p=X.value;if(!p||p<=0)return 1;const B=u.value;return B?Math.max(1,Math.ceil(B/p)):1}),T=t.computed(()=>(e.tabela.acoesLinha??[]).length>0);let J=0;function x(p){var q,D,H,R,Y,le;const B=p.getBoundingClientRect(),M=8,A=((H=(D=(q=g.value)==null?void 0:q.menuEl)==null?void 0:D.value)==null?void 0:H.offsetHeight)??0,z=((le=(Y=(R=g.value)==null?void 0:R.menuEl)==null?void 0:Y.value)==null?void 0:le.offsetWidth)??180;let F=B.bottom+M;const L=B.right-z;A&&F+A>window.innerHeight-M&&(F=B.top-M-A),n.value={top:Math.max(M,Math.round(F)),left:Math.max(M,Math.round(L))}}function y(p){var M,A;if(l.value===null)return;const B=p.target;(A=(M=g.value)==null?void 0:M.menuEl)!=null&&A.value&&g.value.menuEl.value.contains(B)||(l.value=null)}function m(p){if(p){if(P.value===p){C.value=C.value==="asc"?"desc":"asc",_();return}P.value=p,C.value="asc",$.value!==1?$.value=1:_()}}function s(p){h.value!==p&&(h.value=p,$.value!==1?$.value=1:_())}function b(p){const B=Math.min(Math.max(1,p),O.value);B!==$.value&&($.value=B)}function d(p){const B=e.tabela.acoesLinha??[],M=o.value[p]??[];return B.map((A,z)=>{const F=A.exibir===void 0?!0:typeof A.exibir=="boolean"?A.exibir:!1;return{acao:A,indice:z,visivel:M[z]??F}}).filter(A=>A.visivel)}function k(p){return d(p).length>0}function V(p,B){if(!k(p))return;if(l.value===p){l.value=null;return}l.value=p;const M=(B==null?void 0:B.currentTarget)??null;M&&(x(M),requestAnimationFrame(()=>x(M)))}async function _(){var z,F;const p=++J;i.value=!0,r.value=null,o.value=[],l.value=null;const B=Math.max(1,X.value),A={offSet:($.value-1)*B,limit:B};h.value&&(A.texto_busca=h.value),P.value&&(A.coluna_ordem=P.value,A.direcao_ordem=C.value);try{const L=e.tabela,q=await L.consulta(A);if(p!==J)return;if(q.cod!==ye.sucesso){c.value=[],u.value=0,r.value=q.mensagem;return}const D=((z=q.valor)==null?void 0:z.valores)??[],H=((F=q.valor)==null?void 0:F.quantidade)??D.length;c.value=D,u.value=H;const R=Math.max(1,Math.ceil((H||0)/B));if($.value>R){$.value=R;return}const Y=L.acoesLinha??[];if(!Y.length){o.value=[];return}const le=D.map(()=>Y.map(ee=>ee.exibir===void 0?!0:typeof ee.exibir=="boolean"?ee.exibir:!1));o.value=le;const Ga=await Promise.all(D.map(async ee=>Promise.all(Y.map(async ie=>{if(ie.exibir===void 0)return!0;if(typeof ie.exibir=="boolean")return ie.exibir;try{const Za=ie.exibir(ee);return!!await Promise.resolve(Za)}catch{return!1}}))));p===J&&(o.value=Ga)}catch(L){if(p!==J)return;c.value=[],u.value=0,r.value=L instanceof Error?L.message:"Erro ao carregar dados."}finally{p===J&&(i.value=!1)}}return t.onMounted(()=>{document.addEventListener("click",y),_()}),t.onBeforeUnmount(()=>{document.removeEventListener("click",y)}),t.watch(()=>e.tabela.mostrarCaixaDeBusca,p=>{!p&&h.value&&(h.value="",$.value!==1?$.value=1:_())}),t.watch($,(p,B)=>{p!==B&&_()}),t.watch(()=>e.tabela,()=>{l.value=null,P.value=null,C.value="asc",h.value="",w.value=!1,j.value=we(e.tabela.nome),$.value!==1?$.value=1:_()}),t.watch(()=>e.tabela.registros_por_consulta,()=>{$.value!==1?$.value=1:_()}),t.watch(c,()=>{l.value=null}),{isDev:!1,tabela:S,carregando:i,erro:r,linhas:c,quantidade:u,menuAberto:l,valorBusca:h,paginaAtual:$,colunaOrdenacao:P,direcaoOrdenacao:C,totalPaginas:O,exibirBusca:f,acoesCabecalho:N,temAcoesCabecalho:E,temAcoes:T,colunasEfetivas:Z,rotulosColunas:U,modalColunasAberto:w,configColunas:j,abrirModalColunas:W,fecharModalColunas:re,salvarModalColunas:Q,alternarOrdenacao:m,atualizarBusca:s,irParaPagina:b,acoesDisponiveisPorLinha:d,possuiAcoes:k,toggleMenu:V,menuPopup:g,menuPopupPos:n}}}),Ra={class:"eli-tabela"},Ya={class:"eli-tabela__table"};function Ja(e,a,i,r,c,u){const o=t.resolveComponent("EliTabelaDebug"),l=t.resolveComponent("EliTabelaEstados"),g=t.resolveComponent("EliTabelaCabecalho"),n=t.resolveComponent("EliTabelaModalColunas"),h=t.resolveComponent("EliTabelaHead"),$=t.resolveComponent("EliTabelaBody"),P=t.resolveComponent("EliTabelaMenuAcoes"),C=t.resolveComponent("EliTabelaPaginacao");return t.openBlock(),t.createElementBlock("div",Ra,[t.createVNode(o,{isDev:e.isDev,menuAberto:e.menuAberto,menuPopupPos:e.menuPopupPos},null,8,["isDev","menuAberto","menuPopupPos"]),e.carregando||e.erro||!e.linhas.length?(t.openBlock(),t.createBlock(l,{key:0,carregando:e.carregando,erro:e.erro,mensagemVazio:e.tabela.mensagemVazio},null,8,["carregando","erro","mensagemVazio"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.exibirBusca||e.temAcoesCabecalho?(t.openBlock(),t.createBlock(g,{key:0,exibirBusca:e.exibirBusca,valorBusca:e.valorBusca,acoesCabecalho:e.acoesCabecalho,onBuscar:e.atualizarBusca,onColunas:e.abrirModalColunas},null,8,["exibirBusca","valorBusca","acoesCabecalho","onBuscar","onColunas"])):t.createCommentVNode("",!0),t.createVNode(n,{aberto:e.modalColunasAberto,rotulosColunas:e.rotulosColunas,configInicial:e.configColunas,onFechar:e.fecharModalColunas,onSalvar:e.salvarModalColunas},null,8,["aberto","rotulosColunas","configInicial","onFechar","onSalvar"]),t.createElementVNode("table",Ya,[t.createVNode(h,{colunas:e.colunasEfetivas,temAcoes:e.temAcoes,colunaOrdenacao:e.colunaOrdenacao,direcaoOrdenacao:e.direcaoOrdenacao,onAlternarOrdenacao:e.alternarOrdenacao},null,8,["colunas","temAcoes","colunaOrdenacao","direcaoOrdenacao","onAlternarOrdenacao"]),t.createVNode($,{colunas:e.colunasEfetivas,linhas:e.linhas,temAcoes:e.temAcoes,menuAberto:e.menuAberto,possuiAcoes:e.possuiAcoes,toggleMenu:e.toggleMenu},null,8,["colunas","linhas","temAcoes","menuAberto","possuiAcoes","toggleMenu"])]),t.createVNode(P,{ref:"menuPopup",menuAberto:e.menuAberto,posicao:e.menuPopupPos,acoes:e.menuAberto===null?[]:e.acoesDisponiveisPorLinha(e.menuAberto),linha:e.menuAberto===null?null:e.linhas[e.menuAberto],onExecutar:a[0]||(a[0]=({acao:S,linha:f})=>{e.menuAberto=null,S.acao(f)})},null,8,["menuAberto","posicao","acoes","linha"]),e.totalPaginas>1&&e.quantidade>0?(t.openBlock(),t.createBlock(C,{key:1,pagina:e.paginaAtual,totalPaginas:e.totalPaginas,maximoBotoes:e.tabela.maximo_botoes_paginacao,onAlterar:e.irParaPagina},null,8,["pagina","totalPaginas","maximoBotoes","onAlterar"])):t.createCommentVNode("",!0)],64))])}const De=I(Ha,[["render",Ja]]),Wa={install(e){e.component("EliOlaMundo",fe),e.component("EliBotao",se),e.component("EliBadge",te),e.component("EliInput",de),e.component("EliCartao",be),e.component("EliDataHora",he),e.component("EliTabela",De)}};v.EliBadge=te,v.EliBotao=se,v.EliCartao=be,v.EliDataHora=he,v.EliInput=de,v.EliOlaMundo=fe,v.EliTabela=De,v.default=Wa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|