2026-08-22 14:52:19 +03:30
|
|
|
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-20cc468f.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-4f908c47.js";import{u as H,_ as fe}from"./useBaseTable-1184a002.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-cbfd9667.js";import{I as S}from"./Icon-0c226cc8.js";import{t as ge}from"./useDataTime-35d3ce8c.js";import{g as we,a as xe,v as ye}from"./itemViews-681ab90c.js";import{_ as be,G as ke,H as ee,I as Me,d as Ae,g as v,E as Ie,T as W,o as A,c as I,b as o,w as m,e as J,a as s,j as x,t as O,J as X,k as V,D as h,K as G}from"./index-35c19078.js";import{g as B}from"./convert-2ad76038.js";import{g as K}from"./index-65ebcbaa.js";import{M as Ce}from"./index-d1bea9c9.js";import{S as Y}from"./index-c135e3cd.js";import{T as E}from"./isSymbol-76912a30.js";import{U as Q}from"./index-b998e211.js";import"./usePrice-bc935b83.js";import"./index-e2b66426.js";import"./SearchOutlined-fd97bf7f.js";import"./omit-fea2187f.js";import"./vnode-bd016db8.js";import"./FormItemContext-c59740e7.js";import"./index-317dfb98.js";import"./_plugin-vue_export-helper-b8aa26f1.js";import"./isPlainObject-9fc066ac.js";import"./index-81c6c557.js";import"./updateLocale-674603f1.js";import"./shallowequal-336924ae.js";import"./useState-0b0c0b26.js";import"./useMemo-141475be.js";import"./lodash-e3d7e6b8.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-aa5cbf20.js";import"./index-9c958bd1.js";import"./Badge-5aec0f5b.js";import"./isNumeric-3f69e2aa.js";import"./index-597067d3.js";import"./index-3e7c49ac.js";import"./styleChecker-5378d544.js";import"./index-53a07be2.js";import"./index-e39a0c4e.js";import"./DialogWrap-7ea92471.js";import"./pickAttrs-2a6a34d0.js";import"./css-aae66f86.js";import"./index-0cfe3fb2.js";import"./toArray-f7bbf4fe.js";import"./isMobile-e2e89480.js";import"./index-70f42a71.js";import"./supabaseTableQuery-b8071eb6.js";import"./index-727899c3.js";import"./_flatRest-ce9c6e5e.js";import"./Col-93e193e7.js";import"./index-1016d40d.js";import"./useRefs-d20fccdf.js";const Te=[{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 Ue(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 De(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 Se(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-d68eb591.js"),["assets/buildSupabaseQuery-d68eb591.js","assets/index-35c19078.js","assets/index-a54d32f7.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,T=r.limit||20,U=(y-1)*T,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
|