2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
import{_ as Ze}from"./BasicMainCard-d88efce1.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-8b3762d2.js";import{_ as tt,u as at}from"./useBaseTable-b65e968f.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-dc7b87c6.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-f7911a6d.js";import{I as E}from"./Icon-b5a365b6.js";import{t as Me}from"./useDataTime-4da2f466.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-57674506.js";import{o as Ct}from"./subscription-056effd1.js";import{M as Tt}from"./index-6f289e55.js";import{_ as St,T as It}from"./index-10c207c0.js";import{I as At}from"./index-31699bda.js";import{T as se}from"./isSymbol-b0715776.js";import{A as Re,a as Ue}from"./index-e7e59540.js";import{U as $t}from"./index-2eb9a3fd.js";import{_ as Mt}from"./_plugin-vue_export-helper-a59ccce4.js";import"./Grid-d4d08bfb.js";import"./index-c5c3e497.js";import"./Col-a3b51974.js";import"./styleChecker-10d88d72.js";import"./isPlainObject-72a97f79.js";import"./vnode-160a3584.js";import"./index-c7e434df.js";import"./updateLocale-0c609c95.js";import"./index-fd54b9e9.js";import"./shallowequal-1fb084f0.js";import"./useState-2a09ed7b.js";import"./useMemo-dd1208f0.js";import"./FormItemContext-e8070c30.js";import"./omit-19fd03e3.js";import"./lodash-38d75800.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-c915f24e.js";import"./index-53f009ba.js";import"./index-af05d1fd.js";import"./Badge-1e5825d4.js";import"./isNumeric-3f69e2aa.js";import"./index-aafb52b8.js";import"./index-c48ccee5.js";import"./index-da7ed9ea.js";import"./index-4a17ebf7.js";import"./index-2e819d27.js";import"./DialogWrap-157169f5.js";import"./pickAttrs-d4e89cbd.js";import"./css-aae66f86.js";import"./index-317bbaff.js";import"./toArray-a2b9a939.js";import"./SearchOutlined-9cce5c32.js";import"./isMobile-e2e89480.js";import"./index-79a6c7d7.js";import"./adminDb-7a10180f.js";import"./pushNotification-2199666a.js";import"./supabaseTableQuery-7e7d635b.js";import"./useRefs-2e02a4a6.js";import"./_flatRest-dd0446c0.js";import"./index-9ce8e289.js";import"./index-06662595.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:"اشتراک کدوبلو
|