1"use strict";(self.webpackChunkemimino=self.webpackChunkemimino||[]).push([[32807],{389:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(16652);function o(e){return o="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},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}const 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.element=t,this.json=(0,r.A)(t,"data-advert-idnes-video-data")},t=[{key:"getRandomInteger",value:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}},{key:"getRandomIndex",value:function(){return this.getRandomInteger(1,Object.keys(this.json).length)-1}},{key:"render",value:function(e){this.index=this.getRandomIndex(),this.renderVideo(this.element,e)}},{key:"renderVideo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({writeTo:e,data:"https://servix.idnes.cz/media/video.aspx?idvideo=".concat(this.json[this.index].videoIdentifier||this.json[this.index].id,"&reklama=1&idrubriky=")+n.g.Unidata.ostrov,ratio:16/9,image:"".concat(this.json[this.index].imgUrl),autostart:!1,ajaxRefresh:300,restartVideoStep:5,stay:!0},t),n.g.Misc.videoFLV(t)}}],t&&i(e.prototype,t),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}()},16652:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return e&&e.getAttribute(t)?JSON.parse(e.getAttribute(t).replace(new RegExp("'","g"),'"')):{}}},48757:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(){return Promise.all([n.e(63172),n.e(35008),n.e(30756)]).then(n.bind(n,95627))}},75826:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var r=n(389),o=n(48757);function i(e){return i="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},i(e)}function a(e){return function(e){if(Array.isArray(e))return u(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){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function l(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
1function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}const y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,t,[e])).modal=e.querySelector("[data-advert-idnes-video-modal]"),n.videoWrapper=e.querySelector("[data-advert-idnes-video-modal-video]"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){this.setEvents(),this.index=this.getRandomIndex();var e=this.element.querySelector("[advertIdnesVideoModalImg]"),t=this.element.querySelector("[advertIdnesVideoModalTitle]");e.style.backgroundImage='url("'.concat(this.json[this.index].imgUrl,'")'),e.className="image-response image-response--bg image-response--bg-16-9 image-response--bg-cover",t.textContent=this.json[this.index].title}},{key:"setEvents",value:function(){var e=this;a(this.element.querySelectorAll("[advertIdnesVideoModalLink]")).forEach(function(t){return t.addEventListener("click",function(t){return e.onOpenModal(t)})}),this.modal.addEventListener("modalOpen",function(){return e.openModal()}),this.modal.addEventListener("modalBeforeClose",function(){return e.closeModal()})}},{key:"onOpenModal",value:function(e){var t=this;e.preventDefault(),(0,o.A)().then(function(e){e.default.simple(t.modal)})}},{key:"openModal",value:function(){this.renderVideo(this.videoWrapper.querySelector(".video"),{autostart:!0})}},{key:"closeModal",value:function(){this.videoWrapper.innerHTML='\n <div class="video mb5">\n <div class="video__preloader video__preloader--idnes">\n <div class="video__spinner">\n <i class="icon-spin animate-spin"></i>\n NaÄÃtám video...\n </div>\n </div>\n </div>\n '}}])&&c(n.prototype,r),i&&c(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.A),v=function(e){new y(e).render()}}}]);
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.