const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B7qlp9GJ.js","./DnBXlrVC.js","./entry.CbrcGmYO.css","./CiLcJwuz.js","./C7hVZN0F.js","./BCkgKaB-.js","./C1ENETdz.js","./DVAt6LKG.js","./ucq3q0mK.js","./CiUK3XpC.js","./editor.D4IBitrG.css","./BkY4Kcec.js","./eaxWzopS.js","./MonacoEditor.YaGaATds.css","./EditorText.B0unHgKU.css","./C3HTsEqv.js","./DWYzLYAj.js"])))=>i.map(i=>d[i]);
import{d as P,_ as z,s as y,aq as A,ar as T,i as _,o as n,aj as h,e as D,u as e,F as I,c as u,y as d,t as w,a8 as i,as as m}from"./DnBXlrVC.js";import{_ as C}from"./C9a15FeE.js";import{_ as R}from"./BWZdK7fX.js";const U=i(()=>m(()=>import("./B7qlp9GJ.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>t.default||t)),F=i(()=>m(()=>import("./CiLcJwuz.js"),__vite__mapDeps([3,4,5,6,1,2,7,8,9,10,11,12,13,14]),import.meta.url).then(t=>t.default||t)),O=i(()=>m(()=>import("./C3HTsEqv.js"),__vite__mapDeps([15,1,2]),import.meta.url).then(t=>t.default||t)),b=i(()=>m(()=>import("./DWYzLYAj.js"),__vite__mapDeps([16,1,2]),import.meta.url).then(t=>t.default||t)),j={"of-hidden":"","h-full":""},B=["data"],$={key:7,flex:"~ items-center justify-center"},Y=P({__name:"EditorContainer",props:{id:{}},setup(t){const r=t,{editItem:V}=z(),{content:o,isLoading:f}=V(r.id),s=y(()=>A(r.id)),p=y(()=>T(r.id));return(g,l)=>{const v=C,E=U,c=F,k=O,L=b,x=R;return n(),_("div",j,[h(v,{loading:e(f)||e(o)===null||e(o)===void 0},null,8,["loading"]),e(f)?D("",!0):(n(),_(I,{key:0},[e(s)==="image"?(n(),u(E,{key:0,modelValue:e(o),"onUpdate:modelValue":l[0]||(l[0]=a=>d(o)?o.value=a:null)},null,8,["modelValue"])):e(s)==="text"?(n(),u(c,{key:1,modelValue:e(o),"onUpdate:modelValue":l[1]||(l[1]=a=>d(o)?o.value=a:null),lang:e(p),class:"h-full w-full of-auto"},null,8,["modelValue","lang"])):e(s)==="data"?(n(),u(c,{key:2,modelValue:e(o),"onUpdate:modelValue":l[2]||(l[2]=a=>d(o)?o.value=a:null),lang:e(p),class:"h-full w-full of-auto"},null,8,["modelValue","lang"])):e(s)==="video"?(n(),u(k,{key:3,modelValue:e(o),"onUpdate:modelValue":l[3]||(l[3]=a=>d(o)?o.value=a:null)},null,8,["modelValue"])):e(s)==="audio"?(n(),u(L,{key:4,modelValue:e(o),"onUpdate:modelValue":l[4]||(l[4]=a=>d(o)?o.value=a:null)},null,8,["modelValue"])):e(s)==="font"?(n(),u(x,{key:5,asset:{publicPath:e(o)},"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):e(s)==="other"&&e(p)==="pdf"?(n(),_("object",{key:6,data:e(o),type:"application/pdf","h-full":"","w-full":""}," Your browser does not support PDFs. ",8,B)):(n(),_("div",$,w(g.$t("file-not-supported")),1))],64))])}}});export{Y as _};
