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

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-09-27 17:26:36 +03:30
import{_ as Ze}from"./BasicMainCard-235c6a8e.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-6b846ddc.js";import{_ as tt,u as at}from"./useBaseTable-af0ac405.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-2b2ee941.js";import{bL as me,d as lt,i as f,h as Ae,j as V,y 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 D,s as A,l as r,F as C,q as E,n as g,O as ut,P as ct,bn as rt,t as _,k as $,K as dt,W as de,G as k,bN as Y,bK as pt,L as vt,T as _t,U as mt,bO as ft,bP as ht}from"./index-ab3b0b84.js";import{I as B}from"./Icon-b552f0cb.js";import{t as Me}from"./useDataTime-45198684.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-59a8a4dd.js";import{n as Ct}from"./subscription-e7035685.js";import{M as Tt}from"./index-34ee3839.js";import{_ as St,T as It}from"./index-b305a6df.js";import{I as At}from"./index-adf5fd7f.js";import{T as se}from"./isSymbol-5cc45ff5.js";import{A as Re,a as Ue}from"./index-44b2e4a8.js";import{U as $t}from"./index-732bfe67.js";import{_ as Mt}from"./_plugin-vue_export-helper-6c5748cb.js";import"./Grid-0eb1a61b.js";import"./index-fd8a1334.js";import"./Col-48c01651.js";import"./styleChecker-558deef9.js";import"./isPlainObject-d617fbb5.js";import"./vnode-602d90c4.js";import"./index-cbd716ee.js";import"./updateLocale-958574f8.js";import"./index-086ff91e.js";import"./shallowequal-39bf2166.js";import"./useState-7883cedd.js";import"./useMemo-1af73168.js";import"./FormItemContext-548f4b58.js";import"./omit-837670e8.js";import"./lodash-a8d94941.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-d33f0812.js";import"./index-b5f9a27e.js";import"./Badge-fca8f233.js";import"./isNumeric-3f69e2aa.js";import"./index-18e93846.js";import"./index-d5e11315.js";import"./index-0e84975e.js";import"./index-323711b8.js";import"./index-b2118e3c.js";import"./DialogWrap-421034e2.js";import"./pickAttrs-1e1939a5.js";import"./css-aae66f86.js";import"./index-9bb4e5d4.js";import"./toArray-78940ccb.js";import"./SearchOutlined-a36e5cce.js";import"./isMobile-e2e89480.js";import"./index-257982d0.js";import"./adminDb-7b8c8f5f.js";import"./pushNotification-867b5532.js";import"./supabaseTableQuery-7c1903fc.js";import"./useRefs-3f675f69.js";import"./_flatRest-289ae805.js";import"./index-993bd9f9.js";import"./index-75515977.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 De(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(De(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:"بØ