2026-08-25 16:12:17 +03:30
|
|
|
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-0db8aa6c.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-75e51b7f.js";import{u as H,_ as fe}from"./useBaseTable-0fdb84ad.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-0b499337.js";import{I as D}from"./Icon-d1d29ca3.js";import{t as ge}from"./useDataTime-234977eb.js";import{g as we,a as xe,v as ye}from"./itemViews-f8956b07.js";import{_ as be,H as ke,I as ee,J as Me,d as Ae,i as v,y as Ie,U as W,o as A,c as I,e as o,w as m,f as J,b as s,l as x,t as O,K as X,n as V,G as h,L as G}from"./index-0ae7844c.js";import{g as B}from"./convert-2ad76038.js";import{g as K}from"./index-b0a8155d.js";import{M as Ce}from"./index-6d32dcba.js";import{S as Y}from"./index-0309284c.js";import{T as P}from"./isSymbol-d0ec885c.js";import{U as Q}from"./index-5936ec05.js";import"./usePrice-bc935b83.js";import"./index-81a07cb9.js";import"./SearchOutlined-8b990494.js";import"./omit-e036f60c.js";import"./vnode-454b4aa7.js";import"./FormItemContext-e7b6ca96.js";import"./index-c2bca1e0.js";import"./_plugin-vue_export-helper-277b1c3f.js";import"./isPlainObject-4659a577.js";import"./index-c2776ddf.js";import"./updateLocale-15cba891.js";import"./shallowequal-a089597b.js";import"./useState-80fd23c9.js";import"./useMemo-19000d17.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-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"./isMobile-e2e89480.js";import"./index-7090fbb0.js";import"./supabaseTableQuery-98b38f56.js";import"./index-936e9d5d.js";import"./_flatRest-5e9bcb10.js";import"./Col-84747301.js";import"./index-9d9cf8fd.js";import"./useRefs-0b121885.js";const Ue=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:l=>l.record.index+1},{title:"عنوان",dataIndex:"title",key:"title"},{title:"زیرعنوان",dataIndex:"sub_title",key:"sub_title"},{title:"زمان",dataIndex:"time",key:"time",customRender:l=>{const p=l.record.time||{minutes:0,seconds:0},r=String(p.minutes??0).padStart(2,"0"),g=String(p.seconds??0).padStart(2,"0");return`${r}:${g}`}},{title:"صوت",dataIndex:"src",key:"src",customRender:l=>l.record.src?"دارد":"-"},{title:"ترتیب",dataIndex:"sort_order",key:"sort_order",align:"center"},{title:"نمایش",dataIndex:"show",key:"show",align:"center",customRender:l=>l.record.show===!1?"مخفی":"نمایش"},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:l=>ge(l.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],te="music_macharta_audio";async function Te(l){const p=await ke("music_macharta_audios",l);return Array.isArray(p)?p:[p]}async function Re(l,p){const r=await ee("music_macharta_audios",l,{...p,updated_at:new Date().toISOString()});return Array.isArray(r)?r:[r]}async function Se(l,p){const r=await ee("music_macharta_audios",l,{show:p,updated_at:new Date().toISOString()});return Array.isArray(r)?r:[r]}async function De(l){await Me("music_macharta_audios",l)}function $e(l){return xe(l,te)}function Z(l,p){return we(l,p,te)}async function Le(l){const{TableEngineRequest:p}=await be(()=>import("./buildSupabaseQuery-ef030906.js"),["assets/buildSupabaseQuery-ef030906.js","assets/index-0ae7844c.js","assets/index-71a80eb0.css"]),r={...l};!r.sort&&!r.order&&(r.sort={key:"sort_order",order:"desc"});const g=await p(r,"music_macharta_audios");try{if(Array.isArray(g==null?void 0:g.rows)){const y=r.page||1,U=r.limit||20,T=(y-1)*U,C=g.rows.map((c,$)=>({...c,title:c.title??"",sub_title:c.sub_title??"",cover:c.cover??null,src:c.src??null,time:c.time??{minutes:0,seconds:0},show:c.show??!0,sort_order:c.sort_order??0
|