2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
import{_ as ee}from"./BasicMainCard-7b1fa79c.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-3870ceab.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-5017efc1.js";import{_ as ie,u as le}from"./useBaseTable-d607863f.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-90a36b25.js";import{I as D}from"./Icon-16a7c1f0.js";import{t as oe}from"./useDataTime-784b7128.js";import{_ as ne,O as re,P as ue,Q as ce,d as me,i as g,o as C,c as R,e as o,w as m,b as i,f as j,R as de,l as y,t as pe,n as A,C as _e,H as h,S as ve}from"./index-0127add0.js";import{g as L}from"./convert-2ad76038.js";import{g as E}from"./index-98b2baa9.js";import{M as fe}from"./index-a21bea9f.js";import{S as ge}from"./index-9c57cbfd.js";import{C as he}from"./index-c971ffa4.js";import{T as N}from"./isSymbol-102dac7e.js";import{U as xe}from"./index-919cae97.js";import"./Grid-6ef11710.js";import"./index-a1a9d49a.js";import"./_plugin-vue_export-helper-10c790be.js";import"./shallowequal-327a9d42.js";import"./index-a6785c60.js";import"./vnode-e48a529a.js";import"./index-5d23b372.js";import"./useState-ab7e8e52.js";import"./useRefs-5dfcc3e3.js";import"./_flatRest-56c6e14a.js";import"./isMobile-e2e89480.js";import"./omit-a9878f04.js";import"./index-087c87e8.js";import"./Col-8db1abbb.js";import"./styleChecker-6ecca756.js";import"./isPlainObject-cdd64a7d.js";import"./usePrice-bc935b83.js";import"./index-30500426.js";import"./SearchOutlined-6c1cc274.js";import"./FormItemContext-99d81d38.js";import"./index-163f964f.js";import"./updateLocale-1362a15b.js";import"./useMemo-531a1ef9.js";import"./lodash-572b39f3.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-1007497c.js";import"./index-e8339542.js";import"./Badge-8884c4f5.js";import"./isNumeric-3f69e2aa.js";import"./index-def9ba08.js";import"./index-55a09ddc.js";import"./toArray-2923cdda.js";import"./pickAttrs-05046885.js";import"./index-827c0a37.js";import"./DialogWrap-81711a5a.js";import"./index-83d7ccb3.js";import"./LeftOutlined-dfa284aa.js";import"./css-aae66f86.js";import"./index-a8e6060b.js";import"./index-f3e74362.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 d=await ue("home_slider_slides",s,{...f,updated_at:new Date().toISOString()});return Array.isArray(d)?d:[d]}async function ke(s){await ce("home_slider_slides",s)}async function be(s){const{TableEngineRequest:f}=await ne(()=>import("./buildSupabaseQuery-91e30fb5.js"),["assets/buildSupabaseQuery-91e30fb5.js","assets/index-0127add0.js","assets/index-ceed3b68.css"]),d={...s};!d.sort&&!d.order&&(d.order="sort_order");const _=await f(d,"home_slider_slides");try{if(Array.isArray(_==null?void 0:_.rows)){const T=d.page||1,k=d.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"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاعرسانی ویدیویی هم در همین اسلا�
|