Files
machartaa_admin_dist/dist/assets/index-30f8f6f6.js
T

2 lines
14 KiB
JavaScript
Raw Normal View History

2026-08-25 15:58:39 +03:30
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-5e13aafb.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-0a0d6ad5.js";import{u as H,_ as fe}from"./useBaseTable-fbe43a97.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-56e9b09f.js";import{I as D}from"./Icon-7c626614.js";import{t as ge}from"./useDataTime-75033b2a.js";import{g as we,a as xe,v as ye}from"./itemViews-d1fd2ecd.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-864e73c5.js";import{g as B}from"./convert-2ad76038.js";import{g as K}from"./index-ee82d0b5.js";import{M as Ce}from"./index-e0e66192.js";import{S as Y}from"./index-bd9719ff.js";import{T as P}from"./isSymbol-cbbd997a.js";import{U as Q}from"./index-00a79bb5.js";import"./usePrice-bc935b83.js";import"./index-7c172d43.js";import"./SearchOutlined-8ea30c34.js";import"./omit-ab9263d6.js";import"./vnode-81e10d7c.js";import"./FormItemContext-37273d98.js";import"./index-69195e76.js";import"./_plugin-vue_export-helper-a65526b0.js";import"./isPlainObject-13142948.js";import"./index-e764b6ae.js";import"./updateLocale-71589e17.js";import"./shallowequal-c06f2dba.js";import"./useState-85b22590.js";import"./useMemo-652a8e82.js";import"./lodash-ba10e651.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-781130e9.js";import"./index-974d8184.js";import"./Badge-7246b1a5.js";import"./isNumeric-3f69e2aa.js";import"./index-3799ba3b.js";import"./index-01d39c58.js";import"./styleChecker-4198f097.js";import"./index-b21b8492.js";import"./index-e8adaad2.js";import"./DialogWrap-8cebf5f4.js";import"./pickAttrs-bb0043f0.js";import"./css-aae66f86.js";import"./index-72f07d1b.js";import"./toArray-21522b5d.js";import"./isMobile-e2e89480.js";import"./index-07df2e8f.js";import"./supabaseTableQuery-21eb0a11.js";import"./index-391eda35.js";import"./_flatRest-2445814a.js";import"./Col-55712802.js";import"./index-041723b0.js";import"./useRefs-d7f22ed1.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-f6fdad41.js"),["assets/buildSupabaseQuery-f6fdad41.js","assets/index-864e73c5.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