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

2 lines
13 KiB
JavaScript
Raw Normal View History

2026-07-26 21:18:50 +03:30
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-9b3cfda3.js";import{_ as V,u as A}from"./useBaseTable-1503ffff.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-c90761af.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-35b3bf99.js";import{t as j}from"./useDataTime-57fc1f09.js";import{M as ee}from"./index-9c349efd.js";import{I as K}from"./index-0f8757b7.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-a1cbdc04.js";import{_ as oe}from"./BasicModal.vue_vue_type_style_index_0_lang-7e7e37ca.js";import{I as le}from"./Icon-ecd42e7a.js";import{D as ne,_ as re}from"./index-bd2a30ca.js";import{S as ie}from"./index-81112407.js";import{T as de}from"./isSymbol-52713665.js";import{T as ue,a as ce}from"./index-6a6e2f69.js";import"./updateLocale-16bb7b9a.js";import"./_plugin-vue_export-helper-a1c1a00b.js";import"./vnode-2778ccba.js";import"./useState-7eb66b9e.js";import"./index-1a119724.js";import"./toArray-8d6c1cc7.js";import"./FormItemContext-8408af52.js";import"./pickAttrs-21cead41.js";import"./lodash-5e93f948.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-c33a79e6.js";import"./index-022013ee.js";import"./isNumeric-3f69e2aa.js";import"./index-be2c7609.js";import"./index-c8c86a9a.js";import"./styleChecker-0c4cbd10.js";import"./index-9c0e62f2.js";import"./LeftOutlined-40fb7e14.js";import"./css-aae66f86.js";import"./DialogWrap-65e27abc.js";import"./index-039fd9c4.js";import"./isPlainObject-f510e32a.js";import"./useRefs-d6fb9168.js";import"./_flatRest-61b4c813.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"}," از فیلتر «اعلان فعال»