Files
machartaa_admin_dist/dist/assets/index-76a504c4.js
T

2 lines
14 KiB
JavaScript
Raw Normal View History

2026-08-23 17:45:14 +03:30
import{_ as ve}from"./BasicModal.vue_vue_type_style_index_0_lang-19f7e884.js";import{_ as _e}from"./BasicInput.vue_vue_type_style_index_0_lang-f42b6616.js";import{u as H,_ as fe}from"./useBaseTable-b54f1011.js";import{_ as he}from"./button.vue_vue_type_style_index_0_lang-573c8178.js";import{I as D}from"./Icon-51292ba8.js";import{t as ge}from"./useDataTime-ba303e4c.js";import{g as we,a as xe,v as ye}from"./itemViews-ff4b2539.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-85b0a871.js";import{g as B}from"./convert-2ad76038.js";import{g as K}from"./index-51662c9e.js";import{M as Ce}from"./index-8e461858.js";import{S as Y}from"./index-0bc12b2b.js";import{T as P}from"./isSymbol-f096d1f3.js";import{U as Q}from"./index-75e74cba.js";import"./usePrice-bc935b83.js";import"./index-a4749a4e.js";import"./SearchOutlined-2119418f.js";import"./omit-6e71f361.js";import"./vnode-67298ed6.js";import"./FormItemContext-c3e7c21a.js";import"./index-0ad3a6e0.js";import"./_plugin-vue_export-helper-7166b54f.js";import"./isPlainObject-3b96d88c.js";import"./index-d729d8f3.js";import"./updateLocale-e1269d0e.js";import"./shallowequal-f73ccac4.js";import"./useState-dca0eb62.js";import"./useMemo-2d8f0e33.js";import"./lodash-a94f6ca6.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-9242d002.js";import"./index-a4228ed0.js";import"./Badge-6e22b582.js";import"./isNumeric-3f69e2aa.js";import"./index-f833d7e1.js";import"./index-378e150b.js";import"./styleChecker-700d5c9b.js";import"./index-13a23e48.js";import"./index-4f2f7002.js";import"./DialogWrap-31c1c17a.js";import"./pickAttrs-b5c2621e.js";import"./css-aae66f86.js";import"./index-1e0c5a9f.js";import"./toArray-ede1f933.js";import"./isMobile-e2e89480.js";import"./index-f07edbcd.js";import"./supabaseTableQuery-c1fc4a72.js";import"./index-f5268db6.js";import"./_flatRest-11159c04.js";import"./Col-2fd15786.js";import"./index-1a963bf1.js";import"./useRefs-77023e0a.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-892fb39b.js"),["assets/buildSupabaseQuery-892fb39b.js","assets/index-85b0a871.js","assets/index-82ea5f16.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