2026-07-16 18:05:28 +03:30
|
|
|
|
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-362ae620.js";import{_ as V,u as A}from"./useBaseTable-a06f0b5f.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-1a640d2e.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-d063ae47.js";import{t as j}from"./useDataTime-9ed06ff7.js";import{M as ee}from"./index-2ebbed2a.js";import{I as K}from"./index-06f6280e.js";import{d as F,g as m,h as N,v as te,o as g,c as h,a as e,b as a,j as k,w as n,e as c,t as i,k as L,H as q,D as T,F as se,i as ae}from"./index-413b1e47.js";import{_ as le}from"./BasicModal.vue_vue_type_style_index_0_lang-62717bd0.js";import{I as oe}from"./Icon-d2ec8cda.js";import{D as ne,_ as re}from"./index-110c3a1c.js";import{S as ie}from"./index-2a1cc68a.js";import{T as de}from"./isSymbol-86ce36f2.js";import{T as ue,a as ce}from"./index-59759ca5.js";import"./updateLocale-7edd5cff.js";import"./_plugin-vue_export-helper-45f37eb1.js";import"./vnode-66c98e4d.js";import"./useState-90ae9741.js";import"./index-7af4b7ee.js";import"./toArray-4793eb05.js";import"./FormItemContext-faddafe7.js";import"./pickAttrs-40baade3.js";import"./lodash-a9e7f026.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-5ce452ba.js";import"./index-ed8959d3.js";import"./isNumeric-3f69e2aa.js";import"./index-dd520fef.js";import"./index-dfbe7e5c.js";import"./styleChecker-51e38a61.js";import"./index-85f33ea5.js";import"./LeftOutlined-7f9e3805.js";import"./css-aae66f86.js";import"./DialogWrap-7069c158.js";import"./index-d42da2d6.js";import"./isPlainObject-e0f2efff.js";import"./useRefs-32d594a2.js";import"./_flatRest-c0f9ecce.js";const _e=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,customRender:t=>{var d;return((t==null?void 0:t.index)??((d=t==null?void 0:t.record)==null?void 0:d.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 d;const r=((d=t==null?void 0:t.record)==null?void 0:d.record)??(t==null?void 0:t.record)??t;return r!=null&&r.has_push?"✓ فعال":"—"}},{title:"زمان ثبتنام",dataIndex:"created_at",key:"created_at",type:"Date",filterable:!0,customRender:t=>{var d;const r=((d=t==null?void 0:t.record)==null?void 0:d.record)??(t==null?void 0:t.record)??t;return r!=null&&r.created_at?j(r.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"}," از فیلتر «اعلان فعال» میتوانید فقط کاربران با اعلان ر�
|