import{_ as n}from"./PageStateWrapper.vue_vue_type_script_setup_true_lang-GUjnNopq.js";import{u,_ as c}from"./Form.vue_vue_type_script_setup_true_lang-CbSrhtXN.js";import{d as f,s as l,r,W as _,f as d,h as g,i as v,c as h,v as i}from"./index-C5GbdPxY.js";import"./404-CSqhuwAV.js";import"./VImg-BlqLjeEy.js";import"./BaseForm.vue_vue_type_script_setup_true_lang-BnxGTisD.js";import"./FormLanguageSwitcher.vue_vue_type_script_setup_true_lang-U7bIUoKL.js";import"./VSelect-vtfYszIh.js";import"./VTextField-DxEUpn3-.js";import"./index-XcTykuv2.js";import"./forwardRefs-CB8NoG9r.js";import"./VList-C3dIUnee.js";import"./VAvatar-RkAR0u0e.js";import"./VMenu-CT0Fri-T.js";import"./VOverlay-DlJb3QlW.js";import"./getScrollParent-DE35ecf2.js";import"./VVirtualScroll-BUlcGoHW.js";import"./VChip-CsS_5IS6.js";import"./VForm-BZc3SavJ.js";import"./SinglePicker-BBJncbYQ.js";import"./Manager.vue_vue_type_script_setup_true_lang-wylN1Ol-.js";import"./confirmDialog-CDDTmj30.js";import"./VCard-DptrO3GI.js";import"./VDialog-Dr29crN8.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./VBreadcrumbs-CVVhuT5p.js";import"./lodash-kem28dbC.js";import"./_commonjsHelpers-_d1bhYXs.js";import"./VTooltip-DPhSY2Qe.js";import"./form-B2je8iBR.js";import"./VTextarea-DwarFG-O.js";import"./VCheckbox-rNAD_QU_.js";const Z=f({__name:"Edit",setup(w){const{getShowData:m}=u(),p=l(),o=r(!1),a=r(!1),e=r(null);return _(async()=>{o.value=!0;const t=await m(p.params.id,!0);t.status===200?e.value=t.data:t.status===404&&(a.value=!0),o.value=!1}),(t,x)=>{const s=n;return g(),d(s,{loading:i(o),"not-found":i(a)},{default:v(()=>[h(c,{action:"update",item:i(e)},null,8,["item"])]),_:1},8,["loading","not-found"])}}});export{Z as default};
