Files
machartaa_admin_dist/dist/assets/index-1a43dd8b.js
T

2 lines
8.2 KiB
JavaScript
Raw Normal View History

2026-07-13 14:17:44 +03:30
import{_ as M}from"./BasicMainCard-ca45dc8f.js";import{u as g,_ as j}from"./useBaseTable-2c12f999.js";import{t as v,a as b}from"./useDataTime-2e34f996.js";import{G as _,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-25cd5b63.js";import{f as C,a as P,c as R,d as T,e as ee,b as E}from"./supabaseTableQuery-95762ff3.js";import{T as te,a as ae}from"./index-f3a3c466.js";import"./index-07c1e11d.js";import"./index-215d9d0e.js";import"./Col-cf6eff58.js";import"./styleChecker-8ac93962.js";import"./isPlainObject-8b65ef77.js";import"./vnode-f0cfc776.js";import"./_plugin-vue_export-helper-8d8742f4.js";import"./button.vue_vue_type_style_index_0_lang-0f677bfc.js";import"./Icon-01a88edc.js";import"./updateLocale-0fa6d737.js";import"./toArray-0e67c9de.js";import"./isSymbol-77c00ba0.js";import"./FormItemContext-98c099ed.js";import"./pickAttrs-e75df291.js";import"./useState-d0b157bd.js";import"./lodash-6b23de74.js";import"./index-b02fc407.js";import"./DialogWrap-5bf5c8bc.js";import"./BasicModal.vue_vue_type_style_index_0_lang-d3e2b6d9.js";import"./index-517534fa.js";import"./index-27d91bcb.js";import"./css-19df7134.js";import"./index-e45ca121.js";import"./useRefs-50f31a64.js";import"./_flatRest-93154856.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=`${e.first_name||""} ${e.last_name||""}`.trim();return a||e.phone||"نامشخص"}function le(e){return Array.isArray(e.users)?e.users[0]:e.users}function W(e,a){const i=le(e);return{user_id:e.user_id,total_points:e.total_points,updated_at:e.updated_at,week_start:e.week_star