2026-10-10 10:47:47 +03:30
|
|
|
import{_ as Ze}from"./BasicMainCard-f15cc82d.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-3186fd13.js";import{_ as tt,u as at}from"./useBaseTable-e684a9eb.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-de1581fe.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,P as ut,Q as ct,bo as rt,t as _,k as $,L as dt,B as de,H as k,bN as Y,$ as pt,M as vt,U as _t,V as mt,bO as ft,bP as ht}from"./index-185c08ed.js";import{I as E}from"./Icon-623de3ea.js";import{t as Me}from"./useDataTime-284d8334.js";import{g as pe}from"./convert-2ad76038.js";import{t as Pe}from"./textUtils-c37780ad.js";import{i as ve,j as yt,k as bt,l as kt,r as gt,n as xt,o as wt}from"./support-0f73250f.js";import{o as Ct}from"./subscription-630ad458.js";import{M as Tt}from"./index-2573091c.js";import{_ as St,T as It}from"./index-c3741845.js";import{I as At}from"./index-a29d0cc7.js";import{T as se}from"./isSymbol-18d6b370.js";import{A as Re,a as Ue}from"./index-a4a0756a.js";import{U as $t}from"./index-c950ff98.js";import{_ as Mt}from"./_plugin-vue_export-helper-e26fbd9a.js";import"./Grid-337aeaf9.js";import"./index-229a6022.js";import"./Col-2d184441.js";import"./styleChecker-7bb1c6f5.js";import"./isPlainObject-5638f45d.js";import"./vnode-8a371720.js";import"./index-5a721f2f.js";import"./updateLocale-d0f4ef4d.js";import"./index-f463cb03.js";import"./shallowequal-6622fb79.js";import"./useState-50bb8c1f.js";import"./useMemo-4f3c1eb4.js";import"./FormItemContext-2d3e7341.js";import"./omit-d93eaa18.js";import"./lodash-0633e973.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-e9f1c563.js";import"./index-9383b001.js";import"./Badge-51142f0a.js";import"./isNumeric-3f69e2aa.js";import"./index-9e9f857b.js";import"./index-a2809ce1.js";import"./index-33777d70.js";import"./index-975de3f6.js";import"./index-1f485cc0.js";import"./DialogWrap-9863a7c0.js";import"./pickAttrs-e062aa3e.js";import"./css-aae66f86.js";import"./index-0ee37254.js";import"./toArray-da31f78e.js";import"./SearchOutlined-d9b8def2.js";import"./isMobile-e2e89480.js";import"./index-77ae4c49.js";import"./adminDb-bcd2d584.js";import"./pushNotification-ebd10dc2.js";import"./supabaseTableQuery-ebcdd1b8.js";import"./useRefs-b56c6fdc.js";import"./_flatRest-947e7901.js";import"./index-82269ca5.js";import"./index-b2f5f66c.js";me("(min-width: 1023px)");me("(min-width: 767px)");const x=me("(max-width: 767px)");function qe(o){const b=o==null?void 0:o.users;return b?b.name||[b.first_name,b.last_name].filter(Boolean).join(" ")||b.phone||(o==null?void 0:o.account_name)||"—":(o==null?void 0:o.account_name)||"—"}function Le(o){var b;return((b=o==null?void 0:o.users)==null?void 0:b.phone)||(o==null?void 0:o.account_phone)||"—"}function Be(o){const b=Array.isArray(o==null?void 0:o.messages)?[...o.messages]:[];if(b.length){b.sort((u,R)=>new Date(u.created_at).getTime()-new Date(R.created_at).getTime());const M=b[b.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=>qe(o.record)},{title:"شماره موبایل",dataIndex:"account_phone",key:"account_phone",type:"Text",width:130,customRender:o=>Le(o.record)},{title:"آخرین پیام",dataIndex:"problem",key:"problem",type:"Text",width:280,customRender:o=>{const{truncated:b}=Pe(Be(o.record),70);return b}},{title:"عملیات",dataIndex:"action",key:"action",width:150,align:"center",slot:"action",filterable:!1}],_e=[{value:"codoblo",label:"اشتراک کدوبلو"},{value:"shop",label:"بخ
|