var i=(f,l,a)=>new Promise((n,o)=>{var s=e=>{try{u(a.next(e))}catch(t){o(t)}},c=e=>{try{u(a.throw(e))}catch(t){o(t)}},u=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,c);u((a=a.apply(f,l)).next())});import{d as C,e as p,r as v,w as h,u as T,f as g,g as d,z as w,ax as y,o as D,h as _,j as H,L as N,M as k,F as x,ay as q,q as z}from"./index-q8TQmcfk.js";import{b as B}from"./qa.Ciqr42Ak.js";const F=C({name:"HelpCenterDetail",__name:"helpCenterDetail",setup(f){const l=p(()=>y.global.locale),a=p(()=>l.value==="en"||l.value==="zh-Hans"),n=v(null),o=v("");function s(e){return e?e.replace(/\n/g,"<br>"):""}function c(e){return e?a.value?e.enTitle||e.bnTitle||"":e.bnTitle||e.enTitle||"":""}function u(e){return i(this,null,function*(){const t=yield B(e);if(t.code==="200"){n.value=t.data;const r=a.value?n.value.enContent||n.value.bnContent||"":n.value.bnContent||n.value.enContent||"";o.value=s(r)}})}return h(l,()=>{if(!n.value)return;const e=a.value?n.value.enContent||n.value.bnContent||"":n.value.bnContent||n.value.enContent||"";o.value=s(e)}),T(e=>i(this,null,function*(){const t=Number(e==null?void 0:e.id);!Number.isFinite(t)||t<=0||(yield u(t))})),(e,t)=>{const r=H,b=q,m=w("layout-default-uni");return D(),g(m,null,{default:d(()=>[_(r,{class:"rounded-12rpx bg-white px-22rpx py-40rpx"},{default:d(()=>[_(r,{class:"mb-18rpx text-30rpx font-bold"},{default:d(()=>[N(k(c(x(n))),1)]),_:1}),_(b,{nodes:x(o)},null,8,["nodes"])]),_:1})]),_:1})}}}),$=z(F,[["__scopeId","data-v-59850bea"]]);export{$ as default};
