Files
machartaa_admin_dist/dist/assets/index-83155fd9.js
T

2 lines
13 KiB
JavaScript
Raw Normal View History

2026-07-08 14:38:52 +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-ffafd876.js";import{_ as A,u as q}from"./useBaseTable-d491ffe5.js";import{_ as Q,B as W}from"./button.vue_vue_type_style_index_0_lang-3a790820.js";import{g as X,a as Y,s as Z,b as ee,c as te,d as se}from"./pushNotification-d512213f.js";import{t as F}from"./useDataTime-f9f596b1.js";import{M as ae}from"./index-93c9f6b7.js";import{I as j}from"./index-1e605be8.js";import{_ as le}from"./BasicModal.vue_vue_type_style_index_0_lang-36072897.js";import{I as oe}from"./Icon-58829394.js";import{D as ne,_ as re}from"./index-a5776c65.js";import{S as ie}from"./index-40f87837.js";import{T as de}from"./shallowequal-ca58cb6e.js";import{_ as ue,T as ce}from"./index-1a5da99e.js";import"./fa_IR-b2b727da.js";import"./toArray-ae59f6f3.js";import"./vnode-0b63e783.js";import"./FormItemContext-390ff43d.js";import"./pickAttrs-dfe23605.js";import"./useState-41f6d092.js";import"./_plugin-vue_export-helper-e7197a51.js";import"./lodash-ab9f2acd.js";import"./css-b16a4085.js";import"./DialogWrap-b6912a28.js";import"./index-0bd19c4c.js";import"./styleChecker-b4f2d4f9.js";import"./isPlainObject-d7ef5141.js";import"./useRefs-7c3186e8.js";import"./_flatRest-914a1e1b.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