1/*! For license information please see lazy-vue0.js.LICENSE.txt */ 2"use strict";(self.webpackChunkerf_v2016=self.webpackChunkerf_v2016||[]).push([[8953,3436],{41324:function(e,t,r){r.r(t),r.d(t,{default:function(){return o}});var n=r(36645);function o(e){var t=e.getAttribute("href"),r=document.createElement("div");r.dataset.compName="AdventDoor",r.dataset.file=t;var o="",i="",a=e.querySelector("img");a&&(o=a.getAttribute("alt")),a&&(i=a.getAttribute("src")),r.dataset.title=o,r.dataset.artwork=i,e.appendChild(r),(0,n.Z)(r)}},35691:function(e,t,r){r.r(t),r.d(t,{default:function(){return l}});var n=r(66252),o=r(3577),i={ref:"door",class:"advent-door"},a={class:"advent-door__inner"};r(28436),r(89730),r(69358);var u=r(12924),c=r(62516),s=r(31955),d={name:"AdventDoor",components:{AudioPlayer:u.default},props:{file:{type:String,default:""},title:{type:String,default:""},artwork:{type:String,default:""}},data:function(){return{play:!1,init:!1}},computed:{doorNumber:function(){return this.title.slice(-2).trim()}},created:function(){this.parent=null,this.openDoors={}},mounted:function(){var e=this,t=new Date,r=t.getDate(),o=11===t.getMonth();(0,n.Y3)((function(){e.parent=e.$el.closest(".erf-advent-door"),e.parent&&o&&e.doorNumber<=r&&(e.parent.addEventListener("click",e.clickHandler),e.isDoorOpen()?e.parent.click():(e.parent.style.pointerEvents="auto",e.parent.style.cursor="pointer"))}))},unmounted:function(){this.parent&&this.parent.removeEventListener("click",this.clickHandler)},methods:{clickHandler:function(e){e&&e.preventDefault(),this.parent&&!this.parent.classList.contains("door--open")&&this.parent.classList.toggle("door--open"),this.play=!0},autoplay:function(){try{if(!this.isDoorOpen()){var e=this.$refs.player.$el.querySelector("audio");(0,c.gu)(e),e.play()}}catch(e){}this.storeDoorOpenState()},storeDoorOpenState:function(){var e=this.getCookie();e["door-".concat(this.doorNumber)]=!0,s.Z.set("open-advent-doors",JSON.stringify(e),{path:"/",expires:30})},isDoorOpen:function(){return!!this.getCookie()["door-".concat(this.doorNumber)]},getCookie:function(){var e=s.Z.get("open-advent-doors");return void 0!==e?JSON.parse(e):{}}}},l=(0,r(83744).Z)(d,[["render",function(e,t,r,u,c,s){var d=(0,n.up)("AudioPlayer");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",a,[c.play?((0,n.wg)(),(0,n.j4)(d,{key:0,ref:"player",hidden:"",file:r.file,artwork:r.artwork,title:r.title,album:"ERF Plus Adventskalender",onLoaded:s.autoplay},null,8,["file","artwork","title","onLoaded"])):(0,n.kq)("",!0)]),(0,n._)("h2",null,(0,o.zw)(s.doorNumber),1)],512)}]])},31955:function(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{Z:function(){return o}});var o=function e(t,r){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=n({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=t.read(a,u),e===u)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){o(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
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.