nemesischart 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("chart.js")):typeof define=="function"&&define.amd?define(["exports","vue","chart.js"],e):(q=typeof globalThis<"u"?globalThis:q||self,e(q.NemesisChart={},q.Vue,q.Chart))})(this,function(q,e,I){"use strict";const J=(t,u)=>{const a=t.__vccOpts||t;for(const[c,o]of u)a[c]=o;return a},Q=J({__name:"ChartBase",props:{type:{type:String,required:!0},data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},height:{type:[String,Number],default:300},width:{type:[String,Number],default:null}},setup(t,{expose:u}){I.Chart.register(I.Title,I.Tooltip,I.Legend,I.Filler,I.LineController,I.LineElement,I.PointElement,I.BarController,I.BarElement,I.PieController,I.PolarAreaController,I.ArcElement,I.CategoryScale,I.LinearScale,I.RadialLinearScale);const a=t,c=e.ref(null),o=e.shallowRef(null),S={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"top"}}};function g(){return{...S,...a.options}}function $(){c.value&&(o.value=new I.Chart(c.value,{type:a.type,data:a.data,options:g(),plugins:a.plugins}))}function _(){o.value&&(o.value.destroy(),o.value=null)}return e.onMounted($),e.onBeforeUnmount(_),e.watch(()=>a.data,W=>{if(!o.value)return;o.value.data.labels=W.labels;const k=o.value.data.datasets,F=W.datasets;k.length!==F.length?o.value.data.datasets=F:F.forEach((H,L)=>Object.assign(k[L],H)),o.value.update()},{deep:!0}),e.watch(()=>a.options,()=>{o.value&&(o.value.options=g(),o.value.update())},{deep:!0}),u({chart:o}),(W,k)=>(e.openBlock(),e.createElementBlock("div",{class:"nc-chart-wrapper w-full",style:e.normalizeStyle({height:typeof t.height=="number"?`${t.height}px`:t.height,width:t.width?typeof t.width=="number"?`${t.width}px`:t.width:"100%"})},[e.createElementVNode("canvas",{ref_key:"canvasRef",ref:c},null,512)],4))}},[["__scopeId","data-v-9828990e"]]),ge={light:{bg:"#ffffff",text:"#000000",muted:"#64748B",grid:"rgba(15,23,42,0.06)"},dark:{bg:"#000000",text:"#ffffff",muted:"#94A3B8",grid:"rgba(255,255,255,0.08)"},transparent:{bg:"transparent",text:"inherit",muted:"#94A3B8",grid:"rgba(127,127,127,0.15)"}};function T(t,u){if(!t)return`rgba(59,130,246,${u})`;if(t.startsWith("#")){const a=t.replace("#",""),c=a.length===3?a.split("").map($=>$+$).join(""):a,o=parseInt(c.slice(0,2),16),S=parseInt(c.slice(2,4),16),g=parseInt(c.slice(4,6),16);return`rgba(${o},${S},${g},${u})`}if(t.startsWith("rgb")){const a=t.match(/[\d.]+/g);if(a&&a.length>=3)return`rgba(${a[0]},${a[1]},${a[2]},${u})`}return t}function G(t){const u=e.computed(()=>{const c=ge[t.tema],o=c?{...c,bg:t.corFundo||c.bg}:{bg:t.corFundo||t.tema,text:"#F8FAFC",muted:"#7b7b7b",grid:"rgba(255,255,255,0.08)"};return{...o,text:t.corTexto||o.text,muted:t.corTexto||o.muted}}),a=e.computed(()=>({background:u.value.bg,color:u.value.text,borderRadius:typeof t.borderRadius=="number"?`${t.borderRadius}px`:t.borderRadius,boxShadow:t.sombra,border:t.corBorda?`1px solid ${t.corBorda}`:"none"}));return{palette:u,cardStyle:a,toRgba:T}}function ee(t){const u=e.computed(()=>t.tipoValor==="moeda"?new Intl.NumberFormat(t.locale,{style:"currency",currency:t.moeda}):t.tipoValor==="percentual"?new Intl.NumberFormat(t.locale,{style:"percent",maximumFractionDigits:2}):new Intl.NumberFormat(t.locale,{maximumFractionDigits:2}));function a(c){if(c==null)return"";const o=Number(c);return Number.isNaN(o)?String(c):t.tipoValor==="percentual"?u.value.format(o/100):u.value.format(o)}return{formatador:u,formatar:a}}function te(t,{caretFlexivel:u=!1}={}){let a=t.querySelector(".nc-tt");if(a)return a;a=document.createElement("div"),a.className="nc-tt",Object.assign(a.style,{position:"absolute",pointerEvents:"none",transform:u?"translateX(-50%)":"translate(-50%, calc(-100% - 16px))",transition:"opacity .18s ease, left .12s ease, top .12s ease",opacity:"0",background:"#ffffff",borderRadius:"10px",padding:"8px 11px",boxShadow:"0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.12)",border:"1px solid rgba(15,23,42,.06)",minWidth:"90px",whiteSpace:"nowrap",zIndex:"10",fontFamily:"inherit",textAlign:"left"});const c=document.createElement("div");c.className="nc-tt__caret";const o={position:"absolute",left:"50%",width:"10px",height:"10px",background:"#ffffff",transform:"translateX(-50%) rotate(45deg)",borderRadius:"2px"};u?Object.assign(c.style,o):Object.assign(c.style,o,{bottom:"-5px",borderRight:"1px solid rgba(15,23,42,.06)",borderBottom:"1px solid rgba(15,23,42,.06)"}),a.appendChild(c);const S=document.createElement("div");return S.className="nc-tt__content",Object.assign(S.style,{position:"relative",background:"#fff",borderRadius:"8px"}),a.appendChild(S),t.appendChild(a),a}function U(t){const u=t.canvas.parentNode;return u?(getComputedStyle(u).position==="static"&&(u.style.position="relative"),u):null}function Z(t,u,a,c=4){const o=u/2;return t-o<c?o+c:t+o>a-c?a-o-c:t}function re(t,u){const a=window.getComputedStyle(t);let c="";for(let o=0;o<a.length;o++){const S=a[o];let g=a.getPropertyValue(S);if(g&&g.indexOf("url(")!==-1&&!/url\(["']?data:/.test(g))if(S==="background-image"||S==="background"||S==="mask-image"||S==="border-image"||S==="border-image-source")g="none";else continue;c+=`${S}:${g};`}u.setAttribute("style",c)}function ye(t,u){re(t,u);const a=t.querySelectorAll("*"),c=u.querySelectorAll("*");for(let o=0;o<a.length;o++)c[o]&&re(a[o],c[o])}function be(t,u){const a=t.querySelectorAll("canvas"),c=u.querySelectorAll("canvas");a.forEach((o,S)=>{if(!c[S])return;const g=document.createElement("img");try{g.src=o.toDataURL("image/png")}catch{return}const $=o.getBoundingClientRect();g.setAttribute("style",`width:${$.width}px;height:${$.height}px;display:block;`),c[S].replaceWith(g)})}async function K(t,u={}){if(!t)return;const{nomeArquivo:a="componente.png",escala:c=2,corFundo:o=null}=u,S=t.getBoundingClientRect(),g=Math.ceil(S.width),$=Math.ceil(S.height),_=t.cloneNode(!0);ye(t,_),be(t,_),_.style.margin="0",_.style.transform="none";const W=new XMLSerializer().serializeToString(_),k=`<svg xmlns="http://www.w3.org/2000/svg" width="${g}" height="${$}"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml" style="width:${g}px;height:${$}px;">`+W+"</div></foreignObject></svg>",H="data:image/svg+xml;base64,"+(typeof window<"u"&&window.btoa?window.btoa(unescape(encodeURIComponent(k))):""),L=new Image;await new Promise((V,P)=>{L.onload=V,L.onerror=P,L.src=H});const Y=document.createElement("canvas");Y.width=g*c,Y.height=$*c;const X=Y.getContext("2d");X.scale(c,c),o&&(X.fillStyle=o,X.fillRect(0,0,g,$)),X.drawImage(L,0,0);let s;try{s=Y.toDataURL("image/png")}catch(V){console.error("Falha ao exportar imagem: canvas contaminado.",V);return}const B=document.createElement("a");B.download=a,B.href=s,document.body.appendChild(B),B.click(),document.body.removeChild(B)}const v='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',he={class:"card-linhas__header flex flex-column"},xe={class:"card-linhas__topo flex align-items-start justify-content-between gap-3"},Se={key:0,class:"card-linhas__legendas flex flex-column"},ke={key:1,class:"card-linhas__actions inline-flex align-items-center gap-2"},Be=["innerHTML"],Ee={key:0,class:"card-linhas__titulos mt-3 mb-2 flex flex-column"},Ce={class:"card-linhas__chart flex-1"},$e={key:0,class:"card-linhas__footer mt-3"},le=J({__name:"CardLinhas",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corDetalhes:{type:String,default:"#3B82F6"},corTexto:{type:String,default:null},textoBotao:{type:String,default:"Ver mais"},direcao:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},botaoVisivel:{type:Boolean,default:!1},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Jan",quantidade:22},{rotulo:"Fev",quantidade:35},{rotulo:"Mar",quantidade:28},{rotulo:"Abr",quantidade:45},{rotulo:"Mai",quantidade:30},{rotulo:"Jun",quantidade:55},{rotulo:"Jul",quantidade:42},{rotulo:"Ago",quantidade:60},{rotulo:"Set",quantidade:48},{rotulo:"Out",quantidade:70},{rotulo:"Nov",quantidade:58},{rotulo:"Dez",quantidade:75}]},height:{type:[String,Number],default:280},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corBorda:{type:String,default:"#EAE8E8"},linhasReferencia:{type:[Object,Array],default:null},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-linhas.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:u}){const a=t,c=u,{palette:o,cardStyle:S}=G(a),{formatar:g}=ee(a),$=e.ref(null),_=v;async function W(){await K($.value,{nomeArquivo:a.nomeArquivoExport,corFundo:o.value.bg!=="transparent"?o.value.bg:null}),c("exportado")}const k=e.computed(()=>`card-linhas--${a.direcao}`),F=e.computed(()=>a.linhasReferencia?(Array.isArray(a.linhasReferencia)?a.linhasReferencia:[a.linhasReferencia]).filter(p=>p&&(typeof p=="number"||typeof p.valor=="number")).map(p=>typeof p=="number"?{valor:p,rotulo:null,cor:"#0F172A",corRotulo:"#0F172A",corTexto:"#FFFFFF",tracejado:[6,6],espessura:1}:{valor:p.valor,rotulo:p.rotulo??null,cor:p.cor||"#0F172A",corRotulo:p.corRotulo||p.cor||"#0F172A",corTexto:p.corTexto||"#FFFFFF",tracejado:p.tracejado||[6,6],espessura:p.espessura??1}):[]),H=[];let L=null;const Y={id:"linhaReferencia",afterDatasetsDraw(r){const p=F.value;if(H.length=0,!p.length)return;const{ctx:i,chartArea:x,scales:l}=r,d=l.y;d&&p.forEach(n=>{const m=d.getPixelForValue(n.valor);if(H.push({linha:n,pos:m,chartArea:x}),i.save(),i.beginPath(),i.setLineDash(n.tracejado),i.lineWidth=n.espessura,i.strokeStyle=n.cor,m<x.top||m>x.bottom){i.restore();return}if(i.moveTo(x.left,m),i.lineTo(x.right,m),i.stroke(),i.setLineDash([]),n.rotulo){i.font="600 11px 'Inter', sans-serif";const f=8,N=5,h=i.measureText(n.rotulo).width,y=12,z=h+f*2,M=y+N*2,D=M/2;let C=x.left-z-6,A=m-M/2;C<0&&(C=x.left+6),i.fillStyle=n.corRotulo,i.beginPath(),i.roundRect?i.roundRect(C,A,z,M,D):(i.moveTo(C+D,A),i.lineTo(C+z-D,A),i.quadraticCurveTo(C+z,A,C+z,A+D),i.lineTo(C+z,A+M-D),i.quadraticCurveTo(C+z,A+M,C+z-D,A+M),i.lineTo(C+D,A+M),i.quadraticCurveTo(C,A+M,C,A+M-D),i.lineTo(C,A+D),i.quadraticCurveTo(C,A,C+D,A)),i.fill(),i.fillStyle=n.corTexto,i.textBaseline="middle",i.textAlign="center",i.fillText(n.rotulo,C+z/2,A+M/2)}i.restore()})},beforeEvent(r,p){if(!H.length){L=null;return}const i=p.event;if(!i||i.type==="mouseout"||i.x==null||i.y==null){L=null;return}const x=8;let l=null,d=1/0;for(const n of H){const m=Math.abs(i.y-n.pos),f=i.x>=n.chartArea.left&&i.x<=n.chartArea.right;m<=x&&f&&m<d&&(d=m,l=n)}L=l},afterEvent(r,p){if(!H.length)return;const i=p.event;if(!i)return;const x=U(r);if(!x)return;let l=x.querySelector(".nc-tt-linhaRef");if(!L){l&&(l.style.opacity="0");return}const d=L;l||(l=document.createElement("div"),l.className="nc-tt-linhaRef",Object.assign(l.style,{position:"absolute",pointerEvents:"none",transform:"translate(-50%, calc(-100% - 12px))",transition:"opacity .18s ease, left .12s ease, top .12s ease",opacity:"0",background:"#ffffff",borderRadius:"10px",padding:"8px 11px",boxShadow:"0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.12)",border:"1px solid rgba(15,23,42,.06)",whiteSpace:"nowrap",zIndex:"11",fontFamily:"'Inter', sans-serif",textAlign:"left"}),x.appendChild(l));const n=d.linha.cor||"#0F172A",m=g(d.linha.valor),f=d.linha.rotulo;l.innerHTML=(f?`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${f}</div>`:"")+`<div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${n};box-shadow:0 0 0 2px ${T(n,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${m}</span></div>`;const N=r.canvas;l.style.opacity="1",l.style.visibility="hidden",l.style.left="0px",l.style.top="0px";const b=l.offsetWidth,h=l.offsetHeight,y=4,z=N.offsetLeft+i.x,M=N.offsetTop+d.pos,D=Z(z,b,x.clientWidth,y);let C=M;const A=h+16+y;C<A&&(C=A),l.style.left=D+"px",l.style.top=C+"px",l.style.visibility="visible"}},X=e.computed(()=>F.value.length?[Y]:[]),s=e.computed(()=>({labels:a.data.map(r=>r.rotulo),datasets:[{data:a.data.map(r=>r.quantidade),borderColor:a.corDetalhes,borderWidth:3,borderJoinStyle:"round",borderCapStyle:"round",backgroundColor:r=>{const{chart:p}=r,{ctx:i,chartArea:x}=p;if(!x)return"transparent";const l=a.corDetalhes||"#0400FF",d="#7C7C7C",n=i.createLinearGradient(0,x.top,0,x.bottom);return n.addColorStop(.16,T(l,.2)),n.addColorStop(1,T(d,0)),n},fill:!0,tension:.45,pointRadius:0,pointHoverRadius:6,pointHoverBorderWidth:3,pointHoverBackgroundColor:a.corDetalhes,pointHoverBorderColor:o.value.bg==="transparent"?"#fff":o.value.bg,clip:!1}]}));function B(r){const{chart:p,tooltip:i}=r,x=U(p);if(!x)return;const l=te(x);if(i.opacity===0||L){l.style.opacity="0";return}const d=i.title||[],n=(i.body||[]).flatMap(w=>w.lines),m=l.querySelector(".nc-tt__content"),f=a.corDetalhes||"#3B82F6";m.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${d.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${f};box-shadow:0 0 0 2px ${T(f,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${n.join(" ")}</span></div>`;const{offsetLeft:N,offsetTop:b}=p.canvas;l.style.opacity="1",l.style.visibility="hidden",l.style.left="0px",l.style.top="0px";const h=l.offsetWidth,y=l.offsetHeight,z=4,M=N+i.caretX,D=b+i.caretY,C=Z(M,h,x.clientWidth,z),A=y+16+z,j=D<A;let O;j?(l.style.transform="translateX(-50%) translateY(16px)",O=D):(l.style.transform="translate(-50%, calc(-100% - 16px))",O=D),l.style.left=C+"px",l.style.top=O+"px";const E=l.querySelector(".nc-tt__caret");if(E){const w=M-C,R=h/2,ae=Math.max(-R+8,Math.min(R-8,w));E.style.left=`calc(50% + ${ae}px)`,j?(E.style.bottom="",E.style.top="-5px",E.style.borderRight="",E.style.borderBottom="",E.style.borderLeft="1px solid rgba(15,23,42,.06)",E.style.borderTop="1px solid rgba(15,23,42,.06)"):(E.style.top="",E.style.bottom="-5px",E.style.borderLeft="",E.style.borderTop="",E.style.borderRight="1px solid rgba(15,23,42,.06)",E.style.borderBottom="1px solid rgba(15,23,42,.06)")}l.style.visibility="visible"}const V=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{intersect:!1,mode:"index"},layout:{padding:{top:F.value.length?24:0,right:0,bottom:0,left:0}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:B,callbacks:{title:r=>{var p;return((p=r[0])==null?void 0:p.label)??""},label:r=>g(r.parsed.y)}}},scales:{x:{display:!0,afterFit:r=>{r.paddingLeft=0,r.paddingRight=0},grid:{display:!1,drawBorder:!1},border:{display:!1},ticks:{color:o.value.muted,font:{size:10,family:"'Inter', sans-serif"},padding:8,align:"inner"}},y:{display:!1,grid:{display:!1},beginAtZero:!0}}}));function P(){c("botaoAcao")}return(r,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:$,class:e.normalizeClass(["card-linhas p-4 flex",k.value]),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",he,[e.createElementVNode("div",xe,[r.$slots.legenda||t.legenda||r.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",Se,[r.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(o).text,opacity:.85})},[e.renderSlot(r.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),r.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(r.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",ke,[e.renderSlot(r.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"card-linhas__btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(o).text,borderColor:e.unref(T)(e.unref(o).text,.18)}),onClick:P},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-linhas__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:W,innerHTML:e.unref(_)},null,12,Be)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),r.$slots.titulo||t.titulo||r.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",Ee,[r.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(o).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(r.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),r.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm mt-1",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(r.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ce,[e.createVNode(Q,{type:"line",data:s.value,options:V.value,plugins:X.value,height:t.height},null,8,["data","options","plugins","height"])]),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(r.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-e8a0d601"]]),Ve={class:"card-pizza__topo flex align-items-start justify-content-between gap-3"},Ne={key:0,class:"card-pizza__legendas flex flex-column"},ze={key:1,class:"card-pizza__actions inline-flex align-items-center gap-2"},Ae=["innerHTML"],Te={class:"card-pizza__corpo flex align-items-center gap-4"},we={class:"card-pizza__tabela flex flex-column"},Fe={class:"card-pizza__tabela-valor"},Re={class:"card-pizza__tabela-rotulo inline-flex align-items-center gap-2"},qe={class:"card-pizza__tabela-valor"},De={class:"card-pizza__chart-wrap flex align-items-center justify-content-center"},Le={class:"card-pizza__chart"},He={key:0,class:"card-pizza__centro flex flex-column align-items-center justify-content-center"},Pe={key:0,class:"card-pizza__footer mt-3"},ne=J({__name:"CardPizza",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},cores:{type:Array,default:()=>["#0A1A6B","#1535B5","#1A5FD4","#2F8DDF","#5BB1E8","#93D0F0","#CDEAF6"]},textoBotao:{type:String,default:"Ver mais"},botaoVisivel:{type:Boolean,default:!1},direcao:{type:String,default:"right",validator:t=>["left","right","top","bottom"].includes(t)},rotuloCategoria:{type:String,default:"Categoria"},rotuloQuantidade:{type:String,default:"Quantidade"},mostrarCabecalho:{type:Boolean,default:!0},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:4200},{rotulo:"Serviços",quantidade:3100},{rotulo:"Assinaturas",quantidade:2450},{rotulo:"Licenças",quantidade:1800},{rotulo:"Suporte",quantidade:1250},{rotulo:"Treinamentos",quantidade:820},{rotulo:"Outros",quantidade:410}]},height:{type:[String,Number],default:260},cutout:{type:[String,Number],default:"70%"},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-pizza.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:u}){const a=t,c=u,{palette:o,cardStyle:S}=G(a),{formatar:g}=ee(a),$=e.ref(null);async function _(){await K($.value,{nomeArquivo:a.nomeArquivoExport,corFundo:o.value.bg!=="transparent"?o.value.bg:null}),c("exportado")}const W=e.computed(()=>`card-pizza--${a.direcao}`),k=e.computed(()=>a.data.map((s,B)=>a.cores[B%a.cores.length])),F=e.computed(()=>({labels:a.data.map(s=>s.rotulo),datasets:[{data:a.data.map(s=>s.quantidade),backgroundColor:k.value,borderWidth:0,borderColor:"transparent",hoverOffset:6,borderRadius:0,spacing:0}]}));function H(s){const{chart:B,tooltip:V}=s,P=U(B);if(!P)return;const r=te(P);if(V.opacity===0){r.style.opacity="0";return}const p=V.title||[],i=V.dataPoints&&V.dataPoints[0],x=i?k.value[i.dataIndex]:"#3B82F6",l=i?g(i.parsed):"",d=r.querySelector(".nc-tt__content");d.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${p.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${x};box-shadow:0 0 0 2px ${T(x,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${l}</span></div>`;const{offsetLeft:n,offsetTop:m}=B.canvas;r.style.opacity="1",r.style.visibility="hidden",r.style.left="0px",r.style.top="0px";const f=r.offsetWidth,N=r.offsetHeight,b=4,h=Z(n+V.caretX,f,P.clientWidth,b);let y=m+V.caretY;const z=N+16+b;y<z&&(y=z),r.style.left=h+"px",r.style.top=y+"px",r.style.visibility="visible"}const L=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,cutout:a.cutout,layout:{padding:4},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:H,callbacks:{title:s=>{var B;return((B=s[0])==null?void 0:B.label)??""},label:s=>g(s.parsed)}}}}));function Y(){c("botaoAcao")}const X=v;return(s,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:$,class:e.normalizeClass(["card-pizza p-4 flex flex-column",W.value]),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",Ve,[s.$slots.legenda||t.legenda||s.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",Ne,[s.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(o).text,opacity:.95})},[e.renderSlot(s.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),s.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(s.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(s.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"card-pizza__btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(o).text,borderColor:e.unref(T)(e.unref(o).text,.18)}),onClick:Y},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-pizza__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:_,innerHTML:e.unref(X)},null,12,Ae)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Te,[e.createElementVNode("div",we,[t.mostrarCabecalho?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-pizza__tabela-cab flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).muted,.25)})},[e.createElementVNode("span",null,e.toDisplayString(t.rotuloCategoria),1),e.createElementVNode("span",Fe,e.toDisplayString(t.rotuloQuantidade),1)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(V,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"card-pizza__tabela-linha flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(o).text})},[e.createElementVNode("span",Re,[e.createElementVNode("span",{class:"card-pizza__bolinha",style:e.normalizeStyle({background:k.value[P]})},null,4),e.createElementVNode("span",null,e.toDisplayString(V.rotulo),1)]),e.createElementVNode("span",qe,e.toDisplayString(e.unref(g)(V.quantidade)),1)],4))),128))]),e.createElementVNode("div",De,[e.createElementVNode("div",Le,[e.createVNode(Q,{type:"doughnut",data:F.value,options:L.value,height:t.height},null,8,["data","options","height"]),s.$slots.titulo||t.titulo||s.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",He,[s.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-pizza__centro-titulo m-0 font-semibold",style:e.normalizeStyle({color:e.unref(o).text})},[e.renderSlot(s.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),s.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"card-pizza__centro-desc",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(s.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",Pe,[e.renderSlot(s.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-6c25ad40"]]),Me={class:"card-barra__header flex flex-column"},_e={class:"card-barra__topo flex align-items-start justify-content-between gap-3"},je={key:0,class:"card-barra__legendas flex flex-column"},Oe={key:1,class:"card-barra__actions inline-flex align-items-center gap-2"},Ie=["innerHTML"],We={key:0,class:"card-barra__titulos mt-3 mb-2 flex flex-column"},Xe={class:"card-barra__chart flex-1"},Ye={key:0,class:"card-barra__footer mt-3"},ie=J({__name:"CardBarra",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corDetalhes:{type:String,default:"#3B82F6"},corTexto:{type:String,default:null},textoBotao:{type:String,default:"Ver mais"},direcao:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},botaoVisivel:{type:Boolean,default:!1},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Jan",quantidade:22},{rotulo:"Fev",quantidade:35},{rotulo:"Mar",quantidade:28},{rotulo:"Abr",quantidade:45},{rotulo:"Mai",quantidade:30},{rotulo:"Jun",quantidade:55},{rotulo:"Jul",quantidade:42},{rotulo:"Ago",quantidade:60},{rotulo:"Set",quantidade:48},{rotulo:"Out",quantidade:70},{rotulo:"Nov",quantidade:58},{rotulo:"Dez",quantidade:75}]},series:{type:Array,default:null},cores:{type:Array,default:()=>["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#06B6D4","#EC4899"]},orientacao:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},empilhado:{type:Boolean,default:!1},mostrarLegendaSeries:{type:Boolean,default:!0},height:{type:[String,Number],default:280},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corBorda:{type:String,default:"#EAE8E8"},larguraBarra:{type:[String,Number],default:.92},raioBarra:{type:Number,default:6},linhasReferencia:{type:[Object,Array],default:null},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-barra.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:u}){const a=t,c=u,{palette:o,cardStyle:S}=G(a),{formatar:g}=ee(a),$=e.ref(null),_=v;async function W(){await K($.value,{nomeArquivo:a.nomeArquivoExport,corFundo:o.value.bg!=="transparent"?o.value.bg:null}),c("exportado")}const k=e.computed(()=>`card-barra--${a.direcao}`),F=e.computed(()=>a.orientacao==="horizontal"),H=e.computed(()=>Array.isArray(a.series)&&a.series.length>0?a.series.map((l,d)=>({nome:l.nome??`Série ${d+1}`,cor:l.cor||a.cores[d%a.cores.length],dados:Array.isArray(l.dados)?l.dados:[]})):[{nome:a.legenda||"Valores",cor:a.corDetalhes,dados:a.data}]),L=e.computed(()=>{const l=H.value[0];return l?l.dados.map(d=>d.rotulo):[]}),Y=e.computed(()=>{const l=H.value,d=l.length-1,n=typeof a.larguraBarra=="number"?a.larguraBarra:Number(a.larguraBarra)||.6,m=a.raioBarra,f=F.value;function N(b){if(!a.empilhado||l.length===1)return m;const h=b===0,y=b===d;return f?{topLeft:h?m:0,bottomLeft:h?m:0,topRight:y?m:0,bottomRight:y?m:0}:{bottomLeft:h?m:0,bottomRight:h?m:0,topLeft:y?m:0,topRight:y?m:0}}return{labels:L.value,datasets:l.map((b,h)=>({label:b.nome,data:b.dados.map(y=>y.quantidade),backgroundColor:T(b.cor,.72),hoverBackgroundColor:b.cor,borderWidth:0,borderRadius:N(h),borderSkipped:!1,categoryPercentage:1,barPercentage:n}))}});function X(l,d){d?Object.assign(l.style,{top:"-5px",bottom:"auto",borderTop:"1px solid rgba(15,23,42,.06)",borderLeft:"1px solid rgba(15,23,42,.06)",borderRight:"none",borderBottom:"none"}):Object.assign(l.style,{bottom:"-5px",top:"auto",borderRight:"1px solid rgba(15,23,42,.06)",borderBottom:"1px solid rgba(15,23,42,.06)",borderTop:"none",borderLeft:"none"})}let s=null;function B(l){const{chart:d,tooltip:n}=l,m=U(d);if(!m)return;const f=te(m,{caretFlexivel:!0});if(n.opacity===0||s){f.style.opacity="0";return}const N=n.title||[],b=n.dataPoints||[],h=f.querySelector(".nc-tt__content"),y=b.map(oe=>{var ue;const pe=((ue=H.value[oe.datasetIndex])==null?void 0:ue.cor)||a.corDetalhes,zt=g(F.value?oe.parsed.x:oe.parsed.y),At=oe.dataset.label&&H.value.length>1?`<span style="font-size:11px;color:#64748B;margin-right:6px;">${oe.dataset.label}</span>`:"";return`<div style="display:flex;align-items:center;gap:6px;margin-top:2px;"><span style="width:6px;height:6px;border-radius:999px;background:${pe};box-shadow:0 0 0 2px ${T(pe,.15)};flex:0 0 auto;"></span>`+At+`<span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;margin-left:auto;">${zt}</span></div>`}).join("");h.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${N.join(" ")}</div>`+y;const{offsetLeft:z,offsetTop:M}=d.canvas;f.style.opacity="1",f.style.visibility="hidden",f.style.left="0px",f.style.top="0px";const D=f.offsetWidth,C=f.offsetHeight,A=4,j=z+n.caretX,O=M+n.caretY,E=Z(j,D,m.clientWidth,A),w=D/2,R=14,ae=O-R-C,me=ae<A,$t=me?O+R:ae,fe=f.querySelector(".nc-tt__caret");X(fe,me);const Vt=j-(E-w),Nt=Math.max(10,Math.min(D-10,Vt));fe.style.left=Nt+"px",f.style.left=E+"px",f.style.top=$t+"px",f.style.visibility="visible"}const V=e.computed(()=>{const l=F.value,d={grid:{display:!1,drawBorder:!1},border:{display:!1},ticks:{color:o.value.muted,font:{size:10,family:"'Inter', sans-serif"},padding:8},stacked:a.empilhado},n={display:!1,grid:{display:!1},beginAtZero:!0,stacked:a.empilhado};return{responsive:!0,maintainAspectRatio:!1,indexAxis:l?"y":"x",interaction:{intersect:!1,mode:"index",axis:l?"y":"x"},layout:{padding:{top:r.value.length&&!l?24:12,right:l?12:0,bottom:0,left:r.value.length&&l?60:0}},plugins:{legend:{display:a.mostrarLegendaSeries&&H.value.length>1,position:"bottom",align:"start",labels:{color:o.value.muted,boxWidth:8,boxHeight:8,usePointStyle:!0,pointStyle:"circle",font:{size:10,family:"'Inter', sans-serif"},padding:12}},tooltip:{enabled:!1,external:B,callbacks:{title:m=>{var f;return((f=m[0])==null?void 0:f.label)??""},label:m=>g(l?m.parsed.x:m.parsed.y)}}},scales:{x:l?n:d,y:l?d:n}}});function P(){c("botaoAcao")}const r=e.computed(()=>a.linhasReferencia?(Array.isArray(a.linhasReferencia)?a.linhasReferencia:[a.linhasReferencia]).filter(d=>d&&(typeof d=="number"||typeof d.valor=="number")).map(d=>typeof d=="number"?{valor:d,rotulo:null,cor:"#0F172A",corRotulo:"#0F172A",corTexto:"#FFFFFF",tracejado:[6,6],espessura:1}:{valor:d.valor,rotulo:d.rotulo??null,cor:d.cor||"#0F172A",corRotulo:d.corRotulo||d.cor||"#0F172A",corTexto:d.corTexto||"#FFFFFF",tracejado:d.tracejado||[6,6],espessura:d.espessura??1}):[]),p=[],i={id:"linhaReferencia",afterDatasetsDraw(l){const d=r.value;if(p.length=0,!d.length)return;const{ctx:n,chartArea:m,scales:f}=l,N=F.value,b=N?f.x:f.y;b&&d.forEach(h=>{const y=b.getPixelForValue(h.valor);if(p.push({linha:h,pos:y,horizontal:N,chartArea:m}),n.save(),n.beginPath(),n.setLineDash(h.tracejado),n.lineWidth=h.espessura,n.strokeStyle=h.cor,N){if(y<m.left||y>m.right){n.restore();return}n.moveTo(y,m.top),n.lineTo(y,m.bottom)}else{if(y<m.top||y>m.bottom){n.restore();return}n.moveTo(m.left,y),n.lineTo(m.right,y)}if(n.stroke(),n.setLineDash([]),h.rotulo){n.font="600 11px 'Inter', sans-serif";const z=8,M=5,C=n.measureText(h.rotulo).width,A=12,j=C+z*2,O=A+M*2,E=O/2;let w,R;N?(w=y-j/2,R=m.top-O-6,R<0&&(R=m.top+6)):(w=m.left-j-6,R=y-O/2,w<0&&(w=m.left+6)),n.fillStyle=h.corRotulo,n.beginPath(),n.roundRect?n.roundRect(w,R,j,O,E):(n.moveTo(w+E,R),n.lineTo(w+j-E,R),n.quadraticCurveTo(w+j,R,w+j,R+E),n.lineTo(w+j,R+O-E),n.quadraticCurveTo(w+j,R+O,w+j-E,R+O),n.lineTo(w+E,R+O),n.quadraticCurveTo(w,R+O,w,R+O-E),n.lineTo(w,R+E),n.quadraticCurveTo(w,R,w+E,R)),n.fill(),n.fillStyle=h.corTexto,n.textBaseline="middle",n.textAlign="center",n.fillText(h.rotulo,w+j/2,R+O/2)}n.restore()})},beforeEvent(l,d){if(!p.length){s=null;return}const n=d.event;if(!n||n.type==="mouseout"||n.x==null||n.y==null){s=null;return}const m=8;let f=null,N=1/0;for(const b of p){const h=b.horizontal?Math.abs(n.x-b.pos):Math.abs(n.y-b.pos),y=b.horizontal?n.y>=b.chartArea.top&&n.y<=b.chartArea.bottom:n.x>=b.chartArea.left&&n.x<=b.chartArea.right;h<=m&&y&&h<N&&(N=h,f=b)}s=f},afterEvent(l,d){if(!p.length)return;const n=d.event;if(!n)return;const m=U(l);if(!m)return;let f=m.querySelector(".nc-tt-linhaRef");if(!s){f&&(f.style.opacity="0");return}const N=s;f||(f=document.createElement("div"),f.className="nc-tt-linhaRef",Object.assign(f.style,{position:"absolute",pointerEvents:"none",transform:"translate(-50%, calc(-100% - 12px))",transition:"opacity .18s ease, left .12s ease, top .12s ease",opacity:"0",background:"#ffffff",borderRadius:"10px",padding:"8px 11px",boxShadow:"0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.12)",border:"1px solid rgba(15,23,42,.06)",whiteSpace:"nowrap",zIndex:"11",fontFamily:"'Inter', sans-serif",textAlign:"left"}),m.appendChild(f));const b=N.linha.cor||"#0F172A",h=g(N.linha.valor),y=N.linha.rotulo;f.innerHTML=(y?`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${y}</div>`:"")+`<div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${b};box-shadow:0 0 0 2px ${T(b,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${h}</span></div>`;const z=l.canvas;f.style.opacity="1",f.style.visibility="hidden",f.style.left="0px",f.style.top="0px";const M=f.offsetWidth,D=f.offsetHeight,C=4;let A,j;N.horizontal?(A=z.offsetLeft+N.pos,j=z.offsetTop+n.y):(A=z.offsetLeft+n.x,j=z.offsetTop+N.pos);const O=Z(A,M,m.clientWidth,C);let E=j;const w=D+16+C;E<w&&(E=w),f.style.left=O+"px",f.style.top=E+"px",f.style.visibility="visible"}},x=e.computed(()=>r.value.length?[i]:[]);return(l,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:$,class:e.normalizeClass(["card-barra p-4 flex",k.value]),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",Me,[e.createElementVNode("div",_e,[l.$slots.legenda||t.legenda||l.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",je,[l.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(o).text,opacity:.85})},[e.renderSlot(l.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),l.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(l.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(l.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"card-barra__btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(o).text,borderColor:e.unref(T)(e.unref(o).text,.18)}),onClick:P},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-barra__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:W,innerHTML:e.unref(_)},null,12,Ie)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),l.$slots.titulo||t.titulo||l.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",We,[l.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(o).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(l.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),l.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm mt-1",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(l.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Xe,[e.createVNode(Q,{type:"bar",data:Y.value,options:V.value,plugins:x.value,height:t.height},null,8,["data","options","plugins","height"])]),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(l.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-4fd7ecb9"]]),Je={class:"card-polar__topo flex align-items-start justify-content-between gap-3"},Qe={key:0,class:"card-polar__legendas flex flex-column"},Ge={key:1,class:"card-polar__actions inline-flex align-items-center gap-2"},Ue=["innerHTML"],Ze={class:"card-polar__corpo flex align-items-center gap-4"},Ke={class:"card-polar__tabela flex flex-column"},ve={class:"card-polar__tabela-valor"},et={class:"card-polar__tabela-rotulo inline-flex align-items-center gap-2"},tt={class:"card-polar__tabela-valor"},ot={class:"card-polar__chart-wrap flex align-items-center justify-content-center"},at={class:"card-polar__chart"},rt={key:0,class:"card-polar__centro-bottom"},lt={key:0,class:"card-polar__footer mt-3"},se=J({__name:"CardPolar",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},cores:{type:Array,default:()=>["#0A1A6B","#1535B5","#1A5FD4","#2F8DDF","#5BB1E8","#93D0F0","#CDEAF6"]},textoBotao:{type:String,default:"Ver mais"},botaoVisivel:{type:Boolean,default:!1},direcao:{type:String,default:"right",validator:t=>["left","right","top","bottom"].includes(t)},rotuloCategoria:{type:String,default:"Categoria"},rotuloQuantidade:{type:String,default:"Quantidade"},mostrarCabecalho:{type:Boolean,default:!0},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:4200},{rotulo:"Serviços",quantidade:3100},{rotulo:"Assinaturas",quantidade:2450},{rotulo:"Licenças",quantidade:1800},{rotulo:"Suporte",quantidade:1250},{rotulo:"Treinamentos",quantidade:820},{rotulo:"Outros",quantidade:410}]},height:{type:[String,Number],default:260},mostrarLinhasGrade:{type:Boolean,default:!0},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-polar.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:u}){const a=t,c=u,{palette:o,cardStyle:S}=G(a),{formatar:g}=ee(a),$=e.ref(null),_=v;async function W(){await K($.value,{nomeArquivo:a.nomeArquivoExport,corFundo:o.value.bg!=="transparent"?o.value.bg:null}),c("exportado")}const k=e.computed(()=>`card-polar--${a.direcao}`),F=e.computed(()=>a.data.map((s,B)=>a.cores[B%a.cores.length])),H=e.computed(()=>({labels:a.data.map(s=>s.rotulo),datasets:[{data:a.data.map(s=>s.quantidade),backgroundColor:F.value,borderColor:F.value,borderWidth:0,hoverOffset:6}]}));function L(s){const{chart:B,tooltip:V}=s,P=U(B);if(!P)return;const r=te(P);if(V.opacity===0){r.style.opacity="0";return}const p=V.title||[],i=V.dataPoints&&V.dataPoints[0],x=i?F.value[i.dataIndex]:"#3B82F6",l=i?g(i.parsed.r??i.parsed):"",d=r.querySelector(".nc-tt__content");d.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${p.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${x};box-shadow:0 0 0 2px ${T(x,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${l}</span></div>`;const{offsetLeft:n,offsetTop:m}=B.canvas;r.style.opacity="1",r.style.visibility="hidden",r.style.left="0px",r.style.top="0px";const f=r.offsetWidth,N=r.offsetHeight,b=4,h=Z(n+V.caretX,f,P.clientWidth,b);let y=m+V.caretY;const z=N+16+b;y<z&&(y=z),r.style.left=h+"px",r.style.top=y+"px",r.style.visibility="visible"}const Y=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,layout:{padding:4},scales:{r:{beginAtZero:!0,ticks:{display:!1,backdropColor:"transparent"},grid:{display:a.mostrarLinhasGrade,color:T(o.value.muted,.18)},angleLines:{display:a.mostrarLinhasGrade,color:T(o.value.muted,.18)},pointLabels:{display:!1}}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:L,callbacks:{title:s=>{var B;return((B=s[0])==null?void 0:B.label)??""},label:s=>{var B;return g(((B=s.parsed)==null?void 0:B.r)??s.parsed)}}}}}));function X(){c("botaoAcao")}return(s,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:$,class:e.normalizeClass(["card-polar p-4 flex flex-column",k.value]),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",Je,[s.$slots.legenda||t.legenda||s.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",Qe,[s.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(o).text,opacity:.95})},[e.renderSlot(s.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),s.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(s.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(s.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"card-polar__btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(o).text,borderColor:e.unref(T)(e.unref(o).text,.18)}),onClick:X},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-polar__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:W,innerHTML:e.unref(_)},null,12,Ue)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ze,[e.createElementVNode("div",Ke,[t.mostrarCabecalho?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-polar__tabela-cab flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).muted,.25)})},[e.createElementVNode("span",null,e.toDisplayString(t.rotuloCategoria),1),e.createElementVNode("span",ve,e.toDisplayString(t.rotuloQuantidade),1)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(V,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"card-polar__tabela-linha flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(o).text})},[e.createElementVNode("span",et,[e.createElementVNode("span",{class:"card-polar__bolinha",style:e.normalizeStyle({background:F.value[P]})},null,4),e.createElementVNode("span",null,e.toDisplayString(V.rotulo),1)]),e.createElementVNode("span",tt,e.toDisplayString(e.unref(g)(V.quantidade)),1)],4))),128))]),e.createElementVNode("div",ot,[e.createElementVNode("div",at,[e.createVNode(Q,{type:"polarArea",data:H.value,options:Y.value,height:t.height},null,8,["data","options","height"]),s.$slots.titulo||t.titulo||s.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",rt,[s.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-polar__centro-titulo m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(o).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(s.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),s.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"card-polar__centro-desc",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(s.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(s.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-0c5be433"]]),nt={class:"card-progresso__topo flex align-items-start justify-content-between gap-3"},it={key:0,class:"card-progresso__legendas flex flex-column"},st={key:1,class:"card-progresso__actions inline-flex align-items-center gap-2"},ct=["innerHTML"],dt={key:0,class:"card-progresso__titulos mt-3 mb-2 flex flex-column"},mt={class:"card-progresso__corpo flex align-items-center gap-4 flex-wrap"},ft={key:0,class:"card-progresso__chart-wrap flex align-items-center justify-content-center"},pt={class:"card-progresso__chart"},ut={class:"card-progresso__centro flex flex-column align-items-center justify-content-center"},gt={class:"card-progresso__lista flex flex-column"},yt={class:"card-progresso__item-cab flex align-items-center justify-content-between"},bt={key:1,class:"card-progresso__footer mt-3"},ce=J({__name:"CardProgresso",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},cores:{type:Array,default:()=>["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#06B6D4","#EC4899"]},corDetalhes:{type:String,default:"#3B82F6"},textoBotao:{type:String,default:"Ver mais"},botaoVisivel:{type:Boolean,default:!1},direcao:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},formato:{type:String,default:"linear",validator:t=>["linear","circular"].includes(t)},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:72,meta:100},{rotulo:"Serviços",quantidade:48,meta:80},{rotulo:"Assinaturas",quantidade:35,meta:60},{rotulo:"Suporte",quantidade:18,meta:40}]},metaPadrao:{type:Number,default:100},mostrarValor:{type:Boolean,default:!0},mostrarPercentual:{type:Boolean,default:!0},alturaBarra:{type:[String,Number],default:8},raioBarra:{type:[String,Number],default:"999px"},height:{type:[String,Number],default:220},cutout:{type:[String,Number],default:"78%"},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-progresso.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:u}){const a=t,c=u,{palette:o,cardStyle:S}=G(a),{formatar:g}=ee(a),$=e.ref(null),_=v;async function W(){await K($.value,{nomeArquivo:a.nomeArquivoExport,corFundo:o.value.bg!=="transparent"?o.value.bg:null}),c("exportado")}const k=e.computed(()=>`card-progresso--${a.direcao}`),F=e.computed(()=>a.data.map((r,p)=>{const i=Number(r.meta??a.metaPadrao)||0,x=Number(r.quantidade)||0,l=r.cor||a.cores[p%a.cores.length],d=i>0?Math.max(0,Math.min(100,x/i*100)):0;return{rotulo:r.rotulo,quantidade:x,meta:i,cor:l,percentual:d}})),H=e.computed(()=>typeof a.alturaBarra=="number"?`${a.alturaBarra}px`:a.alturaBarra),L=e.computed(()=>typeof a.raioBarra=="number"?`${a.raioBarra}px`:a.raioBarra),Y=e.computed(()=>F.value.reduce((r,p)=>r+p.quantidade,0)),X=e.computed(()=>F.value.reduce((r,p)=>r+p.meta,0)),s=e.computed(()=>X.value<=0?0:Math.max(0,Math.min(100,Y.value/X.value*100))),B=e.computed(()=>{const r=Math.max(0,100-s.value),p=a.corDetalhes;return{labels:["Progresso","Restante"],datasets:[{data:[s.value,r],backgroundColor:[p,T(o.value.muted,.15)],borderWidth:0,borderColor:"transparent",hoverOffset:0,spacing:0}]}}),V=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,cutout:a.cutout,rotation:-90,circumference:360,layout:{padding:4},plugins:{legend:{display:!1},tooltip:{enabled:!1}}}));function P(){c("botaoAcao")}return(r,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:$,class:e.normalizeClass(["card-progresso p-4 flex flex-column",k.value]),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",nt,[r.$slots.legenda||t.legenda||r.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",it,[r.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(o).text,opacity:.95})},[e.renderSlot(r.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),r.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(r.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(r.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"card-progresso__btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(o).text,borderColor:e.unref(T)(e.unref(o).text,.18)}),onClick:P},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-progresso__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:W,innerHTML:e.unref(_)},null,12,ct)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),r.$slots.titulo||t.titulo||r.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",dt,[r.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(o).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(r.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),r.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm mt-1",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(r.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",mt,[t.formato==="circular"?(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("div",pt,[e.createVNode(Q,{type:"doughnut",data:B.value,options:V.value,height:t.height},null,8,["data","options","height"]),e.createElementVNode("div",ut,[e.createElementVNode("div",{class:"card-progresso__centro-valor",style:e.normalizeStyle({color:e.unref(o).text})},e.toDisplayString(Math.round(s.value))+"% ",5),e.createElementVNode("div",{class:"card-progresso__centro-desc",style:e.normalizeStyle({color:e.unref(o).muted})},e.toDisplayString(e.unref(g)(Y.value))+" / "+e.toDisplayString(e.unref(g)(X.value)),5)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(i,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"card-progresso__item flex flex-column"},[e.createElementVNode("div",yt,[e.createElementVNode("span",{class:"card-progresso__item-rotulo inline-flex align-items-center gap-2",style:e.normalizeStyle({color:e.unref(o).text})},[e.createElementVNode("span",{class:"card-progresso__bolinha",style:e.normalizeStyle({background:i.cor})},null,4),e.createElementVNode("span",null,e.toDisplayString(i.rotulo),1)],4),t.mostrarValor||t.mostrarPercentual?(e.openBlock(),e.createElementBlock("span",{key:0,class:"card-progresso__item-valor inline-flex align-items-baseline gap-2",style:e.normalizeStyle({color:e.unref(o).text})},[t.mostrarValor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(g)(i.quantidade)),1),i.meta?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle({color:e.unref(o).muted})}," / "+e.toDisplayString(e.unref(g)(i.meta)),5)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.mostrarPercentual?(e.openBlock(),e.createElementBlock("span",{key:1,class:"card-progresso__item-pct",style:e.normalizeStyle({color:e.unref(o).muted})},e.toDisplayString(Math.round(i.percentual))+"% ",5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"card-progresso__trilha w-full",style:e.normalizeStyle({height:H.value,borderRadius:L.value,background:e.unref(T)(e.unref(o).muted,.15)})},[e.createElementVNode("div",{class:"card-progresso__preenchimento",style:e.normalizeStyle({width:i.percentual+"%",background:i.cor,borderRadius:L.value})},null,4)],4)]))),128))])]),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",bt,[e.renderSlot(r.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-81d4a1fb"]]),ht={key:0,class:"card-base__topo"},xt=["innerHTML"],St={class:"card-base__legendas flex flex-column"},kt={key:1,class:"card-base__titulos flex flex-column"},Bt={key:2,class:"card-base__acao flex"},Et={key:3,class:"card-base__footer"},de=J({__name:"CardBase",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"none"},textoBotao:{type:String,default:"Ver Todos"},botaoVisivel:{type:Boolean,default:!0},alinhamento:{type:String,default:"left",validator:t=>["left","center","right"].includes(t)},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-base.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:u}){const a=t,c=u,{palette:o,cardStyle:S}=G(a),g=e.ref(null),$=v;function _(){c("botaoAcao")}async function W(){await K(g.value,{nomeArquivo:a.nomeArquivoExport,corFundo:o.value.bg!=="transparent"?o.value.bg:null}),c("exportado")}return(k,F)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:g,class:e.normalizeClass(["card-base p-4 flex flex-column",`card-base--${t.alinhamento}`]),style:e.normalizeStyle(e.unref(S))},[t.exportar?(e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("button",{type:"button",class:"card-base__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(o).muted,borderColor:e.unref(T)(e.unref(o).text==="inherit"?"#0F172A":e.unref(o).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:W,innerHTML:e.unref($)},null,12,xt)])):e.createCommentVNode("",!0),e.createElementVNode("div",St,[k.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-base__legenda text-xs",style:e.normalizeStyle({color:e.unref(o).text})},[e.renderSlot(k.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),k.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"card-base__sublegenda text-xs",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(k.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)]),k.$slots.titulo||t.titulo||k.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",kt,[k.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-base__titulo m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(o).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(k.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),k.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm",style:e.normalizeStyle({color:e.unref(o).muted})},[e.renderSlot(k.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),k.$slots.acao||t.botaoVisivel?(e.openBlock(),e.createElementBlock("div",Bt,[e.renderSlot(k.$slots,"acao",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-base__link text-xs inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(o).text}),onClick:_},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1),F[0]||(F[0]=e.createElementVNode("span",{class:"card-base__chevron","aria-hidden":"true"},"›",-1))],4)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),k.$slots.footer?(e.openBlock(),e.createElementBlock("div",Et,[e.renderSlot(k.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-9fab1924"]]),Ct={install(t){t.component("ChartBase",Q),t.component("CardBase",de),t.component("CardLinhas",le),t.component("CardPizza",ne),t.component("CardBarra",ie),t.component("CardPolar",se),t.component("CardProgresso",ce)}};q.CardBarra=ie,q.CardBase=de,q.CardLinhas=le,q.CardPizza=ne,q.CardPolar=se,q.CardProgresso=ce,q.ChartBase=Q,q.ICONE_EXPORTAR_SVG=v,q.clampHorizontal=Z,q.criarTooltipEl=te,q.default=Ct,q.exportarElementoComoImagem=K,q.prepararTooltipParent=U,q.toRgba=T,q.useFormatadorValor=ee,q.useTema=G,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("chart.js")):typeof define=="function"&&define.amd?define(["exports","vue","chart.js"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.NemesisChart={},L.Vue,L.Chart))})(this,function(L,e,X){"use strict";const Q=(t,m)=>{const o=t.__vccOpts||t;for(const[s,a]of m)o[s]=a;return o},G=Q({__name:"ChartBase",props:{type:{type:String,required:!0},data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},height:{type:[String,Number],default:300},width:{type:[String,Number],default:null}},setup(t,{expose:m}){X.Chart.register(X.Title,X.Tooltip,X.Legend,X.Filler,X.LineController,X.LineElement,X.PointElement,X.BarController,X.BarElement,X.PieController,X.PolarAreaController,X.ArcElement,X.CategoryScale,X.LinearScale,X.RadialLinearScale);const o=t,s=e.ref(null),a=e.shallowRef(null),b={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"top"}}};function y(){return{...b,...o.options}}function S(){s.value&&(a.value=new X.Chart(s.value,{type:o.type,data:o.data,options:y(),plugins:o.plugins}))}function F(){a.value&&(a.value.destroy(),a.value=null)}return e.onMounted(S),e.onBeforeUnmount(F),e.watch(()=>o.data,k=>{if(!a.value)return;a.value.data.labels=k.labels;const E=a.value.data.datasets,B=k.datasets;E.length!==B.length?a.value.data.datasets=B:B.forEach((M,P)=>Object.assign(E[P],M)),a.value.update()},{deep:!0}),e.watch(()=>o.options,()=>{a.value&&(a.value.options=y(),a.value.update())},{deep:!0}),m({chart:a}),(k,E)=>(e.openBlock(),e.createElementBlock("div",{class:"nc-chart-wrapper w-full",style:e.normalizeStyle({height:typeof t.height=="number"?`${t.height}px`:t.height,width:t.width?typeof t.width=="number"?`${t.width}px`:t.width:"100%"})},[e.createElementVNode("canvas",{ref_key:"canvasRef",ref:s},null,512)],4))}},[["__scopeId","data-v-9828990e"]]);function Se(t){const m=t.replace("#",""),o=m.length===3?m.split("").map(M=>M+M).join(""):m,s=parseInt(o.slice(0,2),16)/255,a=parseInt(o.slice(2,4),16)/255,b=parseInt(o.slice(4,6),16)/255,y=Math.max(s,a,b),S=Math.min(s,a,b),F=(y+S)/2;if(y===S)return[0,0,F*100];const k=y-S,E=F>.5?k/(2-y-S):k/(y+S);let B;return y===s?B=((a-b)/k+(a<b?6:0))/6:y===a?B=((b-s)/k+2)/6:B=((s-a)/k+4)/6,[B*360,E*100,F*100]}function ke(t,m,o){t/=360,m/=100,o/=100;const s=o<.5?o*(1+m):o+m-o*m,a=2*o-s,b=k=>(k<0&&(k+=1),k>1&&(k-=1),k<1/6?a+(s-a)*6*k:k<1/2?s:k<2/3?a+(s-a)*(2/3-k)*6:a),y=m===0?o:b(t+1/3),S=m===0?o:b(t),F=m===0?o:b(t-1/3);return"#"+[y,S,F].map(k=>Math.round(k*255).toString(16).padStart(2,"0")).join("")}function ne(t,m=7){if(!(t!=null&&t.startsWith("#")))return Array.from({length:m},()=>t??"#3B82F6");const[o,s]=Se(t),a=20,b=72;return Array.from({length:m},(y,S)=>{const F=m===1?.5:S/(m-1),k=a+F*(b-a),E=Math.max(50,s-Math.max(0,k-55)*.6);return ke(o,E,k)})}const Be={light:{bg:"#ffffff",text:"#000000",muted:"#64748B",grid:"rgba(15,23,42,0.06)"},dark:{bg:"#000000",text:"#ffffff",muted:"#7b7b7b",grid:"rgba(255,255,255,0.08)"},transparent:{bg:"transparent",text:"inherit",muted:"#7b7b7b",grid:"rgba(127,127,127,0.15)"}};function A(t,m){if(!t)return`rgba(59,130,246,${m})`;if(t.startsWith("#")){const o=t.replace("#",""),s=o.length===3?o.split("").map(S=>S+S).join(""):o,a=parseInt(s.slice(0,2),16),b=parseInt(s.slice(2,4),16),y=parseInt(s.slice(4,6),16);return`rgba(${a},${b},${y},${m})`}if(t.startsWith("rgb")){const o=t.match(/[\d.]+/g);if(o&&o.length>=3)return`rgba(${o[0]},${o[1]},${o[2]},${m})`}return t}function U(t){const m=e.computed(()=>{const s=Be[t.tema],a=s?{...s,bg:t.corFundo||s.bg}:{bg:t.corFundo||t.tema,text:"#F8FAFC",muted:"#7b7b7b",grid:"rgba(255,255,255,0.08)"};return{...a,text:t.corTexto||a.text,muted:t.corTexto||a.muted}}),o=e.computed(()=>({background:m.value.bg,color:m.value.text,borderRadius:typeof t.borderRadius=="number"?`${t.borderRadius}px`:t.borderRadius,boxShadow:t.sombra,border:t.corBorda?`1px solid ${t.corBorda}`:"none"}));return{palette:m,cardStyle:o,toRgba:A}}function te(t){const m=e.computed(()=>t.tipoValor==="moeda"?new Intl.NumberFormat(t.locale,{style:"currency",currency:t.moeda}):t.tipoValor==="percentual"?new Intl.NumberFormat(t.locale,{style:"percent",maximumFractionDigits:2}):new Intl.NumberFormat(t.locale,{maximumFractionDigits:2}));function o(s){if(s==null)return"";const a=Number(s);return Number.isNaN(a)?String(s):t.tipoValor==="percentual"?m.value.format(a/100):m.value.format(a)}return{formatador:m,formatar:o}}function oe(t,{caretFlexivel:m=!1}={}){let o=t.querySelector(".nc-tt");if(o)return o;o=document.createElement("div"),o.className="nc-tt",Object.assign(o.style,{position:"absolute",pointerEvents:"none",transform:m?"translateX(-50%)":"translate(-50%, calc(-100% - 16px))",transition:"opacity .18s ease, left .12s ease, top .12s ease",opacity:"0",background:"#ffffff",borderRadius:"10px",padding:"8px 11px",boxShadow:"0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.12)",border:"1px solid rgba(15,23,42,.06)",minWidth:"90px",whiteSpace:"nowrap",zIndex:"10",fontFamily:"inherit",textAlign:"left"});const s=document.createElement("div");s.className="nc-tt__caret";const a={position:"absolute",left:"50%",width:"10px",height:"10px",background:"#ffffff",transform:"translateX(-50%) rotate(45deg)",borderRadius:"2px"};m?Object.assign(s.style,a):Object.assign(s.style,a,{bottom:"-5px",borderRight:"1px solid rgba(15,23,42,.06)",borderBottom:"1px solid rgba(15,23,42,.06)"}),o.appendChild(s);const b=document.createElement("div");return b.className="nc-tt__content",Object.assign(b.style,{position:"relative",background:"#fff",borderRadius:"8px"}),o.appendChild(b),t.appendChild(o),o}function Z(t){const m=t.canvas.parentNode;return m?(getComputedStyle(m).position==="static"&&(m.style.position="relative"),m):null}function K(t,m,o,s=4){const a=m/2;return t-a<s?a+s:t+a>o-s?o-a-s:t}function le(t,m){const o=window.getComputedStyle(t);let s="";for(let a=0;a<o.length;a++){const b=o[a];let y=o.getPropertyValue(b);if(y&&y.indexOf("url(")!==-1&&!/url\(["']?data:/.test(y))if(b==="background-image"||b==="background"||b==="mask-image"||b==="border-image"||b==="border-image-source")y="none";else continue;s+=`${b}:${y};`}m.setAttribute("style",s)}function Ee(t,m){le(t,m);const o=t.querySelectorAll("*"),s=m.querySelectorAll("*");for(let a=0;a<o.length;a++)s[a]&&le(o[a],s[a])}function Ce(t,m){const o=t.querySelectorAll("canvas"),s=m.querySelectorAll("canvas");o.forEach((a,b)=>{if(!s[b])return;const y=document.createElement("img");try{y.src=a.toDataURL("image/png")}catch{return}const S=a.getBoundingClientRect();y.setAttribute("style",`width:${S.width}px;height:${S.height}px;display:block;`),s[b].replaceWith(y)})}async function _(t,m={}){if(!t)return;const{nomeArquivo:o="componente.png",escala:s=2,corFundo:a=null}=m,b=t.getBoundingClientRect(),y=Math.ceil(b.width),S=Math.ceil(b.height),F=t.cloneNode(!0);Ee(t,F),Ce(t,F),F.style.margin="0",F.style.transform="none";const k=new XMLSerializer().serializeToString(F),E=`<svg xmlns="http://www.w3.org/2000/svg" width="${y}" height="${S}"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml" style="width:${y}px;height:${S}px;">`+k+"</div></foreignObject></svg>",M="data:image/svg+xml;base64,"+(typeof window<"u"&&window.btoa?window.btoa(unescape(encodeURIComponent(E))):""),P=new Image;await new Promise((V,j)=>{P.onload=V,P.onerror=j,P.src=M});const Y=document.createElement("canvas");Y.width=y*s,Y.height=S*s;const J=Y.getContext("2d");J.scale(s,s),a&&(J.fillStyle=a,J.fillRect(0,0,y,S)),J.drawImage(P,0,0);let i;try{i=Y.toDataURL("image/png")}catch(V){console.error("Falha ao exportar imagem: canvas contaminado.",V);return}const $=document.createElement("a");$.download=o,$.href=i,document.body.appendChild($),$.click(),document.body.removeChild($)}const v='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',$e={class:"card-linhas__header flex flex-column"},Ve={class:"card-linhas__topo flex align-items-start justify-content-between gap-3"},Ne={key:0,class:"nc-legendas-flex flex flex-column"},Te={key:1,class:"nc-actions inline-flex align-items-center gap-2"},ze=["innerHTML"],Ae={key:0,class:"card-linhas__titulos mt-3 mb-2 flex flex-column"},we={class:"card-linhas__chart flex-1"},Re={key:0,class:"card-linhas__footer mt-3"},se=Q({__name:"CardLinhas",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corDetalhes:{type:String,default:"#3B82F6"},corTexto:{type:String,default:null},textoBotao:{type:String,default:"Ver mais"},direcao:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},botaoVisivel:{type:Boolean,default:!1},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Jan",quantidade:22},{rotulo:"Fev",quantidade:35},{rotulo:"Mar",quantidade:28},{rotulo:"Abr",quantidade:45},{rotulo:"Mai",quantidade:30},{rotulo:"Jun",quantidade:55},{rotulo:"Jul",quantidade:42},{rotulo:"Ago",quantidade:60},{rotulo:"Set",quantidade:48},{rotulo:"Out",quantidade:70},{rotulo:"Nov",quantidade:58},{rotulo:"Dez",quantidade:75}]},height:{type:[String,Number],default:280},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corBorda:{type:String,default:"#EAE8E8"},linhasReferencia:{type:[Object,Array],default:null},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-linhas.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:m}){const o=t,s=m,{palette:a,cardStyle:b}=U(o),{formatar:y}=te(o),S=e.ref(null),F=v;async function k(){await _(S.value,{nomeArquivo:o.nomeArquivoExport,corFundo:a.value.bg!=="transparent"?a.value.bg:null}),s("exportado")}const E=e.computed(()=>`card-linhas--${o.direcao}`),B=e.computed(()=>o.linhasReferencia?(Array.isArray(o.linhasReferencia)?o.linhasReferencia:[o.linhasReferencia]).filter(d=>d&&(typeof d=="number"||typeof d.valor=="number")).map(d=>typeof d=="number"?{valor:d,rotulo:null,cor:"#0F172A",corRotulo:"#0F172A",corTexto:"#FFFFFF",tracejado:[6,6],espessura:1}:{valor:d.valor,rotulo:d.rotulo??null,cor:d.cor||"#0F172A",corRotulo:d.corRotulo||d.cor||"#0F172A",corTexto:d.corTexto||"#FFFFFF",tracejado:d.tracejado||[6,6],espessura:d.espessura??1}):[]),M=[];let P=null;const Y={id:"linhaReferencia",afterDatasetsDraw(c){const d=B.value;if(M.length=0,!d.length)return;const{ctx:l,chartArea:g,scales:n}=c,p=n.y;p&&d.forEach(r=>{const f=p.getPixelForValue(r.valor);if(M.push({linha:r,pos:f,chartArea:g}),l.save(),l.beginPath(),l.setLineDash(r.tracejado),l.lineWidth=r.espessura,l.strokeStyle=r.cor,f<g.top||f>g.bottom){l.restore();return}if(l.moveTo(g.left,f),l.lineTo(g.right,f),l.stroke(),l.setLineDash([]),r.rotulo){l.font="600 11px 'Inter', sans-serif";const u=8,N=5,C=l.measureText(r.rotulo).width,h=12,w=C+u*2,H=h+N*2,I=H/2;let z=g.left-w-6,q=f-H/2;z<0&&(z=g.left+6),l.fillStyle=r.corRotulo,l.beginPath(),l.roundRect?l.roundRect(z,q,w,H,I):(l.moveTo(z+I,q),l.lineTo(z+w-I,q),l.quadraticCurveTo(z+w,q,z+w,q+I),l.lineTo(z+w,q+H-I),l.quadraticCurveTo(z+w,q+H,z+w-I,q+H),l.lineTo(z+I,q+H),l.quadraticCurveTo(z,q+H,z,q+H-I),l.lineTo(z,q+I),l.quadraticCurveTo(z,q,z+I,q)),l.fill(),l.fillStyle=r.corTexto,l.textBaseline="middle",l.textAlign="center",l.fillText(r.rotulo,z+w/2,q+H/2)}l.restore()})},beforeEvent(c,d){if(!M.length){P=null;return}const l=d.event;if(!l||l.type==="mouseout"||l.x==null||l.y==null){P=null;return}const g=8;let n=null,p=1/0;for(const r of M){const f=Math.abs(l.y-r.pos),u=l.x>=r.chartArea.left&&l.x<=r.chartArea.right;f<=g&&u&&f<p&&(p=f,n=r)}P=n},afterEvent(c,d){if(!M.length)return;const l=d.event;if(!l)return;const g=Z(c);if(!g)return;let n=g.querySelector(".nc-tt-linhaRef");if(!P){n&&(n.style.opacity="0");return}const p=P;n||(n=document.createElement("div"),n.className="nc-tt-linhaRef",Object.assign(n.style,{position:"absolute",pointerEvents:"none",transform:"translate(-50%, calc(-100% - 12px))",transition:"opacity .18s ease, left .12s ease, top .12s ease",opacity:"0",background:"#ffffff",borderRadius:"10px",padding:"8px 11px",boxShadow:"0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.12)",border:"1px solid rgba(15,23,42,.06)",whiteSpace:"nowrap",zIndex:"11",fontFamily:"'Inter', sans-serif",textAlign:"left"}),g.appendChild(n));const r=p.linha.cor||"#0F172A",f=y(p.linha.valor),u=p.linha.rotulo;n.innerHTML=(u?`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${u}</div>`:"")+`<div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${r};box-shadow:0 0 0 2px ${A(r,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${f}</span></div>`;const N=c.canvas;n.style.opacity="1",n.style.visibility="hidden",n.style.left="0px",n.style.top="0px";const x=n.offsetWidth,C=n.offsetHeight,h=4,w=N.offsetLeft+l.x,H=N.offsetTop+p.pos,I=K(w,x,g.clientWidth,h);let z=H;const q=C+16+h;z<q&&(z=q),n.style.left=I+"px",n.style.top=z+"px",n.style.visibility="visible"}},J=e.computed(()=>B.value.length?[Y]:[]),i=e.computed(()=>({labels:o.data.map(c=>c.rotulo),datasets:[{data:o.data.map(c=>c.quantidade),borderColor:o.corDetalhes,borderWidth:3,borderJoinStyle:"round",borderCapStyle:"round",backgroundColor:c=>{const{chart:d}=c,{ctx:l,chartArea:g}=d;if(!g)return"transparent";const n=o.corDetalhes||"#0400FF",p="#7C7C7C",r=l.createLinearGradient(0,g.top,0,g.bottom);return r.addColorStop(.16,A(n,.2)),r.addColorStop(1,A(p,0)),r},fill:!0,tension:.45,pointRadius:0,pointHoverRadius:6,pointHoverBorderWidth:3,pointHoverBackgroundColor:o.corDetalhes,pointHoverBorderColor:a.value.bg==="transparent"?"#fff":a.value.bg,clip:!1}]}));function $(c){const{chart:d,tooltip:l}=c,g=Z(d);if(!g)return;const n=oe(g);if(l.opacity===0||P){n.style.opacity="0";return}const p=l.title||[],r=(l.body||[]).flatMap(R=>R.lines),f=n.querySelector(".nc-tt__content"),u=o.corDetalhes||"#3B82F6";f.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${p.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${u};box-shadow:0 0 0 2px ${A(u,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${r.join(" ")}</span></div>`;const{offsetLeft:N,offsetTop:x}=d.canvas;n.style.opacity="1",n.style.visibility="hidden",n.style.left="0px",n.style.top="0px";const C=n.offsetWidth,h=n.offsetHeight,w=4,H=N+l.caretX,I=x+l.caretY,z=K(H,C,g.clientWidth,w),q=h+16+w,O=I<q;let W;O?(n.style.transform="translateX(-50%) translateY(16px)",W=I):(n.style.transform="translate(-50%, calc(-100% - 16px))",W=I),n.style.left=z+"px",n.style.top=W+"px";const T=n.querySelector(".nc-tt__caret");if(T){const R=H-z,D=C/2,re=Math.max(-D+8,Math.min(D-8,R));T.style.left=`calc(50% + ${re}px)`,O?(T.style.bottom="",T.style.top="-5px",T.style.borderRight="",T.style.borderBottom="",T.style.borderLeft="1px solid rgba(15,23,42,.06)",T.style.borderTop="1px solid rgba(15,23,42,.06)"):(T.style.top="",T.style.bottom="-5px",T.style.borderLeft="",T.style.borderTop="",T.style.borderRight="1px solid rgba(15,23,42,.06)",T.style.borderBottom="1px solid rgba(15,23,42,.06)")}n.style.visibility="visible"}const V=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{intersect:!1,mode:"index"},layout:{padding:{top:B.value.length?24:0,right:0,bottom:0,left:0}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:$,callbacks:{title:c=>{var d;return((d=c[0])==null?void 0:d.label)??""},label:c=>y(c.parsed.y)}}},scales:{x:{display:!0,afterFit:c=>{c.paddingLeft=0,c.paddingRight=0},grid:{display:!1,drawBorder:!1},border:{display:!1},ticks:{color:a.value.muted,font:{size:10,family:"'Inter', sans-serif"},padding:8,align:"inner"}},y:{display:!1,grid:{display:!1},beginAtZero:!0,suggestedMax:B.value.length?Math.max(...B.value.map(c=>c.valor)):void 0}}}));function j(){s("botaoAcao")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:S,class:e.normalizeClass(["card-linhas p-4 flex",E.value]),style:e.normalizeStyle(e.unref(b))},[e.createElementVNode("div",$e,[e.createElementVNode("div",Ve,[c.$slots.legenda||t.legenda||c.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",Ne,[c.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(a).text,opacity:.85})},[e.renderSlot(c.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),c.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(c.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",Te,[e.renderSlot(c.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nc-btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(a).text,borderColor:e.unref(A)(e.unref(a).text,.18)}),onClick:j},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nc-exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:k,innerHTML:e.unref(F)},null,12,ze)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),c.$slots.titulo||t.titulo||c.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",Ae,[c.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(a).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(c.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),c.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm mt-1",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(c.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",we,[e.createVNode(G,{type:"line",data:i.value,options:V.value,plugins:J.value,height:t.height},null,8,["data","options","plugins","height"])]),c.$slots.footer?(e.openBlock(),e.createElementBlock("div",Re,[e.renderSlot(c.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-364ce1d1"]]),Fe={class:"card-pizza__topo flex align-items-start justify-content-between gap-3"},qe={key:0,class:"nc-legendas-flex flex flex-column"},De={key:1,class:"nc-actions inline-flex align-items-center gap-2"},Le=["innerHTML"],Me={class:"card-pizza__corpo flex align-items-center"},He={class:"nc-tabela flex flex-column"},Pe={class:"nc-tabela-valor"},je={class:"nc-tabela-rotulo inline-flex align-items-center gap-2"},Ie={class:"nc-tabela-valor"},Oe={class:"card-pizza__chart-wrap flex align-items-center justify-content-center"},We={class:"card-pizza__chart"},Xe={key:0,class:"nc-centro flex flex-column align-items-center justify-content-center"},Ye={key:0,class:"card-pizza__footer mt-3"},ie=Q({__name:"CardPizza",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corDetalhes:{type:String,default:"#3B82F6"},textoBotao:{type:String,default:"Ver mais"},botaoVisivel:{type:Boolean,default:!1},direcao:{type:String,default:"right",validator:t=>["left","right","top","bottom"].includes(t)},rotuloCategoria:{type:String,default:"Categoria"},rotuloQuantidade:{type:String,default:"Quantidade"},mostrarCabecalho:{type:Boolean,default:!0},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:4200},{rotulo:"Serviços",quantidade:3100},{rotulo:"Assinaturas",quantidade:2450},{rotulo:"Licenças",quantidade:1800},{rotulo:"Suporte",quantidade:1250},{rotulo:"Treinamentos",quantidade:820},{rotulo:"Outros",quantidade:410}]},height:{type:[String,Number],default:260},cutout:{type:[String,Number],default:"70%"},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-pizza.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:m}){const o=t,s=m,{palette:a,cardStyle:b}=U(o),{formatar:y}=te(o),S=e.ref(null);async function F(){await _(S.value,{nomeArquivo:o.nomeArquivoExport,corFundo:a.value.bg!=="transparent"?a.value.bg:null}),s("exportado")}const k=e.computed(()=>`card-pizza--${o.direcao}`),E=e.computed(()=>{const i=ne(o.corDetalhes,o.data.length);return o.data.map(($,V)=>$.cor??i[V])}),B=e.computed(()=>({labels:o.data.map(i=>i.rotulo),datasets:[{data:o.data.map(i=>i.quantidade),backgroundColor:E.value,borderWidth:0,borderColor:"transparent",hoverOffset:6,borderRadius:0,spacing:0}]}));function M(i){const{chart:$,tooltip:V}=i,j=Z($);if(!j)return;const c=oe(j);if(V.opacity===0){c.style.opacity="0";return}const d=V.title||[],l=V.dataPoints&&V.dataPoints[0],g=l?E.value[l.dataIndex]:"#3B82F6",n=l?y(l.parsed):"",p=c.querySelector(".nc-tt__content");p.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${d.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${g};box-shadow:0 0 0 2px ${A(g,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${n}</span></div>`;const{offsetLeft:r,offsetTop:f}=$.canvas;c.style.opacity="1",c.style.visibility="hidden",c.style.left="0px",c.style.top="0px";const u=c.offsetWidth,N=c.offsetHeight,x=4,C=K(r+V.caretX,u,j.clientWidth,x);let h=f+V.caretY;const w=N+16+x;h<w&&(h=w),c.style.left=C+"px",c.style.top=h+"px",c.style.visibility="visible"}const P=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,cutout:o.cutout,layout:{padding:4},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:M,callbacks:{title:i=>{var $;return(($=i[0])==null?void 0:$.label)??""},label:i=>y(i.parsed)}}}}));function Y(){s("botaoAcao")}const J=v;return(i,$)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:S,class:e.normalizeClass(["card-pizza p-4 flex flex-column",k.value]),style:e.normalizeStyle(e.unref(b))},[e.createElementVNode("div",Fe,[i.$slots.legenda||t.legenda||i.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",qe,[i.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(a).text,opacity:.95})},[e.renderSlot(i.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),i.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(i.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),i.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",De,[e.renderSlot(i.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nc-btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(a).text,borderColor:e.unref(A)(e.unref(a).text,.18)}),onClick:Y},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nc-exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:F,innerHTML:e.unref(J)},null,12,Le)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Me,[e.createElementVNode("div",He,[t.mostrarCabecalho?(e.openBlock(),e.createElementBlock("div",{key:0,class:"nc-tabela-cab flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).muted,.25)})},[e.createElementVNode("span",null,e.toDisplayString(t.rotuloCategoria),1),e.createElementVNode("span",Pe,e.toDisplayString(t.rotuloQuantidade),1)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(V,j)=>(e.openBlock(),e.createElementBlock("div",{key:j,class:"nc-tabela-linha flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(a).text})},[e.createElementVNode("span",je,[e.createElementVNode("span",{class:"nc-bolinha",style:e.normalizeStyle({background:E.value[j]})},null,4),e.createElementVNode("span",null,e.toDisplayString(V.rotulo),1)]),e.createElementVNode("span",Ie,e.toDisplayString(e.unref(y)(V.quantidade)),1)],4))),128))]),e.createElementVNode("div",Oe,[e.createElementVNode("div",We,[e.createVNode(G,{type:"doughnut",data:B.value,options:P.value,height:t.height},null,8,["data","options","height"]),i.$slots.titulo||t.titulo||i.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",Xe,[i.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"nc-centro-titulo m-0 font-semibold",style:e.normalizeStyle({color:e.unref(a).text})},[e.renderSlot(i.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),i.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"nc-centro-desc",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(i.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),i.$slots.footer?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-2a65258f"]]),Je={class:"card-barra__header flex flex-column"},Qe={class:"card-barra__topo flex align-items-start justify-content-between gap-3"},Ge={key:0,class:"nc-legendas-flex flex flex-column"},Ue={key:1,class:"nc-actions inline-flex align-items-center gap-2"},Ze=["innerHTML"],Ke={key:0,class:"card-barra__titulos mt-3 mb-2 flex flex-column"},_e={class:"card-barra__chart flex-1"},ve={key:0,class:"card-barra__footer mt-3"},ce=Q({__name:"CardBarra",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corDetalhes:{type:String,default:"#3B82F6"},corTexto:{type:String,default:null},textoBotao:{type:String,default:"Ver mais"},direcao:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},botaoVisivel:{type:Boolean,default:!1},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Jan",quantidade:22},{rotulo:"Fev",quantidade:35},{rotulo:"Mar",quantidade:28},{rotulo:"Abr",quantidade:45},{rotulo:"Mai",quantidade:30},{rotulo:"Jun",quantidade:55},{rotulo:"Jul",quantidade:42},{rotulo:"Ago",quantidade:60},{rotulo:"Set",quantidade:48},{rotulo:"Out",quantidade:70},{rotulo:"Nov",quantidade:58},{rotulo:"Dez",quantidade:75}]},series:{type:Array,default:null},cores:{type:Array,default:()=>["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#06B6D4","#EC4899"]},orientacao:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},empilhado:{type:Boolean,default:!1},mostrarLegendaSeries:{type:Boolean,default:!0},height:{type:[String,Number],default:280},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corBorda:{type:String,default:"#EAE8E8"},larguraBarra:{type:[String,Number],default:.92},raioBarra:{type:Number,default:6},linhasReferencia:{type:[Object,Array],default:null},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-barra.png"},corHover:{type:String,default:null}},emits:["botaoAcao","exportado"],setup(t,{emit:m}){const o=t,s=m,{palette:a,cardStyle:b}=U(o),{formatar:y}=te(o),S=e.ref(null),F=v;async function k(){await _(S.value,{nomeArquivo:o.nomeArquivoExport,corFundo:a.value.bg!=="transparent"?a.value.bg:null}),s("exportado")}const E=e.computed(()=>`card-barra--${o.direcao}`),B=e.computed(()=>o.orientacao==="horizontal"),M=e.computed(()=>Array.isArray(o.series)&&o.series.length>0?o.series.map((n,p)=>({nome:n.nome??`Série ${p+1}`,cor:n.cor||o.cores[p%o.cores.length],dados:Array.isArray(n.dados)?n.dados:[]})):[{nome:o.legenda||"Valores",cor:o.corDetalhes,dados:o.data}]),P=e.computed(()=>{const n=M.value[0];return n?n.dados.map(p=>p.rotulo):[]}),Y=e.computed(()=>{const n=M.value,p=n.length-1,r=typeof o.larguraBarra=="number"?o.larguraBarra:Number(o.larguraBarra)||.6,f=o.raioBarra,u=B.value;function N(x){if(!o.empilhado||n.length===1)return f;const C=x===0,h=x===p;return u?{topLeft:C?f:0,bottomLeft:C?f:0,topRight:h?f:0,bottomRight:h?f:0}:{bottomLeft:C?f:0,bottomRight:C?f:0,topLeft:h?f:0,topRight:h?f:0}}return{labels:P.value,datasets:n.map((x,C)=>({label:x.nome,data:x.dados.map(h=>h.quantidade),previstos:x.dados.map(h=>h.previsto!=null?h.previsto:null),backgroundColor:A(x.cor,.72),hoverBackgroundColor:o.corHover||x.cor,borderWidth:0,borderRadius:N(C),borderSkipped:!1,categoryPercentage:1,barPercentage:r}))}});function J(n,p){p?Object.assign(n.style,{top:"-5px",bottom:"auto",borderTop:"1px solid rgba(15,23,42,.06)",borderLeft:"1px solid rgba(15,23,42,.06)",borderRight:"none",borderBottom:"none"}):Object.assign(n.style,{bottom:"-5px",top:"auto",borderRight:"1px solid rgba(15,23,42,.06)",borderBottom:"1px solid rgba(15,23,42,.06)",borderTop:"none",borderLeft:"none"})}let i=null;function $(n){var be,he;const{chart:p,tooltip:r}=n,f=Z(p);if(!f)return;const u=oe(f,{caretFlexivel:!0});if(r.opacity===0||i){u.style.opacity="0";return}const N=r.title||[],x=r.dataPoints||[],C=u.querySelector(".nc-tt__content"),h=x.map(ee=>{var xe;const ae=((xe=M.value[ee.datasetIndex])==null?void 0:xe.cor)||o.corDetalhes,Ht=y(B.value?ee.parsed.x:ee.parsed.y),Pt=ee.dataset.label&&M.value.length>1?`<span style="font-size:11px;color:#64748B;margin-right:6px;">${ee.dataset.label}</span>`:"";return`<div style="display:flex;align-items:center;gap:6px;margin-top:2px;"><span style="width:6px;height:6px;border-radius:999px;background:${ae};box-shadow:0 0 0 2px ${A(ae,.15)};flex:0 0 auto;"></span>`+Pt+`<span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;margin-left:auto;">${Ht}</span></div>`}).join(""),w=(be=x[0])==null?void 0:be.dataIndex;let H=null;if(w!=null)for(const ee of p.data.datasets){const ae=(he=ee.previstos)==null?void 0:he[w];if(ae!=null){H=ae;break}}const I=H!=null?`<div style="display:flex;align-items:center;gap:6px;margin-top:6px;padding-top:4px;border-top:1px dashed rgba(15,23,42,.08);"><span style="font-size:11px;color:#64748B;margin-right:6px;">Previsto</span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;margin-left:auto;">${y(H)}</span></div>`:"";C.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${N.join(" ")}</div>`+h+I;const{offsetLeft:z,offsetTop:q}=p.canvas;u.style.opacity="1",u.style.visibility="hidden",u.style.left="0px",u.style.top="0px";const O=u.offsetWidth,W=u.offsetHeight,T=4,R=z+r.caretX,D=q+r.caretY,re=K(R,O,f.clientWidth,T),qt=O/2,pe=14,ue=D-pe-W,ge=ue<T,Dt=ge?D+pe:ue,ye=u.querySelector(".nc-tt__caret");J(ye,ge);const Lt=R-(re-qt),Mt=Math.max(10,Math.min(O-10,Lt));ye.style.left=Mt+"px",u.style.left=re+"px",u.style.top=Dt+"px",u.style.visibility="visible"}const V=e.computed(()=>{const n=B.value,p={grid:{display:!1,drawBorder:!1},border:{display:!1},ticks:{color:a.value.muted,font:{size:10,family:"'Inter', sans-serif"},padding:8},stacked:o.empilhado},r={display:!1,grid:{display:!1},beginAtZero:!0,stacked:o.empilhado,suggestedMax:c.value.length?Math.max(...c.value.map(f=>f.valor)):void 0};return{responsive:!0,maintainAspectRatio:!1,indexAxis:n?"y":"x",interaction:{intersect:!1,mode:"index",axis:n?"y":"x"},layout:{padding:{top:c.value.length&&!n?24:12,right:n?12:0,bottom:0,left:c.value.length&&n?60:0}},plugins:{legend:{display:o.mostrarLegendaSeries&&M.value.length>1,position:"bottom",align:"start",labels:{color:a.value.muted,boxWidth:8,boxHeight:8,usePointStyle:!0,pointStyle:"circle",font:{size:10,family:"'Inter', sans-serif"},padding:12}},tooltip:{enabled:!1,external:$,callbacks:{title:f=>{var u;return((u=f[0])==null?void 0:u.label)??""},label:f=>y(n?f.parsed.x:f.parsed.y)}}},scales:{x:n?r:p,y:n?p:r}}});function j(){s("botaoAcao")}const c=e.computed(()=>o.linhasReferencia?(Array.isArray(o.linhasReferencia)?o.linhasReferencia:[o.linhasReferencia]).filter(p=>p&&(typeof p=="number"||typeof p.valor=="number")).map(p=>typeof p=="number"?{valor:p,rotulo:null,cor:"#0F172A",corRotulo:"#0F172A",corTexto:"#FFFFFF",tracejado:[6,6],espessura:1}:{valor:p.valor,rotulo:p.rotulo??null,cor:p.cor||"#0F172A",corRotulo:p.corRotulo||p.cor||"#0F172A",corTexto:p.corTexto||"#FFFFFF",tracejado:p.tracejado||[6,6],espessura:p.espessura??1}):[]),d=[],l={id:"linhaReferencia",afterDatasetsDraw(n){const p=c.value;if(d.length=0,!p.length)return;const{ctx:r,chartArea:f,scales:u}=n,N=B.value,x=N?u.x:u.y;x&&p.forEach(C=>{const h=x.getPixelForValue(C.valor);if(d.push({linha:C,pos:h,horizontal:N,chartArea:f}),r.save(),r.beginPath(),r.setLineDash(C.tracejado),r.lineWidth=C.espessura,r.strokeStyle=C.cor,N){if(h<f.left||h>f.right){r.restore();return}r.moveTo(h,f.top),r.lineTo(h,f.bottom)}else{if(h<f.top||h>f.bottom){r.restore();return}r.moveTo(f.left,h),r.lineTo(f.right,h)}if(r.stroke(),r.setLineDash([]),C.rotulo){r.font="600 11px 'Inter', sans-serif";const w=8,H=5,z=r.measureText(C.rotulo).width,q=12,O=z+w*2,W=q+H*2,T=W/2;let R,D;N?(R=h-O/2,D=f.top-W-6,D<0&&(D=f.top+6)):(R=f.left-O-6,D=h-W/2,R<0&&(R=f.left+6)),r.fillStyle=C.corRotulo,r.beginPath(),r.roundRect?r.roundRect(R,D,O,W,T):(r.moveTo(R+T,D),r.lineTo(R+O-T,D),r.quadraticCurveTo(R+O,D,R+O,D+T),r.lineTo(R+O,D+W-T),r.quadraticCurveTo(R+O,D+W,R+O-T,D+W),r.lineTo(R+T,D+W),r.quadraticCurveTo(R,D+W,R,D+W-T),r.lineTo(R,D+T),r.quadraticCurveTo(R,D,R+T,D)),r.fill(),r.fillStyle=C.corTexto,r.textBaseline="middle",r.textAlign="center",r.fillText(C.rotulo,R+O/2,D+W/2)}r.restore()})},beforeEvent(n,p){if(!d.length){i=null;return}const r=p.event;if(!r||r.type==="mouseout"||r.x==null||r.y==null){i=null;return}const f=8;let u=null,N=1/0;for(const x of d){const C=x.horizontal?Math.abs(r.x-x.pos):Math.abs(r.y-x.pos),h=x.horizontal?r.y>=x.chartArea.top&&r.y<=x.chartArea.bottom:r.x>=x.chartArea.left&&r.x<=x.chartArea.right;C<=f&&h&&C<N&&(N=C,u=x)}i=u},afterEvent(n,p){if(!d.length)return;const r=p.event;if(!r)return;const f=Z(n);if(!f)return;let u=f.querySelector(".nc-tt-linhaRef");if(!i){u&&(u.style.opacity="0");return}const N=i;u||(u=document.createElement("div"),u.className="nc-tt-linhaRef",Object.assign(u.style,{position:"absolute",pointerEvents:"none",transform:"translate(-50%, calc(-100% - 12px))",transition:"opacity .18s ease, left .12s ease, top .12s ease",opacity:"0",background:"#ffffff",borderRadius:"10px",padding:"8px 11px",boxShadow:"0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.12)",border:"1px solid rgba(15,23,42,.06)",whiteSpace:"nowrap",zIndex:"11",fontFamily:"'Inter', sans-serif",textAlign:"left"}),f.appendChild(u));const x=N.linha.cor||"#0F172A",C=y(N.linha.valor),h=N.linha.rotulo;u.innerHTML=(h?`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${h}</div>`:"")+`<div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${x};box-shadow:0 0 0 2px ${A(x,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${C}</span></div>`;const w=n.canvas;u.style.opacity="1",u.style.visibility="hidden",u.style.left="0px",u.style.top="0px";const H=u.offsetWidth,I=u.offsetHeight,z=4;let q,O;N.horizontal?(q=w.offsetLeft+N.pos,O=w.offsetTop+r.y):(q=w.offsetLeft+r.x,O=w.offsetTop+N.pos);const W=K(q,H,f.clientWidth,z);let T=O;const R=I+16+z;T<R&&(T=R),u.style.left=W+"px",u.style.top=T+"px",u.style.visibility="visible"}},g=e.computed(()=>c.value.length?[l]:[]);return(n,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:S,class:e.normalizeClass(["card-barra p-4 flex",E.value]),style:e.normalizeStyle(e.unref(b))},[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,[n.$slots.legenda||t.legenda||n.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",Ge,[n.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(a).text,opacity:.85})},[e.renderSlot(n.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),n.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(n.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",Ue,[e.renderSlot(n.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nc-btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(a).text,borderColor:e.unref(A)(e.unref(a).text,.18)}),onClick:j},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nc-exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:k,innerHTML:e.unref(F)},null,12,Ze)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),n.$slots.titulo||t.titulo||n.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",Ke,[n.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(a).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(n.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),n.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm mt-1",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(n.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_e,[e.createVNode(G,{type:"bar",data:Y.value,options:V.value,plugins:g.value,height:t.height},null,8,["data","options","plugins","height"])]),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(n.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-6eb3d4af"]]),et={class:"card-polar__topo flex align-items-start justify-content-between gap-3"},tt={key:0,class:"nc-legendas-flex flex flex-column"},ot={key:1,class:"nc-actions inline-flex align-items-center gap-2"},at=["innerHTML"],nt={class:"card-polar__corpo flex align-items-center"},rt={class:"nc-tabela flex flex-column"},lt={class:"nc-tabela-valor"},st={class:"nc-tabela-rotulo inline-flex align-items-center gap-2"},it={class:"nc-tabela-valor"},ct={class:"card-polar__chart-wrap flex align-items-center justify-content-center"},dt={class:"card-polar__chart"},mt={key:0,class:"card-polar__centro-bottom"},ft={key:0,class:"card-polar__footer mt-3"},de=Q({__name:"CardPolar",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corDetalhes:{type:String,default:"#3B82F6"},textoBotao:{type:String,default:"Ver mais"},botaoVisivel:{type:Boolean,default:!1},direcao:{type:String,default:"right",validator:t=>["left","right","top","bottom"].includes(t)},rotuloCategoria:{type:String,default:"Categoria"},rotuloQuantidade:{type:String,default:"Quantidade"},mostrarCabecalho:{type:Boolean,default:!0},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:4200},{rotulo:"Serviços",quantidade:3100},{rotulo:"Assinaturas",quantidade:2450},{rotulo:"Licenças",quantidade:1800},{rotulo:"Suporte",quantidade:1250},{rotulo:"Treinamentos",quantidade:820},{rotulo:"Outros",quantidade:410}]},height:{type:[String,Number],default:260},mostrarLinhasGrade:{type:Boolean,default:!0},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-polar.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:m}){const o=t,s=m,{palette:a,cardStyle:b}=U(o),{formatar:y}=te(o),S=e.ref(null),F=v;async function k(){await _(S.value,{nomeArquivo:o.nomeArquivoExport,corFundo:a.value.bg!=="transparent"?a.value.bg:null}),s("exportado")}const E=e.computed(()=>`card-polar--${o.direcao}`),B=e.computed(()=>{const i=ne(o.corDetalhes,o.data.length);return o.data.map(($,V)=>$.cor??i[V])}),M=e.computed(()=>({labels:o.data.map(i=>i.rotulo),datasets:[{data:o.data.map(i=>i.quantidade),backgroundColor:B.value,borderColor:B.value,borderWidth:0,hoverOffset:6}]}));function P(i){const{chart:$,tooltip:V}=i,j=Z($);if(!j)return;const c=oe(j);if(V.opacity===0){c.style.opacity="0";return}const d=V.title||[],l=V.dataPoints&&V.dataPoints[0],g=l?B.value[l.dataIndex]:"#3B82F6",n=l?y(l.parsed.r??l.parsed):"",p=c.querySelector(".nc-tt__content");p.innerHTML=`<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${d.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${g};box-shadow:0 0 0 2px ${A(g,.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${n}</span></div>`;const{offsetLeft:r,offsetTop:f}=$.canvas;c.style.opacity="1",c.style.visibility="hidden",c.style.left="0px",c.style.top="0px";const u=c.offsetWidth,N=c.offsetHeight,x=4,C=K(r+V.caretX,u,j.clientWidth,x);let h=f+V.caretY;const w=N+16+x;h<w&&(h=w),c.style.left=C+"px",c.style.top=h+"px",c.style.visibility="visible"}const Y=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,layout:{padding:4},scales:{r:{beginAtZero:!0,ticks:{display:!1,backdropColor:"transparent"},grid:{display:o.mostrarLinhasGrade,color:A(a.value.muted,.18)},angleLines:{display:o.mostrarLinhasGrade,color:A(a.value.muted,.18)},pointLabels:{display:!1}}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:P,callbacks:{title:i=>{var $;return(($=i[0])==null?void 0:$.label)??""},label:i=>{var $;return y((($=i.parsed)==null?void 0:$.r)??i.parsed)}}}}}));function J(){s("botaoAcao")}return(i,$)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:S,class:e.normalizeClass(["card-polar p-4 flex flex-column",E.value]),style:e.normalizeStyle(e.unref(b))},[e.createElementVNode("div",et,[i.$slots.legenda||t.legenda||i.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",tt,[i.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(a).text,opacity:.95})},[e.renderSlot(i.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),i.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(i.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),i.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(i.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nc-btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(a).text,borderColor:e.unref(A)(e.unref(a).text,.18)}),onClick:J},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nc-exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:k,innerHTML:e.unref(F)},null,12,at)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.createElementVNode("div",rt,[t.mostrarCabecalho?(e.openBlock(),e.createElementBlock("div",{key:0,class:"nc-tabela-cab flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).muted,.25)})},[e.createElementVNode("span",null,e.toDisplayString(t.rotuloCategoria),1),e.createElementVNode("span",lt,e.toDisplayString(t.rotuloQuantidade),1)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(V,j)=>(e.openBlock(),e.createElementBlock("div",{key:j,class:"nc-tabela-linha flex align-items-center justify-content-between",style:e.normalizeStyle({color:e.unref(a).text})},[e.createElementVNode("span",st,[e.createElementVNode("span",{class:"nc-bolinha",style:e.normalizeStyle({background:B.value[j]})},null,4),e.createElementVNode("span",null,e.toDisplayString(V.rotulo),1)]),e.createElementVNode("span",it,e.toDisplayString(e.unref(y)(V.quantidade)),1)],4))),128))]),e.createElementVNode("div",ct,[e.createElementVNode("div",dt,[e.createVNode(G,{type:"polarArea",data:M.value,options:Y.value,height:t.height},null,8,["data","options","height"]),i.$slots.titulo||t.titulo||i.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",mt,[i.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-polar__centro-titulo m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(a).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(i.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),i.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"card-polar__centro-desc",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(i.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),i.$slots.footer?(e.openBlock(),e.createElementBlock("div",ft,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-94cbf2b0"]]),pt={class:"card-progresso__topo flex align-items-start justify-content-between gap-3"},ut={key:0,class:"nc-legendas-flex flex flex-column"},gt={key:1,class:"nc-actions inline-flex align-items-center gap-2"},yt=["innerHTML"],bt={key:0,class:"card-progresso__titulos mt-3 mb-2 flex flex-column"},ht={class:"card-progresso__corpo flex align-items-center flex-wrap"},xt={key:0,class:"card-progresso__chart-wrap flex align-items-center justify-content-center"},St={class:"card-progresso__chart"},kt={class:"nc-centro flex flex-column align-items-center justify-content-center"},Bt={class:"card-progresso__lista flex flex-column"},Et={class:"card-progresso__item-cab flex align-items-center justify-content-between"},Ct={key:0,class:"card-progresso__item-valor inline-flex align-items-center gap-2"},$t={key:0},Vt={key:1,class:"card-progresso__footer mt-3"},me=Q({__name:"CardProgresso",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)"},corDetalhes:{type:String,default:"#3B82F6"},corExcesso:{type:String,default:"#EF4444"},textoBotao:{type:String,default:"Ver mais"},botaoVisivel:{type:Boolean,default:!1},direcao:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)},formato:{type:String,default:"linear",validator:t=>["linear","circular"].includes(t)},tipoValor:{type:String,default:"numero",validator:t=>["numero","moeda","percentual"].includes(t)},locale:{type:String,default:"pt-BR"},moeda:{type:String,default:"BRL"},data:{type:Array,default:()=>[{rotulo:"Vendas",quantidade:72,meta:100},{rotulo:"Serviços",quantidade:48,meta:80},{rotulo:"Assinaturas",quantidade:35,meta:60},{rotulo:"Suporte",quantidade:18,meta:40}]},metaPadrao:{type:Number,default:100},mostrarValor:{type:Boolean,default:!0},mostrarPercentual:{type:Boolean,default:!0},alturaBarra:{type:[String,Number],default:8},raioBarra:{type:[String,Number],default:"999px"},height:{type:[String,Number],default:220},cutout:{type:[String,Number],default:"78%"},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-progresso.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:m}){const o=t,s=m,{palette:a,cardStyle:b}=U(o),{formatar:y}=te(o),S=e.ref(null),F=v;async function k(){await _(S.value,{nomeArquivo:o.nomeArquivoExport,corFundo:a.value.bg!=="transparent"?a.value.bg:null}),s("exportado")}const E=e.computed(()=>`card-progresso--${o.direcao}`),B=e.computed(()=>{const d=ne(o.corDetalhes,o.data.length);return o.data.map((l,g)=>{const n=Number(l.meta??o.metaPadrao)||0,p=Number(l.quantidade)||0,r=l.cor??d[g],f=l.modo==="reducao";let u;if(f){const N=Number(l.valor_referencia)||0,x=N-n;u=x>0?Math.max(0,Math.min(100,(N-p)/x*100)):0}else u=n>0?Math.max(0,Math.min(100,p/n*100)):0;return{rotulo:l.rotulo,quantidade:p,meta:n,valorReferencia:l.valor_referencia??null,cor:r,percentual:u,reducao:f}})}),M=e.computed(()=>typeof o.alturaBarra=="number"?`${o.alturaBarra}px`:o.alturaBarra),P=e.computed(()=>typeof o.raioBarra=="number"?`${o.raioBarra}px`:o.raioBarra),Y=e.computed(()=>B.value.reduce((d,l)=>d+l.quantidade,0)),J=e.computed(()=>B.value.reduce((d,l)=>d+l.meta,0)),i=e.computed(()=>{if(!B.value.length)return 0;const d=g=>g.reducao&&g.valorReferencia!=null?Math.max(0,Number(g.valorReferencia)-g.meta):g.meta,l=B.value.reduce((g,n)=>g+d(n),0);return l<=0?0:B.value.reduce((g,n)=>g+n.percentual*d(n),0)/l}),$=e.computed(()=>B.value.every(d=>d.reducao)),V=e.computed(()=>{const d=Math.min(i.value,100),l=Math.max(0,100-d),g=$.value?o.corExcesso:o.corDetalhes;return{labels:["Progresso","Restante"],datasets:[{data:[d,l],backgroundColor:[g,A(a.value.muted,.15)],borderWidth:0,borderColor:"transparent",hoverOffset:0,spacing:0}]}}),j=e.computed(()=>({responsive:!0,maintainAspectRatio:!1,cutout:o.cutout,rotation:-90,circumference:360,layout:{padding:4},plugins:{legend:{display:!1},tooltip:{enabled:!1}}}));function c(){s("botaoAcao")}return(d,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:S,class:e.normalizeClass(["card-progresso p-4 flex flex-column",E.value]),style:e.normalizeStyle(e.unref(b))},[e.createElementVNode("div",pt,[d.$slots.legenda||t.legenda||d.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",ut,[d.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-xs font-medium",style:e.normalizeStyle({color:e.unref(a).text,opacity:.95})},[e.renderSlot(d.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),d.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-xs",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(d.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.$slots.actions||t.botaoVisivel||t.exportar?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(d.$slots,"actions",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nc-btn inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(a).text,borderColor:e.unref(A)(e.unref(a).text,.18)}),onClick:c},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1)],4)):e.createCommentVNode("",!0)],!0),t.exportar?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nc-exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:k,innerHTML:e.unref(F)},null,12,yt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),d.$slots.titulo||t.titulo||d.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",bt,[d.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(a).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(d.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),d.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm mt-1",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(d.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ht,[t.formato==="circular"?(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",St,[e.createVNode(G,{type:"doughnut",data:V.value,options:j.value,height:t.height},null,8,["data","options","height"]),e.createElementVNode("div",kt,[e.createElementVNode("div",{class:"nc-centro-titulo",style:e.normalizeStyle({color:$.value?o.corExcesso:e.unref(a).text})},e.toDisplayString(Math.round(i.value))+"% ",5),e.createElementVNode("div",{class:"nc-centro-desc",style:e.normalizeStyle({color:e.unref(a).muted})},e.toDisplayString(e.unref(y)(Y.value))+" / "+e.toDisplayString(e.unref(y)(J.value)),5)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(g,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"card-progresso__item flex flex-column"},[e.createElementVNode("div",Et,[e.createElementVNode("span",{class:"card-progresso__item-rotulo inline-flex align-items-center gap-2",style:e.normalizeStyle({color:e.unref(a).text})},[e.createElementVNode("span",{class:"nc-bolinha",style:e.normalizeStyle({background:g.cor})},null,4),e.createElementVNode("span",null,e.toDisplayString(g.rotulo),1),g.reducao?(e.openBlock(),e.createElementBlock("span",{key:0,class:"card-progresso__item-modo",style:e.normalizeStyle({color:e.unref(a).muted})},"↓",4)):e.createCommentVNode("",!0)],4),t.mostrarValor||t.mostrarPercentual?(e.openBlock(),e.createElementBlock("span",Ct,[t.mostrarValor?(e.openBlock(),e.createElementBlock("span",{key:0,class:"card-progresso__item-nums",style:e.normalizeStyle({color:e.unref(a).muted})},[e.createTextVNode(e.toDisplayString(e.unref(y)(g.quantidade)),1),g.meta?(e.openBlock(),e.createElementBlock("span",$t," / "+e.toDisplayString(e.unref(y)(g.meta)),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),t.mostrarPercentual?(e.openBlock(),e.createElementBlock("span",{key:1,class:"card-progresso__item-pct",style:e.normalizeStyle({background:e.unref(A)(g.cor,.12),color:g.cor})},e.toDisplayString(Math.round(g.percentual))+"% ",5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"card-progresso__trilha w-full",style:e.normalizeStyle({height:M.value,borderRadius:P.value,background:g.reducao?e.unref(A)(o.corExcesso,.18):e.unref(A)(e.unref(a).muted,.15)})},[e.createElementVNode("div",{class:"card-progresso__preenchimento",style:e.normalizeStyle({width:g.percentual+"%",background:g.cor,borderRadius:P.value})},null,4)],4)]))),128))])]),d.$slots.footer?(e.openBlock(),e.createElementBlock("div",Vt,[e.renderSlot(d.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-36cee8f0"]]),Nt={key:0,class:"card-base__topo"},Tt=["innerHTML"],zt={class:"card-base__legendas flex flex-column"},At={key:1,class:"card-base__titulos flex flex-column"},wt={key:2,class:"card-base__acao flex"},Rt={key:3,class:"card-base__footer"},fe=Q({__name:"CardBase",props:{legenda:{type:String,default:null},sublegenda:{type:String,default:null},titulo:{type:String,default:null},descricao:{type:String,default:null},tema:{type:String,default:"light"},corFundo:{type:String,default:null},corTexto:{type:String,default:null},corBorda:{type:String,default:"#EAE8E8"},borderRadius:{type:[String,Number],default:"0.75rem"},sombra:{type:String,default:"none"},textoBotao:{type:String,default:"Ver Todos"},botaoVisivel:{type:Boolean,default:!0},alinhamento:{type:String,default:"left",validator:t=>["left","center","right"].includes(t)},exportar:{type:Boolean,default:!1},nomeArquivoExport:{type:String,default:"card-base.png"}},emits:["botaoAcao","exportado"],setup(t,{emit:m}){const o=t,s=m,{palette:a,cardStyle:b}=U(o),y=e.ref(null),S=v;function F(){s("botaoAcao")}async function k(){await _(y.value,{nomeArquivo:o.nomeArquivoExport,corFundo:a.value.bg!=="transparent"?a.value.bg:null}),s("exportado")}return(E,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"cardRef",ref:y,class:e.normalizeClass(["card-base flex flex-column",`card-base--${t.alinhamento}`]),style:e.normalizeStyle(e.unref(b))},[t.exportar?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("button",{type:"button",class:"nc-exportar card-base__exportar inline-flex align-items-center justify-content-center",style:e.normalizeStyle({color:e.unref(a).muted,borderColor:e.unref(A)(e.unref(a).text==="inherit"?"#0F172A":e.unref(a).text,.18)}),title:"Exportar como imagem","aria-label":"Exportar como imagem",onClick:k,innerHTML:e.unref(S)},null,12,Tt)])):e.createCommentVNode("",!0),e.createElementVNode("div",zt,[E.$slots.legenda||t.legenda?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-base__legenda font-medium text-xs",style:e.normalizeStyle({color:e.unref(a).text})},[e.renderSlot(E.$slots,"legenda",{},()=>[e.createTextVNode(e.toDisplayString(t.legenda),1)],!0)],4)):e.createCommentVNode("",!0),E.$slots.sublegenda||t.sublegenda?(e.openBlock(),e.createElementBlock("div",{key:1,class:"card-base__sublegenda text-xs",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(E.$slots,"sublegenda",{},()=>[e.createTextVNode(e.toDisplayString(t.sublegenda),1)],!0)],4)):e.createCommentVNode("",!0)]),E.$slots.titulo||t.titulo||E.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",At,[E.$slots.titulo||t.titulo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-base__titulo m-0 text-3xl font-semibold",style:e.normalizeStyle({color:e.unref(a).text,lineHeight:"33px",letterSpacing:"-1px"})},[e.renderSlot(E.$slots,"titulo",{},()=>[e.createTextVNode(e.toDisplayString(t.titulo),1)],!0)],4)):e.createCommentVNode("",!0),E.$slots.descricao||t.descricao?(e.openBlock(),e.createElementBlock("div",{key:1,class:"text-sm",style:e.normalizeStyle({color:e.unref(a).muted})},[e.renderSlot(E.$slots,"descricao",{},()=>[e.createTextVNode(e.toDisplayString(t.descricao),1)],!0)],4)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),E.$slots.acao||t.botaoVisivel?(e.openBlock(),e.createElementBlock("div",wt,[e.renderSlot(E.$slots,"acao",{},()=>[t.botaoVisivel?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"card-base__link text-xs inline-flex align-items-center",style:e.normalizeStyle({color:e.unref(a).text}),onClick:F},[e.createElementVNode("span",null,e.toDisplayString(t.textoBotao),1),B[0]||(B[0]=e.createElementVNode("span",{class:"card-base__chevron","aria-hidden":"true"},"›",-1))],4)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),E.$slots.footer?(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(E.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-61091b7c"]]),Ft={install(t){t.component("ChartBase",G),t.component("CardBase",fe),t.component("CardLinhas",se),t.component("CardPizza",ie),t.component("CardBarra",ce),t.component("CardPolar",de),t.component("CardProgresso",me)}};L.CardBarra=ce,L.CardBase=fe,L.CardLinhas=se,L.CardPizza=ie,L.CardPolar=de,L.CardProgresso=me,L.ChartBase=G,L.ICONE_EXPORTAR_SVG=v,L.clampHorizontal=K,L.criarTooltipEl=oe,L.default=Ft,L.exportarElementoComoImagem=_,L.gerarPaleta=ne,L.prepararTooltipParent=Z,L.toRgba=A,L.useFormatadorValor=te,L.useTema=U,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap";.nc-chart-wrapper[data-v-9828990e]{position:relative}.card-linhas[data-v-e8a0d601]{display:flex;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Inter,sans-serif}.card-linhas__header[data-v-e8a0d601]{display:flex;flex-direction:column;padding:1rem}.card-linhas__topo[data-v-e8a0d601]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-linhas__legendas[data-v-e8a0d601]{min-width:0;flex:1 1 auto}.card-linhas__actions[data-v-e8a0d601]{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.card-linhas__exportar[data-v-e8a0d601]{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.card-linhas__exportar[data-v-e8a0d601]:hover{opacity:.7}.card-linhas__exportar[data-v-e8a0d601] svg{display:block}.card-linhas__chart[data-v-e8a0d601]{flex:1 1 auto;min-width:0;min-height:0}.card-linhas--top[data-v-e8a0d601]{flex-direction:column;padding:0!important}.card-linhas--bottom[data-v-e8a0d601]{flex-direction:column-reverse;padding:0!important}.card-linhas--top .card-linhas__chart[data-v-e8a0d601],.card-linhas--bottom .card-linhas__chart[data-v-e8a0d601]{margin-left:0;margin-right:0}.card-linhas--top .card-linhas__chart[data-v-e8a0d601]{margin-bottom:0}.card-linhas--bottom .card-linhas__chart[data-v-e8a0d601]{margin-top:0}.card-linhas--left[data-v-e8a0d601]{flex-direction:row;align-items:stretch}.card-linhas--left .card-linhas__header[data-v-e8a0d601]{flex:0 0 35%;justify-content:center}.card-linhas--right[data-v-e8a0d601]{flex-direction:row-reverse;align-items:stretch}.card-linhas--right .card-linhas__header[data-v-e8a0d601]{flex:0 0 35%;justify-content:center}.card-linhas__btn[data-v-e8a0d601]{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:10px;padding:.5rem 1.1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:opacity .2s ease,background .2s ease;align-self:flex-start;font-family:inherit}.card-linhas__btn[data-v-e8a0d601]:hover{opacity:.75}@media (max-width: 640px){.card-linhas[data-v-e8a0d601]{gap:.75rem}.card-linhas__topo[data-v-e8a0d601]{flex-wrap:wrap}.card-linhas--left[data-v-e8a0d601],.card-linhas--right[data-v-e8a0d601]{flex-direction:column;align-items:stretch}.card-linhas--left .card-linhas__header[data-v-e8a0d601],.card-linhas--right .card-linhas__header[data-v-e8a0d601]{flex:0 0 auto}.card-linhas--left .card-linhas__chart[data-v-e8a0d601],.card-linhas--right .card-linhas__chart[data-v-e8a0d601]{margin-left:0;margin-right:0}.card-linhas__btn[data-v-e8a0d601]{padding:.4rem .85rem;font-size:.82rem}}.card-pizza[data-v-6c25ad40]{display:flex;flex-direction:column;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Geist,sans-serif}.card-pizza__topo[data-v-6c25ad40]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-pizza__corpo[data-v-6c25ad40]{display:flex;gap:1.5rem;align-items:center;flex:1 1 auto;min-height:0}.card-pizza--right .card-pizza__corpo[data-v-6c25ad40]{flex-direction:row}.card-pizza--left .card-pizza__corpo[data-v-6c25ad40]{flex-direction:row-reverse}.card-pizza--bottom .card-pizza__corpo[data-v-6c25ad40]{flex-direction:column;align-items:stretch}.card-pizza--top .card-pizza__corpo[data-v-6c25ad40]{flex-direction:column-reverse;align-items:stretch}.card-pizza--top .card-pizza__chart[data-v-6c25ad40],.card-pizza--bottom .card-pizza__chart[data-v-6c25ad40]{max-width:320px;margin:0 auto}.card-pizza__legendas[data-v-6c25ad40]{min-width:0;flex:1 1 auto}.card-pizza__actions[data-v-6c25ad40]{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.card-pizza__exportar[data-v-6c25ad40]{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.card-pizza__exportar[data-v-6c25ad40]:hover{opacity:.7}.card-pizza__exportar[data-v-6c25ad40] svg{display:block}.card-pizza__tabela[data-v-6c25ad40]{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.card-pizza__tabela-cab[data-v-6c25ad40]{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;font-weight:500;padding:0 0 .5rem;border-bottom:1px solid}.card-pizza__tabela-linha[data-v-6c25ad40]{display:flex;justify-content:space-between;align-items:center;padding:.4rem 0;font-size:.8rem}.card-pizza__tabela-rotulo[data-v-6c25ad40]{display:inline-flex;align-items:center;gap:.65rem;min-width:0;flex:1 1 0;overflow:hidden}.card-pizza__tabela-rotulo>span[data-v-6c25ad40]:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-pizza__tabela-valor[data-v-6c25ad40]{font-variant-numeric:tabular-nums;font-weight:500;flex-shrink:0;white-space:nowrap;padding-left:.5rem}.card-pizza__bolinha[data-v-6c25ad40]{width:8px;height:8px;border-radius:999px;flex:0 0 auto;display:inline-block}.card-pizza__chart-wrap[data-v-6c25ad40]{flex:0 0 auto;display:flex;align-items:center;justify-content:center}.card-pizza__chart[data-v-6c25ad40]{position:relative;width:100%;min-width:220px}.card-pizza__centro[data-v-6c25ad40]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:0 1rem}.card-pizza__centro-titulo[data-v-6c25ad40]{font-size:1.25rem;font-weight:600;line-height:1.2;letter-spacing:-.5px}.card-pizza__centro-desc[data-v-6c25ad40]{font-size:.6rem;line-height:1.3;max-width:80px;text-align:center;margin-top:.15rem}.card-pizza__btn[data-v-6c25ad40]{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:10px;padding:.5rem 1.1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:opacity .2s ease,background .2s ease;align-self:flex-start;font-family:inherit}.card-pizza__btn[data-v-6c25ad40]:hover{opacity:.75}@media (max-width: 640px){.card-pizza[data-v-6c25ad40]{gap:.75rem}.card-pizza__topo[data-v-6c25ad40]{flex-wrap:wrap}.card-pizza--left .card-pizza__corpo[data-v-6c25ad40],.card-pizza--right .card-pizza__corpo[data-v-6c25ad40]{flex-direction:column;align-items:stretch;gap:1rem}.card-pizza--left .card-pizza__tabela[data-v-6c25ad40],.card-pizza--right .card-pizza__tabela[data-v-6c25ad40],.card-pizza__chart-wrap[data-v-6c25ad40]{width:100%}.card-pizza__chart[data-v-6c25ad40]{max-width:280px;min-width:0;margin:0 auto}.card-pizza__centro-titulo[data-v-6c25ad40]{font-size:1.05rem}.card-pizza__centro-desc[data-v-6c25ad40]{font-size:.58rem}.card-pizza__tabela-linha[data-v-6c25ad40]{font-size:.78rem}.card-pizza__btn[data-v-6c25ad40]{padding:.4rem .85rem;font-size:.82rem}}@media (max-width: 380px){.card-pizza__chart[data-v-6c25ad40]{max-width:220px}.card-pizza__centro-titulo[data-v-6c25ad40]{font-size:.9rem}}.card-barra[data-v-4fd7ecb9]{display:flex;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Inter,sans-serif}.card-barra__header[data-v-4fd7ecb9]{display:flex;flex-direction:column}.card-barra__topo[data-v-4fd7ecb9]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-barra__legendas[data-v-4fd7ecb9]{min-width:0;flex:1 1 auto}.card-barra__actions[data-v-4fd7ecb9]{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.card-barra__exportar[data-v-4fd7ecb9]{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.card-barra__exportar[data-v-4fd7ecb9]:hover{opacity:.7}.card-barra__exportar[data-v-4fd7ecb9] svg{display:block}.card-barra__chart[data-v-4fd7ecb9]{flex:1 1 auto;min-width:0;min-height:0}.card-barra--top[data-v-4fd7ecb9]{flex-direction:column}.card-barra--bottom[data-v-4fd7ecb9]{flex-direction:column-reverse}.card-barra--top .card-barra__chart[data-v-4fd7ecb9],.card-barra--bottom .card-barra__chart[data-v-4fd7ecb9]{margin-left:-.5rem;margin-right:-.5rem}.card-barra--top .card-barra__chart[data-v-4fd7ecb9]{margin-bottom:-.5rem}.card-barra--bottom .card-barra__chart[data-v-4fd7ecb9]{margin-top:-.5rem}.card-barra--left[data-v-4fd7ecb9]{flex-direction:row;align-items:stretch}.card-barra--left .card-barra__header[data-v-4fd7ecb9]{flex:0 0 35%;justify-content:center}.card-barra--right[data-v-4fd7ecb9]{flex-direction:row-reverse;align-items:stretch}.card-barra--right .card-barra__header[data-v-4fd7ecb9]{flex:0 0 35%;justify-content:center}.card-barra__btn[data-v-4fd7ecb9]{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:10px;padding:.5rem 1.1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:opacity .2s ease,background .2s ease;align-self:flex-start;font-family:inherit}.card-barra__btn[data-v-4fd7ecb9]:hover{opacity:.75}.card-polar[data-v-0c5be433]{display:flex;flex-direction:column;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Geist,sans-serif}.card-polar__topo[data-v-0c5be433]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-polar__corpo[data-v-0c5be433]{display:flex;gap:1.5rem;align-items:center;flex:1 1 auto;min-height:0}.card-polar--right .card-polar__corpo[data-v-0c5be433]{flex-direction:row}.card-polar--left .card-polar__corpo[data-v-0c5be433]{flex-direction:row-reverse}.card-polar--bottom .card-polar__corpo[data-v-0c5be433]{flex-direction:column;align-items:stretch}.card-polar--top .card-polar__corpo[data-v-0c5be433]{flex-direction:column-reverse;align-items:stretch}.card-polar--top .card-polar__chart[data-v-0c5be433],.card-polar--bottom .card-polar__chart[data-v-0c5be433]{max-width:320px;margin:0 auto}.card-polar__legendas[data-v-0c5be433]{min-width:0;flex:1 1 auto}.card-polar__actions[data-v-0c5be433]{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.card-polar__exportar[data-v-0c5be433]{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.card-polar__exportar[data-v-0c5be433]:hover{opacity:.7}.card-polar__exportar[data-v-0c5be433] svg{display:block}.card-polar__tabela[data-v-0c5be433]{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.card-polar__tabela-cab[data-v-0c5be433]{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;font-weight:500;padding:0 0 .5rem;border-bottom:1px solid}.card-polar__tabela-linha[data-v-0c5be433]{display:flex;justify-content:space-between;align-items:center;padding:.4rem 0;font-size:.8rem}.card-polar__tabela-rotulo[data-v-0c5be433]{display:inline-flex;align-items:center;gap:.65rem;min-width:0;flex:1 1 0;overflow:hidden}.card-polar__tabela-rotulo>span[data-v-0c5be433]:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-polar__tabela-valor[data-v-0c5be433]{font-variant-numeric:tabular-nums;font-weight:500;flex-shrink:0;white-space:nowrap;padding-left:.5rem}.card-polar__bolinha[data-v-0c5be433]{width:8px;height:8px;border-radius:999px;flex:0 0 auto;display:inline-block}.card-polar__chart-wrap[data-v-0c5be433]{flex:0 0 auto;display:flex;align-items:center;justify-content:center}.card-polar__chart[data-v-0c5be433]{position:relative;width:100%;min-width:220px}.card-polar__centro-bottom[data-v-0c5be433]{text-align:center;margin-top:.5rem}.card-polar__centro-titulo[data-v-0c5be433]{font-size:1.15rem;font-weight:600;line-height:1.2}.card-polar__centro-desc[data-v-0c5be433]{font-size:.85rem;margin-top:.15rem}.card-polar__btn[data-v-0c5be433]{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:10px;padding:.5rem 1.1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:opacity .2s ease,background .2s ease;align-self:flex-start;font-family:inherit}.card-polar__btn[data-v-0c5be433]:hover{opacity:.75}@media (max-width: 640px){.card-polar[data-v-0c5be433]{gap:.75rem}.card-polar__topo[data-v-0c5be433]{flex-wrap:wrap}.card-polar--left .card-polar__corpo[data-v-0c5be433],.card-polar--right .card-polar__corpo[data-v-0c5be433]{flex-direction:column;align-items:stretch;gap:1rem}.card-polar--left .card-polar__tabela[data-v-0c5be433],.card-polar--right .card-polar__tabela[data-v-0c5be433],.card-polar__chart-wrap[data-v-0c5be433]{width:100%}.card-polar__chart[data-v-0c5be433]{max-width:280px;min-width:0;margin:0 auto}.card-polar__centro-titulo[data-v-0c5be433]{font-size:1rem}.card-polar__centro-desc[data-v-0c5be433],.card-polar__tabela-linha[data-v-0c5be433]{font-size:.78rem}.card-polar__btn[data-v-0c5be433]{padding:.4rem .85rem;font-size:.82rem}}@media (max-width: 380px){.card-polar__chart[data-v-0c5be433]{max-width:220px}.card-polar__centro-titulo[data-v-0c5be433]{font-size:.9rem}}.card-progresso[data-v-81d4a1fb]{display:flex;flex-direction:column;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Inter,sans-serif}.card-progresso__topo[data-v-81d4a1fb]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-progresso__legendas[data-v-81d4a1fb]{min-width:0;flex:1 1 auto}.card-progresso__actions[data-v-81d4a1fb]{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.card-progresso__exportar[data-v-81d4a1fb]{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.card-progresso__exportar[data-v-81d4a1fb]:hover{opacity:.7}.card-progresso__exportar[data-v-81d4a1fb] svg{display:block}.card-progresso__corpo[data-v-81d4a1fb]{display:flex;gap:1.5rem;align-items:stretch;flex:1 1 auto;min-height:0;flex-wrap:wrap}.card-progresso--top .card-progresso__corpo[data-v-81d4a1fb]{flex-direction:column;align-items:stretch;flex-wrap:nowrap}.card-progresso--bottom .card-progresso__corpo[data-v-81d4a1fb]{flex-direction:column-reverse;align-items:stretch;flex-wrap:nowrap}.card-progresso--right .card-progresso__corpo[data-v-81d4a1fb]{flex-direction:row-reverse}.card-progresso--left .card-progresso__corpo[data-v-81d4a1fb]{flex-direction:row}.card-progresso--left .card-progresso__chart-wrap[data-v-81d4a1fb],.card-progresso--right .card-progresso__chart-wrap[data-v-81d4a1fb]{align-self:center}.card-progresso__chart-wrap[data-v-81d4a1fb]{flex:0 1 200px;display:flex;align-items:center;justify-content:center;min-width:0}.card-progresso--top .card-progresso__chart-wrap[data-v-81d4a1fb],.card-progresso--bottom .card-progresso__chart-wrap[data-v-81d4a1fb]{flex:0 0 auto;width:100%;max-width:280px;margin:0 auto}.card-progresso__chart[data-v-81d4a1fb]{position:relative;width:100%}@media (max-width: 640px){.card-progresso[data-v-81d4a1fb]{gap:.75rem}.card-progresso__topo[data-v-81d4a1fb]{flex-wrap:wrap}.card-progresso--left .card-progresso__corpo[data-v-81d4a1fb],.card-progresso--right .card-progresso__corpo[data-v-81d4a1fb]{flex-direction:column;align-items:stretch;flex-wrap:nowrap}.card-progresso--left .card-progresso__chart-wrap[data-v-81d4a1fb],.card-progresso--right .card-progresso__chart-wrap[data-v-81d4a1fb]{flex:0 0 auto;width:100%;max-width:240px;margin:0 auto}.card-progresso__centro-valor[data-v-81d4a1fb]{font-size:1.05rem}.card-progresso__centro-desc[data-v-81d4a1fb]{font-size:.58rem}.card-progresso__item-cab[data-v-81d4a1fb]{font-size:.78rem;gap:.5rem}.card-progresso__btn[data-v-81d4a1fb]{padding:.4rem .85rem;font-size:.82rem}}@media (max-width: 380px){.card-progresso__item-cab[data-v-81d4a1fb]{flex-wrap:wrap}}.card-progresso__centro[data-v-81d4a1fb]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:0 1rem}.card-progresso__centro-valor[data-v-81d4a1fb]{font-size:1.25rem;font-weight:600;line-height:1.2;letter-spacing:-.5px}.card-progresso__centro-desc[data-v-81d4a1fb]{font-size:.6rem;line-height:1.3;max-width:80px;margin-top:.15rem;font-variant-numeric:tabular-nums}.card-progresso__lista[data-v-81d4a1fb]{display:flex;flex-direction:column;gap:.85rem;flex:1 1 auto;min-width:0;width:100%}.card-progresso--left .card-progresso__lista[data-v-81d4a1fb],.card-progresso--right .card-progresso__lista[data-v-81d4a1fb]{width:auto}.card-progresso__item[data-v-81d4a1fb]{display:flex;flex-direction:column;gap:.4rem}.card-progresso__item-cab[data-v-81d4a1fb]{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-size:.82rem}.card-progresso__item-rotulo[data-v-81d4a1fb]{display:inline-flex;align-items:center;gap:.55rem;min-width:0;font-weight:500}.card-progresso__item-valor[data-v-81d4a1fb]{display:inline-flex;align-items:baseline;gap:.5rem;font-variant-numeric:tabular-nums;font-weight:500}.card-progresso__item-pct[data-v-81d4a1fb]{font-size:.72rem;font-weight:500}.card-progresso__bolinha[data-v-81d4a1fb]{width:8px;height:8px;border-radius:999px;flex:0 0 auto;display:inline-block}.card-progresso__trilha[data-v-81d4a1fb]{width:100%;overflow:hidden;position:relative}.card-progresso__preenchimento[data-v-81d4a1fb]{height:100%;transition:width .4s ease}.card-progresso__btn[data-v-81d4a1fb]{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:10px;padding:.5rem 1.1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:opacity .2s ease,background .2s ease;align-self:flex-start;font-family:inherit}.card-progresso__btn[data-v-81d4a1fb]:hover{opacity:.75}.card-base[data-v-9fab1924]{display:flex;flex-direction:column;gap:1.25rem;transition:background .2s ease;overflow:hidden;font-family:Geist,sans-serif;position:relative}.card-base--left[data-v-9fab1924]{text-align:left;align-items:stretch}.card-base--center[data-v-9fab1924]{text-align:center;align-items:center}.card-base--right[data-v-9fab1924]{text-align:right;align-items:flex-end}.card-base__topo[data-v-9fab1924]{position:absolute;top:.75rem;right:.75rem}.card-base__legendas[data-v-9fab1924]{display:flex;flex-direction:column;gap:.15rem}.card-base__legenda[data-v-9fab1924]{font-size:.82rem;font-weight:600;line-height:1.2;letter-spacing:-.005em}.card-base__sublegenda[data-v-9fab1924]{font-size:.78rem;font-weight:400;line-height:1.2}.card-base__titulos[data-v-9fab1924]{display:flex;flex-direction:column;gap:.25rem}.card-base__titulo[data-v-9fab1924]{font-size:1.85rem;font-weight:700;line-height:1.15;letter-spacing:-.015em}.card-base__acao[data-v-9fab1924]{display:flex}.card-base--center .card-base__acao[data-v-9fab1924]{justify-content:center}.card-base--right .card-base__acao[data-v-9fab1924]{justify-content:flex-end}.card-base__link[data-v-9fab1924]{display:inline-flex;align-items:center;gap:.35rem;background:transparent;border:none;padding:0;font-weight:500;cursor:pointer;font-family:inherit;transition:opacity .2s ease}.card-base__link[data-v-9fab1924]:hover{opacity:.7}.card-base__chevron[data-v-9fab1924]{font-size:1.1rem;line-height:1;font-weight:400;transform:translateY(-1px)}.card-base__exportar[data-v-9fab1924]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.card-base__exportar[data-v-9fab1924]:hover{opacity:.7}.card-base__exportar[data-v-9fab1924] svg{display:block}.card-base__footer[data-v-9fab1924]{margin-top:.25rem}
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap";.nc-chart-wrapper[data-v-9828990e]{position:relative}.card-linhas[data-v-364ce1d1]{display:flex;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Inter,sans-serif}.card-linhas__header[data-v-364ce1d1]{display:flex;flex-direction:column;padding:1.5rem}.card-linhas__topo[data-v-364ce1d1]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-linhas__chart[data-v-364ce1d1]{flex:1 1 auto;min-width:0;min-height:0}.card-linhas--top[data-v-364ce1d1]{flex-direction:column;padding:0!important}.card-linhas--bottom[data-v-364ce1d1]{flex-direction:column-reverse;padding:0!important}.card-linhas--top .card-linhas__chart[data-v-364ce1d1],.card-linhas--bottom .card-linhas__chart[data-v-364ce1d1]{margin-left:0;margin-right:0}.card-linhas--top .card-linhas__chart[data-v-364ce1d1]{margin-bottom:0}.card-linhas--bottom .card-linhas__chart[data-v-364ce1d1]{margin-top:0}.card-linhas--left[data-v-364ce1d1]{flex-direction:row;align-items:stretch}.card-linhas--left .card-linhas__header[data-v-364ce1d1]{flex:0 0 35%;justify-content:center}.card-linhas--right[data-v-364ce1d1]{flex-direction:row-reverse;align-items:stretch}.card-linhas--right .card-linhas__header[data-v-364ce1d1]{flex:0 0 35%;justify-content:center}@media (max-width: 640px){.card-linhas[data-v-364ce1d1]{gap:.75rem}.card-linhas__topo[data-v-364ce1d1]{flex-wrap:wrap}.card-linhas--left[data-v-364ce1d1],.card-linhas--right[data-v-364ce1d1]{flex-direction:column;align-items:stretch}.card-linhas--left .card-linhas__header[data-v-364ce1d1],.card-linhas--right .card-linhas__header[data-v-364ce1d1]{flex:0 0 auto}.card-linhas--left .card-linhas__chart[data-v-364ce1d1],.card-linhas--right .card-linhas__chart[data-v-364ce1d1]{margin-left:0;margin-right:0}}.card-pizza[data-v-2a65258f]{container-type:inline-size;display:flex;flex-direction:column;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Geist,sans-serif}.card-pizza__topo[data-v-2a65258f]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-pizza__corpo[data-v-2a65258f]{display:flex;gap:3.5rem;align-items:center;flex:1 1 auto;min-height:0}.card-pizza--right .card-pizza__corpo[data-v-2a65258f]{flex-direction:row}.card-pizza--left .card-pizza__corpo[data-v-2a65258f]{flex-direction:row-reverse}.card-pizza--bottom .card-pizza__corpo[data-v-2a65258f]{flex-direction:column;align-items:stretch}.card-pizza--top .card-pizza__corpo[data-v-2a65258f]{flex-direction:column-reverse;align-items:stretch}.card-pizza--top .card-pizza__chart[data-v-2a65258f],.card-pizza--bottom .card-pizza__chart[data-v-2a65258f]{max-width:320px;margin:0 auto}.card-pizza--right .nc-tabela[data-v-2a65258f],.card-pizza--left .nc-tabela[data-v-2a65258f]{flex:1 1 0;min-width:0;overflow:hidden}.card-pizza--top .nc-tabela[data-v-2a65258f],.card-pizza--bottom .nc-tabela[data-v-2a65258f]{width:100%}.card-pizza--right .card-pizza__chart-wrap[data-v-2a65258f],.card-pizza--left .card-pizza__chart-wrap[data-v-2a65258f]{flex:0 0 clamp(140px,38%,240px);width:clamp(140px,38%,240px)}.card-pizza__chart-wrap[data-v-2a65258f]{display:flex;align-items:center;justify-content:center}.card-pizza__chart[data-v-2a65258f]{position:relative;width:100%;min-width:0}@container (max-width: 520px){.card-pizza[data-v-2a65258f]{gap:.75rem}.card-pizza__topo[data-v-2a65258f]{flex-wrap:wrap}.card-pizza--left .card-pizza__corpo[data-v-2a65258f],.card-pizza--right .card-pizza__corpo[data-v-2a65258f]{flex-direction:column;align-items:stretch;gap:1rem}.card-pizza--left .nc-tabela[data-v-2a65258f],.card-pizza--right .nc-tabela[data-v-2a65258f]{flex:1 1 auto;width:100%}.card-pizza--left .card-pizza__chart-wrap[data-v-2a65258f],.card-pizza--right .card-pizza__chart-wrap[data-v-2a65258f]{flex:0 0 auto;width:100%}.card-pizza__chart[data-v-2a65258f]{max-width:260px;margin:0 auto}.nc-centro-titulo[data-v-2a65258f]{font-size:1.05rem}.nc-centro-desc[data-v-2a65258f]{font-size:.58rem}.nc-tabela-linha[data-v-2a65258f]{font-size:.78rem}}@container (max-width: 340px){.card-pizza__chart[data-v-2a65258f]{max-width:200px}.nc-centro-titulo[data-v-2a65258f]{font-size:.9rem}.nc-tabela-linha[data-v-2a65258f]{font-size:.72rem}.nc-tabela-cab[data-v-2a65258f]{font-size:.68rem}}.card-barra[data-v-6eb3d4af]{display:flex;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Inter,sans-serif}.card-barra__header[data-v-6eb3d4af]{display:flex;flex-direction:column}.card-barra__topo[data-v-6eb3d4af]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-barra__chart[data-v-6eb3d4af]{flex:1 1 auto;min-width:0;min-height:0}.card-barra--top[data-v-6eb3d4af]{flex-direction:column}.card-barra--bottom[data-v-6eb3d4af]{flex-direction:column-reverse}.card-barra--top .card-barra__chart[data-v-6eb3d4af],.card-barra--bottom .card-barra__chart[data-v-6eb3d4af]{margin-left:-.5rem;margin-right:-.5rem}.card-barra--top .card-barra__chart[data-v-6eb3d4af]{margin-bottom:-.5rem}.card-barra--bottom .card-barra__chart[data-v-6eb3d4af]{margin-top:-.5rem}.card-barra--left[data-v-6eb3d4af]{flex-direction:row;align-items:stretch}.card-barra--left .card-barra__header[data-v-6eb3d4af]{flex:0 0 35%;justify-content:center}.card-barra--right[data-v-6eb3d4af]{flex-direction:row-reverse;align-items:stretch}.card-barra--right .card-barra__header[data-v-6eb3d4af]{flex:0 0 35%;justify-content:center}.card-polar[data-v-94cbf2b0]{container-type:inline-size;display:flex;flex-direction:column;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Geist,sans-serif}.card-polar__topo[data-v-94cbf2b0]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-polar__corpo[data-v-94cbf2b0]{display:flex;gap:3.5rem;align-items:center;flex:1 1 auto;min-height:0}.card-polar--right .card-polar__corpo[data-v-94cbf2b0]{flex-direction:row}.card-polar--left .card-polar__corpo[data-v-94cbf2b0]{flex-direction:row-reverse}.card-polar--bottom .card-polar__corpo[data-v-94cbf2b0]{flex-direction:column;align-items:stretch}.card-polar--top .card-polar__corpo[data-v-94cbf2b0]{flex-direction:column-reverse;align-items:stretch}.card-polar--top .card-polar__chart[data-v-94cbf2b0],.card-polar--bottom .card-polar__chart[data-v-94cbf2b0]{max-width:320px;margin:0 auto}.card-polar--right .nc-tabela[data-v-94cbf2b0],.card-polar--left .nc-tabela[data-v-94cbf2b0]{flex:1 1 0;min-width:0;overflow:hidden}.card-polar--top .nc-tabela[data-v-94cbf2b0],.card-polar--bottom .nc-tabela[data-v-94cbf2b0]{width:100%}.card-polar--right .card-polar__chart-wrap[data-v-94cbf2b0],.card-polar--left .card-polar__chart-wrap[data-v-94cbf2b0]{flex:0 0 clamp(140px,38%,240px);width:clamp(140px,38%,240px)}.card-polar__chart-wrap[data-v-94cbf2b0]{display:flex;align-items:center;justify-content:center}.card-polar__chart[data-v-94cbf2b0]{position:relative;width:100%;min-width:0}.card-polar__centro-bottom[data-v-94cbf2b0]{text-align:center;margin-top:.5rem}.card-polar__centro-titulo[data-v-94cbf2b0]{font-size:1.15rem;font-weight:600;line-height:1.2}.card-polar__centro-desc[data-v-94cbf2b0]{font-size:.85rem;margin-top:.15rem}@container (max-width: 520px){.card-polar[data-v-94cbf2b0]{gap:.75rem}.card-polar__topo[data-v-94cbf2b0]{flex-wrap:wrap}.card-polar--left .card-polar__corpo[data-v-94cbf2b0],.card-polar--right .card-polar__corpo[data-v-94cbf2b0]{flex-direction:column;align-items:stretch;gap:1rem}.card-polar--left .nc-tabela[data-v-94cbf2b0],.card-polar--right .nc-tabela[data-v-94cbf2b0]{flex:1 1 auto;width:100%}.card-polar--left .card-polar__chart-wrap[data-v-94cbf2b0],.card-polar--right .card-polar__chart-wrap[data-v-94cbf2b0]{flex:0 0 auto;width:100%}.card-polar__chart[data-v-94cbf2b0]{max-width:260px;margin:0 auto}.card-polar__centro-titulo[data-v-94cbf2b0]{font-size:1rem}.card-polar__centro-desc[data-v-94cbf2b0],.nc-tabela-linha[data-v-94cbf2b0]{font-size:.78rem}}@container (max-width: 340px){.card-polar__chart[data-v-94cbf2b0]{max-width:200px}.card-polar__centro-titulo[data-v-94cbf2b0]{font-size:.9rem}.nc-tabela-linha[data-v-94cbf2b0]{font-size:.72rem}.nc-tabela-cab[data-v-94cbf2b0]{font-size:.68rem}}.card-progresso[data-v-36cee8f0]{container-type:inline-size;display:flex;flex-direction:column;gap:1rem;transition:background .2s ease;overflow:hidden;font-family:Inter,sans-serif}.card-progresso__topo[data-v-36cee8f0]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.card-progresso__corpo[data-v-36cee8f0]{display:flex;gap:3.5rem;align-items:stretch;flex:1 1 auto;min-height:0;flex-wrap:wrap}.card-progresso--top .card-progresso__corpo[data-v-36cee8f0]{flex-direction:column;align-items:stretch;flex-wrap:nowrap}.card-progresso--bottom .card-progresso__corpo[data-v-36cee8f0]{flex-direction:column-reverse;align-items:stretch;flex-wrap:nowrap}.card-progresso--right .card-progresso__corpo[data-v-36cee8f0]{flex-direction:row-reverse;flex-wrap:nowrap}.card-progresso--left .card-progresso__corpo[data-v-36cee8f0]{flex-direction:row;flex-wrap:nowrap}.card-progresso--left .card-progresso__chart-wrap[data-v-36cee8f0],.card-progresso--right .card-progresso__chart-wrap[data-v-36cee8f0]{align-self:center}.card-progresso__chart-wrap[data-v-36cee8f0]{flex:0 0 clamp(140px,38%,220px);width:clamp(140px,38%,220px);display:flex;align-items:center;justify-content:center;min-width:0}.card-progresso--top .card-progresso__chart-wrap[data-v-36cee8f0],.card-progresso--bottom .card-progresso__chart-wrap[data-v-36cee8f0]{flex:0 0 auto;width:100%;max-width:280px;margin:0 auto}.card-progresso__chart[data-v-36cee8f0]{position:relative;width:100%}@container (max-width: 520px){.card-progresso[data-v-36cee8f0]{gap:.75rem}.card-progresso__topo[data-v-36cee8f0]{flex-wrap:wrap}.card-progresso--left .card-progresso__corpo[data-v-36cee8f0],.card-progresso--right .card-progresso__corpo[data-v-36cee8f0]{flex-direction:column;align-items:stretch;flex-wrap:nowrap}.card-progresso--left .card-progresso__chart-wrap[data-v-36cee8f0],.card-progresso--right .card-progresso__chart-wrap[data-v-36cee8f0]{flex:0 0 auto;width:100%;max-width:240px;margin:0 auto}.nc-centro-titulo[data-v-36cee8f0]{font-size:1.05rem}.nc-centro-desc[data-v-36cee8f0]{font-size:.58rem}.card-progresso__item-cab[data-v-36cee8f0]{font-size:.78rem;gap:.5rem}}@container (max-width: 380px){.card-progresso__item-cab[data-v-36cee8f0]{flex-wrap:wrap}}.nc-centro-desc[data-v-36cee8f0]{font-variant-numeric:tabular-nums}.card-progresso__lista[data-v-36cee8f0]{display:flex;flex-direction:column;gap:.85rem;flex:1 1 auto;min-width:0;width:100%}.card-progresso--left .card-progresso__lista[data-v-36cee8f0],.card-progresso--right .card-progresso__lista[data-v-36cee8f0]{flex:1 1 0;width:100%;min-width:0}.card-progresso__item[data-v-36cee8f0]{display:flex;flex-direction:column;gap:.4rem}.card-progresso__item-cab[data-v-36cee8f0]{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-size:.82rem}.card-progresso__item-rotulo[data-v-36cee8f0]{display:inline-flex;align-items:center;gap:.55rem;min-width:0;font-weight:500}.card-progresso__item-valor[data-v-36cee8f0]{display:inline-flex;align-items:center;gap:.5rem}.card-progresso__item-modo[data-v-36cee8f0]{font-size:.7rem;font-weight:500;line-height:1}.card-progresso__item-nums[data-v-36cee8f0]{font-size:.78rem;font-variant-numeric:tabular-nums;font-weight:400}.card-progresso__item-pct[data-v-36cee8f0]{font-size:.7rem;font-weight:600;padding:.15rem .45rem;border-radius:999px;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.4}.card-progresso__trilha[data-v-36cee8f0]{width:100%;overflow:hidden;position:relative}.card-progresso__preenchimento[data-v-36cee8f0]{height:100%;transition:width .4s ease}.card-base[data-v-61091b7c]{display:flex;flex-direction:column;gap:1.25rem;padding:1.25rem;transition:background .2s ease;overflow:hidden;font-family:Geist,sans-serif;position:relative}.card-base--left[data-v-61091b7c]{text-align:left;align-items:stretch}.card-base--center[data-v-61091b7c]{text-align:center;align-items:center}.card-base--right[data-v-61091b7c]{text-align:right;align-items:flex-end}.card-base__topo[data-v-61091b7c]{position:absolute;top:.75rem;right:.75rem}.card-base__legendas[data-v-61091b7c]{display:flex;flex-direction:column;gap:.15rem}.card-base__legenda[data-v-61091b7c]{line-height:1.2;letter-spacing:-.005em}.card-base__sublegenda[data-v-61091b7c]{font-size:.78rem;font-weight:400;line-height:1.2}.card-base__titulos[data-v-61091b7c]{display:flex;flex-direction:column;gap:.25rem}.card-base__titulo[data-v-61091b7c]{font-size:1.85rem;font-weight:700;line-height:1.15;letter-spacing:-.015em;word-break:break-word}.card-base__acao[data-v-61091b7c]{display:flex}.card-base--center .card-base__acao[data-v-61091b7c]{justify-content:center}.card-base--right .card-base__acao[data-v-61091b7c]{justify-content:flex-end}.card-base__link[data-v-61091b7c]{display:inline-flex;align-items:center;gap:.35rem;background:transparent;border:none;padding:0;font-weight:500;cursor:pointer;font-family:inherit;transition:opacity .2s ease}.card-base__link[data-v-61091b7c]:hover{opacity:.7}.card-base__chevron[data-v-61091b7c]{font-size:1.1rem;line-height:1;font-weight:400;transform:translateY(-1px)}.card-base__exportar[data-v-61091b7c]{width:28px;height:28px}.card-base__footer[data-v-61091b7c]{margin-top:.25rem}.nc-actions{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.nc-legendas-flex{min-width:0;flex:1 1 auto}.nc-exportar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:8px;cursor:pointer;transition:opacity .2s ease,background .2s ease;font-family:inherit}.nc-exportar:hover{opacity:.7}.nc-exportar svg{display:block}.nc-btn{display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:1px solid rgba(15,23,42,.18);border-radius:10px;padding:.5rem 1.1rem;font-size:.9rem;font-weight:500;cursor:pointer;transition:opacity .2s ease,background .2s ease;align-self:flex-start;font-family:inherit}.nc-btn:hover{opacity:.75}.nc-bolinha{width:8px;height:8px;border-radius:999px;flex:0 0 auto;display:inline-block}.nc-centro{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:0 1rem}.nc-centro-titulo{font-size:1.25rem;font-weight:600;line-height:1.2;letter-spacing:-.5px}.nc-centro-desc{font-size:.6rem;line-height:1.3;max-width:80px;margin-top:.15rem}.nc-tabela{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.nc-tabela-cab{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;font-weight:500;padding:0 0 .5rem;border-bottom:1px solid}.nc-tabela-linha{display:flex;justify-content:space-between;align-items:center;padding:.4rem 0;font-size:.8rem}.nc-tabela-rotulo{display:inline-flex;align-items:center;gap:.65rem;min-width:0;flex:1 1 0;overflow:hidden}.nc-tabela-rotulo>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nc-tabela-valor{font-variant-numeric:tabular-nums;font-weight:500;flex-shrink:0;white-space:nowrap;padding-left:.5rem}@media (max-width: 640px){.nc-btn{padding:.4rem .85rem;font-size:.82rem}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nemesischart",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "private": false,
5
5
  "description": "Lib de componentes Vue 3 para charts usando Chart.js, PrimeVue e PrimeFlex",
6
6
  "type": "module",