System.register(["./index-legacy-BiCnHnDr.js","./containers-legacy-DlhFG1K3.js","./_plugin-vue_export-helper-legacy-BVIICed7.js"],function(o,t){"use strict";var e,l,n,i,d,a,r,c,u,v,s,h,p,x,f,y,g,b,w,m,$;return{setters:[o=>{e=o.u,l=o.r,n=o.a,i=o.c,d=o.n,a=o.o,r=o.b,c=o.d,u=o.w,v=o.e,s=o.v,h=o.f,p=o.g,x=o.h,f=o.j,y=o.t,g=o.i,b=o.m},o=>{w=o.l,m=o.a},o=>{$=o._}],execute:function(){var t=document.createElement("style");t.textContent=".container[data-v-331a71a2]{position:absolute}.content-clock[data-v-331a71a2]{max-width:100%;max-height:100%;object-fit:contain}\n/*$vite$:1*/",document.head.appendChild(t),o("default",$({__name:"ClockContainer",props:{id:String,layoutId:String,partner:String,code:String},setup(o){e();const t="https://display24.ru",$=o,S=l(!1),C=l("");let I=null;const j=n({id:null,displayCode:null,layoutId:null}),z=i(()=>{var o,t,e,l,n,i,a,r,c;return{top:`${j.top}px`,left:`${j.left}px`,width:`${j.width}px`,height:`${j.height}px`,backgroundColor:d(null===(o=j.background)||void 0===o?void 0:o.color)||d("#000"),zIndex:j.zIndex||0,border:`${(null===(t=j.border)||void 0===t?void 0:t.width)||0}px ${(null===(e=j.border)||void 0===e?void 0:e.style)||"solid"} ${(null===(l=j.border)||void 0===l?void 0:l.color)||"#fff"}`,borderRadius:`${null===(n=j.border)||void 0===n?void 0:n.radius}px`,boxShadow:`${null===(i=j.shadow)||void 0===i?void 0:i.x}px ${null===(a=j.shadow)||void 0===a?void 0:a.y}px ${null===(r=j.shadow)||void 0===r?void 0:r.b}px ${null===(c=j.shadow)||void 0===c?void 0:c.color}`}}),k=()=>{var o,t,e,l,n,i,d;switch(null===(o=j.content)||void 0===o?void 0:o.mediaMode){case 1:return{objectFit:"fill",width:"100%",height:"100%",fontSize:(null===(t=j.content)||void 0===t?void 0:t.fontSize)+"px",color:null===(e=j.content)||void 0===e?void 0:e.color};case 2:return{objectFit:"cover",width:"100%",height:"100%",fontSize:(null===(l=j.content)||void 0===l?void 0:l.fontSize)+"px",color:null===(n=j.content)||void 0===n?void 0:n.color};default:return{objectFit:"none",fontSize:(null===(i=j.content)||void 0===i?void 0:i.fontSize)+"px",color:null===(d=j.content)||void 0===d?void 0:d.color}}},_=()=>{var o;const t=b();C.value=t.format(null!==(o=j.content)&&void 0!==o&&o.showSeconds?"HH:mm:ss":"HH:mm")};return a(async()=>{j.id=$.id,j.displayCode=$.code,j.layoutId=$.layoutId,await w(j,t,"ClockContainer (layouts)"),await m(j,S,t,"ClockContainer (schedule)"),_(),I=setInterval(()=>{_(),S.value=r(null==j?void 0:j.scheduleData)},1e3)}),c(()=>{I&&clearInterval(I)}),u(()=>j.scheduleData,o=>{S.value=r(o)}),(o,t)=>v((p(),h("div",{class:"container",style:g(z.value)},[x("",!0),f("div",{class:"content-clock",style:g(k())},y(C.value),5)],4)),[[s,S.value]])}},[["__scopeId","data-v-331a71a2"]]))}}});
