2026-10-13 13:23:32 +03:30
|
|
|
import{_ as Ze}from"./BasicMainCard-e958eff9.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-6969d1dc.js";import{_ as tt,u as at}from"./useBaseTable-2f44456a.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-c84b0596.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-88b436a3.js";import{I as E}from"./Icon-e9d21126.js";import{t as Me}from"./useDataTime-c5fd0475.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-e18a1b2a.js";import{o as Ct}from"./subscription-4e9a7f33.js";import{M as Tt}from"./index-801e70c1.js";import{_ as St,T as It}from"./index-3056cee8.js";import{I as At}from"./index-5b1d7174.js";import{T as se}from"./isSymbol-5adcf314.js";import{A as Re,a as Ue}from"./index-e16a7d3d.js";import{U as $t}from"./index-58f8102d.js";import{_ as Mt}from"./_plugin-vue_export-helper-0965689e.js";import"./Grid-3500d868.js";import"./index-ab792bfc.js";import"./Col-dbdf0e50.js";import"./styleChecker-e121d19f.js";import"./isPlainObject-6af67cf0.js";import"./vnode-4c3cf924.js";import"./index-77cb2497.js";import"./updateLocale-50b6b1dc.js";import"./index-371b21ab.js";import"./shallowequal-a265b4c4.js";import"./useState-89585daf.js";import"./useMemo-9783b0bd.js";import"./FormItemContext-0dc63d45.js";import"./omit-c69ba12d.js";import"./lodash-ff1cad4c.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-8738a2db.js";import"./index-59dbbd66.js";import"./Badge-b5f795c2.js";import"./isNumeric-3f69e2aa.js";import"./index-e3b71aec.js";import"./index-608635af.js";import"./index-6971af25.js";import"./index-4ad375f9.js";import"./index-70730f49.js";import"./DialogWrap-540d386d.js";import"./pickAttrs-fd92707c.js";import"./css-aae66f86.js";import"./index-7fdb0173.js";import"./toArray-20aa7010.js";import"./SearchOutlined-a51da12b.js";import"./isMobile-e2e89480.js";import"./index-4c23d157.js";import"./adminDb-decb7b8e.js";import"./pushNotification-44c74c8e.js";import"./supabaseTableQuery-81d2dd21.js";import"./useRefs-b589f2c4.js";import"./_flatRest-bfa472d2.js";import"./index-ad76e424.js";import"./index-f6397275.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:"بخ
|