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

2 lines
25 KiB
JavaScript
Raw Normal View History

2026-10-19 15:32:02 +03:30
import{_ as ke}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-9f1a6705.js";import{_ as ge}from"./BasicModal.vue_vue_type_style_index_0_lang-3870ceab.js";import{u as ne,_ as be}from"./useBaseTable-d607863f.js";import{_ as Re}from"./button.vue_vue_type_style_index_0_lang-90a36b25.js";import{g as $e}from"./member-8599f19e.js";import{I 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 V,w as r,f as p,t as f,n as L,F as he,q as Ce,R as le,H as S,x as Le,V as Te,k as re}from"./index-0127add0.js";import{t as W}from"./useDataTime-784b7128.js";import{_ as Pe,v as ce,t as ue}from"./AudienceSegmentPicker.vue_vue_type_script_setup_true_lang-36f768cc.js";import{M as ie}from"./index-a21bea9f.js";import{I as de,_ as Be}from"./index-30500426.js";import{C as Ae}from"./index-c971ffa4.js";import{I as Me}from"./index-3adef0e0.js";import{I as pe}from"./Icon-16a7c1f0.js";import{S as De}from"./index-9c57cbfd.js";import{B as Ve}from"./index-163f964f.js";import{D as Ue,_ as Ne}from"./index-35a6f833.js";import{S as ze,_ as Fe}from"./index-55a09ddc.js";import{T as me}from"./isSymbol-102dac7e.js";import{_ as Oe,T as qe}from"./index-a1a9d49a.js";import"./updateLocale-1362a15b.js";import"./shallowequal-327a9d42.js";import"./_plugin-vue_export-helper-10c790be.js";import"./vnode-e48a529a.js";import"./useState-ab7e8e52.js";import"./useMemo-531a1ef9.js";import"./FormItemContext-99d81d38.js";import"./omit-a9878f04.js";import"./lodash-572b39f3.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-1007497c.js";import"./index-e8339542.js";import"./Badge-8884c4f5.js";import"./isNumeric-3f69e2aa.js";import"./index-def9ba08.js";import"./index-5d23b372.js";import"./index-827c0a37.js";import"./userSegments-31188c57.js";import"./dayjs-3a8d9dfc.js";import"./index-1a31ac7a.js";import"./DialogWrap-81711a5a.js";import"./pickAttrs-05046885.js";import"./styleChecker-6ecca756.js";import"./SearchOutlined-6c1cc274.js";import"./isPlainObject-cdd64a7d.js";import"./index-83d7ccb3.js";import"./index-a6785c60.js";import"./LeftOutlined-dfa284aa.js";import"./css-aae66f86.js";import"./toArray-2923cdda.js";import"./isMobile-e2e89480.js";import"./useRefs-5dfcc3e3.js";import"./_flatRest-56c6e14a.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 spac