import{_asXe}from"./BasicModal.vue_vue_type_style_index_0_lang-407efba3.js";import{_asGe,uasQe}from"./useBaseTable-24f4f2e2.js";import{_asYe,BasZe}from"./button.vue_vue_type_style_index_0_lang-27efd666.js";import{Iasre}from"./Icon-6341c6d7.js";import{taset}from"./useDataTime-7ae4955d.js";import{gasR,easH}from"./convert-67c23be8.js";import{_aspe}from"./TextPreview.vue_vue_type_script_setup_true_lang-2f7c25ba.js";import{uastt}from"./usePrice-bc935b83.js";import{bass,dasat,gas$,raslt,hasO,vasnt,lasst,oas_,casx,aasp,wasr,easL,jasG,Gasit,kasV,FasJ,iasA,nasQ,Dasf,Xasot,Jasrt,Kasut,Hasue,tasde}from"./index-1bce333c.js";import{gasdt,uasct,aaspt,bas_t,dasmt}from"./products-47fb6ccd.js";import{gasY}from"./index-4665983e.js";import{gasft}from"./category-39b47d91.js";import{gasvt}from"./brand-32bb47bf.js";import{lasK}from"./lodash-7eda9a39.js";import{Masgt,_asbt}from"./index-5c225384.js";import{Iasht,_asyt}from"./index-88c28232.js";import{_aswt,aaskt}from"./index-a87160dc.js";import{_asxt}from"./index-7eb4c959.js";import{_asUt,FasCt}from"./index-341f08f3.js";import{_asIt,aasVt}from"./index-cb94b65a.js";import{SasPt}from"./fa_IR-7585613a.js";import{Uas$t}from"./index-5086b76f.js";import{Tasce}from"./shallowequal-1541c82f.js";import{_asAt}from"./_plugin-vue_export-helper-3f2269c4.js";import"./index-7d6b4818.js";import"./vnode-aeac980e.js";import"./Col-9a22bf06.js";import"./useState-3936625c.js";import"./FormItemContext-3ee2389e.js";import"./supabaseTableQuery-95762ff3.js";import"./pickAttrs-fbeac5f6.js";import"./isPlainObject-cf478c35.js";import"./toArray-4db0bbfe.js";import"./useRefs-1a04203f.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=>{constW=R(b.record.original_image);returns("img",{src:W,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"}],U=b=>(rt("data-v-a48a5153"),b=b(),ut(),b),Mt={class:"flex justify-between items-center mb-4"},St=U(()=>p("h2",null,"محصولات",-1)),Ft={class:"gap-2 flex justify-center"},Bt=U(()=>p("span",null,"حذف",-1)),Dt=U(()=>p("span",null,"ویرایش",-1)),Tt={key:0,class:"text-gray-500 text-sm mt-1"},Ot=U(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," حداکثر تعداد این محصول که کاربر در یک سفارش میتواند بخرد. ",-1)),Rt=U(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," برای ارسال با پیک (داخل تهران) هزینه در زمان تحویل دریافت میشود. ",-1)),Nt=U(()=>p("div",{class:"text-gray-500 text-sm mt-1"}," برای ارسال با پیک (داخل تهران) هزینه در زمان تحویل دریافت میشود. ",-1)),qt=U(()=>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=U(()=>p("div",{style:{"margin-top":"8px"}},"آپلود",-1)),Ht=U(()=>p("div",null,"آپلود فایلها",-1)),Jt={class:"space-y-2"},Kt={class:"flex justify-between items-center gap-2 mb-2"},Wt={class:"text-sm text-gray-500"},Xt={key:3,class:"text-amber-600 text-sm mt-1"},Gt={class:"mt-2f