Files
machartaa_admin_dist/dist/assets/index-5ee8bf73.js
T

2 lines
14 KiB
JavaScript
Raw Normal View History

2026-09-19 17:37:47 +03:30
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-9330561a.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-672b5a8b.js";import{u as H,_ as fe}from"./useBaseTable-05b26333.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-bd7de123.js";import{I as D}from"./Icon-26941971.js";import{t as ge}from"./useDataTime-af597da2.js";import{g as we,a as xe,v as ye}from"./itemViews-90a5c064.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-6d0cd65e.js";import{g as B}from"./convert-2ad76038.js";import{g as K}from"./index-1a5043f1.js";import{M as Ce}from"./index-1fdbf8ec.js";import{S as Y}from"./index-1d24a383.js";import{T as P}from"./isSymbol-94624ad1.js";import{U as Q}from"./index-207fac00.js";import"./usePrice-bc935b83.js";import"./index-0a3c8350.js";import"./SearchOutlined-f7ba34a1.js";import"./omit-0042b203.js";import"./vnode-272c72c0.js";import"./FormItemContext-b6ebc5a2.js";import"./index-eddc2482.js";import"./_plugin-vue_export-helper-057121dd.js";import"./isPlainObject-d2ad9b1e.js";import"./index-8d45f2c0.js";import"./updateLocale-cd480df1.js";import"./shallowequal-969229a1.js";import"./useState-6a654be9.js";import"./useMemo-fb6ccae7.js";import"./lodash-6c37e040.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-8a3278c2.js";import"./index-61e1d708.js";import"./Badge-a066a44e.js";import"./isNumeric-3f69e2aa.js";import"./index-08466728.js";import"./index-19225493.js";import"./styleChecker-0273aaa3.js";import"./index-cbd32094.js";import"./index-0e770d03.js";import"./DialogWrap-b6637bda.js";import"./pickAttrs-ae9bd1c0.js";import"./css-aae66f86.js";import"./index-b2a6c339.js";import"./toArray-5fe0a9e6.js";import"./isMobile-e2e89480.js";import"./index-3f13e53b.js";import"./supabaseTableQuery-2e54cfd8.js";import"./index-17510b5d.js";import"./_flatRest-2e1bd5be.js";import"./Col-27d7ac55.js";import"./index-373d7dab.js";import"./useRefs-b0f30c2d.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-69e216a1.js"),["assets/buildSupabaseQuery-69e216a1.js","assets/index-6d0cd65e.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