const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DsTJo1qP.js","./BvNnk7SS.js","./entry.Le7YthGh.css","./CI4O2nPn.js","./Cs47TkFU.js","./EditorText.VXRZxh7T.css","./pTecYX6b.js","./C2u6rN36.js"])))=>i.map(i=>d[i]);
import{d as h,N as z,E as y,$ as P,a0 as A,a1 as T,o as n,e as _,z as w,b as e,F as I,c as u,i as d,f as C,a2 as m,a3 as r}from"./BvNnk7SS.js";import{_ as D}from"./6Fej6FPW.js";import{_ as R}from"./u8CAcigN.js";const U=m(()=>r(()=>import("./DsTJo1qP.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>t.default||t)),b=m(()=>r(()=>import("./CI4O2nPn.js"),__vite__mapDeps([3,1,2,4,5]),import.meta.url).then(t=>t.default||t)),F=m(()=>r(()=>import("./pTecYX6b.js"),__vite__mapDeps([6,1,2]),import.meta.url).then(t=>t.default||t)),O=m(()=>r(()=>import("./C2u6rN36.js"),__vite__mapDeps([7,1,2]),import.meta.url).then(t=>t.default||t)),B={"h-full":"","of-hidden":""},N=["data"],$={key:7,flex:"~ items-center justify-center"},G=h({__name:"EditorContainer",props:{id:{}},setup(t){const i=t,{editItem:V}=z(),{content:o,isLoading:f,refresh:g}=V(i.id),s=y(()=>P(i.id)),p=y(()=>A(i.id));return T(async()=>{await g(i.id)}),(j,l)=>{const E=D,v=U,c=b,k=F,x=O,L=R;return n(),_("div",B,[w(E,{loading:e(f)||e(o)===null||e(o)===void 0},null,8,["loading"]),e(f)?C("",!0):(n(),_(I,{key:0},[e(s)==="image"?(n(),u(v,{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(x,{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(L,{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)):(n(),_("div",$," This kind of file is not supported. "))],64))])}}});export{G as _};
