2026-09-19 11:51:19 +03:30
|
|
|
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-73f8a39e.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-4e4a82fb.js";import{u as H,_ as fe}from"./useBaseTable-fed341a8.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-76fea031.js";import{I as D}from"./Icon-66010218.js";import{t as ge}from"./useDataTime-ba62eb36.js";import{g as we,a as xe,v as ye}from"./itemViews-1f09b202.js";import{_ as be,H as ke,I as ee,J as Me,d as Ae,i as v,y as Ie,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-e064ffac.js";import{g as B}from"./convert-2ad76038.js";import{g as K}from"./index-1d8e1887.js";import{M as Ce}from"./index-418d2c16.js";import{S as Y}from"./index-5791312b.js";import{T as P}from"./isSymbol-dc94e500.js";import{U as Q}from"./index-227d8909.js";import"./usePrice-bc935b83.js";import"./index-3d02255e.js";import"./SearchOutlined-bce29925.js";import"./omit-98a5c881.js";import"./vnode-43e0532a.js";import"./FormItemContext-ea5e629b.js";import"./index-c6cc46d7.js";import"./_plugin-vue_export-helper-c2b02d20.js";import"./isPlainObject-118a5a84.js";import"./index-2f676c29.js";import"./updateLocale-53d85368.js";import"./shallowequal-9a59fe48.js";import"./useState-1df7da74.js";import"./useMemo-118b7fdd.js";import"./lodash-77052907.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-094732f6.js";import"./index-a1f6487e.js";import"./Badge-31351815.js";import"./isNumeric-3f69e2aa.js";import"./index-6b63d7e6.js";import"./index-1320e6a3.js";import"./styleChecker-a89d8927.js";import"./index-cf4a2322.js";import"./index-01bd72a1.js";import"./DialogWrap-934116e0.js";import"./pickAttrs-20fc50b7.js";import"./css-aae66f86.js";import"./index-020f9f38.js";import"./toArray-03404447.js";import"./isMobile-e2e89480.js";import"./index-4cde3ed4.js";import"./supabaseTableQuery-e8c06eb0.js";import"./index-d6ed4c52.js";import"./_flatRest-0e75a214.js";import"./Col-e0b57a55.js";import"./index-def436d1.js";import"./useRefs-320b3f3d.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 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-3ca34e46.js"),["assets/buildSupabaseQuery-3ca34e46.js","assets/index-e064ffac.js","assets/index-7c005fab.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,inde
|