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

2 lines
11 KiB
JavaScript
Raw Normal View History

2026-10-17 17:09:50 +03:30
import{_ as ee}from"./BasicMainCard-d88efce1.js";import{_ as te}from"./BasicModal.vue_vue_type_style_index_0_lang-8b3762d2.js";import{_ as ae}from"./BasicInput.vue_vue_type_style_index_0_lang-98efdfef.js";import{_ as ie,u as le}from"./useBaseTable-b65e968f.js";import{_ as se}from"./button.vue_vue_type_style_index_0_lang-dc7b87c6.js";import{I as D}from"./Icon-b5a365b6.js";import{t as oe}from"./useDataTime-4da2f466.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-f7911a6d.js";import{g as L}from"./convert-2ad76038.js";import{g as E}from"./index-b6597d52.js";import{M as fe}from"./index-6f289e55.js";import{S as ge}from"./index-c7e434df.js";import{C as he}from"./index-da7ed9ea.js";import{T as N}from"./isSymbol-b0715776.js";import{U as xe}from"./index-2eb9a3fd.js";import"./Grid-d4d08bfb.js";import"./index-10c207c0.js";import"./_plugin-vue_export-helper-a59ccce4.js";import"./shallowequal-1fb084f0.js";import"./index-2e819d27.js";import"./vnode-160a3584.js";import"./index-c48ccee5.js";import"./useState-2a09ed7b.js";import"./useRefs-2e02a4a6.js";import"./_flatRest-dd0446c0.js";import"./isMobile-e2e89480.js";import"./omit-19fd03e3.js";import"./index-c5c3e497.js";import"./Col-a3b51974.js";import"./styleChecker-10d88d72.js";import"./isPlainObject-72a97f79.js";import"./usePrice-bc935b83.js";import"./index-31699bda.js";import"./SearchOutlined-9cce5c32.js";import"./FormItemContext-e8070c30.js";import"./index-fd54b9e9.js";import"./updateLocale-0c609c95.js";import"./useMemo-dd1208f0.js";import"./lodash-38d75800.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-c915f24e.js";import"./index-53f009ba.js";import"./index-af05d1fd.js";import"./Badge-1e5825d4.js";import"./isNumeric-3f69e2aa.js";import"./index-aafb52b8.js";import"./index-317bbaff.js";import"./toArray-a2b9a939.js";import"./pickAttrs-d4e89cbd.js";import"./index-79a6c7d7.js";import"./DialogWrap-157169f5.js";import"./index-4a17ebf7.js";import"./css-aae66f86.js";import"./index-9ce8e289.js";import"./index-06662595.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-69b5fd5d.js"),["assets/buildSupabaseQuery-69b5fd5d.js","assets/index-f7911a6d.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"}," اسلایدهای تصویر عریض صفحه خانه. بنرهای اطلاع‌رسانی ویدیویی هم در همین اسلایدشو