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

2 lines
11 KiB
JavaScript
Raw Normal View History

2026-10-14 16:25:33 +03:30
import{_ as ee}from"./BasicMainCard-104c14b2.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-c75cb8ba.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-eec084de.js";import{_ as ie,u as le}from"./useBaseTable-dfbf3762.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-5dd5fad9.js";import{I as D}from"./Icon-0c593d03.js";import{t as oe}from"./useDataTime-9987a66e.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-a94f140f.js";import{g as A}from"./convert-2ad76038.js";import{g as E}from"./index-396f8cde.js";import{M as fe}from"./index-cadfe89f.js";import{S as ge}from"./index-a08f6658.js";import{C as he}from"./index-02db9106.js";import{T as N}from"./isSymbol-0faad147.js";import{U as xe}from"./index-b2be5cd6.js";import"./Grid-33e7139e.js";import"./index-e5d8b47c.js";import"./_plugin-vue_export-helper-3751a4c9.js";import"./shallowequal-311bf7d9.js";import"./index-fa5a0887.js";import"./vnode-d8d89b8b.js";import"./index-d139af20.js";import"./useState-75e49d81.js";import"./useRefs-14e054ef.js";import"./_flatRest-38d88d03.js";import"./isMobile-e2e89480.js";import"./omit-09913e6a.js";import"./index-53e81bb5.js";import"./Col-098f825e.js";import"./styleChecker-cbf8a3c6.js";import"./isPlainObject-fa7524bd.js";import"./usePrice-bc935b83.js";import"./index-9bf19e54.js";import"./SearchOutlined-2c05f948.js";import"./FormItemContext-d446a85f.js";import"./index-da3c4531.js";import"./updateLocale-63da7352.js";import"./useMemo-e6667500.js";import"./lodash-b667f7ec.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-988f9693.js";import"./index-94f097c0.js";import"./Badge-64556311.js";import"./isNumeric-3f69e2aa.js";import"./index-a10a5cee.js";import"./index-1e5db048.js";import"./toArray-3323d384.js";import"./pickAttrs-d12003ac.js";import"./index-f9445381.js";import"./DialogWrap-1f925fe5.js";import"./index-6838bdc5.js";import"./css-aae66f86.js";import"./index-12b232e8.js";import"./index-00238e03.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-7024d485.js"),["assets/buildSupabaseQuery-7024d485.js","assets/index-a94f140f.js","assets/index-ceed3b68.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"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاع‌رسانی ویدیویی هم در همین اسلایدشو نمایش داده می‌