2026-08-09 11:26:51 +03:30
|
|
|
import{_ as M}from"./BasicMainCard-d630ef89.js";import{u as g,_ as j}from"./useBaseTable-81e5e1c8.js";import{t as v,a as b}from"./useDataTime-1b320de0.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-6d106dd0.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-5fa2b8ab.js";import"./Grid-f13e2170.js";import"./index-56a3533c.js";import"./Col-4cc0b984.js";import"./styleChecker-e3fb407e.js";import"./isPlainObject-7b16eb57.js";import"./vnode-62570e84.js";import"./_plugin-vue_export-helper-7797a105.js";import"./button.vue_vue_type_style_index_0_lang-262761a9.js";import"./Icon-a5ae3f4f.js";import"./updateLocale-9e7c96d6.js";import"./isSymbol-c370a0c8.js";import"./index-bc659f42.js";import"./index-96dcc83e.js";import"./omit-60677be5.js";import"./useState-7ef6eec1.js";import"./index-432513d5.js";import"./toArray-f8613bd2.js";import"./FormItemContext-c47fa363.js";import"./pickAttrs-c39578ea.js";import"./lodash-eb35a796.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-3522768e.js";import"./index-f7555b21.js";import"./DialogWrap-e684398e.js";import"./BasicModal.vue_vue_type_style_index_0_lang-5f2a723d.js";import"./index-e9a5bd4c.js";import"./index-812ee0b9.js";import"./index-6fd59bb9.js";import"./Badge-e97fb41c.js";import"./isNumeric-3f69e2aa.js";import"./index-3397bfbd.js";import"./index-47d62f0b.js";import"./index-0b1886ec.js";import"./css-aae66f86.js";import"./index-281db256.js";import"./useRefs-779e4c26.js";import"./_flatRest-637ff229.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)retu
|