2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
import{_ as z}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-95b183eb.js";import{_ as V,u as A}from"./useBaseTable-e1239fc4.js";import{_ as J,B as O}from"./button.vue_vue_type_style_index_0_lang-6d9e6004.js";import{g as G,a as Q,s as W,b as X,c as Y,d as Z}from"./pushNotification-1f6382e9.js";import{t as j}from"./useDataTime-39d365d2.js";import{M as ee}from"./index-a6dd452f.js";import{I as K}from"./index-ef10ea82.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-03881eed.js";import{_ as oe}from"./BasicModal.vue_vue_type_style_index_0_lang-8174f671.js";import{I as le}from"./Icon-3cba35ff.js";import{D as ne,_ as re}from"./index-1f600461.js";import{S as ie}from"./index-c4251c82.js";import{T as de}from"./isSymbol-72806280.js";import{T as ue,a as ce}from"./index-577e5a04.js";import"./updateLocale-ce915111.js";import"./index-bc659f42.js";import"./index-6e050cc2.js";import"./vnode-dddce04c.js";import"./omit-0bf0f784.js";import"./_plugin-vue_export-helper-7a7517f7.js";import"./useState-164294d5.js";import"./index-2b937264.js";import"./toArray-9d324686.js";import"./FormItemContext-77a35a1f.js";import"./pickAttrs-bd4d06ea.js";import"./lodash-78d38859.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-9e1881c0.js";import"./index-fbef06fa.js";import"./Badge-7d333aab.js";import"./isNumeric-3f69e2aa.js";import"./index-245d34d2.js";import"./index-2245e0eb.js";import"./styleChecker-230f1d69.js";import"./index-b336c82b.js";import"./DialogWrap-ab772604.js";import"./css-aae66f86.js";import"./index-d1c6db2d.js";import"./isPlainObject-b1bc5d24.js";import"./useRefs-d2ce1514.js";import"./_flatRest-08d5cdb1.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",{cla
|