Files
machartaa_admin_dist/dist/assets/index-693d563d.js
T

2 lines
18 KiB
JavaScript
Raw Normal View History

2026-09-16 14:07:27 +03:30
import{_ as $e}from"./BasicMainCard-2b216dd4.js";import{_ as Re}from"./BasicModal.vue_vue_type_style_index_0_lang-39ca2ebd.js";import{_ as Ue,u as qe}from"./useBaseTable-4f4d8248.js";import{_ as Pe}from"./button.vue_vue_type_style_index_0_lang-307c41e8.js";import{I as H}from"./Icon-daa4ada2.js";import{t as ie}from"./useDataTime-e3db50db.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 Ne,o as je}from"./support-4fde1225.js";import{d as Fe,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,W as ce,bL as Q,G as y,bK as Ve,L as Je,T as ze,U as He,bM as We,bN as Xe}from"./index-f44a958f.js";import{n as Ye}from"./subscription-47f5a997.js";import{M as Ze}from"./index-234c79ba.js";import{_ as et,T as tt}from"./index-a485cd3f.js";import{I as at}from"./index-17909d47.js";import{T as X}from"./isSymbol-9ca68d9f.js";import{A as de,a as pe}from"./index-42bc0cea.js";import{U as st}from"./index-109ce1b0.js";import{_ as nt}from"./_plugin-vue_export-helper-9644f77d.js";import"./Grid-dfc25885.js";import"./index-ae092da9.js";import"./Col-4af7c3cd.js";import"./styleChecker-d7256a22.js";import"./isPlainObject-f85be752.js";import"./vnode-bcebd00a.js";import"./index-00d02541.js";import"./updateLocale-4abe3bd4.js";import"./index-6f0218fe.js";import"./shallowequal-30316885.js";import"./useState-7cfb31a4.js";import"./useMemo-3af68d99.js";import"./FormItemContext-801d31a4.js";import"./omit-555d0220.js";import"./lodash-ba2547f0.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-9966573e.js";import"./index-5f6600aa.js";import"./Badge-daa269e5.js";import"./isNumeric-3f69e2aa.js";import"./index-432f8768.js";import"./index-120ad211.js";import"./index-7722f326.js";import"./index-5bb4f02b.js";import"./index-1399904b.js";import"./DialogWrap-ed1e42ab.js";import"./pickAttrs-6cecdc2a.js";import"./css-aae66f86.js";import"./index-2a7e74b5.js";import"./toArray-c3886d9c.js";import"./SearchOutlined-bf31e51b.js";import"./isMobile-e2e89480.js";import"./index-a5608fae.js";import"./adminDb-351203a1.js";import"./pushNotification-6e15a49a.js";import"./supabaseTableQuery-16ab1095.js";import"./useRefs-b0f27066.js";import"./_flatRest-e4351155.js";import"./index-0e61c248.js";import"./index-0326f7f1.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:"انتقاد و