Files
machartaa_admin_dist/dist/assets/index-d5ecd83a.js
T

2 lines
25 KiB
JavaScript
Raw Normal View History

2026-10-14 16:25:33 +03:30
import{_ as ke}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-e581bb11.js";import{_ as ge}from"./BasicModal.vue_vue_type_style_index_0_lang-c75cb8ba.js";import{u as ne,_ as be}from"./useBaseTable-dfbf3762.js";import{_ as Re}from"./button.vue_vue_type_style_index_0_lang-5dd5fad9.js";import{g as $e}from"./member-e7496edf.js";import{R as O,d as se,i as m,j as Q,z as Se,o as b,c as y,b as a,e as l,l as U,w as r,f as p,t as f,n as L,F as he,q as Ce,L as le,H as S,x as Le,S as Te,k as re}from"./index-a94f140f.js";import{t as W}from"./useDataTime-9987a66e.js";import{_ as Pe,v as ce,t as ue}from"./AudienceSegmentPicker.vue_vue_type_script_setup_true_lang-3edeca56.js";import{M as ie}from"./index-cadfe89f.js";import{I as de,_ as Be}from"./index-9bf19e54.js";import{C as Ae}from"./index-02db9106.js";import{I as Me}from"./index-666e1a51.js";import{I as pe}from"./Icon-0c593d03.js";import{S as De}from"./index-a08f6658.js";import{B as Ue}from"./index-da3c4531.js";import{D as Ve,_ as Ne}from"./index-40137f9b.js";import{S as ze,_ as Fe}from"./index-1e5db048.js";import{T as me}from"./isSymbol-0faad147.js";import{_ as Oe,T as qe}from"./index-e5d8b47c.js";import"./updateLocale-63da7352.js";import"./shallowequal-311bf7d9.js";import"./_plugin-vue_export-helper-3751a4c9.js";import"./vnode-d8d89b8b.js";import"./useState-75e49d81.js";import"./useMemo-e6667500.js";import"./FormItemContext-d446a85f.js";import"./omit-09913e6a.js";import"./lodash-b667f7ec.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-988f9693.js";import"./index-94f097c0.js";import"./Badge-64556311.js";import"./isNumeric-3f69e2aa.js";import"./index-a10a5cee.js";import"./index-d139af20.js";import"./index-f9445381.js";import"./userSegments-16cccd73.js";import"./dayjs-39a627df.js";import"./index-fadc8b11.js";import"./DialogWrap-1f925fe5.js";import"./pickAttrs-d12003ac.js";import"./styleChecker-cbf8a3c6.js";import"./SearchOutlined-2c05f948.js";import"./isPlainObject-fa7524bd.js";import"./index-6838bdc5.js";import"./index-fa5a0887.js";import"./css-aae66f86.js";import"./toArray-3323d384.js";import"./isMobile-e2e89480.js";import"./useRefs-14e054ef.js";import"./_flatRest-38d88d03.js";const fe=async t=>(await O.post("/admin/voice/preview",t)).data,Ke=async t=>(await O.post("/admin/voice/test",t)).data,_e=async t=>(await O.post("/admin/voice/campaigns/start",t)).data,je=async t=>(await O.post(`/admin/voice/campaigns/${t}/continue-batch`)).data,Ee=async t=>{var $;const c=await O.get("/admin/voice/campaigns",{params:{page:t.page,limit:t.limit,search:t.search}}),x=t.page||1,R=t.limit||20,w=(x-1)*R;return{rows:(c.data||[]).map((h,g)=>({...h,index:w+g})),total:c.total??(($=c.data)==null?void 0:$.length)??0,query:{...t,total:c.total??0,page:x,limit:R}}},ve=async(t,c)=>(await O.get(`/admin/voice/campaigns/${t}`,{params:c})).data,He=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,customRender:t=>t.index+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:"created_at",key:"created_at",type:"Date",filterable:!0,customRender:t=>t.record.created_at?W(t.record.created_at):"-"}],Je={class:"grid grid-cols-1 xl:grid-cols-3 gap-4 mb-4"},Ge={class:"xl:col-span-2 space-y-4"},Qe=a("div",{class:"mb-1 text-sm text-gray-600"},"شناسه فایل صوتی (fileId) *",-1),We=a("p",{class:"text-xs text-gray-500 mt-1 mb-0"},[p(" فایل صوتی باید قبلاً در "),a("a",{href:"https://ghasedak.me",target:"_blank",rel:"noopener noreferrer"},"پنل قاصدک"),p(" بارگذاری و تأیید شده باشد. شناسه همان فایل را اینجا وارد کنید. ")],-1),Xe=a("div",{class:"mb-1 text-sm text-gray-600"},"عنوان کمپین (اختیاری)",-1),Ye={class:"flex flex-wrap gap-4 items-center"},Ze={class:"flex flex-wrap gap-2"},et={class:"bg-gray-50 rounded-lg p-4 border border-gray-200 space-y-2 text-sm"},tt=a("div",{class:"