1/*! For license information please see Main.js.LICENSE */ 2!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e,i){},function(t,e){"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){"use strict";if("Element"in t){var e=t.Element.prototype,i=Object,n=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},o=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return r.call(t,e)},a=function(t){for(var e=n.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):[],r=0,s=i.length;r<s;r++)this.push(i[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=a.prototype=[],l=function(){return new a(this)};if(s.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return~o(this,t+"")},u.add=function(){var t,e=arguments,i=0,n=e.length,r=!1;do{t=e[i]+"",~o(this,t)||(this.push(t),r=!0)}while(++i<n);r&&this._updateClassName()},u.remove=function(){var t,e,i=arguments,n=0,r=i.length,s=!1;do{for(t=i[n]+"",e=o(this,t);~e;)this.splice(e,1),s=!0,e=o(this,t)}while(++n<r);s&&this._updateClassName()},u.toggle=function(t,e){var i=this.contains(t),n=i?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!i},u.replace=function(t,e){var i=o(t+"");~i&&(this.splice(i,1,e),this._updateClassName())},u.toString=function(){return this.join(" ")},i.defineProperty){var c={get:l,enumerable:!0,configurable:!0};try{i.defineProperty(e,"classList",c)}catch(t){void 0!==t.number&&-2146823252!==t.number||(c.enumerable=!1,i.defineProperty(e,"classList",c))}}else i.prototype.__defineGetter__&&e.__defineGetter__("classList",l)}}(self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var i,n=arguments.length;for(i=0;i<n;i++)t=arguments[i],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:i.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var i=this.toString().split(" "),n=i.indexOf(t+"");~n&&(i=i.slice(n),this.remove.apply(this,i),this.add(e),this.add.apply(this,i.slice(1)))}),t=null}())},function(t,e){Array.from||(Array.from=function(t){"use strict";return[].slice.call(t)})},function(t,e){"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var i=0;i<this.length;i++)t.call(e,this[i],i,this)})},function(t,e,i){"use strict";i.r(e);i(0);class n{constructor(t){this._root=t,this._audio=this._root.querySelector("audio"),this._trigger=this._root.querySelector(".audio-element-action"),this._labels=this._getLabels(),this._durationElement=this._root.querySelector(".audio-element-duration"),this._setupEventListeners()}_setupEventListeners(){this._trigger.addEventListener("click",this._tooglePlayPause.bind(this)),this._audio.addEventListener("loadedmetadata",this._renderDuration()),this._audio.addEventListener("ended",t=>{this._reset()}),this._audio.addEventListener("timeupdate",t=>{this._renderDuration()})}_getLabels(){var t=this._trigger.getAttribute("data-labels");return""!==t?JSON.parse(t):{}}_tooglePlayPause(){this._audio.paused?this._play():this._pause()}_reset(){this._pause(),this._renderDuration(!0)}_pause(){this._trigger.classList.replace("audio-element-pause","audio-element-play"),this._audio.pause(),this._trigger.setAttribute("title",this._labels.play)}_play(){this._trigger.classList.replace("audio-element-play","audio-element-pause"),this._audio.play(),this._trigger.setAttribute("title",this._labels.pause)}_renderDuration(t){var e=this._audio.duration;isNaN(this._audio.duration)&&(e=this._durationElement.dataset.duration);var i=!0===t?e:e-this._audio.currentTime,n=parseInt(i/60,10),r=parseInt(i%60,10);if(!isNaN(n)&&!isNaN(r)){r=r>=10?r:"0"+r;var s="".concat(n,":").concat(r),o=this._durationElement.innerHTML;this._durationElement.innerHTML=o.replace(/([0-5]?)[0-9]:(?:[012345]\d)/gi,s)}}}i(1),i(2),i(3);document.querySelectorAll(".folkekirken-audio-element").forEach(t=>{new n(t)})}]); 3//# sourceMappingURL=Main.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.