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

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-10-19 15:32:02 +03:30
import{_ as Ze}from"./BasicMainCard-7b1fa79c.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-3870ceab.js";import{_ as tt,u as at}from"./useBaseTable-d607863f.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-90a36b25.js";import{bL as me,d as lt,i as f,h as Ae,j as G,z as $e,bM as ot,x as nt,p as it,o as l,c as i,e as v,w as p,b as s,f as B,s as A,l as r,F as C,q as D,n as g,J as ut,K as ct,L as rt,t as _,k as $,R as dt,B as de,H as b,bN as Y,a0 as pt,S as vt,M as _t,N as mt,bO as ft,bP as ht}from"./index-0127add0.js";import{I as E}from"./Icon-16a7c1f0.js";import{t as Me}from"./useDataTime-784b7128.js";import{g as pe}from"./convert-2ad76038.js";import{t as qe}from"./textUtils-c37780ad.js";import{i as ve,j as yt,k as kt,l as bt,r as gt,n as xt,o as wt}from"./support-8b8ee036.js";import{o as Ct}from"./subscription-ef55af30.js";import{M as Tt}from"./index-a21bea9f.js";import{_ as St,T as It}from"./index-a1a9d49a.js";import{I as At}from"./index-30500426.js";import{T as se}from"./isSymbol-102dac7e.js";import{A as Re,a as Ue}from"./index-56f9cba1.js";import{U as $t}from"./index-919cae97.js";import{_ as Mt}from"./_plugin-vue_export-helper-10c790be.js";import"./Grid-6ef11710.js";import"./index-087c87e8.js";import"./Col-8db1abbb.js";import"./styleChecker-6ecca756.js";import"./isPlainObject-cdd64a7d.js";import"./vnode-e48a529a.js";import"./index-9c57cbfd.js";import"./updateLocale-1362a15b.js";import"./index-163f964f.js";import"./shallowequal-327a9d42.js";import"./useState-ab7e8e52.js";import"./useMemo-531a1ef9.js";import"./FormItemContext-99d81d38.js";import"./omit-a9878f04.js";import"./lodash-572b39f3.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-1007497c.js";import"./index-e8339542.js";import"./Badge-8884c4f5.js";import"./isNumeric-3f69e2aa.js";import"./index-def9ba08.js";import"./index-5d23b372.js";import"./index-c971ffa4.js";import"./index-83d7ccb3.js";import"./index-a6785c60.js";import"./LeftOutlined-dfa284aa.js";import"./css-aae66f86.js";import"./DialogWrap-81711a5a.js";import"./pickAttrs-05046885.js";import"./index-55a09ddc.js";import"./toArray-2923cdda.js";import"./SearchOutlined-6c1cc274.js";import"./isMobile-e2e89480.js";import"./index-827c0a37.js";import"./adminDb-9dac9b33.js";import"./pushNotification-43b6b329.js";import"./supabaseTableQuery-0d15b0da.js";import"./useRefs-5dfcc3e3.js";import"./_flatRest-56c6e14a.js";import"./index-a8e6060b.js";import"./index-f3e74362.js";me("(min-width: 1023px)");me("(min-width: 767px)");const x=me("(max-width: 767px)");function Le(o){const k=o==null?void 0:o.users;return k?k.name||[k.first_name,k.last_name].filter(Boolean).join(" ")||k.phone||(o==null?void 0:o.account_name)||"—":(o==null?void 0:o.account_name)||"—"}function Pe(o){var k;return((k=o==null?void 0:o.users)==null?void 0:k.phone)||(o==null?void 0:o.account_phone)||"—"}function Be(o){const k=Array.isArray(o==null?void 0:o.messages)?[...o.messages]:[];if(k.length){k.sort((u,R)=>new Date(u.created_at).getTime()-new Date(R.created_at).getTime());const M=k[k.length-1],U=String((M==null?void 0:M.content)||"").trim();return U||((Array.isArray(M==null?void 0:M.attachments)?M.attachments:[]).length?"تصویر":"پیام")}return String((o==null?void 0:o.problem)||"").trim()}const Rt=[{title:"ردیÙ�",dataIndex:"id",key:"row_index",filterable:!1,width:70,align:"center",customRender:o=>o.record.index+1},{title:"شماره تیکت",dataIndex:"id",key:"id",type:"Number",width:110,align:"center",customRender:o=>`#${o.record.id}`},{title:"نام کاربر",dataIndex:"account_name",key:"account_name",type:"Text",width:160,customRender:o=>Le(o.record)},{title:"شماره موبایل",dataIndex:"account_phone",key:"account_phone",type:"Text",width:130,customRender:o=>Pe(o.record)},{title:"آخرین پیام",dataIndex:"problem",key:"problem",type:"Text",width:280,customRender:o=>{const{truncated:k}=qe(Be(o.record),70);return k}},{title:"عملیات",dataIndex:"action",key:"action",width:150,align:"center",slot:"action",filterable:!1}],_e=[{value:"codoblo",label:"اشتراک کدÙ