Files
machartaa_admin_dist/dist/assets/index-03b9db17.js
T

2 lines
22 KiB
JavaScript
Raw Normal View History

2026-09-19 11:51:19 +03:30
import{_ as Ze}from"./BasicMainCard-5c80ef19.js";import{_ as et}from"./BasicModal.vue_vue_type_style_index_0_lang-73f8a39e.js";import{_ as tt,u as at}from"./useBaseTable-fed341a8.js";import{_ as st}from"./button.vue_vue_type_style_index_0_lang-76fea031.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-e064ffac.js";import{I as B}from"./Icon-66010218.js";import{t as Me}from"./useDataTime-ba62eb36.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-a88d08a2.js";import{n as Ct}from"./subscription-9475a08d.js";import{M as Tt}from"./index-418d2c16.js";import{_ as St,T as It}from"./index-69ceab84.js";import{I as At}from"./index-3d02255e.js";import{T as se}from"./isSymbol-dc94e500.js";import{A as Re,a as Ue}from"./index-cdd00f1c.js";import{U as $t}from"./index-227d8909.js";import{_ as Mt}from"./_plugin-vue_export-helper-c2b02d20.js";import"./Grid-28c7683b.js";import"./index-7dcbad31.js";import"./Col-e0b57a55.js";import"./styleChecker-a89d8927.js";import"./isPlainObject-118a5a84.js";import"./vnode-43e0532a.js";import"./index-5791312b.js";import"./updateLocale-53d85368.js";import"./index-c6cc46d7.js";import"./shallowequal-9a59fe48.js";import"./useState-1df7da74.js";import"./useMemo-118b7fdd.js";import"./FormItemContext-ea5e629b.js";import"./omit-98a5c881.js";import"./lodash-77052907.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-094732f6.js";import"./index-a1f6487e.js";import"./Badge-31351815.js";import"./isNumeric-3f69e2aa.js";import"./index-6b63d7e6.js";import"./index-2f676c29.js";import"./index-1320e6a3.js";import"./index-cf4a2322.js";import"./index-01bd72a1.js";import"./DialogWrap-934116e0.js";import"./pickAttrs-20fc50b7.js";import"./css-aae66f86.js";import"./index-020f9f38.js";import"./toArray-03404447.js";import"./SearchOutlined-bce29925.js";import"./isMobile-e2e89480.js";import"./index-4cde3ed4.js";import"./adminDb-c0cab666.js";import"./pushNotification-2c3e75d7.js";import"./supabaseTableQuery-e8c06eb0.js";import"./useRefs-320b3f3d.js";import"./_flatRest-0e75a214.js";import"./index-d6ed4c52.js";import"./index-def436d1.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:"بØ