PageSourceSearch

https://coinstrail.com/_nuxt/C7GbXH-T.js

js coinstrail.com collected 2026-10-02 19:50:35 UTC 133,166 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PbY4qVdt.js","./DFim2bqs.js","./entry.B839_wvz.css","./BYgFGNBN.js","./CSYTMyXG.js","./BF7BDD65.js","./Stamping.B4pUDVH0.css","./BQiBg9Fm.js","./DIP5F2UO.js","./BZ_DZy2z.js","./Sidebar.BKSPz3nd.css","./C0xu2PHZ.js","./BasicInfo.CVlG6XeB.css","./B9rd5Oez.js","./BkVqISti.js","./CstAXkIb.js","./BaseSwitch.DQfsnKQG.css","./gEdBgyvD.js","./SalesCounts.Fx0Q2qlm.css","./CoinLots.ErYfu3Gq.css","./CBoLe3Sj.js","./CurrentOffers.DPQIlL5N.css","./BZrirk0v.js","./xUT6Iad1.js","./PopularSectionButton.Dhmm_eao.css","./PopularSection.206Ez_4C.css","./h0eHDVLm.js","./Dq7MMXeT.js","./TopLotsItem.CEHy_dGR.css","./TopLots.QNhylbxI.css","./Qij0RTm1.js","./Toolbar.DjvjzX6D.css"])))=>i.map(i=>d[i]);
2import{_ as Ge,o as r,c as u,e as _,t as m,f as xe,h as G,F as V,A as Se,q as it,y as D,m as v,i as N,n as B,u as ht,p as Et,af as Fa,ai as ka,r as Ra,ag as Aa,Q as ta,U as ea,T as Ea,aF as Pa,aP as At,aG as xa,B as I,Y as Ke,s as ne,W as Ia,$ as Na,N as ia,an as Zt,aE as Oa,z as oa,H as aa,a1 as ca,J as Ht,a as ua,K as Qt,a4 as Ta,aT as za,S as _t,aU as na,aa as Ya,d as da,g,M as J,L as ge,aV as Va,b as ra,a3 as St,ac as Ba,ad as ma,a0 as Ua,I as Wa,k as Ha,w as ja,a2 as qa,aw as $a,R as It,O as wa,C as Xa}from"./DFim2bqs.js";import{a as ha,_ as _a}from"./Tx8S8XFm.js";import{_ as Ka,a as Ga}from"./CstAXkIb.js";import{c as Qa}from"./DyulZg5C.js";import{u as Ja}from"./DIP5F2UO.js";import{h as Za,i as en}from"./BsTyCWhA.js";import{u as tn}from"./Dz4QVpHO.js";import{b as an,c as nn}from"./6IoykG5s.js";import"./BZ_DZy2z.js";const sn={props:{name:{type:String,required:!0},filters:{type:Array,required:!0},modifiers:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},allLabel:{type:String,default:""},selectedIds:{type:String,default:""}},emits:["setFilter","update:selected-label"],setup(){const{t:e,locale:a}=ht();return{t:e,locale:a}},data(){return{filterChecked:[],openParents:[]}},computed:{normalizedFilters(){return(this.filters||[]).map(e=>{const a=e.modifiers||e.children||e.subFilters||e.items||[],l=a.filter(C=>!this.isAllChild(C)).filter(C=>C.count!==void 0&&C.count>0||this.isChecked(C._id)),c=l.length>1,t=!c&&l.length===1?l[0]:null,o=this.filterName(e),f=o,n="";let d=e._id,i=e.count!==void 0?e.count:a.reduce((C,P)=>C+(P.count||0),0);return!c&&t&&(d=t._id,i=t.count!==void 0?t.count:i),{...e,_id:d,originalId:e._id,c
2ount:i,parentName:o,modifierName:n,displayName:f,hasTree:c,treeChildren:c?a:[]}})},column1(){return this.normalizedFilters},column2(){return this.modifiers||[]},allSelectableFilters(){const e=[];for(const a of this.normalizedFilters){e.push(a),a.originalId&&a.originalId!==a._id&&e.push({...a,_id:a.originalId});const s=a.modifiers||a.children||a.subFilters||a.items||a.treeChildren||[];for(const l of s)e.some(c=>c._id===l._id)||e.push(l)}for(const a of this.column2||[])e.some(s=>s._id===a._id)||e.push(a);return e},hasAnyNestedModifiers(){return this.normalizedFilters.some(e=>e.hasTree)},customSelectLabel(){if(this.filterChecked.length===0)return this.allLabel||this.t("search-lots_filter-all");const e=this.filterChecked[0],a=(this.column2||[]).find(l=>l?._id===e);if(a){const l=this.filterName(a).toLocaleLowerCase(this.locale);return this.t("coin_filter_any-condition-v",{v:l})}for(const l of this.normalizedFilters){if(l._id===e||l.originalId===e)return l.displayName||this.filterName(l);const c=l.modifiers||l.children||l.subFilters||l.items||l.treeChildren||[];for(const t of c)if(t._id===e)return this.isAllChild(t)?l.displayName||this.filterName(l):`${l.displayName||this.filterName(l)} ${this.childName(t)}`}const s=this.allSelectableFilters.find(l=>l._id===e);return s?s.displayName||this.filterName(s):this.allLabel||this.t("search-lots_filter-all")},isSelectDisabled(){return this.disabled||!this.allSelectableFilters.some(e=>e.count>0||this.isChecked(e._id))},isSingle(){return this.allSelectableFilters.length<=1}},watch:{filters:{handler(){this.syncFromProp()},immediate:!0},selectedIds:{handler(){this.syncFromProp()}},customSelectLabel:{handler(e){const a=this.filterChecked.length>0?e:"";this.$emit("update:selected-label",a)},immediate:!0}},methods:{isParentDisabled(e){return e?!(e.count!==null&&e.count!==void 0&&e.count>0||this.isChecked(e._id)||e.originalId&&this.isChecked(e.originalId)||(e.modifiers||e.children||e.subFilters||e.items||e.treeChildren||[]).some(s=>this.isChecked(s._id))):!0},isParentExpanded(e){return this.openParents.includes(e)},parentHasCheckedChildren(e){const a=this.normalizedFilters.find(s=>s._id===e||s.originalId===e);return!a||!a.hasTree?!1:a.treeChildren.some(s=>this.filterChecked.includes(s._id))},toggleParent(e){const a=this.normalizedFilters.find(s=>s._id===e||s.originalId===e);a&&this.isParentDisabled(a)||(this.isParentExpanded(e)?this.openParents=this.openParents.filter(s=>s!==e):(this.openParents=this.openParents.filter(s=>this.parentHasCheckedChildren(s)),this.openParents.push(e)))},autoExpandParentsWithSelectedChildren(){if(this.filterChecked.length!==0)for(const e of this.normalizedFilters)e.hasTree&&e.treeChildren.some(a=>this.filterChecked.includes(a._id))&&(this.isParentExpanded(e._id)||this.openParents.push(e._id))},syncFromProp(){const e=this.selectedIds,a=String(e||"").split(",").map(s=>s.trim()).find(Boolean);this.filterChecked=a?[a]:[],this.autoExpandParentsWithSelectedChildren()},updateFilters(){this.$emit("setFilter",{type:"commonFilter",ids:this.filterChecked})},isChecked(e){return e?this.filterChecked.includes(e):!1},shouldShowCount(e,a){return!!(e!=null&&e>0||a&&this.isChecked(a))},filterName(e){if(!e)return"";if(typeof e=="object"&&e.translationKey)return this.t(e.translationKey);const a=typeof e=="object"?e.name:String(e);return a?a==="empty"?this.t("coin_auction_no-safety"):a==="collection"?this.t("coin_auction_collection-name"):a:""},childName(e){const a=this.filterName(e);return a||""},clearFilters(){this.filterChecked=[],this.openParents=[],this.updateFilters(),this.$refs.select&&(this.$refs.select.isOpen=!1)},isAllChild(e){return e?e.translationKey==="coin_filter_safety_all"||e.name==="Все"||String(e.name||"").endsWith(" Все")||String(e._id||"").endsWith("_all"):!1},toggleSingleSafety(e){if(this.disabled)return;const a=this.allSelectableFilters.find(s=>s._id===e);a&&a.count===0&&!this.isChecked(e)||(this.filterChecked=this.isChecked(e)?[]:[e],this.updateFilters(),this.$refs.select&&(this.$refs.select.isOpen=!1))},selectSingleValue(e){this.toggleSingleSafety(e)}}},ln={class:"auctions__filter-title"},rn={key:0,class:"slab-filter-columns"},on={class:"slab-filter-column"},cn=["onClick"],un={class:"slab-filter-tree__parent-title"},dn={key:0,class:"count"},mn={key:0,class:"slab-filter-tree__children"}
2,hn={key:0,class:"count"},_n={key:0,class:"count"},fn={class:"slab-filter-group slab-filter-group_suffixes"},gn={class:"slab-filter-group__title"},yn={class:"slab-filter-column"},pn={key:0,class:"count"},vn={key:1},bn={key:2,class:"count"};function Sn(e,a,s,l,c,t){const o=ha,f=_a;return r(),u("div",{class:D(["auctions__filter safety",{auctions__filter_disabled:t.isSelectDisabled}])},[_("div",ln,m(s.name),1),xe(f,{ref:"select","custom-label":c.filterChecked.length>0?t.customSelectLabel:"",placeholder:c.filterChecked.length===0?t.customSelectLabel:"",class:"filter-page__result-select select-style",disabled:t.isSelectDisabled,clearable:c.filterChecked.length>0,"dropdown-min-width":"440px","mobile-modal":!0,"modal-title":s.name,"has-apply-btn":!1,onClear:t.clearFilters},{default:G(()=>[t.isSingle?(r(),u("div",vn,[(r(!0),u(V,null,Se(t.allSelectableFilters,(n,d)=>(r(),B(o,{key:d,value:n._id,class:D(["single__item",{single__item_active:t.isChecked(n._id),single__item_disabled:n.count===0&&!t.isChecked(n._id)}]),onSelectValue:i=>t.toggleSingleSafety(n._id)},{default:G(()=>[n.modifierName?(r(),u(V,{key:0},[N(m(n.parentName),1),a[0]||(a[0]=_("span",{class:"single__divider"},"/",-1)),N(m(n.modifierName),1)],64)):(r(),u(V,{key:1},[N(m(n.displayName||t.filterName(n)),1)],64)),t.shouldShowCount(n.count,n._id)?(r(),u("span",bn,m(n.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):(r(),u("div",rn,[_("div",on,[(r(!0),u(V,null,Se(t.column1,n=>(r(),u(V,{key:n._id},[n.hasTree?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(d=>t.toggleParent(n._id),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(n._id)}])},null,2)),_("span",un,[N(m(n.displayName)+" ",1),t.shouldShowCount(n.count,n._id)?(r(),u("span",dn,m(n.count),1)):v("",!0)])],10,cn),t.isParentExpanded(n._id)?(r(),u("div",mn,[(r(!0),u(V,null,Se(n.treeChildren,d=>(r(),B(o,{key:d._id||d.name,value:d._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(d._id),single__item_disabled:d.count===0&&!t.isChecked(d._id),"single__item_has-divider":t.isAllChild(d)}]),onSelectValue:i=>t.toggleSingleSafety(d._id)},{default:G(()=>[N(m(t.childName(d))+" ",1),t.shouldShowCount(d.count,d._id)?(r(),u("span",hn,m(d.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:n._id,class:D(["single__item",{single__item_active:t.isChecked(n._id),single__item_disabled:n.count===0&&!t.isChecked(n._id),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:d=>t.toggleSingleSafety(n._id)},{default:G(()=>[N(m(n.displayName)+" ",1),t.shouldShowCount(n.count,n._id)?(r(),u("span",_n,m(n.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))]),_("div",fn,[_("div",gn,m(e.$t("coin_filter_any-grades-title")),1),_("div",yn,[(r(!0),u(V,null,Se(t.column2,(n,d)=>(r(),B(o,{key:"col2-"+d,value:n._id,class:D(["single__item",{single__item_active:t.isChecked(n._id),single__item_disabled:n.count===0&&!t.isChecked(n._id)}]),onSelectValue:i=>t.toggleSingleSafety(n._id)},{default:G(()=>[N(m(t.filterName(n))+" ",1),t.shouldShowCount(n.count,n._id)?(r(),u("span",pn,m(n.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])])]))]),_:1},8,["custom-label","placeholder","disabled","clearable","modal-title","onClear"])],2)}const Cn=Object.assign(Ge(sn,[["render",Sn],["__scopeId","data-v-e00e9a29"]]),{__name:"CoinLotsSafetyFilter"}),kn={props:{name:{type:String,required:!0},filters:{type:Array,required:!0},disabled:{type:Boolean,default:!1},allLabel:{type:String,default:""},selectedIds:{type:String,default:""}},emits:["setFilter","update:selected-label"],setup(){const{t:e,locale:a}=ht();return{t:e,locale:a}},data(){return{filterChecked:[],openParents:[]}},computed:{normalizedFilters(){return Array.isArray(this.filters)?this.filters:[]},allSelectableFilters(){const e=[];for(const a of this.normalizedFilters)if(this.hasTree(a)){const s=this.getItemChildren(a);for(const l of s)e.push(l)}else{const s=this.getSingleActiveChild(a);
2s?(e.push({...a,_id:s._id,name:this.getSingleItemName(a),count:this.getSingleItemCount(a)}),a._id!==s._id&&(e.push(a),e.push(s))):e.push(a)}return e},hasAnyNestedModifiers(){return this.normalizedFilters.some(e=>this.hasTree(e))},customSelectLabel(){if(this.filterChecked.length===0)return this.allLabel||this.t("search-lots_filter-all");const e=this.filterChecked[0],a=this.allSelectableFilters.find(s=>s._id===e);if(a){if(a.type==="suffix"||this.desktopColumns.col3&&this.desktopColumns.col3.some(l=>l._id===a._id))return this.t("coin_filter_any-with-modifier-v",{v:a.name});if(this.isAllChild(a)){const l=this.normalizedFilters.find(c=>this.getItemChildren(c).some(t=>t._id===a._id));if(l)return`${this.filterName(l)} ${this.filterName(a)}`}return this.filterName(a)}return this.allLabel||this.t("search-lots_filter-all")},isSelectDisabled(){return this.disabled||!this.allSelectableFilters.some(e=>e.count>0||this.isChecked(e._id))},isSingle(){return this.allSelectableFilters.length<=1},allSeriesGroups(){const e=[],a={};for(const s of this.normalizedFilters){let l="OTHER";s.type==="suffix"?l="PL":l=this.getSeries(s.name),a[l]||(a[l]=[],e.push(l)),a[l].push(s)}return{orderOfSeries:e,groups:a}},desktopColumns(){const{orderOfSeries:e,groups:a}=this.allSeriesGroups,s=e.filter(C=>C!=="PL"),l=s.reduce((C,P)=>C+a[P].reduce((te,j)=>te+this.getItemWeight(j),0),0);let c=1,t=1/0;for(let C=1;C<=s.length;C++){const P=s.slice(0,C).reduce((W,ce)=>W+a[ce].reduce((De,Ce)=>De+this.getItemWeight(Ce),0),0),te=l-P,j=Math.abs(P-te);j<t&&(t=j,c=C)}const o=s.slice(0,c),f=s.slice(c),n=o.flatMap(C=>a[C]),d=f.flatMap(C=>a[C]),i=a.PL||[];return{col1:n,col2:d,col3:i}},mobileColumns(){const{orderOfSeries:e,groups:a}=this.allSeriesGroups,s=this.normalizedFilters.reduce((d,i)=>d+this.getItemWeight(i),0);let l=1,c=1/0;for(let d=1;d<=e.length;d++){const i=e.slice(0,d).reduce((te,j)=>te+a[j].reduce((W,ce)=>W+this.getItemWeight(ce),0),0),C=s-i,P=Math.abs(i-C);P<c&&(c=P,l=d)}const t=e.slice(0,l),o=e.slice(l),f=t.flatMap(d=>a[d]),n=o.flatMap(d=>a[d]);return{col1:f,col2:n}}},watch:{filters:{handler(){this.syncFromProp()},immediate:!0},selectedIds:{handler(){this.syncFromProp()}},customSelectLabel:{handler(e){const a=this.filterChecked.length>0?e:"";this.$emit("update:selected-label",a)},immediate:!0}},methods:{getParentId(e){return e._id||e.id||e.name},parentHasCheckedChildren(e){const a=this.normalizedFilters.find(l=>this.getParentId(l)===e);return a?this.getItemChildren(a).some(l=>this.filterChecked.includes(l._id)):!1},hasTree(e){if(!e)return!1;const a=this.getItemChildren(e);if(!a.length)return!1;const s=a.filter(c=>!this.isAllChild(c));return s.length?s.filter(c=>c.count!==void 0&&c.count>0||this.isChecked(c._id)).length>1:!1},getSingleActiveChild(e){const a=this.getItemChildren(e);if(!a.length)return null;const l=a.filter(c=>!this.isAllChild(c)).filter(c=>c.count!==void 0&&c.count>0||this.isChecked(c._id));return l.length===1?l[0]:null},getSingleItemId(e){if(!e)return"";if(!this.hasTree(e)){const a=this.getSingleActiveChild(e);if(a&&a._id)return a._id}return e._id||e.id||""},getSingleItemName(e){if(!e)return"";if(!this.hasTree(e)){const a=this.getSingleActiveChild(e);if(a){const s=this.filterName(e),l=this.filterName(a);return l&&l!==s?l:s}}return this.filterName(e)},getSingleItemCount(e){if(!e)return null;if(e.count!==void 0&&e.count!==null)return e.count;const a=this.getSingleActiveChild(e);return a&&a.count!==void 0&&a.count!==null?a.count:this.getParentCount(e)},isItemChecked(e){if(!e)return!1;const a=this.getSingleItemId(e);return this.isChecked(a)||this.isChecked(e._id)},isItemDisabled(e){if(!e)return!0;const a=this.getSingleItemId(e);if(this.isChecked(a)||this.isChecked(e._id))return!1;const s=this.getSingleItemCount(e);return s===0||s===null||s===void 0},isParentDisabled(e){if(!e)return!0;const a=this.getParentCount(e);return!(a!=null&&a>0||this.isChecked(this.getParentId(e))||this.isChecked(e._id)||this.getItemChildren(e).some(l=>this.isChecked(l._id)))},isParentExpanded(e){return this.openParents.includes(e)},toggleParent(e){const a=this.normalizedFilters.find(s=>this.getParentId(s)===e||s._id===e);a&&this.isParentDisabled(a)||(this.isParentExpanded(e)?this.openParents=this.openParents.filter(s=>s!==e):(this.openParents=this.openParents.filter(s=>this.parentHasCheckedChildren(s)),this.openParents.push(e)))},autoExpandParentsWithSelectedChildren(){if(this.filterChecked.length!==0){for(const e of this.normalizedFilters)if(this.hasTree(e)){const a=this.getItemChildren(e);if(a.length>0){const s=this.getParentId(e);a.some(c=>this.filterChecked.includes(c._id))&&!this.isParentExpanded(s)&&this.openParents.push(s)}}}},getItemChildren(e){return Array.isArray(e?.children)?e.children:[]},getParentCount(e){if(e.count!==void 0&&e.count!==null)return e.count;const a=this.getItemChildren(e);return a.length>0?a.reduce((s,l)=>s+(l.count||0),0):null},getItemWeight(e){if(!this.hasTree(e))return 1;const a=this.getItemChildren(e),s=this.getParentId(e);return this.isParentExpanded(s)?1+a.length:1},syncFromProp(){const e=this.selectedIds;this.filterChecked=e?String(e).split(",").map(a=>
2a.trim()).filter(Boolean).slice(0,1):[],this.autoExpandParentsWithSelectedChildren()},updateFilters(){this.$emit("setFilter",{type:"suffixFilter",ids:this.filterChecked})},isChecked(e){return e?this.filterChecked.includes(e):!1},shouldShowCount(e,a){return!!(e!=null&&e>0||a&&this.isChecked(a))},filterName(e){if(!e)return"";const a=typeof e=="object"?e.name:String(e);return a?a==="empty"?this.t("coin_auction_no-safety"):a==="collection"?this.t("coin_auction_collection-name"):typeof e=="object"&&this.isAllChild(e)?this.allLabel||this.t("search-lots_filter-all"):a:""},getSeries(e){if(e.includes("DETAILS"))return"DETAILS";const a=e.match(/^[A-Za-z]+/);return a?a[0]:"OTHER"},toggleSingleSlab(e){if(this.disabled)return;const a=this.allSelectableFilters.find(s=>s._id===e);a&&a.count===0&&!this.isChecked(e)||(this.isChecked(e)?this.filterChecked=[]:this.filterChecked=[e],this.updateFilters(),this.$refs.select&&(this.$refs.select.isOpen=!1))},clearFilters(){this.filterChecked=[],this.openParents=[],this.updateFilters(),this.$refs.select&&(this.$refs.select.isOpen=!1)},isAllChild(e){return e?this.normalizedFilters.some(a=>(this.getParentId(a)===this.getParentId(e)||e.type==="slab"&&e.name===a.name)&&this.getItemChildren(a).includes(e)):!1},selectSingleValue(e){this.toggleSingleSlab(e)}}},wn={class:"auctions__filter-title"},Pn={key:0,class:"slab-filter-columns slab-filter-columns_desktop"},xn={class:"slab-filter-column"},In=["onClick"],Tn={class:"slab-filter-tree__parent-title"},Dn={key:0,class:"count"},Ln={key:0,class:"slab-filter-tree__children"},Mn={key:0,class:"count"},Fn={key:0,class:"count"},Rn={class:"slab-filter-column"},An=["onClick"],En={class:"slab-filter-tree__parent-title"},Nn={key:0,class:"count"},On={key:0,class:"slab-filter-tree__children"},zn={key:0,class:"count"},Yn={key:0,class:"count"},Vn={key:0,class:"slab-filter-group slab-filter-group_suffixes"},Bn=["innerHTML"],Un={class:"slab-filter-column"},Wn=["onClick"],Hn={class:"slab-filter-tree__parent-title"},jn={key:0,class:"count"},qn={key:0,class:"slab-filter-tree__children"},$n={key:0,class:"count"},Xn={key:0,class:"count"},Kn={key:1,class:"slab-filter-columns slab-filter-columns_mobile"},Gn={class:"slab-filter-column"},Qn=["onClick"],Jn={class:"slab-filter-tree__parent-title"},Zn={key:0,class:"count"},es={key:0,class:"slab-filter-tree__children"},ts={key:0,class:"count"},as={key:0,class:"count"},ns={class:"slab-filter-column"},ss=["onClick"],ls={class:"slab-filter-tree__parent-title"},is={key:0,class:"count"},rs={key:0,class:"slab-filter-tree__children"},os={key:0,class:"count"},cs={key:0,class:"count"},us={key:0,class:"slab-filter-group slab-filter-group_suffixes"},ds=["innerHTML"],ms={class:"slab-filter-column"},hs=["onClick"],_s={class:"slab-filter-tree__parent-title"},fs={key:0,class:"count"},gs={key:0,class:"slab-filter-tree__children"},ys={key:0,class:"count"},ps={key:0,class:"count"},vs={key:2},bs=["onClick"],Ss={class:"slab-filter-tree__parent-title"},Cs={key:0,class:"count"},ks={key:0,class:"slab-filter-tree__children"},ws={key:0,class:"count"},Ps={key:0,class:"count"};function xs(e,a,s,l,c,t){const o=ha,f=_a;return r(),u("div",{class:D(["auctions__filter safety-easy",{auctions__filter_disabled:t.isSelectDisabled}])},[_("div",wn,m(s.name),1),xe(f,{ref:"select","custom-label":c.filterChecked.length>0?t.customSelectLabel:"",placeholder:c.filterChecked.length===0?t.customSelectLabel:"",class:"filter-page__result-select select-style",disabled:t.isSelectDisabled,clearable:c.filterChecked.length>0,"dropdown-min-width":"560px","mobile-modal":!0,"modal-title":s.name,"has-apply-btn":!1,onClear:t.clearFilters},{default:G(()=>[t.isSingle?v("",!0):(r(),u("div",Pn,[_("div",xn,[(r(!0),u(V,null,Se(t.desktopColumns.col1,(n,d)=>(r(),u(V,{key:"dt1-"+d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",Tn,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",Dn,m(t.getParentCount(n)),1)):v("",!0)])],10,In),t.isParentExpanded(t.getParentId(n))?(r(),u("div",Ln,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-div
2ider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",Mn,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",Fn,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))]),_("div",Rn,[(r(!0),u(V,null,Se(t.desktopColumns.col2,(n,d)=>(r(),u(V,{key:"dt2-"+d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",En,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",Nn,m(t.getParentCount(n)),1)):v("",!0)])],10,An),t.isParentExpanded(t.getParentId(n))?(r(),u("div",On,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-divider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",zn,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",Yn,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))]),t.desktopColumns.col3.length>0?(r(),u("div",Vn,[_("div",{class:"slab-filter-group__title",innerHTML:e.$t("coin_filter_any-slab-with-modifier-title")},null,8,Bn),_("div",Un,[(r(!0),u(V,null,Se(t.desktopColumns.col3,(n,d)=>(r(),u(V,{key:"dt3-"+d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",Hn,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",jn,m(t.getParentCount(n)),1)):v("",!0)])],10,Wn),t.isParentExpanded(t.getParentId(n))?(r(),u("div",qn,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-divider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",$n,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",Xn,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))])])):v("",!0)])),t.isSingle?(r(),u("div",vs,[(r(!0),u(V,null,Se(t.normalizedFilters,(n,d)=>(r(),u(V,{key:d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",Ss,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",Cs,m(t.getParentCount(n)),1)):v("",!0)])],10,bs),t.isParentExpanded(t.getParentId(n))?(r(),u("div",ks,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-div
2ider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",ws,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",Ps,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))])):(r(),u("div",Kn,[_("div",Gn,[(r(!0),u(V,null,Se(t.mobileColumns.col1,(n,d)=>(r(),u(V,{key:"mb1-"+d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",Jn,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",Zn,m(t.getParentCount(n)),1)):v("",!0)])],10,Qn),t.isParentExpanded(t.getParentId(n))?(r(),u("div",es,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-divider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",ts,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",as,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))]),_("div",ns,[(r(!0),u(V,null,Se(t.mobileColumns.col2,(n,d)=>(r(),u(V,{key:"mb2-"+d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",ls,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",is,m(t.getParentCount(n)),1)):v("",!0)])],10,ss),t.isParentExpanded(t.getParentId(n))?(r(),u("div",rs,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-divider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",os,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",cs,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))]),t.desktopColumns.col3.length>0?(r(),u("div",us,[_("div",{class:"slab-filter-group__title",innerHTML:e.$t("coin_filter_any-slab-with-modifier-title")},null,8,ds),_("div",ms,[(r(!0),u(V,null,Se(t.desktopColumns.col3,(n,d)=>(r(),u(V,{key:"mb3-"+d},[t.hasTree(n)?(r(),u(V,{key:0},[_("div",{class:D(["slab-filter-tree__parent",{"slab-filter-tree__parent_disabled":t.isParentDisabled(n),"slab-filter-tree__parent_indented":t.isParentDisabled(n)}]),onClick:it(i=>t.toggleParent(t.getParentId(n)),["stop"])},[t.isParentDisabled(n)?v("",!0):(r(),u("i",{key:0,class:D(["i i-expand-more slab-filter-tree__icon",{"slab-filter-tree__icon_open":t.isParentExpanded(t.getParentId(n))}])},null,2)),_("span",_s,[N(m(t.filterName(n))+" ",1),t.shouldShowCount(t.getParentCount(n))?(r(),u("span",fs,m(t.getParentCount(n)),1)):v("",!0)])],10,hs),t.isParentExpanded(t.getParentId(n))?(r(),u("div",gs,[(r(!0),u(V,null,Se(t.getItemChildren(n),i=>(r(),B(o,{key:i._id||i.name,value:i._id,class:D(["single__item single__item_child",{single__item_active:t.isChecked(i._id),single__item_disabled:i.count===0&&!t.isChecked(i._id),"single__item_has-div
2ider":t.isAllChild(i)}]),onSelectValue:C=>t.toggleSingleSlab(i._id)},{default:G(()=>[N(m(t.filterName(i))+" ",1),t.shouldShowCount(i.count,i._id)?(r(),u("span",ys,m(i.count),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))),128))])):v("",!0)],64)):(r(),B(o,{key:1,value:t.getSingleItemId(n),class:D(["single__item",{single__item_active:t.isItemChecked(n),single__item_disabled:t.isItemDisabled(n),single__item_indented:t.hasAnyNestedModifiers}]),onSelectValue:i=>t.toggleSingleSlab(t.getSingleItemId(n))},{default:G(()=>[N(m(t.getSingleItemName(n))+" ",1),t.shouldShowCount(t.getSingleItemCount(n),t.getSingleItemId(n))?(r(),u("span",ps,m(t.getSingleItemCount(n)),1)):v("",!0)]),_:2},1032,["value","class","onSelectValue"]))],64))),128))])])):v("",!0)]))]),_:1},8,["custom-label","placeholder","disabled","clearable","modal-title","onClear"])],2)}const Is=Object.assign(Ge(kn,[["render",xs],["__scopeId","data-v-67cc8d5c"]]),{__name:"CoinLotsSlabFilter"}),Ts={props:{name:{type:String,required:!0},filters:{type:Array,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},allLabel:{type:String,default:""},dropdownMinWidth:{type:String,default:""},selectedIds:{type:String,default:""},mobileModal:{type:Boolean,default:!0}},emits:["setFilter"],setup(){const{t:e,locale:a}=ht();return{t:e,locale:a}},data(){return{filterChecked:[]}},computed:{classType(){switch(this.type){case"commonFilter":return"safety";case"suffixFilter":return"safety-easy";case"firmFilter":return"suffix";case"collectionFilter":return"safety-easy";case"firm":return"suffix";default:throw new Error("wrong filter type")}},customSelectLabel(){const e=this.filters.filter(a=>this.filterChecked.includes(a._id)).map(a=>this.filterName(a.name));return e.length===0?this.allLabel||this.t("search-lots_filter-all"):e.join(", ")},isSelectDisabled(){return this.disabled||!this.filters.some(e=>e.count>0||this.isChecked(e._id))},isSingle(){return this.filters.length<=1}},watch:{filters:{handler(){this.syncFromProp()},immediate:!0},selectedIds:{handler(){this.syncFromProp()}}},methods:{syncFromProp(){const e=this.selectedIds;e!=null&&e!==""?this.filterChecked=String(e).split(",").map(a=>a.trim()).filter(Boolean):this.filterChecked=[]}
2,updateFilters(){this.$emit("setFilter",{type:this.type,ids:this.filterChecked})},isChecked(e){return this.filterChecked.includes(e)},filterName(e){switch(e){case"empty":return this.t("coin_auction_no-safety");case"collection":return this.t("coin_auction_collection-name");default:return e}},clearFilters(){this.filterChecked=[],this.updateFilters(),this.$refs.select&&(this.$refs.select.isOpen=!1)},selectSingleValue(e){this.isSingle&&(this.disabled||(this.filterChecked=[e],this.updateFilters(),this.$refs.select&&(this.$refs.select.isOpen=!1)))}}},Ds={class:"auctions__filter-title"},Ls=["disabled","value"],Ms={class:"checkbox__label-text"},Fs={class:"count"},Rs={class:"count"};function As(e,a,s,l,c,t){const o=ha,f=_a;return r(),u("div",{class:D(["auctions__filter",[t.classType,{auctions__filter_disabled:t.isSelectDisabled}]])},[_("div",Ds,m(s.name),1),xe(f,{ref:"select","custom-label":c.filterChecked.length>0?t.customSelectLabel:"",placeholder:c.filterChecked.length===0?t.customSelectLabel:"",class:"filter-page__result-select select-style",disabled:t.isSelectDisabled,clearable:c.filterChecked.length>0,"dropdown-min-width":s.dropdownMinWidth,"mobile-modal":s.mobileModal,"modal-title":s.name,"has-apply-btn":!t.isSingle,"apply-btn-text":e.$t("coin_filter_apply-btn"),onClear:t.clearFilters},{default:G(()=>[(r(!0),u(V,null,Se(s.filters,(n,d)=>(r(),B(o,{key:d,value:n._id,onSelectValue:i=>t.selectSingleValue(n._id)},{default:G(()=>[t.isSingle?(r(),u("span",{key:1,class:D(["single__label",{single__label_active:t.isChecked(n._id),single__label_disabled:n.count===0&&!t.isChecked(n._id)}])},[N(m(t.filterName(n.name))+" ",1),_("span",Rs,m(n.count),1)],2)):(r(),u("label",{key:0,class:D(["checkbox__label",{checkbox__label_disabled:n.count===0&&!t.isChecked(n._id)}]),onClick:a[2]||(a[2]=it(()=>{},["stop"]))},[Et(_("input",{"onUpdate:modelValue":a[0]||(a[0]=i=>c.filterChecked=i),disabled:s.disabled||n.count===0&&!t.isChecked(n._id),type:"checkbox",class:"checkbox__label-check",value:n._id,onChange:a[1]||(a[1]=(...i)=>t.updateFilters&&t.updateFilters(...i))},null,40,Ls),[[Fa,c.filterChecked]]),_("span",Ms,[N(m(t.filterName(n.name))+" ",1),_("span",Fs,m(n.count),1)])],2))]),_:2},1032,["value","onSelectValue"]))),128))]),_:1},8,["custom-label","placeholder","disabled","clearable","dropdown-min-width","mobile-modal","modal-title","has-apply-btn","apply-btn-text","onClear"])],2)}const Es=Object.assign(Ge(Ts,[["render",As],["__scopeId","data-v-8036f643"]]),{__name:"CoinLotsFilter"}),Ns={props:{name:{type:String,default:""},years:{type:Array,required:!0},backendYears:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},modelValue:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{localYearFrom:null,localYearTo:null,isFromOpen:!1,isToOpen:!1}},computed:{minYear(){return this.years.length?Math.min(...this.years):null},maxYear(){return this.years.length?Math.max(...this.years):null},fromYears(){if(!this.years.length)return[];const e=this.localYearTo??this.maxYear;return this.years.filter(a=>a>e?!1:!this.backendYears?.length||this.backendYears.includes(a))},toYears(){if(!this.years.length)return[];const e=this.localYearFrom??this.minYear;return this.years.filter(a=>a<e?!1:!this.backendYears?.length||this.backendYears.includes(a)||a===this.maxYear).sort((a,s)=>s-a)},isSelectDisabled(){return this.disabled||this.years.length<2||this.backendYears&&this.backendYears.length===0},isDefaultFrom(){return!this.localYearFrom||Number(this.localYearFrom)===Number(this.minYear)},isDefaultTo(){return!this.localYearTo||Number(this.localYearTo)===Number(this.maxYear)}},watch:{modelValue:{handler(e){this.localYearFrom=e?.from??this.minYear,this.localYearTo=e?.to??this.maxYear},immediate:!0,deep:!0},years:{handler(e){e?.length&&((this.modelValue?.from==null||!e.includes(this.localYearFrom))&&(this.localYearFrom=Math.min(...e)),(this.modelValue?.to==null||!e.includes(this.localYearTo))&&(this.localYearTo=Math.max(...e)))},immediate:!0}},methods:{handleBlur(e,a){e==="from"&&(this.isFromOpen=!1),e==="to"&&(this.isToOpen=!1),a?.target&&a.target.blur()},handleChange(e,a){e==="from"&&(this.isFromOpen=!1),e==="to"&&(this.isToOpen=!1),a?.target&&a.target.blur(),this.updateFilters()},updateFilters(){this.$emit("update:modelValue",{from:this.localYearFrom,to:this.localYearTo})}}},Os={key:0,class:"auctions__filter-title"},zs={class:"year-filter__content"},Ys=["disabled","aria-label"],Vs=["value"],Bs=["disabled","aria-label"],Us=["value"];function Ws(e,a,s,l,c,t){return r(),u("div",{class:D(["auctions__filter year-filter",{auctions__filter_disabled:t.isSelectDisabled}])},[s.name?(r(),u("div",Os,m(s.name),1)):v("",!0),_("div",zs,[_("div",{class:D(["select-style__btn year-filter__select-wrapper",{open:c.isFromOpen,"year-filter__select-wrapper_active":!t.isDefaultFrom}])},[Et(_("select",{"onUpdate:modelValue":a[0]||(a[0]=o=>
2c.localYearFrom=o),class:D(["year-filter__select",{"year-filter__select_default":t.isDefaultFrom}]),disabled:t.isSelectDisabled,"aria-label":s.name?`${s.name} (${e.$t("coin_filter_year-start")})`:e.$t("coin_filter_year-start-label"),onFocus:a[1]||(a[1]=o=>c.isFromOpen=!0),onBlur:a[2]||(a[2]=o=>t.handleBlur("from",o)),onChange:a[3]||(a[3]=o=>t.handleChange("from",o))},[(r(!0),u(V,null,Se(t.fromYears,o=>(r(),u("option",{key:o,value:o},m(o),9,Vs))),128))],42,Ys),[[ka,c.localYearFrom]])],2),a[8]||(a[8]=_("span",{class:"year-filter__dash"},"–",-1)),_("div",{class:D(["select-style__btn year-filter__select-wrapper",{open:c.isToOpen,"year-filter__select-wrapper_active":!t.isDefaultTo}])},[Et(_("select",{"onUpdate:modelValue":a[4]||(a[4]=o=>c.localYearTo=o),class:D(["year-filter__select",{"year-filter__select_default":t.isDefaultTo}]),disabled:t.isSelectDisabled,"aria-label":s.name?`${s.name} (${e.$t("coin_filter_year-end")})`:e.$t("coin_filter_year-end-label"),onFocus:a[5]||(a[5]=o=>c.isToOpen=!0),onBlur:a[6]||(a[6]=o=>t.handleBlur("to",o)),onChange:a[7]||(a[7]=o=>t.handleChange("to",o))},[(r(!0),u(V,null,Se(t.toYears,o=>(r(),u("option",{key:o,value:o},m(o),9,Us))),128))],42,Bs),[[ka,c.localYearTo]])],2)])],2)}const Hs=Object.assign(Ge(Ns,[["render",Ws],["__scopeId","data-v-a54bc884"]]),{__name:"CoinLotsYearFilter"}),js={name:"BaseSkeleton",props:{width:{type:String,default:"100%"},height:{type:String,default:"20px"},radius:{type:String,default:"4px"},bgColor:{type:String,default:""},border:{type:String,default:""},display:{type:String,default:"inline-block"},animated:{type:Boolean,default:!0},text:{type:String,default:""}},computed:{hasText(){return!!this.text},skeletonStyle(){const e={width:this.width,height:this.height,borderRadius:this.radius,display:this.display};return this.bgColor&&(e.backgroundColor=this.bgColor),this.border&&(e.border=this.border),e}}},qs={key:0,class:"base-skeleton__content"};function $s(e,a,s,l,c,t){return r(),u("div",{class:D(["base-skeleton",{"base-skeleton_animated":s.animated,"base-skeleton_static":!s.animated,"base-skeleton_with-text":t.hasText||e.$slots.default}]),style:Aa(t.skeletonStyle)},[t.hasText||e.$slots.default?(r(),u("div",qs,[Ra(e.$slots,"default",{},()=>[N(m(s.text),1)],!0)])):v("",!0)],6)}const fa=Object.assign(Ge(js,[["render",$s],["__scopeId","data-v-1bff2e33"]]),{__name:"BaseSkeleton"}),Xs={},Ks={class:"catalog-price-disclaimer-inline"};function Gs(e,a){return r(),u("div",Ks,m(e.$t("coin_price-disclaimer-inline-text")),1)}const Qs=Object.assign(Ge(Xs,[["render",Gs],["__scopeId","data-v-ad32ab3b"]]),{__name:"CatalogPriceDisclaimerInline"}),Js={props:{coin:{type:Object,required:!0},chartSummaryData:{type:Object,default:null},averagePriceSummary:{type:Object,required:!0},corridorSummary:{type:Object,required:!0},metalSummary:{type:Object,default:null},summaryDateStr:{type:String,required:!0},periodYearsCount:{type:Number,required:!0},selectedConditionsText:{type:String,default:""},selectedSlabText:{type:String,default:""},userCurrency:{type:Object,required:!0},includeFees:{type:Boolean,required:!0},isLoading:{type:Boolean,default:!1},isOnlyYearFromLoading:{type:Boolean,default:!1},isYearToLoading:{type:Boolean,default:!1},hasInitialSummaryData:{type:Boolean,default:!0},hasInitialPriceData:{type:Boolean,default:!1},hasInitialMetalData:{type:Boolean,default:!1}},setup(){const{locale:e,t:a}=ht();return{locale:e,t:a}},data(){return{isChangeTooltipOpen:!1}},computed:{isStandaloneModifierSlab(){if(!this.selectedSlabText)return!1;const e=String(this.selectedSlabText).trim();if(/^(Люб(ой|ая)[\s\u00a0]+с|Any[\s\u00a0]+with|Dowoln(y|a)[\s\u00a0]+z|Beliebig[\s\u00a0]+mit|Cualquiera[\s\u00a0]+con)[\s\u00a0]+/i.test(e))return!0;const a=["CAMEO","DPL","+","PLUS","PROOF","PL"],s=e.toUpperCase();return a.some(l=>s===l||s.endsWith(` ${l}`))},standaloneModifierName(){return this.selectedSlabText?String(this.selectedSlabText).trim().replace(/^(Люб(ой|ая)[\s\u00a0]+с|Any[\s\u00a0]+with|Dowoln(y|a)[\s\u00a0]+z|Beliebig[\s\u00a0]+mit|Cualquiera[\s\u00a0]+con)[\s\u00a0]+/i,""):""},hasDefaultPrice(){return!!(this.coin.prices?.[this.userCurrency.code]||this.coin.proofPrice
2s?.[this.userCurrency.code])},hasPriceData(){const e=this.averagePriceSummary&&(this.averagePriceSummary.hidden||this.averagePriceSummary.value!==null&&this.averagePriceSummary.value!==void 0),a=this.corridorSummary&&(this.corridorSummary.hidden||this.corridorSummary.lower!==null||this.corridorSummary.upper!==null),s=!!(this.chartSummaryData?.firstSaleYear||this.hasDefaultPrice);return e||a||this.hasInitialSummaryData&&s},hasMetalData(){return this.metalSummary!==null&&(this.metalSummary.hidden||this.metalSummary.value!==null&&this.metalSummary.value!==void 0&&this.metalSummary.value>0)},hasPeriodYears(){return!this.isYearsCountLoading&&this.periodYearsCount>0},showPeriodYears(){return(this.isYearsCountLoading||this.periodYearsCount>0)&&(this.hasPriceData||this.hasInitialPriceData&&this.isPriceLoading)},itemsCount(){let e=0;return(this.hasPriceData||this.hasInitialPriceData&&this.isPriceLoading)&&(e+=2),(this.hasMetalData||this.hasInitialMetalData&&this.isMetalLoading)&&(e+=1),e||1},isSummaryVisible(){return!!(this.hasInitialSummaryData||this.hasDefaultPrice||this.hasMetalData||this.hasPriceData||this.chartSummaryData&&(this.chartSummaryData.trend!=null||this.chartSummaryData.lower!=null||this.chartSummaryData.metal!=null))},isPriceLoading(){return this.isLoading||this.isOnlyYearFromLoading},isCorridorLoading(){return this.isLoading||this.isOnlyYearFromLoading},isMetalLoading(){return!this.metalSummary&&(this.isLoading||this.isOnlyYearFromLoading||this.isYearToLoading)},isPercentLoading(){return this.isLoading||this.isOnlyYearFromLoading||this.isYearToLoading},isYearsCountLoading(){return this.isLoading||this.isOnlyYearFromLoading||this.isYearToLoading}},methods:{formatPriceValue(e,a=!1){const s=Number(e);return e==null||!Number.isFinite(s)?"—":xa(a?At(s):s,this.userCurrency.code,this.locale)},formatCorridorValue(e,a){const s=Number(e),l=Number(a);return e==null||a==null||!Number.isFinite(s)||!Number.isFinite(l)?"—":Pa(At(s,"down"),At(l,"up"),this.userCurrency.code,this.locale)},formatSummaryDate(e){if(!e)return"";const a=new Date(e),l={ru:"ru-RU",pl:"pl-PL",de:"de-DE",es:"es-ES",en:"en-US"}[this.locale]||"en-US";return a.toLocaleDateString(l,{day:"numeric",month:"long",year:"numeric"})},getYearsWord(e){if(this.locale==="ru"){const a=e%10,s=e%100;return s>=11&&s<=19?this.t("coin_summary_year-plural"):a===1?this.t("coin_summary_year-singular"):a>=2&&a<=4?this.t("coin_summary_year-genitive-singular"):this.t("coin_summary_year-plural")}if(this.locale==="pl"){const a=e%10,s=e%100;return e===1?this.t("coin_summary_year-singular"):a>=2&&a<=4&&!(s>=12&&s<=14)?this.t("coin_summary_year-genitive-singular"):this.t("coin_summary_year-plural")}return e===1?this.t("coin_summary_year-singular"):this.t("coin_summary_year-plural")}}},Zs={class:"coin-lots__summary-body"},el={key:0,class:"coin-lots__summary-item"},tl={class:"coin-lots__summary-label"},al={class:"coin-lots__summary-value"},nl={class:"coin-lots__change-tooltip"},sl={class:"coin-lots__change-tooltip-text"},ll={key:1,class:"coin-lots__summary-item"},il={class:"coin-lots__summary-label"},rl={class:"coin-lots__summary-value"},ol={key:2,class:"coin-lots__summary-item"},cl={class:"coin-lots__summary-label"},ul={class:"coin-lots__summary-value"},dl={class:"coin-lots__summary-header"},ml={class:"coin-lots__summary-title"},hl={class:"coin-lots__summary-date"},_l={key:0,class:"coin-lots__summary-period"},fl={key:1},gl={key:0,class:"coin-lots__summary-condition-label"},yl={key:1,class:"coin-lots__summary-condition-label"},pl={key:2,class:"coin-lots__summary-condition-label"};function vl(e,a,s,l,c,t){const o=fa,f=Ka,n=ta,d=Qs;return t.isSummaryVisible?(r(),u("div",{key:0,class:D(["coin-lots__summary",`_items-${t.itemsCount}`])},[_("div",Zs,[t.hasPriceData||s.hasInitialPriceData&&t.isPriceLoading?(r(),u("div",el,[_("div",tl,m(e.$t("coin_summary_average-price")),1),_("div",al,[t.isPriceLoading?(r(),B(o,{key:0,width:"75px",height:"25px"})):s.averagePriceSummary.hidden?(r(),B(f,{key:1,data:0,"is-price":!0,hidden:!0,"custom-currency-sign":s.userCurrency.sign,"intl-locale":l.locale,"intl-currency-code":s.userCurrency.code,class:"coin-lots__summary-value_hidden"}
2,null,8,["custom-currency-sign","intl-locale","intl-currency-code"])):(r(),u(V,{key:2},[N(m(t.formatPriceValue(s.averagePriceSummary.value,!0)),1)],64)),t.isPercentLoading&&!s.averagePriceSummary.hidden?(r(),B(o,{key:3,width:"50px",height:"20px",class:"coin-lots__summary-skeleton-percent"})):s.chartSummaryData&&s.chartSummaryData.changePercent!==null&&!s.chartSummaryData.locked&&Math.abs(s.chartSummaryData.changePercent)>=.1?(r(),u(V,{key:4},[t.hasPeriodYears?(r(),u("div",{key:0,class:"coin-lots__summary-change-wrap",onMouseenter:a[1]||(a[1]=i=>c.isChangeTooltipOpen=!0),onMouseleave:a[2]||(a[2]=i=>c.isChangeTooltipOpen=!1),onClick:a[3]||(a[3]=it(i=>c.isChangeTooltipOpen=!0,["stop"]))},[_("span",{class:D(["coin-lots__summary-change",s.chartSummaryData.changePercent>=0?"_up":"_down","coin-lots__summary-change_with-tooltip",{"coin-lots__summary-change_open":c.isChangeTooltipOpen}])},m(s.chartSummaryData.changePercent>=0?"+":"")+m(s.chartSummaryData.changePercent.toFixed(1))+"% ",3),xe(Ea,{name:"slide-tooltip"},{default:G(()=>[Et(_("div",nl,[_("span",sl,m(e.$t("coin_summary_change-for-period-v",{v:`${s.periodYearsCount} ${t.getYearsWord(s.periodYearsCount)}`})),1),xe(n,{class:"btn_style_link btn_size_s btn_fluid coin-lots__change-tooltip-btn",onClick:a[0]||(a[0]=it(i=>c.isChangeTooltipOpen=!1,["stop"]))},{default:G(()=>[N(m(e.$t("btn_ok")),1)]),_:1})],512),[[ea,c.isChangeTooltipOpen]])]),_:1})],32)):(r(),u("span",{key:1,class:D(["coin-lots__summary-change",s.chartSummaryData.changePercent>=0?"_up":"_down"])},m(s.chartSummaryData.changePercent>=0?"+":"")+m(s.chartSummaryData.changePercent.toFixed(1))+"% ",3))],64)):v("",!0)])])):v("",!0),t.hasPriceData||s.hasInitialPriceData&&t.isCorridorLoading?(r(),u("div",ll,[_("div",il,m(e.$t("coin_summary_price-corridor")),1),_("div",rl,[t.isCorridorLoading?(r(),B(o,{key:0,width:"140px",height:"25px"})):s.corridorSummary.hidden?(r(),B(f,{key:1,data:0,"is-price":!0,hidden:!0,"custom-currency-sign":s.userCurrency.sign,"intl-locale":l.locale,"intl-currency-code":s.userCurrency.code,class:"coin-lots__summary-value_hidden"},null,8,["custom-currency-sign","intl-locale","intl-currency-code"])):(r(),u(V,{key:2},[N(m(t.formatCorridorValue(s.corridorSummary.lower,s.corridorSummary.upper)),1)],64))])])):v("",!0),t.hasMetalData||s.hasInitialMetalData&&t.isMetalLoading?(r(),u("div",ol,[_("div",cl,m(e.$t("coin_chart-metal-price-block-title-v",{v:s.coin.metalRP})),1),_("div",ul,[s.metalSummary&&s.metalSummary.hidden?(r(),B(f,{key:0,data:0,"is-price":!0,hidden:!0,"custom-currency-sign":s.userCurrency.sign,"intl-locale":l.locale,"intl-currency-code":s.userCurrency.code,class:"coin-lots__summary-value_hidden"},null,8,["custom-currency-sign","intl-locale","intl-currency-code"])):t.isMetalLoading?(r(),B(o,{key:1,width:"100px",height:"25px"})):s.metalSummary?(r(),u(V,{key:2},[N(m(t.formatPriceValue(s.metalSummary.value)),1)],64)):v("",!0)])])):v("",!0),!s.averagePriceSummary.hidden&&(t.hasPriceData||s.hasInitialPriceData&&t.isPriceLoading)?(r(),B(d,{key:3})):v("",!0)]),_("div",dl,[_("div",ml,[_("div",hl,[N(m(e.$t("coin_summary_as-of-prefix"))+" ",1),_("strong",null,m(t.formatSummaryDate(s.summaryDateStr)),1)]),t.showPeriodYears?(r(),u("div",_l,[N(m(e.$t("coin_summary_for-prefix"))+" ",1),t.isYearsCountLoading?(r(),B(o,{key:0,width:"32px",height:"17px",class:"coin-lots__summary-skeleton-years"})):(r(),u("strong",fl,m(s.periodYearsCount)+" "+m(t.getYearsWord(s.periodYearsCount)),1))])):v("",!0),s.selectedSlabText?(r(),u(V,{key:1},[t.isStandaloneModifierSlab?(r(),u("div",gl,[N(m(e.$t("coin_summary_for-any-condition-with-prefix"))+" ",1),_("strong",null,m(t.standaloneModifierName),1)])):(r(),u("div",yl,[N(m(e.$t("coin_summary_for-condition-prefix"))+" ",1),_("strong",null,m(s.selectedSlabText),1)]))],64)):s.selectedConditionsText?(r(),u("div",pl,[N(m(e.$t("coin_summary_for-condition-prefix"))+" ",1),_("strong",null,m(s.selectedConditionsText),1)])):v("",!0)])])],2)):v("",!0)}const bl=Object.assign(Ge(Js,[["render",vl],["__scopeId","data-v-b80b7e2a"]]),{__name:"CoinLotsSummary"}),Sl=["aria-label"],Cl={class:"price-chart-tooltip__content"},kl={class:"price-chart-tooltip__label"},wl=["innerHTML"],Pl={key:0,class:"price-chart-tooltip__hint"},xl={__name:"PriceChartTooltip",props:{visible:{type:Boolean,default:!1},isFixedBottom:{type:Boolean,default:!1},isFullMode:{type:Boolean,default:!1},rows:{type:Array,default:()=>[]},lotUrl:{type:String,default:null},goToLotText:{type:String,default:""},unlockPricesText:{type:String,default:""},clickToViewLotText:{type:String,default:""},closeAriaLabel:{type:String,default:""}},emits:["close"],setup(e,{expose:a,emit:s}){const l=e,c=s,{t}=ht(),o=I(()=>l.goToLotText||t("coin_chart-tooltip-go-to-lot")),f=I(()=>l.unlockPricesText||t("coin_chart-tooltip-unlock-prices")),n=I(()=>l.clickToViewLotText||t("coin_chart-tooltip-click-to-view")),d=I(()=>l.closeAriaLabel||t("coin_chart-tooltip-close")),i=ne(null),C=(te,j)=>{if(i.value){if(te==null||j==null||l.isFixedBottom){i.value.style.left="",i.value.style.top="";return}i.value.style.left=`${te}px`,i.value.style.top=`${j}px`}};return Ke(()=>l.isFixedBottom,te=>{te&&i.value&&(i.value.style.left="",i.value.style.top="")}),a({setPosition:C,getElement:()=>i.value}),(te,j)=>{const W=Ia;return Et((r(),u("div",{ref_key:"rootRef",ref:i,class:D(["price-chart-tooltip",{"price-chart-tooltip_fixed-bottom":e.isFixedBottom}])}
2,[e.isFixedBottom?(r(),u("button",{key:0,type:"button",class:"price-chart-tooltip__close-btn","aria-label":d.value,onClick:j[0]||(j[0]=ce=>c("close"))},[...j[1]||(j[1]=[_("i",{class:"i i-close price-chart-tooltip__close-icon"},null,-1)])],8,Sl)):v("",!0),_("div",Cl,[(r(!0),u(V,null,Se(e.rows,(ce,De)=>(r(),u("div",{key:De,class:D(["price-chart-tooltip__row",ce.className])},[_("strong",kl,m(ce.label)+":",1),_("span",{class:"price-chart-tooltip__value",innerHTML:ce.valueHtml},null,8,wl)],2))),128)),!e.isFixedBottom&&e.lotUrl?(r(),u("div",Pl,m(n.value),1)):v("",!0),e.isFixedBottom&&!e.isFullMode?(r(),B(ta,{key:1,class:"btn_style_premium btn_fluid btn_size_m price-chart-tooltip__btn",link:"pricing",icon:"unlock"},{default:G(()=>[N(m(f.value),1)]),_:1})):e.isFixedBottom&&e.isFullMode&&e.lotUrl?(r(),B(W,{key:2,to:e.lotUrl,class:"btn price-chart-tooltip__btn"},{default:G(()=>[N(m(o.value),1)]),_:1},8,["to"])):v("",!0)])],2)),[[ea,e.visible]])}}},Da=Ge(xl,[["__scopeId","data-v-b671f550"]]),Il={name:"PriceChartControls",props:{isChartLoading:{type:Boolean,default:!1},dealsCount:{type:Number,default:0},salesViewMode:{type:String,default:"points"},showSales:{type:Boolean,default:!0},showTrendCorridor:{type:Boolean,default:!0},showMetal:{type:Boolean,default:!0},hasMetal:{type:Boolean,default:!1},metalNameRP:{type:String,default:""},isAnySalesActive:{type:Boolean,default:!0}},emits:["update:salesViewMode","update:showSales","update:showTrendCorridor","update:showMetal"],setup(e,{emit:a}){return{selectSalesViewMode:o=>{e.isChartLoading||a("update:salesViewMode",o)},toggleSales:o=>{a("update:showSales",o.target.checked)},toggleTrendCorridor:o=>{a("update:showTrendCorridor",o.target.checked)},toggleMetal:o=>{a("update:showMetal",o.target.checked)}}}},Tl={class:"price-chart-controls"},Dl={class:"price-chart-controls__title"},Ll=["disabled"],Ml=["aria-checked","disabled","aria-label"],Fl=["disabled"],Rl={key:1,class:"checkbox__label price-chart-controls__checkbox"},Al=["checked","disabled"],El={class:"checkbox__label-text"},Nl={class:"checkbox__label price-chart-controls__checkbox"},Ol=["checked","disabled"],zl={class:"checkbox__label-text"},Yl={key:2,class:"checkbox__label price-chart-controls__checkbox"},Vl=["checked","disabled"],Bl={class:"checkbox__label-text"};function Ul(e,a,s,l,c,t){return r(),u("div",Tl,[_("span",Dl,m(e.$t("coin_chart-checkboxes-title")),1),s.dealsCount>=150?(r(),u("div",{key:0,class:D(["price-chart-controls__sales-toggle",{"price-chart-controls__sales-toggle_disabled":s.isChartLoading}])},[_("button",{type:"button",class:D(["price-chart-controls__sales-toggle-btn",{"price-chart-controls__sales-toggle-btn_active":s.salesViewMode==="points"}]),disabled:s.isChartLoading,onClick:a[0]||(a[0]=o=>l.selectSalesViewMode("points"))},m(e.$t("coin_chart-checkbox-sales")),11,Ll),_("button",{type:"button",role:"switch","aria-checked":s.salesViewMode==="density",disabled:s.isChartLoading,"aria-label":e.$t("coin_chart-switch-mode"),class:D(["price-chart-controls__switch",{"price-chart-controls__switch_density":s.salesViewMode==="density"}]),onClick:a[1]||(a[1]=o=>l.selectSalesViewMode(s.salesViewMode==="points"?"density":"points"))},[...a[6]||(a[6]=[_("span",{class:"price-chart-controls__switch-handle"},null,-1)])],10,Ml),_("button",{type:"button",class:D(["price-chart-controls__sales-toggle-btn",{"price-chart-controls__sales-toggle-btn_active":s.salesViewMode==="density"}]),disabled:s.isChartLoading,onClick:a[2]||(a[2]=o=>l.selectSalesViewMode("density"))},m(e.$t("coin_chart-sales-clusters")),11,Fl)],2)):(r(),u("label",Rl,[_("input",{checked:s.showSales,disabled:s.isChartLoading||!s.showTrendCorridor&&(!s.hasMetal||!s.showMetal),type:"checkbox",class:"checkbox__label-check",onChange:a[3]||(a[3]=(...o)=>l.toggleSales&&l.toggleSales(...o))},null,40,Al),_("span",El,m(e.$t("coin_chart-checkbox-sales")),1)])),_("label",Nl,[_("input",{checked:s.showTrendCorridor,disabled:s.isChartLoading||!s.isAnySalesActive&&(!s.hasMetal||!s.showMetal),type:"checkbox",class:"checkbox__label-check",onChange:a[4]||(a[4]=(...o)=>l.toggleTrendCorridor&&l.toggleTrendCorridor(...o))},null,40,Ol),_("span",zl,m(e.$t("coin_chart-checkbox-trend-corridor")),1)]),s.hasMetal?
2(r(),u("label",Yl,[_("input",{checked:s.showMetal,disabled:s.isChartLoading||!s.isAnySalesActive&&!s.showTrendCorridor,type:"checkbox",class:"checkbox__label-check",onChange:a[5]||(a[5]=(...o)=>l.toggleMetal&&l.toggleMetal(...o))},null,40,Vl),_("span",Bl,m(e.$t("coin_chart-metal-price-block-title-v",{v:s.metalNameRP})),1)])):v("",!0)])}const La=Object.assign(Ge(Il,[["render",Ul],["__scopeId","data-v-7ae74768"]]),{__name:"PriceChartControls"}),L={DENSITY:{BASE_RADIUS:15,STRETCH_X:1.75,MIN_K:2.8,MAX_BASE_ALPHA:.22,MIN_BASE_ALPHA:.04,ALPHA_SCALE_NUMERATOR:3.5,MIN_ALPHA_THRESHOLD_LOWER:12,MIN_ALPHA_THRESHOLD_UPPER:180,MAX_OUTPUT_ALPHA:242},SERIES_IDX:{CORRIDOR_UPPER_SOLID:1,CORRIDOR_LOWER_SOLID:2,CORRIDOR_UPPER_DASHED:3,CORRIDOR_LOWER_DASHED:4,METAL:5,TREND_SOLID:6,TREND_DASHED:7,SALES_RAW:8,SALES_SLAB:9},COLORS:{SALES_RAW:"#5281e0",SALES_SLAB:"#213c82",FOCUS_MARKER_RAW:"#213c82",FOCUS_MARKER_SLAB:"#172345",TREND_LINE:"#ef4444",CORRIDOR_STROKE:"rgba(59, 130, 246, 0.25)",CORRIDOR_FILL:"rgba(59, 130, 246, 0.06)",METAL_LINE:"rgba(224, 188, 72, 0.7)"},HOVER:{MOUSE_RADIUS_PX:24,TOUCH_RADIUS_PX:32,DEFAULT_GAP_PX:20}};function ga(e){return e<=50?8:e<=150?7:e<=400?6:e<=1e3?5:4}const sa=new Map,Rt={key:"",canvas:null};function Gt(){Rt.key="",Rt.canvas=null}function Wl(e){if(typeof document>"u")return null;if(sa.has(e))return sa.get(e)||null;const a=e*2,s=document.createElement("canvas");s.width=a,s.height=a;const l=s.getContext("2d");if(!l)return null;const c=l.createRadialGradient(e,e,0,e,e,e);return c.addColorStop(0,"rgba(0, 0, 0, 1.0)"),c.addColorStop(.2,"rgba(0, 0, 0, 0.78)"),c.addColorStop(.4,"rgba(0, 0, 0, 0.45)"),c.addColorStop(.6,"rgba(0, 0, 0, 0.18)"),c.addColorStop(.8,"rgba(0, 0, 0, 0.04)"),c.addColorStop(1,"rgba(0, 0, 0, 0.0)"),l.fillStyle=c,l.fillRect(0,0,a,a),sa.set(e,s),s}function Hl(e,a,s){if(!a||a.length===0||typeof document>"u"||!e.bbox)return;const l=e.bbox.left,c=e.bbox.top,t=Math.round(e.bbox.width),o=Math.round(e.bbox.height);if(t<=0||o<=0)return;const f=e.scales?.x?.min??0,n=e.scales?.x?.max??0,d=e.scales?.y?.min??0,i=e.scales?.y?.max??0,C=`density_v6_${a.length}_${s}_${t}_${o}_${f}_${n}_${d}_${i}`;if(Rt.key===C&&Rt.canvas){const S=e.ctx;S.save(),S.beginPath(),S.rect(l,c,t,o),S.clip(),S.drawImage(Rt.canvas,l,c),S.restore();return}const P=(typeof window<"u"?window.devicePixelRatio:1)||1,te=Math.max(10,Math.round(L.DENSITY.BASE_RADIUS*P)),j=Wl(te);if(!j)return;const W=L.DENSITY.STRETCH_X,ce=Math.round(te*W),De=te,Ce=ce*2,Z=De*2,se=new Map;let re=0;for(const S of a){const T=S.currencies?S.currencies[s]:null;if(T!=null){const $=Math.round(e.valToPos(S.timestamp,"x",!0)-l),Y=Math.round(e.valToPos(T,"y",!0)-c);if($>=-ce&&$<=t+ce&&Y>=-De&&Y<=o+De){re++;const le=`${$},${Y}`,K=se.get(le);K?K.count++:se.set(le,{x:$,y:Y,count:1})}}}if(se.size===0)return;const U=document.createElement("canvas");U.width=t,U.height=o;const q=U.getContext("2d",{willReadFrequently:!0});if(!q)return;const me=Math.min(L.DENSITY.MAX_BASE_ALPHA,Math.max(L.DENSITY.MIN_BASE_ALPHA,L.DENSITY.ALPHA_SCALE_NUMERATOR/Math.sqrt(re)));se.forEach(S=>{let T=me*S.count;const $=10;let Y=0;for(;T>.001&&Y<$;){const le=Math.min(1,T);q.globalAlpha=le,q.drawImage(j,S.x-ce,S.y-De,Ce,Z),T-=le,Y++}});const pe=L.DENSITY.MIN_K,y=Math.max(L.DENSITY.MIN_ALPHA_THRESHOLD_LOWER,Math.min(L.DENSITY.MIN_ALPHA_THRESHOLD_UPPER,Math.round(pe*me*255))),Q=new Uint32Array(256),z=Math.max(1,255-y);for(let S=y;S<256;S++){const T=(S-y)/z,$=T*T*(3-2*T),Y=Math.round(Math.pow($,1.05)*L.DENSITY.MAX_OUTPUT_ALPHA);let le,K,he;if(T<.4){const ee=T/.4;le=Math.round(195-60*ee),K=Math.round(215-50*ee),he=Math.round(246-16*ee)}else{const ee=(T-.4)/.6;le=Math.round(135-53*ee),K=Math.round(165-36*ee),he=Math.round(230-6*ee)}Q[S]=Y<<24|he<<16|K<<8|le}const H=q.getImageData(0,0,t,o),b=new Uint32Array(H.data.buffer),E=b.length;for(let S=0;S<E;S++)b[S]=Q[b[S]>>>24];q.putImageData(H,0,0),Rt.key=C,Rt.canvas=U;const x=e.ctx;x.save(),x.beginPath(),x.rect(l,c,t,o),x.clip(),x.drawImage(U,l,c),x.restore()}function je(e){return typeof e=="function"?e():e}function jl(e){const a=e.paths.linear();return(s,l,c,t)=>{const o=a(s,l,c,t);
2if(!o)return o;const f=s.data[0],n=s.data[l];if(!n)return o;const d=new Path2D;let i=-1,C=-1;for(let P=c;P<=t;P++)n[P]!=null&&(i===-1&&(i=P),C=P);if(i!==-1&&C!==-1){d.moveTo(s.valToPos(f[C],"x",!0),s.valToPos(n[C],"y",!0));for(let P=C-1;P>=i;P--)n[P]!=null&&d.lineTo(s.valToPos(f[P],"x",!0),s.valToPos(n[P],"y",!0))}return{...o,stroke:d}}}function ql(e){const{uPlotClass:a,chartWidth:s,visibleMinTimestamp:l,visibleMaxTimestamp:c,showTrendCorridor:t,showMetal:o,hasMetal:f,isSalesPointsActive:n,isDensityActive:d,isFullMode:i,dealsCount:C,filteredDeals:P,currency:te,hasMetalData:j,onSetCursor:W}=e,ce=a.pxRatio||typeof window<"u"&&window.devicePixelRatio||1,De=jl(a),Ce=je(t),Z=je(o),se=je(f),re=je(n),U=je(C),q={show:Ce,stroke:L.COLORS.CORRIDOR_STROKE,width:1,cap:"round",pxAlign:0,points:{show:!1}},me={...q,dash:[Math.round(4*ce),Math.round(4*ce)],paths:De},pe={show:Ce,stroke:L.COLORS.TREND_LINE,width:2,cap:"round",pxAlign:0,points:{show:!1}},y={...pe,dash:[Math.round(4*ce),Math.round(5*ce)],paths:De},Q=ga(U);return{width:s||500,height:300,padding:[24,4,12,12],cursor:{drag:{x:!1,y:!1},points:{show:!1}},legend:{show:!1},scales:{x:{time:!0,min:l,max:c,range:(z,H,b)=>[H??l,b??c]},y:{auto:!0,range:(z,H,b)=>{const E=z.scales.x?.min??l,x=z.scales.x?.max??c;let S=1/0,T=-1/0;const $=je(n),Y=je(d),le=je(t),K=je(o),he=je(f),ee=[];$&&ee.push(L.SERIES_IDX.SALES_RAW,L.SERIES_IDX.SALES_SLAB),(le||Y)&&ee.push(L.SERIES_IDX.CORRIDOR_UPPER_SOLID,L.SERIES_IDX.CORRIDOR_LOWER_SOLID,L.SERIES_IDX.CORRIDOR_UPPER_DASHED,L.SERIES_IDX.CORRIDOR_LOWER_DASHED,L.SERIES_IDX.TREND_SOLID,L.SERIES_IDX.TREND_DASHED),K&&he&&ee.push(L.SERIES_IDX.METAL),ee.length===0&&ee.push(L.SERIES_IDX.CORRIDOR_UPPER_SOLID,L.SERIES_IDX.CORRIDOR_LOWER_SOLID,L.SERIES_IDX.CORRIDOR_UPPER_DASHED,L.SERIES_IDX.CORRIDOR_LOWER_DASHED,L.SERIES_IDX.METAL,L.SERIES_IDX.TREND_SOLID,L.SERIES_IDX.TREND_DASHED,L.SERIES_IDX.SALES_RAW,L.SERIES_IDX.SALES_SLAB);const A=z.data[0];if(!A)return[0,100];if(ee.forEach(Re=>{const Le=z.data[Re];if(Le)for(let Ie=0;Ie<Le.length;Ie++){const qe=A[Ie];if(qe>=E&&qe<=x){const ve=Le[Ie];ve!=null&&(ve<S&&(S=ve),ve>T&&(T=ve))}}}),S===1/0||T===-1/0)return[0,100];const Fe=je(j),k=T-S;if(k<1e-4||T>0&&k/T<1e-4){const Re=Math.max(1,T*.05);return[Fe?Math.max(0,S-Re):0,T+Re]}const M=k*.05,O=k*.05,ie=Fe?Math.max(0,S-O):0,ze=T+M;return[ie,ze]}}},axes:[{space:60,splits:(z,H,b,E)=>{const x=new Date(b*1e3).getFullYear(),S=new Date(E*1e3).getFullYear(),T=S-x;let $=1;T>30?$=10:T>15?$=5:T>8&&($=2);const Y=[],le=Math.floor(x/$)*$;for(let K=le;K<=S+1;K+=$){const he=new Date(K,0,1).getTime()/1e3;he>=b&&he<=E&&Y.push(he)}return Y.length===0&&Y.push(b,E),Y},values:(z,H)=>{let b=null;return H.map(E=>{const x=new Date(E*1e3).getFullYear().toString();if(x===b)return"";b=x;const S=z.valToPos(z.scales.x?.max??0,"x"),T=z.valToPos(E,"x");return S-T<20?x+"        ":x})}},{space:40,values:(z,H)=>je(i)?H.map(b=>b.toLocaleString()):H.map(()=>""),size:0,align:1,gap:0}],series:[{},{...q},{...q},{...me},{...me},{show:Z&&se,stroke:L.COLORS.METAL_LINE,width:1.5,points:{show:!1}},{...pe},{...y},{show:re,paths:()=>null,points:{show:!0,size:Q,space:0,fill:L.COLORS.SALES_RAW}},{show:re,paths:()=>null,points:{show:!0,size:Q,space:0,fill:L.COLORS.SALES_SLAB}}],bands:[{series:[L.SERIES_IDX.CORRIDOR_UPPER_SOLID,L.SERIES_IDX.CORRIDOR_LOWER_SOLID],fill:L.COLORS.CORRIDOR_FILL},{series:[L.SERIES_IDX.CORRIDOR_UPPER_DASHED,L.SERIES_IDX.CORRIDOR_LOWER_DASHED],fill:L.COLORS.CORRIDOR_FILL}],hooks:{drawClear:[z=>{je(d)&&Hl(z,je(P),je(te))}],setCursor:[W]}}}function $l(e,a){if(!a||a.length===0)return null;if(e<=a[0].timestamp)return a[0].value;if(e>=a[a.length-1].timestamp)return a[a.length-1].value;let s=0,l=a.length-1;for(;s<=l;){const f=Math.floor((s+l)/2);if(a[f].timestamp===e)return a[f].value;a[f].timestamp<e?s=f+1:l=f-1}const c=a[l],t=a[s];if(!c||!t)return null;const o=(e-c.timestamp)/(t.timestamp-c.timestamp);return c.value+o*(t.value-c.value)}function Xl(e,a,s){const l=e.length;if(l===0)return[0,-1];if(e[0]>s||e[l-1]<a)return[0,-1];let c=l,t=0,o=l-1;for(;t<=o;){const n=t+o>>1;e[n]>=a?(c=n,o=n-1):t=n+1}let f=-1;for(t=0,o=l-1;t<=o;){const n=t+o>>1;e[n]<=s?(f=n,t=n+1):o=n-1}return[c,f]}function Kl(e){const{uplotContainer:a,chartTooltipRef:s,isSalesPointsActive:l,showTrendCorridor:c,showMetal:t,hasMetal:o,isFullMode:f,deal
2sCount:n,maskedStars:d,locale:i,getLotUrl:C,t:P,getPlotInstance:te,getCurrentPoints:j,getYTrend:W,getYUpper:ce,getYLower:De,getYMetal:Ce,getXData:Z,getCurr:se}=e,re=k=>new Date(k*1e3).toISOString().split("T")[0],U=ne(!1),q=ne(!1),me=ne([]),pe=ne(null),y=ne(null),Q=ne(null),z=ne(null),H=ne(null),b=ne(null);let E=-1,x=!1,S=!1;const T=()=>{E=-1,U.value=!1,q.value=!1;const k=[y.value,Q.value,z.value,H.value,b.value];for(let M=0;M<k.length;M++){const O=k[M];O&&(O.style.display="none")}},$=(k,M)=>{const O=te();if(!O)return!1;if(O.over){const ie=O.over.getBoundingClientRect();return k>=ie.left&&k<=ie.right&&M>=ie.top&&M<=ie.bottom}if(O.root&&O.bbox){const ie=O.root.getBoundingClientRect(),ze=window.devicePixelRatio||1,Re=ie.left+O.bbox.left/ze,Le=ie.top+O.bbox.top/ze,Ie=Re+O.bbox.width/ze,qe=Le+O.bbox.height/ze;return k>=Re&&k<=Ie&&M>=Le&&M<=qe}return!1},Y=k=>{if(!U.value||!q.value)return;const M=s.value?.getElement();if(M&&M.contains(k.target))return;const O="touches"in k?k.touches?.[0]:null,ie="clientX"in k?k.clientX:O?.clientX,ze="clientY"in k?k.clientY:O?.clientY;ie!=null&&ze!=null&&$(ie,ze)||T()},le=()=>{if(typeof window>"u"||!a.value)return;const M=s.value?.getElement()?.offsetHeight||220,O=a.value.getBoundingClientRect(),ie=65,Re=window.innerHeight-M-16,Le=ie;if(O.bottom>Re){const Ie=O.bottom-Re,qe=Math.max(0,O.top-Le),ve=Math.min(Ie,qe);ve>5&&window.scrollBy({top:ve,behavior:"smooth"})}else if(O.top<Le){const Ie=O.top-Le;Ie<-5&&window.scrollBy({top:Ie,behavior:"smooth"})}},K=(k,M=!1)=>{if(!f.value){const{prefix:O,suffix:ie}=Oa(se(),i.value);return`${O}<span class="uplot-tooltip__masked-stars">${d.value}</span>${ie}`}return k==null||isNaN(Number(k))?"—":xa(M?At(Number(k)):Number(k),se(),i.value)},he=(k,M)=>{const O=Number(k),ie=Number(M);return k==null||M==null||!Number.isFinite(O)||!Number.isFinite(ie)?"—":Pa(At(O,"down"),At(ie,"up"),se(),i.value)},ee=k=>{const{left:M,top:O}=k.cursor;if(M==null||O==null||M<0||O<0){!S&&!q.value&&T();return}if(!x&&!S&&!q.value){T();return}const ie=j(),ze=Z(),Re=se(),Le=W(),Ie=ce(),qe=De(),ve=Ce();let Ye=-1,Nt=null,Tt=1/0;const Dt=S?L.HOVER.TOUCH_RADIUS_PX:L.HOVER.MOUSE_RADIUS_PX;let rt=!1;if(l.value){const Ue=k.posToVal(M-Dt,"x"),Me=k.posToVal(M+Dt,"x"),Ve=Math.min(Ue,Me),Ee=Math.max(Ue,Me),[pt,We]=Xl(ze,Ve,Ee);if(pt<=We)for(let Ze=pt;Ze<=We;Ze++){const ot=ie[Ze],vt=ot?.currencies[Re];if(ot&&vt!=null){const et=k.valToPos(ot.timestamp,"x"),ut=k.valToPos(vt,"y"),dt=M-et,we=O-ut,be=Math.sqrt(dt*dt+we*we);be<Tt&&(Tt=be,Ye=Ze,Nt=vt)}}Ye!==-1&&Tt<=Dt&&(rt=!0)}if(!rt&&(Ye=k.cursor.idx??-1,Ye==null||Ye<0||Ye>=ie.length)){a.value&&(a.value.style.cursor="default"),T();return}E=Ye;const _e=ie[Ye];if(!_e){T();return}const Ct=_e?.currencies[Re],Ae=Le[Ye],$e=ve[Ye],ct=qe[Ye],ft=Ie[Ye];a.value&&(a.value.style.cursor=!S&&rt&&_e&&_e.lotId?"pointer":"default");const kt=P("coin_chart-checkbox-trend"),Ot=P("coin_chart-checkbox-corridor"),gt=P("coin_chart-checkbox-metal"),wt=P("coin_chart-date"),Lt=f.value?he(ct,ft):K(0),zt=c.value,Yt=t.value&&o.value&&$e!=null,ke=[];if(rt){const Ue=P("coin_chart-sale-price");ke.push({label:Ue,valueHtml:K(Ct),className:"price-chart-tooltip__row_price price-chart-tooltip__row_sale"});const Me=_e&&_e.isSlab?P("coin_chart-safety-in-slab"):P("coin_auction_safety");ke.push({label:Me,valueHtml:_e?.conditionName||"",className:""}),Yt&&ke.push({label:gt,valueHtml:`<span class="uplot-tooltip__metal-price">${K($e)}</span>`,className:"price-chart-tooltip__row_metal"}),ke.push({label:wt,valueHtml:ia(re(_e.timestamp),i.value),className:"price-chart-tooltip__row_date"})}else{let Ue=!1;if(zt&&(ke.push({label:kt,valueHtml:K(Ae,!0),className:"price-chart-tooltip__row_price price-chart-tooltip__row_trend"}),ke.push({label:Ot,valueHtml:Lt,className:"price-chart-tooltip__row_corridor"}),Ue=!0),Yt){const Me=!Ue;ke.push({label:gt,valueHtml:`<span class="${Me?"":"uplot-tooltip__metal-price"}">${K($e)}</span>`,className:Me?"price-chart-tooltip__row_price price-chart-tooltip__row_metal":"price-chart-tooltip__row_metal"})}ke.push({label:wt,valueHtml:ia(re(_e.timestamp),i.value),className:"price-chart-tooltip__row_date"})}let yt=null;if(rt?yt=Nt:c.value?yt=Le[Ye]??null:t.value&&o.value&&$e!==null&&$e!==void 0&&(yt=$e),yt!=null){const Ue=window.devicePixelRatio||1,Me=k.bbox.left/Ue,Ve=k.bbox.top/Ue,Ee=k.valToPos(_e.timestamp,"x"),pt=k.valToPos(yt,"y"),We=Me+Ee,Ze=Ve+pt,ot=typeof window<"u"&&window.innerWidth<576,vt=S||typeof window<"u"&&("ontouchstart"in window||navigator.maxTouchPoints>
20)&&window.innerWidth<768,et=ot||vt;if(q.value=et,me.value=ke,pe.value=rt&&_e?C(_e):null,U.value=!0,et)s.value?.setPosition(null,null),Zt(()=>{le()});else{const be=k.bbox.width/Ue,mt=s.value?.getElement(),Pt=mt?.offsetWidth||210,p=mt?.offsetHeight||140,F=a.value?.getBoundingClientRect(),X=F?.width||Me+be,Ne=F?.height||300,fe=L.HOVER.DEFAULT_GAP_PX,Te=We+fe+Pt<=X-10&&(F?.left??0)+We+fe+Pt<=window.innerWidth-15;let He;Te?He=We+fe:He=We-Pt-fe,He<10&&(He=10);let Qe=Ze-p/2;Qe<10?Qe=10:Qe+p>Ne-10&&(Qe=Ne-p-10),s.value?.setPosition(He,Qe)}const ut=ga(n.value),we=Math.min(12,ut+6)+"px";if(rt)y.value&&(y.value.style.width=we,y.value.style.height=we,y.value.style.backgroundColor=_e&&_e.isSlab?L.COLORS.FOCUS_MARKER_SLAB:L.COLORS.FOCUS_MARKER_RAW,y.value.style.left=Me+Ee+"px",y.value.style.top=Ve+pt+"px",y.value.style.display="block"),Q.value&&(Q.value.style.display="none"),z.value&&(z.value.style.display="none"),H.value&&(H.value.style.display="none"),b.value&&(b.value.style.display="none");else{if(y.value&&(y.value.style.display="none"),c.value){if(Q.value&&Ae!=null){const be=k.valToPos(Ae,"y");Q.value.style.width=we,Q.value.style.height=we,Q.value.style.left=Me+Ee+"px",Q.value.style.top=Ve+be+"px",Q.value.style.display="block"}if(z.value&&ft!=null){const be=k.valToPos(ft,"y");z.value.style.width=we,z.value.style.height=we,z.value.style.left=Me+Ee+"px",z.value.style.top=Ve+be+"px",z.value.style.display="block"}if(H.value&&ct!=null){const be=k.valToPos(ct,"y");H.value.style.width=we,H.value.style.height=we,H.value.style.left=Me+Ee+"px",H.value.style.top=Ve+be+"px",H.value.style.display="block"}}else Q.value&&(Q.value.style.display="none"),z.value&&(z.value.style.display="none"),H.value&&(H.value.style.display="none");if(t.value&&o.value&&$e!=null){if(b.value){const be=k.valToPos($e,"y");b.value.style.width=we,b.value.style.height=we,b.value.style.left=Me+Ee+"px",b.value.style.top=Ve+be+"px",b.value.style.display="block"}}else b.value&&(b.value.style.display="none")}}},A=k=>{if(S||q.value||k?.pointerType==="touch")return;const M=j();if(E!==-1&&M&&M[E]){const O=M[E];if(O){const ie=C(O);ie&&(k.button===1||k.ctrlKey||k.metaKey?(k.preventDefault(),window.open(ie,"_blank")):k.button===0&&Na(ie))}}};return{isTooltipVisible:U,isFixedBottomTooltip:q,tooltipRows:me,tooltipLotUrl:pe,uplotFocusMarker:y,uplotFocusMarkerTrend:Q,uplotFocusMarkerUpper:z,uplotFocusMarkerLower:H,uplotFocusMarkerMetal:b,onSetCursor:ee,hideOverlayElements:T,isPointInsidePlotArea:$,handleOutsideInteraction:Y,handleChartClick:A,scrollToMakeChartVisible:le,bindContainerEvents:k=>{k.onmouseenter=()=>{x=!0},k.onmouseleave=()=>{S||q.value||(x=!1,T())},k.onpointerdown=M=>{S=M.pointerType==="touch",x=!0,U.value&&q.value&&Y(M)},k.onmousedown=M=>{M.button===1&&E!==-1&&M.preventDefault()},k.ontouchstart=M=>{S=!0,x=!0,U.value&&q.value&&Y(M)},k.onmousemove=M=>{M.pointerType!=="touch"&&(S=!1),x=!0},k.onclick=A,k.onauxclick=A}}}function Gl(e,a){const s=[],l=(f,n)=>f.timestamp-n.timestamp||f.seriesIndex-n.seriesIndex||f.pointIndex-n.pointIndex,c=f=>{s.push(f);let n=s.length-1;for(;n>0;){const d=n-1>>1;if(l(s[d],s[n])<=0)break;[s[d],s[n]]=[s[n],s[d]],n=d}},t=()=>{const f=s[0],n=s.pop();if(s.length>0){s[0]=n;let d=0;for(;;){const i=d*2+1,C=i+1;let P=d;if(i<s.length&&l(s[i],s[P])<0&&(P=i),C<s.length&&l(s[C],s[P])<0&&(P=C),P===d)break;[s[d],s[P]]=[s[P],s[d]],d=P}}return f};e.forEach((f,n)=>{f.ts?.length&&c({series:f,seriesIndex:n,pointIndex:0,timestamp:f.ts[0]})});const o=[];for(;s.length>0;){const f=t(),n=a(f.series,f.pointIndex,f.timestamp);n&&o.push(n);const d=f.pointIndex+1;d<f.series.ts.length&&c({series:f.series,seriesIndex:f.seriesIndex,pointIndex:d,timestamp:f.series.ts[d]})}return o}const Ql={name:"PriceChartBlock",components:{PriceChartTooltip:Da,PriceChartControls:La},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},metalName:{type:String,default:""},metalNameRP:{type:String,default:""},weightOz:{type:[String,Number],default:""},yearRange:{type:Object,default:null},includeFees:{type:Boolean,default:!0}},emits:["chartBtnClick","summaryLoaded","priceSummaryLoaded","chartLoading"],setup(e,{emit:a}){const{t:s,locale:l}=ht(),{userCurrency:c}=oa(),t=I(()=>c.value.code),o=aa(),f=ca(),n=I(()=>{const p=f.query.year_from,F=f.query.year_to;return!!(p&&String(p).trim().length>
20||F&&String(F).trim().length>0)}),d=I(()=>["firm","condition","slab","service","collection"].some(X=>{const Ne=f.query[X];return Array.isArray(Ne)?Ne.length>0:typeof Ne=="string"?Ne.trim().length>0:!!Ne})||n.value),i=Ht("coin",""),C=ne(!0),P=ne(!1),te=I(()=>!0),j=ne(!0),W=ne(null),ce=I(()=>W.value!==!1),{getCoinPriceChart:De}=ua(),Ce=ne(null),Z=ne(null),se=Qt("show_sales",{maxAge:3600*24*365,default:()=>!0}),re=Qt("show_trend_corridor",{maxAge:3600*24*365,default:()=>!0}),U=Qt("show_metal",{maxAge:3600*24*365,default:()=>!0}),q=Qt("sales_view_mode",{maxAge:3600*24*365,default:()=>"points"}),me=na(null),pe=ne("preview"),y=ne(null),Q=ne(!1),z=ne(null),H=ne(null),b=ne(null),E=ne(null),x=ne(null),S=I(()=>pe.value==="full"),T=I(()=>e.includeFees?"withFees":"withoutFees"),$=I(()=>z.value?.currency===t.value&&z.value?.priceMode===T.value),Y=I(()=>$.value&&!!me.value),le=I(()=>{const p=e.includeFees?"withFees":"withoutFees",F=x.value?.[p]?.trend||H.value?.price?.trend||(e.price?.[t.value]>0?e.price[t.value]:null);return F!=null&&!isNaN(F)&&F>0?"*".repeat(Math.max(1,String(Math.floor(Math.abs(F))).length)):"****"}),K=na([]),he=na(null),ee=ne(null);let A=null,Fe=null,k=null,M=null,O=null,ie=[],ze=[],Re=[],Le=[],Ie=[],qe=[];const ve=p=>(Array.isArray(p)?p:[p]).flatMap(X=>String(X||"").split(",")).map(X=>X.trim()).filter(Boolean).join(",")||void 0,Ye=()=>({commonFilter:ve(f.query.condition),suffixFilter:ve(f.query.slab),firmFilter:ve(f.query.service),auctionHouseFilter:ve(f.query.firm),collectionFilter:ve(f.query.collection),year_from:ve(f.query.year_from),year_to:ve(f.query.year_to),currency:t.value,priceMode:T.value}),Nt=I(()=>s("coin_chart-go-to-lot")),Tt=I(()=>s("coin_chart-click-to-view-lot")),Dt=I(()=>s("coin_chart-unlock-prices")),rt=I(()=>s("modal_close")),_e=p=>p?.lotId?o(`/lots/${p.lotId}`):null,Ct=I(()=>!K.value||!$.value?[]:Gl(K.value,(p,F,X)=>{const Ne=p.name==="Нет оценки"?"empty":p.name,fe={};typeof p.y[F]=="number"&&(fe[t.value]=p.y[F]);const Te=fe[t.value];return Te==null||Te<=0?null:{timestamp:X,currencies:fe,conditionName:p.grades?.[F]||p.name,isSlab:p.isSlab?.[F]??!1,conditionId:Ne,lotId:p.ids?.[F]||null}})),Ae=I(()=>{if(!Ct.value)return[];const p=e.yearRange?.from??null,F=e.yearRange?.to??null;if(p===null&&F===null)return Ct.value;const X=p===null?-1/0:Date.UTC(p,0,1)/1e3,Ne=F===null?1/0:Date.UTC(F+1,0,1)/1e3;return Ct.value.filter(fe=>fe.timestamp>=X&&fe.timestamp<Ne)}),$e=I(()=>Ae.value.length>=150&&q.value==="density"),ct=I(()=>Ae.value.length>=150?q.value==="points":se.value),ft=I(()=>Ae.value.length>=150||se.value),kt=I(()=>j.value||Q.value?!1:Ae.value.length>1e3),{isTooltipVisible:Ot,isFixedBottomTooltip:gt,tooltipRows:wt,tooltipLotUrl:Lt,uplotFocusMarker:zt,uplotFocusMarkerTrend:Yt,uplotFocusMarkerUpper:ke,uplotFocusMarkerLower:yt,uplotFocusMarkerMetal:Ue,onSetCursor:Me,hideOverlayElements:Ve,handleOutsideInteraction:Ee,bindContainerEvents:pt}=Kl({uplotContainer:Ce,chartTooltipRef:Z,isSalesPointsActive:ct,showTrendCorridor:I(()=>re.value&&y.value!=="dates-only"),showMetal:U,hasMetal:Y,isFullMode:S,dealsCount:I(()=>Ae.value.length),maskedStars:le,locale:l,getLotUrl:_e,t:s,getPlotInstance:()=>A,getCurrentPoints:()=>ie,getYTrend:()=>Re,getYUpper:()=>Le,getYLower:()=>Ie,getYMetal:()=>qe,getXData:()=>ze,getCurr:()=>t.value}),We=()=>{if(!A)return;const p=re.value&&y.value!=="dates-only",F=ct.value;A.setSeries(L.SERIES_IDX.CORRIDOR_UPPER_SOLID,{show:p}),A.setSeries(L.SERIES_IDX.CORRIDOR_LOWER_SOLID,{show:p}),A.setSeries(L.SERIES_IDX.CORRIDOR_UPPER_DASHED,{show:p}),A.setSeries(L.SERIES_IDX.CORRIDOR_LOWER_DASHED,{show:p}),A.setSeries(L.SERIES_IDX.TREND_SOLID,{show:p}),A.setSeries(L.SERIES_IDX.TREND_DASHED,{show:p}),A.setSeries(L.SERIES_IDX.METAL,{show:U.value&&Y.value}),A.setSeries(L.SERIES_IDX.SALES_RAW,{show:F,points:{show:!0}}),A.setSeries(L.SERIES_IDX.SALES_SLAB,{show:F,points:{show:!0}}),A.redraw()},Ze=()=>{const p=Ce.value;return p?.clientWidth||p?.parentElement?.clientWidth||500},ot=()=>{if(!A)return;const p=Ze();p>0&&Math.abs(A.width-p)>1&&A.setSize({width:p,height:300})},vt=()=>{typeof window>"u"||!window.ResizeObserver||!Ce.value||(Fe?.disconnect(),Fe=new ResizeObserver(p=>{const F=Math.floor(p[0]?.contentRect.width||0);F>0&&A&&Math.abs(A.width-F)>1&&A.setSize({width:F,height:300})}),Fe.observe(Ce.value))},et=()=>{Zt(ot)},ut=()=>{const p=H.value;if(!p||!$.value){a("summaryLoaded",null);return}const F=p.locked;a("summaryLoaded",{trend:F?null:p.price?.trend??null,lower:F?null:p.price?.corridor?.lower??null,upper:F?null:p.price?.corridor?.upper??null,metal:p.meltValue,dateStr:p.asOf,changePercent:F?null:p.price?.trendChangePercent??null,yearsPeriod:p.yearsPeriod,locked:F,firstSaleYear:ee.value})},dt=(p,F=!1)=>
2{if(!p||!Ce.value)return;Ve(),F&&A&&(A.destroy(),A=null);const X=Ct.value;if(X.length===0){A&&(A.destroy(),A=null),ut();return}const Ne=X[0].timestamp,fe=Date.parse(H.value?.asOf||new Date().toISOString().slice(0,10))/1e3,Te=he.value?.firstSaleYear??new Date(Ne*1e3).getUTCFullYear(),He=he.value?.yearFrom??e.yearRange?.from,Qe=he.value?.yearTo??e.yearRange?.to,Vt=Math.max(He||Te,Te),h=Date.UTC(Vt,0,1)/1e3;let R=fe;if(Qe){const w=new Date().getFullYear();Qe<w&&(R=Date.UTC(Qe,11,31,23,59,59)/1e3)}const oe=w=>{const ye=new Date(w).getTime()/1e3;return Number.isFinite(ye)?Math.floor(ye):null},Pe=[];if(Y.value&&me.value?.x)for(let w=0;w<me.value.x.length;w++){const ye=oe(me.value.x[w]),de=me.value.y[w];ye!==null&&de!==void 0&&de!==null&&Pe.push({timestamp:ye,value:de})}Pe.sort((w,ye)=>w.timestamp-ye.timestamp);const Be=b.value,Oe=E.value,tt=Be?.x?.length?Be.x:Oe?.x;let ue=[];if(tt?.length){const w=new Map;for(const ye of X){const de=w.get(ye.timestamp)||[];de.push(ye),w.set(ye.timestamp,de)}ue=tt.flatMap((ye,de)=>{const ae=oe(ye);if(ae===null)return[];const Kt=w.get(ae)?.shift()||null;return[{timestamp:ae,canonicalIndex:de,deal:Kt,rate:null,isDeal:!!Kt}]})}else{const w=[];X.forEach(ae=>{w.push({timestamp:ae.timestamp,deal:ae,rate:null,isDeal:!0,isCanonical:!1})}),Pe.forEach(ae=>{ae.timestamp>=h&&ae.timestamp<=R&&w.push({timestamp:ae.timestamp,deal:null,rate:ae,isDeal:!1,isCanonical:!1})});const ye=b.value?.x?.[0]||E.value?.x?.[0]||H.value?.asOf,de=oe(ye);!S.value&&de!==null&&w.push({timestamp:de,deal:null,rate:null,isDeal:!1,isCanonical:!0,canonicalIndex:0}),w.sort((ae,lt)=>ae.timestamp!==lt.timestamp?ae.timestamp-lt.timestamp:ae.isDeal!==lt.isDeal?ae.isDeal?-1:1:ae.rate!==null!=(lt.rate!==null)?ae.rate!==null?-1:1:ae.isCanonical!==lt.isCanonical?ae.isCanonical?1:-1:0);for(const ae of w){const lt=ue[ue.length-1];!ae.deal&&ae.rate===null&&!ae.isCanonical&&lt&&Math.abs(lt.timestamp-ae.timestamp)<1e-6||ue.push({timestamp:ae.timestamp,deal:ae.deal,rate:ae.rate,isCanonical:ae.isCanonical,canonicalIndex:ae.canonicalIndex})}}for(let w=1;w<ue.length;w++)ue[w].timestamp<=ue[w-1].timestamp&&(ue[w].timestamp=ue[w-1].timestamp+.001);const Xe=ue.map(w=>w.timestamp);ie=Xe.map((w,ye)=>{const de=ue[ye];return de.deal?{timestamp:w,conditionName:de.deal.conditionName,conditionId:de.deal.conditionId,currencies:de.deal.currencies,lotId:de.deal.lotId,isSlab:de.deal.isSlab,isToday:!1}:{timestamp:w,conditionName:"",conditionId:"",currencies:{},lotId:null,isSlab:!1,isToday:!0}});const Je=t.value,qt=ue.map(w=>!w.deal||w.deal.isSlab?null:w.deal.currencies[Je]??null),$t=ue.map(w=>!w.deal||!w.deal.isSlab?null:w.deal.currencies[Je]??null),Bt=ue.map(w=>!Be||w.canonicalIndex===void 0?null:Be.y[w.canonicalIndex]??null),Ut=ue.map(w=>!Oe||w.canonicalIndex===void 0?null:Oe.upper[w.canonicalIndex]??null),at=ue.map(w=>!Oe||w.canonicalIndex===void 0?null:Oe.lower[w.canonicalIndex]??null),nt=ue.map(w=>Y.value?$l(w.timestamp,Pe):null);ut();const xt=X[X.length-1].timestamp,Xt=60*86400,Mt=X.length>0,st=!Mt||fe-xt>=Xt;let Ft=-1;if(Mt){for(let w=ue.length-1;w>=0;w--)if(ue[w].deal){Ft=w;break}}const bt=Xe.length,Wt=new Array(bt),ya=new Array(bt),pa=new Array(bt),va=new Array(bt),ba=new Array(bt),Sa=new Array(bt);for(let w=0;w<bt;w++){const ye=!st||Ft!==-1&&w<=Ft,de=st&&(Ft===-1||w>=Ft),ae=Ut[w],lt=at[w],Kt=Bt[w];Wt[w]=ye?ae:null,ya[w]=de?ae:null,pa[w]=ye?lt:null,va[w]=de?lt:null,ba[w]=ye?Kt:null,Sa[w]=de?Kt:null}const Ca=[Xe,Wt,pa,ya,va,nt,ba,Sa,qt,$t];if(ze=Xe,Re=Bt,Le=Ut,Ie=at,qe=nt,A){A.setData(Ca,!1);const w=ga(Ae.value.length);for(const ye of[L.SERIES_IDX.SALES_RAW,L.SERIES_IDX.SALES_SLAB]){const de=A.series?.[ye]?.points;de&&(de.size=w,de.width=Math.max(1,w*.2))}We(),A.setScale("x",{min:h,max:R}),Ve();return}const Ma=ql({uPlotClass:p,chartWidth:Ze(),visibleMinTimestamp:h,visibleMaxTimestamp:R,showTrendCorridor:()=>re.value&&y.value!=="dates-only",showMetal:()=>U.value,hasMetal:()=>Y.value,isSalesPointsActive:()=>ct.value,isDensityActive:()=>$e.value,isFullMode:()=>S.value,dealsCount:()=>Ae.value.length,filteredDeals:()=>Ae.value,currency:()=>t.value,hasMetalData:()=>
2!!(Y.value&&me.value?.y?.length),onSetCursor:Me});A=new p(Ma,Ca,Ce.value),Ve(),pt(Ce.value)},we=async()=>{if(!te.value)return;j.value=!0,a("chartLoading",!0),M?.abort();const p=new AbortController;M=p;try{const F=Ye();C.value=!1;const X=await De(i.value,F,p.signal),Ne=X.selection?.currency===F.currency&&X.selection?.priceMode===F.priceMode;if(p.signal.aborted||M!==p)return;if(!Ne)throw new Error("Price chart selection mismatch");if(Gt(),pe.value=X.mode,y.value=X.previewKind||null,z.value=X.selection||null,K.value=X.series||[],he.value=X.dataWindow||null,P.value=!0,H.value=X.summary||null,x.value=X.priceSummary||null,Array.isArray(X.series)&&X.series.some(Te=>Te.ts&&Te.ts.length>0)?W.value=!0:W.value===null&&!d.value&&(W.value=!1),X.dataWindow){const Te=X.dataWindow.firstSaleYear;Te!=null&&(ee.value===null||Te<ee.value)&&(ee.value=Te)}else if(K.value.length>0){const Te=K.value.reduce((He,Qe)=>{const Vt=Qe.ts?.[0];return Number.isFinite(Vt)?Math.min(He,Vt):He},1/0);if(Number.isFinite(Te)){const He=new Date(Te*1e3).getUTCFullYear();(ee.value===null||He<ee.value)&&(ee.value=He)}}me.value=X.metalSeries||null,b.value=X.trendSeries||null,E.value=X.corridorSeries||null,a("priceSummaryLoaded",X.priceSummary||null),Q.value=!1,y.value==="dates-only"&&(se.value=!0)}catch(F){if(p.signal.aborted||M!==p||(j.value=!1,a("chartLoading",!1),F?.name==="AbortError"))return;console.warn("Error loading chart data:",F),z.value=null,K.value=[],H.value=null,b.value=null,E.value=null,a("priceSummaryLoaded",null),x.value=null,me.value=null,a("summaryLoaded",null),Q.value=!0;return}try{if(k||(k=(await _t(async()=>{const{default:F}=await import("./CluHQUMV.js");return{default:F}},[],import.meta.url)).default),p.signal.aborted||M!==p||(j.value=!1,a("chartLoading",!1),await Zt(),p.signal.aborted||M!==p)||(await new Promise(F=>setTimeout(F,0)),p.signal.aborted||M!==p))return;dt(k),vt(),ot()}catch(F){j.value=!1,a("chartLoading",!1),console.warn("Error rendering price chart:",F)}};let be=null;const mt=async()=>{Pt(),k&&A&&!j.value&&await dt(k,!0)},Pt=()=>{typeof window>"u"||!window.matchMedia||(be&&be.removeEventListener("change",mt),be=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),be.addEventListener("change",mt))};return Ta(async()=>{Pt(),typeof window<"u"&&(window.addEventListener("pageshow",et),document.addEventListener("pointerdown",Ee),document.addEventListener("touchstart",Ee,{passive:!0})),await we()}),Ke(()=>[f.query.condition,f.query.slab,f.query.service,f.query.firm,f.query.collection,f.query.year_from,f.query.year_to,e.isSubscribed,t.value,T.value],()=>{C.value||(M?.abort(),a("summaryLoaded",null),a("priceSummaryLoaded",null),j.value=!0,a("chartLoading",!0),O&&clearTimeout(O),O=setTimeout(()=>we(),250))}),Ke([Ae,me,()=>e.yearRange],()=>{A&&k&&!j.value&&dt(k)}),Ke(te,async p=>{p?(await Zt(),await we()):(Gt(),A&&(A.destroy(),A=null),Fe&&(Fe.disconnect(),Fe=null),K.value=[],me.value=null,b.value=null,E.value=null,z.value=null)}),Ke(()=>e.coinId,async p=>{p&&(Gt(),P.value=!1,K.value=[],me.value=null,H.value=null,x.value=null,b.value=null,E.value=null,z.value=null,ee.value=null,A&&(A.destroy(),A=null),await we())}),za(()=>{M?.abort(),Gt(),O&&clearTimeout(O),be&&(be.removeEventListener("change",mt),be=null),typeof window<"u"&&(window.removeEventListener("pageshow",et),document.removeEventListener("pointerdown",Ee),document.removeEventListener("touchstart",Ee)),A&&(A.destroy(),A=null),Fe&&(Fe.disconnect(),Fe=null)}),Ke(se,p=>{if(!p&&!re.value&&(!Y.value||!U.value)){se.value=!0;return}We()}),Ke(q,()=>{Gt(),We()}),Ke(re,p=>{if(!p&&!ft.value&&(!Y.value||!U.value)){re.value=!0;return}We()}),Ke(U,p=>{if(!p&&!ft.value&&!re.value){U.value=!0;return}We()}),{localePath:o,currencyName:t,uplotContainer:Ce,chartTooltipRef:Z,isTooltipVisible:Ot,isFixedBottomTooltip:gt,tooltipRows:wt,tooltipLotUrl:Lt,goToLotText:Nt,clickToViewLotText:Tt,unlockPricesText:Dt,closeAriaLabel:rt,hideOverlayElements:Ve,uplotFocusMarker:zt,uplotFocusMarkerTrend:Yt,uplotFocusMarkerUpper:ke,uplotFocusMarkerLower:yt,uplotFocusMarkerMetal:Ue,showSales:se,showTrendCorridor:re,showMetal:U,hasMetal:Y,isFullMode:S,previewKind:y,chartLoadFailed:Q,filteredDeals:Ae,salesViewMode:q,isDensityActive:$e,isSalesPointsActive:ct,isAnySalesActive:ft,showInteractiveChart:te,isChartBlockVisible:ce,isChartLoading:j,hasLoadedOnce:P,isHighVolumeNoticeVisible:kt,backendSummary:H,backendPriceSummary:x,retryChart:we}}},Jl={key:0},Zl={class:"coin-page__chart price"},ei={key:0,class:"coin-page__chart-notice"},ti={class:"coin-page__chart-notice-text"},ai={key:1,class:"coin-page__chart-uplot-wrap"},ni={ref:"uplotContainer",class:"coin-page__chart-uplot-container"},si={ref:"uplotFocusMarker",class:"coin-page__chart-uplot-focus-marker"},li={ref:"uplotFocusMarkerTrend",class:"coin-page__chart-uplot-focus-marker coin-page__chart-uplot-focus-marker_trend"},ii={ref:"uplotFocusMarkerUpper",class:"coin-page__chart-uplot-focus-marker coin-page__chart-uplot-focus-marker_corridor"},ri={ref:"uplotFocusMarkerLower",class:"coin-page__chart-uplot-focus-marker coin-page__chart-uplot-focus-marker_corridor"},oi={ref:"uplotFocusMarkerMetal",class:"coin-page__chart-uplot-focus-marker coin-page__chart-uplot-focus-marker_metal"},ci={key:2,class:"coin-page__chart-no-data"},ui={class:"coin-page__chart-no-data-text"};
2function di(e,a,s,l,c,t){const o=fa,f=Da,n=ta,d=La;return l.isChartBlockVisible?(r(),u("div",Jl,[_("div",Zl,[l.isHighVolumeNoticeVisible?(r(),u("div",ei,[a[4]||(a[4]=_("i",{class:"i i-info coin-page__chart-notice-icon"},null,-1)),_("span",ti,m(e.$t("coin_chart-high-volume-notice")),1)])):v("",!0),l.showInteractiveChart?(r(),u("div",ai,[l.isChartLoading?(r(),B(o,{key:0,class:"coin-page__chart-skeleton",height:"270px",radius:"6px","bg-color":"#ffffff",border:"1px dashed #d4d7dd",animated:!0,text:e.$t("coin_chart-building"),role:"status","aria-live":"polite","aria-busy":"true"},null,8,["text"])):!l.chartLoadFailed&&l.filteredDeals.length===0?(r(),B(o,{key:1,class:"coin-page__chart-skeleton",height:"200px",radius:"6px","bg-color":"#ffffff",border:"1px dashed #d4d7dd",animated:!1,text:e.$t("coin_chart-no-lots")},null,8,["text"])):v("",!0),Et(_("div",ni,null,512),[[ea,!l.isChartLoading&&l.filteredDeals.length>0]]),xe(f,{ref:"chartTooltipRef",visible:l.isTooltipVisible,"is-fixed-bottom":l.isFixedBottomTooltip,"is-full-mode":l.isFullMode,rows:l.tooltipRows,"lot-url":l.tooltipLotUrl,"go-to-lot-text":e.$t("coin_chart-go-to-lot"),"click-to-view-lot-text":e.$t("coin_chart-click-to-view-lot"),"unlock-prices-text":e.$t("coin_chart-unlock-prices"),"close-aria-label":e.$t("modal_close"),onClose:l.hideOverlayElements},null,8,["visible","is-fixed-bottom","is-full-mode","rows","lot-url","go-to-lot-text","click-to-view-lot-text","unlock-prices-text","close-aria-label","onClose"]),_("div",si,null,512),_("div",li,null,512),_("div",ii,null,512),_("div",ri,null,512),_("div",oi,null,512),l.chartLoadFailed&&!l.isChartLoading?(r(),u("div",ci,[_("span",ui,m(e.$t("coin_chart-update-error")),1),xe(n,{class:"btn btn_size_s btn_style_default",type:"button",onClick:l.retryChart},{default:G(()=>[N(m(e.$t("coin_chart-retry")),1)]),_:1},8,["onClick"])])):v("",!0),Et(xe(d,{"is-chart-loading":l.isChartLoading,"deals-count":l.filteredDeals.length,"sales-view-mode":l.salesViewMode,"show-sales":l.showSales,"show-trend-corridor":l.showTrendCorridor,"show-metal":l.showMetal,"has-metal":l.hasMetal,"metal-name-r-p":s.metalNameRP,"is-any-sales-active":l.isAnySalesActive,"onUpdate:salesViewMode":a[0]||(a[0]=i=>l.salesViewMode=i),"onUpdate:showSales":a[1]||(a[1]=i=>l.showSales=i),"onUpdate:showTrendCorridor":a[2]||(a[2]=i=>l.showTrendCorridor=i),"onUpdate:showMetal":a[3]||(a[3]=i=>l.showMetal=i)},null,8,["is-chart-loading","deals-count","sales-view-mode","show-sales","show-trend-corridor","show-metal","has-metal","metal-name-r-p","is-any-sales-active"]),[[ea,l.hasLoadedOnce&&l.isChartLoading||l.filteredDeals.length>0]])])):v("",!0)])])):v("",!0)}const mi=Object.assign(Ge(Ql,[["render",di],["__scopeId","data-v-78cc3712"]]),{__name:"PriceChartBlock"}),hi={setup(){const{locale:e,t:a}=ht(),{userCurrency:s}=oa(),l=aa();return{locale:e,t:a,userCurrency:s,localePath:l}},data(){return{monthPrice:""}},computed:{monthPriceFormatted(){if(!this.monthPrice)return"";const e=this.t("coin_unlock_per-month");return`${this.monthPrice}${e}`}},mounted(){this.fetchSubscriptionPrice()},methods:{async fetchSubscriptionPrice(){try{const{getSubscriptions:e}=ua(),s=(await e()).data.value;if(s&&s.subscriptions&&s.subscriptions.month){let l=s.subscriptions.month.find(c=>c.currency===this.userCurrency.code);if(!l){const c=s.detectedUserCurrency||"EUR";l=s.subscriptions.month.find(t=>t.currency===c)||s.subscriptions.month[0]}l&&(this.monthPrice=Ya(l.price,l.currency))}}catch(e){console.error("Error fetching subscription price:",e)}this.monthPrice||(this.monthPrice=this.userCurrency.code==="PLN"?"29 zł":this.userCurrency.code==="USD"?"8 $":"7 €")},navigateToPricing(){this.$router.push(this.localePath("pricing"))}}},_i={class:"history-block__inner"},fi={class:"history-block__main"},gi={class:"history-block__price"},yi={class:"history-block__sub"};function pi(e,a,s,l,c,t){const o=ta;return r(),u("div",{class:"history-block",onClick:a[1]||(a[1]=(...f)=>t.navigateToPricing&&t.navigateToPricing(...f))},[_("div",_i,[_("div",fi,[N(m(e.$t("coin_unlock_history-prefix"))+" ",1),_("span",gi,m(t.monthPriceFormatted),1)]),_("div",yi,m(e.$t("coin_auction_subscribtion-required")),1)]),xe(o,{class:"btn_style_premium btn_size_m history-block__btn",link:"pricing",icon:"unlock",onClick:a[0]||(a[0]=it(()=>{},["stop"]))},{default:G(()=>[N(m(e.$t("coin_unlock_btn")),1)]),_:1})])}const vi=Object.assign(Ge(hi,[["render",pi],["__scopeId","data-v-b150b78d"]]),{__name:"HistorySalesUnlock"}),bi={class:"catalog-price-disclaimer-expanded"},Si={class:"catalog-price-disclaimer-expanded__content"},Ci={class:"catalog-price-disclaimer-expanded__text"},ki=da({__name:"CatalogPriceDisclaimerExpanded",setup(e){const a=aa();return(s,l)=>{const c=Ia;return r(),u("div",bi,[l[0]||(l[0]=_("i",{class:"i i-info catalog-price-disclaimer-expanded__icon"},null,-1)),_("div",Si,[_("p",Ci,m(s.$t("coin_price-disclaimer-expanded-text")),1),xe(c,{to:g(a)("/calculation-methodology"),class:"catalog-price-disclaimer-expanded__link"},{default:G(()=>[N(m(s.$t("coin_price-disclaimer-link"))+" → ",1)]),_:1},8,["to"])])])}}}),wi=Object.assign(Ge(ki,[["__scopeId","data-v-f142bddc"]]),{__name:"CatalogPriceDisclaimerExpanded"}),Pi=(e,a,s)=>{const l=aa(),{t:c}=ht(),t=()=>s==="ru"&&!e.withoutYear?"года":s==="pl"&&!e.withoutYear?"roku":"",o=b=>b?b.charAt(0).toLowerCase()+b.slice(1):"",f=b=>b?b.startsWith('"')||/^[A-ZА-ЯЁ0-9]+$/.test(b)&&b.length>=2?b:o(b):"",n=J([e.mdMark,e.mcmMark,e.authorMark]," "),d=ia(new Date().toISOString(),s),i=e.metalNamePrilRp,
2C=e.metalNamePril,P=e.countryNamePrilRP,te=e.metalPrice.value,j=J([f(e.variety1),f(e.variety2),f(e.variety3),f(e.variety4)],", "),W=e.additionalTypeName?`"${e.additionalTypeName}"`:"",ce=e.tempVariety?c("coin_meta-title-tmpvariety-v",{v:e.tempVariety}):"",De=c("variety-sp"),Ce=c("variety-pf");let Z="";e.mintingType?.name&&(e.mintingType.name==="SP"&&(Z+=` (${De})`),e.mintingType.name==="PF"&&(Z+=` (${Ce})`)),J([e.otherTypeName,e.nominalName,ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W,ce]," ");const se=({withPeriod:b=!0,withSigns:E=!0,withYear:x=!0}={})=>J([b?e.periodNameRP:"",e.nominalName,x?ge(e.year,e.yearTo,e.altYear,e.withoutYear):"",x?t():"",E?n:"",W]," ");se(),se({withPeriod:!1,withSigns:!1});const re=e.prices.USD,U=re?` ${new Intl.NumberFormat(Va(s),{maximumFractionDigits:0}).format(At(Number(re)))} USD`:"",q=e.prices&&e.prices.USD,me=e.proofPrices&&e.proofPrices.USD,pe=e.metalPrecious,y=Math.floor(a/10)*10,Q=b=>{if(q||me)return b()},z=b=>{if(q||me)return b()},H=b=>b();if(s==="en"){const b=n?` with mark ${n}`:"",E=J([e.variety1,e.variety2,e.variety3,e.variety4],", "),x=E?`, ${E}`:"";return{howMuchCoinWorth:()=>Q(()=>{J([e.periodNameRP,e.otherTypeName,e.nominalName,ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),n,W]," ");const S=J([e.nominalName,ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W]," "),T=e.bareMetalWeight?`The coin contains ${e.bareMetalWeight.gram} g of ${e.bareMetalCaptionName.toLowerCase()},`:"",$=`According to the latest data as of ${d} the average price of a ${i} coin ${S}${b}${x}${Z} is`,Y=e.fineness&&e.metalName!=="AG"?` ${T} so we do not recommend selling it for less than ${te} USD, even if it is in poor condition and has no collectible value.`:"";return{title:"How much is this coin worth?",text:`${$}${U}.${pe?Y:" The coin is made of non-precious metal, so in poor condition it may have extremely low value and liquidity."}`}}),whereServiceGetInfo:()=>z(()=>{J([e.otherTypeName,e.nominalName,ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W,n?` with mark ${n}`:""]," ");const S=J([e.otherTypeName,e.nominalName,ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W,n?` with the letters ${n}`:""]," "),T=`<a href="${l("catalog")}" style="text-decoration: underline">coin catalog</a>`,$=`<a href="${l("coin-archive")}" style="text-decoration: underline">auction archive</a>`,Y=`<a href="${l("calculation-methodology")}" style="text-decoration: underline">More about calculation methodology →</a>`;return{title:"Where does the price data come from?",text:`The information on the current value of the ${P} coin ${S}${x}${Z} is based on actual auction sales of similar specimens. To reflect the current price level, our service monitors over ${y} numismatic companies and records auction results in the ${T} and ${$}. Please note that the exact value depends directly on the coin's condition, so the average price serves only as an approximate estimate. ${Y}`,textForSchemaOrg:`The information on the current value of the ${P} coin ${S}${x}${Z} is based on actual auction sales of similar specimens. To reflect the current price level, our service monitors over ${y} numismatic companies and records auction results in the coin catalog and auction archive. Please note that the exact value depends directly on the coin's condition, so the average price serves only as an approximate estimate.`}}),whereToSell:()=>H(()=>{const S=J([e.otherTypeName,e.nominalName,ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W,n?` with the letters ${n}`:""]," "),T=`<a href="${l("auctions")}" style="text-decoration: underline">list of companies</a>`;return{title:"Where can I sell this coin?",text:`To sell the ${S}${x}${Z} we recommend contacting specialized numismatic companies that hold regular auction sales. Public auctions are the most fair and secure way to sell valuable collectible coins. Go to the ${T} to find a suitable platform.`,textForSchemaOrg:`To sell the ${S}${x}${Z} we recommend contacting specialized numismatic companies that hold regular auction sales. Public auctions are the most fair and secure way to sell valuable collectible coins. Go to the list of companies to find a suitable platform.`}})}}if(s==="ru")return{howMuchCoinWorth:()=>Q(()=>{J([e.periodNameRP,o(e.otherTypeName),o(e.nominalName),ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),n,W]);const b=J([o(e.otherTypeName),o(e.nominalName),ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W,ce]," "),E=j?`, разновидность - ${j}`:"",x=n?` с буквами ${n}`:"",S=`По последним данным на ${d} средняя стоимость ${i} монеты ${b}${x}${E?`${E},`:""}${Z} составляет`,T=e.bareMetalWeight?`В монете содержится ${e.bareMetalWeight.gram} гр ${e.bareMetalCaptionName.toLowerCase()},`:"",$=e.fineness&&e.metalName!=="AG"?` ${T} поэтому ниже ${te} USD продавать монету не рекомендуем, даже если она в плохой сохранности и не представляет коллекционного интереса.`:"";return{title:"Сколько стоит такая монета?",text:`${S}${U}.${pe?$:" Монета выполнена из недрагоценного металла, поэтому в плохой сохранности может иметь крайне низкую стоимость и ликвидность."}`}}),whereServiceGetInfo:()=>z(()=>{const b=J([o(e.otherTypeName),o(e.nominalName),ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W]),E=n?` с буквами ${n}`:"",x=j?`, вариант - ${j}`:"",S=`<a href="${l("catalog")}" style="text-decoration: underline">каталоге монет</a>`,T=`<a href="${l("coin-archive")}" style="text-decoration: underline">архиве аукционов</a>`,$=`<a href="${l("calculation-methodology")}" style="text-decoration: underline">Подробнее о методике расчёта →</a>`;return{title:"Откуда данные о текущей цене?",text:`Информация о текущей стоимости ${P} монеты ${b}${E}${x?`${x},`:""}${Z} основана на реальных аукционных продажах аналогичных экземпляров. Чтобы отразить актуальный уровень цен этой ${i} монеты, наш сервис мониторит более ${y} нумизматических компаний и фиксирует результаты торгов в ${S} и ${T}. Обращаем внимание, точная стоимость напрямую зависит от состояния монеты, поэтому средняя цена служит только для приблизительной оценки. ${$}`,textForSchemaOrg:`Информация о текущей стоимости ${P} монеты ${b}${E}${Z} основана на реальных аукционных продажах аналогичных экземпляров. Чтобы отразить актуальный уровень цен этой ${i} монеты, наш сервис мониторит более ${y} нумизматических компаний и фиксирует результаты торгов в каталоге монет и архиве аукционов. Обращаем внимание, точная стоимость напрямую зависит от состояния монеты, поэтому средняя цена служит только для приблизительной оценки.`}}),whereToSell:()=>H(()=>{J([o(e.otherTypeName),o(e.nominalName),ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),W]);const b=J([o(e.otherTypeName),o(e.nominalName),ge(e.year,e.yearTo,e.altYear,e.withoutYear),t(),n,W]," "),E=`<a href="${l("auctions")}" style="text-decoration: underline">списку фирм</a>`;return J([e.variety1,e.variety2,e.variety3,e.variety4],", "),{title:"Где можно продать эту монету?",text:`Для продажи ${b}${Z} мы рекомендуем обращаться в специализированные нумизматические фирмы, которые проводят регулярные аукционные торги. Публичные аукционные торги наиболее честный и безопасный способ продажи ценных коллекционных монет. Перейдите к ${E} для поиска подходящей площадки.`,textForSchemaOrg:`Для продажи ${b}${Z} мы рекомендуем обращаться в специализированные нумизматические фирмы, которые проводят регулярные аукционные торги. Публичные аукционные торги наиболее честный и безопасный способ продажи ценных коллекционных монет. Перейдите к списку фирм для поиска подходящей площадки.`}})};if(s==="pl")return{howMuchCoinWorth:()=>Q(()=>{J([e.nominalName.toLowerCase(),`${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,n,W,`z okresu ${e.periodNameRP}`]," ");const b=J([e.nominalName.toLowerCase(),`${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,e.periodNameRP,n?`ze znakiem ${n}`:"",W]," "),E=`Według najnowszych danych na dzień ${d}, średnia cena ${i} monety ${b}${Z} wynosi`,x=e.bareMetalWeight?`Moneta zawiera ${e.bareMetalWeight.gram} g ${e.bareMetalCaptionName.toLowerCase()},`:"",S=e.fineness&&e.metalName!=="AG"?` ${x} dlatego nie zalecamy jej sprzedaży poniżej ${te} USD, nawet jeśli znajduje się w słabym stanie zachowania i nie przedstawia wartości kolekcjonerskiej.`:"";return{title:"Ile jest warta ta moneta?",text:`${E}${U}.${pe?S:" Moneta została wykonana z nieszlachetnego metalu, dlatego w słabym stanie zachowania może mieć bardzo niską wartość i płynność."}`}}),whereServiceGetInfo:()=>z(()=>{J([e.nominalName.toLowerCase(),`${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,W,n?` z literami ${n}`:""]," ");const b=J([e.nominalName.toLowerCase(),`${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,n?` z literami ${n}`:"",W]," "),E=`<a href="${l("catalog")}" style="text-decoration: underline">katalogu monet</a>`,x=`<a href="${l("coin-archive")}" style="text-decoration: underline">archiwum aukcyjnym</a>`;return{title:"Skąd pochodzą dane o cenach?",text:`Informacja o aktualnej wartości ${P} monety ${b}${Z} opiera się na rzeczywistych wynikach aukcyjnych sprzedaży podobnych egzemplarzy. Aby odzwierciedlić aktualny poziom cen, nasz serwis monitoruje ponad ${y} firm numizmatycznych i rejestruje wyniki licytacji w ${E} oraz ${x}. Zwracamy uwagę, że dokładna wartość bezpośrednio zależy od stanu zachowania monety, dlatego średnia cena służy jedynie jako orientacyjna wycena.`,textForSchemaOrg:`Informacja o aktualnej wartości  ${P} monety ${b}${Z} opiera się na rzeczywistych wynikach aukcyjnych sprzedaży podobnych egzemplarzy. Aby odzwierciedlić aktualny poziom cen, nasz serwis monitoruje ponad ${y} firm numizmatycznych i rejestruje wyniki licytacji w katalogu monet oraz archiwum aukcyjnym. Zwracamy uwagę, że dokładna wartość bezpośrednio zależy od stanu zachowania monety, dlatego średnia cena służy jedynie jako orientacyjna wycena.`}}
2),whereToSell:()=>H(()=>{J([e.nominalName.toLowerCase(),`z datą ${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,n?` i znakiem ${n}`:"",W]," ");const b=J([e.nominalName.toLowerCase(),`${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,n?`${n}`:"",W]," "),E=`<a href="${l("auctions")}" style="text-decoration: underline">do listy firm</a>`;return{title:"Gdzie można sprzedać tę monetę?",text:`Aby sprzedać ${b}${Z}, zalecamy skontaktowanie się ze specjalistycznymi firmami numizmatycznymi, które regularnie organizują aukcje. Publiczne aukcje to najuczciwszy i najbezpieczniejszy sposób sprzedaży cennych monet kolekcjonerskich. Przejdź ${E}, aby znaleźć odpowiednią platformę.`,textForSchemaOrg:`Aby sprzedać ${b}${Z}, zalecamy skontaktowanie się ze specjalistycznymi firmami numizmatycznymi, które regularnie organizują aukcje. Publiczne aukcje to najuczciwszy i najbezpieczniejszy sposób sprzedaży cennych monet kolekcjonerskich. Przejdź do listy firm, aby znaleźć odpowiednią platformę.`}})};if(s==="de"){const b=ge(e.year,e.yearTo,e.altYear,e.withoutYear),E=n?` mit dem Prägezeichen ${n}`:"",x=j?`, ${j}`:"",S=i||`${C}münze`,T=J([e.nominalName,b,W]," "),$=se({withPeriod:!1});return{howMuchCoinWorth:()=>Q(()=>{const Y=pe?J([S,e.nominalName,W,`aus dem Jahr ${b}`]," "):J([`${e.nominalName}-Münze aus ${C} des Jahrgangs ${b}`,W]," "),le=e.bareMetalWeight?.gram?`Die Münze enthält ${e.bareMetalWeight.gram} g ${o(e.bareMetalCaptionName)}, `:"",K=new Intl.NumberFormat(s,{style:"currency",currency:"USD",currencyDisplay:"code",minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(String(te).replace(",","."))),he=e.fineness&&e.metalName!=="AG"?` ${le}daher empfehlen wir, die Münze nicht unter ${K} zu verkaufen, selbst wenn sie einen schlechten Erhaltungszustand aufweist und keinen Sammlerwert besitzt.`:"";return{title:"Was ist diese Münze wert?",text:`Nach den neuesten Daten vom ${d} beträgt der Durchschnittspreis für die ${Y}${E}${x}${Z}${U}.${pe?he:" Die Münze besteht aus unedlem Metall, weshalb sie in einem schlechten Erhaltungszustand einen extrem niedrigen Wert und eine sehr geringe Liquidität aufweisen kann."}`}}),whereServiceGetInfo:()=>z(()=>{const Y=`<a href="${l("catalog")}" style="text-decoration: underline">Münzkatalog</a>`,le=`<a href="${l("coin-archive")}" style="text-decoration: underline">Auktionsarchiv</a>`,K=`<a href="${l("calculation-methodology")}" style="text-decoration: underline">Mehr zur Berechnungsmethode →</a>`,he=`Die Informationen zum aktuellen Wert der ${P} Münze ${T}${E}${x}${Z} basieren auf tatsächlichen Auktionsverkäufen vergleichbarer Exemplare. Um das aktuelle Preisniveau dieser ${S} abzubilden, überwacht unser Service mehr als ${y} numismatische Unternehmen und erfasst die Auktionsergebnisse im`,ee="Bitte beachten Sie, dass der genaue Wert direkt vom Erhaltungszustand der Münze abhängt, weshalb der Durchschnittspreis nur zur ungefähren Einschätzung dient.";return{title:"Woher stammen die Daten zum aktuellen Preis?",text:`${he} ${Y} und ${le}. ${ee} ${K}`,textForSchemaOrg:`${he} Münzkatalog und Auktionsarchiv. ${ee}`}}),whereToSell:()=>H(()=>{const Y=`<a href="${l("auctions")}" style="text-decoration: underline">Firmenliste</a>`,le=`Für den Verkauf der Münze ${$}${x}${Z} empfehlen wir, sich an spezialisierte numismatische Fachfirmen zu wenden, die regelmäßige Auktionen durchführen. Öffentliche Auktionen sind der fairste und sicherste Weg, wertvolle Sammlermünzen zu verkaufen.`;return{title:"Wo kann man diese Münze verkaufen?",text:`${le} Gehen Sie zur ${Y}, um eine passende Verkaufsplattform zu finden.`,textForSchemaOrg:`${le} Gehen Sie zur Firmenliste, um eine passende Verkaufsplattform zu finden.`}})}}if(s==="es"){const b=J([e.mdMark,e.mcmMark,e.authorMark],". ");J([`de ${e.periodNameRP}`,`de ${e.nominalName}`]," ");const E=J([` del ${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,b,W],". "),x=J([e.nominalName]," ");se({withPeriod:!1,withSigns:!1});const S=e.bareMetalWeight?`La moneda contiene ${e.bareMetalWeight.gram} gramo(s) de ${e.bareMetalCaptionName.toLowerCase()},`:"",T=`Según los últimos datos, a fecha de ${d}, el valor medio de la moneda ${i} de ${x}${E}${Z} es de`,$=e.fineness&&e.metalName!=="AG"?` ${S} por lo que si su estado de conservación es deficiente y no es de interés para los coleccionistas, no recomendamos venderla por menos de ${te} USD.`:"",Y=" La moneda no está hecha de un metal precioso, por lo que si su estado de conservación es deficiente, su valor y liquidez pueden ser muy bajos.";return{howMuchCoinWorth:()=>Q(()=>({title:"¿Cuánto vale esta moneda?",text:`${T}${U}.${pe?$:Y}`})),whereServiceGetInfo:()=>z(()=>{const le=`<a href="${l("catalog")}" style="text-decoration: underline">el catálogo de monedas</a>`,K=`<a href="${l("coin-archive")}" style="text-decoration: underline">el archivo de subastas</a>`,he=`<a href="${l("calculation-methodology")}" style="text-decoration: underline">Más información sobre la metodología de cálculo →</a>`,ee=J([`de ${e.nominalName}`,`del ${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`]," "),A=J([` del ${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`,W],". ");return J([A,n?` con letras ${n}`:""]," "),{title:"¿De dónde vienen los datos de precios?",text:`La información sobre el precio actual de la moneda ${P} ${ee} se basa en ventas reales de piezas similares. Para ofrecerle el nivel actual de precios, consultamos los datos de más de ${y} empresas numismáticas, demostrando los resultados de subastas en ${le} y en ${K}. Tenga en cuenta que el precio exacto puede variar según el estado de conservación de su moneda. Por ello, el valor medio proporcionado debe entenderse únicamente como una referencia aproximada. ${he}`,textForSchemaOrg:`La información sobre el precio actual de la moneda ${P} ${ee} se basa en ventas reales de piezas similares. Para ofrecerle el nivel actual de precios, consultamos los datos de más de ${y} empresas numismáticas, demostrando los resultados de subastas en el catálogo de monedas y en el archivo de subastas. Tenga en cuenta que el precio exacto puede variar según el estado de conservación de su moneda. Por ello, el valor medio proporcionado debe entenderse únicamente como una referencia aproximada.`}}),whereToSell:()=>H(()=>{const le=`<a href="${l("auctions")}" style="text-decoration: underline">lista de empresas</a>`,K=J([`${e.nominalName}`,`del ${ge(e.year,e.yearTo,e.altYear,e.withoutYear)}`]," ");return{title:"¿Dónde vender esta moneda?",text:`Para vender ${K}, recomendamos contactar con empresas numismáticas especializadas que organizan subastas de manera regular. Las subastas públicas son una de las formas más transparentes y seguras de vender monedas valiosas con demanda entre coleccionistas. Consulte la ${le} para encontrar el servicio que mejor se adapte a sus necesidades.`,textForSchemaOrg:`Para vender ${K}, recomendamos contactar con empresas numismáticas especializadas que organizan subastas de manera regular. Las subastas públicas son una de las formas más transparentes y seguras de vender monedas valiosas con demanda entre coleccionistas. Consulte la lista de empresas para encontrar el servicio que mejor se adapte a sus necesidades.`}})}}return{howMuchCoinWorth:()=>Q(()=>({title:"",text:""})),whereServiceGetInfo:()=>z(()=>({title:"",text:"",textForSchemaOrg:""})),whereToSell:()=>H(()=>({title:"",text:"",textForSchemaOrg:""}))}},xi={class:"content__block-wrap"},Ii={class:"coin-page__sell"},Ti={key:0,class:"coin-page__info-block"},Di={class:"coin-page__info-title text-medium"},Li={class:"coin-page__info-desc"},Mi={key:1,class:"coin-page__info-block"},Fi={class:"coin-page__info-title text-medium"},Ri=["innerHTML"],Ai={key:2,class:"coin-page__info-block"},Ei={class:"coin-page__info-title text-medium"},Ni=["innerHTML"],Oi=da({__name:"FAQBlock",props:{coin:{},partnersData:{}},setup(e){const{locale:a}=ht(),{howMuchCoinWorth:s,whereServiceGetInfo:l,whereToSell:c}=Pi(e.coin,e.partnersData.firmCount,a.value),t=s(),o=l(),f=c(),d=(()=>{const C=[];
2if(t&&C.push({"@type":"Question",name:t.title,acceptedAnswer:{"@type":"Answer",text:t.text}}),o&&C.push({"@type":"Question",name:o.title,acceptedAnswer:{"@type":"Answer",text:o.textForSchemaOrg}}),f&&C.push({"@type":"Question",name:f.title,acceptedAnswer:{"@type":"Answer",text:f.textForSchemaOrg}}),C.length!==0)return{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:C})}})(),i=[];return d&&i.push(d),ra({script:i}),(C,P)=>{const te=wi;return r(),u("div",xi,[_("div",Ii,[g(t)?(r(),u("div",Ti,[_("h2",Di,m(g(t).title),1),_("p",Li,m(g(t).text),1),xe(te)])):v("",!0),g(o)?(r(),u("div",Mi,[_("h2",Fi,m(g(o).title),1),_("p",{class:"coin-page__info-desc",innerHTML:g(o).text},null,8,Ri)])):v("",!0),g(f)?(r(),u("div",Ai,[_("h2",Ei,m(g(f).title),1),_("p",{class:"coin-page__info-desc",innerHTML:g(f).text},null,8,Ni)])):v("",!0)])])}}}),zi=Object.assign(Ge(Oi,[["__scopeId","data-v-4bc12481"]]),{__name:"FAQBlock"});function Jt(e){return e?._id??e?.id??e?.name??""}function jt(e,a=[]){if(!e?.length)return[];const s=new Map;for(const c of a)s.set(Jt(c),c);const l=(c,t,o,f)=>{if(!(!Array.isArray(c)||!c.length)){if(f&&(!t||!t.length)&&(f.count??0)>0){const n=Jt(o);return c.map(d=>({...d,baseCount:d.baseCount??d.count,count:Jt(d)===n||d.name===o.name?f.count??0:0}))}return jt(c,t||[])}};return e.map(c=>{const t=Jt(c),o=s.get(t),f=l(c.treeChildren,o?.treeChildren,c,o),n=l(c.children,o?.children,c,o),d={...c,baseCount:c.baseCount??c.count,count:o?.count??0};return f&&(d.treeChildren=f),n&&(d.children=n),d})}function la(e,a){if(!e)return"";if(typeof e=="object"&&e.translationKey)return a(e.translationKey);const s=typeof e=="object"?e.name:String(e);return s?s==="empty"?a("coin_auction_no-safety"):s==="collection"?a("coin_auction_collection-name"):s:""}function Yi(e,a,s,l){if(!e)return"";const c=String(e).split(",").map(n=>n.trim()).find(Boolean);if(!c)return"";const o=(a?.commonFilterModifiers||[]).find(n=>String(n?._id)===c);if(o){const n=la(o,l).toLocaleLowerCase(s);return l("coin_filter_any-condition-v",{v:n})}const f=a?.commonFilter||[];for(const n of f){if(String(n._id)===c||n.originalId&&n.originalId===c)return la(n,l);const d=n.modifiers||n.children||n.subFilters||n.items||[];for(const i of d)if(String(i._id)===c)return la(n,l)}return""}function Vi(e,a,s,l){if(!e||!a?.suffixFilter)return"";const c=String(e).split(",").map(o=>o.trim()).find(Boolean);if(!c)return"";const t=a.suffixFilter.find(o=>String(o.id||o._id||"")===c);if(t){if(t.type==="suffix"){const o=t.name||"";return l?l("coin_filter_any-with-modifier-v",{v:o}):s==="ru"?`Любая с ${o}`:`Any with ${o}`}return t.name||""}for(const o of a.suffixFilter){const f=o.children||o.modifiers||o.subFilters||o.items||[];for(const n of f)if(String(n.id||n._id||"")===c)return n.name||o.name||""}return""}function Bi(){const e=St("collection","",{mode:"push"}),a=St("page",1,{mode:"push"}),s=ma(c=>{a.value=1,e.value=c.ids.length?c.ids.join(","):void 0},250);return{changeCollectionFilter:c=>s(c),collection:e}}function Ui(){const e=St("condition","",{mode:"push"}),a=St("slab","",{mode:"push"}),s=St("service","",{mode:"push"}),l=St("page",1,{mode:"push"}),c=ma(o=>{l.value=1;const f=o.ids.length?o.ids.join(","):void 0;o.type==="commonFilter"&&(e.value=f),o.type==="suffixFilter"&&(a.value=f),o.type==="firmFilter"&&(s.value=f)},250);return{changeServiceFilter:o=>c(o),condition:e,slab:a,service:s}}function Wi(){const e=St("firm","",{mode:"push"}),a=St("page",1,{mode:"push"}),s=ma(c=>{a.value=1,e.value=c.ids.length?c.ids.join(","):void 0},250);return{changeFirmFilter:c=>s(c),firm:e}}function Hi(){const e=St("page",1,{mode:"push",transform:Number});return{changePage:s=>{s>0?e.value=s:e.value=void 0},page:e}}function ji(e,a){const s=ca(),l=Ba(),c=I(()=>e.value||[]),t=I(()=>{const d=[...a.value?.length?a.value:c.value],i=new Date().getFullYear();return d.length>0&&!d.includes(i)&&d.push(i),d.sort((C,P)=>C-P),d}),o=I(()=>t.value.length>1),f=I({get(){const n=s.query.year_from?parseInt(String(s.query.year_from),10):null,d=s.query.year_to?parseInt(String(s.query.year_to),10):null;return{from:n!==null&&!isNaN(n)?n:null,to:d!==null&&!isNaN(d)?d:null}},set(n){const d=t.value.length>0?Math.min(...t.value):null,i=t.value.length>0?Math.max(...t.value):null,C={...s.query};C.page="1",n.from!==null&&n.from!==void 0&&n.from!==d?C.year_from=String(n.from):delete C.year_from,n.to!==null&&n.to!==void 0&&n.to!==i?C.year_to=String(n.to):delete C.year_to,l.push({query:C})}});return{chartYears:t,backendYears:c,selectedYearRange:f,hasInitialYears:o}}const qi=It(()=>_t(()=>import("./PbY4qVdt.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),$i=It(()=>_t(()=>import("./BYgFGNBN.js"),__vite__mapDeps([3,4,1,2,5,6]),import.meta.url).then(e=>e.default||e)),Xi=It(()=>_t(()=>import("./BQiBg9Fm.js"),__vite__mapDeps([7,4,1,2,8,9,10]),import.meta.url).then(e=>e.default||e)),Ki=It(()=>_t(()=>import("./C0xu2PHZ.js"),__vite__mapDeps([11,1,2,8,9,12]),import.meta.url).then(e=>e.default||e)),Gi=It(()=>_t(()=>import("./B9rd5Oez.js"),__vite__mapDeps([13,1,2,14,15,16,4,17,18,19]),import.meta.url).then(e=>e.default||e)),Qi=It(()=>_t(()=>import("./CBoLe3Sj.js"),__vite__mapDeps([20,14,1,2,21]),import.meta.url).then(e=>e.default||e)),Ji=Qa("components/widgets/PopularSection.vue",()=>_t(()=>import("./BZrirk0v.js"),__vite__mapDeps([22,23,1,2,24,25]),import.meta.url).then(e=>e.default||e)),Zi=It(()=>_t(()=>
2import("./h0eHDVLm.js"),__vite__mapDeps([26,1,2,27,14,28,29]),import.meta.url).then(e=>e.default||e)),er=It(()=>_t(()=>import("./Qij0RTm1.js"),__vite__mapDeps([30,1,2,5,7,4,8,9,10,31]),import.meta.url).then(e=>e.default||e)),tr={class:"content coin-page__container"},ar={class:"container"},nr={class:"content__wrap"},sr={class:"content__block-breadcrumbs mob"},lr={class:"content__panel"},ir={class:"content__panel-sidebar"},rr={class:"content__block"},or={class:"content__block-breadcrumbs"},cr={class:"content__block-title"},ur={class:"text-medium"},dr={key:0},mr={class:"text-medium"},hr={key:0,class:"coin-page__chart price"},_r={class:"coin-page__chart-uplot-wrap"},fr={class:"content__block-wrap"},gr={class:"coin-page"},yr={class:"content__wrap top-lots-section top-lots-section_with-sidebar"},pr=da({__name:"index",async setup(e){let a,s;const{t:l,locale:c}=ht(),t=Ua(),{customEvent:o}=Wa(),{getCoin:f,getNavigation:n,pageMetaTag:d,getLotsAndFilterByCoinId:i,getBaseLotsAndFiltersByCoinId:C,getCoinVarieties:P,getCoinTextInfo:te,getCurrentOffers:j,getPartnersByCountry:W,getTopLots:ce,incrementViews:De,getCoinPriceSummary:Ce}=ua(),{user:Z}=Ha(),se=Qt("include_fees",{maxAge:3600*24*365,default:()=>!0}),{userCurrency:re}=oa(),U=ca(),q=Ht("coin",""),me=Ht("country",""),pe=Ja(),[{data:y},{data:Q},{data:z},{data:H},{data:b},{lots:E,lotFilters:x,pagination:S,auctionHouseFilters:T,yearsPagination:$,initialYearsPagination:Y,hasInitialCollectionFilter:le,priceRange:K,isLotsLoading:he},{data:ee},{data:A},{data:Fe,status:k}]=([a,s]=ja(()=>Promise.all([f(q.value),n(me.value),d(q.value),te(q.value),W(),Qe(),P(q.value),j(q.value),$a(`price-summary-${q.value}`,()=>Ce(q.value,re.value.code),{watch:[()=>re.value.code]})])),a=await a,s(),a),{data:M}=ce();Ta(()=>{De(q.value).catch(()=>{})}),y.value.metalSlug==="gold"&&o("coin-gold"),Ke(()=>U.query,()=>{if(["firm","page","condition","slab","service","collection"].some(R=>Object.prototype.hasOwnProperty.call(U.query,R))){const R="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";for(const oe of E.value)oe.mdvImages=[R,R]}});const{breadcrumbs:O}=Vt(y.value),{changeFirmFilter:ie,firm:ze}=Wi(),{changePage:Re,page:Le}=Hi(),{changeServiceFilter:Ie,condition:qe,slab:ve,service:Ye}=Ui(),{changeCollectionFilter:Nt,collection:Tt}=Bi(),{chartYears:Dt,backendYears:rt,selectedYearRange:_e,hasInitialYears:Ct}=ji($,Y),Ae=I(()=>!!Z.value?.isSubscribed),$e=["condition","slab","service","firm","collection"],ct=I(()=>$e.some(h=>{const R=U.query[h];return Array.isArray(R)?R.length>0:String(R||"").trim().length>0})),ft=I(()=>{const h=U.query.year_from,R=U.query.year_to;return!!(h&&String(h).trim().length>0||R&&String(R).trim().length>0)}),kt=I(()=>ct.value||ft.value),Ot=I(()=>!Ae.value&&kt.value),gt=ne(null),wt=ne(null),Lt=ne(null),zt=I(()=>Lt.value||Fe.value),Yt=I(()=>zt.value?.[se.value?"withFees":"withoutFees"]??null),ke=I(()=>{if(kt.value)return gt.value;const h=zt.value;if(!h)return gt.value;const R=Yt.value;return{trend:R?.trend??null,lower:R?.corridor?.lower??null,upper:R?.corridor?.upper??null,metal:h.meltValue,dateStr:h.asOf,changePercent:R?.trendChangePercent??null,yearsPeriod:h.yearsPeriod,locked:!1}}),yt=I(()=>{const h=Fe.value,R=!!(h?.withFees||h?.withoutFees),oe=h?.meltValue!=null&&h.meltValue>0,Pe=!!(y.value?.prices?.[re.value.code]||y.value?.proofPrices?.[re.value.code]),Be=mt(y.value?.metalPrice?.value),Oe=!!(y.value?.metalPrecious&&Be>0&&y.value?.bareMetalWeight?.oz);return R||oe||Pe||Oe}),Ue=I(()=>{const h=Fe.value?.meltValue,R=mt(y.value?.metalPrice?.value),oe=y.value?.metalPrecious&&R>0&&y.value?.bareMetalWeight?.oz;return h!=null&&h>0||!!oe}),Me=I(()=>{const h=Fe.value,R=!!(h?.withFees||h?.withoutFees),oe=!!(y.value?.prices?.[re.value.code]||y.value?.proofPrices?.[re.value.code]);return R||oe}),Ve=ne(null);Ke(()=>S.value?.totalLots,h=>{h!=null&&Ve.value===null&&(Ve.value=h)},{immediate:!0});const Ee=I(()=>(Ve.value??S.value?.totalLots??0)>0),pt=h=>
2{gt.value=h,h?.firstSaleYear&&(wt.value===null||h.firstSaleYear<wt.value)&&(wt.value=h.firstSaleYear)},We=h=>{Lt.value=h?.currency===re.value.code?h:null};Ke(()=>[...$e.map(h=>U.query[h]),U.query.year_from,U.query.year_to,Ae.value,re.value.code,se.value],()=>{gt.value=null,Lt.value=null});const Ze=ne(!0),ot=I(()=>k.value==="pending"?!0:kt.value?he.value||Ze.value:!1),vt=h=>{Ze.value=h},et=ne(!1),ut=ne(!1),dt=ne({...U.query});Ke(()=>U.query,(h,R)=>{const oe=R||dt.value||{},Pe=h||{},Be=new Set([...Object.keys(oe),...Object.keys(Pe)]);let Oe=!1,tt=!1,ue=!1;for(const Je of Be)Je!=="page"&&(Je==="year_from"?oe.year_from!==Pe.year_from&&(Oe=!0):Je==="year_to"?oe.year_to!==Pe.year_to&&(tt=!0):oe[Je]!==Pe[Je]&&(ue=!0));ut.value=tt&&kt.value;const Xe=Pe.year_from!==void 0&&Pe.year_from!==null&&String(Pe.year_from).trim().length>0;Oe&&Xe&&!ue&&!tt?et.value=!0:et.value=!1,dt.value={...Pe}},{deep:!0}),Ke(ot,h=>{h||(et.value=!1,ut.value=!1)});const we=I(()=>Yi(qe.value,x.value,c.value,l)),be=I(()=>Vi(ve.value,x.value,c.value,l)),mt=h=>
2{if(h==null)return 0;if(typeof h=="number")return h;const R=String(h).replace(",",".").trim(),oe=parseFloat(R);return isNaN(oe)?0:oe},Pt=I(()=>{if(Ot.value)return{value:0,hidden:!0,tooltip:null};const h=ke.value?.trend;return{value:h!=null&&!isNaN(h)?h:null,hidden:!1,tooltip:null}}),p=I(()=>{if(Ot.value)return{lower:0,upper:0,hidden:!0,tooltip:null};const h=ke.value?.lower,R=ke.value?.upper;return{lower:h!=null&&!isNaN(h)?h:null,upper:R!=null&&!isNaN(R)?R:null,hidden:!1,tooltip:null}}),F=I(()=>{const h=ke.value?.metal!=null?mt(ke.value.metal):null,R=h&&h>0?h:null;return R==null||isNaN(R)||R<=0?null:{value:R,hidden:!1,tooltip:null}}),X=I(()=>{if(ke.value?.dateStr)return ke.value.dateStr;if(_e.value&&_e.value.to){const h=new Date().getFullYear();if(_e.value.to<h)return`${_e.value.to}-12-31`}return new Date().toISOString().split("T")[0]}),Ne=I(()=>{const h=ke.value?.yearsPeriod;return h==null||isNaN(h)?0:Math.max(0,Math.round(h))}),fe=pe?Za(c.value,l,z.value,y.value,y.value.period):en(l,c.value,z.value,y.value,y.value.period,y.value.periodNameRP,y.value.countryMetalSeo),Te=qa().public.baseUrl,He=tn(fe.title,fe.description,[an(l,c.value,O),nn(c.value,Te+U.path,y.value,fe,K.value)]);ra(He),t.value&&ra({link:[{rel:"preconnect",href:"https://static.coinstrail.com",crossorigin:"anonymous"},{rel:"preload",as:"image",href:y.value.photo1_m,fetchpriority:"high"}]},{tagPriority:-100});async function Qe(){const[{data:h,status:R},{data:oe}]=await Promise.all([i(q.value),C(q.value)]),Pe=I(()=>h.value?.lots||[]),Be=I(()=>oe.value?.filters||h.value?.filters||{}),Oe=I(()=>oe.value?.auctionHouseFilters||h.value?.auctionHouseFilters||[]),tt=I(()=>oe.value?.yearsPagination||h.value?.yearsPagination||[]),ue=I(()=>{const at=Be.value,nt=h.value?.filters||{};return{commonFilter:jt(at.commonFilter||[],nt.commonFilter||[]),commonFilterModifiers:jt(at.commonFilterModifiers||[],nt.commonFilterModifiers||[]),suffixFilter:jt(at.suffixFilter||[],nt.suffixFilter||[]),firmFilter:jt(at.firmFilter||[],nt.firmFilter||[]),collectionFilter:jt(at.collectionFilter||[],nt.collectionFilter||[])}}),Xe=I(()=>h.value?.pagination),Je=I(()=>{const at=Oe.value.length>0?Oe.value:h.value?.auctionHouseFilters||[],nt=h.value?.auctionHouseFilters||[],xt=U.query.firm,Xt=Array.isArray(xt)?xt:xt?String(xt).split(","):[],Mt=new Map;for(const st of nt)Mt.set(st.id,st.count??0);return at.map(st=>({_id:st.id,name:st.name,count:Mt.get(st.id)??0,checked:Xt.includes(st.id)}))}),qt=I(()=>h.value?.yearsPagination),$t=I(()=>(Be.value?.collectionFilter?.length||0)>0),Bt=I(()=>h.value?.priceRange),Ut=I(()=>R.value==="pending");return{lots:Pe,lotFilters:ue,pagination:Xe,auctionHouseFilters:Je,yearsPagination:qt,initialYearsPagination:tt,hasInitialCollectionFilter:$t,priceRange:Bt,isLotsLoading:Ut}}function Vt(h){const R=Ht("country",""),oe=Ht("period",""),Pe=Ht("type",""),Be=J([h.mdMark,h.mcmMark,h.authorMark]," "),Oe=ge(h.year,h.yearTo,h.altYear,h.withoutYear),tt=`${h.nominalName} ${Oe}`,Xe=`${J([Oe,Be?`-${Be}`:""],"")} ${h.periodShort||h.nominalName}`;return{breadcrumbs:[{name:l("breadcrumbs_main-title"),url:"/"},{name:l("breadcrumbs_catalog-title"),url:"/catalog"},{name:l("breadcrumbs_country-title-v-v2",{v:h.countryNamePril,v2:h.countryNameRP}),url:`/catalog/${R.value}`},{name:h.period,url:`/catalog/${R.value}/${oe.value}`},{name:pe?h.categoryName:h.nominalName,jsonLdname:`⭐${pe?h.categoryName:h.nominalName}`,url:`/catalog/${R.value}/${oe.value}/${Pe.value}`},{name:pe&&c.value==="en"?Xe:tt}]}}return(h,R)=>{const oe=qi,Pe=$i,Be=Xi,Oe=Ki,tt=Cn,ue=Is,Xe=Es,Je=Hs,qt=Ga,$t=bl,Bt=mi,Ut=fa,at=Xa,nt=vi,xt=Gi,Xt=Qi,Mt=zi,st=Ji,Ft=Zi,bt=er;return r(),u("main",tr,[_("div",ar,[_("div",nr,[_("div",sr,[g(t)?(r(),B(oe,{key:0,data:g(O)},null,8,["data"])):v("",!0)]),_("div",lr,[g(t)?v("",!0):(r(),B(Pe,{key:0,country:{name:g(y).country,icon:g(y).countryIcon},years:g(Q).periodYears,"period-range":g(Q).periodRange},null,8,["country","years","period-range"])),_("div",ir,[g(t)?v("",!0):(r(),B(Be,{key:0,"navigation-data":g(Q),"current-category-id":g(y).categoryId,"current-nominal-id":g(y).nominalId},null,8,["navigation-data","current-category-id","current-nominal-id"]))])]),_("div",rr,[_("div",or,[g(t)?v("",!0):(r(),B(oe,{key:0,data:g(O)},null,8,["data"]))]),_("div",cr,[_("h1",ur,m(g(fe).H1),1),g(y).variety?(r(),u("p",dr,[_("span",mr,m(h.$t("coin_variety-text")),1),N(" "+m(g(y).variety),1)])):v("",!0)]),xe(Oe,{coin:g(y),title:g(fe).imageDescription},null,8,["coin","title"]),xe(xt,{coin:g(y),lots:g(E),pagination:g(S),"years-pagination":g($),"coin-varieties":g(ee),"coin-info-text":g(H)?.text||"","is-subscribed":g(Z)?.isSubscribed||!1,"image-title":g(fe).lotsTitle,"include-fees":g(se),onToPage:g(Re)},{switcher:G(()=>[Ee.value?(r(),B(qt,{key:0,modelValue:g(se),"onUpdate:modelValue":R[1]||(R[1]=Wt=>wa(se)?se.value=Wt:null)},{default:G(()=>[N(m(h.$t("coin_include-fees-label")),1)]),_:1},8,["modelValue"])):v("",!0)]),summary:G(()=>[xe($t,{coin:g(y),"chart-summary-data":ke.value,"average-price-summary":Pt.value,"corridor-summary":p.value,"metal-summary":F.value,"summary-date-str":X.value,"period-years-count":Ne.value,"selected-conditions-text":we.value,"selected-slab-text":be.value,"user-currency":g(re),"include-fees":g(se),"is-loading":ot.value,"is-only-year-from-loading":et.value,"is-year-to-loading":ut.value,"has-initial-summary-data":yt.value,"has-initial-price-data":Me.value,"has-initial-metal-data":Ue.value},null,8,["coin","chart-summary-data","average-price-summary","corridor-summary","metal-summary","summary-date-str","period-years-count","selected-conditions-text","selected-slab-text","user-currency","include-fees","is-loading","is-only-year-from-loading","is-year-to-loading","has-initial-summary-data","has-initial-price-data","has-initial-metal-data"])]),chart:G(()=>[xe(at,null,{fallback:G(()=>[Ee.value?(r(),u("div",hr,[_("div",_r,[xe(Ut,{class:"coin-page__chart-skeleton",height:"270px",radius:"6px","bg-color":"#ffffff",border:"1px dashed #d4d7dd",animated:!1,text:h.$t("coin_chart-skeleton-alt"),role:"img","aria-label":h.$t("coin_chart-skeleton-aria-label")},null,8,["text","aria-label"])])])):v("",!0)]),default:G(()=>[Ee.value?(r(),B(Bt,{key:0,"coin-id":g(y)._id,title:h.$t("coin_chart-price-block-title"),"chart-alt":h.$t("coin_price-chart-image-alt-v",{v:g(fe).imageDescription}),"is-subscribed":Ae.value,price:g(y).prices,"proof-price":g(y).proofPrice
2s,"metal-name":g(y).metalPrecious&&g(y).metalPrice?.value&&g(y).bareMetalWeight?.oz?g(y).metalName:"","metal-name-r-p":g(y).metalPrecious&&g(y).metalPrice?.value&&g(y).bareMetalWeight?.oz?g(y).metalRP:"","weight-oz":g(y).metalPrecious&&g(y).metalPrice?.value&&g(y).bareMetalWeight?.oz?g(y).bareMetalWeight.oz:"","year-range":g(_e),"include-fees":g(se),onSummaryLoaded:pt,onPriceSummaryLoaded:We,onChartLoading:vt},null,8,["coin-id","title","chart-alt","is-subscribed","price","proof-price","metal-name","metal-name-r-p","weight-oz","year-range","include-fees"])):v("",!0)]),_:1}),!g(Z)?.isSubscribed&&Ee.value?(r(),B(nt,{key:0})):v("",!0)]),default:G(()=>[xe(tt,{name:h.$t("coin_filter-safety-title"),filters:g(x)?.commonFilter||[],modifiers:g(x)?.commonFilterModifiers||[],"selected-ids":g(qe),onSetFilter:g(Ie)},null,8,["name","filters","modifiers","selected-ids","onSetFilter"]),xe(ue,{name:h.$t("coin_filter-slab-title"),filters:g(x)?.suffixFilter||[],"selected-ids":g(ve),onSetFilter:g(Ie)},null,8,["name","filters","selected-ids","onSetFilter"]),xe(Xe,{name:h.$t("coin_filter-service-title"),filters:g(x)?.firmFilter||[],type:"firmFilter","selected-ids":g(Ye),onSetFilter:g(Ie)},null,8,["name","filters","selected-ids","onSetFilter"]),xe(Xe,{name:h.$t("coin_auctions-title"),filters:g(T)||[],type:"firm","all-label":h.$t("coin_auctions_show-all"),"dropdown-min-width":"250px","selected-ids":g(ze),onSetFilter:g(ie)},null,8,["name","filters","all-label","selected-ids","onSetFilter"]),g(le)||g(U).query.collection?(r(),B(Xe,{key:0,name:h.$t("coin_filter-collection-title"),filters:g(x)?.collectionFilter||[],type:"collectionFilter","dropdown-min-width":"250px","selected-ids":g(Tt),"mobile-modal":!1,onSetFilter:g(Nt)},null,8,["name","filters","selected-ids","onSetFilter"])):v("",!0),g(Ct)?(r(),B(Je,{key:1,modelValue:g(_e),"onUpdate:modelValue":R[0]||(R[0]=Wt=>wa(_e)?_e.value=Wt:null),name:h.$t("coin_filter-period-title"),years:g(Dt),"backend-years":g(rt)},null,8,["modelValue","name","years","backend-years"])):v("",!0)]),_:1},8,["coin","lots","pagination","years-pagination","coin-varieties","coin-info-text","is-subscribed","image-title","include-fees","onToPage"]),g(A).length>0?(r(),B(Xt,{key:0,"hydrate-on-visible":"",lots:g(A),"image-title":g(fe).lotsTitle},null,8,["lots","image-title"])):v("",!0),g(Le)===1?(r(),B(Mt,{key:1,coin:g(y),"partners-data":g(b)},null,8,["coin","partners-data"])):v("",!0),_("div",fr,[_("div",gr,[xe(st,{"hydrate-on-visible":"",country:{nameRP:g(y).countryNameRP,namePril:g(y).countryNamePril,slug:g(y).countrySlug},period:{name:g(y).periodNameRP,slug:g(y).periodSlug},year:g(y).year,metal:[{nameIpmn:g(y).metalNameIpmn,slug:g(y).metalSlug}],nominal:{name:g(y).nominalName,slug:g(y).nominalSlug}},null,8,["country","period","year","metal","nominal"])])]),_("div",yr,[g(M).length>0?(r(),B(Ft,{key:0,"top-lots":g(M),type:"with-sidebar"},null,8,["top-lots"])):v("",!0)])])]),g(t)?(r(),B(bt,{key:0,"navigation-data":g(Q),country:{name:g(y).country,icon:g(y).countryIcon},"current-category-id":g(y).categoryId,"current-nominal-id":g(y).nominalId},null,8,["navigation-data","country","current-category-id","current-nominal-id"])):v("",!0)])])}}}),Tr=Ge(pr,[["__scopeId","data-v-182b58fb"]]);export{Tr 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.