2 lines
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
import{_ as M}from"./BasicMainCard-b5ec3265.js";import{u as g,_ as j}from"./useBaseTable-37cc5c4e.js";import{t as v,a as b}from"./useDataTime-d0312d21.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-4ed3ac6f.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-e2784e5a.js";import"./index-793108ce.js";import"./index-a875f6da.js";import"./Col-a5f65985.js";import"./styleChecker-8552d8dc.js";import"./isPlainObject-28bd6686.js";import"./vnode-89c9e7cb.js";import"./_plugin-vue_export-helper-63226944.js";import"./button.vue_vue_type_style_index_0_lang-f45a0e84.js";import"./Icon-1df01939.js";import"./updateLocale-bc84b8d6.js";import"./isSymbol-affa2e59.js";import"./useState-8f767204.js";import"./index-a14f73db.js";import"./toArray-7ead3702.js";import"./FormItemContext-2461cbab.js";import"./pickAttrs-5db0ba14.js";import"./lodash-93f7118d.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-33c708c4.js";import"./index-11cc1aef.js";import"./DialogWrap-576e3f01.js";import"./BasicModal.vue_vue_type_style_index_0_lang-59e3a60f.js";import"./index-59052094.js";import"./index-9cf626d0.js";import"./index-634fb851.js";import"./isNumeric-3f69e2aa.js";import"./index-0555c827.js";import"./index-da74a8b6.js";import"./index-23a87c32.js";import"./LeftOutlined-61414320.js";import"./css-aae66f86.js";import"./index-0259cd70.js";import"./useRefs-68a2914e.js";import"./_flatRest-1f22619a.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
|