2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-8e357ce3.js";import{_ as V,u as A}from"./useBaseTable-37cc5c4e.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-f45a0e84.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-781d8efe.js";import{t as j}from"./useDataTime-d0312d21.js";import{M as ee}from"./index-11cc1aef.js";import{I as K}from"./index-9cf626d0.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-4ed3ac6f.js";import{_ as le}from"./BasicModal.vue_vue_type_style_index_0_lang-59e3a60f.js";import{I as oe}from"./Icon-1df01939.js";import{D as ne,_ as re}from"./index-996db45c.js";import{S as ie}from"./index-59052094.js";import{T as de}from"./isSymbol-affa2e59.js";import{T as ue,a as ce}from"./index-e2784e5a.js";import"./updateLocale-bc84b8d6.js";import"./_plugin-vue_export-helper-63226944.js";import"./vnode-89c9e7cb.js";import"./useState-8f767204.js";import"./index-a14f73db.js";import"./toArray-7ead3702.js";import"./FormItemContext-2461cbab.js";import"./pickAttrs-5db0ba14.js";import"./lodash-93f7118d.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-33c708c4.js";import"./index-634fb851.js";import"./isNumeric-3f69e2aa.js";import"./index-0555c827.js";import"./index-da74a8b6.js";import"./styleChecker-8552d8dc.js";import"./index-23a87c32.js";import"./LeftOutlined-61414320.js";import"./css-aae66f86.js";import"./DialogWrap-576e3f01.js";import"./index-0259cd70.js";import"./isPlainObject-28bd6686.js";import"./useRefs-68a2914e.js";import"./_flatRest-1f22619a.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"}," از فیلتر «اعلان فعال» میتوانید فقط کاربران با اعلان ر�
|