PageSourceSearch

https://atlanticcrypto.com/242.04dfbe00839d13c8.js

js atlanticcrypto.com collected 2026-10-08 00:19:45 UTC 133,414 bytes, 1 lines download raw bytes

1(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[242],{67202(D,k,c){"use strict";c.d(k,{V:()=>v});var l=c(26656);class v extends l.C{constructor(_,V,O){super(O),this.queueNumber=_,this.dealStatus=V}queueNumber}},26656(D,k,c){"use strict";c.d(k,{C:()=>l});class l{constructor(y){Object.assign(this,y)}id;callHistoryRecordId;callType;partyDnType;startTime;duration;party;partyNumber;viaParty;viaPartyNumber;title;hasQualityRecords;ext;dealStatus;canBeDeleted=!0}},68521(D,k,c){"use strict";c.d(k,{Ec:()=>$,dk:()=>A});var l=c(96354),v=c(9195),y=c(26656),_=c(1211),V=c(67202),O=c(67374),b=c.n(O);class x{get(e,f,p,s,r=""){const d=new _.Qax;return d.RecordOffset=p,d.RecordLimit=s,d.Search=r,e.get(d).pipe((0,l.T)(m=>{const h=m.Records||[];return[h.map(S=>x.fromQueue(e,S)),h.length<s?-1:p+s]}))}static fromQueue(e,f){const p=e.systemParameters?.IsLastFirst,s=e.protobufToClientTime(f.TimeStart),r=e.createMergedContact(f.User);let d=(p?r.lastNameFirstName:r.firstNameLastName)||f.FromDisplayName;f.FromDisplayName&&d===f.FromUserPart&&(d=f.FromDisplayName);const m=e.createMergedContact(f.Queue),h=m?p?m.lastNameFirstName:m.firstNameLastName:"";return new V.V(f.QueueNumber,f.DealStatus,{canBeDeleted:f.IsManager,id:f.Id,callType:v.r.Abandoned,partyDnType:_.Jhl.None,hasQualityRecords:!1,startTime:s,duration:P(f.Waiting).asSeconds()+P(f.Polling).asSeconds(),party:d,partyNumber:f.FromUserPart,viaParty:"",title:h,ext:r})}}function P(I){const[e,f,p,s]=I.split(/[:.]/).map(r=>Number(r.substring(0,3)));return b().duration({hours:e,minutes:f,seconds:p,milliseconds:s})}function G(I,e){return I===e.nativeExtensionNumber&&e.isBridgedExtension?e.extensionNumber:I}function A(I,e){const f=function E(I,e,f,p){let s="";switch(p){case _.Jhl.None:s=e;break;case _.Jhl.ExternalLine:s=f;break;default:s=I}return s}(I.DN,I.DNName,I.CallerId,I.DNType),p=e.createMergedContact(I.CallerContact);p.isDummy&&(p.phones.other=f);const s=function R(I,e,f,p,s){const r=I!==e&&!!e,d=f&&f.firstNameLastName?s?f.lastNameFirstName:f.firstNameLastName:f.company,m=d?e.split(":").filter(g=>!!g.trim()).reduce((g,S)=>{const j=S===I?d:function N(I,e,f){return e.firstName.trim()&&e.lastName.trim()?I.replaceAll(e.firstNameLastName,f).replaceAll(e.lastNameFirstName,f).replaceAll(`${e.lastName} ${e.firstName}`,f):I.replaceAll(e.firstNameLastName,f).replaceAll(e.lastNameFirstName,f)}(S,f,d);return-1===g.indexOf(j)&&g.push(j),g},[]).join(":"):e;let h=r&&p!==_.Jhl.SpecialMenu?m:d||I;return p===_.Jhl.SpecialMenu&&(h+=" -> VM"),h}(f,I.DNName,p,I.DNType,e.systemParameters.IsLastFirst);return{ext:p,party:s,partyNumber:G(f,p)}}class ${contact;constructor(e){this.contact=e}get(e,f,p,s,r=""){const d=this.contact;r||=d?.extensionNumber||d?.phones.other||"";const m=f===v.r.Abandoned?(new x).get(e,f,p,s,r):this.getCallHistoryItems(e,f,p,s,r);return d?m.pipe((0,l.T)(([h,g])=>[h.filter(({ext:S})=>S&&(d.id?S.id===d.id:!S.id&&S.phones.other===d.phones.other)),g])):m}
1getCallHistoryItems(e,f,p,s,r=""){const d=new _.ePS({Search:r,DnOwner:e.myInfo.Number,CallType:$.convertCallHistoryType(f),RecordOffset:p,RecordLimit:s});return e.get(d).pipe((0,l.T)(({Records:m=[]})=>[[].concat(...m.map(h=>$.callToVM(e,h))),m.length<s?-1:p+s]))}static callToVM(e,f){let p=f?.connections?.parties??[];return p=p.filter(s=>"MakeCall"!==s.PartyDN),p.length>1&&(p=p.filter(s=>s.PartyDNType!==_.Jhl.SpecialMenu)),p.map(s=>$.fromCall(e,s,f))}static fromCall(e,f,p){const{party:s,partyNumber:r,ext:d}=A({DN:f.PartyDN,DNName:f.PartyDNName,CallerId:f.PartyCallerId,DNType:f.PartyDNType,CallerContact:f.PartyContact},e),{party:m,partyNumber:h}=f.ViaDNType?A({DN:f.ViaDN,DNName:f.ViaDNName,CallerId:f.ViaCallerId,DNType:f.ViaDNType,CallerContact:f.ViaContact},e):{party:"",partyNumber:""},g=e.protobufToClientTime(f.StartTime),S=f.ConnectedAt?(e.protobufToClientTime(f.EndedAt).getTime()-e.protobufToClientTime(f.ConnectedAt).getTime())/1e3:0;return new y.C({id:f.Id,callHistoryRecordId:p.Id,callType:f.CallType,partyDnType:f.PartyDNType,hasQualityRecords:p.HasQualityRecords,startTime:g,duration:S,partyNumber:r,party:s,viaParty:m,viaPartyNumber:h,ext:d})}static convertCallHistoryType(e){switch(e){case v.r.Missed:return _.rKu.Missed;case v.r.Outgoing:return _.rKu.Outgoing;case v.r.Received:return _.rKu.Received;default:return _.rKu.AllCalls}}}},9195(D,k,c){"use strict";c.d(k,{r:()=>l});var l=function(v){return v[v.AllCalls=0]="AllCalls",v[v.Missed=1]="Missed",v[v.Received=2]="Received",v[v.Outgoing=3]="Outgoing",v[v.Abandoned=4]="Abandoned",v}(l||{})},44737(D,k,c){"use strict";c.d(k,{v:()=>Ki});var l=c(85802),v=c(13499),y=c(17705),_=c(1211),V=c(62526),O=c(83762),b=c(18530),x=c(35060),P=c(1807),E=c(53993),N=c(25558),R=c(70980),G=c(10467),A=c(11920);let $=(()=>class n{audioContext;outputAudioDevice;static counter=0;oscillator1;oscillator2;audio=new Audio;constructor(t,i){this.audioContext=t,this.outputAudioDevice=i}playTone(t,i){this.stop();const o=this.audioContext.createMediaStreamDestination(),a=this.audioContext.createGain();a.gain.value=.1,this.oscillator1=this.audioContext.createOscillator(),this.oscillator1.type="sine",this.oscillator1.frequency.value=t,this.oscillator1.connect(a,0,0),a.connect(o),this.oscillator2=this.audioContext.createOscillator(),this.oscillator2.type="sine",this.oscillator2.frequency.value=i,this.oscillator2.connect(a),a.connect(o),this.audio.srcObject=o.stream,this.trySetOutputDeviceSink().then(()=>{this.audio.play().catch(()=>{}),this.oscillator1.start(0),this.oscillator2.start(0)}).catch(C=>console.error(C))}trySetOutputDeviceSink(){var t=this;return(0,G.A)(function*(){const i=t.audio;if(t?.outputAudioDevice?.labelId&&t.outputAudioDevice?.media){const o=t.outputAudioDevice?.labelId,a=yield navigator.mediaDevices.enumerateDevices(),C=(0,A.C7)(a,"audiooutput",o);C?.media?.deviceId&&i.setSinkId&&(yield i.setSinkId(C.media.deviceId))}})()}play(t){switch(String(t)){case"1":this.playTone(697,1209);break;case"2":this.playTone(697,1336);break;case"3":this.playTone(697,1477);break;case"4":this.playTone(770,1209);break;case"5":this.playTone(770,1336);break;case"6":this.playTone(770,1477);break;case"7":this.playTone(852,1209);break;case"8":this.playTone(852,1336);break;case"9":this.playTone(852,1477);break;case"*":this.playTone(941,1209);break;case"0":this.playTone(941,1336);break;case"#":this.playTone(941,1477);break;case"A":this.playTone(697,1633);break;case"B":this.playTone(770,1633);break;case"C":this.playTone(852,1633);break;case"D":this.playTone(941,1633)}}stop(){this.oscillator1&&this.oscillator1.disconnect(),this.oscillator2&&this.oscillator2.disconnect()}close(){this.audioContext&&this.audioContext.close(),this.audio&&(this.audio.srcObject=null)}})();var I=c(12539),e=c(35547);const f=["*"];let p=(()=>{class n{deviceMediaService=(0,l.WQX)(I.q);disabled;buttonPressed=(0,y.CGW)();playSubscription;play$=new b.B;onButtonPress(t){this.play$.next(t),this.buttonPressed.emit(t)}ngOnInit(){this.playSubscription=this.play$.pipe((0,E.E)(this.deviceMediaService.selectedOutputAudioDevice$),(0,N.n)(t=>{const[i,o]=t;try{if(/Edge/.test(navigator.userAgent))return x.t;const a=new $(new AudioContext,o);return a.play(i),(0,P.O)(200).pipe((0,R.j)(()=>{a.stop(),a.close()}))}catch(a){return console.error(a),x.t}})).subscribe(()=>{})}ngOnDestroy(){this.playSubscription&&this.playSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["call-dialpad"]],inputs:{disabled:"disabled"},outputs:{buttonPressed:"buttonPressed"},ngContentSelectors:f,decls:59,vars:12,consts:[["id","dialpad-1","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-2","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-3","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-4","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-5","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-6","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-7","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-8","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-9","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-*","type","button",1,"btnNum",3,"click","disabled"],[1,"asterisk"],["id","dialpad-0","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-#","type","button",1,"btnNum",3,"click","disabled"],[1,"pt-1"]],template:function(i,o){1&i&&(e.NAR(),e.rj2(0,"button",0),e.VwU("click",function(){return o.onButtonPress("1")}),e.rj2(1,"span"),e.EFF(2,"1"),e.eux(),e.rj2(3,"small"),e.EFF(4,"\xa0"),e.eux()(),e.rj2(5,"button",1),e.VwU("click",function(){return o.onButtonPress("2")}),e.rj2(6,"span"),e.EFF(7,"2"),e.eux(),e.rj2(8,"small"),e.EFF(9,"ABC"),e.eux()(),e.rj2(10,"button",2),e.VwU("click",function(){return o.onButtonPress("3")}),e.rj2(11,"span"),e.EFF(12,"3"),e.eux(),e.rj2(13,"small"),e.EFF(14,"DEF"),e.eux()(),e.rj2(15,"button",3),e.VwU("click",function(){return o.onButtonPress("4")}),e.rj2(16,"span"),e.EFF(17,"4"),e.eux(),e.rj2(18,"small"),e.EFF(19,"GHI"),e.eux()(),e.rj2(20,"button",4),e.VwU("click",function(){return o.onButtonPress("5")}),e.rj2(21,"span"),e.EFF(22,"5"),e.eux(),e.rj2(23,"small"),e.EFF(24,"JKL"),e.eux()(),e.rj2(25,"button",5),e.VwU("click",function(){return o.onButtonPress("6")}),e.rj2(26,"span"),e.EFF(27,"6"),e.eux(),e.rj2(28,"small"),e.EFF(29,"MNO"),e.eux()(),e.rj2(30,"button",6),e.VwU("click",function(){return o.onButtonPress("7")}),e.rj2(31,"span"),e.EFF(32,"7"),e.eux(),e.rj2(33,"small"),e.EFF(34,"PQRS"),e.eux()(),e.rj2(35,"button",7),e.VwU("click",function(){return o.onButtonPress("8")}),e.rj2(36,"span"),e.EFF(37,"8"),e.eux(),e.rj2(38,"small"),e.EFF(39,"TUV"),e.eux()(),e.rj2(40,"button",8),e.VwU("click",function(){return o.onButtonPress("9")}),e.rj2(41,"span"),e.EFF(42,"9"),e.eux(),e.rj2(43,"small"),e.EFF(44,"WXYZ"),e.eux()(),e.rj2(45,"button",9),e.VwU("click",function(){return o.onButtonPress("*")}),e.rj2(46,"span",10),e.EFF(47,"*"),e.eux()(),e.rj2(48,"button",11),e.VwU("click",function(){return o.onButtonPress("0")}),e.rj2(49,"span"),e.EFF(50,"0"),e.eux(),e.rj2(51,"small"),e.EFF(52,"+"),e.eux()(),e.rj2(53,"button",12),e.VwU("click",function(){return o.onButtonPress("#")}),e.rj2(54,"span",13),e.EFF(55,"#"),e.eux(),e.rj2(56,"small"),e.EFF(57,"\xa0"),e.eux()(),e.SdG(58)),2&i&&(e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled),e.R7$(3),e.Avn("disabled",o.disabled),e.R7$(5),e.Avn("disabled",o.disabled))},styles:["[_nghost-%COMP%]{width:100%;display:grid;padding:0 calc(var(--spacer-xs) / 2);grid-row-gap:var(--spacer-s);grid-column-gap:calc(var(--spacer-xs) / 2);grid-template-columns:repeat(3,1fr);font-family:Arial,serif;--keypad-btn-height: 30px}.new-design   [_nghost-%COMP%]{--keypad-btn-height: 48px}.btnNum[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;border:0;padding:0;width:100%;height:var(--keypad-btn-height);color:inherit;transition:.2s}.btnNum[_ngcontent-%COMP%]:hover{opacity:.7}.btnNum[_ngcontent-%COMP%]:active{color:var(--bg-secondary)}.btnNum[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px;grid-area:digit;line-height:20px}.btnNum[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{font-size:9px;grid-area:text;line-height:10px}.btnNum[_ngcontent-%COMP%]   .asterisk[_ngcontent-%COMP%]{font-size:30px;margin-top:var(--spacer-xs)}.new-design   [_nghost-%COMP%]   .btnNum[_ngcontent-%COMP%]{border-radius:calc(var(--keypad-btn-height) / 2);background-color:var(--dialer-btn)}.new-design   [_nghost-%COMP%]   .btnNum[_ngcontent-%COMP%]:hover, .new-design   [_nghost-%COMP%]   .btnNum[_ngcontent-%COMP%]:active{opacity:1;color:inherit;background-color:var(--dialer-btn-hover)}.new-design   [_nghost-%COMP%]   .btnNum[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}.new-design   [_nghost-%COMP%]   .btnNum[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{opacity:.75}"]})}return n})();var s=c(91250),r=c(59882),d=c(51078),m=c(96697),h=c(96354);let g=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-th-solid-icon"],["","app-th-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"]],template:function(i,o){1&i&&(l.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var S=c(4202),j=c(49769),F=c(68018),M=c(8516),z=c(58689),Z=c(47548),q=c(16444),B=c(89079);const Ge=["inCallDialPad"],Ae=["inCallSearchContactDialPad"];function je(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",22),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.HoldCall())}),e.nrm(1,"lucide-icon",8)(2,"span",9),e.nI1(3,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.myCall.isHoldEnabled),e.R7$(),e.Y8G("img",t.pauseIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(3,3,"_i18n.Hold"))}}function De(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",23),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.ResumeCall())}),e.nrm(1,"lucide-icon",8)(2,"span",9),e.nI1(3,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",t.myCall.media.isNegotiationInProgress),e.R7$(),e.Y8G("img",t.pauseIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(3,3,"_i18n.Resume"))}}function $e(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.joinAttendedConference())}),e.nrm(1,"lucide-icon",8)(2,"span",9),e.nI1(3,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.myCall.isConferenceEnabled),e.R7$(),e.Y8G("img",t.usersIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(3,3,"_i18n.ConfMerge"))}}function Ee(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",25),e.nI1(1,"async"),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.openConferenceOptions())}),e.nrm(2,"lucide-icon",8)(3,"span",9),e.nI1(4,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.myCall.isConferenceEnabled||t.myCall.isConferenceCall&&!e.bMT(1,3,t.meetingListService.anyActivePrivateOrAudio$)),e.R7$(2),e.Y8G("img",t.usersIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(4,5,"_i18n.Conference"))}}function Fe(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);
1return l.Njj(o.openTransfer())}),e.nrm(1,"lucide-icon",27)(2,"span",9),e.nI1(3,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.myCall.isTransferEnabled),e.R7$(),e.Y8G("img",t.Split),e.R7$(),e.Y8G("truncatedText",e.bMT(3,3,"_i18n.Transfer"))}}function Be(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.JoinCall())}),e.nrm(1,"lucide-icon",8)(2,"span",9),e.nI1(3,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.myCall.isTransferEnabled),e.R7$(),e.Y8G("img",t.shuffleIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(3,3,"_i18n.Join"))}}function Xe(n,u){if(1&n&&e.nrm(0,"lucide-icon",8),2&n){const t=e.XpG(2);e.Y8G("img",t.grid3x3Icon)}}function Le(n,u){1&n&&e.nrm(0,"app-th-solid-icon")}function Ye(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",29),e.nI1(1,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.ChangeVideoVisibility(!0))}),e.nrm(2,"lucide-icon",8),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("title",e.bMT(1,2,"_i18n.Video")),e.R7$(2),e.Y8G("img",t.Forward)}}function We(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.nVh(1,je,4,5,"button",5)(2,De,4,5,"button",6),e.j41(3,"button",7),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.MuteCall())}),e.nrm(4,"lucide-icon",8)(5,"span",9),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",10),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.openNewCall())}),e.nrm(8,"lucide-icon",8)(9,"span",9),e.nI1(10,"translate"),e.k0s(),e.nVh(11,$e,4,5,"button",11),e.nI1(12,"async"),e.vZN(13,Ee,5,7,"button",12),e.nVh(14,Fe,4,5,"button",13)(15,Be,4,5,"button",14),e.j41(16,"button",15),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.openAttTransfer())}),e.nrm(17,"lucide-icon",8)(18,"span",9),e.nI1(19,"translate"),e.k0s(),e.j41(20,"button",16),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.callsService.record(o.myCall))}),e.nrm(21,"lucide-icon",8)(22,"span",9),e.nI1(23,"translate"),e.k0s(),e.j41(24,"button",17),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.ChangeKeyPadVisibility(!0))}),e.nVh(25,Xe,1,1,"lucide-icon",8)(26,Le,1,0,"app-th-solid-icon"),e.nrm(27,"span",9),e.nI1(28,"translate"),e.k0s(),e.j41(29,"button",18),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.videoCall())}),e.nrm(30,"lucide-icon",8)(31,"span",9),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"div",19),e.nrm(34,"span"),e.j41(35,"button",20),e.nI1(36,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.DropCall())}),e.nrm(37,"lucide-icon",8),e.k0s(),e.nVh(38,Ye,3,4,"button",21),e.k0s()}if(2&n){const t=e.XpG(),i=e.r8f(0),o=t.isOnHold();e.R7$(),e.vxM(o?2:1);const a=t.myCall.media.isMuted&&t.myCall.isMuteEnabled;e.R7$(2),e.AVh("button-pressed",a),e.Y8G("disabled",!t.myCall.isMuteEnabled),e.R7$(),e.Y8G("img",a?t.micOffIcon:t.mic),e.R7$(),e.Y8G("truncatedText",e.bMT(6,31,a?"_i18n.Unmute":"_i18n.Mute")),e.R7$(2),e.Y8G("disabled",t.isDialing()),e.R7$(),e.Y8G("img",t.plusIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(10,33,"_i18n.Dialer_NewCall")),e.R7$(2),e.vxM(t.myCall.isConferenceCall||!t.myCall.joinConferenceOtherConnectionId&&!e.bMT(12,35,t.meetingListService.IsMyPrivateConferenceActive$)?13:11),e.R7$(3),e.vxM(t.myCall.joinToConnectionId?15:14),e.R7$(2),e.Y8G("disabled",!t.myCall.isAttTransferEnabled),e.R7$(),e.Y8G("img",t.shuffleIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(19,37,"_i18n.AttTransfer")),e.R7$(2),e.AVh("button-pressed",t.myCall.isRecording&&!t.myCall.isRecordingPaused),e.Y8G("disabled",!t.myCall.isRecordingEnabled),e.R7$(),e.Y8G("img",t.audioLinesIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(23,39,"_i18n.Recording")),e.R7$(2),e.Y8G("disabled",!t.canSendDtmf()),e.R7$(),e.vxM(i?25:26),e.R7$(2),e.Y8G("truncatedText",e.bMT(28,41,"_i18n.Keypad")),e.R7$(2),e.AVh("button-pressed",t.isVideoActive()),e.Y8G("disabled",!t.myCall.isVideoEnabled),e.R7$(),e.Y8G("img",t.videoIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(32,43,"_i18n.Video")),e.R7$(4),e.Y8G("title",e.bMT(36,45,"_i18n.Drop"))("disabled",t.myCall.isTrying),e.R7$(2),e.Y8G("img",t.ph
1one),e.R7$(),e.vxM(t.isVideoActive()?38:-1)}}function ze(n,u){if(1&n){const t=e.RV6();e.j41(0,"call-dialpad",30,0),e.bIt("buttonPressed",function(o){l.eBV(t);const a=e.XpG();return l.Njj(a.callsService.sendDtmf(a.myCall,o))}),e.nrm(2,"span"),e.j41(3,"button",31),e.nI1(4,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.DropCall())}),e.nrm(5,"lucide-icon",8),e.k0s(),e.j41(6,"button",32),e.nI1(7,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.ChangeKeyPadVisibility(!1))}),e.nrm(8,"lucide-icon",8),e.k0s()()}if(2&n){const t=e.XpG();e.Y8G("disabled",!t.canSendDtmf()),e.R7$(3),e.Y8G("title",e.bMT(4,6,"_i18n.Drop"))("disabled",t.myCall.isTrying),e.R7$(2),e.Y8G("img",t.phone),e.R7$(),e.Y8G("title",e.bMT(7,8,"_i18n.Back")),e.R7$(2),e.Y8G("img",t.undo)}}function Ue(n,u){if(1&n){const t=e.RV6();e.j41(0,"call-dialpad",33,1),e.bIt("buttonPressed",function(o){l.eBV(t);const a=e.XpG();return l.Njj(a.sendSearchKey(o))}),e.nrm(2,"span"),e.j41(3,"button",34),e.nI1(4,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.inCallSearchActionFired())}),e.nrm(5,"lucide-icon",8),e.k0s(),e.j41(6,"button",35),e.nI1(7,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.setInCallSearchAction(o.InCallSearchAction.None))}),e.nrm(8,"lucide-icon",8),e.k0s()()}if(2&n){const t=e.XpG(),i=e.r8f(0);e.R7$(3),e.Y8G("title",e.bMT(4,4,"_i18n.Call")),e.R7$(2),e.Y8G("img",i?t.phoneCallIcon:t.phone),e.R7$(),e.Y8G("title",e.bMT(7,6,"_i18n.Back")),e.R7$(2),e.Y8G("img",t.undo)}}function Qe(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",3)(1,"button",36),e.nI1(2,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.MuteCall())}),e.nrm(3,"lucide-icon",8),e.k0s(),e.j41(4,"button",37),e.nI1(5,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.DropCall())}),e.nrm(6,"lucide-icon",8),e.k0s(),e.j41(7,"button",38),e.nI1(8,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.ChangeVideoVisibility(!1))}),e.nrm(9,"lucide-icon",8),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.AVh("button-pressed",t.myCall.media.isMuted),e.Y8G("title",e.bMT(2,10,"_i18n.Mute"))("disabled",!t.myCall.isMuteEnabled),e.R7$(2),e.Y8G("img",t.myCall.media.isMuted?t.micOffIcon:t.mic),e.R7$(),e.Y8G("title",e.bMT(5,12,"_i18n.Drop"))("disabled",t.myCall.isTrying),e.R7$(2),e.Y8G("img",t.phone),e.R7$(),e.Y8G("title",e.bMT(8,14,"_i18n.Back")),e.R7$(2),e.Y8G("img",t.undo)}}function Ke(n,u){if(1&n&&e.nrm(0,"lucide-icon",8),2&n){const t=e.XpG(2);e.Y8G("img",t.voicemailIcon)}}function He(n,u){1&n&&e.nrm(0,"app-envelope-light-icon")}function Je(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"button",39),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.AnswerWithVideo())}),e.nrm(2,"lucide-icon",8)(3,"span",9),e.nI1(4,"translate"),e.k0s(),e.j41(5,"button",40),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.DivertToVoiceMail())}),e.nVh(6,Ke,1,1,"lucide-icon",8)(7,He,1,0,"app-envelope-light-icon"),e.nrm(8,"span",9),e.nI1(9,"translate"),e.k0s(),e.j41(10,"button",41),e.nI1(11,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.AnswerCall())}),e.nrm(12,"lucide-icon",8),e.k0s(),e.j41(13,"button",20),e.nI1(14,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.DropCall())}),e.nrm(15,"lucide-icon",8),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("disabled",!t.myCall.isAnswerEnabled||!t.isVideoAnswerAllowed()),e.R7$(),e.Y8G("img",t.videoIcon),e.R7$(),e.Y8G("truncatedText",e.bMT(4,12,"_i18n.Video")),e.R7$(2),e.Y8G("disabled",!t.vmailEnabled()),e.R7$(),e.vxM(t.isNewDesign()?6:7),e.R7$(2),e.Y8G("truncatedText",e.bMT(9,14,"_i18n.SendToVmail")),e.R7$(2),e.Y8G("disabled",!t.myCall.isAnswerEnabled)("title",e.bMT(11,16,t.myCall.deviceDirectControl?"_i18n.Answer":"_i18n.CantAnswerWithoutDirectCallControl")),e.R7$(2),e.Y8G("img",t.phone),e.R7$(),e.Y8G("title",e.bMT(14,18,"_i18n.Decline"))("disabled",t.myCall.isTrying),e.R7$(2),e.Y8G("img",t.phone)}}function Ze(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",42)(1,"button",43),e.nI1(2,"async"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.openConference())}),e.nrm(3,"lucide-icon",8),e.j41(4,"h6",44),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"small",45),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"button",46),e.nI1(11,"async"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.openAttendedConference())}),e.nrm(12,"lucide-icon",8),e.j41(13,"h6",44),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"small",45),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"div",3),e.nrm(20,"span"),e.j41(21,"button",37),e.nI1(22,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.DropCall())}),e.nrm(23,"lucide-icon",8),e.k0s(),e.j41(24,"button",47),e.nI1(25,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.ChangeConferenceActionsVisibility(!1))}),e.nrm(26,"lucide-icon",8),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("disabled",!t.myCall.isConferenceEnabled||t.myCall.isConferenceCall&&!e.bMT(2,13,t.meetingListService.anyActivePrivateOrAudio$)),e.R7$(2),e.Y8G("img",t.ph
1oneForwardedIcon),e.R7$(2),e.JRh(e.bMT(6,15,"_i18n.DirectAdd")),e.R7$(3),e.JRh(e.bMT(9,17,"_i18n.DirectConferenceDesc")),e.R7$(2),e.Y8G("disabled",!t.myCall.isAttConferenceEnabled||t.myCall.isConferenceCall&&t.myCall.isAttConferenceEnabled&&!e.bMT(11,19,t.meetingListService.IsMyPrivateConferenceActive$)),e.R7$(2),e.Y8G("img",t.shuffleIcon),e.R7$(2),e.JRh(e.bMT(15,21,"_i18n.Consultative")),e.R7$(3),e.JRh(e.bMT(18,23,"_i18n.ConsultativeConferenceDesc")),e.R7$(4),e.Y8G("title",e.bMT(22,25,"_i18n.Drop"))("disabled",t.myCall.isTrying),e.R7$(2),e.Y8G("img",t.phone),e.R7$(),e.Y8G("title",e.bMT(25,27,"_i18n.Back")),e.R7$(2),e.Y8G("img",t.undo)}}var X=function(n){return n[n.EstablishedCallActions=1]="EstablishedCallActions",n[n.IncomingCallActions=2]="IncomingCallActions",n[n.VideoCallActions=3]="VideoCallActions",n[n.InCallKeyPadActions=4]="InCallKeyPadActions",n[n.InCallSearchContactActions=5]="InCallSearchContactActions",n[n.ConferenceCallActions=6]="ConferenceCallActions",n}(X||{});let qe=(()=>{class n{meetingListService=(0,l.WQX)(d.X);router=(0,l.WQX)(r.Ix);callsService=(0,l.WQX)(V.z);utilityService=(0,l.WQX)(s.vQ);myPhoneService=(0,l.WQX)(q.gx);isNewDesign=(0,l.WQX)(z.e);myCall;type;searchTextPopulated;inCallKeyPadVisibilityChange=(0,y.CGW)();conferenceActionsVisibilityChange=(0,y.CGW)();inCallSearchActionChange=(0,y.CGW)();searchKeyPressed=(0,y.CGW)();searchActionFired=(0,y.CGW)();videoVisibilityChange=(0,y.CGW)();callActionFired=(0,y.CGW)();inCallDialPad;inCallSearchContactDialPad;CallButtonsType=X;InCallSearchAction=s.GS;vmailEnabled=(0,B.ot)(this.myPhoneService.vmailEnabled$);nav(t){this.router.navigate(t)}redirectToConference(){this.meetingListService.sortedConferences$.pipe((0,m.s)(1),(0,h.T)(t=>t.filter(i=>i.isAudio||i.isPrivate))).subscribe(t=>{const i=t.find(a=>a.audioConference.Id===this.myCall.conferenceId),o=t.find(a=>a.isPrivate);if(i)this.nav(i.routerLink);else if(o)this.nav(o.routerLink);else if(t.length>0){const a=t.find(C=>C.isActive)??t[0];this.nav(a.routerLink)}})}openConferenceOptions(){this.myCall.isConferenceCall?this.redirectToConference():this.ChangeConferenceActionsVisibility(!0)}openConference(){this.setInCallSearchAction(s.GS.Conference)}openAttendedConference(){this.setInCallSearchAction(s.GS.AttConference)}joinAttendedConference(){this.myCall.conferenceType!==_.kqr.LCCT_AdHocPrivate||this.myCall.joinConferenceOtherConnectionId?this.callsService.joinAttendedConference(this.myCall):this.openAttendedConference(),this.callActionFired.emit()}ChangeConferenceActionsVisibility(t){this.conferenceActionsVisibilityChange.emit(t)}openTransfer(){this.setInCallSearchAction(s.GS.Transfer)}openAttTransfer(){this.setInCallSearchAction(s.GS.AttTransfer)}openNewCall(){this.setInCallSearchAction(s.GS.NewCall)}isVideoActive(){return this.utilityService.isVideoActive(this.myCall)}isOnHold(){return this.utilityService.isOnHold(this.myCall)}isVideoAnswerAllowed(){return!this.myCall.isAnswerEnabled||this.utilityService.isVideoAnswerAllowed(this.myCall)}isDialing(){return this.utilityService.isDialing(this.myCall)}videoCall(){this.isVideoActive()||this.ChangeVideoVisibility(!0),this.callsService.video(this.myCall)}AnswerWithVideo(){!this.isVideoAnswerAllowed()||this.myCall.isBeingProcessed||(this.isVideoActive()||this.ChangeVideoVisibility(!0),this.callsService.answer(this.myCall,!0))}ChangeVideoVisibility(t){this.videoVisibilityChange.emit(t)}ChangeKeyPadVisibility(t){this.inCallKeyPadVisibilityChange.emit(t)}AnswerCall(){!this.myCall.isAnswerEnabled||this.myCall.isBeingProcessed||(this.callsService.answer(this.myCall,!1),this.callActionFired.emit())}HoldCall(){this.callsService.hold(this.myCall),this.callActionFired.emit()}ResumeCall(){this.callsService.resume(this.myCall),this.callActionFired.emit()}DivertToVoiceMail(){this.callsService.divertToVoicemail(this.myCall),this.callActionFired.emit()}DropCall(){this.myCall.isTrying||(this.callsService.drop(this.myCall),this.callActionFired.emit())}MuteCall(){this.callsService.mute(this.myCall),this.callActionFired.emit()}JoinCall(){this.callsService.join(this.myCall),this.callActionFired.emit()}canSendDtmf(){return(0,O.Kk)(this.myCall)}playDtmfSound(t){this.inCallDialPad&&this.type===X.InCallKeyPadActions&&this.canSendDtmf()?this.inCallDialPad.play$.next(t):this.inCallSearchContactDialPad&&this.type===X.InCallSearchContactActions&&this.inCallSearchContactDialPad.play$.next(t)}setInCallSearchAction(t){this.inCallSearchActionChange.emit(t)}
1sendSearchKey(t){this.searchKeyPressed.emit(t)}inCallSearchActionFired(){this.searchActionFired.emit()}LocalConnectionConferenceType=_.kqr;videoIcon=M.CeX;voicemailIcon=M.c2U;shuffleIcon=M.goF;micOffIcon=M.jjZ;mic=M.GOn;pauseIcon=M.vRz;playIcon=M.jGG;plusIcon=M.FWt;usersIcon=M.zWC;phoneForwardedIcon=M.P9u;audioLinesIcon=M.IDf;grid3x3Icon=M.hNX;phoneCallIcon=M.d3s;undo=M.bE2;phone=M.bcf;Forward=M.w8r;Split=M.B19;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["call-buttons"]],viewQuery:function(i,o){if(1&i&&e.GBs(Ge,5)(Ae,5),2&i){let a;e.mGM(a=e.lsd())&&(o.inCallDialPad=a.first),e.mGM(a=e.lsd())&&(o.inCallSearchContactDialPad=a.first)}},inputs:{myCall:"myCall",type:"type",searchTextPopulated:"searchTextPopulated"},outputs:{inCallKeyPadVisibilityChange:"inCallKeyPadVisibilityChange",conferenceActionsVisibilityChange:"conferenceActionsVisibilityChange",inCallSearchActionChange:"inCallSearchActionChange",searchKeyPressed:"searchKeyPressed",searchActionFired:"searchActionFired",videoVisibilityChange:"videoVisibilityChange",callActionFired:"callActionFired"},decls:7,vars:2,consts:[["inCallDialPad",""],["inCallSearchContactDialPad",""],[3,"disabled"],[1,"three-columns-grid"],[1,"two-columns-grid"],["type","button","data-qa","hold",1,"btn","btn-plain",3,"disabled"],["type","button","data-qa","resume",1,"btn","btn-plain","button-pressed",3,"disabled"],["type","button","data-qa","toggle-mute",1,"btn","btn-plain",3,"click","disabled"],[3,"img"],[3,"truncatedText"],["type","button","data-qa","new-call",1,"btn","btn-plain",3,"click","disabled"],["data-qa","conf-merge","type","button",1,"btn","btn-plain",3,"disabled"],["data-qa","conference","type","button",1,"btn","btn-plain",3,"disabled"],["data-qa","transfer","type","button",1,"btn","btn-plain",3,"disabled"],["data-qa","join","type","button",1,"btn","btn-plain",3,"disabled"],["data-qa","att-transfer","type","button",1,"btn","btn-plain",3,"click","disabled"],["type","button","data-qa","record",1,"btn","btn-plain",3,"click","disabled"],["data-qa","keypad","type","button",1,"btn","btn-plain",3,"click","disabled"],["id","btnVideo","data-qa","video","type","button",1,"btn","btn-plain",3,"click","disabled"],[1,"three-columns-grid","mt-3"],["type","button","data-qa","decline",1,"btn","btn-icon","drop-call-btn",3,"click","title","disabled"],["data-qa","forward","type","button",1,"btn","btn-plain","btn-icon",3,"title"],["type","button","data-qa","hold",1,"btn","btn-plain",3,"click","disabled"],["type","button","data-qa","resume",1,"btn","btn-plain","button-pressed",3,"click","disabled"],["data-qa","conf-merge","type","button",1,"btn","btn-plain",3,"click","disabled"],["data-qa","conference","type","button",1,"btn","btn-plain",3,"click","disabled"],["data-qa","transfer","type","button",1,"btn","btn-plain",3,"click","disabled"],[1,"rotate-right",3,"img"],["data-qa","join","type","button",1,"btn","btn-plain",3,"click","disabled"],["data-qa","forward","type","button",1,"btn","btn-plain","btn-icon",3,"click","title"],[3,"buttonPressed","disabled"],["data-qa","drop","type","button",1,"btn","btn-icon","drop-call-btn",3,"click","title","disabled"],["data-qa","go-back","type","button",1,"btn","btn-icon","btn-plain",3,"click","title"],[3,"buttonPressed"],["type","button","data-qa","make-call",1,"btn","btn-icon","make-call-btn",3,"click","title"],["type","button","data-qa","go-back",1,"btn","btn-icon","btn-plain",3,"click","title"],["type","button","data-qa","mute",1,"btn","btn-plain","btn-icon",3,"click","title","disabled"],["type","button","data-qa","drop",1,"btn","btn-icon","drop-call-btn",3,"click","title","disabled"],["type","button","data-qa","go-back",1,"btn","btn-plain","btn-icon",3,"click","title"],["type","button",1,"btn","btn-plain",3,"click","disabled"],["data-qa","send-vmail","type","button",1,"btn","btn-plain",3,"click","disabled"],["type","button","data-qa","answer",1,"btn","btn-icon","make-call-btn",3,"click","disabled","title"],[1,"two-columns-grid","mb-3"],["data-qa","conference-direct","type","button",1,"btn","btn-plain","text-center",3,"click","disabled"],["data-qa","button-header",1,"mb-0","text-truncate"],["data-qa","button-description",1,"line-clamp-2"],["data-qa","conference-consultative","type","button",1,"btn","btn-plain","text-center",3,"click","disabled"],["type","button","data-qa","back",1,"btn","btn-icon","btn-plain",3,"click","title"]],template:function(i,o){if(1&i&&(e.SS7(0),e.nVh(1,We,39,47)(2,ze,9,10,"call-dialpad",2)(3,
1Ue,9,8,"call-dialpad")(4,Qe,10,16,"div",3)(5,Je,16,20,"div",4)(6,Ze,27,29)),2&i){let a;e.bH3(o.isNewDesign()),e.R7$(),e.vxM((a=o.type)===o.CallButtonsType.EstablishedCallActions?1:a===o.CallButtonsType.InCallKeyPadActions?2:a===o.CallButtonsType.InCallSearchContactActions?3:a===o.CallButtonsType.VideoCallActions?4:a===o.CallButtonsType.IncomingCallActions?5:a===o.CallButtonsType.ConferenceCallActions?6:-1)}},dependencies:[g,p,S.l,M.flO,M.WGl,Z.N,F.D9,j.Jj],styles:["[_nghost-%COMP%]{display:block;width:100%;color:var(--text-secondary);font-size:10px;--svg-size: 100%;--btn-icon-size: 39px}[_nghost-%COMP%]   button[_ngcontent-%COMP%], [_nghost-%COMP%]   input[_ngcontent-%COMP%]{color:inherit}[_nghost-%COMP%]   .button-pressed[_ngcontent-%COMP%]{color:var(--bg-secondary)}[_nghost-%COMP%]   .btn[_ngcontent-%COMP%]{--svg-size: 20px;max-width:100%;min-width:0}[_nghost-%COMP%]   .btn[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{max-width:100%}[_nghost-%COMP%]   .btn[_ngcontent-%COMP%]:disabled{opacity:var(--btn-disabled-opacity, .4)}[_nghost-%COMP%]   .btn[_ngcontent-%COMP%]:hover{opacity:var(--btn-hover-opacity, .75)}[_nghost-%COMP%]   .btn-plain[_ngcontent-%COMP%]{font-size:inherit;height:auto;flex-direction:column;align-items:center;justify-content:center;justify-self:stretch;align-self:stretch;--bs-btn-padding-x: 0;--bs-btn-padding-y: 0;gap:var(--spacer-xs);--bs-btn-hover-bg: transparent;--bs-btn-active-bg: transparent;--svg-color: currentColor}[_nghost-%COMP%]   .btn-icon[_ngcontent-%COMP%]{border-radius:50%;justify-self:center}[_nghost-%COMP%]   .btn-icon[_ngcontent-%COMP%]:not(.btn-plain){--svg-color: white}[_nghost-%COMP%]   .make-call-btn[_ngcontent-%COMP%]{background:var(--make-call)}[_nghost-%COMP%]   .make-call-btn[_ngcontent-%COMP%]:hover{background:var(--make-call-hover, var(--make-call))}[_nghost-%COMP%]   .drop-call-btn[_ngcontent-%COMP%]{background:var(--terminate-call)}[_nghost-%COMP%]   .drop-call-btn[_ngcontent-%COMP%]:hover{background:var(--terminate-call-hover, var(--terminate-call))}[_nghost-%COMP%]   .drop-call-btn[_ngcontent-%COMP%]   lucide-icon[_ngcontent-%COMP%]{transform:rotate(135deg)}[_nghost-%COMP%]   .two-columns-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr 2fr;width:100%;grid-row-gap:var(--spacer);padding:0 var(--spacer)}[_nghost-%COMP%]   .two-columns-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:nth-child(odd){grid-column-start:1}[_nghost-%COMP%]   .two-columns-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:nth-child(2n){grid-column-start:3}[_nghost-%COMP%]   .three-columns-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%;row-gap:var(--spacer-s)}.new-design   [_nghost-%COMP%]{color:var(--text-primary);font-size:var(--small-font-size);--btn-hover-opacity: 1;--btn-icon-size: 56px;--btn-disabled-opacity: .65}.new-design   [_nghost-%COMP%]   .button-pressed[_ngcontent-%COMP%]{color:var(--dialer-btn-pressed);border-color:var(--dialer-btn-pressed);background:color-mix(in srgb,var(--dialer-btn-pressed) 15%,transparent)}.new-design   [_nghost-%COMP%]   .btn-plain[_ngcontent-%COMP%]{--bs-btn-border-color: var(--border-color);--bs-btn-hover-border-color: var(--border-color);--bs-btn-active-border-color: var(--border-color);--bs-btn-hover-bg: var(--dialer-btn-hover);--bs-btn-active-bg: var(--dialer-btn-hover)}.new-design   [_nghost-%COMP%]   .btn-plain[_ngcontent-%COMP%]:not(.btn-icon){--bs-btn-padding-y: var(--spacer-s);--bs-btn-padding-x: var(--spacer-s)}.new-design   [_nghost-%COMP%]   .btn-plain.btn-icon[_ngcontent-%COMP%]{--bs-btn-bg: var(--dialer-btn)}.new-design   [_nghost-%COMP%]   .two-columns-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 0 1fr;column-gap:var(--spacer-s);padding:0}.new-design   [_nghost-%COMP%]   .three-columns-grid[_ngcontent-%COMP%]{gap:var(--spacer-s)}.new-design   [_nghost-%COMP%]   .three-columns-grid[_ngcontent-%COMP%]   .btn-plain[_ngcontent-%COMP%]:not(.btn-icon){height:64px}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100%;height:var(--keypad-btn-height);border-radius:calc(var(--keypad-btn-height) / 2)}"]})}return n})();var _e=c(13961),et=c(88141),L=c(7673),tt=c(19630),nt=c(77498),it=c(68739),ot=c(91473),fe=c(44652),ge=c(38601),at=c(40544),K=c(60572),ee=c(46062),ce=c(73042),lt=c(97684),be=c(9852),oe=c(62175);function st(n,u){1&n&&e.eu8(0)}function ct(n,u){1&n&&e.eu8(0)}function rt(n,u){if(1&n&&e.DNE(0,st,1,0,"ng-container",8)(1,ct,1,0,"ng-container",8),2&n){e.XpG(3);const t=e.sdS(5),i=e.sdS(7);e.Y8G("ngTemplateOutlet",t),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function dt(n,u){1&n&&e.eu8(0)}function ut(n,u){1&n&&e.eu8(0)}function pt(n,u){if(1&n&&(e.j41(0,"div",6),e.nVh(1,rt,2,2),e.nrm(2,"div",7),e.DNE(3,dt,1,0,"ng-container",8)(4,ut,1,0,"ng-container",8),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(3),o=e.sdS(11);e.R7$(),e.vxM(t.isVideoActive?-1:1),e.R7$(),e.Y8G("truncatedText",t.myCall.phone),e.R7$(),e.Y8G("ngTemplateOutlet",i),e.R7$(),e.Y8G("ngTemplateOutlet",o)}}function mt(n,u){1&n&&e.eu8(0)}function Ct(n,u){1&n&&e.eu8(0)}function ht(n,u){1&n&&e.eu8(0)}function _t(n,u){if(1&n&&(e.j41(0,"div",6),e.DNE(1,mt,1,0,"ng-container",8)(2,Ct,1,0,"ng-container",8)(3,ht,1,0,"ng-container",8),e.nrm(4,"div",9),e.nI1(5,"async"),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(3),o=e.sdS(7),a=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",o),e.R7$(),e.Y8G("ngTemplateOutlet",i),e.R7$(),e.Y8G("ngTemplateOutlet",a),e.R7$(),e.Y8G("truncatedText",e.bMT(5,4,t.myCall.media.toneSend$))}}function ft(n,u){1&n&&e.eu8(0)}function gt(n,u){1&n&&e.eu8(0)}function bt(n,u){if(1&n&&(e.j41(0,"div",6),e.DNE(1,ft,1,0,"ng-container",8)(2,gt,1,0,"ng-container",8),e.k0s()),2&n){e.XpG(2);const t=e.sdS(7),i=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",t),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function vt(n,u){1&n&&e.nrm(0,"div",6)}
1function yt(n,u){if(1&n&&e.nVh(0,pt,5,4,"div",6)(1,_t,6,6,"div",6)(2,bt,3,2,"div",6)(3,vt,1,0,"div",6),2&n){let t;const i=e.XpG();e.vxM((t=i.mode)===i.CallerInfoMode.Normal?0:t===i.CallerInfoMode.InCallKeyPad?1:t===i.CallerInfoMode.OnlyDuration?2:3)}}function xt(n,u){1&n&&e.eu8(0)}function Pt(n,u){1&n&&e.eu8(0)}function Mt(n,u){1&n&&e.eu8(0)}function Tt(n,u){if(1&n&&(e.j41(0,"div",6),e.nrm(1,"div",10),e.DNE(2,xt,1,0,"ng-container",8)(3,Pt,1,0,"ng-container",8)(4,Mt,1,0,"ng-container",8),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(3),o=e.sdS(7),a=e.sdS(11);e.R7$(),e.xc7("font-size",t.adaptiveFontSize,"px"),e.Y8G("truncatedText",t.myCall.phone),e.R7$(),e.Y8G("ngTemplateOutlet",o),e.R7$(),e.Y8G("ngTemplateOutlet",i),e.R7$(),e.Y8G("ngTemplateOutlet",a)}}function Ot(n,u){1&n&&e.eu8(0)}function St(n,u){1&n&&e.eu8(0)}function It(n,u){1&n&&e.eu8(0)}function kt(n,u){if(1&n&&(e.j41(0,"div",6),e.nrm(1,"div",10),e.nI1(2,"async"),e.DNE(3,Ot,1,0,"ng-container",8)(4,St,1,0,"ng-container",8)(5,It,1,0,"ng-container",8),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(3),o=e.sdS(7),a=e.sdS(11);e.R7$(),e.Y8G("truncatedText",e.bMT(2,4,t.myCall.media.toneSend$)),e.R7$(2),e.Y8G("ngTemplateOutlet",o),e.R7$(),e.Y8G("ngTemplateOutlet",i),e.R7$(),e.Y8G("ngTemplateOutlet",a)}}function wt(n,u){1&n&&e.eu8(0)}function Vt(n,u){1&n&&e.eu8(0)}function Nt(n,u){if(1&n&&(e.j41(0,"div",6),e.DNE(1,wt,1,0,"ng-container",8)(2,Vt,1,0,"ng-container",8),e.k0s()),2&n){e.XpG(2);const t=e.sdS(7),i=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",t),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}function Rt(n,u){1&n&&e.nrm(0,"div",6)}function Gt(n,u){if(1&n&&e.nVh(0,Tt,5,6,"div",6)(1,kt,6,6,"div",6)(2,Nt,3,2,"div",6)(3,Rt,1,0,"div",6),2&n){let t;const i=e.XpG();e.vxM((t=i.mode)===i.CallerInfoMode.Normal?0:t===i.CallerInfoMode.InCallKeyPad?1:t===i.CallerInfoMode.OnlyDuration?2:3)}}function At(n,u){if(1&n&&(e.j41(0,"a",17),e.nI1(1,"translate"),e.EFF(2," ("),e.j41(3,"span",18),e.EFF(4,"CRM"),e.k0s(),e.EFF(5,") "),e.k0s()),2&n){const t=e.XpG(5);e.Y8G("title",e.mNQ(e.bMT(1,3,"_i18n.CrmContactPage")))("href",null==t.myCall.contact?null:t.myCall.contact.crmUrl,e.B4B)}}function jt(n,u){if(1&n&&(e.j41(0,"div",15),e.nrm(1,"span",16),e.nVh(2,At,6,5,"a",17),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("truncatedText",t),e.R7$(),e.vxM(null==i.myCall.contact||!i.myCall.contact.crmUrl||!(i.myCall.prependNameToCID?i.isLastDisplayedItem(t):i.isFirstDisplayedItem(t))||i.myCall.contact.
1isPhonebookContact()&&i.showCrmUrlInPhonebookContactName()?-1:2)}}function Dt(n,u){1&n&&e.eu8(0)}function $t(n,u){if(1&n&&e.DNE(0,Dt,1,0,"ng-container",8),2&n){e.XpG(4);const t=e.sdS(9);e.Y8G("ngTemplateOutlet",t)}}function Et(n,u){if(1&n&&(e.j41(0,"li",14),e.nVh(1,jt,3,2,"div",15),e.nVh(2,$t,1,1,"ng-container"),e.k0s()),2&n){const t=u.$implicit,i=u.$index,o=u.$count,a=e.XpG(3);e.HbH(e.VkB("d-flex flex-column justify-content-center mb-1 gap-1 ",a.isNewDesign()?"text-hint":"")),e.Y8G("title",t),e.R7$(),e.vxM(a.isInternalContactNameMatched(t)?-1:1),e.R7$(),e.vxM(a.isInternalContact&&(a.myCall.prependNameToCID?i===o-1:0===i)?2:-1)}}function Ft(n,u){if(1&n&&(e.j41(0,"ul",11),e.Z7z(1,Et,3,6,"li",13,e.fX1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Dyx(t.displayedParts)}}function Bt(n,u){if(1&n&&(e.j41(0,"a",17),e.nI1(1,"translate"),e.EFF(2," ("),e.j41(3,"span",18),e.EFF(4,"CRM"),e.k0s(),e.EFF(5,") "),e.k0s()),2&n){const t=e.XpG(3);e.Y8G("title",e.mNQ(e.bMT(1,3,"_i18n.CrmContactPage")))("href",null==t.myCall.contact?null:t.myCall.contact.crmUrl,e.B4B)}}function Xt(n,u){if(1&n&&(e.j41(0,"div",12)(1,"span",19),e.EFF(2),e.nI1(3,"lforfl"),e.nI1(4,"async"),e.k0s(),e.nVh(5,Bt,6,5,"a",17),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(4,4,e.bMT(3,2,t.myCall.contact))),e.R7$(3),e.vxM(null!=t.myCall.contact&&t.myCall.contact.crmUrl?5:-1)}}function Lt(n,u){1&n&&(e.j41(0,"div",11)(1,"span",20),e.EFF(2,"Unknown"),e.k0s()()),2&n&&(e.R7$(),e.Y8G("translate","_i18n.Unknown"))}function Yt(n,u){if(1&n&&e.nVh(0,Lt,3,1,"div",11),2&n){const t=e.XpG(2);e.vxM(t.isShowUnknown?0:-1)}}function Wt(n,u){if(1&n&&(e.nVh(0,Ft,3,0,"ul",11)(1,Xt,6,6,"div",12),e.DNE(2,Yt,1,1,"ng-template",null,5,e.C5r)),2&n){const t=e.XpG();e.vxM(t.displayedParts.length>0?0:t.isExternalCrmContact?1:-1)}}function zt(n,u){if(1&n&&e.nrm(0,"app-avatar",21),2&n){const t=e.XpG();e.Y8G("ext",t.myCall.contact)("newDesign",t.isNewDesign())}}function Ut(n,u){if(1&n){const t=e.RV6();e.j41(0,"a",25),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.openClientCrmUrl())}),e.j41(1,"span",26),e.nrm(2,"lucide-icon",27),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("img",t.Search),e.R7$(2),e.JRh(e.bMT(5,2,"_i18n.LookUp"))}}function Qt(n,u){if(1&n){const t=e.RV6();e.j41(0,"a",29),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.addToContacts(o.myCall))}),e.j41(1,"span",30),e.nrm(2,"lucide-icon",27),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("img",t.Plus),e.R7$(2),e.JRh(e.bMT(5,2,"_i18n.MenuAddContact"))}}function Kt(n,u){if(1&n&&(e.j41(0,"div",22),e.nVh(1,Ut,6,4,"a",23),e.nI1(2,"async"),e.nVh(3,Qt,6,4,"a",24),e.k0s()),2&n){const t=e.XpG();e.AVh("my-1",!t.isNewDesign()),e.R7$(),e.vxM(e.bMT(2,4,t.hasClientCrmIntegration$)&&t.canOpenClientCrmUrl?1:-1),e.R7$(2),e.vxM(t.canBeAdded?3:-1)}}function Ht(n,u){if(1&n&&(e.j41(0,"div",15),e.nrm(1,"span",33),e.j41(2,"a",35),e.nI1(3,"translate"),e.EFF(4," ("),e.j41(5,"span",18),e.EFF(6,"CRM"),e.k0s(),e.EFF(7,") "),e.k0s()()),2&n){const t=e.XpG(2),i=e.XpG(2);e.R7$(),e.Y8G("truncatedText",t),e.R7$(),e.Y8G("title",e.mNQ(e.bMT(3,4,"_i18n.CrmContactPage")))("href",null==i.myCall.contact?null:i.myCall.contact.crmUrl,e.B4B)}}function Jt(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",31),e.nVh(1,Ht,8,6,"div",15),e.j41(2,"div",15),e.nrm(3,"span",33),e.j41(4,"a",34),e.bIt("click",function(){l.eBV(t);const o=e.XpG(3);return l.Njj(o.viewContact(o.myCall.contact))}),e.EFF(5," ("),e.j41(6,"span",18),e.EFF(7,"3CX"),e.k0s(),e.EFF(8,") "),e.k0s()()()}if(2&n){const t=e.XpG(),i=e.XpG(2);e.R7$(),e.vxM(i.showCrmUrlInPhonebookContactName()?1:-1),e.R7$(2),e.Y8G("truncatedText",t),e.R7$(),e.Y8G("title",e.mNQ(t))}}function Zt(n,u){if(1&n&&(e.j41(0,"div",32)(1,"span",36),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.JRh(t)}}function qt(n,u){if(1&n&&e.nVh(0,Jt,9,4,"div",31)(1,Zt,3,1,"div",32),2&n){const t=e.XpG(2);
1e.vxM(t.myCall.contact.isPhonebookContact()?0:t.isExtensionContact?1:-1)}}function en(n,u){if(1&n&&(e.nVh(0,qt,2,1),e.nI1(1,"lforfl"),e.nI1(2,"async")),2&n){let t;const i=e.XpG();e.vxM((t=e.bMT(2,3,e.bMT(1,1,i.myCall.contact)))?0:-1,t)}}function tn(n,u){if(1&n&&(e.j41(0,"div",37),e.nrm(1,"duration",38),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.AVh("video-call",t.isVideoActive),e.Y8G("startedAt",t.myCall.startedAt)}}var H=function(n){return n[n.Normal=0]="Normal",n[n.InCallKeyPad=1]="InCallKeyPad",n[n.OnlyDuration=2]="OnlyDuration",n[n.NoInfo=3]="NoInfo",n}(H||{});let nn=(()=>{class n{isNewDesign=(0,l.WQX)(z.e);integrationService=(0,l.WQX)(tt.a);router=(0,l.WQX)(r.Ix);phonebook=(0,l.WQX)(ot.m);myPhone=(0,l.WQX)(q.gx);modalService=(0,l.WQX)(ge.B);contactSearcherService=(0,l.WQX)(fe.D);hasClientCrmIntegration$;ngOnInit(){this.hasClientCrmIntegration$=this.integrationService.hasClientCrmIntegration$}ngOnDestroy(){this.subscriptions.unsubscribe()}myCall;mode=H.Normal;callState;isVideoActive=!1;subscriptions=new _e.yU;get adaptiveFontSize(){return this.myCall&&this.myCall.phone?(0,s.bG)(this.myCall.phone.length,24,13):24}CallerInfoMode=H;get canOpenClientCrmUrl(){return"MakeCall"!==this.myCall.phone&&this.myCall.otherPartyDnType===_.Jhl.ExternalLine&&("LiveChat"!==this.myCall.phone&&!!this.myCall.phone||"LiveChat"===this.myCall.phone&&!!this.myCall.contact.emailAddress)}openClientCrmUrl(){this.myCall.phone&&"LiveChat"!==this.myCall.phone?this.integrationService.openClientCrmUrl(this.myCall.phone,void 0):this.myCall.contact.emailAddress&&this.integrationService.openClientCrmUrl(void 0,this.myCall.contact.emailAddress)}matchesName(t){return t===this.myCall.contact.firstNameLastName.trim()||t===this.myCall.contact.lastNameFirstName.trim()||t===this.lastFirstSplitByComma(this.myCall.contact)}showCrmUrlInPhonebookContactName(){const t=this.myCall.displayName.split(":");return!!this.myCall.contact?.crmUrl&&(this.myCall.displayName===this.myCall.phone||t.some(i=>this.matchesName(i))&&this.myCall.contact?.type===ee.eE.CompanyPhonebook||!t.some(i=>!this.isInternalContactNameMatched(i))||t.filter(i=>this.matchesName(i)).length>1&&(this.myCall.contact?.type===ee.eE.PersonalPhonebook||this.myCall.contact?.type===ee.eE.DepartmentPhonebook))}get displayedPartsNotMatched(){return this.displayedParts.filter(t=>!this.isInternalContactNameMatched(t))}isLastDisplayedItem(t){return this.displayedPartsNotMatched.length>0&&this.displayedPartsNotMatched[this.displayedPartsNotMatched.length-1]===t}isFirstDisplayedItem(t){return this.displayedPartsNotMatched.length>0&&this.displayedPartsNotMatched[0]===t}get isExternalCrmContact(){return this.myCall.contact?.type===ee.eE.External}get isExtensionContact(){return this.myCall.contact?.type===ee.eE.Extension}get isShowUnknown(){return ce.Q.isNullOrEmpty(this.myCall.phone)}get displayedParts(){const t=this.myCall.displayName?.split(":").map(i=>{const o=i.trim();
1return o!==this.myCall.phone||this.myCall.contact.isDummy?o:this.myCall.contact.firstNameLastName.trim()})??[];return[...new Set(t.filter(i=>i!==this.myCall.phone))]}isInternalContactNameMatched(t){return this.isInternalContact&&this.matchesName(t)}get isInternalContact(){return this.myCall.contact.isPhonebookContact()||this.isExtensionContact}lastFirstSplitByComma(t){return[t.lastName,t.firstName].filter(Boolean).join(", ").trim()}viewContact(t){!t||!t.id||this.router.navigate(["contacts/view",t.type,t.id])}get canBeAdded(){return this.myCall.contact?.canBeAddedToPhonebook()&&!this.myCall.contact.crmUrl&&"LiveChat"!==this.myCall.phone&&this.myCall.otherPartyDnType===_.Jhl.ExternalLine&&0!==this.myCall.phone.length}addToContacts(t){const i=this.myPhone.myPhoneSession.pipe((0,h.T)(o=>o.systemParameters.IsLastFirst));this.phonebook.addToContact(t.phone,at.r.Compact).pipe((0,et.M)(()=>{this.myCall.isUrlAutoOpened=!0}),(0,nt.c)(500),(0,N.n)(({model:o,creationResults:a})=>{const C=a.some(w=>(w.type===K.Of.Personal||w.type===K.Of.Company||w.type===K.Of.Department)&&w.status===K.cZ.Success),T=a.find(w=>(w.type===K.Of.Crm||w.type===K.Of.Microsoft365)&&w.status===K.cZ.Success)?.createdContact;return o&&C?this.requestLocalContactCreated$(t,o).pipe((0,h.T)(w=>(w.crmUrl=T?.crmUrl??"",w))):(0,L.of)(T)}),(0,E.E)(i),(0,m.s)(1)).subscribe({next:([o,a])=>{if(o&&!o.isDummy){this.myCall.contact.crmUrl&&(o.crmUrl=this.myCall.contact.crmUrl),this.myCall.contact=o;const C=(a?o.lastNameFirstName:o.firstNameLastName).trim();this.myCall.displayName=t.prependNameToCID?`${t.displayName}${C?":"+C:""}`:`${C?C+":":""}${t.displayName}`}},error:o=>{this.modalService.error(o)}})}requestLocalContactCreated$(t,i){return i&&i.hasPhoneNumber(t.phone)?this.contactSearcherService.requestContactByNumber(t.phone):(0,L.of)(it.a3)}Plus=M.FWt;Search=M.vji;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["caller-info"]],inputs:{myCall:"myCall",mode:"mode",callState:"callState",isVideoActive:"isVideoActive"},decls:12,vars:1,consts:[["displayName",""],["avatar",""],["contactActions",""],["phonebookContactLink",""],["callDuration",""],["unknown",""],[1,"call-info"],[1,"callNumber","text-truncate",3,"truncatedText"],[4,"ngTemplateOutlet"],[1,"callNumber","mt-4",3,"truncatedText"],[1,"callNumber",3,"truncatedText"],[1,"callDisplayName","call-info-section"],[1,"callDisplayName","call-info-section","d-flex","align-items-center","justify-content-center","mb-1","gap-1"],[3,"title","class"],[3,"title"],[1,"d-flex","align-items-center","justify-content-center","gap-1"],["data-qa","display-name",3,"truncatedText"],["data-qa","crm-link","target","_blank",1,"pointer",3,"href","title"],[1,"text-underline"],["data-qa","display-name-external",1,"text-truncate"],[3,"translate"],["size","l",3,"ext","newDesign"],[1,"call-info-section","d-flex","flex-column","gap-1","hide-empty"],["data-qa","client-crm-link",1,"action-link","pointer","d-flex","align-items-center","justify-content-center","text-truncate"],["data-qa","add-contact-link",1,"action-link","pointer","d-flex","align-items-center","justify-content-center","text-truncate"],["data-qa","client-crm-link",1,"action-link","pointer","d-flex","align-items-center","justify-content-center","text-truncate",3,"click"],[1,"svg-xxs","me-1"],[3,"img"],[1,"text-truncate"],["data-qa","add-contact-link",1,"action-link","pointer","d-flex","align-items-center","justify-content-center","text-truncate",3,"click"],[1,"svg-xs","me-1"],[1,"d-flex","flex-column","justify-content-center","gap-1","call-info-section"],[1,"callDisplayName","call-info-section","d-flex","align-items-center","justify-content-center","gap-1"],["data-qa","contact-name",3,"truncatedText"],["data-qa","phonebook-contact-link",1,"pointer",3,"click","title"],["data-qa","phonebook-crm-link","target","_blank",1,"pointer",3,"href","title"],["data-qa","display-name-extension",1,"text-truncate"],[1,"call-info-section","d-flex","align-items-center","justify-content-center"],[1,"call-duration",3,"startedAt"]],template:function(i,o){1&i&&(e.nVh(0,yt,4,1)(1,Gt,4,1),e.DNE(2,Wt,4,1,"ng-template",null,0,e.C5r)(4,zt,1,2,"ng-template",null,1,e.C5r)(6,Kt,4,6,"ng-template",null,2,e.C5r)(8,en,3,5,"ng-template",null,3,e.C5r)(10,tn,2,3,"ng-template",null,4,e.C5r)),2&i&&e.vxM(o.isNewDesign()?0:1)},dependencies:[j.T3,F.Mm,lt.U,oe.f,Z.N,M.flO,M.WGl,be._,F.D9,j.Jj],styles:["[_nghost-%COMP%]{min-height:0;display:flex;flex-direction:column;width:100%;align-items:center}.new-design   [_nghost-%COMP%]   .call-info-section[_ngcontent-%COMP%]{margin:4px 0;width:205px}.new-design   [_nghost-%COMP%]   .call-info-section[_ngcontent-%COMP%]   .action-link[_ngcontent-%COMP%]{color:var(--label-color)}.new-design   [_nghost-%COMP%]   .call-info-section[_ngcontent-%COMP%]   .action-link[_ngcontent-%COMP%]:hover{color:var(--text-primary)}.new-design   [_nghost-%COMP%]   .callNumber[_ngcontent-%COMP%]{margin-top:8px;font-size:24px;font-family:Arimo,sans-serif;flex:1 auto;width:240px;text-align:center;min-height:15px}
1.new-design   [_nghost-%COMP%]   .callDisplayName[_ngcontent-%COMP%]{margin-top:4px;min-height:0;font-size:14px;line-height:normal;list-style-type:none;text-align:center}.new-design   [_nghost-%COMP%]   .call-duration[_ngcontent-%COMP%]{margin-top:4px;font-size:12px}.new-design   [_nghost-%COMP%]   .call-duration.video-call[_ngcontent-%COMP%]{font-size:var(--small-font-size);display:flex;align-items:center;justify-content:center}.call-info[_ngcontent-%COMP%]{min-height:0;display:flex;flex-direction:column;justify-self:center;align-items:center;width:100%}.call-info-section[_ngcontent-%COMP%]{width:205px}.callDisplayName[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;min-height:0;font-size:14px;line-height:normal;list-style-type:none;text-align:center}.callNumber[_ngcontent-%COMP%]{font-size:20px;flex:1 auto;width:240px;text-align:center;min-height:35px}.action-link[_ngcontent-%COMP%]{font-size:10px;line-height:10px;color:var(--text-tertiary);--svg-color: currentColor}.action-link[_ngcontent-%COMP%]:hover{text-decoration:underline;transition:.2s;color:var(--text-secondary)}.call-duration[_ngcontent-%COMP%]{font-size:11px;height:15px}"]})}return n})();var on=c(32271),U=c(89417),ve=c(99172),re=c(84572),ye=c(28793),de=c(57786),ae=c(94681),Q=c(5964),an=c(31943),te=c(33971),xe=c(3013),ln=c(19543),sn=c(55645),Pe=c(31755),cn=c(68521),rn=c(9195),dn=c(23773),un=c(42610),pn=c(96106);const mn=["scrollableElement"],Cn=["searchInput"],hn=["*"],_n=(n,u)=>u.number;function fn(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.onBackSpacePressed())}),e.nrm(1,"lucide-icon",11),e.k0s()}if(2&n){const t=e.XpG(),i=e.r8f(1);e.Y8G("disabled",!i),e.R7$(),e.Y8G("img",t.Delete)}}function gn(n,u){if(1&n&&e.nrm(0,"lucide-icon",5),2&n){const t=e.XpG();e.Y8G("img",t.Search)}}function bn(n,u){if(1&n&&(e.nrm(0,"small",16),e.nI1(1,"translate")),2&n){const t=e.XpG().$implicit,i=e.XpG();e.Y8G("truncatedText",e.bMT(1,1,i.isSystemExtension(t)?"_i18n.GroupVoicemail":"_i18n.VoiceMail"))}}function vn(n,u){if(1&n&&(e.nrm(0,"small",16),e.nI1(1,"contactPhoneType"),e.nI1(2,"async"),e.nI1(3,"userProfile"),e.nI1(4,"async")),2&n){const t=e.XpG().$implicit;e.Y8G("truncatedText",e.ai1("",t.number," ",e.bMT(2,6,e.i5U(1,3,t.contact,t.number))||e.bMT(4,10,e.bMT(3,8,t.contact))))}}function yn(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const o=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.contactSelected.emit(o))}),e.nrm(1,"app-avatar",13),e.j41(2,"div",14),e.nrm(3,"small",15),e.nI1(4,"lforfl"),e.nI1(5,"async"),e.nVh(6,bn,2,3,"small",16)(7,vn,5,12,"small",16),e.k0s()()}if(2&n){const t=u.$implicit;e.XpG();const i=e.r8f(0);e.R7$(),e.Y8G("ext",t.contact)("newDesign",i),e.R7$(2),e.Y8G("truncatedText",e.bMT(5,7,e.i5U(4,4,t.contact,t.name))),e.R7$(3),e.vxM(t.isVoicemail?6:7)}}function xn(n,u){if(1&n&&(e.j41(0,"div",8),e.nrm(1,"lucide-icon",17),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("img",t.LoaderCircle)}}function Pn(n,u){if(1&n&&(e.j41(0,"div",9),e.nrm(1,"lucide-icon",18),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("img",t.CircleAlert)("title",u)}}function Mn(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){l.eBV(t);const o=e.XpG(),a=e.r8f(1);return l.Njj(o.directNumberClick(a))}),e.j41(1,"small",19),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&n){e.XpG();const t=e.r8f(1);e.R7$(2),e.Lme("",e.bMT(3,2,"_i18n.Call")," ",t)}}let le=(()=>{class n{contactSearcher=(0,l.WQX)(fe.D);runtimeSearch=(0,l.WQX)(xe.B);myPhoneService=(0,l.WQX)(q.gx);isNewDesign=(0,l.WQX)(z.e);Search=M.vji;Delete=M.epd;CircleAlert=M.H5B;LoaderCircle=M.wmz;scrollableList;searchInput;searchContext=y.hFB.required();searchText=(0,y.hFB)("");searchTextChanged=(0,y.CGW)();contactSelected=(0,y.CGW)();recentCallsLimit=5;callHistorySource=new cn.Ec;displayCallRecentsInDialer$=(0,B.br)((0,dn.I)(un.Hh.DisplayCallRecentsInDialer,!1));recentCalls=(0,B.ot)((0,B.br)(this.isNewDesign).pipe((0,Q.p)(Boolean),(0,N.n)(()=>this.myPhoneService.myPhoneSession),(0,N.n)(t=>this.displayCallRecentsInDialer$.pipe((0,N.n)(i=>i?this.callHistorySource.get(t,rn.r.AllCalls,0,20):(0,L.of)([[],0])))),(0,h.T)(([t])=>{const i=new Set,o=[];for(const a of t)i.has(a.partyNumber)||(i.add(a.partyNumber),o.push(new ae.q({name:a.party,number:a.partyNumber,contact:a.ext}
1)));return o.slice(0,this.recentCallsLimit)}),(0,ve.Z)([]),(0,h.T)(t=>({contacts:t,status:"ok",error:""}))),{initialValue:{contacts:[],status:"ok",error:""}});contactsSearch=(0,B.ot)((0,re.z)([(0,B.br)(this.searchContext),this.runtimeSearch.search$]).pipe((0,N.n)(([t,i])=>(0,ye.x)((0,L.of)({}),(0,P.O)(pn.tN).pipe((0,N.n)(()=>(0,de.h)(this.runtimeSearch.findLocalContacts$(t,i).pipe((0,h.T)(o=>({page:o,type:"contacts"}))),this.runtimeSearch.findCrmContacts$(t,i).pipe((0,h.T)(o=>({page:o,type:"crm"}))))),(0,an.S)((o,{type:a,page:C})=>({...o,[a]:C}),{})))),(0,h.T)(({contacts:t,crm:i})=>({status:i&&t?t?.error||i?.error?"error":"ok":"loading",contacts:[...t?.contacts??[],...i?.contacts??[]],error:t?.error||i?.error||""}))),{initialValue:{contacts:[],status:"loading",error:""}});searchResults=(0,on.EW)(()=>this.searchText()?this.contactsSearch():this.recentCalls());constructor(){(0,l.QZP)(()=>{this.runtimeSearch.search$.next(this.searchText())}),(0,l.QZP)(()=>{this.searchResults().contacts.length&&this.scrollableList?.nativeElement.scrollTo({top:0})})}focus(){this.searchInput.nativeElement.focus()}directNumberClick(t){this.contactSelected.emit(new ae.q({number:t,name:t}))}isSystemExtension(t){return t.contact?.type===ee.eE.SystemExtension}onSearchKeyPressed(t){const i=this.searchInput.nativeElement,o=i.selectionStart??i.value.length,a=(0,s.jk)(i.value,o,i.selectionEnd??o,t);this.searchTextChanged.emit(a),setTimeout(()=>{i.setSelectionRange(o+1,o+1)}),this.focus()}onBackSpacePressed(){const t=this.searchInput.nativeElement,i=t.selectionStart||t.value.length;if(i>0){const o=(0,s.jk)(t.value,i-1,i,"");this.searchTextChanged.emit(o),setTimeout(()=>{t.setSelectionRange(i-1,i-1)})}this.focus()}requestContact(){const t=this.searchText().trim();if(!t)return;const i=(0,te.B9)(t);(i?this.contactSearcher.requestContactByEmail(t,this.searchContext()):this.contactSearcher.requestContactByNumber(t,this.searchContext())).subscribe(a=>{this.contactSelected.emit(new ae.q({name:a.firstNameLastName,number:t,contact:a.isDummy?void 0:a,isEmail:i}))})}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["call-search-list"]],viewQuery:function(i,o){if(1&i&&e.GBs(mn,5)(Cn,7),2&i){let a;e.mGM(a=e.lsd())&&(o.scrollableList=a.first),e.mGM(a=e.lsd())&&(o.searchInput=a.first)}},inputs:{searchContext:[1,"searchContext"],searchText:[1,"searchText"]},outputs:{searchTextChanged:"searchTextChanged",contactSelected:"contactSelected"},features:[e.Jv_([{provide:Pe.b,useExisting:n},xe.B])],ngContentSelectors:hn,decls:16,vars:10,consts:[["searchInput",""],["scrollableElement",""],[1,"search-bar"],["type","text","autocomplete","dialer-call-list-search","spellcheck","false","data-qa","search-input",3,"ngModelChange","placeholder","ngModel"],["data-qa","go-back","type","button",1,"btn","btn-plain","btn-icon",3,"disabled"],[1,"svg-sm",3,"img"],[1,"scrollable"],[1,"search-result","clickable"],[1,"loader-wrapper"],[1,"d-flex","justify-content-center","p-3"],["data-qa","go-back","type","button",1,"btn","btn-plain","btn-icon",3,"click","disabled"],[1,"svg-md","fillIconDefault",3,"img"],[1,"search-result","clickable",3,"click"],["size","xs",3,"ext","newDesign"],[1,"d-flex","flex-column","mw-0"],[3,"truncatedText"],[1,"text-hint",3,"truncatedText"],[1,"icon-spin",3,"img"],[3,"img","title"],[1,"fw-bold","p-1"]],template:function(i,o){if(1&i&&(e.NAR(),e.SS7(0)(1),e.j41(2,"div",2)(3,"input",3,0),e.nI1(5,"translate"),e.bIt("ngModelChange",function(C){return o.searchTextChanged.emit(C)}),e.k0s(),e.nVh(6,fn,2,2,"button",4)(7,gn,1,1,"lucide-icon",5),e.k0s(),e.SdG(8),e.j41(9,"div",6,1),e.Z7z(11,yn,8,9,"div",7,_n),e.nVh(13,xn,2,1,"div",8)(14,Pn,2,2,"div",9)(15,Mn,4,4,"div",7),e.k0s()),2&i){let a;const C=e.bH3(o.isNewDesign());e.R7$();const T=e.bH3(o.searchText()),w=o.searchResults();e.R7$(2),e.Y8G("placeholder",e.bMT(5,8,"_i18n.EnterNameOrNumber"))("ngModel",T),e.R7$(3),e.vxM(C?6:T?-1:7),e.R7$(3),e.AVh("d-none",!C&&!T),e.R7$(2),e.Dyx(w.contacts),e.R7$(2),e.vxM("loading"===w.status?13:(a=w.error)?14:C&&T&&!w.contacts.length?15:-1,a)}},dependencies:[oe.f,Z.N,U.YN,U.me,U.BC,U.vS,M.flO,M.WGl,ln.R,be._,sn.z,F.D9,j.Jj],styles:['[_nghost-%COMP%]{width:100%;display:grid;gap:var(--spacer-xs);grid-template-areas:"search" "other" "list";grid-template-rows:auto auto 1fr;color:var(--text-tertiary);--svg-color: currentColor}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{grid-area:other}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:empty{display:none}[_nghost-%COMP%] >
1 .search-bar[_ngcontent-%COMP%]{grid-area:search;display:flex;width:100%;padding:0 10%;justify-content:center;align-items:center}[_nghost-%COMP%] > .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-family:Arial,serif;font-size:16px;border:none;background:none;outline:none;text-align:center;flex:1}[_nghost-%COMP%] > .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [_nghost-%COMP%] > .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:inherit}[_nghost-%COMP%] > .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:placeholder-shown:not(:hover){caret-color:transparent}[_nghost-%COMP%] > .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus:hover::placeholder{color:transparent}[_nghost-%COMP%] > .search-bar[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] > .scrollable[_ngcontent-%COMP%]{grid-area:list;width:100%;height:105px;position:relative;--svg-size: var(--svg-size-md)}[_nghost-%COMP%] > .scrollable[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:var(--border-radius);gap:var(--spacer-s)}[_nghost-%COMP%] > .scrollable[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]:hover{--current-background: var(--text-tertiary);color:var(--text-tertiary-hover)}[_nghost-%COMP%] > .scrollable[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]   .text-hint[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%]   .loader-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute;top:0;left:0;background:color-mix(in srgb,var(--dialer-bg, var(--bg-tertiary)) 50%,transparent)}.new-design   [_nghost-%COMP%]{grid-template-areas:"search" "other" "list";grid-template-rows:auto auto 1fr;color:var(--text-primary);overflow:hidden}.new-design   [_nghost-%COMP%]   .search-bar[_ngcontent-%COMP%]{padding-top:var(--spacer-s)}.new-design   [_nghost-%COMP%]   .search-bar[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{display:inline-flex;border:none;transition-property:background-color}.new-design   [_nghost-%COMP%]   .search-bar[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{background:var(--dialer-btn-hover)}.new-design   [_nghost-%COMP%]   .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:var(--text-hint)}.new-design   [_nghost-%COMP%]   .scrollable[_ngcontent-%COMP%]{height:unset;display:flex;flex-direction:column;gap:var(--spacer-xs)}.new-design   [_nghost-%COMP%]   .scrollable[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]{padding:var(--spacer-xs)}.new-design   [_nghost-%COMP%]   .scrollable[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]:hover{color:inherit;--current-background: var(--bg-control-hover)}'],changeDetection:0})}return n})();var ue=c(96049),Me=c(13798),pe=c(23294);let Tn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-phone-waveform-sharp-icon"],["","app-phone-waveform-sharp-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["fill","currentColor","d","M480-8v232h-48V-32h48zm80 32v168h-48V0h48zM400 40v136h-48V16h48zm240 32v72h-48V48h48zm-336 72-51.8 51C275 254.2 321.8 301 381 323.8l51-51.8 160 96-80 144h-16C257.4 512 64 318.6 64 80V64l144-80zm111.1 213.5L393 379.9l-29.4-11.3c-71.8-27.7-128.6-84.5-156.2-156.3l-11.3-29.4c14.5-14.3 30.3-29.8 47.3-46.6l-52.7-87.8-78.5 43.6c6.3 202.4 169.2 365.4 371.7 371.7l43.6-78.5-87.8-52.7-24.5 24.9z"]],template:function(i,o){1&i&&(l.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var On=c(30782),Sn=c(71985),In=c(3417),kn=c.n(In);let me=(()=>{class n{el=(0,l.WQX)(e.aKT);srcObject;ngOnChanges(t){t.srcObject&&void 0!==this.srcObject&&(this.el.nativeElement.srcObject=this.srcObject)}static \u0275fac=function(i){return new(i||n)};static \u0275dir=e.FsC({type:n,selectors:[["","srcObject",""]],inputs:{srcObject:"srcObject"},features:[e.OA$]})}return n})();var Y=c(68173),Te=c(43358),wn=c(19859);let Vn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-compress-arrows-alt-regular-icon"],["","app-compress-arrows-alt-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M300 224h136c10.7 0 16-12.9 8.4-20.5l-50.9-51L507.3 38.6c6.2-6.2 6.2-16.4 0-22.6L496 4.7c-6.2-6.2-16.4-6.2-22.6 0L359.5 118.6l-51-51C300.9 60 288 65.3 288 76v136c0 6.6 5.4 12 12 12zm93.4 135.5 51-51c7.5-7.6 2.2-20.5-8.5-20.5H300c-6.6 0-12 5.4-12 12v136c0 10.7 12.9 16 20.5 8.4l51-50.9 113.9 113.9c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6l-113.9-114zM212 288H76c-10.7 0-16 12.9-8.4 20.5l50.9 51L4.7 473.4c-6.2 6.2-6.2 16.4 0 22.6L16 507.3c6.2 6.2 16.4 6.2 22.6 0l113.9-113.9 51 51c7.6 7.5 20.5 2.2 20.5-8.5V300c0-6.
16-5.4-12-12-12zm-93.4-135.5-51 51C60 211.1 65.3 224 76 224h136c6.6 0 12-5.4 12-12V76c0-10.7-12.9-16-20.5-8.4l-51 50.9L38.6 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 16c-6.2 6.2-6.2 16.4 0 22.6l113.9 113.9z"]],template:function(i,o){1&i&&(l.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})(),Nn=(()=>{class n{idle=(0,l.WQX)(Te.vw);state="open";dropClick=(0,y.CGW)();exitFullscreenClick=(0,y.CGW)();onIdleEndSubscription;onIdleStartSubscription;constructor(){const t=this.idle;t.setIdle(3),t.setTimeout(!1),t.setInterrupts(Te.I9),this.onIdleEndSubscription=t.onIdleEnd.subscribe(()=>{this.state="open"}),this.onIdleStartSubscription=t.onIdleStart.subscribe(()=>{this.state="hidden"}),this.idle.watch()}ngOnDestroy(){this.idle.stop(),this.onIdleEndSubscription.unsubscribe(),this.onIdleStartSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["fullscreen-control-buttons"]],hostVars:1,hostBindings:function(i,o){2&i&&e.zvX("@linearAnimation",o.state)},outputs:{dropClick:"dropClick",exitFullscreenClick:"exitFullscreenClick"},decls:4,vars:0,consts:[["type","button",1,"fullScreenBtn",2,"margin-right","10px",3,"click"],["app-phone-alt-solid-icon","",1,"customSVGIcons","svg-xl","fillIconRed",2,"transform","rotate(135deg)"],["type","button",1,"fullScreenBtn",2,"margin-left","10px",3,"click"],["app-compress-arrows-alt-regular-icon","",1,"customSVGIcons","svg-xl","fillIconWhite"]],template:function(i,o){1&i&&(e.j41(0,"button",0),e.bIt("click",function(C){return o.dropClick.emit(C)}),e.nrm(1,"i",1),e.k0s(),e.j41(2,"button",2),e.bIt("click",function(C){return o.exitFullscreenClick.emit(C)}),e.nrm(3,"i",3),e.k0s())},dependencies:[wn.v,Vn],styles:["[_nghost-%COMP%]{display:flex;position:absolute;bottom:50px;left:50%;transform:translate(-50%)}.fullScreenBtn[_ngcontent-%COMP%]:hover{background-color:#000000e6}.fullScreenBtn[_ngcontent-%COMP%]{width:100px;height:100px;background-color:#0000004d;border-radius:50%;border:solid white}"],data:{animation:[(0,Y.hZ)("linearAnimation",[(0,Y.wk)("hidden",(0,Y.iF)({bottom:"-300px"})),(0,Y.wk)("open",(0,Y.iF)({bottom:"50px"})),(0,Y.kY)("open => hidden",(0,Y.i0)("300ms linear")),(0,Y.kY)("hidden => open",(0,Y.i0)("100ms linear"))])]}})}return n})(),Rn=(()=>{class n{transform(t){if(!t)return null;const i=t.getVideoTracks();return 0===i.length?null:new MediaStream(i)}static \u0275fac=function(i){return new(i||n)};static \u0275pipe=e.EJ8({name:"videoOnly",type:n,pure:!0})}return n})();const Gn=["container"];function An(n,u){1&n&&e.nrm(0,"i",3)}function jn(n,u){if(1&n&&(e.nrm(0,"video",4),e.nI1(1,"async"),e.nI1(2,"videoOnly")),2&n){const t=e.XpG();e.Y8G("srcObject",e.bMT(2,3,e.bMT(1,1,null==t.media?null:t.media.remoteStream$)))}}function Dn(n,u){if(1&n&&(e.nrm(0,"video",6),e.nI1(1,"videoOnly")),2&n){const t=e.XpG();e.HbH(e.VkB("mirrorVideo ",t.media.isVideoReceived?"homeVideo":"awayVideo")),e.Y8G("srcObject",e.bMT(1,4,null==t.media?null:t.media.localStream))}}function $n(n,u){if(1&n){const t=e.RV6();e.j41(0,"fullscreen-control-buttons",7),e.bIt("dropClick",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.drop())})("exitFullscreenClick",function(o){l.eBV(t);const a=e.XpG();return l.Njj(a.exitFullscreen(o))}),e.k0s()}}function Oe(n){return!!n&&n.getVideoTracks().some(u=>!u.muted)}let En=(()=>{class n{cd=(0,l.WQX)(y.gRc);router=(0,l.WQX)(r.Ix);media=On.d;backgroundColor="";container;dropClick=(0,y.CGW)();isFullscreen=!1;fs;isVideoActive$=(0,L.of)(!1);isAudioOnly(){return!this.media.isNegotiationInProgress&&!this.media.isVideoReceived}drop(){this.dropClick.emit(!0)}exitFullscreen(t){t.stopPropagation(),this.removeFullscreen()}openFullscreen(t){if(t.shiftKey)this.router.navigate(["/webrtc",this.media.lastWebRTCState.Id]);else try{this.fs.request()}catch{}}ngAfterViewInit(){this.fs=kn()(this.container.nativeElement),this.fs.on("attain",()=>{this.isFullscreen=!0,this.cd.markForCheck()}),this.fs.on("release",()=>{this.isFullscreen=!1,this.cd.markForCheck()})}ngOnDestroy(){this.removeFullscreen()}removeFullscreen(){if(this.isFullscreen)try{this.fs&&this.fs.release()}catch{}}ngOnChanges(t){t.media&&(this.removeFullscreen(),this.isVideoActive$=this.media?this.media.remoteStream$.pipe((0,N.n)(i=>i?new Sn.c(o=>{const a=()=>o.next(Oe(i));
1return i.getTracks().forEach(C=>{C.onmute=a,C.onunmute=a}),()=>{}}).pipe((0,ve.Z)(Oe(i))):(0,L.of)(!1))):(0,L.of)(!1))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["video-output"]],viewQuery:function(i,o){if(1&i&&e.GBs(Gn,5),2&i){let a;e.mGM(a=e.lsd())&&(o.container=a.first)}},inputs:{media:"media",backgroundColor:"backgroundColor"},outputs:{dropClick:"dropClick"},features:[e.OA$],decls:7,vars:11,consts:[["container",""],[3,"click"],[1,"position-relative","w-100","h-100"],[1,"fa","fa-volume-up","fa-2x",2,"position","absolute","left","50%","top","50%","margin-left","-10px","margin-top","-10px"],["autoplay","","playsinline","",1,"awayVideo",3,"srcObject"],["autoplay","","playsinline","",3,"class","srcObject"],["autoplay","","playsinline","",3,"srcObject"],[3,"dropClick","exitFullscreenClick"]],template:function(i,o){1&i&&(e.j41(0,"div",1,0),e.bIt("click",function(C){return o.openFullscreen(C)}),e.j41(2,"div",2),e.nVh(3,An,1,0,"i",3),e.nVh(4,jn,3,5,"video",4),e.nVh(5,Dn,2,6,"video",5),e.nVh(6,$n,1,0,"fullscreen-control-buttons"),e.k0s()()),2&i&&(e.HbH(e.VkB("w-100 ",o.isFullscreen?"containerFullscreen":"containerNormal")),e.R7$(2),e.xc7("background-color",o.backgroundColor||"#222121"),e.AVh("toaster-inner",!o.isFullscreen),e.R7$(),e.vxM(o.isAudioOnly()?3:-1),e.R7$(),e.vxM(o.media.isVideoReceived||!o.media.isVideoSend?4:-1),e.R7$(),e.vxM(o.media.isVideoSend?5:-1),e.R7$(),e.vxM(o.isFullscreen?6:-1))},dependencies:[me,Nn,j.Jj,Rn],styles:[".containerFullscreen[_ngcontent-%COMP%]{width:100%;height:100%}.awayVideo[_ngcontent-%COMP%]{width:100%;height:inherit}.homeVideo[_ngcontent-%COMP%]{max-width:256px;width:25%;position:absolute;bottom:10px;right:10px}.mirrorVideo[_ngcontent-%COMP%]{transform:rotateY(180deg);-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg)}.new-design[_nghost-%COMP%], .new-design   [_nghost-%COMP%]{.containerNormal{height:100%}.awayVideo{width:100%;height:100%;object-fit:contain;background-color:var(--dialer-bg)}}"]})}return n})();var Se=c(13220),Ie=c(35606);const Fn=(n,u)=>u.myCallId;function Bn(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.bIt("click",function(){l.eBV(t);const o=e.XpG().$implicit,a=e.XpG();return l.Njj(a.setPrimaryCall(o))}),e.nrm(1,"app-avatar",4),e.j41(2,"div",5),e.nrm(3,"span",6)(4,"span",7),e.nI1(5,"translate"),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG();e.AVh("call-item--active",t.myCallId===(i.activeCall?i.activeCall.myCallId:-1)),e.R7$(),e.Y8G("ext",t.contact)("newDesign",i.isNewDesign()),e.R7$(2),e.Y8G("truncatedText",i.callerName(t)),e.R7$(),e.Y8G("truncatedText",e.bMT(5,6,i.getStateName(t)))}}function Xn(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){l.eBV(t);const o=e.XpG().$implicit,a=e.XpG();return l.Njj(a.setPrimaryCall(o))}),e.nrm(1,"div",9)(2,"div",7),e.nI1(3,"translate"),e.k0s()}if(2&n){const t=e.XpG().$implicit,i=e.XpG();e.AVh("primary-active-call-item",t.myCallId===(i.activeCall?i.activeCall.myCallId:-1)),e.R7$(),e.Y8G("truncatedText",i.callerName(t)),e.R7$(),e.Y8G("truncatedText",e.bMT(3,4,i.getStateName(t)))}}function Ln(n,u){if(1&n&&e.nVh(0,Bn,6,8,"div",1)(1,Xn,4,6,"div",2),2&n){const t=e.XpG();e.vxM(t.isNewDesign()?0:1)}}let Yn=(()=>{class n{dialerService=(0,l.WQX)(v.$);callService=(0,l.WQX)(V.z);isNewDesign=(0,l.WQX)(z.e);calls;activeCall;isVideoActive=!1;callerName(t){const i=[...new Set((t.displayName??"").split(":").filter(Boolean))];return i.join(":")+(i.includes(t.phone)?"":` ${t.phone}`)}setPrimaryCall(t){t.isRinging?this.dialerService.setPrimaryCall(t.myCallId):this.callService.resume(t)}getStateName(t){return(0,s.VR)(t)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["calls-bar"]],inputs:{calls:"calls",activeCall:"activeCall",isVideoActive:"isVideoActive"},decls:3,vars:2,consts:[[1,"active-calls-bar"],[1,"call-item",3,"call-item--active"],[1,"active-call-item",3,"primary-active-call-item"],[1,"call-item",3,"click"],["size","xs",3,"ext","newDesign"],[1,"call-item-info"],[1,"call-item-name",3,"truncatedText"],[1,"call-item-status",3,"truncatedText"],[1,"active-call-item",3,"click"],[1,"call-item-display-name",3,"truncatedText"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.Z7z(1,Ln,2,1,null,null,Fn),e.k0s()),2&i&&(e.AVh("video-call",o.isVideoActive),e.R7$(),e.Dyx(o.calls))},dependencies:[oe.f,Z.N,F.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative;width:100%}
1[_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;max-height:75px;overflow:auto}[_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .active-call-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:63% 34%;column-gap:1%;width:100%;font-size:var(--small-font-size);height:25px;min-height:25px;align-content:center;padding:0 18px;color:var(--text-tertiary)}[_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .active-call-item[_ngcontent-%COMP%]   .call-item-display-name[_ngcontent-%COMP%]{align-self:center;width:100%}[_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .active-call-item[_ngcontent-%COMP%]   .call-item-status[_ngcontent-%COMP%]{align-self:center;justify-self:end;text-align:end;width:100%}[_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .active-call-item[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:.7;transition:.2s}[_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .primary-active-call-item[_ngcontent-%COMP%]{background-color:var(--text-tertiary);color:var(--text-tertiary-hover)}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;max-height:175px;padding:0 2px 0 8px}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]{display:flex;gap:8px;padding:5px;border-radius:var(--bs-border-radius);cursor:pointer}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]:hover{background-color:var(--bg-control-hover)}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .call-item--active[_ngcontent-%COMP%]{background-color:var(--bg-control-hover)}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--text-tertiary-primary);min-width:0}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-item-info[_ngcontent-%COMP%]   .call-item-name[_ngcontent-%COMP%]{font-size:var(--small-font-size);line-height:16px}.new-design   [_nghost-%COMP%]   .active-calls-bar[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-item-info[_ngcontent-%COMP%]   .call-item-status[_ngcontent-%COMP%]{font-size:var(--small-font-size);line-height:16px;color:var(--text-hint)}.new-design   [_nghost-%COMP%]   .active-calls-bar.video-call[_ngcontent-%COMP%]{padding:0 8px;margin-top:41px;max-height:88px}"]})}return n})();const Wn=["callContent"],zn=["callButtons"],Un=()=>({backdropBackgroundColour:"transparent"});function Qn(n,u){if(1&n){const t=e.RV6();e.j41(0,"call-search-list",6),e.bIt("searchTextChanged",function(o){l.eBV(t);const a=e.XpG();return l.Njj(a.searchNumberChanged(o))})("contactSelected",function(o){l.eBV(t);const a=e.XpG();return l.Njj(a.onContactSelected(o))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("searchText",t.searchNumber)("searchContext",t.inCallSearchContext())}}function Kn(n,u){if(1&n&&e.nrm(0,"calls-bar",7),2&n){const t=e.XpG(2);e.Y8G("calls",t.calls)("activeCall",t.myCall)("isVideoActive",t.isVideoActive)}}function Hn(n,u){if(1&n&&(e.j41(0,"small",9),e.nrm(1,"app-phone-waveform-sharp-icon",10),e.EFF(2),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("title",t.myCall.callScreening),e.R7$(2),e.SpI(" ",t.myCall.callScreening," ")}}function Jn(n,u){if(1&n&&(e.nVh(0,Kn,1,3,"calls-bar",7),e.nrm(1,"caller-info",8),e.nI1(2,"translate"),e.nV
1h(3,Hn,3,2,"small",9)),2&n){const t=e.XpG(),i=e.r8f(0);e.vxM(i&&t.calls.size>1?0:-1),e.R7$(),e.Y8G("myCall",t.myCall)("mode",t.getCallInfoMode())("isVideoActive",t.isVideoActive)("callState",e.bMT(2,6,t.getStateName())),e.R7$(2),e.vxM(t.myCall.isRinging&&t.myCall.callScreening?3:-1)}}function Zn(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"video-output",11),e.bIt("dropClick",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.callsService.drop(o.myCall))}),e.k0s(),e.nrm(2,"ngx-loading",12),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("media",t.myCall.media),e.R7$(),e.Y8G("show",t.isLoadingVisible(t.myCall))("config",e.lJ4(3,Un))}}let ke=(()=>{class n{isNewDesign=(0,l.WQX)(z.e);callsService=(0,l.WQX)(V.z);dialerService=(0,l.WQX)(v.$);utilityService=(0,l.WQX)(s.vQ);callContent;callButtons;searchList;myCall;calls;inCallKeyPadVisible=(0,y.CGW)();conferenceActionsVisible=(0,y.CGW)();inCallSearchVisible=(0,y.CGW)();LocalConnectionState=_.Tll;isInCallKeyPadVisible=!1;areConferenceActionsVisible=!1;inCallSearchAction=s.GS.None;isVideoVisible=!0;dialpadkeys=["0","1","2","3","4","5","6","7","8","9","*","#"];searchNumber="";activeCallChangedSubscription;stealFocusSubscription;dialerActionSubscription;queryPhoneNumberSubscription;focusWithDelay$=new b.B;ngOnInit(){this.queryPhoneNumberSubscription=this.dialerService.queryPhoneNumber$.pipe((0,Q.p)(Boolean)).subscribe(t=>{this.utilityService.isDialing(this.myCall)||(this.isVideoVisible=!1,this.isInCallSearchVisible()||this.onInCallSearchActionChange(s.GS.NewCall,!0),setTimeout(()=>{this.searchNumberChanged(t)}))}),this.activeCallChangedSubscription=this.dialerService.activeCall$.pipe((0,Q.p)(t=>!!t),(0,pe.F)((t,i)=>t?.myCallId===i?.myCallId)).subscribe(()=>{this.resetView()}),this.stealFocusSubscription=this.focusWithDelay$.pipe((0,Me.Z)(350)).subscribe(()=>{this.focusImmediate()}),this.dialerActionSubscription=this.dialerService.dialerActionEmitted$.subscribe(t=>{this.onDialerAction(t)}),this.dialerService.setSearchAction(s.GS.None)}onDialerAction(t){this.myCall.state===_.Tll.Connected&&"newCall"===t.action&&(this.isVideoVisible=!1,this.onInCallSearchActionChange(s.GS.NewCall,!0),t.number&&this.searchNumberChanged(t.number))}ngOnDestroy(){this.activeCallChangedSubscription.unsubscribe(),this.stealFocusSubscription.unsubscribe(),this.dialerActionSubscription.unsubscribe(),this.dialerService.setSearchAction(s.GS.None),this.queryPhoneNumberSubscription.unsubscribe()}resetView(){this.onInCallSearchActionChange(s.GS.None,!1),this.onInCallKeyPadVisibilityChange(!1,!1),this.onConferenceActionsVisibilityChange(!1,!1),this.isVideoVisible=!0}onKeyDown(t){if("Enter"===t.key||"Escape"===t.key){if(this.myCall.isTrying)return;const o=this.myCall.isWebRtcBrowserAgent&&this.myCall.state===_.Tll.Dialing&&this.myCall.media.lastWebRTCState.sdpType!==_.Pqd.WRTCAnswerProvided&&this.myCall.media.lastWebRTCState.sdpType!==_.Pqd.WRTCConfirmed;this.myCall.state===_.Tll.Ringing?"Enter"===t.key?this.callsService.answer(this.myCall,!1):"Escape"===t.key&&this.callsService.drop(this.myCall):o?this.callsService.drop(this.myCall):this.isInCallSearchVisible()?"Enter"===t.key?this.onSearchActionFired():"Escape"===t.key&&(ce.Q.isNullOrEmpty(this.searchNumber)?this.onInCallSearchActionChange(s.GS.None):this.searchNumberChanged("")):this.callsService.drop(this.myCall)}else this.dialpadkeys.includes(t.key)&&(this.isInCallKeyPadVisible&&this.callButtons.canSendDtmf()?(this.callButtons.playDtmfSound(t.key),this.callsService.sendDtmf(this.myCall,t.key)):this.isInCallSearchVisible()&&this.callButtons.playDtmfSound(t.key))}focus(){this.focusWithDelay$.next()}focusImmediate(){(this.searchList??this.callContent.nativeElement).focus()}isLoadingVisible(t){return t.media.isNegotiationInProgress||t.state!==_.Tll.Connected}onInCallKeyPadVisibilityChange(t,i=!0){this.isInCallKeyPadVisible=t,this.inCallKeyPadVisible.emit(t),i&&this.focus()}onConferenceActionsVisibilityChange(t,i=!0){this.areConferenceActionsVisible=t,this.conferenceActionsVisible.emit(t),i&&this.focus()}isInCallSearchVisible(){return this.inCallSearchAction!==s.GS.None}onInCallSearchActionChange(t,i=!0){this.inCallSearchAction=t,this.inCallSearchVisible.emit(this.isInCallSearchVisible()),i&&this.focus(),this.searchNumberChanged(""),this.dialerService.setSearchAction(t)}OnVideoVisibilityChange(t){this.isVideoVisible=t,this.focus()}getCallInfoMode(){return this.isInCallKeyPadVisible?H.InCallKeyPad:this.areConferenceActionsVisible?H.Normal:this.calls.size>1?H.OnlyDuration:H.Normal}getCallButtonsType(){const t=this.myCall;return t.state===_.Tll.Ringing||t.state===_.Tll.Dialing&&t.isWebRtcBrowserAgent&&t.isPushCall?X.IncomingCallActions:this.isInCallSearchVisible()?X.InCallSearchContactActions:this.isInCallKeyPadVisible?X.InCallKeyPadActions:this.areConferenceActionsVisible?X.ConferenceCallActions:this.isVideoActive?X.VideoCallActions:X.EstablishedCallActions}getStateName(){return(0,s.VR)(this.myCall)}get isVideoActive(){return this.isVideoVisible&&this.utilityService.isVideoActive(this.myCall)}onContactSelected(t){if(t instanceof ae.q)switch(this.inCallSearchAction){case s.GS.Transfer:this.callsService.transfer(this.myCall,t);break;case s.GS.AttTransfer:this.callsService.attTransfer(this.myCall,t);break;case s.GS.NewCall:{const i=(0,te.t9)(t.number);i&&this.dialerService.makeCall(i);break}case s.GS.Conference:this.callsService.conference(this.myCall,t);break;case s.GS.AttConference:this.callsService.attendedConference(this.myCall,t)}this.onInCallSearchActionChange(s.GS.None)}searchNumberChanged(t){this.searchNumber=t}defaultSearchContext=ue.o.default();headerSearchContext=ue.o.headerSearch();inCallSearchContext(){switch(this.inCallSearchAction){case s.GS.NewCall:case s.GS.Conference:case s.GS.AttConference:return this.headerSearchContext;default:return this.defaultSearchContext}}onSearchKeyPressed(t){this.searchList?.onSearchKeyPressed(t)}onSearchActionFired(){this.searchList?.requestContact()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["call-view"]],viewQuery:function(i,o){if(1&i&&e.GBs(Wn,5)(zn,5)(le,5),2&i){let a;
1e.mGM(a=e.lsd())&&(o.callContent=a.first),e.mGM(a=e.lsd())&&(o.callButtons=a.first),e.mGM(a=e.lsd())&&(o.searchList=a.first)}},hostBindings:function(i,o){1&i&&e.bIt("keydown",function(C){return o.onKeyDown(C)})},inputs:{myCall:"myCall",calls:"calls"},outputs:{inCallKeyPadVisible:"inCallKeyPadVisible",conferenceActionsVisible:"conferenceActionsVisible",inCallSearchVisible:"inCallSearchVisible"},decls:8,vars:8,consts:[["callContent",""],["callButtons",""],["tabindex","0",1,"d-flex","flex-1","flex-column","gap-2","w-100","overflow-hidden"],["wcAutofocus","",1,"flex-child",3,"searchText","searchContext"],[1,"video-wrapper"],[3,"inCallKeyPadVisibilityChange","conferenceActionsVisibilityChange","inCallSearchActionChange","videoVisibilityChange","searchKeyPressed","searchActionFired","callActionFired","myCall","type","searchTextPopulated"],["wcAutofocus","",1,"flex-child",3,"searchTextChanged","contactSelected","searchText","searchContext"],[3,"calls","activeCall","isVideoActive"],[3,"myCall","mode","isVideoActive","callState"],[1,"call-screening","scrollable",3,"title"],[1,"svg-xs","me-1"],["backgroundColor","transparent",3,"dropClick","media"],[3,"show","config"]],template:function(i,o){if(1&i&&(e.SS7(0),e.j41(1,"div",2,0),e.nVh(3,Qn,1,2,"call-search-list",3)(4,Jn,4,8),e.nVh(5,Zn,3,4,"div",4),e.k0s(),e.j41(6,"call-buttons",5,1),e.bIt("inCallKeyPadVisibilityChange",function(C){return o.onInCallKeyPadVisibilityChange(C)})("conferenceActionsVisibilityChange",function(C){return o.onConferenceActionsVisibilityChange(C)})("inCallSearchActionChange",function(C){return o.onInCallSearchActionChange(C)})("videoVisibilityChange",function(C){return o.OnVideoVisibilityChange(C)})("searchKeyPressed",function(C){return o.onSearchKeyPressed(C)})("searchActionFired",function(){return o.onSearchActionFired()})("callActionFired",function(){return o.focus()}),e.k0s()),2&i){const a=o.isInCallSearchVisible(),C=e.bH3(!a&&!o.isInCallKeyPadVisible&&!o.areConferenceActionsVisible);e.R7$(),e.AVh("justify-content-center",o.isNewDesign()&&C&&1===o.calls.size),e.R7$(2),e.vxM(a?3:4),e.R7$(2),e.vxM(o.utilityService.isWebRTCCall(o.myCall)&&o.isVideoActive?5:-1),e.R7$(),e.Y8G("myCall",o.myCall)("type",o.getCallButtonsType())("searchTextPopulated",!!o.searchNumber)}},dependencies:[nn,U.X1,U.YN,le,En,Se.kq,Se.bt,qe,Tn,Ie.J,Yn,F.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:var(--spacer-s);width:100%;height:100%;overflow:hidden;align-items:stretch;color:var(--text-secondary)}.call-screening[_ngcontent-%COMP%]{padding:var(--spacer-s) calc(var(--spacer-s) * 1.5);margin:var(--spacer-xs);background:var(--dialer-screen, rgba(0, 0, 0, .1019607843));border-radius:15px;white-space:pre-wrap;word-break:break-word;max-height:150px}.video-wrapper[_ngcontent-%COMP%]{position:relative;min-height:170px}.new-design   [_nghost-%COMP%]{color:var(--text-primary);padding-top:var(--spacer)}.new-design   [_nghost-%COMP%]   .call-screening[_ngcontent-%COMP%]{border-radius:var(--border-radius)}"]})}return n})();var qn=c(70274),ne=c(983),ei=c(99437),W=c(97992),ti=c(86908),ni=c(60889),we=c(98866),ii=c(95195);const oi=c.p+"media/Alerting-ea2d6631.mp3",ai=c.p+"media/Tweeting-8f44015d.mp3",li=c.p+"media/Ringtone-85a3993e.mp3";var se=c(90558),si=c(53805),ci=c(17855),ri=c(42181),Ve=c(20284),di=c(33726),Ne=c(19724);const ui=["sink"];let pi=(()=>{class n{modalService=(0,l.WQX)(ge.B);loop=!1;sink=ne.w;src;srcObject;audioSink;sinkSubscriber;ngOnInit(){this.sinkSubscriber=(0,di.R)(this.audioSink.nativeElement,"loadeddata").pipe((0,N.n)(i=>(0,re.z)([this.sink.pipe((0,pe.F)()),(0,L.of)(i.target).pipe((0,Q.p)(Boolean))])),(0,N.n)(([i,o])=>{if(i.labelId&&i.media){const a=i.labelId;return(0,Ne.H)(navigator.mediaDevices.enumerateDevices()).pipe((0,h.T)(C=>(0,A.C7)(C,"audiooutput",a)),(0,N.n)(C=>C.media?(0,Ne.H)(o.setSinkId(C.media.deviceId)):ne.w))}return ne.w})).subscribe({error:i=>{this.modalService.error(i)}})}ngOnDestroy(){this.sinkSubscriber?.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["audio-sink"]],viewQuery:function(i,o){if(1&i&&e.GBs(ui,7),2&i){let a;e.mGM(a=e.lsd())&&(o.audioSink=a.first)}},inputs:{loop:"loop",sink:"sink",src:"src",srcObject:"srcObject"},decls:2,vars:3,consts:[["sink",""],["autoplay","",3,"loop","src","srcObject"]],template:function(i,o){1&i&&e.nrm(0,"audio",1,0),2&i&&e.Y8G("loop",o.loop)("src",o.src)("srcObject",o.srcObject)},dependencies:[me],encapsulation:2})}return n})(),mi=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-phone-circle-green-background-custom-icon"],["","app-phone-circle-green-background-custom-icon",""]],decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 39 39"],["fill","var(--make-call)","d","M19.5 0C8.7 0 0 8.7 0 19.5S8.7 39 19.5 39 39 30.3 39 19.5 30.3 0 19.5 0zm8.4 27.2-.8.7c-.2.2-.5.4-.7.6-.9.6-1.8.9-3.1.4-6.5-2.6-10.7-7.1-12.7-13.8-.5-1.7 0-2.9 1.3-3.9l1-.9c.6-.7 1.1-.6 1.7.2.8 1 1.5 2 2.1 3.1.7 1.1.7 1.4-.4 2l-1.3.6c-.4.4-.2.9.2 1.4 1.6 2.5 3.5 4.7 5.9 6.4.6.4 1 .6 1.5.1l.7-.9c.7-1.1 1-1.2 2-.4 1 .7 1.9 1.5 2.8 2.4.7.9.7 1.2-.2 2z"],["fill","#FFF","d","M25.2 22.9c-1-.8-1.3-.7-2 .4l-.7.9c-.5.5-.9.3-1.5-.1-2.4-1.8-4.3-3.9-5.9-6.4-.3-.5-.5-1-.2-1.4l1.2-.8c1.1-.5 1.1-.9.4-2-.7-1.1-1.4-2.1-2.1-3.1-.6-.8-1.1-.8-1.7-.2l-1 .9c-1.3 1-1.8 2.2-1.3 3.9 2 6.7 6.2 11.3 12.7 13.8 1.3.5 2.2.3 3.1-.4.2-.2.5-.4.7-.6l.8-.7c.9-.8.9-1.1 0-1.9-.6-.8-1.5-1.
16-2.5-2.3z"]],template:function(i,o){1&i&&(l.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1)(2,"path",2),e.eux())},encapsulation:2})}return n})(),Ci=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-phone-circle-red-background-custom-icon"],["","app-phone-circle-red-background-custom-icon",""]],decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 39 39"],["fill","var(--terminate-call)","d","M19.5 0C8.7 0 0 8.7 0 19.5S8.7 39 19.5 39 39 30.3 39 19.5 30.3 0 19.5 0zM29 23.3c-1.2-.1-2.3-.2-3.5-.4-1.2-.2-1.4-.4-1.1-1.5l.2-1.4c-.1-.5-.5-.7-1.1-.8-2.7-.5-5.5-.5-8.2.1-.6.1-1.1.3-1 1l.2 1c.4 1.2.2 1.4-1 1.7-1.1.2-2.3.4-3.4.5-1.1.1-1.3-.1-1.3-1.3v-2c.1-1 .6-1.8 1.7-2.4 5.9-2.9 11.8-3 17.7-.2 1.5.7 2.1 1.8 2 3.3v1.3c.1.9-.2 1.2-1.2 1.1z"],["fill","#FFF","d","M30.2 21c.1-1.5-.4-2.6-2-3.3-6-2.8-11.8-2.7-17.7.2-1.1.6-1.6 1.4-1.7 2.4v2c0 1.1.2 1.3 1.3 1.3 1.1-.1 2.3-.3 3.4-.5 1.2-.2 1.3-.5 1-1.7l-.2-1c-.1-.7.4-.9 1-1 2.7-.5 5.5-.6 8.2-.1.6.1 1 .3 1.1.8l-.2 1.4c-.3 1.1-.1 1.3 1.1 1.5 1.2.2 2.3.3 3.5.4.9.1 1.3-.2 1.2-1.1V21z"]],template:function(i,o){1&i&&(l.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1)(2,"path",2),e.eux())},encapsulation:2})}return n})();const hi=(n,u)=>u.myCallId;function _i(n,u){if(1&n&&e.nrm(0,"span",13),2&n){const t=u.$implicit;e.XpG(2);const i=e.r8f(0);e.AVh("h5",i),e.Y8G("truncatedText",t)}}function fi(n,u){1&n&&e.nrm(0,"small",5),2&n&&e.Y8G("truncatedText",u)}function gi(n,u){if(1&n&&(e.j41(0,"small",6),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.Y8G("title",t.callScreening),e.R7$(),e.JRh(t.callScreening)}}function bi(n,u){if(1&n&&e.nrm(0,"lucide-icon",9),2&n){const t=e.XpG(2);e.Y8G("img",t.Phone)}}function vi(n,u){1&n&&e.nrm(0,"app-phone-circle-green-background-custom-icon")}function yi(n,u){if(1&n&&e.nrm(0,"lucide-icon",9),2&n){const t=e.XpG(2);e.Y8G("img",t.PhoneOff)}}function xi(n,u){1&n&&e.nrm(0,"app-phone-circle-red-background-custom-icon")}function Pi(n,u){if(1&n){const t=e.RV6();e.j41(0,"div",0)(1,"div",1),e.nrm(2,"app-avatar",2),e.j41(3,"div",3),e.Z7z(4,_i,1,3,"span",4,e.fX1),e.nVh(6,fi,1,1,"small",5),e.k0s()(),e.nVh(7,gi,2,2,"small",6),e.j41(8,"div",7)(9,"button",8),e.bIt("click",function(){const o=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.callsService.answer(o,!1))}),e.nVh(10,bi,1,1,"lucide-icon",9)(11,vi,1,0,"app-phone-circle-green-background-custom-icon"),e.nrm(12,"span",10),e.nI1(13,"translate"),e.k0s(),e.j41(14,"button",11),e.bIt("click",function(){const o=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.callsService.drop(o))}),e.nVh(15,yi,1,1,"lucide-icon",9)(16,xi,1,0,"app-phone-circle-red-background-custom-icon"),e.nrm(17,"span",10),e.nI1(18,"translate"),e.k0s(),e.j41(19,"button",12),e.nI1(20,"translate"),e.bIt("click",function(){const o=l.eBV(t).$implicit,a=e.XpG();return l.Njj(a.callsService.divertToVoicemail(o))}),e.nrm(21,"lucide-icon",9),e.k0s()()()}if(2&n){let t;const i=u.$implicit,o=e.XpG(),a=e.r8f(0);e.R7$(2),e.Y8G("ext",i.contact)("newDesign",a),e.R7$(2),e.Dyx(o.callerNameParts(i)),e.R7$(2),e.vxM((t=o.callerNumber(i))?6:-1,t),e.R7$(),e.vxM(i.isRinging&&i.callScreening?7:-1),e.R7$(2),e.Y8G("disabled",!i.isAnswerEnabled),e.R7$(),e.vxM(o.isNewDesign()?10:11),e.R7$(2),e.Y8G("truncatedText",e.bMT(13,13,"_i18n.Answer")),e.R7$(2),e.Y8G("disabled",i.isTrying),e.R7$(),e.vxM(o.isNewDesign()?15:16),e.R7$(2),e.Y8G("truncatedText",e.bMT(18,15,"_i18n.Decline")),e.R7$(2),e.Y8G("disabled",!o.vmailEnabled())("title",e.bMT(20,17,"_i18n.SendToVmail")),e.R7$(2),e.Y8G("img",a?o.Voicemail:o.Mail)}}let Mi=(()=>{class n{callsService=(0,l.WQX)(V.z);myPhoneService=(0,l.WQX)(q.gx);isNewDesign=(0,l.WQX)(z.e);vmailEnabled=(0,B.ot)(this.myPhoneService.vmailEnabled$);Phone=M.bcf;PhoneOff=M.Q3b;Mail=M.gE4;Voicemail=M.c2U;calls;callerNameParts(t){return[...new Set((t.displayName??"").split(":").filter(Boolean))]}callerNumber(t){return this.callerNameParts(t).includes(t.phone)?"":t.phone}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["multiple-incoming-calls"]],inputs:{calls:"calls"},decls:3,vars:1,consts:[[1,"call-item"],[1,"caller-info"],[3,"ext","newDesign"],[1,"d-flex","flex-column","minw-0","align-self-center"],[1,"m-0",3,"h5","truncatedText"],["data-qa","caller-number",3,"truncatedText"],[1,"call-screening","scrollable",3,"title"],[1,"call-actions"],["type","button","data-qa","answer",1,"btn","btn-plain-sm","answer",3,"click","disabled"],[3,"img"],[3,"truncatedText"],["type","button","data-qa","decline",1,"btn","btn-plain-sm","decline",3,"click","disabled"],["type","button","data-qa","divert",1,"btn","btn-plain-sm","btn-icon",3,"click","disabled","title"],[1,"m-0",3,"truncatedText"]],template:function(i,o){1&i&&(e.SS7(0),e.Z7z(1,Pi,22,19,"div",0,hi)),2&i&&(e.bH3(o.isNewDesign()),e.R7$(),e.Dyx(o.calls))},dependencies:[oe.f,mi,Ci,Z.N,M.flO,M.WGl,F.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;overflow-y:auto;align-items:stretch;color:var(--text-secondary)}[_nghost-%COMP%]   .call-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:var(--spacer-s);gap:var(--spacer-xs);border:0 solid color-mix(in srgb,var(--border-color) 50%,transparent);overflow:hidden;flex-shrink:0}[_nghost-%COMP%]   .call-item[_ngcontent-%COMP%]:not(:last-child){border-bottom-width:1px}[_nghost-%COMP%]   .caller-info[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .caller-info[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%]   .call-screening[_ngcontent-%COMP%]{padding:var(--spacer-s) var(--spacer-semi-medium);background:var(--dialer-screen, rgba(0, 0, 0, .1019607843));border-radius:var(--border-radius);white-space:pre-wrap;word-break:break-word;max-height:100px}[_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]{display:flex;--svg-size: var(--svg-size-lg);--svg-color: currentColor}[_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{--btn-icon-size: 32px;height:var(--btn-icon-size);color:inherit;border:none}[_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{background-color:var(--text-tertiary);color:var(--text-tertiary-hover)}[_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:not(.btn-icon){flex:1 1 auto}.new-design   [_nghost-%COMP%]{color:var(--text-primary);margin:var(--spacer) calc(var(--spacer) * -1) 0;width:var(--dialer-main-width)}.new-design   [_nghost-%COMP%]   .call-item[_ngcontent-%COMP%]{padding:var(--spacer);gap:var(--spacer);border-color:var(--border-color)}.new-design   [_nghost-%COMP%]   .call-item[_ngcontent-%COMP%]:first-child{padding-top:0}.new-design   [_nghost-%COMP%]   .call-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.new-design   [_nghost-%COMP%]   .caller-info[_ngcontent-%COMP%]{gap:var(--spacer-s)}.new-design   [_nghost-%COMP%]   .caller-info[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:var(--font-size);color:var(--text-hint)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]{gap:var(--spacer-s)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border-radius:var(--btn-icon-size);background:var(--dialer-btn);--svg-size: var(--svg-size-sm)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{color:inherit;background:var(--dialer-btn-hover)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn.decline[_ngcontent-%COMP%]{background:var(--terminate-call);color:var(--text-secondary)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn.decline[_ngcontent-%COMP%]:hover{color:var(--text-secondary);background:var(--terminate-call-hover)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn.answer[_ngcontent-%COMP%]{background:var(--make-call);color:var(--text-secondary)}.new-design   [_nghost-%COMP%]   .call-actions[_ngcontent-%COMP%]   .btn.answer[_ngcontent-%COMP%]:hover{color:var(--text-secondary);background:var(--make-call-hover)}"]})}return n})();var Ti=c(44668),Ce=c(58664);let Oi=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-backspace-regular-icon"],["","app-backspace-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","m469.65 181.65-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0L384 222.06l-51.72-51.72c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L350.06 256l-51.72 51.72c-6.25 6.25-6.25 16.38 0 22.63l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0L384 289.94l51.72 51.72c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L417.94 256l51.72-51.72c6.24-6.25 6.24-16.38-.01-22.63zM576 64H205.26C188.28 64 172 70.74 160 82.74L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm16 320c0 8.82-7.18 16-16 16H205.26c-4.27 0-8.29-1.66-11.31-4.69
1L54.63 256l139.31-139.31c3.02-3.02 7.04-4.69 11.31-4.69H576c8.82 0 16 7.18 16 16v256z"]],template:function(i,o){1&i&&(l.qSk(),e.rj2(0,"svg",0),e.Hgh(1,"path",1),e.eux())},encapsulation:2})}return n})();var he=c(68580),ki=c(29912),wi=c(38900);function Vi(n,u){if(1&n&&(e.EFF(0),e.nI1(1,"translate"),e.j41(2,"span",3),e.EFF(3),e.k0s()),2&n){e.XpG();const t=e.r8f(2),i=e.r8f(5);e.SpI(" ",e.bMT(1,3,"_i18n.CallUsing")," "),e.R7$(2),e.Y8G("title",t),e.R7$(),e.JRh(i)}}function Ni(n,u){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"_i18n.DisabledByAdmin")," ")}function Ri(n,u){1&n&&e.nrm(0,"li",5)}function Gi(n,u){if(1&n&&e.nrm(0,"show-svg-images",9),2&n){const t=e.XpG().$implicit,i=e.XpG(2),o=e.XpG();e.Y8G("svg",i.Contact===t.Contact?o.selectPhoneIcon:o.unselectedPhoneIcon)}}function Ai(n,u){if(1&n){const t=e.RV6();e.j41(0,"li",6)(1,"a",8),e.bIt("click",function(){const o=l.eBV(t).$implicit,a=e.XpG(3);return l.Njj(a.selectedPhonesDeviceChange(o))}),e.nVh(2,Gi,1,1,"show-svg-images",9),e.SS7(3),e.nI1(4,"stripUserAgent"),e.nI1(5,"translate"),e.j41(6,"span",10),e.EFF(7),e.k0s()()()}if(2&n){const t=u.$implicit,i=e.XpG(3);e.R7$(2),e.vxM(i.isNewDesign()?-1:2);const o=e.bMT(5,5,e.bMT(4,3,t.UserAgent)),a=o.split("/")[0]??"";e.R7$(4),e.Y8G("title",o),e.R7$(),e.JRh(a)}}function ji(n,u){if(1&n){const t=e.RV6();e.j41(0,"ul",4),e.nVh(1,Ri,1,0,"li",5),e.Z7z(2,Ai,8,7,"li",6,e.fX1),e.nrm(4,"li",5),e.j41(5,"li",6)(6,"a",7),e.nI1(7,"translate"),e.nI1(8,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG(2);return l.Njj(o.goToMediaDeviceOptions())}),e.k0s()()()}if(2&n){e.XpG();const t=e.r8f(0),i=e.r8f(1),o=e.XpG();e.R7$(),e.vxM(i&&!o.isNewDesign()?1:-1),e.R7$(),e.Dyx(t),e.R7$(4),e.Y8G("truncatedText",e.ai1("",e.bMT(7,4,"_i18n.MediaDeviceOptions")," ",e.bMT(8,6,"_i18n.Settings")))}}function Di(n,u){if(1&n&&(e.SS7(0)(1)(2),e.nI1(3,"stripUserAgent"),e.nI1(4,"translate"),e.SS7(5),e.j41(6,"div",0)(7,"a",1),e.nVh(8,Vi,4,5)(9,Ni,2,3),e.k0s(),e.DNE(10,ji,9,8,"ul",2),e.k0s()),2&n){const t=e.bH3(e.XpG().phoneDevices());e.R7$();const i=e.bH3(t.length>0);e.R7$();const o=e.bH3(e.bMT(4,7,e.bMT(3,5,u.UserAgent)));e.R7$(3),e.bH3(o.split("/")[0]??""),e.R7$(2),e.AVh("pe-none",!i),e.R7$(),e.vxM(i?8:9)}}let $i=(()=>{class n{isNewDesign=(0,l.WQX)(z.e);deviceService=(0,l.WQX)(se.gc);dialerVisibility=(0,l.WQX)(Ce.d);router=(0,l.WQX)(r.Ix);selectPhoneIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"/></svg>';unselectedPhoneIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"/></svg>\n';selectedPhoneDevice=(0,B.ot)(this.deviceService.selectedPhoneDevice$);phoneDevices=(0,B.ot)(this.deviceService.phones$,{initialValue:[]});selectedPhonesDeviceChange(t){this.deviceService.selectPhoneDevice(t)}goToMediaDeviceOptions(){this.router.navigate(["/settings/media"]),this.dialerVisibility.focusDialer()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["dialer-select-phone"]],decls:1,vars:1,consts:[["dropdown","","placement","bottom right",1,"dropdown","text-center"],["dropdownToggle","","data-qa","phones-list",1,"dropdown-toggle"],["role","menu","class","dropdown-menu",4,"dropdownMenu"],[1,"line-clamp-1",3,"title"],["role","menu",1,"dropdown-menu"],[1,"divider","dropdown-divider"],["role","menuitem"],["data-qa","media",1,"dropdown-item",3,"click","truncatedText"],[1,"d-flex","align-items-center","dropdown-item","gap-2",3,"click"],[1,"svg-xxs",3,"svg"],[1,"text-truncate",3,"title"]],template:function(i,o){if(1&i&&e.nVh(0,Di,11,11,"div",0),2&i){let a;e.vxM((a=o.selectedPhoneDevice())?0:-1,a)}},dependencies:[he.Kk,he.UL,he.hs,ki.d,Z.N,F.D9,wi.x],styles:[".dropdown-toggle[_ngcontent-%COMP%]{text-align:center;max-width:80%;color:var(--text-secondary);display:inline-flex;align-items:center;gap:var(--spacer-xs);transition:.25s;font-size:11px;opacity:.6}.dropdown-toggle[_ngcontent-%COMP%]:hover, .dropdown-toggle[_ngcontent-%COMP%]:active{opacity:.9}.dropdown-menu[_ngcontent-%COMP%]{background:var(--dialer-bg, var(--bg-tertiary));inset:100% auto auto 50%!important;transform:translate(-50%)!important;max-width:90%}.dropdown-menu[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border-color:#595959}.dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{background:none;color:var(--text-tertiary);font-size:11px;text-align:center;--svg-color: currentColor}.dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:hover, .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:active{color:var(--text-tertiary-hover);background:var(--text-tertiary)}.new-design   [_nghost-%COMP%]   .dropdown-toggle[_ngcontent-%COMP%], .new-design   [_nghost-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{color:var(--text-primary);font-size:var(--small-font-size)}.new-design   [_nghost-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:hover, .new-design   [_nghost-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:active{color:var(--text-primary);background-color:var(--dialer-btn-hover)}"],changeDetection:0})}return n})();function Ei(n,u){1&n&&e.nrm(0,"dialer-select-phone")}function Fi(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.nI1(1,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.callBtnClicked(!0))}),e.nrm(2,"lucide-icon",4),e.k0s()}if(2&n){const t=e.XpG();e.jOp("aria-label",e.mNQ(e.bMT(1,4,"_i18n.Video"))),e.Y8G("disabled",t.callBtnDisabled),e.R7$(2),e.Y8G("img",t.Video)}}function Bi(n,u){if(1&n){const t=e.RV6();e.j41(0,"button",7),e.nI1(1,"translate"),e.bIt("click",function(){l.eBV(t);const o=e.XpG();return l.Njj(o.searchList.onBackSpacePressed())}),e.nrm(2,"app-backspace-regular-icon"),e.k0s()}2&n&&e.jOp("aria-label",e.mNQ(e.bMT(1,2,"_i18n.Backspace")))}let Re=(()=>{class n{myPhoneService=(0,l.WQX)(q.gx);phoneService=(0,l.WQX)(Ve.u);dialerService=(0,l.WQX)(v.$);deviceService=(0,l.WQX)(se.gc);dialerVisibility=(0,l.WQX)(Ce.d);destroyRef=(0,l.WQX)(l.abz);isNewDesign=(0,l.WQX)(z.e);PhoneCall=M.d3s;Video=M.CeX;Phone=M.bcf;searchList;dialpad;isWebRTCSelected=(0,B.ot)(this.deviceService.isWebRTCSelected$);phoneNumber=(0,l.vPA)("");dialpadkeys=["0","1","2","3","4","5","6","7","8","9","*","#"];searchContext=ue.o.headerSearch();voicemailDialCode$=this.myPhoneService.myPhoneSession.pipe((0,h.T)(t=>t.systemParameters.VmailDialCode),(0,Ti.t)({refCount:!1,bufferSize:1}));ngOnInit(){(0,de.h)(this.dialerService.typedPhoneNumber$,this.dialerService.queryPhoneNumber$).pipe((0,B.pQ)(this.destroyRef)).subscribe(t=>{this.phoneNumber.set(t)})}focus(){this.searchList.focus()}get callBtnDisabled(){return!(0,te.t9)(this.phoneNumber()||this.phoneService.lastDialerNumber)}callBtnClicked(t=!1){this.phoneNumber()?this.makeCall(this.phoneNumber(),t):this.phoneNumber.set(this.phoneService.lastDialerNumber)}makeCall(t,i=!1){(0,te.t9)(t)&&this.dialerService.makeCall(t,i)}onKeyDown(t){"Enter"===t.key?this.callBtnClicked():"Escape"===t.key?this.phoneNumber()?this.phoneNumber.set(""):this.dialerVisibility.toggleDialer(!1):this.dialpadkeys.includes(t.key)&&this.dialpad.play$.next(t.key),this.focus()}onContactSelected(t){void 0!==t&&(t.isVoicemail?this.voicemailDialCode$.pipe((0,m.s)(1)).subscribe(i=>{this.makeCall(i+t.number)}):this.makeCall(t.number))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["dialer-view"]],viewQuery:function(i,o){if(1&i&&e.GBs(le,7)(p,5),2&i){let a;e.mGM(a=e.lsd())&&(o.searchList=a.first),e.mGM(a=e.lsd())&&(o.dialpad=a.first)}},hostAttrs:["tabindex","0"],hostBindings:function(i,o){1&i&&e.bIt("focus",function(){return o.focus()})("keydown",function(C){return o.onKeyDown(C)})},features:[e.Jv_([{provide:Pe.b,useExisting:n}])],decls:8,vars:11,consts:[["wcAutofocus","",1,"flex-1",3,"contactSelected","searchTextChanged","searchContext","searchText"],[3,"buttonPressed"],["type","button","data-qa","video",1,"btn","btn-plain","btn-icon","video-action",3,"disabled","aria-label"],["type","button","data-qa","make-call",1,"btn","btn-plain","btn-icon","call-action",3,"click","disabled","aria-label"],[3,"img"],["type","button","data-qa","backspace",1,"btn","btn-plain","btn-icon","backspace-action",3,"aria-label"],["type","button","data-qa","video",1,"btn","btn-plain","btn-icon","video-action",3,"click","disabled","aria-label"],["type","button","data-qa","backspace",1,"btn","btn-plain","btn-icon","backspace-action",3,"click","aria-label"]],template:function(i,o){if(1&i&&(e.j41(0,"call-search-list",0),e.bIt("contactSelected",function(C){return o.onContactSelected(C)})("searchTextChanged",function(C){return o.phoneNumber.set(C)}),e.nVh(1,Ei,1,0,"dialer-select-phone"),e.k0s(),e.j41(2,"call-dialpad",1),e.bIt("buttonPressed",function(C){return o.searchList.onSearchKeyPressed(C)}),e.nVh(3,Fi,3,6,"button",2),e.j41(4,"button",3),e.nI1(5,"translate"),e.bIt("click",function(){return o.callBtnClicked()}),e.nrm(6,"lucide-icon",4),e.k0s(),e.nVh(7,Bi,3,4,"button",5),e.k0s()),2&i){const a=o.isNewDesign(),C=o.phoneNumber();e.Y8G("searchContext",o.searchContext)("searchText",C),e.R7$(),e.vxM(a||!C?1:-1),e.R7$(2),e.vxM(o.isWebRTCSelected()?3:-1),e.R7$(),e.jOp("aria-label",e.mNQ(e.bMT(5,9,"_i18n.Call"))),e.Y8G("disabled",o.callBtnDisabled),e.R7$(2),e.Y8G("img",a?o.PhoneCall:o.Phone),e.R7$(),e.vxM(a?-1:7)}},dependencies:[U.X1,U.YN,$i,le,p,Oi,M.flO,M.WGl,Ie.J,F.D9],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:var(--spacer-s);--svg-color: currentColor}call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin:auto;color:inherit;border-radius:50%;border:none;background:none}call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover, 
1call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:active{opacity:.7}call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:disabled{opacity:1}call-dialpad[_ngcontent-%COMP%]   .btn.video-action[_ngcontent-%COMP%]{grid-column-start:1;color:var(--text-secondary);--svg-size: 28px;--svg-stroke-width: 1.5px}call-dialpad[_ngcontent-%COMP%]   .btn.call-action[_ngcontent-%COMP%]{grid-column-start:2;color:var(--text-secondary);--svg-size: 24px;--btn-icon-size: 39px;transition-property:opacity}call-dialpad[_ngcontent-%COMP%]   .btn.call-action[_ngcontent-%COMP%]     svg{fill:currentColor;stroke:transparent}call-dialpad[_ngcontent-%COMP%]   .btn.call-action[_ngcontent-%COMP%]:not(:disabled){background:var(--make-call)}call-dialpad[_ngcontent-%COMP%]   .btn.backspace-action[_ngcontent-%COMP%]{grid-column-start:3;--svg-size: 19px}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{height:48px;width:78px;border-radius:48px}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover, .new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:active{opacity:1}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn.c
1all-action[_ngcontent-%COMP%]{background-color:var(--make-call)}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn.call-action[_ngcontent-%COMP%]:hover{background-color:var(--make-call-hover)}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn.call-action[_ngcontent-%COMP%]     svg{fill:none;stroke:var(--svg-color)}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn.video-action[_ngcontent-%COMP%]{background-color:var(--bg-secondary)}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn.video-action[_ngcontent-%COMP%]:hover{background-color:var(--bg-secondary-hover)}.new-design   [_nghost-%COMP%]   call-dialpad[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:disabled{opacity:.4}"],changeDetection:0})}return n})();function Xi(n,u){if(1&n&&e.nrm(0,"audio-sink",1),2&n){const t=e.XpG(),i=e.XpG();e.Y8G("loop",!0)("src",t.url)("sink",i.deviceMediaService.selectedOutputAudioDevice$)}}function Li(n,u){if(1&n&&e.nrm(0,"audio-sink",1),2&n){const t=e.XpG(),i=e.XpG();e.Y8G("loop",!0)("src",t.url)("sink",i.deviceMediaService.selectedRingerDevice$)}}function Yi(n,u){if(1&n&&(e.nVh(0,Xi,1,3,"audio-sink",1),e.nI1(1,"async"),e.vZN(2,Li,1,3,"audio-sink",1)),2&n){const t=e.XpG();e.vxM(u.isRinging?e.bMT(1,1,t.silentModeService.silentMode$)?-1:2:0)}}function Wi(n,u){if(1&n&&e.nrm(0,"multiple-incoming-calls",0),2&n){e.XpG();const t=e.r8f(0);e.Y8G("calls",t)}}function zi(n,u){if(1&n&&e.nrm(0,"audio-sink",2),2&n){const t=e.XpG(2);e.Y8G("sink",t.deviceMediaService.selectedOutputAudioDevice$)("srcObject",u)}}function Ui(n,u){if(1&n&&(e.nVh(0,zi,1,2,"audio-sink",2),e.nI1(1,"async"),e.nrm(2,"call-view",3)),2&n){let t;const i=e.XpG(),o=e.r8f(0),a=e.r8f(2);e.vxM((t=i.utilityService.isWebRTCCall(a)&&e.bMT(1,3,a.media.remoteStream$))?0:-1,t),e.R7$(2),e.Y8G("myCall",a)("calls",o)}}function Qi(n,u){1&n&&e.nrm(0,"dialer-view")}let Ki=(()=>{class n{dialerService=(0,l.WQX)(v.$);dialerVisibility=(0,l.WQX)(Ce.d);deviceMediaService=(0,l.WQX)(I.q);silentModeService=(0,l.WQX)(si.Y);route=(0,l.WQX)(r.nX);deviceService=(0,l.WQX)(se.gc);headsetService=(0,l.WQX)(ti.i);callControlService=(0,l.WQX)(V.z);webRtcCallService=(0,l.WQX)(ni.w$);phoneService=(0,l.WQX)(Ve.u);myPhoneService=(0,l.WQX)(q.gx);notificationService=(0,l.WQX)(ii.J);utilityService=(0,l.WQX)(s.vQ);callStateService=(0,l.WQX)(ri.y);subs=new _e.yU;callView;dialerView;get isVideoActive(){return this.callView?.isVideoActive??!1}soundNotification$=this.dialerService.calls$.pipe((0,h.T)(t=>{const i=t.find(a=>a.isWebRtcBrowserAgent&&a.state===_.Tll.Dialing&&a.media.lastWebRTCState.sdpType!==_.Pqd.WRTCAnswerProvided&&a.media.lastWebRTCState.sdpType!==_.Pqd.WRTCConfirmed),o=t.find(a=>a.state===_.Tll.Ringing);if(i)return{url:oi,isRinging:!1};if(o&&o.isPushCall){const a=t.find(T=>T.state===_.Tll.Connected);return t.size>1&&a?{url:ai,isRinging:!0}:{url:li,isRinging:!0}}}));ngAfterViewInit(){this.subs.add(this.myPhoneService.myPhoneSession.pipe((0,N.n)(o=>(0,ye.x)((0,L.of)(o),o.isActive$.pipe((0,Q.p)(a=>!a),(0,h.T)(()=>o))))).subscribe(()=>{this.headsetService.reset()})),this.subs.add(this.headsetService.headsetEvents$.pipe((0,E.E)(this.phoneService.myCalls$)).subscribe(o=>{const[a,C]=o;if(a.Action===W.T.MakeCall){const T=(0,te.t9)(a.Value);ce.Q.isNullOrEmpty(T)||this.phoneService.call(T,!1)}else{let T;if(-1!==a.CallId?T=C.calls.find(w=>w.myCallId===a.CallId):(T=C.calls.find(w=>w.media.isActive),!T&&!C.calls.isEmpty()&&(T=C.calls.get(0))),T)if(a.Action!==W.T.AcceptCall||T.webRTCId)if(a.Action===W.T.TerminateCall||a.Action===W.T.RejectCall)this.callControlService.drop(T);else if(a.Action===W.T.HoldCall)this.callControlService.hold(T);else if(a.Action===W.T.ResumeCall)this.callControlService.resume(T);else if(a.Action===W.T.ToggleMuteCall)this.callControlService.mute(T);else if(a.Action===W.T.FlashCall)if(1===C.calls.size)T.isHold?this.callControlService.resume(T):this.callControlService.hold(T);else{const ie=C.calls.indexOf(T)+1,J=C.calls.get(ie>=C.calls.size?0:ie);J.state===_.Tll.Ringing?this.callControlService.answer(J,!1):this.callControlService.resume(J)}else a.Action===W.T.SendDtmf&&(0,O.Kk)(T)&&["0","1","2","3","4","5","6","7","8","9","*","#"].includes(a.Value)&&this.callControlService.sendDtmf(T,a.Value);else this.callControlService.answer(T,!1)}})),this.subs.add(this.deviceMediaService.mediaPeerConstraints$.pipe((0,qn.H)(()=>this.phoneService.myCalls$.pipe((0,m.s)(1),(0,N.n)(o=>{const a=o.calls.find(C=>C.media.isActive);return a?this.webRtcCallService.reactivate(a.media):ne.w}),(0,ei.W)(()=>ne.w)))).subscribe(()=>{}));const t=this.myPhoneService.myPhoneSession.pipe((0,N.n)(o=>o.myInfo.Connections$),(0,h.T)(o=>o&&o.Items?o.Items:[])),i=(o,a)=>this.route.queryParams.pipe((0,h.T)(C=>C[o]),(0,pe.F)(),(0,Q.p)(O.z2),(0,N.n)(C=>(0,re.z)([t,this.phoneService.pushDeviceRegistration$,this.deviceService.selectedPhoneDevice$]).pipe((0,h.T)(([T,w,ie])=>T.find(J=>J.CallId===+C&&((0,se.F0)(ie)?J.DeviceContact===w?.Contact:J.DeviceContact===ie?.Contact))),(0,Q.p)(O.z2),(0,m.s)(1)))).subscribe(C=>{this.phoneService.requestMakePushWakeUpCall(C,a)});this.subs.add(i("answer",!0)),this.subs.add(i("decline",!1)),this.subs.add(this.notificationService.n
1otificationActions$.pipe((0,E.E)(this.phoneService.myCalls$)).subscribe(o=>{const[a,C]=o,T=C.calls.find(w=>w.localConnectionId===a.localConnectionId||w.callId===a.callId);T&&(a.action===we.dF?this.callControlService.drop(T):a.action===we.xw&&this.callControlService.answer(T,!1))})),this.subs.add(this.callStateService.callState$.pipe((0,N.n)(o=>this.myPhoneService.myPhoneSession.pipe((0,h.T)(a=>(0,ci.cX)(a.myInfo)),(0,h.T)(a=>[o,a])))).subscribe({next:o=>{const[a,C]=o}})),this.subs.add((0,de.h)(this.dialerVisibility.dialerVisibilityInfo$.pipe((0,Me.Z)(350),(0,Q.p)(({stealFocus:o})=>o)),this.dialerService.newPrimaryCallSelected$).subscribe(()=>this.focus()))}focus(){this.dialerVisibility.isDialerVisible()&&(this.dialerView?.focus(),this.callView?.focus())}ngOnDestroy(){this.subs.unsubscribe()}allRinging(t){return t.every(i=>i.isRinging)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=e.VBU({type:n,selectors:[["app-call-control"]],viewQuery:function(i,o){if(1&i&&e.GBs(ke,5)(Re,5),2&i){let a;e.mGM(a=e.lsd())&&(o.callView=a.first),e.mGM(a=e.lsd())&&(o.dialerView=a.first)}},hostAttrs:[1,"d-flex","flex-column"],decls:9,vars:10,consts:[[3,"calls"],[3,"loop","src","sink"],[3,"sink","srcObject"],[3,"myCall","calls"]],template:function(i,o){if(1&i&&(e.SS7(0),e.nI1(1,"async"),e.SS7(2),e.nI1(3,"async"),e.nVh(4,Yi,3,3),e.nI1(5,"async"),e.nVh(6,Wi,1,1,"multiple-incoming-calls",0)(7,Ui,3,5)(8,Qi,1,0,"dialer-view")),2&i){let a;const C=e.bH3(e.bMT(1,2,o.dialerService.calls$));e.R7$(2);const T=e.bH3(e.bMT(3,5,o.dialerService.activeCall$)),w=C&&C.size>1;e.R7$(2),e.vxM((a=e.bMT(5,8,o.soundNotification$))?4:-1,a),e.R7$(2),e.vxM(w&&o.allRinging(C)?6:T?7:8)}},dependencies:[pi,me,Mi,ke,Re,j.Jj],encapsulation:2})}return n})()},62526(D,k,c){"use strict";c.d(k,{z:()=>e});var l=c(25558),v=c(96697),y=c(85802),_=c(16444),V=c(38601),O=c(22040),b=c(1211),x=c(84572),P=c(7673),E=c(1807),N=c(983),R=c(60889),G=c(30782),A=c(13499),$=c(20284),I=c(51078);let e=(()=>{class f{myphone=(0,y.WQX)(_.gx);modal=(0,y.WQX)(V.B);phoneService=(0,y.WQX)($.u);dialerService=(0,y.WQX)(A.$);settingsService=(0,y.WQX)(O.h);webRTCControlService=(0,y.WQX)(R.w$);meetingListService=(0,y.WQX)(I.X);onError(s){s&&s.source instanceof b.UsZ?console.log(s):"Invalid connection Id"!==s.message&&this.modal.error(s)}divertToVoicemail(s){this.myphone.myPhoneSession.pipe((0,v.s)(1),(0,l.n)(r=>{const d=new b.Icu;return d.LocalConnectionId=s.localConnectionId,d.IsLocal=!0,d.vmail=!0,d.Destination=r.myInfo.Number,r.get(d)})).subscribe({error:r=>this.onError(r)})}answer(s,r){s.isBeingProcessed||(this.phoneService.answer(s,r),this.dialerService.setPrimaryCall(s.myCallId))}join(s){s.joinToConnectionId&&this.phoneService.join$(s.joinToConnectionId,s.localConnectionId,s.DeviceID).subscribe({error:r=>this.onError(r)})}transfer(s,r){this.settingsService.preprocessPhoneNumber(r.number).pipe((0,l.n)(d=>{const m=r.isVoicemail,h=d;return this.myphone.myPhoneSession.pipe((0,v.s)(1),(0,l.n)(g=>{const S=new b.JoO;return S.IsLocal=!1,S.LocalConnectionId=s.localConnectionId,S.Destination=m?g.systemParameters.VmailDialCode+h:h,g.get(S)}))})).subscribe({error:d=>this.onError(d)})}makeConnectedCall(s,r){return this.phoneService.makeConnectedCall$(s.localConnectionId,r)}attTransfer(s,r){(0,x.z)([this.settingsService.preprocessPhoneNumber(r.number),this.myphone.myPhoneSession]).pipe((0,v.s)(1),(0,l.n)(([d,m])=>this.makeConnectedCall(s,r.isVoicemail?m.systemParameters.VmailDialCode+d:d)),(0,v.s)(1)).subscribe({next:d=>{const[m,h]=d;this.phoneService.requestAttTransfer(m.myCallId,h.myCallId)},error:d=>this.onError(d)})}attendedConference(s,r){this.settingsService.preprocessPhoneNumber(r.number).pipe((0,l.n)(d=>this.makeConnectedCall(s,d).pipe((0,v.s)(1)))).subscribe({next:d=>{const[m,h]=d;this.phoneService.requestAttConference(m.myCallId,h.myCallId)},error:d=>this.onError(d)})}joinAttendedConference(s){(0,x.z)([this.meetingListService.IsMyPrivateConferenceActive$,this.dialerService.myPrivateConferenceCall$]).pipe((0,v.s)(1),(0,l.n)(([r,d])=>{if(r&&s.conferenceType!==b.kqr.LCCT_AdHocPrivate){const h=new b.zqb;return h.LocalConnectionId=s.localConnectionId,h.IsLocal=!0,h.Participants=d?b.nRF.OTHER_CONNECTION:b.nRF.BOTH_CONNECTIONS,this.myphone.get(h).pipe((0,l.n)(g=>d&&d.isWebRtcBrowserAgent?(0,E.O)(300).pipe((0,v.s)(1),(0,l.n)(()=>this.webRTCControlService.hold(d.media,!0))):(0,P.of)(!0)))}if(!s.joinConferenceOtherConnectionId)return N.w;const m=new b.zqb;if(m.LocalConnectionId=s.joinConferenceOtherConnectionId,m.IsLocal=!0,m.Participants=b.nRF.OTHER_CONNECTION,s.conferenceType===b.kqr.LCCT_AdHocPrivate)return this.myphone.get(m).pipe((0,l.n)(h=>s.isWebRtcBrowserAgent?this.webRTCControlService.hold(s.media,!0):(0,P.of)(!0)));{const h=new b.zqb;return h.LocalConnectionId=s.localConnectionId,h.IsLocal=!0,h.Participants=b.nRF.BOTH_CONNECTIONS,(0,x.z)([this.myphone.get(h),this.myphone.get(m)])}})).subscribe({next:()=>this.phoneService.requestAttendedCallCompleted(s.myCallId),error:r=>this.onError(r)})}conference(s,r){this.settingsService.preprocessPhoneNumber(r.number).pipe((0,l.n)(d=>this.makeConnectedCall(s,d).pipe((0,v.s)(1))),(0,l.n)(d=>{const[m,h]=d,g=new b.zqb;if(g.LocalConnectionId=h.localConnectionId,g.IsLocal=!0,g.Participants=b.nRF.BOTH_CONNECTIONS,!h.isConnCapabilitiesTransfer)return(0,P.of)("");if(s.isConferenceCall)return g.Participants=b.nRF.OTHER_CONNECTION,this.myphone.get(g).pipe((0,l.n)(S=>s.isWebRtcBrowserAgent?this.webRTCControlService.hold(s.media,!0):(0,P.of)(!0)));{const S=new b.zqb;return S.LocalConnectionId=m.localConnectionId,S.IsLocal=!0,S.Participants=b.nRF.OTHER_CONNECTION,(0,x.z)([this.myphone.get(S),this.myphone.get(g)])}})).subscribe({error:d=>this.onError(d)})}sendDtmf(s,r){try{this.webRTCControlService.sendDtmf(s.media,r)}catch(d){this.onError(d)}}drop(s){this.phoneService.drop(s)}video(s){s.media!==G.d&&this.webRTCControlService.video(s.media).subscribe({error:r=>this.onError(r)})}mute(s){s.media!==G.d&&this.webRTCControlService.mute(s.media,s.myCallId)}hold(s){this.webRTCControlService.hold(s.media,!1).subscribe({error:r=>this.onError(r)})}resume(s){this.dialerService.setPrimaryCall(s.myCallId),this.webRTCControlService.hold(s.media,!0).subscribe({error:r=>this.onError(r)})}record(s){this.myphone.myPhoneSession.pipe((0,v.s)(1),(0,l.n)(r=>{const d=new b.ODZ;return d.LocalConnectionId=s.localConnectionId,d.IsLocal=!0,d.RecAction=s.isRecording?s.isRecordingPaused?b._rP.Resume:b._rP.Pause:b._rP.Start,d.Folder=r.myInfo.Number,r.get(d)})).subscribe({error:r=>this.onError(r)})}static \u0275fac=function(r){return new(r||f)};static \u0275prov=y.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},4202(D,k,c){"use strict";c.d(k,{l:()=>y});var l=c(35547),v=c(85802);let y=(()=>{class _{static \u0275fac=function(b){return new(b||_)};static \u0275cmp=l.VBU({type:_,selectors:[["app-envelope-light-icon"],["","app-envelope-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M64 96c-17.7 0-32 14.3-32 32v39.9L227.6 311.3c16.9 12.4 39.9 12.4 56.8 0L480 167.9V128c0-17.7-14.3-32-32-32H64zM32 207.6V384c0 17.7 14.3 32 32 32H448c17.7 0 32-14.3 32-32V207.6L303.3 337.1c-28.2 20.6-66.5 20.6-94.6 0L32 207.6zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]],template:function(b,x){1&b&&(v.qSk(),l.rj2(0,"svg",0),l.Hgh(1,"path",1),l.eux())},encapsulation:2})}return _})()},38900(D,k,c){"use strict";c.d(k,{x:()=>_});var l=c(90558),v=c(35547);let _=(()=>{class V{transform(b,x="_i18n.Enable3CXSmartphone"){return function y(V,O){return V?V.replace(new RegExp("^(3CXPhone for Windows)+.*$","igm"),"_i18n.3CXPhoneForWindows").replace("3CXPhone ","3CX Client ").replace(l.Jc,O).replace(l.N9,O).replace(l.$S,"_i18n.Browser"):""}(b,x)}static \u0275fac=function(x){return new(x||V)};static \u0275pipe=v.EJ8({name:"stripUserAgent",type:V,pure:!0})}return V})()},25869(D){c.removeEventListener=function l(O,b,x,P){return(k=k||(
vendor: 5,083 bytes, line 1
1document.addEventListener?{add:v,rm:y}:{add:_,rm:V})).rm(O,b,x,P)},c.addEventListener=c,D.exports=c;var k=null;function c(O,b,x,P){return(k=k||(document.addEventListener?{add:v,rm:y}:{add:_,rm:V})).add(O,b,x,P)}function v(O,b,x,P){O.addEventListener(b,x,P)}function y(O,b,x,P){O.removeEventListener(b,x,P)}function _(O,b,x,P){if(P)throw new Error("cannot useCapture in oldIE");O.attachEvent("on"+b,x)}function V(O,b,x,P){O.detachEvent("on"+b,x)}},44356(D){"use strict";var l,k="object"==typeof Reflect?Reflect:null,c=k&&"function"==typeof k.apply?k.apply:function(s,r,d){return Function.prototype.apply.call(s,r,d)};l=k&&"function"==typeof k.ownKeys?k.ownKeys:Object.getOwnPropertySymbols?function(s){return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s))}:function(s){return Object.getOwnPropertyNames(s)};var y=Number.isNaN||function(s){return s!=s};function _(){_.init.call(this)}D.exports=_,D.exports.once=function I(p,s){return new Promise(function(r,d){function m(g){p.removeListener(s,h),d(g)}function h(){"function"==typeof p.removeListener&&p.removeListener("error",m),r([].slice.call(arguments))}f(p,s,h,{once:!0}),"error"!==s&&function e(p,s,r){"function"==typeof p.on&&f(p,"error",s,r)}(p,m,{once:!0})})},_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var V=10;function O(p){if("function"!=typeof p)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof p)}function b(p){return void 0===p._maxListeners?_.defaultMaxListeners:p._maxListeners}function x(p,s,r,d){var m,h,g;if(O(r),void 0===(h=p._events)?(h=p._events=Object.create(null),p._eventsCount=0):(void 0!==h.newListener&&(p.emit("newListener",s,r.listener?r.listener:r),h=p._events),g=h[s]),void 0===g)g=h[s]=r,++p._eventsCount;else if("function"==typeof g?g=h[s]=d?[r,g]:[g,r]:d?g.unshift(r):g.push(r),(m=b(p))>0&&g.length>m&&!g.warned){g.warned=!0;var S=new Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");S.name="MaxListenersExceededWarning",S.emitter=p,S.type=s,S.count=g.length,function v(p){console&&console.warn&&console.warn(p)}(S)}return p}function P(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function E(p,s,r){var d={fired:!1,wrapFn:void 0,target:p,type:s,listener:r},m=P.bind(d);return m.listener=r,d.wrapFn=m,m}function N(p,s,r){var d=p._events;if(void 0===d)return[];var m=d[s];return void 0===m?[]:"function"==typeof m?r?[m.listener||m]:[m]:r?function $(p){for(var s=new Array(p.length),r=0;r<s.length;++r)s[r]=p[r].listener||p[r];return s}(m):G(m,m.length)}function R(p){var s=this._events;if(void 0!==s){var r=s[p];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function G(p,s){for(var r=new Array(s),d=0;d<s;++d)r[d]=p[d];return r}function f(p,s,r,d){if("function"==typeof p.on)d.once?p.once(s,r):p.on(s,r);else{if("function"!=typeof p.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof p);p.addEventListener(s,function m(h){d.once&&p.removeEventListener(s,m),r(h)})}}Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return V},set:function(p){if("number"!=typeof p||p<0||y(p))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+p+".");V=p}}),_.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_.prototype.setMaxListeners=function(s){if("number"!=typeof s||s<0||y(s))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+s+".");return this._maxListeners=s,this},_.prototype.getMaxListeners=function(){return b(this)},_.prototype.emit=function(s){for(var r=[],d=1;d<arguments.length;d++)r.push(arguments[d]);var m="error"===s,h=this._events;if(void 0!==h)m=m&&void 0===h.error;else if(!m)return!1;if(m){var g;if(r.length>0&&(g=r[0]),g instanceof Error)throw g;var S=new Error("Unhandled error."+(g?" ("+g.message+")":""));throw S.context=g,S}var j=h[s];if(void 0===j)return!1;if("function"==typeof j)c(j,this,r);else{var F=j.length,M=G(j,F);for(d=0;d<F;++d)c(M[d],this,r)}return!0},_.prototype.on=_.prototype.addListener=function(s,r){return x(this,s,r,!1)},_.prototype.prependListener=function(s,r){return x(this,s,r,!0)},_.prototype.once=function(s,r){return O(r),this.on(s,E(this,s,r)),this},_.prototype.prependOnceListener=function(s,r){return O(r),this.prependListener(s,E(this,s,r)),this},_.prototype.off=_.prototype.removeListener=function(s,r){var d,m,h,g,S;if(O(r),void 0===(m=this._events))return this;if(void 0===(d=m[s]))return this;if(d===r||d.listener===r)0===--this._eventsCount?this._events=Object.create(null):(delete m[s],m.removeListener&&this.emit
1("removeListener",s,d.listener||r));else if("function"!=typeof d){for(h=-1,g=d.length-1;g>=0;g--)if(d[g]===r||d[g].listener===r){S=d[g].listener,h=g;break}if(h<0)return this;0===h?d.shift():function A(p,s){for(;s+1<p.length;s++)p[s]=p[s+1];p.pop()}(d,h),1===d.length&&(m[s]=d[0]),void 0!==m.removeListener&&this.emit("removeListener",s,S||r)}return this},_.prototype.removeAllListeners=function(s){var r,d,m;if(void 0===(d=this._events))return this;if(void 0===d.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==d[s]&&(0===--this._eventsCount?this._events=Object.create(null):delete d[s]),this;if(0===arguments.length){var g,h=Object.keys(d);for(m=0;m<h.length;++m)"removeListener"!==(g=h[m])&&this.removeAllListeners(g);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(r=d[s]))this.removeListener(s,r);else if(void 0!==r)for(m=r.length-1;m>=0;m--)this.removeListener(s,r[m]);return this},_.prototype.listeners=function(s){return N(this,s,!0)},_.prototype.rawListeners=function(s){return N(this,s,!1)},_.listenerCount=function(p,s){return"function"==typeof p.listenerCount?p.listenerCount(s):R.call(p,s)},_.prototype.listenerCount=R,_.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},3417(D,k,c){D.exports=O,O.available=function _(){return!!b(document.body)},O.enabled=function V(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)};var l=c(44356).EventEmitter,v=c(25869),y=v.removeEventListener;function O(x){for(var P=x.ownerDocument,N=b(x),R=new l,G=["","webkit","moz"],A=0,$=G.length;A<$;++A)v(P,G[A]+"fullscreenchange",I),v(P,G[A]+"fullscreenerror",e);return v(P,"MSFullscreenChange",I),v(P,"MSFullscreenError",e),R.release=function p(){var d=x.exitFullscreen||x.webkitExitFullscreen||x.mozCancelFullScreen||x.mozExitFullScreen||x.msExitFullscreen;d?d.apply(x,arguments):(P.exitFullscreen||P.webkitExitFullscreen||P.mozCancelFullScreen||P.mozExitFullScreen||P.msExitFullscreen).apply(P,arguments)},R.request=function f(){return N.apply(x,arguments)},R.dispose=function r(){for(var d=0,m=G.length;d<m;++d)y(P,G[d]+"fullscreenchange",I),y(P,G[d]+"fullscreenerror",e);y(P,"MSFullscreenChange",I),y(P,"MSFullscreenError",e)},R.target=s,b||setTimeout(function(){R.emit("error",new Error("fullscreen is not supported"))},0),R;function I(){if(!s())return R.emit("release");R.emit("attain")}function e(){R.emit("error")}function s(){return P.fullscreenElement||P.webkitFullscreenElement||P.mozFullScreenElement||P.msFullscreenElement||null}}function b(x){return x.requestFullscreen||x.webkitRequestFullscreen||x.mozRequestFullScreen||x.msRequestFullscreen}}}]);

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.