1"use strict";(self.webpackChunksport_api=self.webpackChunksport_api||[]).push([[921],{191:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,{default:()=>u});var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.mobile=window.matchMedia("(max-width: 767px)").matches,this.fetchByContainers()},(t=[{key:"fetchByContainers",value:function(){var e=this;document.querySelectorAll(this.options.container).length&&o(document.querySelectorAll(this.options.container)).map((function(t){e.init(t)}))}},{key:"init",value:function(e){var t=this,r=e.querySelector(this.options.elementClick),n=e.querySelector(this.options.elementDestination),o=r.querySelector("iframe")?r.querySelector("iframe").dataset.id:r.querySelector(".lozad-youtube").dataset.id;if(!r||!n)return null;sessionStorage.getItem("yt_swap")!=o||this.mobile?"waiting-for-click"===r.dataset.state&&r.addEventListener("click",(function(e){window.location.host.includes("tokfm")?t.swapV2(r,n,o):t.swap(r,n,o)})):window.location.host.includes("tokfm")?this.swapV2(r,n,o):this.swap(r,n,o)}},{key:"swap",value:function(e,t,r){var n;if(e.querySelector("iframe")){var o=t.clientWidth,i=parseFloat((o/(16/9)).toFixed(2));e.querySelector("iframe").setAttribute("width",o),e.querySelector("iframe").setAttribute("height",i)}var a=t.innerHTML,l=this.YtHtml(r);t.innerHTML="",t.appendChild(l),e.innerHTML=a,null!==(n=window)&&void 0!==n&&n.runEmbeds&&window.runEmbeds(),t.classList.add("yt-loaded"),sessionStorage.setItem("yt_swap",r),e.dataset.state="clicked"}},{key:"swapV2",value:function(e,t,r){var n;if(e.querySelector("iframe")){var o=t.clientWidth,i=parseFloat((o/(16/9)).toFixed(2));e.querySelector("iframe").setAttribute("width",o),e.querySelector("iframe").setAttribute("height",i)}var a=t.innerHTML,l=this.YtHtml(r),u=t.querySelector(".box-element__image"),s=t.querySelector(".box-element__text__content");u.innerHTML="",u.appendChild(l),s.innerHTML=e.querySelector(".box-element__text__content").innerHTML,t.querySelector(".content-type")&&(t.querySelector(".content-type").innerHTML="",t.querySelector(".content-type").removeAttribute("class")),t.querySelector(".box-element__link")&&t.querySelector(".box-element__link").remove(),e.innerHTML=a,e.querySelector(".box-element__text__footer")&&e.querySelector(".box-element__text__footer").remove(),t.querySelector(".box-element__text__footer")&&t.querySelector(".box-element__text__footer").remove(),null!==(n=window)&&void 0!==n&&n.runEmbeds&&window.runEmbeds(),t.classList.add("yt-loaded"),sessionStorage.setItem("yt_swap",r),e.dataset.state="clicked"}},{key:"YtHtml",value:function(e){var t=document.createElement("div");t.classList.add("yt-wrapper");var r=document.createElement("div");return r.classList.add("lozad-youtube"),r.dataset.id=e,r.dataset.sticky="true",r.dataset.optionsPlayervars=JSON.stringify({autoplay:!0}),t.appendChild(r),t}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()}}]);
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.