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

2 lines
18 KiB
JavaScript
Raw Normal View History

2026-09-16 13:19:24 +03:30
import{_ as $e}from"./BasicMainCard-f6ac62ad.js";import{_ as Re}from"./BasicModal.vue_vue_type_style_index_0_lang-00ba9225.js";import{_ as Ue,u as qe}from"./useBaseTable-ec30a97d.js";import{_ as Pe}from"./button.vue_vue_type_style_index_0_lang-ad893796.js";import{I as H}from"./Icon-84f282a9.js";import{t as ie}from"./useDataTime-2f85c275.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-f42bd432.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-01aa5506.js";import{n as Ye}from"./subscription-7369f4bd.js";import{M as Ze}from"./index-276e15c5.js";import{_ as et,T as tt}from"./index-d4ed5db7.js";import{I as at}from"./index-0db924de.js";import{T as X}from"./isSymbol-89eeb898.js";import{A as de,a as pe}from"./index-84244e03.js";import{U as st}from"./index-17cced78.js";import{_ as nt}from"./_plugin-vue_export-helper-2f0b925e.js";import"./Grid-7825d16a.js";import"./index-1c2d185c.js";import"./Col-42eabc6c.js";import"./styleChecker-4d07c514.js";import"./isPlainObject-838e96ea.js";import"./vnode-386fab8b.js";import"./index-3370fde6.js";import"./updateLocale-4d53ac7e.js";import"./index-97e46aab.js";import"./shallowequal-a983431a.js";import"./useState-074ca9f0.js";import"./useMemo-83211a3c.js";import"./FormItemContext-45e1fa89.js";import"./omit-8a7495a3.js";import"./lodash-0f373afd.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-b0105976.js";import"./index-64f7c585.js";import"./Badge-f9f962a5.js";import"./isNumeric-3f69e2aa.js";import"./index-40e1be26.js";import"./index-54bdc419.js";import"./index-750d03f7.js";import"./index-01db740f.js";import"./index-fb8c26e7.js";import"./DialogWrap-784b5f45.js";import"./pickAttrs-841f485e.js";import"./css-aae66f86.js";import"./index-b91244f4.js";import"./toArray-e14b288d.js";import"./SearchOutlined-dadd531e.js";import"./isMobile-e2e89480.js";import"./index-e013b18a.js";import"./adminDb-ea1a4f44.js";import"./pushNotification-d5decfb6.js";import"./supabaseTableQuery-499044f3.js";import"./useRefs-a26b26b0.js";import"./_flatRest-b81e40db.js";import"./index-d4e2041c.js";import"./index-7e2b6983.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:"انتقاد و