2026-07-16 16:44:06 +03:30
|
|
|
import{_ as M}from"./BasicMainCard-d0e0118a.js";import{u as g,_ as j}from"./useBaseTable-ee2a5641.js";import{t as v,a as b}from"./useDataTime-42f03937.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-c7cfb6d0.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-e011592a.js";import"./index-f553b547.js";import"./index-2c3e0423.js";import"./Col-85f675b3.js";import"./styleChecker-2280acc2.js";import"./isPlainObject-9edbc0c5.js";import"./vnode-d460d6f7.js";import"./_plugin-vue_export-helper-64344365.js";import"./button.vue_vue_type_style_index_0_lang-976922e0.js";import"./Icon-d2a333f8.js";import"./updateLocale-4490df87.js";import"./isSymbol-39130b1f.js";import"./useState-624b81a4.js";import"./index-a85f4e3c.js";import"./toArray-69a6a276.js";import"./FormItemContext-c66bbc76.js";import"./pickAttrs-a95b5777.js";import"./lodash-ccbe62b4.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-f1dbbf12.js";import"./index-accfa387.js";import"./DialogWrap-c08d6860.js";import"./BasicModal.vue_vue_type_style_index_0_lang-78720926.js";import"./index-5ce472da.js";import"./index-ec42cf6b.js";import"./index-2173586f.js";import"./isNumeric-3f69e2aa.js";import"./index-c22a9b5b.js";import"./index-394ef579.js";import"./index-f2204652.js";import"./LeftOutlined-91e9e8a5.js";import"./css-aae66f86.js";import"./index-234839ae.js";import"./useRefs-ac12ba74.js";import"./_flatRest-4bcfe4cb.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
|