2026-10-10 10:47:47 +03:30
|
|
|
|
import{_ as ee}from"./BasicMainCard-f15cc82d.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-3186fd13.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-8f3a56f0.js";import{_ as ie,u as le}from"./useBaseTable-e684a9eb.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-de1581fe.js";import{I as D}from"./Icon-623de3ea.js";import{t as oe}from"./useDataTime-284d8334.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-185c08ed.js";import{g as A}from"./convert-2ad76038.js";import{g as E}from"./index-58ff633a.js";import{M as fe}from"./index-2573091c.js";import{S as ge}from"./index-5a721f2f.js";import{C as he}from"./index-33777d70.js";import{T as N}from"./isSymbol-18d6b370.js";import{U as xe}from"./index-c950ff98.js";import"./Grid-337aeaf9.js";import"./index-c3741845.js";import"./_plugin-vue_export-helper-e26fbd9a.js";import"./shallowequal-6622fb79.js";import"./index-1f485cc0.js";import"./vnode-8a371720.js";import"./index-a2809ce1.js";import"./useState-50bb8c1f.js";import"./useRefs-b56c6fdc.js";import"./_flatRest-947e7901.js";import"./isMobile-e2e89480.js";import"./omit-d93eaa18.js";import"./index-229a6022.js";import"./Col-2d184441.js";import"./styleChecker-7bb1c6f5.js";import"./isPlainObject-5638f45d.js";import"./usePrice-bc935b83.js";import"./index-a29d0cc7.js";import"./SearchOutlined-d9b8def2.js";import"./FormItemContext-2d3e7341.js";import"./index-f463cb03.js";import"./updateLocale-d0f4ef4d.js";import"./useMemo-4f3c1eb4.js";import"./lodash-0633e973.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-e9f1c563.js";import"./index-9383b001.js";import"./Badge-51142f0a.js";import"./isNumeric-3f69e2aa.js";import"./index-9e9f857b.js";import"./index-0ee37254.js";import"./toArray-da31f78e.js";import"./pickAttrs-e062aa3e.js";import"./index-77ae4c49.js";import"./DialogWrap-9863a7c0.js";import"./index-975de3f6.js";import"./css-aae66f86.js";import"./index-82269ca5.js";import"./index-b2f5f66c.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-32cb26f7.js"),["assets/buildSupabaseQuery-32cb26f7.js","assets/index-185c08ed.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"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاعرسانی ویدیویی هم در همین اسلایدشو نمایش داده می
|