Files
machartaa_admin_dist/dist/assets/index-964cb33b.js
T

2 lines
12 KiB
JavaScript
Raw Normal View History

2026-08-22 13:27:44 +03:30
import{_ as Q}from"./BasicMainCard-f06c4dad.js";import{_ as Y}from"./BasicModal.vue_vue_type_style_index_0_lang-7cc4ab5d.js";import{_ as Z,u as ee}from"./useBaseTable-01dc558f.js";import{_ as te}from"./button.vue_vue_type_style_index_0_lang-86273660.js";import{I as P}from"./Icon-cc126d0d.js";import{t as ae}from"./useDataTime-5a09f654.js";import{_ as ne,G as ie,H as se,I as oe,d as le,g as y,A as re,o as T,i as ue,w as d,a as f,b as u,e as B,c as R,j as b,J as ce,k as L,y as de,t as q,D as m}from"./index-d718011e.js";import{fetchMatchingUserIds as z,formatTableResult as me}from"./supabaseTableQuery-bada93b0.js";import{c as fe}from"./pushNotification-c3a96d48.js";import{_ as pe}from"./TextPreview.vue_vue_type_script_setup_true_lang-2590f9d7.js";import{e as _e,g as ve}from"./convert-2ad76038.js";import{M as F}from"./index-eb860757.js";import{C as he}from"./index-6fc61bbd.js";import{I as xe}from"./index-ba4d9879.js";import{T as N}from"./isSymbol-e219d64b.js";import{U as ge}from"./index-c895ada9.js";import"./Grid-162208a5.js";import"./index-68cba126.js";import"./_plugin-vue_export-helper-0ed48b96.js";import"./shallowequal-c9e151d3.js";import"./index-5b828516.js";import"./vnode-0b482026.js";import"./index-7eae579c.js";import"./useState-d226846a.js";import"./useRefs-373e2aeb.js";import"./_flatRest-e8ea393e.js";import"./isMobile-e2e89480.js";import"./omit-86fc1094.js";import"./index-44f8c87e.js";import"./Col-7aad654b.js";import"./styleChecker-351d08aa.js";import"./isPlainObject-63126d02.js";import"./index-5ade1644.js";import"./updateLocale-dac04afb.js";import"./index-12b8b726.js";import"./useMemo-9e09b0c8.js";import"./FormItemContext-6bb05345.js";import"./lodash-02d12c59.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-e23cf95b.js";import"./index-cbb71dc1.js";import"./Badge-bf61afe1.js";import"./isNumeric-3f69e2aa.js";import"./index-9747fd4d.js";import"./index-4e5c2990.js";import"./toArray-02b8a08a.js";import"./SearchOutlined-31f9ef0b.js";import"./pickAttrs-49bc9c67.js";import"./index-7a44352f.js";import"./textUtils-c37780ad.js";import"./DialogWrap-944b6cdf.js";import"./index-59898946.js";import"./css-aae66f86.js";import"./index-7a1bd658.js";import"./index-a2e0d559.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 oe("channel_message",e)}async function be(e){var w,I,x;const{TableEngineRequest:_}=await ne(()=>import("./buildSupabaseQuery-ad024d1e.js"),["assets/buildSupabaseQuery-ad024d1e.js","assets/index-d718011e.js","assets/index-a54d32f7.css"]),t={...e};!t.sort&&!t.order&&(t.order="-id"),t.select=["*","users!owner_id(first_name, last_name, phone)"];const C=[...t.filters||[]],A=C.find(r=>r.field==="owner_name"&&!r.hidden);if(A&&["eq","has","like"].includes(A.op)){const r=await z(String(A.value));t.filters=C.filter(M=>M.field!=="owner_name"),r.lengt