iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommerceDB.com/_nuxt/DL7ZoMTz.js
import{_ as y}from"./IQURtVXU.js";import{c as g}from"./DmTcqMXd.js";import{d as m,k as h,o as f,c as b,w as p,a6 as d,f as r,a5 as x,y as _,z as w,B as v,C}from"./llFuKhWI.js";import{H as T}from"./DaWAgGwk.js";import{C as i}from"./CnGBFLmb.js";import{u as A,M as L}from"./DEcB3HXe.js";const O={},R=m({...O,__name:"FlatDataTable",props:{rows:{type:Array,required:!0},columns:{type:Array,required:!0},highlightColumn:{type:String,default:""},scrolledRight:{type:Boolean,default:!1}},setup(a){const o=a,t=h(()=>o.highlightColumn===""?"has-text-blue-800 has-text-weight-bold":"has-text-weight-normal"),c=h(()=>{const s=["",...g(o.columns.length-1,"is-right")];if(o.highlightColumn){const e=o.columns.findIndex(n=>n===o.highlightColumn);e&&(s[e+1]+=" has-text-weight-bold")}return s}),l=h(()=>{const s=["no-wrap pr-4",...g(o.columns.length-1,"is-right")];if(o.highlightColumn){const e=o.columns.findIndex(n=>n===o.highlightColumn);e&&(s[e+1]+=" has-text-weight-bold")}return s});return(s,e)=>{const n=y;return f(),b(n,{rows:a.rows,columns:a.columns,classes:{container:"is-size-7",table:"is-fullwidth",theadTrTh:`pt-2 pb-2 pl-3 pr-3 has-background-bluegray-50 is-vcentered ${r(t)}`,tbodyTrTd:"pt-2 pb-2 pl-3 pr-3 has-background-white is-vcentered has-line-height-small has-min-width-narrow",tbodyFirstTrTd:"pt-4",tbodyLastTrTd:"pb-4"},"header-class":r(c),"column-class":r(l),"not-available":("STRINGS"in s?s.STRINGS:r(x)).notAvailable,"freeze-header":"","freeze-first-column":"","scrolled-right":a.scrolledRight},{label:p(({th:u})=>[d(s.$slots,"column",{column:u})]),cell:p(({cell:u})=>[d(s.$slots,"cell",{cell:u})]),_:3},8,["rows","columns","classes","header-class","column-class","not-available","scrolled-right"])}}}),N=m({__name:"LineChart",props:{categories:{},series:{},inMillion:{type:Boolean,default:!1},paywallActive:{type:Boolean,default:!1},showLegend:{type:Boolean,default:!1},numberFormatOptions:{default:()=>({})},highlightCategory:{default:null},highchartsTooltip:{default:()=>({enabled:!1})},xAxisLine:{type:Boolean,default:!0},xAxisZeroLine:{type:Boolean,default:!1},extendHighchartsOptions:{default:void 0},replaceHighchartsOptions:{default:void 0}},setup(a){const o=_("chartHeightPx",250),t=a,c=h(()=>t.series.map(s=>({type:"line",dataLabels:{enabled:!0},...s,data:(s.data??[]).map(e=>(typeof e=="number"&&(e={y:e}),(e==null?void 0:e.name)===t.highlightCategory&&(e.color=i.mint_600),t.inMillion&&typeof(e==null?void 0:e.y)=="number"&&(e.y=(e.y??0)/1e6),e))}))),l=A({showLegend:t.showLegend,chartHeightPx:o,numberFormatOptions:t.numberFormatOptions,extendHighchartsOptions:t.extendHighchartsOptions,replaceHighchartsOptions:t.replaceHighchartsOptions});return w(()=>t.series,l.regenerateUuid,{deep:!0}),v(()=>{l.xAxis.value={...l.xAxis.value,...t.xAxisLine?{}:{lineWidth:0},categories:t.categories,...t.categories.length>1?{min:.25,max:t.categories.length-1.25,startOnTick:!1,endOnTick:!1}:{}},l.yAxis.value=[{title:{text:null},labels:{enabled:!1},maxPadding:L,gridLineWidth:0,...t.xAxisZeroLine?{plotLines:[{value:0,width:1,color:i.bluegray_200}]}:{}}],l.series.value=c.value,l.plotOptions.value={...l.plotOptions.value,line:{lineWidth:2}},l.tooltip.value=t.highchartsTooltip,l.colors.value=[i.mint_600,i.blue_800,i.bluegray_700,i.bluegray_400,i.blue_300,i.bluegray_200]}),(s,e)=>{const n=T;return t.categories.length?(f(),b(n,{key:r(l).uuid.value,options:r(l).options.value},null,8,["options"])):C("",!0)}}});export{R as _,N as a};