Files

2 lines
25 KiB
JavaScript
Raw Permalink Normal View History

2026-10-20 16:52:05 +03:30
import{_ as ke}from"./BasicShowContext.vue_vue_type_script_setup_true_lang-2980cfed.js";import{_ as ge}from"./BasicModal.vue_vue_type_style_index_0_lang-aed8f5e4.js";import{u as ne,_ as be}from"./useBaseTable-e7a67916.js";import{_ as Re}from"./button.vue_vue_type_style_index_0_lang-f90e25b2.js";import{g as $e}from"./member-0bd612b3.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-1ba0f9ec.js";import{t as W}from"./useDataTime-6e234adb.js";import{_ as Pe,v as ce,t as ue}from"./AudienceSegmentPicker.vue_vue_type_script_setup_true_lang-65f61d77.js";import{M as ie}from"./index-ec322234.js";import{I as de,_ as Be}from"./index-aafc0fe2.js";import{C as Ae}from"./index-e22339b6.js";import{I as Me}from"./index-f847a367.js";import{I as pe}from"./Icon-29e38d16.js";import{S as De}from"./index-4bff02a6.js";import{B as Ve}from"./index-8f2b7e91.js";import{D as Ue,_ as Ne}from"./index-5258a30e.js";import{S as ze,_ as Fe}from"./index-e0664925.js";import{T as me}from"./isSymbol-355a1404.js";import{_ as Oe,T as qe}from"./index-f22a4554.js";import"./updateLocale-a8654270.js";import"./shallowequal-e0d9eafb.js";import"./_plugin-vue_export-helper-31e07528.js";import"./vnode-c4e67237.js";import"./useState-dcd360f8.js";import"./useMemo-ee45fb46.js";import"./FormItemContext-33ef1221.js";import"./omit-f5d28cd3.js";import"./lodash-27f814e6.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-36a1ea6e.js";import"./index-c8127d4e.js";import"./Badge-8a8eeb58.js";import"./isNumeric-3f69e2aa.js";import"./index-a8579634.js";import"./index-73cafb1e.js";import"./index-175b83cf.js";import"./userSegments-081d8da2.js";import"./dayjs-1cfa00b1.js";import"./index-0d716d4e.js";import"./DialogWrap-394d7eb0.js";import"./pickAttrs-0ddf9a54.js";import"./styleChecker-19ce40ea.js";import"./SearchOutlined-95278fe5.js";import"./isPlainObject-e945bc1f.js";import"./index-876da578.js";import"./index-3f6d5caa.js";import"./LeftOutlined-93011b30.js";import"./css-aae66f86.js";import"./toArray-41940180.js";import"./isMobile-e2e89480.js";import"./useRefs-5e33302c.js";import"./_flatRest-7877cdf8.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