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

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-08-25 16:12:17 +03:30
import{_ as Y}from"./BasicModal.vue_vue_type_style_index_0_lang-0db8aa6c.js";import{_ as Q}from"./BasicInput.vue_vue_type_style_index_0_lang-75e51b7f.js";import{u as $,_ as X}from"./useBaseTable-0fdb84ad.js";import{_ as Z}from"./button.vue_vue_type_style_index_0_lang-0b499337.js";import{I as k}from"./Icon-d1d29ca3.js";import{t as ee}from"./useDataTime-234977eb.js";import{g as te,a as ae,v as se}from"./itemViews-f8956b07.js";import{_ as oe,H as ie,I as z,J as le,d as ne,i as _,y as re,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,K as N,n as ce,G as h}from"./index-0ae7844c.js";import{M as de}from"./index-6d32dcba.js";import{S as ue}from"./index-0309284c.js";import{I as me}from"./index-81a07cb9.js";import{T as V}from"./isSymbol-d0ec885c.js";import"./usePrice-bc935b83.js";import"./updateLocale-15cba891.js";import"./index-c2bca1e0.js";import"./_plugin-vue_export-helper-277b1c3f.js";import"./shallowequal-a089597b.js";import"./vnode-454b4aa7.js";import"./useState-80fd23c9.js";import"./useMemo-19000d17.js";import"./FormItemContext-e7b6ca96.js";import"./omit-e036f60c.js";import"./lodash-6746fa7b.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-630a739a.js";import"./index-ff77e42c.js";import"./Badge-3dfd39bb.js";import"./isNumeric-3f69e2aa.js";import"./index-6585bad2.js";import"./index-c2776ddf.js";import"./index-7d2db2fd.js";import"./styleChecker-918e9a0f.js";import"./index-0c08cf04.js";import"./index-02b92135.js";import"./DialogWrap-930ec585.js";import"./pickAttrs-2e870478.js";import"./css-aae66f86.js";import"./index-a2cfdf13.js";import"./toArray-592e82ea.js";import"./SearchOutlined-8b990494.js";import"./isMobile-e2e89480.js";import"./index-7090fbb0.js";import"./supabaseTableQuery-98b38f56.js";import"./isPlainObject-4659a577.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"}],F="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 z("music_macharta_videos",a,{...c,updated_at:new Date().toISOString()});return Array.isArray(l)?l:[l]}async function fe(a,c){const l=await z("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,F)}function j(a,c){return te(a,c,F)}async function ye(a){const{TableEngineRequest:c}=await oe(()=>import("./buildSupabaseQuery-ef030906.js"),["assets/buildSupabaseQuery-ef030906.js","assets/index-0ae7844c.js","assets/index-71a80eb0.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 grid-co