Files
machartaa_admin_dist/dist/assets/index-af275a47.js
T

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-10-05 18:40:49 +03:30
import{_ as Ze}from"./BasicMainCard-e8fae2e0.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-f76fec1b.js";import{_ as tt,u as at}from"./useBaseTable-45427402.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-e7cef717.js";import{bL as me,d as lt,i as f,h as Ae,j as G,z as $e,bM as nt,x as ot,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-166b4ef1.js";import{I as E}from"./Icon-b8613529.js";import{t as Me}from"./useDataTime-7db5a46b.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-87bb241f.js";import{n as Ct}from"./subscription-73f96f17.js";import{M as Tt}from"./index-58b86fb2.js";import{_ as St,T as It}from"./index-366f722a.js";import{I as At}from"./index-7005b758.js";import{T as se}from"./isSymbol-c953ccc2.js";import{A as Re,a as Ue}from"./index-412fe4f4.js";import{U as $t}from"./index-6c7cbb7d.js";import{_ as Mt}from"./_plugin-vue_export-helper-e5be29c6.js";import"./Grid-47180f92.js";import"./index-b6f0378e.js";import"./Col-6dc2da7a.js";import"./styleChecker-2eddf97d.js";import"./isPlainObject-ed4c9976.js";import"./vnode-c85f1a09.js";import"./index-de862045.js";import"./updateLocale-6eb93789.js";import"./index-08810a1f.js";import"./shallowequal-78a96afc.js";import"./useState-43a565ec.js";import"./useMemo-99a24173.js";import"./FormItemContext-0e89b3aa.js";import"./omit-55909a9d.js";import"./lodash-593efeb6.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-6e462f47.js";import"./index-8bcb6210.js";import"./Badge-a3c7a3a7.js";import"./isNumeric-3f69e2aa.js";import"./index-ad625a72.js";import"./index-011e0893.js";import"./index-1465c5c8.js";import"./index-75be736e.js";import"./index-7f046693.js";import"./DialogWrap-88ddfe3e.js";import"./pickAttrs-5cd7ef1f.js";import"./css-aae66f86.js";import"./index-3ad11dd3.js";import"./toArray-cf38ce67.js";import"./SearchOutlined-3d6399d7.js";import"./isMobile-e2e89480.js";import"./index-991e4e35.js";import"./adminDb-16b9163f.js";import"./pushNotification-7898e527.js";import"./supabaseTableQuery-41e25409.js";import"./useRefs-ca4d56b6.js";import"./_flatRest-ae97161b.js";import"./index-f98d2511.js";import"./index-dfddf43f.js";me("(min-width: 1023px)");me("(min-width: 767px)");const x=me("(max-width: 767px)");function qe(n){const b=n==null?void 0:n.users;return b?b.name||[b.first_name,b.last_name].filter(Boolean).join(" ")||b.phone||(n==null?void 0:n.account_name)||"—":(n==null?void 0:n.account_name)||"—"}function Le(n){var b;return((b=n==null?void 0:n.users)==null?void 0:b.phone)||(n==null?void 0:n.account_phone)||"—"}function Be(n){const b=Array.isArray(n==null?void 0:n.messages)?[...n.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((n==null?void 0:n.problem)||"").trim()}const Rt=[{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=>qe(n.record)},{title:"شماره موبایل",dataIndex:"account_phone",key:"account_phone",type:"Text",width:130,customRender:n=>Le(n.record)},{title:"آخرین پیام",dataIndex:"problem",key:"problem",type:"Text",width:280,customRender:n=>{const{truncated:b}=Pe(Be(n.record),70);return b}},{title:"عملیات",dataIndex:"action",key:"action",width:150,align:"center",slot:"action",filterable:!1}],_e=[{value:"codoblo",label:"اشتراک کدوبلو"},{value:"shop",label:"بخ