Files
machartaa_admin_dist/dist/assets/index-85f7a09a.js
T

2 lines
14 KiB
JavaScript
Raw Normal View History

2026-10-19 15:32:02 +03:30
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-3870ceab.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-5017efc1.js";import{u as H,_ as fe}from"./useBaseTable-d607863f.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-90a36b25.js";import{I as D}from"./Icon-16a7c1f0.js";import{t as ge}from"./useDataTime-784b7128.js";import{g as we,a as xe,v as ye}from"./itemViews-e9b450d9.js";import{_ as be,O as ke,P as ee,Q as Me,d as Ae,i as v,z as Ce,B as W,o as A,c as C,e as o,w as m,f as J,b as s,l as x,t as O,R as X,n as V,H as h,S as Q}from"./index-0127add0.js";import{g as B}from"./convert-2ad76038.js";import{g as Y}from"./index-98b2baa9.js";import{M as Ie}from"./index-a21bea9f.js";import{S as G}from"./index-9c57cbfd.js";import{T as P}from"./isSymbol-102dac7e.js";import{U as K}from"./index-919cae97.js";import"./usePrice-bc935b83.js";import"./index-30500426.js";import"./SearchOutlined-6c1cc274.js";import"./omit-a9878f04.js";import"./vnode-e48a529a.js";import"./FormItemContext-99d81d38.js";import"./index-163f964f.js";import"./_plugin-vue_export-helper-10c790be.js";import"./isPlainObject-cdd64a7d.js";import"./index-5d23b372.js";import"./updateLocale-1362a15b.js";import"./shallowequal-327a9d42.js";import"./useState-ab7e8e52.js";import"./useMemo-531a1ef9.js";import"./lodash-572b39f3.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-1007497c.js";import"./index-e8339542.js";import"./Badge-8884c4f5.js";import"./isNumeric-3f69e2aa.js";import"./index-def9ba08.js";import"./index-c971ffa4.js";import"./styleChecker-6ecca756.js";import"./index-83d7ccb3.js";import"./index-a6785c60.js";import"./LeftOutlined-dfa284aa.js";import"./css-aae66f86.js";import"./DialogWrap-81711a5a.js";import"./pickAttrs-05046885.js";import"./index-55a09ddc.js";import"./toArray-2923cdda.js";import"./isMobile-e2e89480.js";import"./index-827c0a37.js";import"./supabaseTableQuery-0d15b0da.js";import"./index-a8e6060b.js";import"./_flatRest-56c6e14a.js";import"./Col-8db1abbb.js";import"./index-f3e74362.js";import"./useRefs-5dfcc3e3.js";const Re=[{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 Ue(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-91e30fb5.js"),["assets/buildSupabaseQuery-91e30fb5.js","assets/index-0127add0.js","assets/index-ceed3b68.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,R=r.limit||20,T=(y-1)*R,I=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.