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

2 lines
25 KiB
JavaScript
Raw Normal View History

2026-10-17 17:09:50 +03:30
import{_ as ke}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-bea2695b.js";import{_ as ge}from"./BasicModal.vue_vue_type_style_index_0_lang-8b3762d2.js";import{u as ne,_ as be}from"./useBaseTable-b65e968f.js";import{_ as Re}from"./button.vue_vue_type_style_index_0_lang-dc7b87c6.js";import{g as $e}from"./member-d29b36df.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-f7911a6d.js";import{t as W}from"./useDataTime-4da2f466.js";import{_ as Pe,v as ce,t as ue}from"./AudienceSegmentPicker.vue_vue_type_script_setup_true_lang-e3ee7782.js";import{M as ie}from"./index-6f289e55.js";import{I as de,_ as Be}from"./index-31699bda.js";import{C as Ae}from"./index-da7ed9ea.js";import{I as Me}from"./index-6bff4ff0.js";import{I as pe}from"./Icon-b5a365b6.js";import{S as De}from"./index-c7e434df.js";import{B as Ve}from"./index-fd54b9e9.js";import{D as Ue,_ as Ne}from"./index-9167e1aa.js";import{S as ze,_ as Fe}from"./index-317bbaff.js";import{T as me}from"./isSymbol-b0715776.js";import{_ as Oe,T as qe}from"./index-10c207c0.js";import"./updateLocale-0c609c95.js";import"./shallowequal-1fb084f0.js";import"./_plugin-vue_export-helper-a59ccce4.js";import"./vnode-160a3584.js";import"./useState-2a09ed7b.js";import"./useMemo-dd1208f0.js";import"./FormItemContext-e8070c30.js";import"./omit-19fd03e3.js";import"./lodash-38d75800.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-c915f24e.js";import"./index-53f009ba.js";import"./index-af05d1fd.js";import"./Badge-1e5825d4.js";import"./isNumeric-3f69e2aa.js";import"./index-aafb52b8.js";import"./index-c48ccee5.js";import"./index-79a6c7d7.js";import"./userSegments-f39407b6.js";import"./dayjs-7020322d.js";import"./index-6a32f173.js";import"./DialogWrap-157169f5.js";import"./pickAttrs-d4e89cbd.js";import"./styleChecker-10d88d72.js";import"./SearchOutlined-9cce5c32.js";import"./isPlainObject-72a97f79.js";import"./index-4a17ebf7.js";import"./index-2e819d27.js";import"./css-aae66f86.js";import"./toArray-a2b9a939.js";import"./isMobile-e2e89480.js";import"./useRefs-2e02a4a6.js";import"./_flatRest-dd0446c0.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 t