2026-07-14 12:58:42 +03:30
|
|
|
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-5dbe757b.js";import{_ as V,u as A}from"./useBaseTable-3b2d0853.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-95946c23.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-00056698.js";import{t as j}from"./useDataTime-c147e135.js";import{M as ee}from"./index-4f6342fa.js";import{I as K}from"./index-f6eb678e.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-20d5dab1.js";import{_ as le}from"./BasicModal.vue_vue_type_style_index_0_lang-5bce5515.js";import{I as oe}from"./Icon-06d3f751.js";import{D as ne,_ as re}from"./index-bd7fcf7d.js";import{S as ie}from"./index-38a2f111.js";import{T as de}from"./isSymbol-f04930e1.js";import{T as ue,a as ce}from"./index-4284a867.js";import"./updateLocale-6ea9ed84.js";import"./toArray-fb96c8b9.js";import"./vnode-18b1f518.js";import"./FormItemContext-28b30746.js";import"./pickAttrs-93039156.js";import"./useState-3cc4a0be.js";import"./_plugin-vue_export-helper-26f60d29.js";import"./lodash-28ee46da.js";import"./css-0bca533a.js";import"./DialogWrap-a4cda90f.js";import"./index-f75dc027.js";import"./styleChecker-6ae1ce26.js";import"./isPlainObject-769b8c03.js";import"./useRefs-03151dab.js";import"./_flatRest-12208321.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"}," از فیلتر «اعلان فعال» میتوانید فقط کاربران با اعلان روشن یا خاموش را ببینید. ",-1),Ce=e("p",{class:"text-gray-600 leading-6 m-0"}," برای ارسال محدود، کاربران را از جدول پایین انتخاب کنید. ",-1),De={key:0,class:"pt-2 border-t border-gray-200"},Le=e("div",{class:"font-
|