Files
machartaa_admin_dist/dist/assets/index-4d6b6ce6.js
T

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-10-10 13:00:20 +03:30
import{_ as Ze}from"./BasicMainCard-b162b1c4.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-a4f4e215.js";import{_ as tt,u as at}from"./useBaseTable-2ab18557.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-1d790c18.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-b1a7e04b.js";import{I as E}from"./Icon-82d1568b.js";import{t as Me}from"./useDataTime-54c17809.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-f3d6a8a1.js";import{o as Ct}from"./subscription-38875a75.js";import{M as Tt}from"./index-95736a95.js";import{_ as St,T as It}from"./index-89d97954.js";import{I as At}from"./index-40ad5e11.js";import{T as se}from"./isSymbol-8bb1a5fc.js";import{A as Re,a as Ue}from"./index-47e919b8.js";import{U as $t}from"./index-b2a473c2.js";import{_ as Mt}from"./_plugin-vue_export-helper-bc5e645a.js";import"./Grid-bde7d306.js";import"./index-53cb41a6.js";import"./Col-b5ed65ce.js";import"./styleChecker-e7996752.js";import"./isPlainObject-aea507b4.js";import"./vnode-cf87e7d8.js";import"./index-abe83bbb.js";import"./updateLocale-7460d5f0.js";import"./index-3c78ebad.js";import"./shallowequal-8317aeac.js";import"./useState-bee297fc.js";import"./useMemo-f1dd6d43.js";import"./FormItemContext-75ce584c.js";import"./omit-8d80653a.js";import"./lodash-a3cc5b11.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-dbbf8b2d.js";import"./index-ca8dc14f.js";import"./Badge-815f7351.js";import"./isNumeric-3f69e2aa.js";import"./index-62a1d374.js";import"./index-a5f1405d.js";import"./index-d8d70cfa.js";import"./index-06b581ca.js";import"./index-3adb8492.js";import"./DialogWrap-06d91612.js";import"./pickAttrs-6c8634eb.js";import"./css-aae66f86.js";import"./index-c03866b7.js";import"./toArray-7c7c3b23.js";import"./SearchOutlined-280cd434.js";import"./isMobile-e2e89480.js";import"./index-35b107f8.js";import"./adminDb-745387b6.js";import"./pushNotification-84fd7275.js";import"./supabaseTableQuery-ba3eb91b.js";import"./useRefs-8cde84b1.js";import"./_flatRest-49c0ef8d.js";import"./index-b14e1723.js";import"./index-32cf5d9b.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:"بخ