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

2 lines
8.5 KiB
JavaScript
Raw Normal View History

2026-07-22 17:08:59 +03:30
import{_ as M}from"./BasicMainCard-abd17be1.js";import{u as g,_ as j}from"./useBaseTable-eabb6e73.js";import{t as v,a as b}from"./useDataTime-a9a38277.js";import{G as p,d as q,g as F,h as H,E as J,O as G,D as Y,v as z,o as L,c as $,b as c,w as u,a as I,t as Q,k as X,H as h,j as x}from"./index-02897754.js";import{f as C,a as P,c as R,d as T,e as ee,b as E}from"./supabaseTableQuery-9069679c.js";import{T as te,a as ae}from"./index-9f87c1a7.js";import"./index-c1d1bf6d.js";import"./index-a2c53d90.js";import"./Col-880c700f.js";import"./styleChecker-ce90d19e.js";import"./isPlainObject-6a522913.js";import"./vnode-65917850.js";import"./_plugin-vue_export-helper-2dea18d7.js";import"./button.vue_vue_type_style_index_0_lang-58c562e7.js";import"./Icon-2ca0951c.js";import"./updateLocale-ed1a4c67.js";import"./isSymbol-792a2a97.js";import"./useState-4419625c.js";import"./index-1d9cca6c.js";import"./toArray-b84867a5.js";import"./FormItemContext-0ec501fb.js";import"./pickAttrs-66d27c5c.js";import"./lodash-f280de5a.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-2e8a6602.js";import"./index-4652c849.js";import"./DialogWrap-b41f46aa.js";import"./BasicModal.vue_vue_type_style_index_0_lang-a23efd75.js";import"./index-644e91ea.js";import"./index-b0c72faa.js";import"./index-9a9a9cd2.js";import"./isNumeric-3f69e2aa.js";import"./index-f459a9b9.js";import"./index-4cf251d4.js";import"./index-834ba08a.js";import"./LeftOutlined-0f3263d7.js";import"./css-aae66f86.js";import"./index-066e71ee.js";import"./useRefs-44db43e1.js";import"./_flatRest-bac800e2.js";const ie=[{title:"ردیف",dataIndex:"index",key:"index",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"رتبه",dataIndex:"rank",key:"rank",filterable:!1,width:80,align:"center"},{title:"نام کاربر",dataIndex:"display_name",key:"display_name",filterField:"display_name"},{title:"شماره همراه",dataIndex:"phone",key:"phone",filterField:"phone",width:130},{title:"امتیاز",dataIndex:"total_points",key:"total_points",filterField:"total_points",align:"center",width:100,customRender:e=>(e.record.total_points??0).toLocaleString("fa-IR")},{title:"آخرین بروزرسانی",dataIndex:"updated_at",key:"updated_at",type:"DateTime",filterField:"updated_at",width:150,customRender:e=>v(e.record.updated_at)}],ne=[{title:"ردیف",dataIndex:"index",key:"index",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"رتبه",dataIndex:"rank",key:"rank",filterable:!1,width:80,align:"center"},{title:"نام کاربر",dataIndex:"display_name",key:"display_name",filterField:"display_name"},{title:"شماره همراه",dataIndex:"phone",key:"phone",filterField:"phone",width:130},{title:"امتیاز هفته",dataIndex:"total_points",key:"total_points",filterField:"total_points",align:"center",width:110,customRender:e=>(e.record.total_points??0).toLocaleString("fa-IR")},{title:"آخرین بروزرسانی",dataIndex:"updated_at",key:"updated_at",type:"DateTime",filterField:"updated_at",width:150,customRender:e=>v(e.record.updated_at)}],oe=[{title:"ردیف",dataIndex:"index",key:"index",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"بازه هفته",dataIndex:"week_period",key:"week_period",filterField:"week_start",width:180,customRender:e=>{const a=e.record;return`${D(a.week_start)} تا ${D(a.week_end)}`}},{title:"رتبه",dataIndex:"rank",key:"rank",filterField:"rank",align:"center",width:80},{title:"نام کاربر",dataIndex:"display_name",key:"display_name",filterField:"display_name"},{title:"امتیاز",dataIndex:"total_points",key:"total_points",filterField:"total_points",align:"center",width:100,customRender:e=>(e.record.total_points??0).toLocaleString("fa-IR")},{title:"زمان آرشیو",dataIndex:"created_at",key:"created_at",type:"DateTime",filterField:"created_at",width:150,customRender:e=>v(e.record.created_at)}];function D(e){return e?b(`${e}T00:00:00Z`):"—"}function re(e){var i;if(!e)return"نامشخص";if((i=e.name)!=null&&i.trim())return e.name.trim();const a