Files
machartaa_admin_dist/dist/assets/index-116e1bb6.js
T

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-10-04 13:31:09 +03:30
import{_ as Ze}from"./BasicMainCard-ff1543bd.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-6296deb9.js";import{_ as tt,u as at}from"./useBaseTable-e18d3b32.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-fbfa965d.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-c678e119.js";import{I as E}from"./Icon-671f08f9.js";import{t as Me}from"./useDataTime-206d8d2e.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-91289668.js";import{n as Ct}from"./subscription-728bba27.js";import{M as Tt}from"./index-66da2c76.js";import{_ as St,T as It}from"./index-88858982.js";import{I as At}from"./index-e517c667.js";import{T as se}from"./isSymbol-5130882b.js";import{A as Re,a as Ue}from"./index-47c32362.js";import{U as $t}from"./index-ff90b762.js";import{_ as Mt}from"./_plugin-vue_export-helper-edd5ed68.js";import"./Grid-192c1e72.js";import"./index-2a1871d2.js";import"./Col-65d77001.js";import"./styleChecker-c202e4d7.js";import"./isPlainObject-2f8cd8cc.js";import"./vnode-34fe2aaf.js";import"./index-5203b45e.js";import"./updateLocale-e9df593e.js";import"./index-c5016c96.js";import"./shallowequal-93b92d94.js";import"./useState-fb1fd992.js";import"./useMemo-3527b8f5.js";import"./FormItemContext-53695780.js";import"./omit-30cc2465.js";import"./lodash-2343a0ae.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-0d6b57d1.js";import"./index-064013c2.js";import"./Badge-b566fed9.js";import"./isNumeric-3f69e2aa.js";import"./index-d768dcac.js";import"./index-ea10bb13.js";import"./index-05e85885.js";import"./index-d80ea252.js";import"./index-27b4bb6d.js";import"./DialogWrap-0297f46d.js";import"./pickAttrs-09168c62.js";import"./css-aae66f86.js";import"./index-01af60d8.js";import"./toArray-acd138e5.js";import"./SearchOutlined-445bfd70.js";import"./isMobile-e2e89480.js";import"./index-31ed7972.js";import"./adminDb-aa2cb7bf.js";import"./pushNotification-54c2f536.js";import"./supabaseTableQuery-e9feb810.js";import"./useRefs-d469f03d.js";import"./_flatRest-89cece1c.js";import"./index-679d69b0.js";import"./index-e3658ae2.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:"بخ