2026-10-20 16:52:05 +03:30
|
|
|
|
import{_ as Ze}from"./BasicMainCard-33e38576.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-aed8f5e4.js";import{_ as tt,u as at}from"./useBaseTable-e7a67916.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-f90e25b2.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-1ba0f9ec.js";import{I as E}from"./Icon-29e38d16.js";import{t as Me}from"./useDataTime-6e234adb.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-a5b25f1a.js";import{o as Ct}from"./subscription-f25c1cd1.js";import{M as Tt}from"./index-ec322234.js";import{_ as St,T as It}from"./index-f22a4554.js";import{I as At}from"./index-aafc0fe2.js";import{T as se}from"./isSymbol-355a1404.js";import{A as Re,a as Ue}from"./index-7363de82.js";import{U as $t}from"./index-f4084f09.js";import{_ as Mt}from"./_plugin-vue_export-helper-31e07528.js";import"./Grid-660f1a55.js";import"./index-c136a321.js";import"./Col-f8806a10.js";import"./styleChecker-19ce40ea.js";import"./isPlainObject-e945bc1f.js";import"./vnode-c4e67237.js";import"./index-4bff02a6.js";import"./updateLocale-a8654270.js";import"./index-8f2b7e91.js";import"./shallowequal-e0d9eafb.js";import"./useState-dcd360f8.js";import"./useMemo-ee45fb46.js";import"./FormItemContext-33ef1221.js";import"./omit-f5d28cd3.js";import"./lodash-27f814e6.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-36a1ea6e.js";import"./index-c8127d4e.js";import"./Badge-8a8eeb58.js";import"./isNumeric-3f69e2aa.js";import"./index-a8579634.js";import"./index-73cafb1e.js";import"./index-e22339b6.js";import"./index-876da578.js";import"./index-3f6d5caa.js";import"./LeftOutlined-93011b30.js";import"./css-aae66f86.js";import"./DialogWrap-394d7eb0.js";import"./pickAttrs-0ddf9a54.js";import"./index-e0664925.js";import"./toArray-41940180.js";import"./SearchOutlined-95278fe5.js";import"./isMobile-e2e89480.js";import"./index-175b83cf.js";import"./adminDb-b061a757.js";import"./pushNotification-4801c800.js";import"./supabaseTableQuery-e0472e9c.js";import"./useRefs-5e33302c.js";import"./_flatRest-7877cdf8.js";import"./index-83b891e2.js";import"./index-65e13d19.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:"اشتراک کدÙ
|