Files
machartaa_admin_dist/dist/assets/index-4d0c4318.js
T

2 lines
13 KiB
JavaScript
Raw Normal View History

2026-07-26 16:24:36 +03:30
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-6b393b46.js";import{_ as V,u as A}from"./useBaseTable-c2761680.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-c37c204f.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-929122f6.js";import{t as j}from"./useDataTime-f3f5ea50.js";import{M as ee}from"./index-a34bba22.js";import{I as K}from"./index-4762b7d8.js";import{d as F,g as m,h as N,v as te,o as g,c as y,a as e,b as a,j as $,w as r,e as u,t as i,k as L,H as q,D as T,F as se,i as ae}from"./index-4dccb174.js";import{_ as oe}from"./BasicModal.vue_vue_type_style_index_0_lang-acac591d.js";import{I as le}from"./Icon-6b61a044.js";import{D as ne,_ as re}from"./index-42db6e9d.js";import{S as ie}from"./index-f08752bf.js";import{T as de}from"./isSymbol-80c521a5.js";import{T as ue,a as ce}from"./index-7a876d00.js";import"./updateLocale-72f02bbd.js";import"./_plugin-vue_export-helper-fc650ede.js";import"./vnode-8e0d49aa.js";import"./useState-7760581d.js";import"./index-c7f692d2.js";import"./toArray-8c6d8405.js";import"./FormItemContext-d26e27b7.js";import"./pickAttrs-13d22210.js";import"./lodash-0f8911c3.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-c92640b4.js";import"./index-895cd0d7.js";import"./isNumeric-3f69e2aa.js";import"./index-00d83bfc.js";import"./index-8f783c3c.js";import"./styleChecker-133e2b1a.js";import"./index-ce6d92ba.js";import"./LeftOutlined-2d8ca514.js";import"./css-aae66f86.js";import"./DialogWrap-715ad625.js";import"./index-6a54d8cb.js";import"./isPlainObject-819f93b0.js";import"./useRefs-b5c660b2.js";import"./_flatRest-00780a2d.js";const _e=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,customRender:t=>{var h;const o=((h=t==null?void 0:t.record)==null?void 0:h.record)??(t==null?void 0:t.record)??t;return(typeof(o==null?void 0:o.index)=="number"?o.index:0)+1}},{title:"نام",dataIndex:"first_name",key:"first_name",filterable:!0},{title:"نام خانوادگی",dataIndex:"last_name",key:"last_name",filterable:!0},{title:"شماره همراه",dataIndex:"phone",key:"phone",filterable:!0},{title:"اعلان فعال",dataIndex:"has_push",key:"has_push",filterField:"has_push",type:"Select",filterable:!0,filterComponentProps:{options:[{label:"فعال",value:"1"},{label:"غیرفعال",value:"0"}]},customRender:t=>{var c;const o=((c=t==null?void 0:t.record)==null?void 0:c.record)??(t==null?void 0:t.record)??t;return o!=null&&o.has_push?"✓ فعال":"—"}},{title:"زمان ثبت‌نام",dataIndex:"created_at",key:"created_at",type:"Date",filterable:!0,customRender:t=>{var c;const o=((c=t==null?void 0:t.record)==null?void 0:c.record)??(t==null?void 0:t.record)??t;return o!=null&&o.created_at?j(o.created_at):"-"}}],pe={class:"space-y-4"},me={class:"grid grid-cols-1 xl:grid-cols-3 gap-4"},fe={class:"xl:col-span-2 space-y-4"},ve=e("div",{class:"mb-1 text-sm text-gray-600"},"عنوان نوتیفیکیشن *",-1),be=e("div",{class:"mb-1 text-sm text-gray-600"},"متن نوتیفیکیشن *",-1),ge=e("div",{class:"mb-1 text-sm text-gray-600"},"لینک (اختیاری)",-1),he={class:"flex flex-wrap gap-2"},ye={class:"bg-gray-50 rounded-lg p-4 border border-gray-200 space-y-2 text-sm"},xe=e("div",{class:"font-semibold text-gray-700 mb-2"},"آمار اعلان‌ها",-1),ke={class:"grid grid-cols-1 gap-2"},$e={class:"flex justify-between items-center bg-white rounded-md px-3 py-2 border border-gray-100"},we=e("span",{class:"text-gray-600"},"کاربران با اعلان فعال",-1),Se={class:"text-green-700"},Pe={class:"flex justify-between items-center bg-white rounded-md px-3 py-2 border border-gray-100"},Ie=e("span",{class:"text-gray-600"},"کل اشتراک push",-1),Re=e("div",{class:"font-semibold text-gray-700 mb-2 pt-2"},"راهنما",-1),Te=e("p",{class:"text-gray-600 leading-6 m-0"}," فقط کاربرانی که اعلان را در اپ فعال کرده‌اند، نوتیف دریافت می‌کنند. ",-1),Be=e("p",{class:"text-gray-600 leading-6 m-0"}," از فیلتر «اعلان فعال»