Files
machartaa_admin_dist/dist/assets/index-fbbe20af.js
T

2 lines
14 KiB
JavaScript
Raw Normal View History

2026-10-10 13:00:20 +03:30
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-a4f4e215.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-b95b808e.js";import{u as H,_ as fe}from"./useBaseTable-2ab18557.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-1d790c18.js";import{I as D}from"./Icon-82d1568b.js";import{t as ge}from"./useDataTime-54c17809.js";import{g as we,a as xe,v as ye}from"./itemViews-dfd4a94a.js";import{_ as be,I as ke,J as ee,K as Me,d as Ae,i as v,z as Ie,B 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,L as X,n as V,H as h,M as K}from"./index-b1a7e04b.js";import{g as B}from"./convert-2ad76038.js";import{g as Y}from"./index-eed351fd.js";import{M as Ce}from"./index-95736a95.js";import{S as G}from"./index-abe83bbb.js";import{T as P}from"./isSymbol-8bb1a5fc.js";import{U as Q}from"./index-b2a473c2.js";import"./usePrice-bc935b83.js";import"./index-40ad5e11.js";import"./SearchOutlined-280cd434.js";import"./omit-8d80653a.js";import"./vnode-cf87e7d8.js";import"./FormItemContext-75ce584c.js";import"./index-3c78ebad.js";import"./_plugin-vue_export-helper-bc5e645a.js";import"./isPlainObject-aea507b4.js";import"./index-a5f1405d.js";import"./updateLocale-7460d5f0.js";import"./shallowequal-8317aeac.js";import"./useState-bee297fc.js";import"./useMemo-f1dd6d43.js";import"./lodash-a3cc5b11.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-dbbf8b2d.js";import"./index-ca8dc14f.js";import"./Badge-815f7351.js";import"./isNumeric-3f69e2aa.js";import"./index-62a1d374.js";import"./index-d8d70cfa.js";import"./styleChecker-e7996752.js";import"./index-06b581ca.js";import"./index-3adb8492.js";import"./DialogWrap-06d91612.js";import"./pickAttrs-6c8634eb.js";import"./css-aae66f86.js";import"./index-c03866b7.js";import"./toArray-7c7c3b23.js";import"./isMobile-e2e89480.js";import"./index-35b107f8.js";import"./supabaseTableQuery-ba3eb91b.js";import"./index-b14e1723.js";import"./_flatRest-49c0ef8d.js";import"./Col-b5ed65ce.js";import"./index-32cf5d9b.js";import"./useRefs-8cde84b1.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-75615d81.js"),["assets/buildSupabaseQuery-75615d81.js","assets/index-b1a7e04b.js","assets/index-0643191e.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