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

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-10-10 13:28:46 +03:30
import{_ as G}from"./BasicModal.vue_vue_type_style_index_0_lang-c3b69d02.js";import{_ as Q}from"./BasicInput.vue_vue_type_style_index_0_lang-9a0053be.js";import{u as $,_ as X}from"./useBaseTable-e35ecaa9.js";import{_ as Z}from"./button.vue_vue_type_style_index_0_lang-b32e1136.js";import{I as k}from"./Icon-85823aa3.js";import{t as ee}from"./useDataTime-c7be2668.js";import{g as te,a as ae,v as se}from"./itemViews-902b7faf.js";import{_ as oe,I as ie,J as L,K as le,d as ne,i as _,z as re,B as U,o as g,c as x,e as i,w as n,f as O,b as s,l as v,t as T,L as N,n as ce,H as h}from"./index-90ac1a44.js";import{M as de}from"./index-a413fea1.js";import{S as ue}from"./index-93d9312f.js";import{I as me}from"./index-027c2128.js";import{T as V}from"./isSymbol-9094e8b7.js";import"./usePrice-bc935b83.js";import"./updateLocale-cec40f3d.js";import"./index-cfa536c5.js";import"./_plugin-vue_export-helper-8ee86600.js";import"./shallowequal-36516cfd.js";import"./vnode-b0455438.js";import"./useState-64f2823f.js";import"./useMemo-9928f29b.js";import"./FormItemContext-64f846db.js";import"./omit-84d71e15.js";import"./lodash-07b825be.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-fb5041dc.js";import"./index-95b42b3e.js";import"./Badge-54a9cc4e.js";import"./isNumeric-3f69e2aa.js";import"./index-5f5223b4.js";import"./index-c0eeee91.js";import"./index-788f312f.js";import"./styleChecker-1445806f.js";import"./index-90f5ddad.js";import"./index-9869a66e.js";import"./DialogWrap-6616a498.js";import"./pickAttrs-ba13e92c.js";import"./css-aae66f86.js";import"./index-a2503c07.js";import"./toArray-3936b2d5.js";import"./SearchOutlined-0eaaa97a.js";import"./isMobile-e2e89480.js";import"./index-bb804fdd.js";import"./supabaseTableQuery-19bc7c1f.js";import"./isPlainObject-aab367ce.js";const _e=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:a=>a.record.index+1},{title:"عنوان",dataIndex:"title",key:"title"},{title:"کد embed",dataIndex:"embed_code",key:"embed_code",customRender:a=>a.record.embed_code?"دارد":"-"},{title:"ترتیب",dataIndex:"sort_order",key:"sort_order",align:"center"},{title:"نمایش",dataIndex:"show",key:"show",align:"center",customRender:a=>a.record.show===!1?"مخفی":"نمایش"},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:a=>ee(a.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],j="music_macharta_video";async function ve(a){const c=await ie("music_macharta_videos",a);return Array.isArray(c)?c:[c]}async function pe(a,c){const l=await L("music_macharta_videos",a,{...c,updated_at:new Date().toISOString()});return Array.isArray(l)?l:[l]}async function fe(a,c){const l=await L("music_macharta_videos",a,{show:c,updated_at:new Date().toISOString()});return Array.isArray(l)?l:[l]}async function he(a){await le("music_macharta_videos",a)}function we(a){return ae(a,j)}function z(a,c){return te(a,c,j)}async function ye(a){const{TableEngineRequest:c}=await oe(()=>import("./buildSupabaseQuery-c046d1a6.js"),["assets/buildSupabaseQuery-c046d1a6.js","assets/index-90ac1a44.js","assets/index-0643191e.css"]),l={...a};!l.sort&&!l.order&&(l.sort={key:"sort_order",order:"desc"});const m=await c(l,"music_macharta_videos");try{if(Array.isArray(m==null?void 0:m.rows)){const b=l.page||1,p=l.limit||20,w=(b-1)*p,y=m.rows.map((d,u)=>({...d,title:d.title??"",embed_code:d.embed_code??"",show:d.show??!0,sort_order:d.sort_order??0,index:w+u}));return{...m,rows:y}}}catch(b){console.error("[getMusicMachartaVideosTable]",b)}return m}const be={class:"h-full"},ge={class:"gap-2 flex justify-center"},xe=s("span",null,"بازدیدها",-1),ke=s("span",null,"حذف",-1),Ve=s("span",null,"ویرایش",-1),Ie={class:"space-y-4"},Me=s("div",{class:"mb-1 text-sm text-gray-600"},"عنوان *",-1),Ce=s("div",{class:"mb-1 text-sm text-gray-600"},"ترتیب نمایش",-1),Te=s("div",{class:"mb-1 text-sm text-gray-600"},"کد embed *",-1),Ae={class:"flex justify-end"},Re={key:0,class:"space-y-4"},Be={class:"grid gr