2 lines
8.7 KiB
JavaScript
2 lines
8.7 KiB
JavaScript
import{_ as M}from"./BasicMainCard-16037bcb.js";import{u as g,_ as j}from"./useBaseTable-253c2441.js";import{t as v,a as b}from"./useDataTime-083dad6f.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-157892ef.js";import{fetchMatchingUserIds as C,applyEmbeddedUserSearch as E,applySupabaseSort as R,applySupabasePagination as T,formatTableResult as ee,applySupabaseFilter as P}from"./supabaseTableQuery-8ab5665d.js";import{_ as te,T as ae}from"./index-4a70e7da.js";import"./Grid-938ddf81.js";import"./index-dc86b1c3.js";import"./Col-b55f55a6.js";import"./styleChecker-a54924f7.js";import"./isPlainObject-86af753d.js";import"./vnode-4a81629f.js";import"./_plugin-vue_export-helper-b335f697.js";import"./button.vue_vue_type_style_index_0_lang-3cd9de9f.js";import"./Icon-1c8e1e9a.js";import"./updateLocale-5b074ed4.js";import"./isSymbol-d560f493.js";import"./index-bc659f42.js";import"./index-47a95ccc.js";import"./omit-e1b41de8.js";import"./useState-c3e69ab5.js";import"./index-10655c40.js";import"./toArray-0cb2ab82.js";import"./FormItemContext-9d898e7c.js";import"./pickAttrs-99fc3772.js";import"./lodash-b0b4e146.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-18d9510e.js";import"./index-e60f1d66.js";import"./DialogWrap-30578cd1.js";import"./BasicModal.vue_vue_type_style_index_0_lang-1f90009d.js";import"./index-d692d775.js";import"./index-2e17d8ae.js";import"./index-db2fbdbd.js";import"./Badge-65e3af71.js";import"./isNumeric-3f69e2aa.js";import"./index-7e24c386.js";import"./index-3631a093.js";import"./index-d809d721.js";import"./css-aae66f86.js";import"./index-c3f6f95c.js";import"./useRefs-3fd4fb6c.js";import"./_flatRest-6d155af7.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,customRe
|