vue-componentes/dist/eli-vue.umd.js
2026-01-27 15:51:54 -03:00

66 lines
39 KiB
JavaScript

(function(E,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):(E=typeof globalThis<"u"?globalThis:E||self,t(E.eli_vue={},E.Vue,E.VBtn,E.VBadge,E.VCheckbox,E.VIcon,E.VRadio,E.VRadioGroup,E.VSelect,E.VTextField,E.VTextarea,E.VCard,E.VGrid))})(this,(function(E,t,ve,we,Ce,Se,Me,Ee,De,ce,_e,R,Ne){"use strict";const Pe=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}}}),H=(e,a)=>{const d=e.__vccOpts||e;for(const[m,b]of a)d[m]=b;return d};function Te(e,a,d,m,b,$){return t.openBlock(),t.createBlock(ve.VBtn,t.mergeProps({color:e.color,variant:e.variant,size:e.size,disabled:e.disabled,loading:e.loading},e.$attrs,{class:"text-none pt-1"}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["color","variant","size","disabled","loading"])}const le=H(Pe,[["render",Te]]),fe={suave:"4px",pill:"10px"},Ae=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 fe?fe[e.radius]:e.radius),d=t.computed(()=>e.dot||e.badge!==void 0?e.visible:!1),m=t.computed(()=>({"--eli-badge-radius":a.value}));return{showBadge:d,badgeStyle:m}}});function Ie(e,a,d,m,b,$){return e.showBadge?(t.openBlock(),t.createBlock(we.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}),{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 ee=H(Ae,[["render",Ie],["__scopeId","data-v-de2fbf2f"]]);function Oe(e){return e.replace(/\D+/g,"")}function Ue(e){const a=Oe(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 Le(e){return e.replace(/\D+/g,"")}function je(e){const a=Le(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 ie(e){return e.replace(/\D+/g,"")}function me(e){const a=e.replace(/[^\d,]/g,""),d=a.split(",");return d.length>2?d[0]+","+d.slice(1).join(""):a}function qe(e){return me(e.replace(/%/g,""))}function Fe(e){const a=ie(e);return a?(parseInt(a,10)/100).toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g,"."):""}function He(e){const a=ie(e).slice(0,8);return a.length<=5?a:a.replace(/^(\d{5})(\d{1,3})$/,"$1-$2")}const ze=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:d}){const m=t.ref(!1),b=t.ref(!1),$=t.computed({get:()=>e.modelValue,set:w=>{a("update:modelValue",w),a("change",w)}}),s=t.computed(()=>["text","password","email","search","url","telefone","cpfCnpj","numericoInteiro","numericoDecimal","numericoMoeda","porcentagem","cep"].includes(e.type)),f=t.computed(()=>e.type==="password"?b.value?"text":"password":"text"),k=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":m.value?e.color:void 0);function M(w){const P=w.target;let B=P.value;switch(e.type){case"numericoInteiro":B=ie(B);break;case"numericoDecimal":B=me(B);break;case"numericoMoeda":B=Fe(B);break;case"porcentagem":B=qe(B);break;case"telefone":B=je(B);break;case"cpfCnpj":B=Ue(B);break;case"cep":B=He(B);break}P.value=B,a("update:modelValue",B),a("change",B)}function S(){b.value=!b.value}const U=t.computed(()=>(e.options||[]).map(w=>{if(w&&typeof w=="object"&&"value"in w){const B=w.value;return{label:w.label??String(B),value:B,disabled:w.disabled}}const P=w;return{label:String(P),value:P}}));return{attrs:d,value:$,isTextLike:s,inputHtmlType:f,inputMode:k,internalColor:n,showPassword:b,togglePassword:S,onInput:M,onFocus:()=>a("focus"),onBlur:()=>a("blur"),computedItems:U}}}),Ye={class:"eli-input"},Re={key:4,class:"checkbox-group"};function We(e,a,d,m,b,$){return t.openBlock(),t.createElementBlock("div",Ye,[e.isTextLike?(t.openBlock(),t.createBlock(ce.VTextField,t.mergeProps({key:0,modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=s=>e.value=s),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(Se.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(_e.VTextarea,t.mergeProps({key:1,modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=s=>e.value=s),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(De.VSelect,t.mergeProps({key:2,modelValue:e.value,"onUpdate:modelValue":a[2]||(a[2]=s=>e.value=s),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(Ee.VRadioGroup,{key:3,modelValue:e.value,"onUpdate:modelValue":a[3]||(a[3]=s=>e.value=s),row:e.row},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedItems,s=>(t.openBlock(),t.createBlock(Me.VRadio,{key:String(s.value),label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","row"])):e.type==="checkbox"?(t.openBlock(),t.createElementBlock("div",Re,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedItems,s=>(t.openBlock(),t.createBlock(Ce.VCheckbox,{key:String(s.value),modelValue:e.value,"onUpdate:modelValue":a[4]||(a[4]=f=>e.value=f),label:s.label,value:s.value,density:e.density},null,8,["modelValue","label","value","density"]))),128))])):t.createCommentVNode("",!0)])}const se=H(ze,[["render",We],["__scopeId","data-v-756cb549"]]),Ge=t.defineComponent({name:"EliOlaMundo",components:{EliBotao:le,EliBadge:ee,EliInput:se},setup(){const e=t.ref(""),a=t.ref([]),d=t.ref(""),m=t.ref(""),b=t.ref(""),$=t.ref(""),s=t.ref(""),f=t.ref(""),k=t.ref(""),n=t.ref(""),M=t.ref(""),S=t.ref(null),U=t.ref([]);return{nome:e,email:f,documento:M,estado:a,telefone:m,mensagem:k,senha:n,cor:S,habilidades:U,idade:b,altura:$,cep:d,valor:s}}}),Je={class:"grid-example"};function Ze(e,a,d,m,b,$){const s=t.resolveComponent("EliBadge"),f=t.resolveComponent("EliInput"),k=t.resolveComponent("EliBotao");return t.openBlock(),t.createBlock(Ne.VContainer,null,{default:t.withCtx(()=>[t.createVNode(R.VCard,{class:"mx-auto",max_width:"400"},{default:t.withCtx(()=>[t.createVNode(R.VCardTitle,null,{default:t.withCtx(()=>[t.createVNode(s,{badge:"Novo","offset-x":"-15",location:"right center"},{default:t.withCtx(()=>[...a[14]||(a[14]=[t.createTextVNode(" Olá Mundo! ",-1)])]),_:1})]),_:1}),t.createVNode(R.VCardText,null,{default:t.withCtx(()=>[a[15]||(a[15]=t.createTextVNode(" Este é um componente de exemplo integrado com Vuetify. ",-1)),t.createElementVNode("div",Je,[t.createVNode(f,{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(f,{modelValue:e.idade,"onUpdate:modelValue":a[1]||(a[1]=n=>e.idade=n),type:"numericoInteiro",label:"Idade",density:"default"},null,8,["modelValue"]),t.createVNode(f,{modelValue:e.altura,"onUpdate:modelValue":a[2]||(a[2]=n=>e.altura=n),type:"numericoDecimal",label:"Altura",density:"comfortable"},null,8,["modelValue"]),t.createVNode(f,{modelValue:e.valor,"onUpdate:modelValue":a[3]||(a[3]=n=>e.valor=n),type:"numericoMoeda",label:"Valor"},null,8,["modelValue"]),t.createVNode(f,{modelValue:e.telefone,"onUpdate:modelValue":a[4]||(a[4]=n=>e.telefone=n),type:"telefone",label:"Telefone"},null,8,["modelValue"]),t.createVNode(f,{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(f,{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(f,{modelValue:e.documento,"onUpdate:modelValue":a[7]||(a[7]=n=>e.documento=n),type:"cpfCnpj",label:"CPF / CNPJ"},null,8,["modelValue"]),t.createVNode(f,{modelValue:e.email,"onUpdate:modelValue":a[8]||(a[8]=n=>e.email=n),label:"Email",placeholder:"email@exemplo.com"},null,8,["modelValue"]),t.createVNode(f,{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(f,{type:"textarea",modelValue:e.mensagem,"onUpdate:modelValue":a[10]||(a[10]=n=>e.mensagem=n),label:"Mensagem",rows:5},null,8,["modelValue"]),t.createVNode(f,{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(f,{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(f,{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(R.VCardActions,null,{default:t.withCtx(()=>[t.createVNode(k,{color:"primary",variant:"elevated",block:""},{default:t.withCtx(()=>[...a[16]||(a[16]=[t.createTextVNode(" Botão Vuetify ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})}const pe=H(Ge,[["render",Ze]]),Xe=t.defineComponent({name:"EliCartao",components:{EliBadge:ee},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 d=t.computed(()=>e.status),m=t.computed(()=>{switch(e.status){case"novo":return"primary";case"rascunho":return"secondary";case"vendido":return"success";case"cancelado":return"error"}}),b=t.computed(()=>`eli-cartao--${e.status}`);function $(){a("clicar",e.status)}return{rotuloStatus:d,corStatus:m,classeStatus:b,onClick:$}}}),Ke={class:"eli-cartao__titulo-texto"},Qe={class:"eli-cartao__status"};function xe(e,a,d,m,b,$){const s=t.resolveComponent("EliBadge");return t.openBlock(),t.createBlock(R.VCard,t.mergeProps({class:["eli-cartao",e.classeStatus],variant:e.variant},e.$attrs),{default:t.withCtx(()=>[t.createVNode(R.VCardTitle,{class:"eli-cartao__titulo"},{default:t.withCtx(()=>[t.createElementVNode("div",Ke,[t.renderSlot(e.$slots,"titulo",{},()=>[t.createTextVNode(t.toDisplayString(e.titulo),1)],!0)]),t.createElementVNode("div",Qe,[t.createVNode(s,{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(R.VCardText,{class:"eli-cartao__conteudo"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3}),e.$slots.acoes?(t.openBlock(),t.createBlock(R.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 he=H(Xe,[["render",xe],["__scopeId","data-v-6c492bd9"]]);function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var te={exports:{}},tt=te.exports,be;function at(){return be||(be=1,(function(e,a){(function(d,m){e.exports=m()})(tt,(function(){var d=1e3,m=6e4,b=36e5,$="millisecond",s="second",f="minute",k="hour",n="day",M="week",S="month",U="quarter",w="year",P="date",B="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|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,T={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(h){var i=["th","st","nd","rd"],o=h%100;return"["+h+(i[(o-20)%10]||i[o]||i[0])+"]"}},K=function(h,i,o){var r=String(h);return!r||r.length>=i?h:""+Array(i+1-r.length).join(o)+h},de={s:K,z:function(h){var i=-h.utcOffset(),o=Math.abs(i),r=Math.floor(o/60),l=o%60;return(i<=0?"+":"-")+K(r,2,"0")+":"+K(l,2,"0")},m:function h(i,o){if(i.date()<o.date())return-h(o,i);var r=12*(o.year()-i.year())+(o.month()-i.month()),l=i.clone().add(r,S),u=o-l<0,c=i.clone().add(r+(u?-1:1),S);return+(-(r+(o-l)/(u?l-c:c-l))||0)},a:function(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return{M:S,y:w,w:M,d:n,D:P,h:k,m:f,s,ms:$,Q:U}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},W="en",z={};z[W]=T;var Q="$isDayjsObject",x=function(h){return h instanceof Z||!(!h||!h[Q])},G=function h(i,o,r){var l;if(!i)return W;if(typeof i=="string"){var u=i.toLowerCase();z[u]&&(l=u),o&&(z[u]=o,l=u);var c=i.split("-");if(!l&&c.length>1)return h(c[0])}else{var y=i.name;z[y]=i,l=y}return!r&&l&&(W=l),l||!r&&W},N=function(h,i){if(x(h))return h.clone();var o=typeof i=="object"?i:{};return o.date=h,o.args=arguments,new Z(o)},v=de;v.l=G,v.i=x,v.w=function(h,i){return N(h,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var Z=(function(){function h(o){this.$L=G(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[Q]=!0}var i=h.prototype;return i.parse=function(o){this.$d=(function(r){var l=r.date,u=r.utc;if(l===null)return new Date(NaN);if(v.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var c=l.match(F);if(c){var y=c[2]-1||0,g=(c[7]||"0").substring(0,3);return u?new Date(Date.UTC(c[1],y,c[3]||1,c[4]||0,c[5]||0,c[6]||0,g)):new Date(c[1],y,c[3]||1,c[4]||0,c[5]||0,c[6]||0,g)}}return new Date(l)})(o),this.init()},i.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},i.$utils=function(){return v},i.isValid=function(){return this.$d.toString()!==B},i.isSame=function(o,r){var l=N(o);return this.startOf(r)<=l&&l<=this.endOf(r)},i.isAfter=function(o,r){return N(o)<this.startOf(r)},i.isBefore=function(o,r){return this.endOf(r)<N(o)},i.$g=function(o,r,l){return v.u(o)?this[r]:this.set(l,o)},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this.$d.getTime()},i.startOf=function(o,r){var l=this,u=!!v.u(r)||r,c=v.p(o),y=function(q,_){var I=v.w(l.$u?Date.UTC(l.$y,_,q):new Date(l.$y,_,q),l);return u?I:I.endOf(n)},g=function(q,_){return v.w(l.toDate()[q].apply(l.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(_)),l)},p=this.$W,V=this.$M,C=this.$D,A="set"+(this.$u?"UTC":"");switch(c){case w:return u?y(1,0):y(31,11);case S:return u?y(1,V):y(0,V+1);case M:var D=this.$locale().weekStart||0,j=(p<D?p+7:p)-D;return y(u?C-j:C+(6-j),V);case n:case P:return g(A+"Hours",0);case k:return g(A+"Minutes",1);case f:return g(A+"Seconds",2);case s:return g(A+"Milliseconds",3);default:return this.clone()}},i.endOf=function(o){return this.startOf(o,!1)},i.$set=function(o,r){var l,u=v.p(o),c="set"+(this.$u?"UTC":""),y=(l={},l[n]=c+"Date",l[P]=c+"Date",l[S]=c+"Month",l[w]=c+"FullYear",l[k]=c+"Hours",l[f]=c+"Minutes",l[s]=c+"Seconds",l[$]=c+"Milliseconds",l)[u],g=u===n?this.$D+(r-this.$W):r;if(u===S||u===w){var p=this.clone().set(P,1);p.$d[y](g),p.init(),this.$d=p.set(P,Math.min(this.$D,p.daysInMonth())).$d}else y&&this.$d[y](g);return this.init(),this},i.set=function(o,r){return this.clone().$set(o,r)},i.get=function(o){return this[v.p(o)]()},i.add=function(o,r){var l,u=this;o=Number(o);var c=v.p(r),y=function(V){var C=N(u);return v.w(C.date(C.date()+Math.round(V*o)),u)};if(c===S)return this.set(S,this.$M+o);if(c===w)return this.set(w,this.$y+o);if(c===n)return y(1);if(c===M)return y(7);var g=(l={},l[f]=m,l[k]=b,l[s]=d,l)[c]||1,p=this.$d.getTime()+o*g;return v.w(p,this)},i.subtract=function(o,r){return this.add(-1*o,r)},i.format=function(o){var r=this,l=this.$locale();if(!this.isValid())return l.invalidDate||B;var u=o||"YYYY-MM-DDTHH:mm:ssZ",c=v.z(this),y=this.$H,g=this.$m,p=this.$M,V=l.weekdays,C=l.months,A=l.meridiem,D=function(_,I,Y,J){return _&&(_[I]||_(r,u))||Y[I].slice(0,J)},j=function(_){return v.s(y%12||12,_,"0")},q=A||function(_,I,Y){var J=_<12?"AM":"PM";return Y?J.toLowerCase():J};return u.replace(L,(function(_,I){return I||(function(Y){switch(Y){case"YY":return String(r.$y).slice(-2);case"YYYY":return v.s(r.$y,4,"0");case"M":return p+1;case"MM":return v.s(p+1,2,"0");case"MMM":return D(l.monthsShort,p,C,3);case"MMMM":return D(C,p);case"D":return r.$D;case"DD":return v.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return D(l.weekdaysMin,r.$W,V,2);case"ddd":return D(l.weekdaysShort,r.$W,V,3);case"dddd":return V[r.$W];case"H":return String(y);case"HH":return v.s(y,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return q(y,g,!0);case"A":return q(y,g,!1);case"m":return String(g);case"mm":return v.s(g,2,"0");case"s":return String(r.$s);case"ss":return v.s(r.$s,2,"0");case"SSS":return v.s(r.$ms,3,"0");case"Z":return c}return null})(_)||c.replace(":","")}))},i.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},i.diff=function(o,r,l){var u,c=this,y=v.p(r),g=N(o),p=(g.utcOffset()-this.utcOffset())*m,V=this-g,C=function(){return v.m(c,g)};switch(y){case w:u=C()/12;break;case S:u=C();break;case U:u=C()/3;break;case M:u=(V-p)/6048e5;break;case n:u=(V-p)/864e5;break;case k:u=V/b;break;case f:u=V/m;break;case s:u=V/d;break;default:u=V}return l?u:v.a(u)},i.daysInMonth=function(){return this.endOf(S).$D},i.$locale=function(){return z[this.$L]},i.locale=function(o,r){if(!o)return this.$L;var l=this.clone(),u=G(o,r,!0);return u&&(l.$L=u),l},i.clone=function(){return v.w(this.$d,this)},i.toDate=function(){return new Date(this.valueOf())},i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toISOString=function(){return this.$d.toISOString()},i.toString=function(){return this.$d.toUTCString()},h})(),ne=Z.prototype;return N.prototype=ne,[["$ms",$],["$s",s],["$m",f],["$H",k],["$W",n],["$M",S],["$y",w],["$D",P]].forEach((function(h){ne[h[1]]=function(i){return this.$g(i,h[0],h[1])}})),N.extend=function(h,i){return h.$i||(h(i,Z,N),h.$i=!0),N},N.locale=G,N.isDayjs=x,N.unix=function(h){return N(1e3*h)},N.en=z[W],N.Ls=z,N.p={},N}))})(te)),te.exports}var ot=at();const ae=et(ot),nt=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:d}){const m=t.computed(()=>e.modo==="data"?"date":"datetime-local");function b(n){return e.modo==="data"?ae(n).format("YYYY-MM-DD"):ae(n).format("YYYY-MM-DDTHH:mm")}function $(n){return e.modo==="data"?ae(`${n}T00:00`).format():ae(n).format()}const s=t.computed({get:()=>e.modelValue?b(e.modelValue):"",set:n=>{const M=n&&n.length>0?n:null;if(!M){a("update:modelValue",null),a("alterar",null);return}const S=$(M);a("update:modelValue",S),a("alterar",S)}}),f=t.computed(()=>{if(e.min)return b(e.min)}),k=t.computed(()=>{if(e.max)return b(e.max)});return{attrs:d,valor:s,emit:a,minLocal:f,maxLocal:k,tipoInput:m}}}),rt={class:"eli-data-hora"};function lt(e,a,d,m,b,$){return t.openBlock(),t.createElementBlock("div",rt,[t.createVNode(ce.VTextField,t.mergeProps({modelValue:e.valor,"onUpdate:modelValue":a[0]||(a[0]=s=>e.valor=s),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]=s=>e.emit("foco")),onBlur:a[2]||(a[2]=s=>e.emit("desfoco"))}),null,16,["modelValue","type","label","placeholder","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","min","max"])])}const ge=H(nt,[["render",lt],["__scopeId","data-v-71afabb6"]]);/**
* @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 it=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 ye=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 st=(...e)=>e.filter((a,d,m)=>!!a&&a.trim()!==""&&m.indexOf(a)===d).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 $e=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 dt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,d,m)=>m?m.toUpperCase():d.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 ut=e=>{const a=dt(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 X={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 ct=({name:e,iconNode:a,absoluteStrokeWidth:d,"absolute-stroke-width":m,strokeWidth:b,"stroke-width":$,size:s=X.width,color:f=X.stroke,...k},{slots:n})=>t.h("svg",{...X,...k,width:s,height:s,stroke:f,"stroke-width":ye(d)||ye(m)||d===!0||m===!0?Number(b||$||X["stroke-width"])*24/Number(s):b||$||X["stroke-width"],class:st("lucide",k.class,...e?[`lucide-${$e(ut(e))}-icon`,`lucide-${$e(e)}`]:["lucide-icon"]),...!n.default&&!it(k)&&{"aria-hidden":"true"}},[...a.map(M=>t.h(...M)),...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 oe=(e,a)=>(d,{slots:m,attrs:b})=>t.h(ct,{...b,...d,iconNode:a,name:e},m);/**
* @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=oe("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=oe("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 mt=oe("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 pt=oe("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var ke=(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))(ke||{});const ht=t.defineComponent({name:"EliTabelaCaixaDeBusca",components:{Search:pt},props:{modelo:{type:String,required:!1,default:""}},emits:{buscar(e){return typeof e=="string"}},setup(e,{emit:a}){const d=t.ref(e.modelo??"");t.watch(()=>e.modelo,b=>{b!==void 0&&b!==d.value&&(d.value=b)});function m(){a("buscar",d.value.trim())}return{texto:d,emitirBusca:m}}}),bt={class:"eli-tabela__busca"},gt={class:"eli-tabela__busca-input-wrapper"};function yt(e,a,d,m,b,$){const s=t.resolveComponent("Search");return t.openBlock(),t.createElementBlock("div",bt,[t.createElementVNode("div",gt,[t.withDirectives(t.createElementVNode("input",{id:"eli-tabela-busca","onUpdate:modelValue":a[0]||(a[0]=f=>e.texto=f),type:"search",class:"eli-tabela__busca-input",placeholder:"Digite termos para filtrar",onKeyup:a[1]||(a[1]=t.withKeys((...f)=>e.emitirBusca&&e.emitirBusca(...f),["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]=(...f)=>e.emitirBusca&&e.emitirBusca(...f))},[t.createVNode(s,{class:"eli-tabela__busca-botao-icone",size:16,"stroke-width":2,"aria-hidden":"true"})])])])}const $t=H(ht,[["render",yt],["__scopeId","data-v-0fd1ad15"]]),Vt=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 d=t.computed(()=>{const n=e.maximoBotoes;return typeof n=="number"&&n>=5?Math.floor(n):7}),m=t.computed(()=>{const n=e.totalPaginas,M=e.pagina,S=d.value,U=[],w=T=>{U.push({label:String(T),pagina:T,ativo:T===M})},P=()=>{U.push({label:"…",ehEllipsis:!0})};if(n<=S){for(let T=1;T<=n;T+=1)w(T);return U}const B=Math.max(3,S-2);let F=Math.max(2,M-Math.floor(B/2)),L=F+B-1;L>=n&&(L=n-1,F=L-B+1),w(1),F>2&&P();for(let T=F;T<=L;T+=1)w(T);return L<n-1&&P(),w(n),U});function b(n){if(!n)return;const M=Math.min(Math.max(1,n),e.totalPaginas);M!==e.pagina&&a("alterar",M)}const $=t.computed(()=>e.pagina<=1),s=t.computed(()=>e.pagina>=e.totalPaginas),f=t.computed(()=>e.pagina),k=t.computed(()=>e.totalPaginas);return{botoes:m,irParaPagina:b,anteriorDesabilitado:$,proximaDesabilitada:s,paginaAtual:f,totalPaginasExibidas:k}}}),kt={key:0,class:"eli-tabela__paginacao",role:"navigation","aria-label":"Paginação de resultados"},Bt=["disabled"],vt={key:0,class:"eli-tabela__pagina-ellipsis","aria-hidden":"true"},wt=["disabled","aria-current","aria-label","onClick"],Ct=["disabled"];function St(e,a,d,m,b,$){return e.totalPaginasExibidas>1?(t.openBlock(),t.createElementBlock("nav",kt,[t.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.anteriorDesabilitado,"aria-label":"Página anterior",onClick:a[0]||(a[0]=s=>e.irParaPagina(e.paginaAtual-1))}," << ",8,Bt),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.botoes,(s,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${s.label}-${f}`},[s.ehEllipsis?(t.openBlock(),t.createElementBlock("span",vt,t.toDisplayString(s.label),1)):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:t.normalizeClass(["eli-tabela__pagina-botao",s.ativo?"eli-tabela__pagina-botao--ativo":void 0]),disabled:s.ativo,"aria-current":s.ativo?"page":void 0,"aria-label":`Ir para página ${s.label}`,onClick:k=>e.irParaPagina(s.pagina)},t.toDisplayString(s.label),11,wt))],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]=s=>e.irParaPagina(e.paginaAtual+1))}," >> ",8,Ct)])):t.createCommentVNode("",!0)}const Mt=H(Vt,[["render",St],["__scopeId","data-v-59d12455"]]),Et=t.defineComponent({name:"EliTabela",inheritAttrs:!1,props:{tabela:{type:Object,required:!0}},setup(e){const a=t.ref(!1),d=t.ref(null),m=t.ref([]),b=t.ref(0),$=t.ref([]),s=t.ref(null),f=new Map,k=t.ref(""),n=t.ref(1),M=t.ref(null),S=t.ref("asc"),U=t.computed(()=>!!e.tabela.mostrarCaixaDeBusca),w=t.computed(()=>e.tabela.acoesTabela??[]),P=t.computed(()=>w.value.length>0),B=t.computed(()=>{const o=e.tabela.registros_por_consulta;return typeof o=="number"&&o>0?Math.floor(o):10}),F=t.computed(()=>{const o=B.value;if(!o||o<=0)return 1;const r=b.value;return r?Math.max(1,Math.ceil(r/o)):1});let L=0;function T(o,r){r?f.set(o,r):f.delete(o)}function K(o){return r=>{r instanceof HTMLElement?T(o,r):T(o,null)}}function de(o){o&&(M.value===o?(S.value=S.value==="asc"?"desc":"asc",i()):(M.value=o,S.value="asc",n.value!==1?n.value=1:i()))}function W(o){k.value!==o&&(k.value=o,n.value!==1?n.value=1:i())}function z(o){const r=Math.min(Math.max(1,o),F.value);r!==n.value&&(n.value=r)}function Q(o){if(s.value===null)return;const r=f.get(s.value);r&&r.contains(o.target)||(s.value=null)}function x(o){return o==null||o===!1?"":o}function G(o){return o==="direita"?"eli-tabela__celula--direita":o==="centro"?"eli-tabela__celula--centro":"eli-tabela__celula--esquerda"}function N(o){if(o!=null)return typeof o=="number"?`${o}px`:String(o)}function v(o,r){const l=x(o);if(!!!r.truncar||typeof l!="string"&&typeof l!="number")return l;const c=String(l);return t.h("span",{class:"eli-tabela__celula-conteudo",style:r.largura_maxima?{maxWidth:N(r.largura_maxima)}:void 0,title:c},c)}function Z(o){return t.h("div",{class:"eli-tabela eli-tabela--erro",role:"alert"},[t.h("div",{class:"eli-tabela__erro-titulo"},"Erro"),t.h("div",{class:"eli-tabela__erro-mensagem"},o)])}function ne(o){return t.h("div",{class:"eli-tabela eli-tabela--vazio"},o??"Nenhum registro encontrado.")}function h(){return t.h("div",{class:"eli-tabela eli-tabela--carregando","aria-busy":"true"},"Carregando...")}async function i(){var c,y;const o=++L;a.value=!0,d.value=null,$.value=[],s.value=null,f.clear();const r=Math.max(1,B.value),u={offSet:(n.value-1)*r,limit:r};k.value&&(u.texto_busca=k.value),M.value&&(u.coluna_ordem=M.value,u.direcao_ordem=S.value);try{const g=e.tabela,p=await g.consulta(u);if(o!==L)return;if(p.cod!==ke.sucesso){m.value=[],b.value=0,d.value=p.mensagem;return}const V=((c=p.valor)==null?void 0:c.valores)??[],C=((y=p.valor)==null?void 0:y.quantidade)??V.length;m.value=V,b.value=C;const A=Math.max(1,Math.ceil((C||0)/r));if(n.value>A){n.value=A;return}const D=g.acoesLinha??[];if(!D.length){$.value=[];return}const j=V.map(()=>D.map(_=>_.exibir===void 0?!0:typeof _.exibir=="boolean"?_.exibir:!1));$.value=j;const q=await Promise.all(V.map(async _=>Promise.all(D.map(async I=>{if(I.exibir===void 0)return!0;if(typeof I.exibir=="boolean")return I.exibir;try{const Y=I.exibir(_);return!!await Promise.resolve(Y)}catch{return!1}}))));o===L&&($.value=q)}catch(g){if(o!==L)return;m.value=[],b.value=0,d.value=g instanceof Error?g.message:"Erro ao carregar dados."}finally{o===L&&(a.value=!1)}}return t.onMounted(()=>{document.addEventListener("click",Q),i()}),t.watch(()=>e.tabela.mostrarCaixaDeBusca,o=>{!o&&k.value&&(k.value="",n.value!==1?n.value=1:i())}),t.watch(n,(o,r)=>{o!==r&&i()}),t.onBeforeUnmount(()=>{document.removeEventListener("click",Q),f.clear()}),t.watch(()=>e.tabela,()=>{s.value=null,f.clear(),M.value=null,S.value="asc",k.value="",n.value!==1?n.value=1:i()}),t.watch(()=>e.tabela.registros_por_consulta,()=>{n.value!==1?n.value=1:i()}),t.watch(m,()=>{s.value=null,f.clear()}),()=>{const o=e.tabela;if(a.value)return h();if(d.value)return Z(d.value);const r=o.colunas,l=o.acoesLinha??[],u=l.length>0;if(!m.value.length)return ne(o.mensagemVazio);const c=r.map(g=>{const p=g.coluna_ordem!==void 0?g.coluna_ordem:void 0,V=!!p,C=V&&M.value===p,A=V?C?t.h(S.value==="asc"?Ve:ft,{class:"eli-tabela__th-icone",size:16,strokeWidth:2,"aria-hidden":"true"}):t.h(Ve,{class:"eli-tabela__th-icone eli-tabela__th-icone--oculto",size:16,strokeWidth:2,"aria-hidden":"true"}):null,D=V?t.h("button",{type:"button",class:["eli-tabela__th-botao",C?"eli-tabela__th-botao--ativo":void 0],onClick:()=>de(p)},[t.h("span",{class:"eli-tabela__th-texto"},g.rotulo),A]):t.h("span",{class:"eli-tabela__th-label"},g.rotulo);return t.h("th",{class:["eli-tabela__th",V?"eli-tabela__th--ordenavel":void 0,G(g.alinhamento)],scope:"col"},D)});u&&c.push(t.h("th",{class:"eli-tabela__th eli-tabela__th--acoes",scope:"col"},"Ações"));const y=[];if(U.value||P.value){const g=w.value.map((p,V)=>t.h("button",{key:`${p.rotulo}-${V}`,type:"button",class:"eli-tabela__acoes-cabecalho-botao",style:p.cor?{backgroundColor:p.cor,color:"#fff"}:void 0,onClick:p.acao},[p.icone?t.h(p.icone,{class:"eli-tabela__acoes-cabecalho-icone",size:16,strokeWidth:2}):null,t.h("span",{class:"eli-tabela__acoes-cabecalho-rotulo"},p.rotulo)]));y.push(t.h("div",{class:"eli-tabela__cabecalho"},[U.value?t.h($t,{modelo:k.value,onBuscar:W}):null,P.value?t.h("div",{class:"eli-tabela__acoes-cabecalho"},g):null]))}return y.push(t.h("table",{class:"eli-tabela__table"},[t.h("thead",{class:"eli-tabela__thead"},t.h("tr",{class:"eli-tabela__tr eli-tabela__tr--header"},c)),t.h("tbody",{class:"eli-tabela__tbody"},m.value.map((g,p)=>{const V=r.map((C,A)=>t.h("td",{class:["eli-tabela__td",C.acao?"eli-tabela__td--clicavel":void 0,G(C.alinhamento)],key:`${p}-${A}`,onClick:C.acao?()=>{var D;return(D=C.acao)==null?void 0:D.call(C)}:void 0},v(C.celula(g),C)));if(u){const C=$.value[p]??[],A=l.map((O,re)=>{const ue=O.exibir===void 0?!0:typeof O.exibir=="boolean"?O.exibir:!1;return{acao:O,indice:re,visivel:C[re]??ue}}).filter(O=>O.visivel),D=A.length>0;!D&&s.value===p&&(s.value=null);const j=s.value===p,q=`eli-tabela-acoes-toggle-${p}`,_=`eli-tabela-acoes-menu-${p}`,I=t.h("button",{id:q,class:"eli-tabela__acoes-toggle",type:"button",disabled:!D,onClick:O=>{O.stopPropagation(),D&&(s.value=j?null:p)},"aria-haspopup":"menu","aria-expanded":j?"true":"false","aria-controls":D?_:void 0,"aria-label":D?"Ações da linha":"Nenhuma ação disponível",title:D?"Ações":"Nenhuma ação disponível"},[t.h(mt,{class:"eli-tabela__acoes-toggle-icone",size:18,strokeWidth:2})]),Y=j&&D?t.h("ul",{id:_,class:"eli-tabela__acoes-menu",role:"menu","aria-labelledby":q},A.map(({acao:O,indice:re})=>t.h("li",{key:`acao-${re}`,class:"eli-tabela__acoes-item",role:"none"},t.h("button",{type:"button",class:"eli-tabela__acoes-item-botao",style:{color:O.cor},onClick:ue=>{ue.stopPropagation(),s.value=null,O.acao(g)},role:"menuitem","aria-label":O.rotulo,title:O.rotulo},[t.h(O.icone,{class:"eli-tabela__acoes-item-icone",size:16,strokeWidth:2}),t.h("span",{class:"eli-tabela__acoes-item-texto"},O.rotulo)])))):null,J=["eli-tabela__acoes-container"];j&&J.push("eli-tabela__acoes-container--aberto"),V.push(t.h("td",{class:["eli-tabela__td","eli-tabela__td--acoes"],key:`${p}-acoes`},t.h("div",{class:J,ref:K(p)},[I,Y])))}return t.h("tr",{class:["eli-tabela__tr",p%2===1?"eli-tabela__tr--zebra":void 0],key:p},V)}))])),F.value>1&&b.value>0&&y.push(t.h(Mt,{pagina:n.value,totalPaginas:F.value,maximoBotoes:e.tabela.maximo_botoes_paginacao,onAlterar:g=>{z(g)}})),t.h("div",{class:"eli-tabela"},y)}}});function Dt(e,a,d,m,b,$){return t.openBlock(),t.createElementBlock("div")}const Be=H(Et,[["render",Dt],["__scopeId","data-v-40942745"]]),_t={install(e){e.component("EliOlaMundo",pe),e.component("EliBotao",le),e.component("EliBadge",ee),e.component("EliInput",se),e.component("EliCartao",he),e.component("EliDataHora",ge),e.component("EliTabela",Be)}};E.EliBadge=ee,E.EliBotao=le,E.EliCartao=he,E.EliDataHora=ge,E.EliInput=se,E.EliOlaMundo=pe,E.EliTabela=Be,E.default=_t,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));