1"use strict";(self.webpackChunktv24app=self.webpackChunktv24app||[]).push([["src_app_pages_exchange-page_exchange-page_module_ts"],{48229:(m,P,o)=>{o.r(P),o.d(P,{ExchangePageModule:()=>I});var _=o(96814),l=o(64190),e=o(65879),d=o(39536),u=o(73137),r=o(91239),g=o(46703),h=o(51927),G=o(21311),N=o(31579),S=o(39497),T=o(22432),y=o(32286),v=o(26679),R=o(57455);function Z(i,C){if(1&i&&(e.TgZ(0,"div",7)(1,"div",38),e._uU(2),e.qZA(),e.TgZ(3,"div",39),e._uU(4),e.qZA(),e._UZ(5,"div"),e.qZA()),2&i){const t=C.$implicit;e.xp6(2),e.Oqu(t.currency),e.xp6(2),e.Oqu(t.purchaseRate),e.xp6(1),e.Gre("dynamics ",t.purchaseDirection,"")}}function X(i,C){if(1&i&&(e.TgZ(0,"div",7)(1,"div",38),e._uU(2),e.qZA(),e.TgZ(3,"div",39),e._uU(4),e.qZA(),e._UZ(5,"div"),e.qZA()),2&i){const t=C.$implicit;e.xp6(2),e.Oqu(t.currency),e.xp6(2),e.Oqu(t.saleRate),e.xp6(1),e.Gre("dynamics ",t.purchaseDirection,"")}}function $(i,C){if(1&i&&(e.ynx(0),e.TgZ(1,"li")(2,"div",40),e._UZ(3,"app-image",41),e.qZA(),e.TgZ(4,"div",42)(5,"h3",43)(6,"a",8),e.ALo(7,"newsUrl"),e._uU(8),e.qZA()(),e.TgZ(9,"div",44),e._uU(10),e.qZA(),e.TgZ(11,"footer"),e._UZ(12,"app-time-date",45),e.qZA()()(),e.BQk()),2&i){const t=C.$implicit;e.xp6(3),e.Q6J("entity",t),e.xp6(3),e.s9C("href",e.lcZ(7,6,t),e.LSH),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.annotation),e.xp6(2),e.Q6J("date",t.modifiedDate)("shortMode",!0)}}const b=[{path:"",component:(()=>{class i{constructor(t,a,n,c,E,p,A,M){this.urlValidationService=t,this.newsService=a,this.exchangeRateService=n,this.pd=c,this.seoService=E,this.locale=p,this.ngZone=A,this.cdr=M,this.constants=d.g,this.period="month",this.currency="USD"}ngOnInit(){this.urlValidationService.validateCommonUrlsDomain(),this.newsService.getNewsForTag(this.constants.EXCHANGE_RATE_TAG_ID,0,20,null,!1,!1).subscribe(t=>{this.newsList=t,this.cdr.markForCheck()}),this.exchangeRateService.getTodayRates().subscribe(t=>{this.todayRate=t,this.cdr.markForCheck()}),this.pd.isBrowser&&this.ngZone.runOutsideAngular(()=>{(0,u.Z)("https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.0.2/chart.min.js").then(()=>{this.loadChartData(this.period,this.currency),this.cdr.markForCheck()})}),this.initPageData()}loadChartData(t,a){this.period=t,this.currency=a,this.exchangeRateService.getRateByRange(t,a).subscribe(n=>{this.rates=n;const c=document.getElementById("exchangeRate").getContext("2d");typeof this.chart<"u"&&this.chart.destroy(),this.chart=new Chart(c,this.rates),this.cdr.markForCheck()})}initPageData(){const t="\u041A\u0443\u0440\u0441 \u0432\u0430\u043B\u044E\u0442 \u0432 \u0423\u043A\u0440\u0430\u0457\u043D\u0456 \u043D\u0430 \u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456 - \u043A\u0443\u0440\u0441 \u0432\u0430\u043B\u044E\u0442 \u043E\u043D\u043B\u0430\u0439\u043D - 24 \u041A\u0430\u043D\u0430\u043B",a="\u0414\u0456\u0437\u043D\u0430\u0439\u0442\u0435\u0441\u044C \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u0438\u0439 \u043A\u0443\u0440\u0441 \u0432\u0430\u043B\u044E\u0442 \u0432 \u0423\u043A\u0440\u0430\u0457\u043D\u0456 \u043D\u0430 \u0441\u044C\u043E\u0433\u043E\u0434\u043D\u0456\u0448\u043D\u0456\u0439 \u0434\u0435\u043D\u044C - \u0442\u0430\u0431\u043B\u0438\u0446\u044F \u0456 \u043D\u043E\u0432\u0438\u043D\u0438 \u043A\u0443\u0440\u0441\u0456\u0432 \u0432\u0430\u043B\u044E\u0442 \u043D\u0430 \u0441\u0430\u0439\u0442\u0456 24 \u041A\u0430\u043D\u0430\u043B\u0443";this.seoService.initCommonPageData(("ua"!==this.locale?`/${this.locale}`:"")+"/exchange_rate",t,a)}static{this.\u0275fac=function(a){return new(a||i)(e.Y36(r.J),e.Y36(g.Y),e.Y36(h.U),e.Y36(G.n),e.Y36(N.v),e.Y36(e.soG),e.Y36(e.R0b),e.Y36(e.sBO))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["app-exchange-page"]],decls:63,vars:28,consts:function(){let t,a,n,c,E,p,A,M,x,O,f;return t=" \u041A\u0443\u0440\u0441\u0438 \u0432\u0430\u043B\u044E\u0442 ",a=" \u041A\u0443\u043F\u0456\u0432\u043B\u044F ",n=" \u041F\u0440\u043E\u0434\u0430\u0436 ",c="\u0414\u0438\u043D\u0430\u043C\u0456\u043A\u0430 \u043A\u0443\u0440\u0441\u0456\u0432",E="\u0422\u0438\u0436\u0434\u0435\u043D\u044C",p="\u041C\u0456\u0441\u044F\u0446\u044C",A="3 \u043C\u0456\u0441\u044F\u0446\u0456",M="6 \u043C\u0456\u0441\u044F\u0446\u0456\u0432",x="\u0420\u0456\u043A",O="\u041F\u0440\u043E\u0434\u0430\u0436",f="\u041A\u0443\u043F\u0456\u0432\u043B\u044F",[[1,"grid-container"],[1,"grid-x","grid-padding-x"],[1,"large-8","medium-12","cell"],t,[1,"exchange-rate"],[1,"grid-x","grid-padding-x","title"],[1,"medium-3","cell"],[1,"medium-3","cell","currency-name"],[3,"href"],[1,"grid-x","grid-padding-x","buy"],[1,"medium-3","cell","text"],a,["class","medium-3 cell currency-name",4,"ngFor","ngForOf"],[1,"grid-x","grid-padding-x","sell"],n,[1,"exchange-chart"],[1,"top"],[1,"title"],c,[1,"exchange-period","clear-list"],[3,"click"],E,p,A,M,x,[1,"bottom"],[1,"exchange-operation","noselect","clear-list"],[1,"sale"],O,[1,"buy"],f,[1,"exchange-currency","noselect","clear-list"],["id","exchangeRate"],[1,"blog-author-list"],[1,"clear-list"],[4,"ngFor","ngForOf"],[1,"large-4","medium-12","cell"],[1,"currency"],[1,"rate"],[1,"img-wrapper"],["w","150","h","85","context","exchange-page",3,"entity"],[1,"txt"],[1,"news-title"],[1,"desc"],[3,"date","shortMode"]]},template:function(a,n){1&a&&(e.TgZ(0,"main",0)(1,"div",1)(2,"div",2)(3,"h1"),e.SDv(4,3),e.qZA(),e.TgZ(5,"div",4)(6,"div",5),e._UZ(7,"div",6),e.TgZ(8,"div",7)(9,"a",8),e.ALo(10,"addBaseDomain"),e._uU(11,"usd"),e.qZA()(),e.TgZ(12,"div",7)(13,"a",8),e.ALo(14,"addBaseDomain"),e._uU(15,"eur"),e.qZA()(),e.TgZ(16,"div",7)(17,"a",8),e.ALo(18,"addBaseDomain"),e._uU(19,"rub"),e.qZA()()(),e.TgZ(20,"div",9)(21,"div",10),e.SDv(22,11),e.qZA(),e.YNc(23,Z,6,5,"div",12),e.qZA(),e.TgZ(24,"div",13)(25,"div",10),e.SDv(26,14),e.qZA(),e.YNc(27,X,6,5,"div",12),e.qZA()(),e.TgZ(28,"div",15)(29,"div",16)(30,"div",17),e.SDv(31,18),e.qZA(),e.TgZ(32,"ul",19)(33,"li",20),e.NdJ("click",function(){return n.loadChartData("week",n.currency)}),e.SDv(34,21),e.qZA(),e.TgZ(35,"li",20),e.NdJ("click",function(){return n.loadChartData("month",n.currency)}),e.SDv(36,22),e.qZA(),e.TgZ(37,"li",20),e.NdJ("click",function(){return n.loadChartData("three_month",n.currency)}),e.SDv(38,23),e.qZA(),e.TgZ(39,"li",20),e.NdJ("click",function(){return n.loadChartData("six_month",n.currency)}),e.SDv(40,24),e.qZA(),e.TgZ(41,"li",20),e.NdJ("click",function(){return n.loadChartData("year",n.currency)}),e.SDv(42,25),e.qZA()()(),e.TgZ(43,"div",26)(44,"ul",27)(45,"li",28),e.SDv(46,29),e.qZA(),e.TgZ(47,"li",30),e.SDv(48,31),e.qZA()(),e.TgZ(49,"ul",32)(50,"li",20),e.NdJ("click",function(){return n.loadChartData(n.period,"USD")}),e._uU(51,"USD"),e.qZA(),e.TgZ(52,"li",20),e.NdJ("click",function(){return n.loadChartData(n.period,"EUR")}),e._uU(53,"EUR"),e.qZA(),e.TgZ(54,"li",20),e.NdJ("click",function(){return n.loadChartData(n.period,"RUB")}),e._uU(55,"RUB"),e.qZA()()(),e.TgZ(56,"div"),e._UZ(57,"canvas",33),e.qZA()(),e.TgZ(58,"div",34)(59,"ul",35),e.YNc(60,$,13,8,"ng-container",36),e.qZA()()(),e.TgZ(61,"aside",37),e._UZ(62,"app-tag-right-column"),e.qZA()()()),2&a&&(e.xp6(9),e.s9C("href",e.lcZ(10,22,"exchange_rate_usd"),e.LSH),e.xp6(4),e.s9C("href",e.lcZ(14,24,"exchange_rate_eur"),e.LSH),e.xp6(4),e.s9C("href",e.lcZ(18,26,"exchange_rate_rub"),e.LSH),e.xp6(6),e.Q6J("ngForOf",n.todayRate),e.xp6(4),e.Q6J("ngForOf",n.todayRate),e.xp6(6),e.ekj("active","week"===n.period),e.xp6(2),e.ekj("active","month"===n.period),e.xp6(2),e.ekj("active","three_month"===n.period),e.xp6(2),e.ekj("active","six_month"===n.period),e.xp6(2),e.ekj("active","year"===n.period),e.xp6(9),e.ekj("active","USD"===n.currency),e.xp6(2),e.ekj("active","EUR"===n.currency),e.xp6(2),e.ekj("active","RUB"===n.currency),e.xp6(6),e.Q6J("ngForOf",n.newsList))},dependencies:[_.sg,S.F,T.c,y.I,v.h,R.g],styles:['@media screen and (max-width: 1023px){.large-4.medium-12.cell[_ngcontent-%COMP%]{display:none}}h1[_ngcontent-%COMP%]{font-size:40px;line-height:45px;font-weight:600;letter-spacing:-1px;margin-bottom:25px}@media screen and (max-width: 640px){h1[_ngcontent-%COMP%]{font-size:28px;line-height:32px}}
1.exchange-rate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8;line-height:71px;text-align:center}.exchange-rate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-top:solid 1px #e8e8e8}@media screen and (max-width: 480px){.exchange-rate[_ngcontent-%COMP%]{margin-bottom:30px}}.currency-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:24px;line-height:24px;border-bottom:1px solid #0087c3;color:#0087c3;text-transform:uppercase}.text[_ngcontent-%COMP%]{font-size:24px;color:#7f9aa6;text-transform:lowercase}.buy[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%], .sell[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%]{display:none}.buy[_ngcontent-%COMP%] .currency-name[_ngcontent-%COMP%], .sell[_ngcontent-%COMP%] .currency-name[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.buy[_ngcontent-%COMP%] .rate[_ngcontent-%COMP%], .sell[_ngcontent-%COMP%] .rate[_ngcontent-%COMP%]{line-height:71px;font-size:24px;color:#5e767f}.dynamics[_ngcontent-%COMP%]{width:14px;height:24px;margin-left:12px;background:url(/assets/img/top_down_arrow.png) no-repeat}.dynamics.decrease[_ngcontent-%COMP%]{background-position:center -24px}.dynamics.increase[_ngcontent-%COMP%]{background-position:center 0}.exchange-chart[_ngcontent-%COMP%]{margin:50px 0}@media screen and (max-width: 480px){.exchange-chart[_ngcontent-%COMP%]{display:none}}.top[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:30px}.top[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:600;font-size:19px;text-transform:none;margin-right:15px}.top[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex}.top[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:16px;transition:.3s;color:gray;line-height:normal;cursor:pointer}.top[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-left:13px}.top[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{font-weight:600;color:#8cb5c9}.top[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{color:#8cb5c9}@media screen and (max-width: 640px){.top[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.top[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:10px}}.bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.bottom[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;align-items:center}.bottom[_ngcontent-%COMP%] .exchange-operation[_ngcontent-%COMP%]{padding-left:40px}.bottom[_ngcontent-%COMP%] .exchange-operation[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:30px;padding-left:30px;position:relative;color:#666;font-size:14px;line-height:17px}.bottom[_ngcontent-%COMP%] .exchange-operation[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:after{position:absolute;width:20px;height:20px;left:0;top:-2px;border:1px solid #e6e6e6;content:""}.bottom[_ngcontent-%COMP%] .exchange-operation[_ngcontent-%COMP%] li.sale[_ngcontent-%COMP%]:after{background-color:#dcdcdc33}.bottom[_ngcontent-%COMP%] .exchange-operation[_ngcontent-%COMP%] li.buy[_ngcontent-%COMP%]:after{background-color:#97bbcd33}.bottom[_ngcontent-%COMP%] .exchange-currency[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0 7px;margin-left:7px;cursor:pointer;transition:.3s;font-size:14px;line-height:1.5;border-radius:16px;background-color:#eef4f7;color:#666}.bottom[_ngcontent-%COMP%] .exchange-currency[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%], .bottom[_ngcontent-%COMP%] .exchange-currency[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#8cb5c9;color:#fff}@media screen and (max-width: 768px){h1[_ngcontent-%COMP%]{font-size:35px;line-height:40px}}@media screen and (max-width: 767px){.exchange-rate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-bottom:none;border-top:none}.exchange-rate[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:none}.exchange-rate[_ngcontent-%COMP%] .buy[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}.buy[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%], .sell[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%]{display:block;font-size:24px;color:#7f9aa6;margin-right:5px;text-transform:uppercase}.text[_ngcontent-%COMP%]{font-size:37px;font-weight:600;color:#5e767f;display:flex;text-transform:none}}.blog-author-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;padding:8px 0;position:relative}.blog-author-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:20px}.blog-author-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0}.blog-author-list[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;height:100px}.blog-author-list[_ngcontent-%COMP%] .news-title[_ngcontent-%COMP%]{font-size:20px;line-height:24px;font-weight:600;margin-bottom:0}.blog-author-list[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{color:#666;font-size:14px;line-height:17px}.blog-author-list[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{margin-left:25px}@media screen and (max-width: 640px){.blog-author-list[_ngcontent-%COMP%] .news-title[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}@media screen and (max-width: 550px){.blog-author-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:20px}}@media screen and (max-width: 480px){.blog-author-list[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{width:140px;min-width:140px;height:78px}.blog-author-list[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{display:none}.blog-author-list[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{margin-left:15px}.blog-author-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:10px}}'],changeDetection:0})}}return i})()}];let D=(()=>
1{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=e.oAB({type:i})}static{this.\u0275inj=e.cJS({imports:[l.Bz.forChild(b),l.Bz]})}}return i})();var H=o(5191),L=o(75282),w=o(36067);let I=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=e.oAB({type:i})}static{this.\u0275inj=e.cJS({imports:[_.ez,D,L.M,H.$,w.l]})}}return i})()},26679:(m,P,o)=>{o.d(P,{h:()=>e});var _=o(65879),l=o(20553);let e=(()=>{class d{constructor(r){this.locale=r,this.LOCALE_PREFIXES={ru:"/ru",en:"/en"}}transform(r){"/"!==r.charAt(0)&&(r="/"+r);const g=this.LOCALE_PREFIXES[this.locale];return g&&!r.startsWith(g)&&(r=g+r),l.N.protocol+l.N.host+r}static{this.\u0275fac=function(g){return new(g||d)(_.Y36(_.soG,16))}}static{this.\u0275pipe=_.Yjl({name:"addBaseDomain",type:d,pure:!0,standalone:!0})}}return d})()},51927:(m,P,o)=>{o.d(P,{U:()=>d});var _=o(20553),l=o(65879),e=o(69862);let d=(()=>{class u{constructor(g){this.http=g}getRateByWeek(){return this.http.get(`${_.N.currencyApi}/api/v1/rates/summary/weekly`)}getRateByRange(g,h){return this.http.get(`${_.N.apiBase}/exchangeRate/rateByRange/?period=${g}¤cy=${h}`)}getTodayRates(){return this.http.get(`${_.N.apiBase}/exchangeRate/todayRates/`)}static{this.\u0275fac=function(h){return new(h||u)(l.LFG(e.eN))}}static{this.\u0275prov=l.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()}}]);
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.