import{_asXe}from"./BasicModal.vue_vue_type_style_index_0_lang-050248e0.js";import{_asGe,uasQe}from"./useBaseTable-a962a6e3.js";import{_asYe}from"./button.vue_vue_type_style_index_0_lang-cf170adf.js";import{Iasre}from"./Icon-21c28098.js";import{tasZe}from"./useDataTime-64353302.js";import{gasR,easH}from"./convert-2ad76038.js";import{_aspe}from"./TextPreview.vue_vue_type_script_setup_true_lang-c64dd012.js";import{uaset}from"./usePrice-bc935b83.js";import{basn,dastt,gas$,rasat,hasO,vaslt,lasit,oas_,casU,aasp,wasr,easL,jasG,Hasnt,kasV,FasW,iasA,nasQ,Dasf,bCasst,Oasot,Pasrt,Iasue,tasde}from"./index-e0c2af95.js";import{gasut,uasdt,aasct,baspt,das_t}from"./products-46485f34.js";import{gasY}from"./index-4c1c1287.js";import{gasmt}from"./category-8b2b638d.js";import{gasft}from"./brand-6bd1ce6c.js";import{lasJ}from"./lodash-7e5e5813.js";import{Masvt,_asgt}from"./index-ba1a268c.js";import{Iasbt,basht}from"./index-ff6425ec.js";import{aasyt,baswt}from"./index-777eb3d4.js";import{Iasxt}from"./index-c6372825.js";import{Baskt}from"./index-ccf41683.js";import{_asUt,FasCt}from"./index-3f95615f.js";import{aasIt,_asVt}from"./index-d7731afc.js";import{aasPt}from"./index-71bd3b00.js";import{Uas$t}from"./index-75e285c0.js";import{Tasce}from"./isSymbol-16519357.js";import{_asAt}from"./_plugin-vue_export-helper-ede5981c.js";import"./index-55df0a19.js";import"./vnode-1d9a5f19.js";import"./updateLocale-ddc4d420.js";import"./index-bc659f42.js";import"./shallowequal-94cf06f1.js";import"./useState-9f37179f.js";import"./useMemo-8582dbbb.js";import"./FormItemContext-31ef74d8.js";import"./omit-ef5483a7.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-751e37cd.js";import"./index-3be03c15.js";import"./Badge-0df70937.js";import"./isNumeric-3f69e2aa.js";import"./index-beff19b5.js";import"./index-77288b74.js";import"./index-f062f0ac.js";import"./index-4a6bfbb1.js";import"./textUtils-c37780ad.js";import"./supabaseTableQuery-8ab5665d.js";import"./DialogWrap-3bd23522.js";import"./pickAttrs-e6a1c834.js";import"./styleChecker-fa192349.js";import"./SearchOutlined-9dbd40a5.js";import"./isPlainObject-475d5f63.js";import"./index-89e8edb2.js";import"./index-329abdc2.js";import"./css-aae66f86.js";import"./toArray-590d8ecb.js";import"./isMobile-e2e89480.js";import"./_flatRest-7f56bd12.js";import"./Col-f312538f.js";import"./index-fdf98d11.js";import"./useRefs-f2d2b66f.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=>{constK=R(b.record.original_image);returnn("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=>n(pe,{text:b.record.description},null)},{title:"قیمت (ریال)",dataIndex:"price",key:"price",align:"center",width:120,customRender:b=>et(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=>Ze(b.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],h=b=>(ot("data-v-c0be5c78"),b=b(),rt(),b),Mt={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"},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))