Files
machartaa_admin_dist/dist/assets/index-90ad0698.js
T

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2026-08-23 20:07:06 +03:30
import{_ as Y}from"./BasicModal.vue_vue_type_style_index_0_lang-e1cd5348.js";import{_ as Q}from"./BasicInput.vue_vue_type_style_index_0_lang-0f7fe263.js";import{u as $,_ as X}from"./useBaseTable-d7cd0f4c.js";import{_ as Z}from"./button.vue_vue_type_style_index_0_lang-5ec31ef5.js";import{I as k}from"./Icon-98831d4d.js";import{t as ee}from"./useDataTime-fe4b1957.js";import{g as te,a as ae,v as se}from"./itemViews-97138448.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-ffa60a07.js";import{M as de}from"./index-d1c80ae6.js";import{S as ue}from"./index-567b7465.js";import{I as me}from"./index-f396abcf.js";import{T as V}from"./isSymbol-6d79c27a.js";import"./usePrice-bc935b83.js";import"./updateLocale-d02f2975.js";import"./index-f66de646.js";import"./_plugin-vue_export-helper-30c9b7f0.js";import"./shallowequal-01dca49b.js";import"./vnode-57257037.js";import"./useState-377df27f.js";import"./useMemo-6bc58734.js";import"./FormItemContext-73e37c2d.js";import"./omit-8be067f7.js";import"./lodash-f10c309b.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-df682920.js";import"./index-4ed74117.js";import"./Badge-697bc2f0.js";import"./isNumeric-3f69e2aa.js";import"./index-1fda93f9.js";import"./index-321fdf78.js";import"./index-f5f9d56c.js";import"./styleChecker-76ccead7.js";import"./index-771c6b16.js";import"./index-cae1f6fd.js";import"./DialogWrap-c8f763fd.js";import"./pickAttrs-4d40f82c.js";import"./css-aae66f86.js";import"./index-4243bdee.js";import"./toArray-fdacf69b.js";import"./SearchOutlined-6637041c.js";import"./isMobile-e2e89480.js";import"./index-61d3d393.js";import"./supabaseTableQuery-f60c02e5.js";import"./isPlainObject-3a12fb85.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-a38f3089.js"),["assets/buildSupabaseQuery-a38f3089.js","assets/index-ffa60a07.js","assets/index-82ea5f16.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