"use strict";(globalThis.webpackChunk_plex_client_qt=globalThis.webpackChunk_plex_client_qt||[]).push([["packages_app-splash_showStaticSplashScreen_ts-packages_app-splash_assets_plex-logo-static-spl-327850"],{19133:(e,t,s)=>{s.d(t,{showStaticSplashScreen:()=>i});const o=s.p+"assets/plex-logo-static-splash.92286161fdd0851b3ab0.png",a=500,l=2e3;function i(){const e=document.createElement("div");let t,s;return e.style.position="fixed",e.style.top="0",e.style.right="0",e.style.bottom="0",e.style.left="0",e.style.background=`#000 url(${o}) no-repeat center`,e.style.width="100%",e.style.height="100%",e.style.zIndex="13",e.style.opacity="0",document.body.appendChild(e),console.debug("[AppSplash] Loading Animation..."),{start:()=>(console.debug("[AppSplash] Showing static logo splash screen."),e.style.transition=`opacity ${a}ms`,t=new Promise((t=>{requestAnimationFrame((()=>{e.style.opacity="1",setTimeout((()=>{s=Date.now(),t()}),a)}))})),t),dismiss:async()=>{if(!t)return console.debug("[AppSplash] Animation failed."),Promise.resolve();await t;const o=Date.now()-s;o<l&&await new Promise((e=>{setTimeout(e,l-o)})),e.style.opacity="0",setTimeout((()=>{console.debug("[AppSplash] Destroying splash screen."),e.remove()}),a)}}}}}]);