1"use strict";(self.webpackChunkpoker_deliver=self.webpackChunkpoker_deliver||[]).push([[8159],{"0gpL":(e,t,o)=>{var l=o("1jK5"),n=(o("/bNm"),o("2oZF"));let i,a,r=null,s=null,d=!1,c=[],u=!1,p=!1,y=new Set,v=[],h=0,f=[];const m=()=>{u=!0};["touchstart","click","scroll","keydown"].forEach(e=>{document.addEventListener(e,m,{once:!0})});const w=e=>{f.push(e)};document.addEventListener("DOMContentLoaded",()=>{b(),g()});const g=()=>{document.querySelectorAll(".thumbnail-swiper-container .swiper-slide.locked .portrait-video-thumbnail-wrapper").forEach(e=>{e.addEventListener("click",async e=>{e.stopPropagation(),await(0,n.userJourneyCalls)({layout:"login"})})})},S=e=>{const t=e.querySelector(".thumbnail-swiper-container");if(!t)return;let o=null;o=new l.A(t,{direction:"horizontal",slidesPerView:"auto",spaceBetween:18,grabCursor:!0,freeMode:!0,resistance:!0,resistanceRatio:.5,on:{init:function(){setTimeout(()=>L(this,e),100)},slideChange:function(){L(this,e)},progress:function(){L(this,e)}}});const n=e.querySelector(".thumbnail-navigation"),i=(null==n?void 0:n.querySelector(".thumbnail-nav-left"))||e.querySelector(".thumbnail-nav-left"),a=(null==n?void 0:n.querySelector(".thumbnail-nav-right"))||e.querySelector(".thumbnail-nav-right");null==i||i.addEventListener("click",()=>{var t;const l=((null==(t=e.querySelector(".portrait-video-thumbnail-wrapper"))?void 0:t.offsetWidth)||325)+20,n=(null==o?void 0:o.translate)||0,i=Math.min(0,n+l);null==o||o.setTranslate(i),null==o||o.updateProgress()}),null==a||a.addEventListener("click",()=>{var t,l;const n=((null==(t=e.querySelector(".portrait-video-thumbnail-wrapper"))?void 0:t.offsetWidth)||325)+20,i=(null==o?void 0:o.translate)||0,a=(null==(l=null==o?void 0:o.maxTranslate)?void 0:l.call(o))||0,r=Math.max(a,i-n);null==o||o.setTranslate(r),null==o||o.updateProgress()})},L=(e,t)=>{var o;const l=t.querySelector(".thumbnail-navigation"),n=(null==l?void 0:l.querySelector(".thumbnail-nav-left"))||t.querySelector(".thumbnail-nav-left"),i=(null==l?void 0:l.querySelector(".thumbnail-nav-right"))||t.querySelector(".thumbnail-nav-right");if(null==e?void 0:e.wrapperEl){const t=((null==e?void 0:e.translate)||0)>=0,l=((null==e?void 0:e.translate)||0)<=((null==(o=null==e?void 0:e.maxTranslate)?void 0:o.call(e))||0);null==n||n.classList.toggle("disabled",t),null==i||i.classList.toggle("disabled",l)}},b=()=>{document.querySelectorAll(".portrait-video-collection.gd-frame").forEach((e,t)=>{var o,l;S(e);const n=null==(o=null==e?void 0:e.dataset)?void 0:o.playlists;if(p="true"===(null==(l=null==e?void 0:e.dataset)?void 0:l.iosSafari),!n)return;let u;try{u=JSON.parse(n)}catch(e){return void console.error("Failed to parse video data:",e)}const m=e.dataset.collectionId,w=e.querySelectorAll(".portrait-video-thumbnail-wrapper:not(.locked)"),g=document.getElementById(`fullScreenVideoContainer-${m}`),L=null==g?void 0:g.querySelector(".full-screen-video-close-button");g&&L?(Array.from(w).forEach(t=>{"true"!==t.dataset.listenerAdded&&(t.dataset.listenerAdded="true",t.addEventListener("click",()=>{document.querySelectorAll("dialog.full-screen-video-container[open]").forEach(e=>{e.close()});const o=document.getElementById(`fullScreenVideoIframeWrapper0-${m}`);if(!o)return void console.error("Iframe wrapper not found");const l=u[0];if(!l)return;i=u,v=l,y.clear(),c=new Array(v.length).fill(null),o.innerHTML="";const n=t.dataset.playlistIdx||"0",a=parseInt(t.dataset.videoIdx||"0")||0;h=a;const d=e.querySelectorAll(".swiper-slide");let f=0,w=0;l.forEach((e,t)=>{var l;const n=d[t],i=null==n?void 0:n.classList.contains("locked");null==(l=e.data.match(/id="([^"]+)"/))||l[1];i?o.insertAdjacentHTML("beforeend",`<div class="swiper-slide locked" data-video-index="${t}" data-is-locked="true">\n <div class="video-loading-placeholder">Loading...</div>\n </div>`):o.insertAdjacentHTML("beforeend",`<div class="swiper-slide" data-video-index="${t}">\n <div class="video-loading-placeholder">Loading...</div>\n </div>`),t===a&&(w=f),f++}),r&&"function"==typeof r.destroy&&(r.destroy(!0,!0),r=null),s&&"function"==typeof s.destroy&&(s.destroy(!0,!0),s=null),T(n),q(n,w);const S=r;if(setTimeout(()=>I(g,S),100),x(a),k(a,"initial"),document.body.style.overflow="hidden",g.show(),p){const e=(t=0)=>{t>20||(c[a]&&"function"==typeof c[a].playVideo?(c[a].addEventListener("onStateChange",function(e){1===e.data&&e.target.unMute()}),c[a].playVideo()):setTimeout(()=>e(t+1),100))};setTimeout(()=>e(),500)}}))}),L.addEventListener("click",()=>{document.body.style.overflow="";const e=document.querySelectorAll(".swiper-wrapper.placeholder");g.close(),r&&"function"==typeof r.destroy&&(r.destroy(!0,!0),r=null),c.forEac
1h(e=>{if(e&&"function"==typeof e.destroy)try{e.destroy()}catch(e){}}),c=[],s&&"function"==typeof s.destroy&&(s.destroy(!0,!0),s=null),d=!1,a=void 0,y.clear(),v=[],f.forEach(e=>clearTimeout(e)),f=[],Array.from(e).forEach(e=>{e.innerHTML=""})})):console.error("Full screen layout or close button not found",{fullScreenLayout:g,closeFullScreenLayoutButton:L})})},q=(e,t=0)=>{const o=document.querySelector(`.video-swiper-container-${e}`);o&&(r&&"function"==typeof r.destroy&&(r.destroy(!0,!0),r=null),r=new l.A(o,{direction:"vertical",slidesPerView:1,spaceBetween:10,grabCursor:!0,centeredSlides:!0,touchEventsTarget:"wrapper",simulateTouch:!0,initialSlide:t,on:{slideChange:()=>{var e;if(r){c.forEach((e,t)=>{if(e&&"function"==typeof e.pauseVideo)try{e.pauseVideo()}catch(e){}});const t=r.activeIndex,o=t>(r.previousIndex||0)?"down":"up",l=r.slides[t],n=parseInt((null==(e=null==l?void 0:l.dataset)?void 0:e.videoIndex)||"0");if(k(n,o),y.has(n)&&c[n])try{(p||u)&&c[n].unMute(),c[n].playVideo()}catch(e){}}},init:()=>{const e=(o=0)=>{if(!(o>25))if(y.has(t)&&c[t])c[t].addEventListener("onReady",function(e){setTimeout(()=>{try{const t=e.target.getPlayerState();-1!==t&&2!==t||(p||e.target.unMute(),e.target.playVideo())}catch(e){}},200)});else{const t=setTimeout(()=>e(o+1),200);w(t)}};e()}}}))},T=e=>{s=new l.A(".vertical-swiper-container",{direction:"vertical",spaceBetween:10,initialSlide:e,on:{init:()=>{a=parseInt(e)}}})},E=e=>{const t=document.querySelector(`.swiper-slide[data-video-index="${e}"] .swiper-touch-overlay`);if(!t||!c[e])return;let o,l=!1,n=!1;const i=e=>{var o;const l=null==(o=t.parentElement)?void 0:o.querySelector(".play-pause-icon"),n=null==l?void 0:l.querySelector(".play-icon"),i=null==l?void 0:l.querySelector(".pause-icon");l&&n&&i&&(e?(n.style.display="block",i.style.display="none"):(n.style.display="none",i.style.display="block"),l.classList.add("show"),setTimeout(()=>{l.classList.remove("show")},window.innerWidth<=768?3e3:1e3))};t.addEventListener("click",t=>{if(t.stopPropagation(),!c[e])return;const a=c[e].getPlayerState();if(p&&window.innerWidth<=768&&(-1===a||2===a)){const t=document.querySelector(`.swiper-slide[data-video-index="${e}"] iframe`);return void(t&&(t.click(),setTimeout(()=>{try{c[e].unMute(),c[e].playVideo()}catch(t){c[e].playVideo()}},100)))}if(window.innerWidth<=768){null==r||r.activeIndex;if(!n&&!l){const t=c[e].getPlayerState();i(1!==t);const n=setTimeout(()=>(()=>{if(window.innerWidth<=768){const e=document.querySelector(".full-screen-video-close-button"),t=document.querySelector(".swiper-arrow-up"),n=document.querySelector(".swiper-arrow-down");null==e||e.classList.add("show"),null==t||t.classList.add("show"),null==n||n.classList.add("show"),l=!0,clearTimeout(o),o=setTimeout(()=>{null==e||e.classList.remove("show"),null==t||t.classList.remove("show"),null==n||n.classList.remove("show"),l=!1},5e3)}})(),100);return void w(n)}}if(-1===a||2===a){try{c[e].unMute(),c[e].playVideo()}catch(t){c[e].playVideo()}i(!0)}else 1===a&&(c[e].pauseVideo(),i(!1))}),c[e].addEventListener("onStateChange",e=>{1===e.data?p&&t.classList.remove("split"):0===e.data?(t.classList.add("split"),n=!0,window.innerWidth<=768&&(()=>{const e=document.querySelector(".full-screen-video-close-button"),t=document.querySelector(".swiper-arrow-up"),n=document.querySelector(".swiper-arrow-down");null==e||e.classList.add("show"),null==t||t.classList.add("show"),null==n||n.classList.add("show"),l=!0,clearTimeout(o)})()):1!==e.data&&(t.classList.remove("split"),n=!1)})},x=e=>{if(y.has(e)||!v[e])return;const t=document.querySelector(`.swiper-slide[data-video-index="${e}"]`);if(!t)return;const o="true"===t.getAttribute("data-is-locked"),l=v[e];let i=M(l.data);if(o)i=i.replace(/<\/div>/,'<div class="locked-video-overlay"></div></div>');else{const e=p?"swiper-touch-overlay split":"swiper-touch-overlay";i=i.replace(/<\/div>/,`<div class="${e}"></div><div class="play-pause-icon"><svg viewBox="0 0 24 24"><path class="play-icon" d="M8 5v14l11-7z"/><path class="pause-icon" d="M6 19h4V5H6v14zm8-14v14h4V5h-4z" style="display:none;"/></svg></div></div>`)}if(i=e===h?p?i.replace("autoplay=
10","autoplay=1").replace("autoplay=0","autoplay=1").replace("mute=0","mute=1").replace("mute=0","mute=1"):i.replace("autoplay=0","autoplay=1").replace("autoplay=0","autoplay=1").replace("mute=0","mute=0").replace("mute=0","mute=0"):i.replace("mute=0","mute=1").replace("mute=0","mute=1"),i=i.replace(/<iframe([^>]*)(?=>)/g,'<iframe$1 allow="autoplay; fullscreen" playsinline webkit-playsinline'),t)if(t.innerHTML=i,y.add(e),o)setTimeout(()=>{const e=t.querySelector(".locked-video-overlay");e&&e.addEventListener("click",async e=>{e.stopPropagation(),await(0,n.userJourneyCalls)({layout:"login"})})},100);else{const o=t.querySelector("iframe");if(o&&o.id)if("undefined"!=typeof YT&&YT.Player)try{c[e]||(c[e]=new YT.Player(o.id,{height:"100%",width:"100%",videoId:o.id}),setTimeout(()=>E(e),100))}catch(e){console.error("Failed to create YouTube player:",e)}else console.error("YouTube API not loaded")}},k=(e,t)=>{let o,l;"initial"===t||"down"===t?(o=Math.max(0,e-1),l=Math.min(v.length-1,e+2)):"up"===t?(o=Math.max(0,e-2),l=Math.min(v.length-1,e+1)):(o=Math.max(0,e-1),l=Math.min(v.length-1,e+1));for(let e=o;e<=l;e++)x(e);const n=[];y.forEach(t=>{Math.abs(t-e)>3&&n.push(t)}),n.length>0&&n.forEach(e=>(e=>{if(!y.has(e))return;const t=document.querySelector(`.swiper-slide[data-video-index="${e}"]`);if(t){if(t.innerHTML='<div class="video-loading-placeholder">Loading...</div>',y.delete(e),c[e]&&"function"==typeof c[e].destroy)try{c[e].destroy()}catch(e){}c[e]=null}})(e))},M=e=>{const t=e.match(/src="([^"]+)"/);if(t){let o=t[1];const l=window.location.origin;o.includes("?")?o=o.replace("?",`?fs=0&enablejsapi=1&rel=1&playsinline=1&origin=${encodeURIComponent(l)}&`):o+=`?fs=0&enablejsapi=1&rel=1&playsinline=1&origin=${encodeURIComponent(l)}`,e=e.replace(t[1],o)}return e},I=(e,t)=>{const o=e.querySelector(".swiper-arrow-up"),l=e.querySelector(".swiper-arrow-down"),n=()=>{if(t){const e=t.isBeginning,n=t.isEnd;null==o||o.classList.toggle("disabled",e),null==l||l.classList.toggle("disabled",n)}};null==o||o.addEventListener("click",()=>{!o.classList.contains("disabled")&&t&&"function"==typeof t.slidePrev&&(t.slidePrev(),setTimeout(n,50))}),null==l||l.addEventListener("click",()=>{!l.classList.contains("disabled")&&t&&"function"==typeof t.slideNext&&(t.slideNext(),setTimeout(n,50))}),n(),t&&"function"==typeof t.on&&t.on("slideChange",n)};document.addEventListener("DOMContentLoaded",()=>{(()=>{const e=new URLSearchParams(window.location.search).get("id");if(e){let t=document.getElementById(e);if(!t){const o=parseInt(e,10);if(!isNaN(o)&&o>0){const e=document.querySelectorAll(".portrait-video-collection.gd-frame");e.length>=o&&(t=e[o-1])}}t&&setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"start"})},100)}})()})}}]);
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.