2026-08-11 18:06:14 +03:30
|
|
|
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-cf23da0e.js";import{_ as V,u as A}from"./useBaseTable-253c2441.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-3cd9de9f.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-c44e3fac.js";import{t as j}from"./useDataTime-083dad6f.js";import{M as ee}from"./index-e60f1d66.js";import{I as K}from"./index-2e17d8ae.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-157892ef.js";import{_ as oe}from"./BasicModal.vue_vue_type_style_index_0_lang-1f90009d.js";import{I as le}from"./Icon-1c8e1e9a.js";import{D as ne,_ as re}from"./index-f33a36f0.js";import{S as ie}from"./index-d692d775.js";import{T as de}from"./isSymbol-d560f493.js";import{_ as ue,T as ce}from"./index-4a70e7da.js";import"./updateLocale-5b074ed4.js";import"./index-bc659f42.js";import"./index-47a95ccc.js";import"./vnode-4a81629f.js";import"./omit-e1b41de8.js";import"./_plugin-vue_export-helper-b335f697.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-db2fbdbd.js";import"./Badge-65e3af71.js";import"./isNumeric-3f69e2aa.js";import"./index-7e24c386.js";import"./index-3631a093.js";import"./styleChecker-a54924f7.js";import"./index-d809d721.js";import"./DialogWrap-30578cd1.js";import"./css-aae66f86.js";import"./index-c3f6f95c.js";import"./isPlainObject-86af753d.js";import"./useRefs-3fd4fb6c.js";import"./_flatRest-6d155af7.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"},Ie={class:"flex justify-between items-center bg-white rounded-md px-3 py-2 border border-gray-100"},Pe=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",{cla
|