1import{_ as h}from"./CEfiXIEC.js";import{d as f,at as y,g as _,J as g,o as b,e as v,p as w,v as x,u as n,h as C,I as l,_ as M}from"./DxbzM6Fg.js";import{u as k}from"./BcJSecfG.js";const I=f({__name:"MetalChart",props:{metalName:{type:String,required:!0},weightOz:{type:String,required:!0}},setup(i){const a=i,{onLoaded:c}=y("/scripts/plotly-2.12.1.min.js"),{t:p}=_(),m=k(),o=l(),r=l(!0),{getCoinMetalChart:u}=g();c(async()=>{let e=[];e.length===0&&(e=await u({metalName:a.metalName,weightOz:a.weightOz})),r.value=!1,d(e)});function d(e){const s={type:"scatter",mode:"lines",x:e.x,y:e.y,line:{color:"#1f77b4"}},t={title:{text:p("coin_metal-chart-title"),yanchor:"top",y:1,pad:{t:5}},xaxis:{type:"date",autorange:!0,rangeselector:{buttons:[{count:1,label:"1m",step:"month",stepmode:"backward"},{count:1,label:"1y",step:"year",stepmode:"backward"},{count:5,label:"5y",step:"year",stepmode:"backward"},{step:"all"}]}},yaxis:{autorange:!0,type:"linear",hoverformat:".2f"},modebar:{orientation:"v"},margin:{b:50,l:40,r:40,t:50}};Plotly.newPlot(o.value,[s],t,{displaylogo:!1,responsive:!0,modeBarButtonsToRemove:["lasso2d","toImage"],displayModeBar:!0})}return(e,s)=>{const t=h;return b(),v("div",{id:"metalChart",ref_key:"metalChart",ref:o,style:{width:"100%",height:"400px"}},[w(C(t,{class:"spinner",width:"50px",color:n(m)?"#fff":void 0},null,8,["color"]),[[x,n(r)]])],512)}}}),O=Object.assign(M(I,[["__scopeId","data-v-7fe1a6b8"]]),{__name:"MetalChart"});export{O as default};
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.