import{h as m}from"./eventListApi-0bc79350-1782572373740v=1.0.0.js";import p from"./ScheduleInformation-14ec53f6-1782572373740v=1.0.0.js";import{a as f,_ as g}from"./index-f6f689f9-1782572373740v=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-866bb149-1782572373740v=1.0.0.js";import"./index-f94fe539-1782572373740v=1.0.0.js";import"./style-72b27c88-1782572373740v=1.0.0.js";import"./index-13a40fd6-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import"./useEventManualExport-d8fc55f4-1782572373740v=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};
