Files
machartaa_admin_dist/dist/assets/index-bbd8889f.js
T

2 lines
11 KiB
JavaScript
Raw Normal View History

2026-10-04 13:31:09 +03:30
import{_ as ee}from"./BasicMainCard-ff1543bd.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-6296deb9.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-06536e2e.js";import{_ as ie,u as le}from"./useBaseTable-e18d3b32.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-fbfa965d.js";import{I as D}from"./Icon-671f08f9.js";import{t as oe}from"./useDataTime-206d8d2e.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-c678e119.js";import{g as A}from"./convert-2ad76038.js";import{g as E}from"./index-af384b16.js";import{M as fe}from"./index-66da2c76.js";import{S as ge}from"./index-5203b45e.js";import{C as he}from"./index-05e85885.js";import{T as N}from"./isSymbol-5130882b.js";import{U as xe}from"./index-ff90b762.js";import"./Grid-192c1e72.js";import"./index-88858982.js";import"./_plugin-vue_export-helper-edd5ed68.js";import"./shallowequal-93b92d94.js";import"./index-27b4bb6d.js";import"./vnode-34fe2aaf.js";import"./index-ea10bb13.js";import"./useState-fb1fd992.js";import"./useRefs-d469f03d.js";import"./_flatRest-89cece1c.js";import"./isMobile-e2e89480.js";import"./omit-30cc2465.js";import"./index-2a1871d2.js";import"./Col-65d77001.js";import"./styleChecker-c202e4d7.js";import"./isPlainObject-2f8cd8cc.js";import"./usePrice-bc935b83.js";import"./index-e517c667.js";import"./SearchOutlined-445bfd70.js";import"./FormItemContext-53695780.js";import"./index-c5016c96.js";import"./updateLocale-e9df593e.js";import"./useMemo-3527b8f5.js";import"./lodash-2343a0ae.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-0d6b57d1.js";import"./index-064013c2.js";import"./Badge-b566fed9.js";import"./isNumeric-3f69e2aa.js";import"./index-d768dcac.js";import"./index-01af60d8.js";import"./toArray-acd138e5.js";import"./pickAttrs-09168c62.js";import"./index-31ed7972.js";import"./DialogWrap-0297f46d.js";import"./index-d80ea252.js";import"./css-aae66f86.js";import"./index-679d69b0.js";import"./index-e3658ae2.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-72aac971.js"),["assets/buildSupabaseQuery-72aac971.js","assets/index-c678e119.js","assets/index-0d7ad6b5.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"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاع‌رسانی ویدیویی هم در همین اسلایدشو نمایش داده می‌