2026-10-14 16:25:33 +03:30
|
|
|
import{_ as Ze}from"./BasicMainCard-104c14b2.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-c75cb8ba.js";import{_ as tt,u as at}from"./useBaseTable-dfbf3762.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-5dd5fad9.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-a94f140f.js";import{I as E}from"./Icon-0c593d03.js";import{t as Me}from"./useDataTime-9987a66e.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-bac6d770.js";import{o as Ct}from"./subscription-c5aaf0f3.js";import{M as Tt}from"./index-cadfe89f.js";import{_ as St,T as It}from"./index-e5d8b47c.js";import{I as At}from"./index-9bf19e54.js";import{T as se}from"./isSymbol-0faad147.js";import{A as Re,a as Ue}from"./index-e7a6763a.js";import{U as $t}from"./index-b2be5cd6.js";import{_ as Mt}from"./_plugin-vue_export-helper-3751a4c9.js";import"./Grid-33e7139e.js";import"./index-53e81bb5.js";import"./Col-098f825e.js";import"./styleChecker-cbf8a3c6.js";import"./isPlainObject-fa7524bd.js";import"./vnode-d8d89b8b.js";import"./index-a08f6658.js";import"./updateLocale-63da7352.js";import"./index-da3c4531.js";import"./shallowequal-311bf7d9.js";import"./useState-75e49d81.js";import"./useMemo-e6667500.js";import"./FormItemContext-d446a85f.js";import"./omit-09913e6a.js";import"./lodash-b667f7ec.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-988f9693.js";import"./index-94f097c0.js";import"./Badge-64556311.js";import"./isNumeric-3f69e2aa.js";import"./index-a10a5cee.js";import"./index-d139af20.js";import"./index-02db9106.js";import"./index-6838bdc5.js";import"./index-fa5a0887.js";import"./DialogWrap-1f925fe5.js";import"./pickAttrs-d12003ac.js";import"./css-aae66f86.js";import"./index-1e5db048.js";import"./toArray-3323d384.js";import"./SearchOutlined-2c05f948.js";import"./isMobile-e2e89480.js";import"./index-f9445381.js";import"./adminDb-28c1d5ac.js";import"./pushNotification-2f181e40.js";import"./supabaseTableQuery-9d743a53.js";import"./useRefs-14e054ef.js";import"./_flatRest-38d88d03.js";import"./index-12b232e8.js";import"./index-00238e03.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:"بخ
|