import{h as m}from"./eventListApi-caa95bfe-1782729249161v=1.0.0.js";import p from"./ScheduleInformation-c5cad94c-1782729249161v=1.0.0.js";import{a as f,_ as g}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{y as R,r as n,c as a,w as h,m as C,z as E,A as y,B as I,M as S,R as w,u as i}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./index-1dbedb0f-1782729249161v=1.0.0.js";import"./style-368a93d4-1782729249161v=1.0.0.js";import"./index-d7758263-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import"./useEventManualExport-eb5039d1-1782729249161v=1.0.0.js";const x={class:"competition-rules-container"},B={class:"competition-rules-content"},F=R({__name:"detail",setup(J){const u=f(),e=n({}),r=n(1),s=n(null),c=n(null),o=n("create_module"),l=a(()=>u.query.id),v=n([]);a(()=>o.value==="create_module"&&r.value==2||o.value==="info_add");let d={create_module:0,info_add:2,word_not_edit:3,word_finish:3};a(()=>d[o.value]),h(()=>{if(e.value){s.value=e.value.eventRegulationContent,c.value=e.value.eventRegulationFieldJson,o.value=e.value.eventRegulationStatus;try{v.value=JSON.parse(e.value.eventRegulationFieldJson)}catch{}}});const _=async()=>{let t=await m(l.value);t.code===0&&(t.data.eventRegulationStatus||(t.data.eventRegulationStatus="create_module"),e.value=t.data)};return C(()=>{_()}),(t,N)=>(E(),y("div",x,[I("div",B,[S(" {{ eventInfo }} eventRegulationContent "),w(p,{"event-id":i(l),content:i(s),isEventRegulation:i(e).isEventRegulation},null,8,["event-id","content","isEventRegulation"])])]))}});const b=g(F,[["__scopeId","data-v-02311874"]]);export{b as default};
