Files
machartaa_admin_dist/dist/assets/index-8bb390cb.js
T

2 lines
18 KiB
JavaScript
Raw Normal View History

2026-09-01 10:46:46 +03:30
import{_ as $e}from"./BasicMainCard-289887ef.js";import{_ as Re}from"./BasicModal.vue_vue_type_style_index_0_lang-8e72024f.js";import{_ as Ue,u as qe}from"./useBaseTable-97132b25.js";import{_ as Pe}from"./button.vue_vue_type_style_index_0_lang-2aadace4.js";import{I as H}from"./Icon-3bccc0d8.js";import{t as ie}from"./useDataTime-581d686b.js";import{g as se}from"./convert-2ad76038.js";import{t as Be}from"./textUtils-c37780ad.js";import{i as ue,j as Le,k as De,l as Ee,r as Me,n as je,o as Fe}from"./support-c37b2cef.js";import{d as Ne,i as x,h as re,j as W,y as Ke,x as Oe,p as Qe,o as i,c as d,e as p,w as c,b as a,f as $,F as M,q as O,l as _,k as w,n as R,K as Ge,t as k,s as ne,U as ce,bK as Q,G as y,bJ as Je,L as Ve,R as ze,S as He,bL as We,bM as Xe}from"./index-9cc7ea05.js";import{n as Ye}from"./subscription-9bfeec83.js";import{M as Ze}from"./index-1c0096a5.js";import{_ as et,T as tt}from"./index-d780a420.js";import{I as at}from"./index-2fad7c88.js";import{T as X}from"./isSymbol-d00ad36c.js";import{A as de,a as pe}from"./index-fe469f94.js";import{U as st}from"./index-0eeaee66.js";import{_ as nt}from"./_plugin-vue_export-helper-0df7e82e.js";import"./Grid-36f4030b.js";import"./index-57fd432f.js";import"./Col-c9a7abf2.js";import"./styleChecker-035391ef.js";import"./isPlainObject-2a229bdb.js";import"./vnode-1811a8a6.js";import"./index-064eab1c.js";import"./updateLocale-845f5b58.js";import"./index-26f9cac8.js";import"./shallowequal-8e48ba05.js";import"./useState-b2543aac.js";import"./useMemo-fb2bb0e4.js";import"./FormItemContext-32857be9.js";import"./omit-3563fca2.js";import"./lodash-e6a6a79e.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-49bf9297.js";import"./index-0b2caecc.js";import"./Badge-abdbd545.js";import"./isNumeric-3f69e2aa.js";import"./index-fb06c021.js";import"./index-ea36e535.js";import"./index-461c54dd.js";import"./index-4d488545.js";import"./index-c158727f.js";import"./DialogWrap-cba6088f.js";import"./pickAttrs-f69e7d2f.js";import"./css-aae66f86.js";import"./index-02aeab7c.js";import"./toArray-43df885b.js";import"./SearchOutlined-829b0931.js";import"./isMobile-e2e89480.js";import"./index-6a4605ec.js";import"./adminDb-21377283.js";import"./pushNotification-0f6dd5b1.js";import"./supabaseTableQuery-09e0fd1f.js";import"./useRefs-563b43fc.js";import"./_flatRest-2790c772.js";import"./index-df2deb09.js";import"./index-6c5d1c5e.js";function lt(n){const v=n==null?void 0:n.users;return v?v.name||[v.first_name,v.last_name].filter(Boolean).join(" ")||v.phone||(n==null?void 0:n.account_name)||"—":(n==null?void 0:n.account_name)||"—"}function ot(n){var v;return((v=n==null?void 0:n.users)==null?void 0:v.phone)||(n==null?void 0:n.account_phone)||"—"}function it(n){const v=Array.isArray(n==null?void 0:n.messages)?[...n.messages]:[];if(v.length){v.sort((o,C)=>new Date(o.created_at).getTime()-new Date(C.created_at).getTime());const T=v[v.length-1],S=String((T==null?void 0:T.content)||"").trim();return S||((Array.isArray(T==null?void 0:T.attachments)?T.attachments:[]).length?"تصویر":"پیام")}return String((n==null?void 0:n.problem)||"").trim()}const ut=[{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=>lt(n.record)},{title:"شماره موبایل",dataIndex:"account_phone",key:"account_phone",type:"Text",width:130,customRender:n=>ot(n.record)},{title:"آخرین پیام",dataIndex:"problem",key:"problem",type:"Text",width:280,customRender:n=>{const{truncated:v}=Be(it(n.record),70);return v}},{title:"عملیات",dataIndex:"action",key:"action",width:150,align:"center",slot:"action",filterable:!1}],me=[{value:"codoblo",label:"اشتراک کدوبلو"},{value:"shop",label:"بخش فروشگاه"},{value:"other",label:"بخش‌های دیگر اپلیکیشن"},{value:"feedback",label:"انتقاد و