import{u as w,r as v,a as S,c as C,o as g,b as x,d as _,w as I,e as k,v as D,f as B,g as P,h as $,j as d,H as b,i as z}from"./index-DmCbOAxb.js";import{l as N,a as R}from"./containers-B-x1Py5x.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const L={__name:"PdfContainer",props:{id:String,layoutId:String,partner:String,code:String},setup(y){w();const l="https://display24.ru",t=v(!1);let r=null;const s=y,e=S({id:null,displayCode:null,layoutId:null,content:null}),m=C(()=>{var a,o,n,i,c,u,p,h,f;return{top:e.top+"px",left:e.left+"px",width:e.width+"px",height:e.height+"px",backgroundColor:((a=e.background)==null?void 0:a.color)||"#000",zIndex:e.zIndex||0,borderColor:((o=e.border)==null?void 0:o.color)||"#fff",borderStyle:((n=e.border)==null?void 0:n.style)||"solid",borderWidth:(((i=e.border)==null?void 0:i.width)||0)+"px",borderRadius:((c=e.border)==null?void 0:c.radius)+"px",boxShadow:"".concat((u=e.shadow)==null?void 0:u.x,"px ").concat((p=e.shadow)==null?void 0:p.y,"px ").concat((h=e.shadow)==null?void 0:h.b,"px ").concat((f=e.shadow)==null?void 0:f.color)}});return g(async()=>{e.id=s.id,e.displayCode=s.code,e.layoutId=s.layoutId,await N(e,l,"PdfContainer (layouts)"),await R(e,t,l,"PdfContainer (schedule)"),r=setInterval(()=>{t.value=x(e==null?void 0:e.scheduleData)},1e3)}),_(async()=>{r&&clearInterval(r)}),I(()=>e.scheduleData,a=>{t.value=x(a)}),(a,o)=>k((P(),B("div",{class:"container",style:z(m.value)},[$("",!0),o[10]||(o[10]=d("div",{class:"alarm-wrapper"},[d("div",{class:"alarm"},[b(" Модуль работы с PDF документами не поддерживается "),d("br"),b("для платформы Android (только Windows, Linux и Raspberry). ")])],-1))],4)),[[D,t.value]])}},A=V(L,[["__scopeId","data-v-4833864e"]]);export{A as default};
