1import{_ as m,o as l,e as d,b as c,t as r,n as u,H as h,k as p,c as g,V as b,z as k}from"./DxbzM6Fg.js";import{u as v}from"./T2K9ZSe2.js";const y={props:{coinId:{type:String,required:!0},price:{type:Object,default:null},proofPrice:{type:Object,default:null},title:{type:String,required:!0},chartAlt:{type:String,required:!0},isSubscribed:{type:Boolean,required:!0}},setup(){const{user:o}=p(),a=o.value?.isSubscribed||!1,{userCurrency:e}=v(),t=g(()=>e.value.code),n=b(),{customEvent:s}=k();return{localePath:n,currencyName:t,customEvent:s,chartImageUrl:_=>a?`https://mdv.fra1.cdn.digitaloceanspaces.com/images/charts/ps/${t.value}/${_}.webp`:`https://mdv.fra1.cdn.digitaloceanspaces.com/images/charts/pu/USD/${_}.webp`}},data(){return{isChartImageLoaded:!0}},methods:{chartClick(){this.isSubscribed?this.$emit("chartBtnClick",!0):(this.customEvent("coin_chart_pricing_click"),this.$router.push(this.localePath("pricing")))}}},f={key:0,class:"content__block-wrap"},C={class:"coin-page__chart price"},S={class:"coin-page__chart-head"},N={class:"coin-page__chart-title"},P={class:"chart-title"},I={class:"coin-page__chart-subtitle details"},B={key:0,class:"details-desc"},j={class:"details-desc__title"},E={class:"bold"},U={key:1,class:"details-desc"},q={class:"details-desc__title"},w={class:"bold"},L={class:"coin-page__chart-img"},z=["src","alt"];function O(o,a,e,t,n,s){return n.isChartImageLoaded?(l(),d("div",f,[c("div",C,[c("div",S,[c("div",N,[c("div",P,r(e.title),1),c("div",{class:u(["chart-expand-btn",{"js-open-price-chart-modal":e.isSubscribed}]),"data-id":"#price-chart-modal",onClick:a[0]||(a[0]=(...i)=>s.chartClick&&s.chartClick(...i))},null,2)]),c("div",I,[e.price&&e.price[t.currencyName]?(l(),d("div",B,[c("span",j,r(o.$t("coin_chart-price-block_current-price")),1),c("span",E,r(e.price[t.currencyName])+" "+r(t.currencyName),1)])):h("",!0),e.proofPrice&&e.proofPrice[t.currencyName]?(l(),d("div",U,[c("span",q,r(o.$t("coin_chart-price-block_current-proof-price")),1),c("span",w,r(e.proofPrice[t.currencyName])+" "+r(t.currencyName),1)])):h("",!0)])]),c("div",L,[c("img",{"data-id":"#price-chart-modal",class:u(["coin-page__chart-image",{"js-open-price-chart-modal":e.isSubscribed}]),src:t.chartImageUrl(e.coinId),alt:e.chartAlt,loading:"lazy",width:"510",height:"383",onClick:a[1]||(a[1]=(...i)=>s.chartClick&&s.chartClick(...i)),onError:a[2]||(a[2]=i=>n.isChartImageLoaded=!1)},null,42,z)])])])):h("",!0)}const A=Object.assign(m(y,[["render",O],["__scopeId","data-v-52cac852"]]),{__name:"PriceChartBlock"});export{A 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.