import{_asXe}from"./BasicModal.vue_vue_type_style_index_0_lang-1bdfd956.js";import{_asGe,uasYe}from"./useBaseTable-dfc7081d.js";import{_asQe,BasZe}from"./button.vue_vue_type_style_index_0_lang-1caad4e7.js";import{Iasre}from"./Icon-c87fac13.js";import{taset}from"./useDataTime-e1a8db4a.js";import{gasO,easH}from"./convert-67c23be8.js";import{_aspe}from"./TextPreview.vue_vue_type_script_setup_true_lang-ac0b7f6f.js";import{uastt}from"./usePrice-bc935b83.js";import{bass,dasat,gas$,raslt,hasN,vasnt,lasst,oas_,casU,aasp,wasr,easM,jasG,Hasit,kasV,FasW,iasA,nasY,Dasf,Yasot,Masrt,Nasut,Iasue,tasde}from"./index-a08997de.js";import{gasdt,uasct,aaspt,bas_t,dasmt}from"./products-193ecab8.js";import{gasQ}from"./index-4c089ded.js";import{gasft}from"./category-d36e4fe9.js";import{gasvt}from"./brand-98c472c9.js";import{lasJ}from"./lodash-aac8995a.js";import{Masgt,_asbt}from"./index-676f4182.js";import{Iasht,aasyt}from"./index-8b4fbdda.js";import{_aswt,aasxt}from"./index-3f53f7ff.js";import{Iaskt}from"./index-f02af531.js";import{_asUt,FasCt}from"./index-1b6f1280.js";import{_asIt,aasVt}from"./index-cf80abd0.js";import{aasPt}from"./fa_IR-22f438b3.js";import{Uas$t}from"./index-dcc91815.js";import{Tasce}from"./isSymbol-6a02f777.js";import{_asAt}from"./_plugin-vue_export-helper-20260c74.js";import"./index-23f9a644.js";import"./vnode-ddd966cb.js";import"./useState-4330fc6d.js";import"./FormItemContext-5c31efc9.js";import"./css-0fc50739.js";import"./DialogWrap-4549d95e.js";import"./pickAttrs-a3c5523a.js";import"./textUtils-c37780ad.js";import"./supabaseTableQuery-95762ff3.js";import"./styleChecker-0d78d27e.js";import"./isPlainObject-a1ebcbd7.js";import"./toArray-efae666c.js";import"./_flatRest-e8546dba.js";import"./Col-231bd990.js";import"./useRefs-e28c9a2f.js";constMt=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:b=>b.index+1},{title:"تصویر ",dataIndex:"original_image",key:"original_image",customRender:b=>{constK=O(b.record.original_image);returns("img",{src:K,width:60},null)}},{title:"عنوان",dataIndex:"title_fa",key:"title_fa"},{title:"کد",dataIndex:"code",key:"code"},{title:"توضیحات",dataIndex:"description",key:"description",customRender:b=>s(pe,{text:b.record.description},null)},{title:"قیمت (ریال)",dataIndex:"price",key:"price",align:"center",width:120,customRender:b=>tt(b.record.price??0,!0,"")},{title:"موجودی",dataIndex:"count",key:"count",align:"center",width:120,customRender:b=>b.record.count??0},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:b=>et(b.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],h=b=>(rt("data-v-c0be5c78"),b=b(),ut(),b),Lt={class:"flex justify-between items-center mb-4"},Ft=h(()=>p("h2",null,"محصولات",-1)),St={class:"gap-2 flex justify-center"},Bt=h(()=>p("span",null,"حذف",-1)),Dt=h(()=>p("span",null,"ویرایش",-1)),Tt={key:0,class:"text-gray-500 text-sm mt-1"},Nt=h(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," حداکثر تعداد این محصول که کاربر در یک سفارش میتواند بخرد. ",-1)),Ot=h(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," برای ارسال با پیک (داخل تهران) هزینه در زمان تحویل دریافت میشود. ",-1)),Rt=h(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," برای ارسال با پیک (داخل تهران) هزینه در زمان تحویل دریافت میشود. ",-1)),qt=h(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," حداکثر تعداد این محصول که کاربر در یک سفارش میتواند بخرد (مجموع همه تنوعها). ",-1)),zt={class:"col-span-full grid grid-cols-1 sm:grid-cols-2 gap-4"},Et={key:0},jt=h(()=>p("div",{style:{"margin-top":"8px"}},"آپلود",-1)),Ht=h(()=>p("div",null,"آپلود فایلها",-1)),Wt={class:"space-y-2"},Jt=