1"use strict";(self.webpackChunkxcams=self.webpackChunkxcams||[]).push([[6403],{36403(e,t,i){i.d(t,{MODE_LIVE_PREVIEW:()=>h,MODE_VIDEO_PREVIEW:()=>u,ModelListActionHandler:()=>c});i(3362),i(62953);function n(e,t,i){o(e,t),t.set(e,i)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return e.get(r(e,t))}function r(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var a=new WeakMap,d=new WeakMap,l=new WeakSet;class c{constructor(e){var t,i;o(t=this,i=l),i.add(t),n(this,a,[]),n(this,d,void 0),function(e,t,i){e.set(r(e,t),i)}(d,this,e)}enableLivePreview(e,t){var n,o;const a={mode:h.mode,appendTo:h.containerSelector,isMobile:null===(n=s(d,this))||void 0===n?void 0:n.isMobileDevice,targetElement:null===(o=s(d,this))||void 0===o?void 0:o.targetElement};r(l,this,v).call(this,e,{...a,...t}),Promise.all([i.e(3751),i.e(4967)]).then(i.bind(i,4967))}enableVideoPreview(e,t){var i,n;const o={mode:u.mode,appendTo:u.containerSelector,isMobile:null===(i=s(d,this))||void 0===i?void 0:i.isMobileDevice,targetElement:null===(n=s(d,this))||void 0===n?void 0:n.targetElement};r(l,this,v).call(this,e,{...o,...t})}enableSlideShow(e,t){0!==e.length&&i.e(9732).then(i.bind(i,19732)).then((t=>{var i,n;new(0,t.SlideShow)({elementsTarget:e,itemSelector:w.itemSelector,containerSelector:w.containerSelector,targetElement:null===(i=s(d,this))||void 0===i?void 0:i.targetElement,isMobile:null===(n=s(d,this))||void 0===n?void 0:n.isMobileDevice})}))}}function v(e,t){document.addEventListener("preview:hide:all",(e=>{r(l,this,m).call(this,e.detail.currentInstance)})),e.forEach((async e=>{let n=!1;function o(t){"mouseleave"===t.type&&e.classList.remove("has-livestream"),n&&(e.querySelector("a.js-models-item").classList.remove("is-loading"),n=!1)}e.addEventListener("video_render",(()=>{setTimeout((()=>{e.classList.add("has-livestream")}),2e3)})),e.addEventListener("mouseenter",(()=>{n=!0,e.querySelector("a.js-models-item").classList.add("is-loading")})),e.addEventListener("mouseleave",(e=>{document.dispatchEvent(new CustomEvent("vue:stop:preview")),o(e)})),e.addEventListener("video_render",(t=>{const i=e.querySelector("video.teaser_stream");document.dispatchEvent(new CustomEvent("vue:start:preview",{detail:{item:e,cammerId:e.dataset.cammerId,duration:null==i?void 0:i.duration}})),o(t)})),e.addEventListener("video_error",(t=>{document.dispatchEvent(new CustomEvent("vue:start:preview",{detail:{item:e,cammerId:e.dataset.cammerId,duration:0}})),o(t)})),e.addEventListener("security_error",(e=>o(e)));let r=e.dataset.cammerId;"videoPreview"===t.mode&&(t.teaserHash=e.dataset.cammerTeaser);const d=new(await i.e(214).then(i.bind(i,10214)).then((e=>e.LivePreview)))(e,r,{...t,startImmediately:e.contains(t.targetElement)});s(a,this).push(d)}))}function m(e){for(const t of s(a,this))t!==e&&t.visible&&t.hide()}const h={mode:"livePreview",itemSelector:".js-live-preview",containerSelector:".js-live-preview-container"},u={mode:"videoPreview",itemSelector:".js-video-preview",containerSelector:".js-video-preview-container"},w={mode:"slideShow",itemSelector:".js-slideshow-picture",containerSelector:".js-slideshow-container"}}}]);
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.