PageSourceSearch

http://smartclub.ai/assets/BarComparing-BilEmhI7.js

js smartclub.ai collected 2026-10-05 15:07:32 UTC 3,122 bytes, 2 lines download raw bytes

1import{C as m,a as b,L as y,g as h,p as v,c as w,d as x,r as D,f as V,B as _}from"./vendor-charts-BlE0PIEs.js";import{d as T}from"./chartDashedLinesPlugin-CwZYc-iH.js";import{d as B,b0 as C,E as k,c as R,l,H as I,A as N,e as E,p as i,q as u,R as d}from"./vendor-vuetify-DaY1MzuL.js";import{_ as L}from"./index-CkbxFzmV.js";import"./vendor-sentry-CdlvO8A5.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1efad8e0-cfa4-4d66-ab0c-ee7a9ccf2ef5",t._sentryDebugIdIdentifier="sentry-dbid-1efad8e0-cfa4-4d66-ab0c-ee7a9ccf2ef5")}catch{}const S={class:"chart-container block background"},A={class:"legend"},z={class:"legend-item"},P={class:"text-accent-yellow font-weight-bold"},W={class:"legend-item mr-0"},q={class:"text-accent-green font-weight-bold"},H="rgba(255, 195, 9, .65)",M="rgba(58, 161, 63, .65)",O=B({__name:"BarComparing",props:{chartData:{},targetValue:{},medialValue:{},noTitle:{type:Boolean},height:{}},setup(t){m.register(b,y,h,v,w,x,...D);const e=t,c=C(),g=[V,T],r=d(()=>c.current.value.colors),p=d(()=>({labels:e.chartData.data.labels,datasets:e.chartData.data.datasets.map((s,a)=>({...s,backgroundColor:s.data.map((n,o)=>n>=e.targetValue?M:n>=e.medialValue?H:e.chartData.data.labels[o]===e.chartData.targetName?o===1?"rgba(58, 161, 63, .65)":"rgba(0, 89, 192, .65)":"rgba(0, 89, 192, .25)"),datalabels:{color:s.data.map((n,o)=>n>=e.targetValue?"white":n>=e.medialValue?r.value.grey1:e.chartData.data.labels[o]===e.chartData.targetName?"white":r.value.grey1)}}))})),f=d(()=>({indexAxis:"y",devicePixelRatio:2,layout:{},animation:{duration:500},responsive:!0,maintainAspectRatio:!1,elements:{bar:{borderRadius:8}},scales:{y:{display:!0,ticks:{padding:10,color:s=>{const a=s.index;return e.chartData.data.labels[a]===e.chartData.targetName?a===1?r.value["accent-green"]:r.value.primary:r.value.grey1}},grid:{color:r.value.grey3,drawTicks:!1,display:!1},border:{color:r.value.grey3}},x:{display:!0,grid:{color:r.value.grey3,drawTicks:!1,display:!1},border:{color:r.value.grey3}}},plugins:{legend:{display:!e.noTitle,labels:{useBorderRadius:!0,borderRadius:2}},datalabels:{display:!0,clip:!0,borderRadius:4,font:{size:12}},dashedLines:{axis:"x",lines:[{value:e.medialValue,color:r.value["accent-yellow"],lineWidth:2,dash:[5,5]},{value:e.targetValue,color:r.value["accent-green"],lineWidth:2,dash:[5,5]}]}}}));return(s,a)=>(k(),R("div",S,[l("div",{class:"chart-wrapper line",style:E({height:(t.height||300)+"px"})},[I(N(_),{data:p.value,options:f.value,plugins:g},null,8,["data","options"])],4),l("div",A,[l("div",z,[a[0]||(a[0]=l("span",{class:"legend-line medial"},null,-1)),a[1]||(a[1]=i("Medial value (",-1)),l("span",P,u(t.medialValue),1),a[2]||(a[2]=i(") ",-1))]),l("div",W,[a[3]||(a[3]=l("span",{class:"legend-line target"},null,-1)),a[4]||(a[4]=i("Target value (",-1)),l("span",q,u(t.targetValue),1),a[5]||(a[5]=i(" ) ",-1))])])]))}}),Q=L(O,[["__scopeId","data-v-6d9760f9"]]);export{Q as default};
2//# sourceMappingURL=BarComparing-BilEmhI7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.