Files
machartaa_admin_dist/dist/assets/index-00b9fcee.js
T

2 lines
11 KiB
JavaScript
Raw Normal View History

2026-10-20 16:52:05 +03:30
import{_ as ee}from"./BasicMainCard-33e38576.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-aed8f5e4.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-e6a4e582.js";import{_ as ie,u as le}from"./useBaseTable-e7a67916.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-f90e25b2.js";import{I as D}from"./Icon-29e38d16.js";import{t as oe}from"./useDataTime-6e234adb.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-1ba0f9ec.js";import{g as L}from"./convert-2ad76038.js";import{g as E}from"./index-c4537a3b.js";import{M as fe}from"./index-ec322234.js";import{S as ge}from"./index-4bff02a6.js";import{C as he}from"./index-e22339b6.js";import{T as N}from"./isSymbol-355a1404.js";import{U as xe}from"./index-f4084f09.js";import"./Grid-660f1a55.js";import"./index-f22a4554.js";import"./_plugin-vue_export-helper-31e07528.js";import"./shallowequal-e0d9eafb.js";import"./index-3f6d5caa.js";import"./vnode-c4e67237.js";import"./index-73cafb1e.js";import"./useState-dcd360f8.js";import"./useRefs-5e33302c.js";import"./_flatRest-7877cdf8.js";import"./isMobile-e2e89480.js";import"./omit-f5d28cd3.js";import"./index-c136a321.js";import"./Col-f8806a10.js";import"./styleChecker-19ce40ea.js";import"./isPlainObject-e945bc1f.js";import"./usePrice-bc935b83.js";import"./index-aafc0fe2.js";import"./SearchOutlined-95278fe5.js";import"./FormItemContext-33ef1221.js";import"./index-8f2b7e91.js";import"./updateLocale-a8654270.js";import"./useMemo-ee45fb46.js";import"./lodash-27f814e6.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-36a1ea6e.js";import"./index-c8127d4e.js";import"./Badge-8a8eeb58.js";import"./isNumeric-3f69e2aa.js";import"./index-a8579634.js";import"./index-e0664925.js";import"./toArray-41940180.js";import"./pickAttrs-0ddf9a54.js";import"./index-175b83cf.js";import"./DialogWrap-394d7eb0.js";import"./index-876da578.js";import"./LeftOutlined-93011b30.js";import"./css-aae66f86.js";import"./index-83b891e2.js";import"./index-65e13d19.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-2323f568.js"),["assets/buildSupabaseQuery-2323f568.js","assets/index-1ba0f9ec.js","assets/index-cb402307.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"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاع‌رسانی ویدیویی هم در همین اسلا�