Files
machartaa_admin_dist/dist/assets/index-41a38226.js
T

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-10-10 13:28:46 +03:30
import{_ as Ze}from"./BasicMainCard-4c879cc2.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-c3b69d02.js";import{_ as tt,u as at}from"./useBaseTable-e35ecaa9.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-b32e1136.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-90ac1a44.js";import{I as E}from"./Icon-85823aa3.js";import{t as Me}from"./useDataTime-c7be2668.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-d9077b3f.js";import{o as Ct}from"./subscription-65d181a1.js";import{M as Tt}from"./index-a413fea1.js";import{_ as St,T as It}from"./index-4d938e91.js";import{I as At}from"./index-027c2128.js";import{T as se}from"./isSymbol-9094e8b7.js";import{A as Re,a as Ue}from"./index-1e415282.js";import{U as $t}from"./index-e50485ad.js";import{_ as Mt}from"./_plugin-vue_export-helper-8ee86600.js";import"./Grid-839ef6d1.js";import"./index-109c99be.js";import"./Col-fddaa6b7.js";import"./styleChecker-1445806f.js";import"./isPlainObject-aab367ce.js";import"./vnode-b0455438.js";import"./index-93d9312f.js";import"./updateLocale-cec40f3d.js";import"./index-cfa536c5.js";import"./shallowequal-36516cfd.js";import"./useState-64f2823f.js";import"./useMemo-9928f29b.js";import"./FormItemContext-64f846db.js";import"./omit-84d71e15.js";import"./lodash-07b825be.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-fb5041dc.js";import"./index-95b42b3e.js";import"./Badge-54a9cc4e.js";import"./isNumeric-3f69e2aa.js";import"./index-5f5223b4.js";import"./index-c0eeee91.js";import"./index-788f312f.js";import"./index-90f5ddad.js";import"./index-9869a66e.js";import"./DialogWrap-6616a498.js";import"./pickAttrs-ba13e92c.js";import"./css-aae66f86.js";import"./index-a2503c07.js";import"./toArray-3936b2d5.js";import"./SearchOutlined-0eaaa97a.js";import"./isMobile-e2e89480.js";import"./index-bb804fdd.js";import"./adminDb-60313cb0.js";import"./pushNotification-3686255e.js";import"./supabaseTableQuery-19bc7c1f.js";import"./useRefs-2a883b79.js";import"./_flatRest-f2577aae.js";import"./index-03d99677.js";import"./index-ebd9fdbb.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:"بخ