Files
machartaa_admin_dist/dist/assets/index-48850cba.js
T

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-09-19 17:37:47 +03:30
import{_ as Ze}from"./BasicMainCard-8291a0be.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-9330561a.js";import{_ as tt,u as at}from"./useBaseTable-05b26333.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-bd7de123.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-6d0cd65e.js";import{I as B}from"./Icon-26941971.js";import{t as Me}from"./useDataTime-af597da2.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-55dffee5.js";import{n as Ct}from"./subscription-eeb89d92.js";import{M as Tt}from"./index-1fdbf8ec.js";import{_ as St,T as It}from"./index-ae4857ed.js";import{I as At}from"./index-0a3c8350.js";import{T as se}from"./isSymbol-94624ad1.js";import{A as Re,a as Ue}from"./index-0b2d4714.js";import{U as $t}from"./index-207fac00.js";import{_ as Mt}from"./_plugin-vue_export-helper-057121dd.js";import"./Grid-849ebb25.js";import"./index-a30aaa52.js";import"./Col-27d7ac55.js";import"./styleChecker-0273aaa3.js";import"./isPlainObject-d2ad9b1e.js";import"./vnode-272c72c0.js";import"./index-1d24a383.js";import"./updateLocale-cd480df1.js";import"./index-eddc2482.js";import"./shallowequal-969229a1.js";import"./useState-6a654be9.js";import"./useMemo-fb6ccae7.js";import"./FormItemContext-b6ebc5a2.js";import"./omit-0042b203.js";import"./lodash-6c37e040.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-8a3278c2.js";import"./index-61e1d708.js";import"./Badge-a066a44e.js";import"./isNumeric-3f69e2aa.js";import"./index-08466728.js";import"./index-8d45f2c0.js";import"./index-19225493.js";import"./index-cbd32094.js";import"./index-0e770d03.js";import"./DialogWrap-b6637bda.js";import"./pickAttrs-ae9bd1c0.js";import"./css-aae66f86.js";import"./index-b2a6c339.js";import"./toArray-5fe0a9e6.js";import"./SearchOutlined-f7ba34a1.js";import"./isMobile-e2e89480.js";import"./index-3f13e53b.js";import"./adminDb-abd320b8.js";import"./pushNotification-a43c0f92.js";import"./supabaseTableQuery-2e54cfd8.js";import"./useRefs-b0f30c2d.js";import"./_flatRest-2e1bd5be.js";import"./index-17510b5d.js";import"./index-373d7dab.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:"بØ