PageSourceSearch

https://www.apollo.lv/build-mm-v6/bundle-bbe9dd26286c372c4d63.js

js apollo.lv collected 2026-10-02 07:29:31 UTC 7,819 bytes, 11 lines download raw bytes

1(function(){try{var l=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},d=new l.Error().stack;d&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[d]="28e0c503-ff9f-4820-9ebf-115fa21a48f7",l._sentryDebugIdIdentifier="sentry-dbid-28e0c503-ff9f-4820-9ebf-115fa21a48f7")}catch(r){}})(),(self.webpackChunkmysterious_monoceros=self.webpackChunkmysterious_monoceros||[]).push([[912],{70912:(l,d,r)=>{r.r(d),r.d(d,{default:()=>m});var p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"digital-paper"},[t("div",{staticClass:"digital-paper__nav"},[t("div",{staticClass:"root",class:{flex:!e.isPhone}},[t("div",{staticClass:"digital-paper__dropdown"},[t("div",{staticClass:"digital-paper__dropdown--title"},[e._v("Vali v\xE4ljanne")]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedPublication,expression:"selectedPublication"}],staticClass:"digital-paper__dropdown--select",on:{change:[function(i){var s=Array.prototype.filter.call(i.target.options,function(n){return n.selected}).map(function(n){var o="_value"in n?n._value:n.value;return o});e.selectedPublication=i.target.multiple?s:s[0]},function(i){return e.changePublication(i)}]}},e._l(e.publications,function(i){return t("option",{domProps:{value:i.sectionId}},[e._v(e._s(i.title))])}),0)]),e._v(" "),t("section",{staticClass:"flex flex--align-items-center",attrs:{role:"presentation",tabindex:"0","aria-label":e.__("Date selection")}},[e.isPhone?e._e():t("div",{staticClass:"digital-paper__button digital-paper__button--prev",class:{"digital-paper__button--disabled":e.isAtBeginning},attrs:{role:"button",tabindex:"0","aria-disabled":e.isAtBeginning},on:{click:function(i){return e.changeDirection("prev")},keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.changeDirection("prev")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",width:"24px",height:"24px"}},[t("path",{attrs:{fill:"#fff",d:"M8.7,2l10,10l-10,10l-1.4-1.4l8.6-8.6L7.3,3.4L8.7,2z"}})])]),e._v(" "),t("swiper-container",{ref:"digiPdfSwiper",staticClass:"digital-paper__nav--dates",attrs:{"aria-label":e.__("Single date select"),"slides-per-view":e.isPhone?"auto":10,a11y:e.swiperA11y},on:{slidechange:e.changeSlide}},e._l(e.data,function(i,s,n){return t("swiper-slide",{key:"digital-paper-"+s,staticClass:"digital-paper__nav--item flex flex--align-items-center flex--justify-content-center flex--direction-column",class:{"digital-paper__nav--item-active":s===e.date},attrs:{role:"presentation","data-id":s},on:{click:function(o){return e.changeDate(s)},keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.changeDate(s)}}},[t("div",{attrs:{role:"radio",tabindex:"0","aria-checked":s===e.date,"aria-posinset":n+1,"aria-setsize":e.data.length,"aria-label":`${e.moment(s).format("D")} ${e.moment(s).format("MMMM")}, ${n+1} out of ${Object.keys(e.data).length}`}},[t("div",{staticClass:"date-number"},[e._v(`
2                `+e._s(e.moment(s).format("D"))+`
3              `)]),e._v(" "),t("div",{staticClass:"date-text"},[e._v(e._s(e.moment(s).format("MMMM")))])])])}),1),e._v(" "),e.isPhone?e._e():t("div",{staticClass:"digital-paper__button digital-paper__button--next",class:{"digital-paper__button--disabled":e.isAtEnd},attrs:{role:"button",tabindex:"0","aria-disabled":e.isAtEnd},on:{click:function(i){return e.changeDirection("next")},keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.changeDirection("next")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",width:"24px",height:"24px"}},[t("path",{attrs:{fill:"#fff",d:"M8.7,2l10,10l-10,10l-1.4-1.4l8.6-8.6L7.3,3.4L8.7,2z"}})])])],1)])]),e._v(" "),e.user&&e.pianoAlert?t("div",{staticClass:"pn-refresh"}):e._e(),e._v(" "),e.sortedData?t("div",{staticClass:"root digital-paper__data"},e._l(e.sortedData,function(i){return t("div",{staticClass:"digital-paper__item",class:{"digital-paper__item--locked":!i.readable},style:{backgroundImage:"url('"+i.links.cover+"')"},attrs:{role:"presentation",tabindex:"0","aria-label":`${e.__("Digital paper")} ${i.title}`}},[t("div",{staticClass:"digital-paper__item--content"},[i.readable?e._e():t("div",{staticClass:"digital-paper__item--locked-icon"},[t("svg",{attrs:{viewBox:"0 0 32 32"}}
3,[t("path",{attrs:{fill:"currentColor",d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"}})])]),e._v(" "),i.title?t("div",{staticClass:"digital-paper__item--title"},[e._v(`
4          `+e._s(i.title)+`
5        `)]):e._e(),e._v(" "),t("div",{staticClass:"digital-paper__item--date"},[e._v(`
6          `+e._s(e.moment(e.date).format("D. MMMM YYYY"))+`
7        `)]),e._v(" "),t("div",{staticClass:"space space--s"}),e._v(" "),t("div",{staticClass:"button-m button-m--m button-m--full",class:{"button-m--premium":!i.readable,"button-m--mono":i.readable},attrs:{role:"button",tabindex:"0"},on:{click:function(s){return e.fetchPdf(i)},keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.fetchPdf(i)}}},[e._v(`
8          `+e._s(i&&i.readable?"Loe lehte":"Telli")+`
9        `)])])])}),0):e._e()])},u=[];p._withStripped=!0;var f=r(39240),c=r(91471),h={name:"digital-paper",data(){return{activePosition:0,pianoAlert:!1,selectedPublication:0,pdfSwiper:null,isAtBeginning:!1,isAtEnd:!0,date:"",sortedData:[],orderLinks:{556:"tellimine.postimees.ee",384:"tellimine.postimees.ee/tartu",383:"tellimine.postimees.ee/parnu",381:"tellimine.postimees.ee/jarva",380:"tellimine.postimees.ee/lounaeesti",246:"tellimine.postimees.ee/sakala",382:"tellimine.postimees.ee/virumaa"},swiperA11y:{enabled:!0}}},props:{sectionId:Number,data:Object,publications:Array},created(){this.sectionId&&(this.selectedPublication=this.sectionId),this.date=Object.keys(this.data).pop(),(0,c.getCookie)("__dp-date")?this.date=(0,c.getCookie)("__dp-date"):this.rememberSelectedElement(),this.sortedData=this.getSorted(this.data),this.getActiveElement()},mounted(){(0,f.kz)(),this.pdfSwiper=this.$refs&&this.$refs.digiPdfSwiper.swiper,this.activePosition?this.pdfSwiper.slideTo(this.activePosition):(this.isAtBeginning=!0,this.isAtEnd=!1)},computed:{user(){return this.$store.state.user.data?this.$store.state.user.data.user:null}},methods:{changePublication(a){let e=new Date(null);(0,c.setCookie)({name:"__dp-date",value:"false",expires:e}),window.location.href=a.target.value!=="0"?this.internalURL(this.currentSection.domain+"/publication/"+a.target.value):this.internalURL(this.currentSection.domain)},changeDirection(a){a==="prev"?this.pdfSwiper.slidePrev():this.pdfSwiper.slideNext()},changeSlide(){this.isAtBeginning=this.pdfSwiper.isBeginning,this.isAtEnd=this.pdfSwiper.isEnd},changeDate(a){this.date=a,this.sortedData=this.getSorted(this.data),this.rememberSelectedElement()},getActiveElement(){Object.entries(this.data).forEach((a,e)=>{a[0]===this.date&&(this.activePosition=e)})},getSorted(a){let e=a[this.date];return e?(e.forEach(t=>{t.title=this.publications.find(i=>i.sectionId===t.sectionID).title}),this.pianoAlert=!e.filter(t=>t.readable).length,this.selectedPublication&&(e=e.filter(t=>t.sectionID===this.selectedPublication)),e):!1},fetchPdf(a){if(!a.readable)return window.location.href=this.orderLinks[a.sectionID]?this.internalURL(this.orderLinks[a.sectionID]):this.internalURL("tellimine.postimees.ee"),!1;window.location.href=a.links&&a.links.download},rememberSelectedElement(){let a=new Date;a.setTime(a.getTime()+1*3600*1e3),(0,c.setCookie)({name:"__dp-date",value:this.date,expires:a,serverSide:!1})}}},_=h,v=r(14486),g=(0,v.A)(_,p,u,!1,null,null,null),m=g.exports}}]);
10
11//# sourceMappingURL=bundle-bbe9dd26286c372c4d63.js.map

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.