"use strict";const e=require("../../../common/vendor.js"),r=require("../../api/promotion/article.js");if(require("../../request/index.js"),require("../../config/index.js"),require("../../store/index.js"),require("../../store/app.js"),require("../../api/promotion/diy.js"),require("../../platform/index.js"),require("../../platform/provider/wechat/index.js"),require("../../platform/provider/wechat/miniProgram.js"),require("../../api/member/auth.js"),require("../../api/member/social.js"),require("../../api/member/user.js"),require("../../platform/provider/apple/index.js"),require("../../platform/share.js"),require("../../router/index.js"),require("../../hooks/useModal.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.js"),require("../../index.js"),require("../../url/index.js"),require("../../config/zIndex.js"),require("../../api/member/signin.js"),require("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../api/pay/order.js"),require("../../store/user.js"),require("../../store/cart.js"),require("../../api/trade/cart.js"),require("../../api/pay/wallet.js"),require("../../api/trade/order.js"),require("../../api/promotion/coupon.js"),require("../../store/sys.js"),require("../../store/modal.js"),!Array){e.resolveComponent("mp-html")()}Math;const i={__name:"s-richtext-block",props:{data:{type:Object,default:{}},styles:{type:Object,default(){}}},setup(i){const t=i,s=e.reactive({content:""});return e.onMounted((async()=>{const{data:e}=await r.ArticleApi.getArticle(t.data.id);s.content=e.content})),(r,t)=>({a:e.p({content:s.content}),b:e.s({marginLeft:i.styles.marginLeft+"px",marginRight:i.styles.marginRight+"px",marginBottom:i.styles.marginBottom+"px",marginTop:i.styles.marginTop+"px",padding:i.styles.padding+"px"})})}};wx.createComponent(i);
