import{_ as a,a as e,f as s,a0 as t,w as r,h as n}from"./index-4c745ab9.js";import{q as u,L as c,c as l,l as o,o as d,a as i,f as _,g as m,h as v,e as N,F as p}from"./vendor-edc0678f.js";const y=["innerHTML"],b=a({__name:"tradingRules",setup(a){const b=e();u(()=>{b.setTradeFlag(b.tradeFlag+b.isOption)});const f=c(),I=l(()=>{switch(Number(f.query.type)){case 0:default:return s("Second_Contract_Rules");case 1:return s("Currency_Trading_Rules");case 2:return s("Ustandard_contract_rules")}}),L=o(I.value),g=o(null),h=async a=>{try{const e=await t(a);200===e.code&&(g.value=e.data[0].content,L.value=e.data[0].title||I.value)}catch(e){}};return u(()=>{switch(Number(f.query.type)){case 0:h("PERIOD_EXPLAIN");break;case 1:h("COIN_EXPLAIN");break;case 2:h("U_STANDARD_EXPLAIN")}}),(a,e)=>{const s=r,t=n;return d(),i(p,null,[_(s,{currentName:L.value},null,8,["currentName"]),m("div",{class:"itemDetailObj",innerHTML:g.value},null,8,y),g.value?N("",!0):(d(),v(t,{key:0}))],64)}}},[["__scopeId","data-v-64765b74"]]);export{b as default};
