import{B as O}from"./BasicForm-dL_oCSPM.js";import{c as y}from"./schemas-Bzri1N6h.js";import{d as T,V,r as p,ay as j,ac as v,aw as w,h as D,o as F,i as S,j as m,w as k,p as N,A as P,l,S as A}from"./index-9PRMimni.js";import{u as C}from"./useForm-CKmgcynv.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./SingleImageUpload-CNx4b9eC.js";import"./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";import"./componentSetting-DVhNDBTO.js";import"./ImageUpload-DUsnro3W.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";import"./tabsView-BXskTdVh.js";import"./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";import"./propTypes-CebMRUpe.js";import"./BasicSelect-C_uwzMkE.js";import"./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";import"./dictionary-BRse4lkf.js";import"./index-DkvzUEqh.js";import"./index-kKnqLkWM.js";import"./AutoComplete-Dv1Bqed4.js";import"./TreeSelect-BZh2DeCh.js";import"./usePageCache-DluHn7Yy.js";const G={class:"pt-[0px] pb-[15px] flex items-center gap-x-3"},at=T({__name:"index",props:{currentTab:{type:String,default:""}},emits:["getData"],setup(u,{expose:d,emit:f}){const{t:_}=V(),x=f,a=u,n=p([]);j(()=>a.currentTab,t=>{v(()=>{t&&c()})});const[h,{setFieldsValue:g,getFieldsValue:b}]=C({schemas:n,labelWidth:"auto",layout:"horizontal",collapsed:!0,gridProps:{cols:5,xGap:15},showActionButtonGroup:!1}),i=p(!1);function B(){const t=b();return Object.entries(t).reduce((o,[e,r])=>(e.endsWith("_Photo")||(o[e]=r),o),{})}function c(){x("getData",(t,s)=>{i.value=s;const o=y({readOnly:i.value,currentTab:a.currentTab});n.value=o.schemas;const e={};for(const r in t)t[r]!=null&&(e[r]=t[r]);e&&g(e)})}return w(()=>{c()}),d({getData:B}),(t,s)=>{const o=A,e=O;return F(),D("div",null,[S("div",G,[m(o,{class:"text-xs text-[red]"},{default:k(()=>[N("* "+P(l(_)("hsqe.order.mustUploadOnePhoto")),1)]),_:1})]),m(e,{onRegister:l(h),"label-placement":"top"},null,8,["onRegister"])])}}});export{at as default};
