PageSourceSearch

https://pbxv2.8-800.su/chunk-CPRYURQ5.js

js 8-800.su collected 2026-10-07 21:27:13 UTC 35,730 bytes, 1 lines download raw bytes

1import{b as Pe}from"./chunk-O6TEL7HV.js";import{b as J}from"./chunk-EENQYKWG.js";import{$ as ke,Na as tt,Oa as et,W as ye,X as De,Y as Te,Z as Se,_ as we,a as Z,aa as Re,b as Oe,j as ve}from"./chunk-AH4PXIYU.js";import"./chunk-6EL2ZGXY.js";import"./chunk-2P4APJ3Q.js";import"./chunk-Y3VPRNID.js";import{o as X}from"./chunk-OTM55CQF.js";import{b as xe}from"./chunk-B32EAEGF.js";import{a as q}from"./chunk-RNWN4D33.js";import{a as Q}from"./chunk-MCHW5YCK.js";import"./chunk-L2IDL3QU.js";import{d as be,e as Me}from"./chunk-MKVLVIM3.js";import{a as pe}from"./chunk-THOX3TNE.js";import"./chunk-ZWWJ34WA.js";import{a as ue}from"./chunk-ACGG6KN3.js";import{a as fe}from"./chunk-I5B2ZASO.js";import{a as Ce}from"./chunk-DWH4ZKSZ.js";import"./chunk-EA674QEF.js";import"./chunk-OO53H4DQ.js";import"./chunk-VSQN2Q5H.js";import"./chunk-VIT4HZAX.js";import"./chunk-RR3RWKIM.js";import"./chunk-5CWPFSSW.js";import{b as K}from"./chunk-K7T7GDBC.js";import{a as he}from"./chunk-RVCGRIWN.js";import{Ac as ae,Bc as re,Dc as le,Ec as ce,Gc as se,J as Tt,Jc as me,Kb as Jt,Q as St,T as Rt,Ta as zt,Ua as $t,V as Et,Wa as Gt,Ya as Vt,Z as Lt,aa as It,c as yt,cb as Ut,cc as Xt,i as z,l as $,nd as de,o as D,ob as jt,p as Dt,pa as V,pb as Yt,pd as Y,qb as Wt,qc as I,rc as Zt,sb as Kt,t as G,ta as Bt,tb as Qt,tc as te,ub as qt,uc as ee,vc as ie,xc as ne,ya as L,yc as oe}from"./chunk-YEZUTEKT.js";import{Q as W,la as _e}from"./chunk-WM5ZJW7X.js";import"./chunk-N4J7QHM6.js";import{a as b,d as Ht}from"./chunk-MZLIF6AN.js";import"./chunk-XQOK6JOU.js";import{b as ge}from"./chunk-WTJFREYE.js";import{Da as wt,Ea as kt,Ka as U,Ma as j}from"./chunk-72G6EHWG.js";import{$a as i,$d as At,Aa as S,Ba as w,Bb as O,Bc as bt,Cc as Mt,Db as v,Dc as xt,Ga as B,Gb as k,Hb as R,Ib as d,Ja as f,Jb as a,Kb as r,Kc as s,L as dt,Lb as _,Lc as m,Pb as x,Qb as P,Sb as E,Sc as Pt,Tc as nt,Uc as Ot,Vb as y,Yb as g,_c as ot,ce as Ft,de as Nt,ec as it,fc as gt,g as mt,ic as F,ka as pt,kc as N,lc as c,mb as A,mc as h,nc as u,pc as _t,pd as vt,rc as ht,sb as M,sc as Ct,tc as ft,wa as p,xc as ut,yc as H}from"./chunk-IMZ5L6AU.js";import{a as ct,h as st}from"./chunk-NIF3MU5U.js";var lt=st(ge());var at=st(ge());var Ee=(e,l)=>l.id;function ze(e,l){e&1&&_(0,"mat-icon",21)}function $e(e,l){if(e&1){let t=E();a(0,"div",18),y("click",function(){let o=S(t).$implicit,C=g();return w(C.toggleStatus(o.id))}),a(1,"mat-icon",19),c(2),r(),a(3,"span",20),c(4),s(5,"translate"),r(),O(6,ze,1,0,"mat-icon",21),r()}if(e&2){let t=l.$implicit,n=g();F("selected",n.isStatusSelected(t.id)),i(),N(t.color),i(),u(" ",t.icon," "),i(2),u(" ",m(5,7,t.name)," "),i(2),v(n.isStatusSelected(t.id)?6:-1)}}function Ge(e,l){if(e&1&&(a(0,"span",34),c(1),r()),e&2){let t=g().$implicit,n=g(2);i(),u(" (",n.batchGroupLabel(t),") ")}}function Ve(e,l){if(e&1&&(a(0,"mat-option",30)(1,"div",33)(2,"span",7),c(3),r(),O(4,Ge,2,1,"span",34),r()()),e&2){let t=l.$implicit,n=g(2);d("value",t.id),i(3),h(t.name),i(),v(n.batchGroupLabel(t)?4:-1)}}function Ue(e,l){e&1&&(a(0,"mat-option",31),c(1),s(2,"translate"),r()),e&2&&(d("value",null),i(),u(" ",m(2,2,"NO_AVAILABLE_BATCHES")," "))}function je(e,l){e&1&&_(0,"mat-spinner",32)}function Ye(e,l){if(e&1&&(a(0,"div",14)(1,"div",22),_(2,"app-datetime-range-picker",23),a(3,"mat-form-field",24)(4,"mat-label"),c(5),s(6,"translate"),r(),_(7,"input",25),s(8,"translate"),a(9,"mat-icon",26),c(10,"search"),r()()(),a(11,"div",27)(12,"mat-form-field",28)(13,"mat-label"),c(14),s(15,"translate"),r(),a(16,"mat-select",29),k(17,Ve,5,3,"mat-option",30,Ee,!1,Ue,3,4,"mat-option",31),r(),O(20,je,1,0,"mat-spinner",32),r()()()),e&2){let t=g();i(2),d("filterPeriod",t.filterPeriod)("filterForm",t.filterForm)("excludePeriods",t.excludePeriods),i(3),h(m(6,12,"SEARCH_BATCHES")),i(2),d("placeholder",ut(m(8,14,"SEARCH_BY_BATCH_NAME")))("formControl",t.searchFilter),i(7),h(m(15,16,"CHOOSE_TARGET_BATCH")),i(2),d("formControl",t.selectedBatchId)("disabled",t.isLoadingBatches()),i(),R(t.availableBatches()),i(3),v(t.isLoadingBatches()?20:-1)}}var Le=(()=>{class e{constructor(){this.dr=p(B),this.dialogRef=p(jt),this.data=p(Yt),this.translate=p(U),this.dialerService=p(X),this.dtrPickerService=p(Q),this.dialerBatchGroupService=p(J),this.timezone=p(K).getTimezone(),this.statusList=W,this.selectedStatuses=[],this.availableBatches=f([]),this.selectedBatchId=new D(null),this.isLoadingBatches=f(!0),this.searchFilter=new D(""),this.copyToNewBatch=!0,this.groupNameById=f(new Map),this.filterPeriod=5,this.excludePeriods=[2],this.filterForm=new $({start_dt:new D((0,at.default)().startOf("month")),end_dt:new D((0,at.default)().endOf("month"))}),this.dialerBatchGroupService.list({limit:1e3}).pipe(b(this.dr)).subscribe({next:t=>{this.groupNameById.set(et(t?.list??[]))}}),this.searchFilter.valueChanges.pipe(b(this.dr)).subscribe(()=>this.loadAvailableBatches()),this.filterForm.valueChanges.pipe(b(this.dr)).subscribe(()=>this.loadAvailableBatches()),this.loadAvailableBatches()}onCancel(){this.dialogRef.close()}onConfirm(){!this.copyToNewBatch&&!this.selectedBatchId.value||this.dialogRef.close({src_batch_id:this.data.src_batch_id,dst_batch_id:this.copyToNewBatch?null:this.selectedBatchId.value,status_list:this.selectedStatuses.length>0?this.selectedStatuses.map(t=>Number(t)):void 0})}loadAvailableBatches(){if(this.copyToNewBatch){this.availableBatches.set([]),this.isLoadingBatches.set(!1);return}this.isLoadingBatches.set(!0);let t=ct({limit:1e3}
1,Z({nameSearch:this.searchFilter.value||void 0,filterFormValue:this.filterForm.value,filterPeriod:this.dtrPickerService.getFilterPeriod(),timezone:this.timezone}));this.dialerService.list(t).pipe(b(this.dr)).subscribe({next:n=>{this.availableBatches.set((n.list??[]).filter(o=>o.id!==this.data.src_batch_id)),this.isLoadingBatches.set(!1)},error:()=>{this.isLoadingBatches.set(!1)}})}toggleStatus(t){let n=this.selectedStatuses.indexOf(t);n>-1?this.selectedStatuses.splice(n,1):this.selectedStatuses.push(t)}isStatusSelected(t){return this.selectedStatuses.includes(t)}batchGroupLabel(t){return tt(t.group_id,this.groupNameById(),"")||null}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=A({type:e,selectors:[["app-dialer-copy-contacts-dialog"]],decls:34,vars:22,consts:[[1,"dialer-copy-contacts-dialog"],["mat-dialog-title",""],["fontIcon","content_copy",1,"dialog-icon"],[1,"dialog-content"],[1,"batch-info"],[1,"batch-item"],[1,"batch-label"],[1,"batch-name"],[1,"copy-options"],[1,"status-list"],[1,"status-item",3,"selected"],[1,"target-options"],[1,"target-option"],[3,"ngModelChange","ngModel"],[1,"target-batch-selection"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"status-item",3,"click"],[1,"status-icon"],[1,"status-name"],["fontIcon","check",1,"check-icon"],[1,"filter-section"],[1,"period-filter",3,"filterPeriod","filterForm","excludePeriods"],["appearance","outline",1,"search-filter"],["matInput","",3,"formControl","placeholder"],["matSuffix",""],[1,"batch-select-section"],["appearance","outline",1,"batch-select"],[3,"formControl","disabled"],[3,"value"],["disabled","",3,"value"],["matSuffix","","diameter","20"],[1,"batch-option"],[1,"batch-details"]],template:function(n,o){n&1&&(a(0,"div",0)(1,"h2",1),_(2,"mat-icon",2),c(3),s(4,"translate"),r(),a(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"span",6),c(10),s(11,"translate"),r(),a(12,"span",7),c(13),r()()(),a(14,"div",8)(15,"h4"),c(16),s(17,"translate"),r(),a(18,"div",9),k(19,$e,7,9,"div",10,Ee),r()(),a(21,"div",11)(22,"div",12)(23,"mat-checkbox",13),ft("ngModelChange",function(T){return Ct(o.copyToNewBatch,T)||(o.copyToNewBatch=T),T}),c(24),s(25,"translate"),r()(),O(26,Ye,21,18,"div",14),r()()(),a(27,"mat-dialog-actions",15)(28,"button",16),y("click",function(){return o.onCancel()}),c(29),s(30,"translate"),r(),a(31,"button",17),y("click",function(){return o.onConfirm()}),c(32),s(33,"translate"),r()()()),n&2&&(i(3),u(" ",m(4,10,"COPY_CONTACTS")," "),i(7),u("",m(11,12,"SOURCE_BATCH"),":"),i(3),h(o.data.src_batch_name),i(3),u("",m(17,14,"SELECT_CONTACT_STATUSES"),":"),i(3),R(o.statusList),i(4),ht("ngModel",o.copyToNewBatch),i(),u(" ",m(25,16,"COPY_TO_NEW_BATCH")," "),i(2),v(o.copyToNewBatch?-1:26),i(3),u(" ",m(30,18,"CANCEL")," "),i(2),d("disabled",!o.copyToNewBatch&&!o.selectedBatchId.value||o.selectedStatuses.length===0),i(),u(" ",m(33,20,"COPY")," "))},dependencies:[Y,St,kt,Ut,Kt,qt,Qt,It,Et,Lt,V,Jt,Xt,Bt,yt,z,Dt,G,q,j],styles:[".dialer-copy-contacts-dialog[_ngcontent-%COMP%]{min-width:500px;max-width:600px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .dialog-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .dialog-content[_ngcontent-%COMP%]{padding:0}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .batch-info[_ngcontent-%COMP%]{margin-bottom:5px;padding:10px;background-color:#f5f5f5;border-radius:4px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .batch-info[_ngcontent-%COMP%]   .batch-item[_ngcontent-%COMP%]{display:flex;margin-bottom:8px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .batch-info[_ngcontent-%COMP%]   .batch-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .batch-info[_ngcontent-%COMP%]   .batch-item[_ngcontent-%COMP%]   .batch-label[_ngcontent-%COMP%]{font-weight:500;min-width:120px;color:#666}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .batch-info[_ngcontent-%COMP%]   .batch-item[_ngcontent-%COMP%]   .batch-name[_ngcontent-%COMP%]{font-weight:600;color:#333}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]{margin-bottom:24px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   h4[_ng
1content-%COMP%]{margin:0 0 12px;color:#333;font-size:14px;font-weight:500}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .filter-section[_ngcontent-%COMP%]{margin-bottom:0;display:flex;gap:12px;align-items:flex-start}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .filter-section[_ngcontent-%COMP%]   .period-filter[_ngcontent-%COMP%], .dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .filter-section[_ngcontent-%COMP%]   .search-filter[_ngcontent-%COMP%]{flex:1}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .batch-select-section[_ngcontent-%COMP%]   .batch-select[_ngcontent-%COMP%]{width:100%}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .batch-select-section[_ngcontent-%COMP%]   .batch-select[_ngcontent-%COMP%]   .batch-option[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .batch-select-section[_ngcontent-%COMP%]   .batch-select[_ngcontent-%COMP%]   .batch-option[_ngcontent-%COMP%]   .batch-name[_ngcontent-%COMP%]{font-weight:500;color:#333}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-batch-selection[_ngcontent-%COMP%]   .batch-select-section[_ngcontent-%COMP%]   .batch-select[_ngcontent-%COMP%]   .batch-option[_ngcontent-%COMP%]   .batch-details[_ngcontent-%COMP%]{font-size:12px;color:#666;margin-top:2px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]{margin-bottom:20px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin:0 0 8px;color:#333;font-size:14px;font-weight:500}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:150px;overflow-y:auto;border:1px solid #e0e0e0;border-radius:4px;padding:6px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:6px;border-radius:4px;cursor:pointer;transition:all .2s ease}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item.selected[_ngcontent-%COMP%]{background-color:var(--theme-primary-500)}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item[_ngcontent-%COMP%]   .status-icon[_ngcontent-%COMP%]{margin-right:6px;font-size:24px;width:24px;height:24px;color:#fff}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item[_ngcontent-%COMP%]   .status-name[_ngcontent-%COMP%]{flex:1;font-size:13px;color:#333}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item.selected[_ngcontent-%COMP%]   .status-name[_ngcontent-%COMP%]{color:#fff}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .copy-options[_ngcontent-%COMP%]   .status-list[_ngcontent-%COMP%]   .status-item[_ngcontent-%COMP%]   .check-icon[_ngcontent-%COMP%]{color:#fff;font-size:14px;width:14px;height:14px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-options[_ngcontent-%COMP%]{margin-bottom:16px}.dialer-copy-contacts-dialog[_ngcontent-%COMP%]   .target-options[_ngcontent-%COMP%]   .target-option[_ngcontent-%COMP%]{margin-bottom:8px}.badge-status-process[_ngcontent-%COMP%]{color:#ff9800}.bg-primary[_ngcontent-%COMP%]{color:#2196f3}.bg-warning[_ngcontent-%COMP%]{color:#ff9800}.bg-muted[_ngcontent-%COMP%]{color:#9e9e9e}"],changeDetection:0})}}return e})();var We=()=>[10,50,100],Ke=(e,l)=>({"text-muted":e,"text-status-process":l}),Qe=e=>({filter:e}),qe=(e,l)=>l.id;function Je(e,l){e&1&&(a(0,"th",37),c(1,"#"),r())}
1function Xe(e,l){if(e&1&&(a(0,"td",38),c(1),r()),e&2){let t=l.$implicit;i(),h(t.id)}}function Ze(e,l){e&1&&(a(0,"th",39),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"NAME")))}function ti(e,l){if(e&1&&(a(0,"td",40),c(1),r()),e&2){let t=l.$implicit;i(),h(t.name)}}function ei(e,l){e&1&&(a(0,"th",41),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"GROUP")))}function ii(e,l){if(e&1&&(a(0,"td",42),c(1),r()),e&2){let t=l.$implicit,n=g(2);i(),h(n.batchGroupLabel(t))}}function ni(e,l){e&1&&(a(0,"th",39),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"CREATE_DATE")))}function oi(e,l){if(e&1&&(a(0,"td",40),c(1),r()),e&2){let t=l.$implicit,n=g(2);i(),h(n.formatDialerListDt(t.create_dt))}}function ai(e,l){e&1&&(a(0,"th",39),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"DIALER_CHANGE")))}function ri(e,l){if(e&1&&(a(0,"td",40),c(1),r()),e&2){let t=l.$implicit,n=g(2);i(),h(n.formatDialerListDt(t.update_dt))}}function li(e,l){e&1&&(a(0,"th",43),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"DIALER_INTENSIVE")))}function ci(e,l){if(e&1&&(a(0,"span"),c(1),r()),e&2){let t=g().$implicit;i(),_t("",(t.one_min_stat==null?null:t.one_min_stat.sl)||0,"/",(t.one_min_stat==null?null:t.one_min_stat.client_answer_sl)||0,"/",(t.one_min_stat==null?null:t.one_min_stat.client_drop_sl)||0)}}function si(e,l){if(e&1&&(a(0,"td",44),O(1,ci,2,3,"span"),r()),e&2){let t=l.$implicit;i(),v(t.one_min_stat?1:-1)}}function mi(e,l){e&1&&(a(0,"th",43),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"PROCESSING_INFO")))}function di(e,l){if(e&1&&(a(0,"div",46),s(1,"translate"),c(2),r()),e&2){let t=l.$implicit,n=g().$implicit;N(H("badge ",t.color)),d("matTooltip",m(1,5,t.name)),i(2),u(" ",n.contacts_by_status[t.id]||0," ")}}function pi(e,l){if(e&1&&(a(0,"td",40),k(1,di,3,7,"div",45,qe),r()),e&2){let t=g(2);i(),R(t.statusList())}}function gi(e,l){e&1&&(a(0,"th",43),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"STATUS")))}function _i(e,l){if(e&1&&_(0,"mat-icon",47),e&2){let t=g().$implicit;d("ngClass",xt(1,Ke,t.is_active===!1,t.is_active===!0))}}function hi(e,l){if(e&1&&(a(0,"td",40),O(1,_i,1,4,"mat-icon",47),r()),e&2){let t=l.$implicit;i(),v(t.status===1||t.is_active===!0?1:-1)}}function Ci(e,l){e&1&&(a(0,"th",43),c(1),s(2,"translate"),r()),e&2&&(i(),h(m(2,1,"CONTACTS")))}function fi(e,l){if(e&1&&(a(0,"td",44),c(1),r()),e&2){let t=l.$implicit;i(),u(" ",t.contacts_total," ")}}function ui(e,l){e&1&&_(0,"th",48)}function bi(e,l){e&1&&(a(0,"button",50),_(1,"mat-icon",59),r())}function Mi(e,l){if(e&1){let t=E();a(0,"td",49),O(1,bi,2,0,"button",50),a(2,"button",51),_(3,"mat-icon",52),r(),a(4,"button",53),y("click",function(){let o=S(t).$implicit,C=g(2);return w(C.onCopyWithContacts(o))}),_(5,"mat-icon",54),s(6,"translate"),r(),a(7,"button",53),y("click",function(){let o=S(t).$implicit,C=g(2);return w(C.onCopy(o))}),_(8,"mat-icon",55),s(9,"translate"),r(),a(10,"a",56),_(11,"mat-icon",57),r(),a(12,"button",53),y("click",function(){let o=S(t).$implicit,C=g(2);return w(C.onDelete(o))}),_(13,"mat-icon",58),r()()}if(e&2){let t=l.$implicit,n=g(2);i(),v(t.stat&&n.api.isRoleProvider()?1:-1),i(),d("routerLink",H("info/",t.id)),i(3),d("appTooltipDelay",1)("matTooltip",m(6,10,"COPY_WITH_CONTACTS")),i(3),d("appTooltipDelay",1)("matTooltip",m(9,12,"COPY")),i(2),d("routerLink",H("edit/",t.id))("state",Mt(14,Qe,n.filterCtrl.value))}}function xi(e,l){e&1&&_(0,"tr",60)}function Pi(e,l){if(e&1){let t=E();a(0,"tr",61),y("dblclick",function(){let o=S(t).$implicit,C=g(2);return w(C.onRowClicked(o.id))}),r()}if(e&2){let t=l.$implicit;F("blinker",t.blinker)}}function Oi(e,l){if(e&1&&(a(0,"div",11)(1,"table",14),x(2,15),M(3,Je,2,0,"th",16)(4,Xe,2,1,"td",17),P(),x(5,18),M(6,Ze,3,3,"th",19)(7,ti,2,1,"td",20),P(),x(8,21),M(9,ei,3,3,"th",22)(10,ii,2,1,"td",23),P(),x(11,24),M(12,ni,3,3,"th",19)(13,oi,2,1,"td",20),P(),x(14,25),M(15,ai,3,3,"th",19)(16,ri,2,1,"td",20),P(),x(17,26),M(18,li,3,3,"th",27)(19,si,2,1,"td",28),P(),x(20,29),M(21,mi,3,3,"th",27)(22,pi,3,0,"td",20),P(),x(23,30),M(24,gi,3,3,"th",27)(25,hi,2,1,"td",20),P(),x(26,31),M(27,Ci,3,3,"th",27)(28,fi,2,1,"td",28),P(),x(29,32),M(30,ui,1,0,"th",33)(31,Mi,14,16,"td",34),P(),M(32,xi,1,0,"tr",35)(33,Pi,1,2,"tr",36),r()()),e&2){let t=g();i(),d("dataSource",t.dataSource),i(31),d("matHeaderRowDef",t.matDisplayedColumns()),i(),d("matRowDefColumns",t.matDisplayedColumns())}}function vi(e,l){e&1&&(a(0,"mat-card-content",12)(1,"p",62),c(2),s(3,"translate"),r()()),e&2&&(i(2),h(m(3,1,"CHANGE_SEARCH_FILTER")))}var Nn=(()=>{class e{constructor(){this.dr=p(B),this.api=p(X),this.translateService=p(U),this.dialerContactService=p(Pe),this.dialerBatchGroupService=p(J),this.notifyService=p(he),this.dialog=p(Wt),this.router=p(Ft),this.dtrPickerService=p(Q),this.timezone=p(K).getTimezone(),this.route=p(At),this.authenticationService=p(_e),this.paginatorRef=ot(L),this.sortRef=ot(I),this.reload$=new mt,this.tmpParamsKey={current:""},this.filter={current:""},this.filterPeriod=5,this.groupNameById=f(new Map),this.showOnlyActive=new D(!1),this.matDisplayedColumns=f(["id","name","group","create_dt","update_dt","contacts","acpm","is_active","status","actions"]),this.navigate=f("dialer"),this.statusList=f(W),this.rangeFilterPeriod=f(5),this.rangeExcludePeriods=f([2]),this.filterCtrl=new D("",{nonNullable:!0}
1),this.showFilter=f(!1),this.isLoadingResults=f(!0),this.isRateLimitReached=f(!1),this.resultsLength=f(0),this.isEmptyData=f(!1),this.filterForm=new $({start_dt:new D((0,lt.default)().startOf("month")),end_dt:new D((0,lt.default)().endOf("month"))}),this.dataSource=new me([]),this.showOnlyActiveTooltip=nt(()=>this.showOnlyActive.value?.length?this.translateService.instant("DIALER.SHOW_ALL_AUTODIALS"):this.translateService.instant("DIALER.SHOW_ONLY_RUNNING_AUTODIALS")),this.toolbarConfig=nt(()=>({title:this.translateService.instant("DIALER"),search:!0,edit:!0,refresh:!0,back:this.navigate(),searchPlaceholder:this.translateService.instant("FILTER_BY_NAME_OR_GROUP")})),this.showOnlyActiveValue=Ht(this.showOnlyActive.valueChanges),Re({router:this.router,filterCtrl:this.filterCtrl,filter:this.filter,showFilter:this.showFilter});let t=sessionStorage.getItem("DomainDialerBatches::filterForm");if(t)try{let n=JSON.parse(t).range_dt;n!=null&&(this.rangeFilterPeriod.set(n),this.filterPeriod=n)}catch{}this.filterPeriod=Me(this.filterForm,this.timezone)??this.filterPeriod,this.dtrPickerService.setFilterPeriod(this.filterPeriod),this.rangeFilterPeriod.set(this.filterPeriod),this.filterForm.valueChanges.pipe(b(this.dr)).subscribe(()=>this.persistDateRange()),localStorage.getItem("showOnlyActiveDomainDialerBatches")&&this.showOnlyActive.setValue([!0]),this.dialerBatchGroupService.list({limit:1e3}).pipe(b(this.dr)).subscribe({next:n=>{this.groupNameById.set(et(n?.list??[]))}}),this.translateService.onLangChange.pipe(b(this.dr)).subscribe(()=>this.refresh()),Ot(()=>{let n=this.showOnlyActiveValue();n!==void 0&&(n?.length!==0?localStorage.setItem("showOnlyActiveDomainDialerBatches","true"):localStorage.removeItem("showOnlyActiveDomainDialerBatches"),Pt(()=>this.refresh()))})}ngAfterViewInit(){ye({destroyRef:this.dr,api:this.api,paginator:()=>this.paginatorRef(),sort:()=>this.sortRef(),getFilter:()=>({}),getParams:()=>this.getParams(),signals:{isLoadingResults:this.isLoadingResults,isRateLimitReached:this.isRateLimitReached,resultsLength:this.resultsLength,isEmptyData:this.isEmptyData},dataSource:this.dataSource,notifyService:this.notifyService,reload$:this.reload$,tmpParamsKey:this.tmpParamsKey})}getParams(){let t=Oe(this.sortRef()?.active,this.sortRef()?.direction),n=Z({showOnlyActive:!!this.showOnlyActive.value?.length,nameSearch:this.filter.current||void 0,filterFormValue:this.filterForm.value,filterPeriod:this.dtrPickerService.getFilterPeriod()??this.filterPeriod,timezone:this.timezone});return Object.assign(n,{sort:t})}openFilter(t){Se(this.showFilter,t)}applyFilter(t){Te({filter:this.filter,value:t,paginator:this.paginatorRef(),reload$:this.reload$})}refresh(){this.persistDateRange(),De({paginator:()=>this.paginatorRef(),getParams:()=>this.getParams(),tmpParamsKey:this.tmpParamsKey,reload$:this.reload$})}onRowClicked(t){we(this.router,this.api,t,this.filterCtrl.value)}onDelete(t){ke({destroyRef:this.dr,dialog:this.dialog,api:this.api,row:t,notifyService:this.notifyService,isRateLimitReached:this.isRateLimitReached,onSuccess:()=>this.refresh()})}onCopy(t){this.dialog.open(fe,{data:{title:"DIALOG.CONFIRM_ACTION",message:"DIALOG.COPY"}}).afterClosed().pipe(b(this.dr)).subscribe(n=>{n===!0&&(t.blinker=!0,this.api.get(t.id).pipe(b(this.dr)).subscribe({next:o=>{o.id&&(delete o.id,this.api.save(o).pipe(b(this.dr)).subscribe({next:C=>{t.blinker=!1,this.refresh(),this.notifyService.showRequestResult(C,!0)},error:C=>{t.blinker=!1,this.refresh(),this.isRateLimitReached.set(this.notifyService.setFormErrors(C)===502)}}))},error:o=>{t.blinker=!1,this.refresh(),this.isRateLimitReached.set(this.notifyService.setFormErrors(o)===502)}}))})}batchGroupLabel(t){return tt(t.group_id,this.groupNameById())}formatDialerListDt(t){return ve(t,this.timezone)}onCopyWithContacts(t){let n={src_batch_id:t.id,src_batch_name:t.name};this.dialog.open(Le,{data:n,width:"600px"}).afterClosed().pipe(b(this.dr),dt(o=>!!o),pt(o=>this.dialerContactService.copyContacts(o.src_batch_id,o.dst_batch_id,o.status_list))).subscribe({next:()=>{this.refresh(),this.notifyService.message("CONTACTS_COPIED_SUCCESSFULLY")},error:o=>{this.refresh(),this.isRateLimitReached.set(this.notifyService.setFormErrors(o)===502)}})}persistDateRange(){let t=this.dtrPickerService.getFilterPeriod()??this.filterPeriod;be(t,this.filterForm,this.timezone)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=A({type:e,selectors:[["app-dialer-tasks"]],viewQuery:function(n,o){n&1&&(it(o.paginatorRef,L,5),it(o.sortRef,I,5)),n&2&&gt(2)},decls:15,vars:18,consts:[[1,"rt-row","rt-wrap"],[1,"rt-flex-100","rt-flex-gt-sm-100","rt-flex-gt-xs-100"],[1,"p-t-0"],[3,"onOpenFilter","onApplyFilter","onRefresh","toolbarConfig","refreshing","showFilter","filterCtrl"],["multiple","",1,"app-toolbar-before-actions","m-r-10","mat-button-toggle-group-rounded","show-only-active-toggle","rt-m-l-5-xs",3,"formControl"],[1,"bg-white","circle",3,"value","appTooltipDelay","matTooltip"],["fontIcon","check",1,"show-only-active-icon"],[1,"p-b-0","m-0","line-top","line-bottom","rt-row","rt-wrap"],[1,"p-l-10","p-r-10","rt-flex-gt-sm-50","rt-flex-gt-xs-50","rt-flex-100",3,"filterPeriod","filterForm","excludePeriods"],[1,"example-container"],[3,"isLoading","isRateLimitReached"],[1,"example-table-container","responsive-table"],[1,"m-0"],["matLocalStoragePageSize","",3,"length","pageSizeOptions","pageSize"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","","matTableResponsive","",1,"example-table",3,"dataSource"],["matColumnDef","id"],["class","rt-hide-sm-md","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","rt-hide-sm-md","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","group"],["class","rt-hide-lt-lg","mat-header-cell","",4,"matHeaderCellDef"],["class","rt-hide-lt-lg","mat-cell","",4,"matCellDef"],["matColumnDef","create_dt"],["matColumnDef","update_dt"],["matColumnDef","acpm"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","is_active"],["matColumnDef","status"],["matColumnDef","contacts"],["matColumnDef","actions"],["mat-button-header","","mat-header-cell","",4,"matHeaderCellDef"],["class","text-right","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"blinker","dblclick",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header","",1,"rt-hide-sm-md"],["mat-cell","",1,"rt-hide-sm-md"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"rt-hide-lt-lg"],["mat-cell","",1,"rt-hide-lt-lg"],["mat-header-cell","",1,"text-center"],["mat-cell","",1,"text-center"],[3,"matTooltip","class"],[3,"matTooltip"],["fontIcon","run_circle",3,"ngClass"],["mat-button-header","","mat-header-cell",""],["mat-cell","",1,"text-right"],["mat-icon-button",""],["mat-icon-button","",3,"routerLink"],["fontIcon","info",1,"text-accent"],["mat-icon-button","",3,"click"],["fontIcon","content_copy",1,"text-accent",3,"appTooltipDelay","matTooltip"],["fontIcon","file_copy",1,"text-accent",3,"appTooltipDelay","matTooltip"],["mat-icon-button","",3,"routerLink","state"],["fontIcon","edit",1,"text-accent"],["fontIcon","delete",1,"text-danger"],["fontIcon","bar_chart",1,"text-accent"],["mat-header-row",""],["mat-row","",3,"dblclick"],[1,"n
1ot-found-results"]],template:function(n,o){n&1&&(a(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"app-toolbar",3),y("onOpenFilter",function(T){return o.openFilter(T)})("onApplyFilter",function(T){return o.applyFilter(T)})("onRefresh",function(){return o.refresh()}),a(4,"mat-button-toggle-group",4)(5,"mat-button-toggle",5),_(6,"mat-icon",6),r()()(),a(7,"mat-card-content",7),_(8,"app-datetime-range-picker",8),r(),a(9,"mat-card-content")(10,"div",9),_(11,"app-loading-status",10),O(12,Oi,34,3,"div",11)(13,vi,4,3,"mat-card-content",12),_(14,"mat-paginator",13),r()()()()()),n&2&&(i(3),d("toolbarConfig",o.toolbarConfig())("refreshing",o.isLoadingResults())("showFilter",o.showFilter())("filterCtrl",o.filterCtrl),i(),d("formControl",o.showOnlyActive),i(),d("value",!0)("appTooltipDelay",1)("matTooltip",o.showOnlyActiveTooltip()),i(3),d("filterPeriod",o.rangeFilterPeriod())("filterForm",o.filterForm)("excludePeriods",o.rangeExcludePeriods()),i(3),d("isLoading",o.isLoadingResults())("isRateLimitReached",o.isRateLimitReached()),i(),v(o.isEmptyData()?13:12),i(2),d("length",o.resultsLength())("pageSizeOptions",bt(17,We))("pageSize",10))},dependencies:[xe,Y,vt,Nt,wt,zt,$t,Gt,Vt,te,ie,re,ne,ee,le,oe,ae,ce,se,V,L,I,Zt,Rt,z,G,de,Ce,q,pe,ue,Tt,j],styles:[".dialer-section[_ngcontent-%COMP%]{border:1px solid var(--theme-primary-100);border-radius:8px;padding:12px;background:var(--theme-background-card)}.dialer-section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.dialer-section__title[_ngcontent-%COMP%]{font-weight:600;margin-bottom:10px}.dialer-actions[_ngcontent-%COMP%]{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.dialer-status[_ngcontent-%COMP%]{margin-top:10px;font-size:13px}.dialer-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000059;z-index:1500;display:flex;justify-content:center;align-items:center;padding:12px}.dialer-dialog[_ngcontent-%COMP%]{width:min(540px,100%);display:flex;flex-direction:column;gap:12px}.dialer-muted[_ngcontent-%COMP%]{opacity:.75;font-size:13px}.dialer-contacts-table[_ngcontent-%COMP%]   .mat-column-is_active[_ngcontent-%COMP%], .dialer-contacts-table[_ngcontent-%COMP%]   .mat-column-lock[_ngcontent-%COMP%], .dialer-contacts-table[_ngcontent-%COMP%]   .mat-column-status[_ngcontent-%COMP%], .dialer-contacts-table[_ngcontent-%COMP%]   .mat-column-attempts[_ngcontent-%COMP%]{text-align:center}.dialer-contacts-table[_ngcontent-%COMP%]   .element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.dialer-contacts-table[_ngcontent-%COMP%]   .element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}",'@charset "UTF-8";.responsive-table[_ngcontent-%COMP%]:not(.custom-color-table)   .mat-mdc-table[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:nth-child(2n of.mat-mdc-row){background-color:#fafafa}.mat-mdc-table[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#f0f0f0}.mat-mdc-table[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:last-child   td[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}@media(max-width:599px){.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;height:auto;position:sticky;top:0;z-index:2}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]   th.mat-mdc-header-cell[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center;padding:1rem .5rem;justify-content:space-around}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]   th.mat-mdc-header-cell[_ngcontent-%COMP%] > .mat-mdc-sort-header-container[_ngcontent-%COMP%]{padding-left:15px}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]   th.mat-mdc-header-cell[_ngcontent-%COMP%]:not([mat-sort-header]):not([mat-button-header]), .mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]   th.mat-mdc-header-cell.mat-mdc-sort-header-disabled[_ngcontent-%COMP%]{display:none}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]{height:auto}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-actions):not(.mat-column-expandedDetail){display:grid;grid-template-columns:50% 50%;padding:.5rem;text-align:right;word-break:break-word}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-actions):not(.mat-column-expandedDetail) > *[_ngcontent-%COMP%]{grid-column:2}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]:not(.mat-column-actions):not(.mat-column-expandedDetail):before{content:attr(data-column-name);text-align:left}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]   td.mat-column-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;padding:0 .5rem;white-space:nowrap}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]   td.mat-column-actions[_ngcontent-%COMP%] > .mat-mdc-button-base[_ngcontent-%COMP%]{flex-shrink:0}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:last-of-type   td[_ngcontent-%COMP%]:last-of-type{border:none}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:not(:last-of-type)   td[_ngcontent-%COMP%]:last-of-type{border-bottom:.5rem solid #fafafa}.mat-mdc-card[_ngcontent-%COMP%]   .mat-mdc-table[matTableResponsive][_ngcontent-%COMP%], .mat-mdc-expansion-panel[_ngcontent-%COMP%]   .mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]{border:.5rem solid #fafafa}.mat-mdc-table[matTableResponsive][_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:last-of-type   td[_ngcontent-%COMP%]:last-of-type{border-bottom:none!important}}table[_ngcontent-%COMP%]{width:100%}[mat-header-cell][_ngcontent-%COMP%]{min-width:80px}[mat-header-cell].mat-column-actions[_ngcontent-%COMP%]{min-width:12rem;text-align:right;white-space:nowrap}[mat-cell][_ngcontent-%COMP%]{min-width:80px}[mat-cell].mat-column-actions[_ngcontent-%COMP%]{min-width:12rem;text-align:right;white-space:nowrap}',".mat-column-is_active[_ngcontent-%COMP%]{text-align:center}  .mat-datepicker-content .mat-calendar{width:auto!important;min-width:370px!important}  .mat-datepicker-content .mat-calendar__hide{display:none}  .mat-datepicker-content .mat-calendar .mat-calendar-body-label{color:transparent!important}  .mat-datepicker-content .mat-calendar .mat-calendar-content{padding:0 8px!important}  .mat-datepicker-actions{justify-content:space-between!important;align-items:center!important;min-width:370px!important;padding:8px!important}  .change-period .mat-mdc-text-field-wrapper, .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}[_nghost-%COMP%]     .invisible{width:0;height:0;opacity:0;flex-grow:unset}.show-only-active-toggle[_ngcontent-%COMP%]   .mat-button-toggle.circle[_ng
1content-%COMP%], .show-only-active-toggle[_ngcontent-%COMP%]   .mat-button-toggle.circle.mat-button-toggle-checked[_ngcontent-%COMP%]{border-radius:50%!important;width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;max-height:40px;display:flex;align-items:center;justify-content:center;padding:0!important;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}.show-only-active-toggle[_ngcontent-%COMP%]   .mat-button-toggle.circle[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.show-only-active-toggle[_ngcontent-%COMP%]   .mat-button-toggle.circle[_ngcontent-%COMP%]   .show-only-active-icon[_ngcontent-%COMP%]{color:var(--theme-primary-500)!important;opacity:1}.show-only-active-toggle[_ngcontent-%COMP%]   .mat-button-toggle.circle.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:var(--theme-primary-500)!important;border-color:#fff!important;box-shadow:inset 0 0 0 1px #fff;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #fff !important}.show-only-active-toggle[_ngcontent-%COMP%]   .mat-button-toggle.circle.mat-button-toggle-checked[_ngcontent-%COMP%]   .show-only-active-icon[_ngcontent-%COMP%]{color:#fff!important;-webkit-text-fill-color:#fff;opacity:1}[_nghost-%COMP%]     .show-only-active-toggle .mat-button-toggle.mat-button-toggle-checked .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: #fff !important}[_nghost-%COMP%]     .show-only-active-toggle .mat-button-toggle.mat-button-toggle-checked .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked:after{border-right-color:#fff!important;border-bottom-color:#fff!important;color:#fff!important;opacity:1!important}"],changeDetection:0})}}return e})();export{Nn as DialerTasksComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.