2026-07-04 21:19:56 +03:30
|
|
|
import{d as U,o as g,c as h,a as e,t as i,J as z,g as m,h as N,v as G,b as a,j as k,w as r,e as c,k as L,G as V,D as T,F as H,i as O}from"./index-caf247db.js";import{_ as A,u as q}from"./useBaseTable-f680a0e2.js";import{_ as Q,B as W}from"./button.vue_vue_type_style_index_0_lang-e0dea8bb.js";import{g as X,a as Y,s as Z,b as ee,c as te,d as se}from"./pushNotification-80bea31c.js";import{t as F}from"./useDataTime-bbfc6d86.js";import{M as ae}from"./index-688f073d.js";import{I as j}from"./index-01e8bf20.js";import{_ as le}from"./BasicModal.vue_vue_type_style_index_0_lang-d1e6a59e.js";import{I as oe}from"./Icon-199a922a.js";import{D as ne,_ as re}from"./index-a2685686.js";import{S as ie}from"./index-70e9e671.js";import{T as de}from"./shallowequal-1ad8252c.js";import{_ as ue,T as ce}from"./index-19e6126e.js";import"./fa_IR-3fc10d80.js";import"./toArray-ad006c19.js";import"./vnode-20d5d74c.js";import"./FormItemContext-d53141ed.js";import"./pickAttrs-d5fdda1c.js";import"./useState-74071817.js";import"./_plugin-vue_export-helper-438caba9.js";import"./lodash-f5ffd720.js";import"./css-bff3ffda.js";import"./DialogWrap-7b83b14e.js";import"./index-7a128151.js";import"./styleChecker-477bfa11.js";import"./isPlainObject-16f1bdfa.js";import"./useRefs-22b2473f.js";import"./_flatRest-a161204e.js";const _e={class:"py-2 pr-3 w-full h-full relative"},pe={class:"text-black font-bold"},me={class:"mt-5 overflow-y-auto p-2 h-[96%]"},fe=U({__name:"BasicShowContext",props:{title:{}},setup(t){const l=t;return(d,$)=>(g(),h("div",_e,[e("div",pe,i(l.title),1),e("div",me,[z(d.$slots,"default")])]))}}),ve=[{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 l=((d=t==null?void 0:t.record)==null?void 0:d.record)??(t==null?void 0:t.record)??t;return l!=null&&l.has_push?"✓ فعال":"—"}},{title:"زمان ثبتنام",dataIndex:"created_at",key:"created_at",type:"Date",filterable:!0,customRender:t=>{var d;const l=((d=t==null?void 0:t.record)==null?void 0:d.record)??(t==null?void 0:t.record)??t;return l!=null&&l.created_at?F(l.created_at):"-"}}],be={class:"space-y-4"},ge={class:"grid grid-cols-1 xl:grid-cols-3 gap-4"},he={class:"xl:col-span-2 space-y-4"},ye=e("div",{class:"mb-1 text-sm text-gray-600"},"عنوان نوتیفیکیشن *",-1),xe=e("div",{class:"mb-1 text-sm text-gray-600"},"متن نوتیفیکیشن *",-1),ke=e("div",{class:"mb-1 text-sm text-gray-600"},"لینک (اختیاری)",-1),$e={class:"flex flex-wrap gap-2"},we={class:"bg-gray-50 rounded-lg p-4 border border-gray-200 space-y-2 text-sm"},Se=e("div",{class:"font-semibold text-gray-700 mb-2"},"آمار اعلانها",-1),Ie={class:"grid grid-cols-1 gap-2"},Pe={class:"flex justify-between items-center bg-white rounded-md px-3 py-2 border border-gray-100"},Re=e("span",{class:"text-gray-600"},"کاربران با اعلان فعال",-1),Te={class:"text-green-700"},Be={class:"flex justify-between items-center bg-white rounded-md px-3 py-2 border border-gray-100"},Ce=e("span",{class:"text-gray-600"},"کل اشتراک push",-1),De=e("div",{class:"font-semibold text-gray-700 mb-2 pt-2"},"راهنما",-1),Le=e("p",{class:"text-gray-600 leading-6 m-0"}," فقط کاربرانی که اعلان را در اپ فعال کردهاند، نوتیف دریافت میکنند. ",-1),Ne=e("p",{class:"text-gray-600 leading-6 m-0"}," از فیلتر «اعلان فعال» میتوانید فقط کاربران با اعلان روشن یا خاموش را ببینید. ",-1),Ue=e("p",{class:"text
|