import{dZ as a,D as e,ao as l,B as d,d_ as i,cL as s,S as u,d$ as g,cU as h}from"./index-CNZMR1GT.js";function f(t){const[n,r]=d("utf-8"),{isString:c,text:o}=i(t.children);return e(h,{w:"$full",h:"70vh",pos:"relative",get children(){return[e(s.iframe,{w:"$full",h:"$full",rounded:"$lg",shadow:"$md",get srcdoc(){return o(n())}}),e(u,{when:!c,get children(){return e(g,{get encoding(){return n()},setEncoding:r,get referenceText(){return t.children}})}})]}})}const w=()=>{const[t]=a();return e(l,{get loading(){return t.loading},get children(){return e(f,{get children(){var n;return(n=t())==null?void 0:n.content}})}})};export{w as default};
