import{Z as t,y as e,o as l,b8 as s,e as i,f as a,w as o,l as n,j as r,m as c,i as p}from"./index-9aa72eed.js";import{_ as u}from"./mp-html.6b9122f2.js";import{_ as m}from"./s-layout.bffb18b8.js";import{_ as d}from"./_plugin-vue_export-helper.1b428a4d.js";const _={getArticle:(e,l)=>t({url:"/promotion/article/get",method:"GET",params:{id:e,title:l}})},f=d({__name:"richtext",props:{title:{defautls:"",type:String},type:{defautls:"",type:String}},setup(t){const d=e({title:"",content:""});const f=t;return l((t=>{(t.title||f.title)&&(d.title=t.title||f.title,s({title:d.title||f.title})),async function(t,e){const{code:l,data:i}=await _.getArticle(t,e);0===l&&(d.content=i.content,d.title!==i.title&&(d.title=i.title,s({title:d.title})))}(t.id,t.title||f.title)})),(e,l)=>{const s=n(c("mp-html"),u),_=p,f=n(c("s-layout"),m);return d.title&&!t.type?(i(),a(f,{key:0,class:"set-wrap",title:d.title,bgStyle:{color:"#FFF"}},{default:o((()=>[r(_,{class:"ss-p-30"},{default:o((()=>[r(s,{class:"richtext",content:d.content},null,8,["content"])])),_:1})])),_:1},8,["title"])):(i(),a(s,{key:1,class:"richtext",content:d.content},null,8,["content"]))}}},[["__scopeId","data-v-5342d437"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"}));export{_ as A,y as a,f as r};
