2 lines
18 KiB
JavaScript
2 lines
18 KiB
JavaScript
import{_ as $e}from"./BasicMainCard-debf8353.js";import{_ as Re}from"./BasicModal.vue_vue_type_style_index_0_lang-fae33930.js";import{_ as Ue,u as qe}from"./useBaseTable-82539eae.js";import{_ as Pe}from"./button.vue_vue_type_style_index_0_lang-a8e4c363.js";import{I as H}from"./Icon-edf119de.js";import{t as ie}from"./useDataTime-da5b6dce.js";import{g as se}from"./convert-2ad76038.js";import{t as Be}from"./textUtils-c37780ad.js";import{i as ue,j as Le,k as De,l as Ee,r as Me,n as je,o as Fe}from"./support-4b206818.js";import{d as Ne,i as x,h as re,j as W,y as Ke,x as Oe,p as Qe,o as i,c as d,e as p,w as c,b as a,f as $,F as M,q as O,l as _,k as w,n as R,K as Ge,t as k,s as ne,U as ce,bK as Q,G as y,bJ as Je,L as Ve,R as ze,S as He,bL as We,bM as Xe}from"./index-a8367ff2.js";import{n as Ye}from"./subscription-e2130cd1.js";import{M as Ze}from"./index-9945ba04.js";import{_ as et,T as tt}from"./index-41027af5.js";import{I as at}from"./index-7c64cd55.js";import{T as X}from"./isSymbol-14cd0bd9.js";import{A as de,a as pe}from"./index-838884f4.js";import{U as st}from"./index-55485934.js";import{_ as nt}from"./_plugin-vue_export-helper-33d8d282.js";import"./Grid-b32f963a.js";import"./index-09fb7960.js";import"./Col-998ad8d4.js";import"./styleChecker-26fef2aa.js";import"./isPlainObject-c12254bd.js";import"./vnode-29430e8f.js";import"./index-4a5bdd84.js";import"./updateLocale-fac91928.js";import"./index-b114ff98.js";import"./shallowequal-6dfee65d.js";import"./useState-594e21bf.js";import"./useMemo-21aa3156.js";import"./FormItemContext-fe223efb.js";import"./omit-b4301d3d.js";import"./lodash-ed85ff31.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-3910ceb5.js";import"./index-e105ccfe.js";import"./Badge-2c6fd47c.js";import"./isNumeric-3f69e2aa.js";import"./index-e36cdf8a.js";import"./index-c3834dab.js";import"./index-bb89eb22.js";import"./index-2750d3d4.js";import"./index-f900e797.js";import"./DialogWrap-2da8810d.js";import"./pickAttrs-9e6a5f83.js";import"./css-aae66f86.js";import"./index-59fae103.js";import"./toArray-13b6ecf9.js";import"./SearchOutlined-2e41df22.js";import"./isMobile-e2e89480.js";import"./index-ab16997f.js";import"./adminDb-e48a293b.js";import"./pushNotification-e33001cc.js";import"./supabaseTableQuery-f88471cb.js";import"./useRefs-620742e5.js";import"./_flatRest-8af74098.js";import"./index-e13f986d.js";import"./index-df7d258e.js";function lt(n){const v=n==null?void 0:n.users;return v?v.name||[v.first_name,v.last_name].filter(Boolean).join(" ")||v.phone||(n==null?void 0:n.account_name)||"—":(n==null?void 0:n.account_name)||"—"}function ot(n){var v;return((v=n==null?void 0:n.users)==null?void 0:v.phone)||(n==null?void 0:n.account_phone)||"—"}function it(n){const v=Array.isArray(n==null?void 0:n.messages)?[...n.messages]:[];if(v.length){v.sort((o,C)=>new Date(o.created_at).getTime()-new Date(C.created_at).getTime());const T=v[v.length-1],S=String((T==null?void 0:T.content)||"").trim();return S||((Array.isArray(T==null?void 0:T.attachments)?T.attachments:[]).length?"تصویر":"پیام")}return String((n==null?void 0:n.problem)||"").trim()}const ut=[{title:"ردیف",dataIndex:"id",key:"row_index",filterable:!1,width:70,align:"center",customRender:n=>n.record.index+1},{title:"شماره تیکت",dataIndex:"id",key:"id",type:"Number",width:110,align:"center",customRender:n=>`#${n.record.id}`},{title:"نام کاربر",dataIndex:"account_name",key:"account_name",type:"Text",width:160,customRender:n=>lt(n.record)},{title:"شماره موبایل",dataIndex:"account_phone",key:"account_phone",type:"Text",width:130,customRender:n=>ot(n.record)},{title:"آخرین پیام",dataIndex:"problem",key:"problem",type:"Text",width:280,customRender:n=>{const{truncated:v}=Be(it(n.record),70);return v}},{title:"عملیات",dataIndex:"action",key:"action",width:150,align:"center",slot:"action",filterable:!1}],me=[{value:"codoblo",label:"اشتراک کدوبلو"},{value:"shop",label:"بخش فروشگاه"},{value:"other",label:"بخشهای دیگر اپلیکیشن"},{value:"feedback",label:"انتقاد و
|