1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[88228],{228:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var i=o(374),s=o(568),n=o(266);class l{static serialize(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("FORM"!==e.nodeName){if(t)throw Error("The passed element is not a form!");return{}}return new FormData(e)}static serializeJson(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=l.serialize(e,t);if(0===Object.keys(o).length)return{};let i={};return n.Z.iterate(o,(e,t)=>i[t]=e),i}}let a=window.PluginManager;class r extends s.Z{init(){if(this.gallerySliderPluginInstances=a.getPluginInstances("GallerySlider"),this._contentBlockerEnabledCookieName="solid-pv-content-blocker-enabled",this._allowEmbeddedVideosCookieName="solid-pv-allow-embedded-videos",this._contentBlockerEnabled=this._getContentBlockerEnabledCookieValue(),this._source=this.el.dataset.source,this._videoId=this.el.dataset.videoId,this._autoplay=this.el.dataset.autoplay,this._poster=this.el.dataset.poster,this._customSourceMimeType=this.el.dataset.customSourceMimeType,this._form=this._getForm(),!this._form)throw Error("No form found for the plugin: ".concat(this.constructor.name));if(!this._contentBlockerEnabled){this._replaceForm(this._source,this._videoId,this._autoplay,this._poster,this._customSourceMimeType);return}this._registerEvents()}_getContentBlockerEnabledCookieValue(){if(window.useDefaultCookieConsent){let e=i.Z.getItem(this._contentBlockerEnabledCookieName);return"boolean"==typeof e&&!e||1==e}return!0}_getForm(){return this.el&&"FORM"===this.el.nodeName?this.el:this.el.closest("form")}_registerEvents(){let e=this._onRebuildSlider.bind(this);this.gallerySliderPluginInstances.forEach(t=>{t.$emitter.subscribe("rebuild",e)});let t=this._onSubmit.bind(this);this._form.removeEventListener("submit",t),this._form.addEventListener("submit",t)}_onRebuildSlider(){a.initializePlugins("GallerySlider")}_onSubmit(e){if(e.preventDefault(),null!==this._getFormData().get("save-consent")){window.useDefaultCookieConsent&&(i.Z.setItem(this._contentBlockerEnabledCookieName,"0",30),i.Z.setItem(this._allowEmbeddedVideosCookieName,"1",30)),document.querySelectorAll("[data-solid-pv-content-blocker]").forEach(e=>{let t=e.dataset.source,o=e.dataset.videoId,i=e.dataset.autoplay,s=e.dataset.poster,n=e.dataset.customSourceMimeType;this._replaceForm(t,o,i,s,n,e)});return}document.querySelectorAll('[data-solid-pv-content-blocker][data-video-id="'.concat(this._videoId,'"]')).forEach(e=>{this._replaceForm(this._source,this._videoId,this._autoplay,this._poster,this._customSourceMimeType,e)})}_getFormData(){return l.serialize(this._form)}_replaceForm(e,t,o,i,s){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this._form,l=n.parentElement;switch(e){case"youtube":l.insertAdjacentHTML("beforeend",'\n <div class="solid-pv-container">\n <div class="solid-pv-item">\n <iframe\n class="youtube"\n src="https://www.youtube-nocookie.com/embed/'.concat(t,"?disablekb=1&color=white&enablejsapi=1&loop=1&playlist=").concat(t,'"\n allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen"\n title="YouTube">\n </iframe>\n </div>\n </div>\n '));break;case"vimeo":l.insertAdjacentHTML("beforeend",'\n <div class="solid-pv-container">\n <div class="solid-pv-item">\n <iframe\n class="vimeo"\n src="https://player.vimeo.com/video/'.concat(t,'?color=ffffff&title=0&byline=0&portrait=0&dnt=1&loop=1"\n allow="autoplay; fullscreen"\n title="Vimeo">\n </iframe>\n </div>\n </div>\n '));break;
1case"custom":l.insertAdjacentHTML("beforeend",'\n <div class="solid-pv-container">\n <div class="solid-pv-item">\n <video\n '.concat(o?'class="solid-pv-is-autoplay"':"",'\n controls\n controlsList="nodownload"\n oncontextmenu="return false;"\n preload="none"\n loop\n ').concat(i?'poster="'+i+'"':"",'\n playsinline\n >\n <source src="').concat(t,'" ').concat(s?'type="'+s+'"':"",">\n </video>\n </div>\n </div>\n "))}n.remove()}}}}]);
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.