1import{a as ye,b as Ce}from"./chunk-4NW52K7F.js";import"./chunk-E5VV6VFQ.js";import"./chunk-WAPHCCZK.js";import{a as ce}from"./chunk-7MJVV45Y.js";import{a as te,b as C,c as ie,d as le,e as ue,g as se,h as de,i as me,j as pe}from"./chunk-Z4XEEN2Y.js";import{b as Q,c as d,f as Z,g as y,m as ee,s as re}from"./chunk-GBX4JCTL.js";import{a as oe}from"./chunk-L7D6DG4M.js";import{a as ae}from"./chunk-UPOADS4E.js";import"./chunk-GNRFG465.js";import"./chunk-KPIYDZ42.js";import{a as h}from"./chunk-GL4BRRWV.js";import{d as K}from"./chunk-4WIMTTHW.js";import{a as ne}from"./chunk-WQS2XQEY.js";import"./chunk-4ATN3Y56.js";import"./chunk-5HPXSHPS.js";import"./chunk-6SBHDO66.js";import"./chunk-TM2HDKXM.js";import{a as q,c as J}from"./chunk-CFXUNVJK.js";import"./chunk-FGO42ZG2.js";import"./chunk-3Y4LMQML.js";import"./chunk-DJTN4GYA.js";import"./chunk-23TWQPPQ.js";import{b as j}from"./chunk-JKMEHAH5.js";import"./chunk-V54JTQLS.js";import"./chunk-6O4B2CAN.js";import"./chunk-5ZOYBEMT.js";import"./chunk-BDCDICQU.js";import"./chunk-2O5SUFIQ.js";import"./chunk-7BXYDLTI.js";import"./chunk-OIWJWJSI.js";import"./chunk-W2AAURR7.js";import{i as W}from"./chunk-ANERGMUT.js";import"./chunk-VHRE3OBS.js";import"./chunk-EMVUJ6AZ.js";import"./chunk-GQTHQBQN.js";import"./chunk-TM5HA2G4.js";import"./chunk-6KA4HRIN.js";import"./chunk-OFM3SIJK.js";import"./chunk-VKCYPCCS.js";import{a as X}from"./chunk-AHRP24OT.js";import"./chunk-RZ3M7425.js";import"./chunk-6Z6F3Q7D.js";import"./chunk-I7DWJWWF.js";import"./chunk-3YT4YNQQ.js";import"./chunk-ELUBTRHC.js";import"./chunk-4FE4N5UK.js";import"./chunk-LZGT4ZB7.js";import"./chunk-4FGMGV3U.js";import"./chunk-USTF6DDC.js";import"./chunk-PUPM4MZD.js";import"./chunk-7WONYHP4.js";import"./chunk-OSXJDWZI.js";import"./chunk-DZ7AN7HO.js";import"./chunk-PPX736H2.js";import{a as V}from"./chunk-BK3VNX6V.js";import"./chunk-AOQWWMCH.js";import{a as F}from"./chunk-K2BYH3VF.js";import"./chunk-DQRIFTCF.js";import"./chunk-B3FHSLM7.js";import{a as B}from"./chunk-MNT7DGR3.js";import"./chunk-AYKVWSTT.js";import{a as m}from"./chunk-ATPCYDS5.js";import{j as z}from"./chunk-42AUVTQC.js";import"./chunk-DMP66EQM.js";import{e as O,f as H}from"./chunk-MEM4DQJ4.js";import"./chunk-3MT5LLCQ.js";import"./chunk-UNMFZOKQ.js";import"./chunk-DRJJZVMI.js";import"./chunk-7CWF7ZYV.js";import"./chunk-ITCHUIOU.js";import"./chunk-MXYXOR7S.js";import"./chunk-KXDV2O2W.js";import"./chunk-AJYWMLKZ.js";import"./chunk-FUZDFAT5.js";import{d as Y}from"./chunk-BSDFR7RS.js";import"./chunk-4WZ267LN.js";import"./chunk-CPRHIEMA.js";import{$b as u,Ga as A,Lc as M,Mc as x,Qb as P,Sb as w,Ub as U,Xb as I,Yb as L,Zb as n,_a as N,_b as c,ac as s,db as a,ea as i,ja as R,jc as $,ka as T,kd as G,nd as l,pd as k,q as D,uc as f,wc as b,xb as p}from"./chunk-62XNKKC5.js";import{a as E,b as v}from"./chunk-TZYMY7YO.js";var be=(o,e)=>e.code;function he(o,e){if(o&1&&s(0,"a",8),o&2){let r=e.$implicit;n("code",r.code)("href",r.href,N),P("aria-label",r.code);}}function Se(o,e){if(o&1){let r=$();c(0,"app-currency-tabs-scroller",6),f("tabSelect",function(S){R(r);let g=b();return T(g.onTabSelect(S));}),u(),c(1,"div",7),I(2,he,1,3,"a",8,be),u();}
1if(o&2){let r=b();n("tabs",r.otherTabs())("selected",r.selectedCurrency()),a(2),L(r.otherTabs());}}var Ee="/assets/icons/currency/currency-icons/",_=class o{sectionPath=j();store=i(C);localeId=i(G);urlService=i(X);window=i(V);selectedCurrency=this.store.selectedCurrency;nameLabel="\u0412\u0430\u043B\u044E\u0442\u0430";title=l(()=>{let e=d[this.selectedCurrency()],r=y[e];return"\u0421\u0435\u0440\u0435\u0434\u043D\u0456\u0439 \u043A\u0443\u0440\u0441 "+r+"";});columns=[{key:"buy",label:"\u041A\u0443\u043F\u0456\u0432\u043B\u044F",align:"right",desktopWidth:"180px"},{key:"sell",label:"\u041F\u0440\u043E\u0434\u0430\u0436",align:"right",desktopWidth:"180px"},{key:"nbu",label:"\u041D\u0411\u0423",align:"right",desktopWidth:"180px",mobileVisible:!1}];selectedDate=k(()=>{let e=this.store.summaryDate();if(e)return h(e);let r=this.store.actualDate();return r?h(r):new Date();});today=new Date();onDateChange(e){if(!e){this.store.summaryDate.set(null);return;}this.selectedDate.set(e),this.store.summaryDate.set(W(e,"yyyy-MM-dd"));}rows=l(()=>{let e=this.selectedCurrency(),r=this.store.rates().find(t=>t.currency.code===e);return r?[this.toRow(r)]:[];});otherTabs=l(()=>ee.filter(e=>e.code!==this.selectedCurrency()).map(e=>v(E({},e),{href:this.urlService.buildFullUrl(this.sectionPath(m.CURRENCY.children.DETAIL.fullPath(d[e.code])))})));onTabSelect(e){e!==this.selectedCurrency()&&(this.window.location.href=this.urlService.buildFullUrl(this.sectionPath(m.CURRENCY.children.DETAIL.fullPath(d[e]))));}toRow(e){let r=d[e.currency.code],t=r?Z[r]:e.currency.name;return{id:e.currency.code,name:t,code:e.currency.code,subtitle:t,flagUrl:`${Ee}${e.currency.code.toLowerCase()}.svg`,cells:{buy:this.toCell(e.bankAverage?.buy??null),sell:this.toCell(e.bankAverage?.sell??null),nbu:this.toCell(e.nbu)}};}toCell(e){if(!e)return{display:"\u2014",value:null};let r=Math.abs(e.delta)<.001;return{display:Y(e.value,this.localeId,"1.2-2"),value:e.value,delta:{display:r?"0.00":`${e.delta>0?"+":""}${e.delta.toFixed(2)}`,direction:r?"flat":e.delta>0?"up":"down"}};}static ɵfac=function(r){return new(r||o)();};static ɵcmp=p({type:o,selectors:[["section","app-currency-detail-summary",""]],hostAttrs:[1,"block","rounded-3xl","border-2","border-surface-community-raised","bg-surface-page","px-3","py-6","md:p-8"],decls:8,vars:8,consts:[[1,"flex","flex-wrap","items-center","justify-between","gap-3","md:gap-5"],[1,"flex","items-center","gap-3","md:gap-4"],["svgPath","/assets/icons/currency/sections/exchange-rate.png",1,"border-border-subtle","bg-surface-page","shadow-flat-round-4-4","size-[52px]","shrink-0","overflow-hidden","rounded-xl","border",3,"fill"],[1,"text-h4","text-text-emphasis","md:text-h3"],[1,"w-full","shrink-0","md:w-auto","md:min-w-[220px]",3,"valueChange","value","max"],["app-table","","variant","split",1,"mt-6",3,"columns","rows","nameLabel"],[1,"mt-5","md:hidden",3,"tabSelect","tabs","selected"],[1,"mt-5","hidden","flex-wrap","gap-2","md:flex"],["app-currency-tab","",3,"code","href"]],template:function(r,t){r&1&&(c(0,"header",0)(1,"div",1),s(2,"app-icon",2),c(3,"h2",3),M(4),u()(),c(5,"app-calendar-input",4),f("valueChange",function(g){return t.onDateChange(g);}),u()(),s(6,"section",5),w(7,Se,4,2)),r&2&&(a(2),n("fill",!1),a(2),x(t.title()),a(),n("value",t.selectedDate())("max",t.today),a(),n("columns",t.columns)("rows",t.rows())("nameLabel",t.nameLabel),a(),U(t.otherTabs().length?7:-1));},dependencies:[B,ce,ue,se,de],encapsulation:2});};var _e=class o{route=i(z);store=i(C);currencyService=i(J);locale=i(F);seoLang=q[this.locale];currencyPageView=i(re);routeSlug=O(this.route.paramMap.pipe(D(e=>e.get("code"))),{initialValue:null});hasChartState=le();seoResponse=H({params:()=>this.routeSlug()??void 0,stream:({params:e})=>this.currencyService.getSeoByCode(e,this.seoLang)});constructor(){ie(),A(()=>{let e=this.routeSlug();e&&this.store.selectedCurrency.set(Q[e]);}),K(()=>this.seoResponse.hasValue()?te({response:this.seoResponse.value(),locale:this.locale,hasChartState:this.hasChartState()}):null);}currencyGenitive=l(()=>{let e=d[this.store.selectedCurrency()];return y[e];});pageTitle=l(()=>{let e=this.currencyGenitive();return"\u041A\u0443\u0440\u0441 "+e+" \u0434\u043E \u0433\u0440\u0438\u0432\u043D\u0456";});pageSubtitle=l(()=>{let e=this.currencyGenitive();return"\u0414\u0438\u043D\u0430\u043C\u0456\u043A\u0430 \u043A\u0443\u0440\u0441\u0443 "+e+" \u0437\u0430 \u0434\u043E\u0431\u0443.";});chartTitle=l(()=>{let e=this.currencyGenitive();return"\u0414\u0438\u043D\u0430\u043C\u0456\u043A\u0430 \u0441\u0435\u0440\u0435\u0434\u043D\u044C\u043E\u0433\u043E \u043A\u0443\u0440\u0441\u0443 "+e+" \u0432 \u0431\u0430\u043D\u043A\u0430\u0445";});bankTitle=l(()=>{let e=this.currencyGenitive();return"\u041A\u0443\u0440\u0441 "+e+" \u0432 \u0431\u0430\u043D\u043A\u0430\u0445 \u0423\u043A\u0440\u0430\u0457\u043D\u0438";});breadcrumbs=l(()=>{let e=this.currencyGenitive();return[{label:"24 \u043A\u0430\u043D\u0430\u043B",href:m.HOME.fullPath()},{label:"\u041A\u0443\u0440\u0441 \u0432\u0430\u043B\u044E\u0442",href:m.CURRENCY.fullPath()},{label:"\u041A\u0443\u0440\u0441 "+e+""}];});static ɵfac=function(r){return new(r||o)();};static ɵcmp=p({type:o,selectors:[["main","app-currency-detail-page",""]],hostAttrs:[1,"block"],decls:9,vars:9,consts:()=>{let e;e="\u0414\u0430\u043D\u0456 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043E:";let r;return r="\u041D\u043E\u0432\u0438\u043D\u0438 \u0434\u043E \u0442\u0435\u043C\u0438",[["app-breadcrumbs","",1,"container-narrow","mx-auto","px-4","md:px-8",3,"items"],[1,"container-narrow","mx-auto","flex","flex-col","gap-8","px-4","pt-3","pb-6","md:gap-10","md:px-8","md:pt-4","md:pb-8"],["app-page-header","","updatedLabel",e,3,"date","title","subtitle"],["app-currency-detail-summary",""],["app-currency-price-history","",3,"title"],["app-currency-converter","",3,"showPresets","defaultCurrency"],["app-currency-bank-prices","",3,"title"],["app-currency-seo-text",""],["app-tag-news-slider","","title",r,"tagUrl","/kurs-valyut_tag7746/",3,"tagId"]];},template:function(r,t){r&1&&(s(0,"nav",0),c(1,"article",1),s(2,"header",2)(3,"section",3)(4,"section",4)(5,"section",5)(6,"section",6)(7,"div",7)(8,"section",8),u()),r&2&&(n("items",t.breadcrumbs()),a(2),n("date",t.store.lastUpdatedAt())("title",t.pageTitle())("subtitle",t.pageSubtitle()),a(2),n("title",t.chartTitle()),a(),n("showPresets",!0)("defaultCurrency",t.store.selectedCurrency()),a(),n("title",t.bankTitle()),a(2),n("tagId",7746));},dependencies:[ae,oe,_,me,pe,ye,Ce,ne],encapsulation:2});};export{_e as CurrencyDetailPage};/**i18n:1dcbe1b7092b1fa298b939ec96d4cf7326fffb619823c16ad3588dfc0b984c94*/
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.