Files
machartaa_admin_dist/dist/assets/index-669afdf7.js
T

2 lines
12 KiB
JavaScript
Raw Normal View History

2026-09-16 14:07:27 +03:30
import{_ as Y}from"./BasicMainCard-2b216dd4.js";import{_ as Z}from"./BasicModal.vue_vue_type_style_index_0_lang-39ca2ebd.js";import{_ as j,u as ee}from"./useBaseTable-4f4d8248.js";import{_ as te}from"./button.vue_vue_type_style_index_0_lang-307c41e8.js";import{I as R}from"./Icon-daa4ada2.js";import{t as ae}from"./useDataTime-e3db50db.js";import{_ as ne,H as ie,I as se,J as le,d as oe,i as y,D as re,o as T,k as ue,w as d,b as f,e as u,f as $,c as A,l as b,K as ce,n as L,B as de,t as q,G as m}from"./index-f44a958f.js";import{fetchMatchingUserIds as z,formatTableResult as me}from"./supabaseTableQuery-16ab1095.js";import{c as fe}from"./pushNotification-6e15a49a.js";import{_ as pe}from"./TextPreview.vue_vue_type_script_setup_true_lang-96830691.js";import{e as _e,g as ve}from"./convert-2ad76038.js";import{M as F}from"./index-234c79ba.js";import{C as he}from"./index-7722f326.js";import{I as xe}from"./index-17909d47.js";import{T as N}from"./isSymbol-9ca68d9f.js";import{U as ge}from"./index-109ce1b0.js";import"./Grid-dfc25885.js";import"./index-a485cd3f.js";import"./_plugin-vue_export-helper-9644f77d.js";import"./shallowequal-30316885.js";import"./index-1399904b.js";import"./vnode-bcebd00a.js";import"./index-120ad211.js";import"./useState-7cfb31a4.js";import"./useRefs-b0f27066.js";import"./_flatRest-e4351155.js";import"./isMobile-e2e89480.js";import"./omit-555d0220.js";import"./index-ae092da9.js";import"./Col-4af7c3cd.js";import"./styleChecker-d7256a22.js";import"./isPlainObject-f85be752.js";import"./index-00d02541.js";import"./updateLocale-4abe3bd4.js";import"./index-6f0218fe.js";import"./useMemo-3af68d99.js";import"./FormItemContext-801d31a4.js";import"./lodash-ba2547f0.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-9966573e.js";import"./index-5f6600aa.js";import"./Badge-daa269e5.js";import"./isNumeric-3f69e2aa.js";import"./index-432f8768.js";import"./index-2a7e74b5.js";import"./toArray-c3886d9c.js";import"./SearchOutlined-bf31e51b.js";import"./pickAttrs-6cecdc2a.js";import"./index-a5608fae.js";import"./textUtils-c37780ad.js";import"./DialogWrap-ed1e42ab.js";import"./index-5bb4f02b.js";import"./css-aae66f86.js";import"./index-0e61c248.js";import"./index-0326f7f1.js";const ye=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"نام ارسال کننده",dataIndex:"owner_name",key:"owner_name",filterField:"owner_name",customRender:e=>e.record.owner_name||"-"},{title:"متن پیام",dataIndex:"text",key:"text",slot:"text"},{title:"فایل",dataIndex:"file",key:"file",align:"center",width:120,slot:"file"},{title:"وضعیت پین",dataIndex:"pined",key:"pined",align:"center",width:100,customRender:e=>e.record.pined?"پین شده":"-"},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:e=>ae(e.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}];function we(e){let _=null;if(e.owner_id){const t=Array.isArray(e.users)?e.users[0]:e.users;t?_=`${t.first_name||""} ${t.last_name||""}`.trim()||t.phone||`کاربر ${e.owner_id}`:_=`کاربر ${e.owner_id}`}return{...e,owner_name:_,text:e.text??"",file:e.file??null,pined:e.pined??!1,pined_at:e.pined_at??null,created_at:e.created_at??"",updated_at:e.updated_at??""}}async function ke(e){const _=await ie("channel_message",e);return Array.isArray(_)?_:[_]}async function H(e,_){const t=await se("channel_message",e,_);return Array.isArray(t)?t:[t]}async function Ie(e){await le("channel_message",e)}async function be(e){var w,I,x;const{TableEngineRequest:_}=await ne(()=>import("./buildSupabaseQuery-cbaa4453.js"),["assets/buildSupabaseQuery-cbaa4453.js","assets/index-f44a958f.js","assets/index-f80d3475.css"]),t={...e};!t.sort&&!t.order&&(t.order="-id"),t.select=["*","users!owner_id(first_name, last_name, phone)"];const C=[...t.filters||[]],P=C.find(r=>r.field==="owner_name"&&!r.hidden);if(P&&["eq","has","like"].includes(P.op)){const r=await z(String(P.value));t.filters=C.filter(M=>M.field!=="owner_name"),r.lengt