import{M as t,D as e,aY as a,d as s,e as l,f as n,s as o,a as r,g as i,b as c,p}from"./index-45b322f7.js";import{_ as u}from"./mp-html.191a0ed6.js";import{_ as m}from"./s-layout.940eafb4.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";const h=d({__name:"richtext",setup(d){const h=t({title:"",content:""});function _(t){return e=this,s=null,l=function*(){const{error:e,data:s}=yield o.$api.data.richtext(t);0===e&&(h.content=s.content,""===h.title&&(h.title=s.title,a({title:h.title})))},new Promise(((t,a)=>{var n=t=>{try{r(l.next(t))}catch(e){a(e)}},o=t=>{try{r(l.throw(t))}catch(e){a(e)}},r=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,o);r((l=l.apply(e,s)).next())}));var e,s,l}return e((t=>{t.title&&(h.title=t.title,a({title:h.title})),_(t.id)})),(t,e)=>{const a=r(c("mp-html"),u),o=p,d=r(c("s-layout"),m);return s(),l(d,{class:"set-wrap",title:h.title,bgStyle:{color:"#FFF"}},{default:n((()=>[i(o,{class:"ss-p-30"},{default:n((()=>[i(a,{class:"richtext",content:h.content},null,8,["content"])])),_:1})])),_:1},8,["title"])}}},[["__scopeId","data-v-a42b9d6b"]]);export{h as default};
