System.register(["./index-legacy-BiCnHnDr.js","./artplayer-legacy-Gcf7JRwd.js","./containers-legacy-DlhFG1K3.js","./_plugin-vue_export-helper-legacy-BVIICed7.js"],function(e,t){"use strict";var o,a,l,n,r,i,d,s,u,c,v,p,h,y,g,w,x,m,b,f,I,C;return{setters:[e=>{o=e.u,a=e.r,l=e.a,n=e.G,r=e.w,i=e.c,d=e.n,s=e.o,u=e.b,c=e.d,v=e.e,p=e.v,h=e.f,y=e.g,g=e.h,w=e.i,x=e.l,m=e.E},e=>{b=e.e},e=>{f=e.l,I=e.a},e=>{C=e._}],execute:function(){var t=document.createElement("style");t.textContent='@charset "UTF-8";.container[data-v-74f453a4]{position:absolute}.artplayer .art-state,.artplayer .art-state-icon,.artplayer .art-loading-icon,.artplayer .art-error{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}.art-video-player{background-color:transparent!important}.art-controls,.art-progress{display:none!important}\n/*$vite$:1*/',document.head.appendChild(t),e("default",C({__name:"VideoContainer",props:{id:String,layoutId:String,partner:String,code:String},setup(e){const t=o();b.CONTEXTMENU=!1,b.NOTICE_TIME=0,b.CONTROL_HIDE_TIME=0,b.RECONNECT_TIME_MAX=10;const C="https://display24.ru",_=a(!1);let E=null;const T=e,S=l({id:null,displayCode:null,layoutId:null}),$=a(null),j=a(n(32));r(()=>t.mute,e=>{$.value&&($.value.muted=e)});const M=i(()=>{var e,t,o,a,l,n,r,i,s;return{top:S.top+"px",left:S.left+"px",width:S.width+"px",height:S.height+"px",backgroundColor:d(null===(e=S.background)||void 0===e?void 0:e.color)||"#000",zIndex:S.zIndex||0,borderColor:(null===(t=S.border)||void 0===t?void 0:t.color)||"#fff",borderStyle:(null===(o=S.border)||void 0===o?void 0:o.style)||"solid",borderWidth:((null===(a=S.border)||void 0===a?void 0:a.width)||0)+"px",borderRadius:(null===(l=S.border)||void 0===l?void 0:l.radius)+"px",boxShadow:`${null===(n=S.shadow)||void 0===n?void 0:n.x}px ${null===(r=S.shadow)||void 0===r?void 0:r.y}px ${null===(i=S.shadow)||void 0===i?void 0:i.b}px ${null===(s=S.shadow)||void 0===s?void 0:s.color}`}}),N=e=>{var t,o;switch(e){case 1:return{objectFit:"fill",width:S.width+"px",height:S.height+"px"};case 2:return{objectFit:"cover",width:"100%",height:"100%"};default:return{objectFit:"none",width:(null===(t=S.content)||void 0===t?void 0:t.width)+"px",height:(null===(o=S.content)||void 0===o?void 0:o.height)+"px"}}};return s(async()=>{S.id=T.id,S.displayCode=T.code,S.layoutId=T.layoutId,await f(S,C,"VideoContainer (layouts)"),await I(S,_,C,"VideoContainer (schedule)"),E=setInterval(()=>{_.value=u(null==S?void 0:S.scheduleData)},1e3)}),r(()=>S.content,async e=>{if(null==e||!e.filename)return;const t=document.querySelector(".video-"+j.value);if(t){const o=await async function(e){const t=`https://cdn.display24.ru/partners/${T.partner}/${e}`;return await m(t)}(e.filename);$.value&&$.value.destroy(!0),$.value=new b({container:t,url:o,poster:"/poster.png",autoSize:!0,miniProgressBar:!1,loop:!0,muted:!1,autoplay:!1,aspectRatio:!0,controls:[],volume:1,playsInline:!0,isLive:!1,mutex:!1,setting:!1,preload:"auto",clickToPlay:!1,show:!1,icons:{state:""},state:!1}),$.value&&$.value.play().catch(e=>{console.warn("Автозапуск заблокирован/ошибка",e)})}else console.error("Контейнер для плеера не найден")}),c(()=>{E&&clearInterval(E),$.value&&$.value.destroy(!1)}),r(()=>S.scheduleData,e=>{_.value=u(e)}),(e,t)=>{var o;return v((y(),h("div",{class:"container",style:w(M.value)},[g("",!0),(y(),h("div",{class:x("video-"+j.value),style:w(N(null===(o=S.content)||void 0===o?void 0:o.mediaMode)),key:j.value},null,6))],4)),[[p,_.value]])}}},[["__scopeId","data-v-74f453a4"]]))}}});
