2026-10-10 13:00:20 +03:30
|
|
|
|
import{_ as ee}from"./BasicMainCard-b162b1c4.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-a4f4e215.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-b95b808e.js";import{_ as ie,u as le}from"./useBaseTable-2ab18557.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-1d790c18.js";import{I as D}from"./Icon-82d1568b.js";import{t as oe}from"./useDataTime-54c17809.js";import{_ as ne,I as re,J as ue,K as ce,d as de,i as g,o as C,c as R,e as o,w as d,b as i,f as j,L as me,l as y,t as pe,n as P,C as _e,H as h,M as ve}from"./index-b1a7e04b.js";import{g as A}from"./convert-2ad76038.js";import{g as E}from"./index-eed351fd.js";import{M as fe}from"./index-95736a95.js";import{S as ge}from"./index-abe83bbb.js";import{C as he}from"./index-d8d70cfa.js";import{T as N}from"./isSymbol-8bb1a5fc.js";import{U as xe}from"./index-b2a473c2.js";import"./Grid-bde7d306.js";import"./index-89d97954.js";import"./_plugin-vue_export-helper-bc5e645a.js";import"./shallowequal-8317aeac.js";import"./index-3adb8492.js";import"./vnode-cf87e7d8.js";import"./index-a5f1405d.js";import"./useState-bee297fc.js";import"./useRefs-8cde84b1.js";import"./_flatRest-49c0ef8d.js";import"./isMobile-e2e89480.js";import"./omit-8d80653a.js";import"./index-53cb41a6.js";import"./Col-b5ed65ce.js";import"./styleChecker-e7996752.js";import"./isPlainObject-aea507b4.js";import"./usePrice-bc935b83.js";import"./index-40ad5e11.js";import"./SearchOutlined-280cd434.js";import"./FormItemContext-75ce584c.js";import"./index-3c78ebad.js";import"./updateLocale-7460d5f0.js";import"./useMemo-f1dd6d43.js";import"./lodash-a3cc5b11.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-dbbf8b2d.js";import"./index-ca8dc14f.js";import"./Badge-815f7351.js";import"./isNumeric-3f69e2aa.js";import"./index-62a1d374.js";import"./index-c03866b7.js";import"./toArray-7c7c3b23.js";import"./pickAttrs-6c8634eb.js";import"./index-35b107f8.js";import"./DialogWrap-06d91612.js";import"./index-06b581ca.js";import"./css-aae66f86.js";import"./index-b14e1723.js";import"./index-32cf5d9b.js";const V=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:s=>s.record.index+1},{title:"عنوان",dataIndex:"title",key:"title"},{title:"لینک",dataIndex:"link_url",key:"link_url",customRender:s=>s.record.link_url||"-"},{title:"ترتیب",dataIndex:"sort_order",key:"sort_order",align:"center",width:90,customRender:s=>String(s.record.sort_order??0)},{title:"فعال",dataIndex:"active",key:"active",align:"center",width:90,customRender:s=>s.record.active!==!1?"بله":"خیر"},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:s=>oe(s.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}];async function ye(s){const f=await re("home_slider_slides",s);return Array.isArray(f)?f:[f]}async function q(s,f){const m=await ue("home_slider_slides",s,{...f,updated_at:new Date().toISOString()});return Array.isArray(m)?m:[m]}async function ke(s){await ce("home_slider_slides",s)}async function be(s){const{TableEngineRequest:f}=await ne(()=>import("./buildSupabaseQuery-75615d81.js"),["assets/buildSupabaseQuery-75615d81.js","assets/index-b1a7e04b.js","assets/index-0643191e.css"]),m={...s};!m.sort&&!m.order&&(m.order="sort_order");const _=await f(m,"home_slider_slides");try{if(Array.isArray(_==null?void 0:_.rows)){const T=m.page||1,k=m.limit||20,w=(T-1)*k,I=_.rows.map((r,x)=>({...r,title:r.title??"",image:r.image??null,link_url:r.link_url??null,sort_order:Number(r.sort_order??0),active:r.active!==!1,index:w+x}));return{..._,rows:I}}}catch(T){console.error("[getHomeSliderTable]",T)}return _}const we={class:"flex flex-wrap justify-between items-start gap-3 mb-4"},Ie=i("div",null,[i("h2",{class:"m-0"},"اسلایدر صفحه خانه"),i("p",{class:"m-0 mt-1 text-sm text-gray-500"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاعرسانی ویدیویی هم در همین اسلایدشو نمایش داده می
|