PageSourceSearch

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

js apollo.lv collected 2026-10-02 07:29:17 UTC 5,449 bytes, 5 lines download raw bytes

1(function(){try{var i=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="844be60a-5d78-43c9-accd-d5027a857ea5",i._sentryDebugIdIdentifier="sentry-dbid-844be60a-5d78-43c9-accd-d5027a857ea5")}catch(r){}})(),(self.webpackChunkmysterious_monoceros=self.webpackChunkmysterious_monoceros||[]).push([[196],{196:(i,s,r)=>{r.r(s),r.d(s,{default:()=>c});var d=function(){var t=this,n=t._self._c;return n("div",{staticClass:"entertainment-date__scroller"},[n(t.isPhone?"a":"div",{tag:"component",staticClass:"button-m button-m--m entertainment-date__btn",attrs:{href:t.isPhone?t.getUrl(t.moment(t.highlightDate).subtract(1,"days")):null,tabindex:"0",role:"button","aria-label":t.__("Previous")},on:{click:function(a){return t.loadDatesToBeginning()},keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.loadDatesToBeginning()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[n("path",{attrs:{d:"M14.9998 19.9201L8.47984 13.4001C7.70984 12.6301 7.70984 11.3701 8.47984 10.6001L14.9998 4.08008",stroke:"currentColor","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})])]),t._v(" "),n("div",{staticClass:"entertainment-date__scroller-dates"},t._l(t.dates,function(a){return n("a",{staticClass:"button-m button-m--m button-m--mono entertainment-date__btn entertainment-date__scroller-date",class:{"entertainment-date__scroller-date--selected":a.isToday},attrs:{href:t.getUrl(a.date),role:"button","aria-label":a.date.format("DD.")+" "+a.date.format("MMMM")}},[n("div",{staticStyle:{"font-weight":"700"}},[t._v(`
2        `+t._s(a.date.format(t.isPhone?"DD.MM":"DD."))+`
3      `)]),t._v(" "),t.isPhone?t._e():n("div",[t._v(t._s(a.date.format("MMM")))])])}),0),t._v(" "),n(t.isPhone&&!t.isAtEnd?"a":"div",{tag:"component",staticClass:"button-m button-m--m entertainment-date__btn entertainment-date__btn--fwd",class:{"button-m--disabled":t.isAtEnd},attrs:{href:t.isPhone&&!t.isAtEnd?t.getUrl(t.moment(t.highlightDate).add(1,"days")):null,tabindex:"0",role:"button","aria-label":t.__("Next")},on:{click:function(a){return t.loadDatesToEnd()},keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.loadDatesToEnd()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[n("path",{attrs:{d:"M14.9998 19.9201L8.47984 13.4001C7.70984 12.6301 7.70984 11.3701 8.47984 10.6001L14.9998 4.08008",stroke:"currentColor","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})])])],1)},o=[];d._withStripped=!0;var h={name:"entertainment-date-scroller",data(){return{dates:[],lowestDate:moment(this.minDate.year+"-"+this.minDate.month.toString().padStart(2,"0")+"-"+this.minDate.day.toString().padStart(2,"0")).startOf("day"),highestDate:moment(this.maxDate.year+"-"+this.maxDate.month.toString().padStart(2,"0")+"-"+this.maxDate.day.toString().padStart(2,"0")).startOf("day"),highlightDate:moment(this.initialDate.year+"-"+this.initialDate.month.toString().padStart(2,"0")+"-"+this.initialDate.day.toString().padStart(2,"0")).startOf("day"),halfOfLength:Math.floor(this.length/2),isAtEnd:!1}},props:{initialDate:{type:Object,default(){const e=moment();return{year:e.year(),month:e.month()+1,day:e.date()}}},length:{type:Number,default:7},minDate:{type:Object,default(){return{year:2022,month:11,day:28}}},maxDate:{type:Object,default(){const e=moment();return{year:e.year(),month:e.month()+1,day:e.date()}}},path:{type:String,default:"/ristsona/"}},created(){let e=moment(this.highlightDate);this.dates.push({date:moment(e).startOf("day"),isToday:!0}),this.addDatesToBeginning(this.length%2===0?this.halfOfLength-1:this.halfOfLength),this.addDatesToEnd(this.halfOfLength),this.dates.length<this.length&&(this.addDatesToBeginning(this.length-this.dates.length),this.addDatesToEnd(this.length-this.dates.length)),this.checkIfAtEnd()},methods:{getUrl(e){const t=moment(e).format("DD-MM-YYYY");return moment(e).isBefore(this.lowestDate)&&this.path==="/rists\xF5na/"?`${this.internalURL(currentSection.domain)}/paeva-ristsona/${t}`:`${this.internalURL(currentSection.domain)}${this.path}${t}`},loadDatesToBeginning(){this.addDatesToBeginning(this.length%2===0?this.halfOfLength-1:this.halfOfLength),this.dates.length>this.length&&(this.dates=this.dates.slice(0,7)),this.checkIfAtEnd()}
3,loadDatesToEnd(){this.isAtEnd||(this.addDatesToEnd(this.halfOfLength),this.dates.length>this.length&&(this.dates=this.dates.slice(-7)),this.checkIfAtEnd())},addDatesToBeginning(e){if(!(!e||e<1))for(let t=e;t>0;t--){const n=moment(this.dates[0].date).subtract(1,"days");this.dates.unshift({date:n,isToday:n.isSame(this.highlightDate,"day")})}},addDatesToEnd(e){if(!(!e||e<1))for(let t=1;t<=e;t++){const n=moment(this.dates[this.dates.length-1].date).add(1,"days");if(!n.isSameOrBefore(this.highestDate,"day"))break;this.dates.push({date:n,isToday:n.isSame(this.highlightDate,"day")})}},checkIfAtEnd(){this.isAtEnd=this.dates[this.dates.length-1].date.isSameOrAfter(this.highestDate,"day")}}},l=h,m=r(14486),g=(0,m.A)(l,d,o,!1,null,"84f53f6e",null),c=g.exports}}]);
4
5//# sourceMappingURL=bundle-6e769e56de075b41c982.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.