PageSourceSearch

https://op.aranykornyp.hu/assets/ExchangeRateTableView-afe9314a.js

js aranykornyp.hu collected 2026-10-07 01:48:48 UTC 3,759 bytes, 1 lines download raw bytes

1import{_ as D,m as p,o as n,c as l,a as s,t as i,F as c,r as m}from"./index-4792febe.js";const b={name:"PublicExchangeRateArchiveTableView",props:["dateFrom","dateTo"],data(){return{columns:{penzpiaci:"Pénzpiaci (korábbi Postás Bázis-Céldátum)",csendelet:"Csendélet",klasszikus:"Klasszikus",egyensuly:"Egyensúly",lendulet:"Lendület",esgDinamikus:"ESG Dinamikus",postasX1:"Postás X.1 Generáció 2027",postasX2:"Postás X.2 Generáció 2037",postasY:"Postás Y Generáció 2047"},days:["V","H","K","Sz","Cs","P","Sz"],data:[],filteredColumns:null,monthDate:null,loading:!1,tableDateFrom:null,tableDateTo:null}},methods:{...p(["getStockRateGraphData"]),formatDateToYMD(t){const e=t.getFullYear(),o=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${e}-${o}-${r}`},async loadTableDate(){if(this.data=[],this.tableDateFrom&&this.tableDateTo){this.loading=!0;const t=await this.getStockRateGraphData({dateFrom:this.tableDateFrom,dateTo:this.tableDateTo,skipToken:!0});if(t&&t.length>0){this.data=t;const e=this.data.length;this.filteredColumns=this.columns;for(const o in this.columns)(!this.data[0].hasOwnProperty(o)||this.data[0][o]===0)&&(!this.data[e-1].hasOwnProperty(o)||this.data[e-1][o]===0)&&delete this.filteredColumns[o]}this.data.reverse(),this.loading=!1}}},computed:{tableCaption(){if(this.monthDate){const t=new Date(this.monthDate.split("-")[0],this.monthDate.split("-")[1]-1).toLocaleDateString("hu-HU",{month:"long"});return`${this.monthDate.split("-")[0]} ${t}i árfolyamok`}else return"Aktuális árfolyamok"}},watch:{dateFrom(t){this.tableDateFrom=t,this.loadTableDate()},dateTo(t){this.tableDateTo=t,this.loadTableDate()}},async created(){var t;if(this.monthDate=(t=this.$route.params)==null?void 0:t.monthDate,this.monthDate)try{const e=new Date(this.monthDate);if(isNaN(e.getTime()))throw new Error("Nem megfelelő dátum formátum.");const o=new Date;o.setDate(0);const r=new Date("2014-07-01");if(r.setHours(0,0,0,0),e>o)throw new Error("Dátum nem lehet az előző hónapnál későbbi.");if(e<r)throw new Error("Dátum nem lehet korábbi, mint 2014. július 1.");const[a,d]=this.monthDate.split("-");this.tableDateFrom=this.formatDateToYMD(new Date(a,d-1,1)),this.tableDateTo=this.formatDateToYMD(new Date(a,d,0)),document.title=this.tableCaption}catch(e){this.$toasthelper.createToast("error",e.message)}await this.loadTableDate()}},y={key:0,class:"text-center my-5"},_={key:1},f={class:"my-5 text-center"},g={class:"table-responsive"},k={class:"center-align table table-bordered table-condensed table-hover table-striped sticky-enabled tableheader-processed sticky-table"},w={class:"text-center"},T={style:{width:"32px"}},v={style:{width:"105px"}},x={class:"text-center"},F={href:"/public/arfolyamok/archivum",class:"mb-4"};function z(t,e,o,r,a,d){return a.loading?(n(),l("div",y,[...e[0]||(e[0]=[s("div",{class:"spinner-border",style:{width:"3rem",height:"3rem"},role:"status"},null,-1)])])):!a.data||a.data.length===0?(n(),l("div",_,[s("h3",f,i(a.monthDate?"A megadott időszakra nem található árfolyam":""),1)])):(n(),l(c,{key:2},[s("div",g,[s("table",k,[s("caption",null,i(d.tableCaption),1),s("thead",null,[s("tr",null,[e[1]||(e[1]=s("th",{colspan:"2"},null,-1)),(n(!0),l(c,null,m(a.filteredColumns,h=>(n(),l("th",w,i(h),1))),256))])]),s("tbody",null,[(n(!0),l(c,null,m(a.data,h=>(n(),l("tr",null,[s("td",T,i(a.days[new Date(h.erteknap).getDay()]),1),s("td",v,i(t.$formatters.getFormattedDate(h.erteknap)),1),(n(!0),l(c,null,m(a.filteredColumns,(C,u)=>(n(),l("td",x,i(h[u]),1))),256))]))),256))])])]),s("a",F,i(a.monthDate?"Másik hónap kiválasztása":"Korábbi árfolyamok (archívum)"),1)],64))}const E=D(b,[["render",z],["__scopeId","data-v-16e7a3c5"]]);export{E 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.