const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BiuPm6db.js","./Bxv1kRJt.js","./entry.Bel8Jjdw.css","./uiJ3Pwsp.js","./BHSDjEX4.js","./Dqibp0CK.js","./o_ViDd08.js","./DafvsEAY.js","./DRpV4Qhx.js","./D6NrV7C8.js","./editor.D4IBitrG.css","./BkY4Kcec.js","./oNASYLMO.js","./MonacoEditor.YaGaATds.css","./EditorText.B0unHgKU.css","./BAyXOLRq.js","./CAGIZ2dU.js"])))=>i.map(i=>d[i]);
import{d as P,_ as z,s as y,af as A,ag as h,i as _,o as n,a9 as T,e as D,u as e,F as I,c as u,y as d,t as w,ah as i,ai as m}from"./Bxv1kRJt.js";import{_ as C}from"./SlBpC1AQ.js";import{_ as R}from"./el0tEz56.js";const U=i(()=>m(()=>import("./BiuPm6db.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>t.default||t)),F=i(()=>m(()=>import("./uiJ3Pwsp.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("./BAyXOLRq.js"),__vite__mapDeps([15,1,2]),import.meta.url).then(t=>t.default||t)),b=i(()=>m(()=>import("./CAGIZ2dU.js"),__vite__mapDeps([16,1,2]),import.meta.url).then(t=>t.default||t)),B={"of-hidden":"","h-full":""},$=["data"],j={key:7,flex:"~ items-center justify-center"},q=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(()=>h(r.id));return(g,l)=>{const v=C,E=U,c=F,k=O,L=b,x=R;return n(),_("div",B,[T(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,$)):(n(),_("div",j,w(g.$t("file-not-supported")),1))],64))])}}});export{q as _};
