import{_asGe}from"./BasicModal.vue_vue_type_style_index_0_lang-89096b34.js";import{_asXe,uasQe}from"./useBaseTable-6e9510e8.js";import{_asYe,BasZe}from"./button.vue_vue_type_style_index_0_lang-5f0cd149.js";import{Iasre}from"./Icon-70c9ae01.js";import{taset}from"./useDataTime-6ae49ef1.js";import{gasR,easW}from"./convert-67c23be8.js";import{_aspe}from"./TextPreview.vue_vue_type_script_setup_true_lang-b33f59ef.js";import{uastt}from"./usePrice-bc935b83.js";import{bass,dasat,gas$,raslt,hasO,vasnt,lasst,oas_,casU,aasp,wasr,easL,jasX,Gasit,kasV,FasH,iasA,nasQ,Dasf,Wasot,Kasrt,Lasut,Iasue,tasde}from"./index-6fc9db5c.js";import{gasdt,uasct,aaspt,bas_t,dasmt}from"./products-58f7e386.js";import{gasY}from"./index-f305fb84.js";import{gasft}from"./category-823cab76.js";import{gasvt}from"./brand-1c34bcc4.js";import{lasK}from"./lodash-dd4aed3c.js";import{Masgt,_asbt}from"./index-2eaa3806.js";import{Iasht,_asyt}from"./index-12dedf46.js";import{_aswt,aasxt}from"./index-f484a862.js";import{_askt}from"./index-85eaec02.js";import{_asUt,FasCt}from"./index-aa1f6968.js";import{_asIt,aasVt}from"./index-0a01cfeb.js";import{SasPt}from"./fa_IR-8e45c112.js";import{Uas$t}from"./index-d4d3cfe0.js";import{Tasce}from"./shallowequal-d7d2e144.js";import{_asAt}from"./_plugin-vue_export-helper-3dabe77c.js";import"./index-6facb7d6.js";import"./vnode-0d098108.js";import"./styleChecker-1dc569db.js";import"./useState-ea7c68cd.js";import"./FormItemContext-38473452.js";import"./textUtils-c37780ad.js";import"./supabaseTableQuery-95762ff3.js";import"./pickAttrs-a5362724.js";import"./isPlainObject-0439de47.js";import"./toArray-e26a30d1.js";import"./Col-215da3e1.js";import"./useRefs-c3daed52.js";constLt=[{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=>{constJ=R(b.record.original_image);returns("img",{src:J,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),Mt={class:"flex justify-between items-center mb-4"},St=h(()=>p("h2",null,"محصولات",-1)),Ft={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"},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)),Nt=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)),Wt=h(()=>p("div",null,"آپلود فایلها",-1)),Ht={class:"space-y-2"},Kt={class:"flex justify-between items-center gap-2 mb-2"},Jt={class:"text-smtext-gray-500