PageSourceSearch

https://progpol.pl/9228.d7d9551c182eb958.js

js progpol.pl collected 2026-10-08 12:05:19 UTC 152,948 bytes, 1 lines download raw bytes

1(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[9228],{2231:(A,x,s)=>{"use strict";s.d(x,{v:()=>Xi});var l=s(2615),v=s(13499),y=s(17705),C=s(1211),w=s(62526),P=s(83762),_=s(18530),M=s(35060),O=s(1807),F=s(53993),T=s(25558),V=s(70980),j=s(10467),E=s(11920);let z=(()=>{class n{static{this.counter=0}constructor(e,i){this.audioContext=e,this.outputAudioDevice=i,this.audio=new Audio}playTone(e,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=e,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(m=>console.error(m))}trySetOutputDeviceSink(){var e=this;return(0,j.A)(function*(){const i=e.audio;if(e?.outputAudioDevice?.labelId&&e.outputAudioDevice?.media){const o=e.outputAudioDevice?.labelId,a=yield navigator.mediaDevices.enumerateDevices(),m=(0,E.C7)(a,"audiooutput",o);m?.media?.deviceId&&i.setSinkId&&(yield i.setSinkId(m.media.deviceId))}})()}play(e){switch(String(e)){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)}}return n})();var B=s(12539),t=s(73664);const R=["*"];let u=(()=>{class n{constructor(){this.deviceMediaService=(0,l.WQX)(B.q),this.buttonPressed=(0,y.CGW)(),this.play$=new _.B}onButtonPress(e){this.play$.next(e),this.buttonPressed.emit(e)}ngOnInit(){this.playSubscription=this.play$.pipe((0,F.E)(this.deviceMediaService.selectedOutputAudioDevice$),(0,T.n)(e=>{const[i,o]=e;try{if(/Edge/.test(navigator.userAgent))return M.t;const a=new z(new AudioContext,o);return a.play(i),(0,O.O)(200).pipe((0,V.j)(()=>{a.stop(),a.close()}))}catch(a){return console.error(a),M.t}})).subscribe(()=>{})}ngOnDestroy(){this.playSubscription&&this.playSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["call-dialpad"]],inputs:{disabled:"disabled"},outputs:{buttonPressed:"buttonPressed"},ngContentSelectors:R,decls:57,vars:12,consts:[["id","dialpad-1","type","button",1,"btnNum",3,"click","disabled"],[1,"btnNumDigit"],[1,"btnNumText"],["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,"btnNumDigit",2,"font-size","30px","margin-top","3px"],["id","dialpad-0","type","button",1,"btnNum",3,"click","disabled"],["id","dialpad-#","type","button",1,"btnNum",3,"click","disabled"],[1,"btnNumDigit",2,"margin-bottom","10px"]],template:function(i,o){1&i&&(t.NAR(),t.rj2(0,"button",0),t.VwU("click",function(){return o.onButtonPress("1")}),t.rj2(1,"div",1),t.EFF(2,"1"),t.eux(),t.rj2(3,"div",2),t.EFF(4,"\xa0"),t.eux()(),t.rj2(5,"button",3),t.VwU("click",function(){return o.onButtonPress("2")}),t.rj2(6,"div",1),t.EFF(7,"2"),t.eux(),t.rj2(8,"div",2),t.EFF(9,"ABC"),t.eux()(),t.rj2(10,"button",4),t.VwU("click",function(){return o.onButtonPress("3")}),t.rj2(11,"div",1),t.EFF(12,"3"),t.eux(),t.rj2(13,"div",2),t.EFF(14,"DEF"),t.eux()(),t.rj2(15,"button",5),t.VwU("click",function(){return o.onButtonPress("4")}),t.rj2(16,"div",1),t.EFF(17,"4"),t.eux(),t.rj2(18,"div",2),t.EFF(19,"GHI"),t.eux()(),t.rj2(20,"button",6),t.VwU("click",function(){return o.onButtonPress("5")}),t.rj2(21,"div",1),t.EFF(22,"5"),t.eux(),t.rj2(23,"div",2),t.EFF(24,"JKL"),t.eux()(),t.rj2(25,"button",7),t.VwU("click",function(){return o.onButtonPress("6")}),t.rj2(26,"div",1),t.EFF(27,"6"),t.eux(),t.rj2(28,"div",2),t.EFF(29,"MNO"),t.eux()(),t.rj2(30,"button",8),t.VwU("click",function(){return o.onButtonPress("7")}),t.rj2(31,"div",1),t.EFF(32,"7"),t.eux(),t.rj2(33,"div",2),t.EFF(34,"PQRS"),t.eux()(),t.rj2(35,"button",9),t.VwU("click",function(){return o.onButtonPress("8")}),t.rj2(36,"div",1),t.EFF(37,"8"),t.eux(),t.rj2(38,"div",2),t.EFF(39,"TUV"),t.eux()(),t.rj2(40,"button",10),t.VwU("click",function(){return o.onButtonPress("9")}),t.rj2(41,"div",1),t.EFF(42,"9"),t.eux(),t.rj2(43,"div",2),t.EFF(44,"WXYZ"),t.eux()(),t.rj2(45,"button",11),t.VwU("click",function(){return o.onButtonPress("*")}),t.rj2(46,"div",12),t.EFF(47,"*"),t.eux()(),t.rj2(48,"button",13),t.VwU("click",function(){return o.onButtonPress("0")}),t.rj2(49,"div",1),t.EFF(50,"0"),t.eux(),t.rj2(51,"div",2),t.EFF(52,"+"),t.eux()(),t.rj2(53,"button",14),t.VwU("click",function(){return o.onButtonPress("#")}),t.rj2(54,"div",15),t.EFF(55,"#"),t.eux()(),t.SdG(56)),2&i&&(t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled),t.R7$(3),t.Avn("disabled",o.disabled),t.R7$(5),t.Avn("disabled",o.disabled))},styles:["[_nghost-%COMP%]{width:100%;display:grid;grid-column-gap:0;grid-row-gap:10px;grid-template-columns:repeat(3,minmax(33.3%,33.3%))}.btnNum[_ngcontent-%COMP%]{display:inline-block;background-color:transparent;border:0;padding:0;height:28px;color:var(--text-secondary)}.btnNum[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.btnNum[_ngcontent-%COMP%]:active{color:var(--bg-secondary);transition:.1s}.btnNumDigit[_ngcontent-%COMP%]{font-family:Arial,serif;font-size:20px;line-height:14px}.btnNumText[_ngcontent-%COMP%]{font-family:Arial,serif;line-height:14px;font-size:9px}"]})}}return n})();var c=s(91250),r=s(252),d=s(51078),h=s(96697),g=s(96354),b=s(5491);let I=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-microphone-alt-light-icon"],["","app-microphone-alt-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M160 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S64 42.98 64 96v160c0 53.02 42.98 96 96 96zM96 96c0-35.29 28.71-64 64-64s64 28.71 64 64h-56c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h56v32h-56c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h56v32h-56c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h56c0 35.29-28.71 64-64 64s-64-28.71-64-64V96zm216 96h-16c-4.42 0-8 3.58-8 8v56c0 73.46-62.2 132.68-136.73 127.71C83.3 379.18 32 319.61 32 251.49V200c0-4.42-3.58-8-8-8H8c-4.42 0-8 3.58-8 8v50.34c0 83.39 61.64 156.12 144 164.43V480H72c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h176c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8h-72v-65.01C256.71 406.9 320 338.8 320 256v-56c0-4.42-3.58-8-8-8z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),U=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-plus-light-icon"],["","app-plus-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M240 64c0-8.8-7.2-16-16-16s-16 7.2-16 16V240H32c-8.8 0-16 7.2-16 16s7.2 16 16 16H208V448
1c0 8.8 7.2 16 16 16s16-7.2 16-16V272H416c8.8 0 16-7.2 16-16s-7.2-16-16-16H240V64z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})();var et=s(48984);let ot=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-call-transfer-custom-icon"],["","app-call-transfer-custom-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32"],["d","M26.74 10.6c-1.35-1.44-2.73-2.84-4.11-4.25-.42-.42-.95-.4-1.45-.2-.51.21-.67.65-.67 1.18v2.01c-.81 0-.79.05-1.5-.02-.75-.07-1.26.23-1.76.78-3.37 3.76-6.77 7.48-10.13 11.24-.37.41-.75.59-1.29.57-1.03-.04.29-.02-.75-.01-.87.02-.95.1-.96 1.02-.01.77-.01 1.54 0 2.3.02.83.1.93.9.93 1.67 0 .98-.02 2.65.01.5.01.84-.16 1.18-.53 3.41-3.8 6.87-7.58 10.26-11.4.66-.74.58-.69 1.41-.56 0 .66.01 1.29 0 1.91-.01.56.18 1.01.71 1.23.52.22 1.03.18 1.44-.24 1.35-1.37 2.69-2.74 4.02-4.14.46-.5.5-1.34.05-1.83zM5.03 13.14c1.17-.04-.19.03.98-.03.66-.03 1.12.16 1.55.69.75.91 1.58 1.76 2.41 2.69 1.05-1.19 2.02-2.28 3.06-3.45-1.35-1.49-2.61-2.91-3.91-4.3-.18-.19-.53-.3-.81-.3-1.97-.03-1.4-.01-3.38-.02-.56 0-.83.24-.83.82.01 1.01.01 2.01 0 3.01-.01.67.3.91.93.89z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),Et=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-random-regular-icon"],["","app-random-regular-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","m505 400-79.2 72.9c-15.1 15.1-41.8 4.4-41.8-17v-40h-31c-3.3 0-6.5-1.4-8.8-3.9l-89.8-97.2 38.1-41.3 79.8 86.3H384v-48c0-21.4 26.7-32.1 41.8-17l79.2 71c9.3 9.6 9.3 24.8 0 34.2zM12 152h91.8l79.8 86.3 38.1-41.3-89.8-97.2c-2.3-2.5-5.5-3.9-8.8-3.9H12c-6.6 0-12 5.4-12 12v32c0 6.7 5.4 12.1 12 12.1zm493-41.9-79.2-71C410.7 24 384 34.7 384 56v40h-31c-3.3 0-6.5 1.4-8.8 3.9L103.8 360H12c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h111c3.3 0 6.5-1.4 8.8-3.9L372.2 152H384v48c0 21.4 26.7 32.1 41.8 17l79.2-73c9.3-9.4 9.3-24.6 0-33.9z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),Bt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-waveform-lines-light-icon"],["","app-waveform-lines-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512"],["d","M320 0c8.8 0 16 7.2 16 16V496c0 8.8-7.2 16-16 16s-16-7.2-16-16V16c0-8.8 7.2-16 16-16zM512 64c8.8 0 16 7.2 16 16V432c0 8.8-7.2 16-16 16s-16-7.2-16-16V80c0-8.8 7.2-16 16-16zM224 96c8.8 0 16 7.2 16 16V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V112c0-8.8 7.2-16 16-16zm192 32c8.8 0 16 7.2 16 16V368c0 8.8-7.2 16-16 16s-16-7.2-16-16V144c0-8.8 7.2-16 16-16zM128 192c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16s-16-7.2-16-16V208c0-8.8 7.2-16 16-16zM32 224c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V240c0-8.8 7.2-16 16-16zm576 0c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V240c0-8.8 7.2-16 16-16z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),Dt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.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(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),mt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-video-light-icon"],["","app-video-light-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512"],["d","M64 96c-17.7 0-32 14.3-32 32V384c0 17.7 14.3 32 32 32H320c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zM0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64v47.2V336.8 384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM519.4 411.3L416 354.4V317.9l118.8 65.4c.9 .5 1.9 .8 3 .8c3.4 0 6.2-2.8 6.2-6.2V134.2c0-3.4-2.8-6.2-6.2-6.2c-1 0-2.1 .3-3 .8L416 194.1V157.6l103.4-56.9c5.6-3.1 12-4.7 18.4-4.7c21.1 0 38.2 17.1 38.2 38.2V377.8c0 21.1-17.1 38.2-38.2 38.2c-6.4 0-12.8-1.6-18.4-4.7z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),ht=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.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 
11.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(),t.rj2(0,"svg",0),t.Hgh(1,"path",1)(2,"path",2),t.eux())},encapsulation:2})}}return n})(),Gt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-go-forward-custom-icon"],["","app-go-forward-custom-icon",""]],decls:2,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","m0 24 1.29-1.91A16.17 16.17 0 0 1 14 15v7l10-11L14 0v6C6.55 7.44 2.13 12.88.45 21.67zm1.82-4.37c2-7.18 6-11.42 12.78-12.57L15 7V3l7.64 8L15 19v-5h-.69a15.72 15.72 0 0 0-12.49 5.63z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),$t=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-go-back-custom-icon"],["","app-go-back-custom-icon",""]],decls:2,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M23.55 21.67C21.87 12.88 17.45 7.44 10 6V0L0 11l10.05 11v-7a16.14 16.14 0 0 1 12.66 7.09L24 24zM9.69 14H9v5l-7.64-8L9 3v4l.4.06c6.79 1.15 10.83 5.39 12.78 12.57A15.73 15.73 0 0 0 9.69 14z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),lt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.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.6-2.5-2.3z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1)(2,"path",2),t.eux())},encapsulation:2})}}return n})(),_t=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-disabled-phone-custom-icon"],["","app-disabled-phone-custom-icon",""]],decls:4,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["fill","var(--bg-tertiary)","fill-opacity","1","d","M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0z"],["d","m17.17 16.74-.49.43c-.13.12-.31.25-.43.37a1.88 1.88 0 0 1-1.91.24 12.54 12.54 0 0 1-7.82-8.49 2 2 0 0 1 .8-2.4l.62-.55c.37-.43.68-.37 1 .12.49.596.926 1.235 1.3 1.91.43.68.43.86-.25 1.23l-.8.37c-.25.25-.12.55.12.86A14.09 14.09 0 0 0 13 14.77c.37.25.62.37.93.06l.43-.55c.43-.68.61-.74 1.23-.25.617.44 1.193.936 1.72 1.48.41.55.41.74-.14 1.23z",1,"phoneBackgroundFillColor"],["fill","var(--text-secondary)","d","m17.17 16.74-.49.43c-.13.12-.31.25-.43.37a1.88 1.88 0 0 1-1.91.24 12.54 12.54 0 0 1-7.82-8.49 2 2 0 0 1 .8-2.4l.62-.55c.37-.43.68-.37 1 .12.49.596.926 1.235 1.3 1.91.43.68.43.86-.25 1.23l-.8.37c-.25.25-.12.55.12.86A14.09 14.09 0 0 0 13 14.77c.37.25.62.37.93.06l.43-.55c.43-.68.61-.74 1.23-.25.617.44 1.193.936 1.72 1.48.41.55.41.74-.14 1.23z"]],template:function(i,o){1&i&&(l.qSk(),t.rj2(0,"svg",0),t.Hgh(1,"path",1)(2,"path",2)(3,"path",3),t.eux())},encapsulation:2})}}return n})();var gt=s(4202),k=s(72200),$=s(68018);const Lt=["inCallDialPad"],Xt=["inCallSearchContactDialPad"],ft=n=>({"button-pressed":n}),vt=n=>({"button-enabled":n});function Wt(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",31),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.HoldCall())}),t.nrm(1,"span",32),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("disabled",!e.myCall.isHoldEnabled),t.R7$(3),t.JRh(t.bMT(4,2,"_i18n.Hold"))}}function zt(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",33),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.ResumeCall())}),t.nrm(1,"span",32),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("disabled",e.myCall.media.isNegotiationInProgress),t.R7$(3),t.JRh(t.bMT(4,2,"_i18n.Resume"))}}function Ut(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",34),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.joinAttendedConference())}),t.nrm(1,"span",35),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("disabled",!e.myCall.isConferenceEnabled),t.R7$(3),t.JRh(t.bMT(4,2,"_i18n.ConfMerge"))}}function Ht(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",36),t.nI1(1,"async"),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.openConferenceOptions())}),t.nrm(2,"span",35),t.j41(3,"p"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("disabled",!e.myCall.isConferenceEnabled||e.myCall.isConferenceCall&&!t.bMT(1,2,e.meetingListService.anyActivePrivateOrAudio$)),t.R7$(4),t.JRh(t.bMT(5,4,"_i18n.Conference"))}}function Kt(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",37),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);
1return l.Njj(o.openTransfer())}),t.nrm(1,"span",38),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("disabled",!e.myCall.isTransferEnabled),t.R7$(3),t.JRh(t.bMT(4,2,"_i18n.Transfer"))}}function Yt(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",39),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.JoinCall())}),t.nrm(1,"span",40),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("disabled",!e.myCall.isTransferEnabled),t.R7$(3),t.JRh(t.bMT(4,2,"_i18n.Join"))}}function Qt(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",41),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.ChangeVideoVisibility(!0))}),t.nrm(1,"span",42),t.k0s()}}function Jt(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",3),t.nVh(1,Wt,5,4,"button",9)(2,zt,5,4,"button",10),t.j41(3,"button",11),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.MuteCall())}),t.nrm(4,"span",12),t.j41(5,"p"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"button",13),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.openNewCall())}),t.nrm(9,"span",14),t.j41(10,"p"),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.nVh(13,Ut,5,4,"button",15),t.nI1(14,"async"),t.vZN(15,Ht,6,6,"button",16),t.nVh(16,Kt,5,4,"button",17)(17,Yt,5,4,"button",18),t.j41(18,"button",19),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.openAttTransfer())}),t.nrm(19,"span",20),t.j41(20,"p"),t.EFF(21),t.nI1(22,"translate"),t.k0s()(),t.j41(23,"button",21),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.callsService.record(o.myCall))}),t.nrm(24,"span",22),t.j41(25,"p"),t.EFF(26),t.nI1(27,"translate"),t.k0s()(),t.j41(28,"button",23),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.ChangeKeyPadVisibility(!0))}),t.nrm(29,"span",24),t.j41(30,"p"),t.EFF(31),t.nI1(32,"translate"),t.k0s()(),t.j41(33,"button",25),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.videoCall())}),t.nrm(34,"span",26),t.j41(35,"p"),t.EFF(36),t.nI1(37,"translate"),t.k0s()(),t.nrm(38,"div",27),t.j41(39,"button",28),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.DropCall())}),t.nrm(40,"span",29),t.k0s(),t.nVh(41,Qt,2,0,"button",30),t.k0s()}if(2&n){const e=t.XpG();t.R7$(),t.vxM(e.isHoldButton()?1:2),t.R7$(2),t.Y8G("disabled",!e.myCall.isMuteEnabled)("ngClass",t.eq3(34,ft,e.myCall.media.isMuted&&e.myCall.isMuteEnabled)),t.R7$(3),t.JRh(t.bMT(7,20,"_i18n.Mute")),t.R7$(2),t.Y8G("disabled",e.isDialing()),t.R7$(3),t.JRh(t.bMT(12,22,"_i18n.Dialer_NewCall")),t.R7$(2),t.vxM(e.myCall.isConferenceCall||!e.myCall.joinConferenceOtherConnectionId&&!t.bMT(14,24,e.meetingListService.IsMyPrivateConferenceActive$)?15:13),t.R7$(3),t.vxM(e.myCall.joinToConnectionId?17:16),t.R7$(2),t.Y8G("disabled",!e.myCall.isAttTransferEnabled),t.R7$(3),t.JRh(t.bMT(22,26,"_i18n.AttTransfer")),t.R7$(2),t.Y8G("ngClass",t.eq3(36,vt,e.myCall.isRecording&&!e.myCall.isRecordingPaused))("disabled",!e.myCall.isRecordingEnabled),t.R7$(3),t.JRh(t.bMT(27,28,"_i18n.Recording")),t.R7$(2),t.Y8G("disabled",!e.canSendDtmf()),t.R7$(3),t.JRh(t.bMT(32,30,"_i18n.Keypad")),t.R7$(2),t.Y8G("disabled",!e.myCall.isVideoEnabled)("ngClass",t.eq3(38,vt,e.isVideoActive())),t.R7$(3),t.JRh(t.bMT(37,32,"_i18n.Video")),t.R7$(3),t.Y8G("disabled",e.myCall.isTrying),t.R7$(2),t.vxM(e.isVideoActive()?41:-1)}}function Zt(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",4)(1,"call-dialpad",43,0),t.bIt("buttonPressed",function(o){l.eBV(e);const a=t.XpG();return l.Njj(a.callsService.sendDtmf(a.myCall,o))}),t.j41(3,"button",44),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.DropCall())}),t.nrm(4,"span",29),t.k0s(),t.j41(5,"button",45),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.ChangeKeyPadVisibility(!1))}),t.nrm(6,"span",46),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(),t.Y8G("disabled",!e.canSendDtmf()),t.R7$(2),t.Y8G("disabled",e.myCall.isTrying)}}function qt(n,p){1&n&&t.nrm(0,"span",48)}function te(n,p){1&n&&t.nrm(0,"span",49)}function ee(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",5)(1,"call-dialpad",43,1),t.bIt("buttonPressed",function(o){l.eBV(e);const a=t.XpG();return l.Njj(a.sendSearchKey(o))}),t.j41(3,"button",47),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.inCallSearchActionFired())}),t.nVh(4,qt,1,0,"span",48)(5,te,1,0,"span",49),t.k0s(),t.j41(6,"button",50),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.setInCallSearchAction(o.InCallSearchAction.None))}),t.nrm(7,"span",46),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(),t.Y8G("disabled",!1),t.R7$(3),t.vxM(e.searchTextPopulated?4:5)}}function ne(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",6)(1,"button",51),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.MuteCall())}),t.nrm(2,"span",12),t.k0s(),t.j41(3,"button",52),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.DropCall())}),t.nrm(4,"span",29),t.k0s(),t.j41(5,"button",53),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.ChangeVideoVisibility(!1))}),t.nrm(6,"span",54),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(),t.Y8G("disabled",!e.myCall.isMuteEnabled)("ngClass",t.eq3(3,ft,e.myCall.media.isMuted&&e.myCall.isMuteEnabled)),t.R7$(2),t.Y8G("disabled",e.myCall.isTrying)}}function ie(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",7)(1,"button",55),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.AnswerWithVideo())}),t.nrm(2,"span",56),t.j41(3,"p",57),t.nI1(4,"translate"),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"button",58),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.DivertToVoiceMail())}),t.nrm(8,"span",59),t.j41(9,"p",57),t.nI1(10,"translate"),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"button",60),t.nI1(14,"translate"),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.AnswerCall())}),t.nrm(15,"span",48),t.k0s(),t.j41(16,"button",61),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.DropCall())}),t.nrm(17,"span",29),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(),t.Y8G("disabled",!e.myCall.isAnswerEnabled||!e.isVideoAnswerAllowed()||e.myCall.isSendingWebrtcRequest),t.R7$(2),t.Y8G("title",t.mNQ(t.bMT(4,10,"_i18n.Video"))),t.R7$(2),t.JRh(t.bMT(6,12,"_i18n.Video")),t.R7$(4),t.Y8G("title",t.mNQ(t.bMT(10,14,"_i18n.SendToVmail"))),t.R7$(2),t.JRh(t.bMT(12,16,"_i18n.SendToVmail")),t.R7$(2),t.Y8G("disabled",!e.myCall.isAnswerEnabled||e.myCall.isSendingWebrtcRequest)("title",t.bMT(14,18,e.myCall.deviceDirectControl?"":"_i18n.CantAnswerWithoutDirectCallControl")),t.R7$(3),t.Y8G("disabled",e.myCall.isTrying)}}function oe(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",8)(1,"div",62)(2,"button",63),t.nI1(3,"async"),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.openConference())}),t.nrm(4,"span",64),t.j41(5,"div",65)(6,"span",66),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"span",67),t.EFF(10),t.nI1(11,"translate"),t.k0s()()(),t.j41(12,"button",68),t.nI1(13,"async"),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.openAttendedConference())}),t.nrm(14,"span",69),t.j41(15,"div",65)(16,"span",66),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"span",67),t.EFF(20),t.nI1(21,"translate"),t.k0s()()()(),t.j41(22,"div",70)(23,"button",71),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.DropCall())}),t.nrm(24,"span",29),t.k0s(),t.j41(25,"button",72),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.ChangeConferenceActionsVisibility(!1))}),t.nrm(26,"span",46),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("disabled",!e.myCall.isConferenceEnabled||e.myCall.isConferenceCall&&!t.bMT(3,7,e.meetingListService.anyActivePrivateOrAudio$)),t.R7$(5),t.SpI(" ",t.bMT(8,9,"_i18n.DirectAdd")," "),t.R7$(3),t.SpI(" ",t.bMT(11,11,"_i18n.DirectConferenceDesc")," "),t.R7$(2),t.Y8G("disabled",!e.myCall.isAttConferenceEnabled||e.myCall.isConferenceCall&&e.myCall.isAttConferenceEnabled&&!t.bMT(13,13,e.meetingListService.IsMyPrivateConferenceActive$)),t.R7$(5),t.SpI(" ",t.bMT(18,15,"_i18n.Consultative")," "),t.R7$(3),t.SpI(" ",t.bMT(21,17,"_i18n.ConsultativeConferenceDesc")," "),t.R7$(3),t.Y8G("disabled",e.myCall.isTrying)}}function le(n,p){1&n&&t.nrm(0,"div")}var N=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}(N||{});let ae=(()=>{class n{constructor(){this.meetingListService=(0,l.WQX)(d.X),this.router=(0,l.WQX)(r.Ix),this.callsService=(0,l.WQX)(w.z),this.utilityService=(0,l.WQX)(c.vQ),this.inCallKeyPadVisibilityChange=(0,y.CGW)(),this.conferenceActionsVisibilityChange=(0,y.CGW)(),this.inCallSearchActionChange=(0,y.CGW)(),this.searchKeyPressed=(0,y.
1CGW)(),this.searchActionFired=(0,y.CGW)(),this.videoVisibilityChange=(0,y.CGW)(),this.callActionFired=(0,y.CGW)(),this.CallButtonsType=N,this.InCallSearchAction=c.GS,this.LocalConnectionConferenceType=C.kqr}nav(e){this.router.navigate(e)}redirectToConference(){this.meetingListService.sortedConferences$.pipe((0,h.s)(1),(0,g.T)(e=>e.filter(i=>i.isAudio||i.isPrivate))).subscribe(e=>{const i=e.find(a=>a.audioConference.Id===this.myCall.conferenceId),o=e.find(a=>a.isPrivate);if(i)this.nav(i.routerLink);else if(o)this.nav(o.routerLink);else if(e.length>0){const a=e.find(m=>m.isActive)??e[0];this.nav(a.routerLink)}})}openConferenceOptions(){this.myCall.isConferenceCall?this.redirectToConference():this.ChangeConferenceActionsVisibility(!0)}openConference(){this.setInCallSearchAction(c.GS.Conference)}openAttendedConference(){this.setInCallSearchAction(c.GS.AttConference)}joinAttendedConference(){this.myCall.conferenceType!==C.kqr.LCCT_AdHocPrivate||this.myCall.joinConferenceOtherConnectionId?this.callsService.joinAttendedConference(this.myCall):this.openAttendedConference(),this.callActionFired.emit()}ChangeConferenceActionsVisibility(e){this.conferenceActionsVisibilityChange.emit(e)}openTransfer(){this.setInCallSearchAction(c.GS.Transfer)}openAttTransfer(){this.setInCallSearchAction(c.GS.AttTransfer)}openNewCall(){this.setInCallSearchAction(c.GS.NewCall)}isConferenceNotPrivate(){return this.myCall.isConferenceCall&&this.myCall.conferenceType!==C.kqr.LCCT_AdHocPrivate}isVideoActive(){return this.utilityService.isVideoActive(this.myCall)}isHoldButton(){return this.utilityService.isOnHold(this.myCall)}isVideoAnswerAllowed(){return 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.isVideoActive()||this.ChangeVideoVisibility(!0),this.callsService.answer(this.myCall,!0)}ChangeVideoVisibility(e){this.videoVisibilityChange.emit(e)}ChangeKeyPadVisibility(e){this.inCallKeyPadVisibilityChange.emit(e)}AnswerCall(){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.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,P.Kk)(this.myCall)}playDtmfSound(e){this.inCallDialPad&&this.type===N.InCallKeyPadActions&&this.canSendDtmf()?this.inCallDialPad.play$.next(e):this.inCallSearchContactDialPad&&this.type===N.InCallSearchContactActions&&this.inCallSearchContactDialPad.play$.next(e)}setInCallSearchAction(e){this.inCallSearchActionChange.emit(e)}sendSearchKey(e){this.searchKeyPressed.emit(e)}inCallSearchActionFired(){this.searchActionFired.emit()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["call-buttons"]],viewQuery:function(i,o){if(1&i&&(t.GBs(Lt,5),t.GBs(Xt,5)),2&i){let a;t.mGM(a=t.lsd())&&(o.inCallDialPad=a.first),t.mGM(a=t.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:8,vars:1,consts:[["inCallDialPad",""],["inCallSearchContactDialPad",""],[1,"call-actions-container"],[1,"established-call-actions"],[1,"in-call-keypad-actions"],[1,"in-call-search-contact-actions"],[1,"video-call-actions"],[1,"incoming-call-actions"],[1,"conference-call-actions"],["id","btnHold","type","button",1,"btnImage",3,"disabled"],["id","btnResume","type","button",1,"btnImage","button-pressed",3,"disabled"],["id","btnMute","type","button",1,"btnImage",3,"click","disabled","ngClass"],["app-microphone-alt-light-icon","",1,"svg-wrapper"],["id","btnNewCall","type","button",1,"btnImage",3,"click","disabled"],["app-plus-light-icon","",1,"svg-wrapper","svg-md"],["id","btnAttConferenceMerge","type","button",1,"btnImage",3,"disabled"],["id","btnConference","type","button",1,"btnImage",3,"disabled"],["id","btnTransfer","type","button",1,"btnImage",3,"disabled"],["id","btnJoin","type","button",1,"btnImage",3,"disabled"],["id","btnAttTransfer","type","button",1,"btnImage",3,"click","disabled"],["app-random-regular-icon","",1,"svg-wrapper","svg-md"],["id","btnRecord","type","button",1,"btnImage",3,"click","ngClass","disabled"],["app-waveform-lines-light-icon","",1,"svg-wrapper","svg-md"],["id","btnKeypad","type","button",1,"btnImage",3,"click","disabled"],["app-th-solid-icon","",1,"svg-wrapper","svg-md"],["id","btnVideo","type","button",1,"btnImage",3,"click","disabled","ngClass"],["app-video-light-icon","",1,"svg-wrapper","svg-md"],[1,"empty-row"],["id","btnCallDecline","type","button",1,"btnImage",3,"click","disabled"],["app-phone-circle-red-background-custom-icon","",1,"svg-wrapper"],["id","btnForward","type","button",1,"btnImage"],["id","btnHold","type","button",1,"btnImage",3,"click","disabled"],["app-pause-solid-icon","",1,"svg-wrapper","svg-md"],["id","btnResume","type","button",1,"btnImage","button-pressed",3,"click","disabled"],["id","btnAttConferenceMerge","type","button",1,"btnImage",3,"click","disabled"],["app-webmeeting-custom-icon","",1,"svg-wrapper","svg-md"],["id","btnConference","type","button",1,"btnImage",3,"click","disabled"],["id","btnTransfer","type","button",1,"btnImage",3,"click","disabled"],["app-call-transfer-custom-icon","",1,"svg-wrapper"],["id","btnJoin","type","button",1,"btnImage",3,"click","disabled"],["app-random-regular-icon","",1,"svg-wrapper"],["id","btnForward","type","button",1,"btnImage",3,"click"],["app-go-forward-custom-icon","",1,"svg-wrapper"],[3,"buttonPressed","disabled"],["id","btnKeyPadDecline","type","button",1,"btnImage",3,"click","disabled"],["id","btnKeyPadBack","type","button",1,"btnImage",3,"click"],["app-go-back-custom-icon","",1,"svg-wrapper","svg-md"],["id","btnSearchPerformAction","type","button",1,"btnImage",3,"click"],["app-phone-circle-green-background-custom-icon","",1,"svg-wrapper"],["app-disabled-phone-custom-icon","",1,"svg-wrapper"],["id","btnSearchContactBack","type","button",1,"btnImage",3,"click"],["id","btnVideoMute","type","button",1,"btnImage",3,"click","disabled","ngClass"],["
1id","btnVideoDecline","type","button",1,"btnImage",3,"click","disabled"],["id","btnVideoBack","type","button",1,"btnImage",3,"click"],["app-go-back-custom-icon","",1,"svg-wrapper"],["id","btnAnswerWithVideo","type","button",1,"btnImage",3,"click","disabled"],["app-video-light-icon","",1,"svg-wrapper"],[1,"line-clamp-1",3,"title"],["id","btnDivertToVoicemail","type","button",1,"btnImage",3,"click"],["app-envelope-light-icon","",1,"svg-wrapper","fillIconWhite"],["id","btnAnswer","type","button",1,"btnImage",3,"click","disabled","title"],["id","btnDecline","type","button",1,"btnImage",3,"click","disabled"],[1,"call-options-body"],["data-qa","conference-direct","type","button",1,"btn","btn-image","call-option-button",3,"click","disabled"],["app-call-transfer-custom-icon","",1,"call-option-button-icon","svg-lg","fillIconWhite"],[1,"call-option-button-text-container"],[1,"call-option-button-text-header"],[1,"call-option-button-text-desc"],["data-qa","conference-consultative","type","button",1,"btn","call-option-button",3,"click","disabled"],["app-random-regular-icon","",1,"call-option-button-icon","svg-lg","fillIconWhite"],[1,"call-options-footer"],["id","btnConferenceActionsDecline","type","button",1,"btnImage",3,"click","disabled"],["id","btnConferenceActionsBack","type","button",1,"btnImage",3,"click"]],template:function(i,o){if(1&i&&(t.j41(0,"div",2),t.nVh(1,Jt,42,40,"div",3)(2,Zt,7,2,"div",4)(3,ee,8,2,"div",5)(4,ne,7,5,"div",6)(5,ie,18,20,"div",7)(6,oe,27,19,"div",8)(7,le,1,0,"div"),t.k0s()),2&i){let a;t.R7$(),t.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:7)}},dependencies:[b.C,k.YU,I,U,et.L,ot,Et,Bt,Dt,mt,ht,Gt,u,$t,lt,_t,gt.l,$.D9,k.Jj],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.call-actions-container[_ngcontent-%COMP%]{display:flex;width:100%}.call-actions-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:var(--text-secondary)}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(33.3%,33.3%));width:100%;grid-row-gap:7px;align-items:end;justify-items:center}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;font-size:12px;background-color:transparent;border:0;padding:0;width:100%}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-top:11px;margin:0;width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnMute[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:15px;height:15px}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnNewCall[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnConference[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnAttConference[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnAttConferenceMerge[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{padding-top:3px}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnTransfer[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnJoin[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:24px;height:24px;padding-top:3px}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnAttTransfer[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{padding-top:2px}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnRecord[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnKeypad[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnVideo[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{padding-top:3px}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   .empty-row[_ngcontent-%COMP%]{height:1px;width:100%;grid-column:1/span 2}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnCallDecline[_ngcontent-%COMP%]{grid-column-start:2;align-self:center}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnCallDecline[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnForward[_ngcontent-%COMP%]{grid-column-start:3;align-self:center}.call-actions-container[_ngcontent-%COMP%]   .established-call-actions[_ngcontent-%COMP%]   #btnForward[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:24px;height:24px}.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}
1.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;border:0;padding:0}.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]   #btnKeyPadDecline[_ngcontent-%COMP%]{grid-column-start:2}.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]   #btnKeyPadDecline[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .in-call-keypad-actions[_ngcontent-%COMP%]   #btnKeyPadBack[_ngcontent-%COMP%]{grid-column-start:3}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;border:0;padding:0}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]   #btnSearchPerformAction[_ngcontent-%COMP%]{grid-column-start:2}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]   #btnSearchPerformAction[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .in-call-search-contact-actions[_ngcontent-%COMP%]   #btnSearchContactBack[_ngcontent-%COMP%]{grid-column-start:3}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]{display:grid;grid-template-rows:50fr 50fr;grid-template-columns:repeat(3,minmax(33.3%,33.3%));width:100%;grid-row-gap:17px;align-items:center;justify-items:center;margin-top:15px}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:transparent;align-items:center;justify-items:center;border:0;padding:0}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-top:15px;margin:0;font-size:10px}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnAnswerWithVideo[_ngcontent-%COMP%]{grid-column-start:1}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnAnswerWithVideo[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:24px;height:10px}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnDivertToVoicemail[_ngcontent-%COMP%]{grid-column-start:3}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnDivertToVoicemail[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:20px;height:9px}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnAnswer[_ngcontent-%COMP%]{grid-column-start:1}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnAnswer[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnDecline[_ngcontent-%COMP%]{grid-column-start:3}.call-actions-container[_ngcontent-%COMP%]   .incoming-call-actions[_ngcontent-%COMP%]   #btnDecline[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(33.3%,33.3%));width:100%;grid-row-gap:9px;align-items:center;justify-items:center}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:transparent;align-items:center;justify-items:center;border:0;padding:0;align-self:center}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]   #btnVideoMute[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:15px;height:24px}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]   #btnVideoDecline[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .video-call-actions[_ngcontent-%COMP%]   #btnVideoBack[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:24px;height:24px}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;gap:12px}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:12px;grid-column-gap:12px;min-height:200px;max-height:200px}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]   .call-option-button[_ngcontent-%COMP%]{display:flex;height:100%;justify-content:start;align-items:center;flex-direction:column;background-color:transparent;border:0;padding:0}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]   .call-option-button[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]   .call-option-button[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]   .call-option-button[_ngcontent-%COMP%]   .call-option-button-text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;text-wrap:wrap;flex-grow:1}
1.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]   .call-option-button[_ngcontent-%COMP%]   .call-option-button-text-container[_ngcontent-%COMP%]   .call-option-button-text-header[_ngcontent-%COMP%]{font-size:14px;font-weight:700;padding:4px}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-body[_ngcontent-%COMP%]   .call-option-button[_ngcontent-%COMP%]   .call-option-button-text-container[_ngcontent-%COMP%]   .call-option-button-text-desc[_ngcontent-%COMP%]{font-size:12px;padding:4px}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-footer[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(33.3%,33.3%));width:100%;grid-row-gap:9px;align-items:center;justify-items:center}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-footer[_ngcontent-%COMP%]   #btnConferenceActionsDecline[_ngcontent-%COMP%]{grid-column-start:2}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-footer[_ngcontent-%COMP%]   #btnConferenceActionsDecline[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:39px;height:39px}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .call-options-footer[_ngcontent-%COMP%]   #btnConferenceActionsBack[_ngcontent-%COMP%]{grid-column-start:3}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;border:0;padding:0}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}.call-actions-container[_ngcontent-%COMP%]   .conference-call-actions[_ngcontent-%COMP%]   .btnImage[_ngcontent-%COMP%]:disabled{opacity:.4}.call-actions-container[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{display:block;fill:var(--text-secondary)}.call-actions-container[_ngcontent-%COMP%]   button.button-pressed[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   button.button-enabled[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{fill:var(--bg-secondary)!important}.call-actions-container[_ngcontent-%COMP%]   button.button-pressed[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .call-actions-container[_ngcontent-%COMP%]   button.button-enabled[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--bg-secondary)}svg[_ngcontent-%COMP%]{fill:var(--text-secondary)}"]})}}return n})();var bt=s(13961),ce=s(88141),H=s(7673),se=s(19630),at=s(77498),yt=s(38561),re=s(54795),Mt=s(44652),Pt=s(16444),Ot=s(24337),pe=s(40544),K=s(60572),Z=s(46062),Y=s(73042),ct=s(14414),de=s(49371),ue=s(97684),xt=s(9852);const Ce=["callNumber"];function me(n,p){1&n&&t.eu8(0)}function he(n,p){1&n&&t.eu8(0)}function _e(n,p){1&n&&t.eu8(0)}function ge(n,p){if(1&n&&(t.j41(0,"div",5)(1,"div",6),t.EFF(2),t.k0s(),t.DNE(3,me,1,0,"ng-container",7)(4,he,1,0,"ng-container",7)(5,_e,1,0,"ng-container",7),t.k0s()),2&n){const e=t.XpG(),i=t.sdS(5),o=t.sdS(7),a=t.sdS(11);t.R7$(),t.xc7("font-size",e.adaptiveFontSize,"px"),t.R7$(),t.JRh(e.myCall.phone),t.R7$(),t.Y8G("ngTemplateOutlet",o),t.R7$(),t.Y8G("ngTemplateOutlet",i),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function fe(n,p){1&n&&t.eu8(0)}function ve(n,p){1&n&&t.eu8(0)}function be(n,p){1&n&&t.eu8(0)}function ye(n,p){if(1&n&&(t.j41(0,"div",5)(1,"div",6),t.EFF(2),t.nI1(3,"async"),t.k0s(),t.DNE(4,fe,1,0,"ng-container",7)(5,ve,1,0,"ng-container",7)(6,be,1,0,"ng-container",7),t.k0s()),2&n){const e=t.XpG(),i=t.sdS(5),o=t.sdS(7),a=t.sdS(11);t.R7$(2),t.JRh(t.bMT(3,4,e.myCall.media.toneSend$)),t.R7$(2),t.Y8G("ngTemplateOutlet",o),t.R7$(),t.Y8G("ngTemplateOutlet",i),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Me(n,p){1&n&&t.eu8(0)}function Pe(n,p){1&n&&t.eu8(0)}function Oe(n,p){if(1&n&&(t.j41(0,"div",5),t.DNE(1,Me,1,0,"ng-container",7)(2,Pe,1,0,"ng-container",7),t.k0s()),2&n){t.XpG();const e=t.sdS(7),i=t.sdS(11);t.R7$(),t.Y8G("ngTemplateOutlet",e),t.R7$(),t.Y8G("ngTemplateOutlet",i)}}function xe(n,p){1&n&&t.nrm(0,"div",5)}function we(n,p){if(1&n&&(t.j41(0,"a",13),t.nI1(1,"translate"),t.EFF(2," ("),t.j41(3,"span",14),t.EFF(4,"CRM"),t.k0s(),t.EFF(5,") "),t.k0s()),2&n){const e=t.XpG(5);t.Y8G("title",t.mNQ(t.bMT(1,3,"_i18n.CrmContactPage")))("href",null==e.myCall.contact?null:e.myCall.contact.crmUrl,t.B4B)}}function Ie(n,p){if(1&n&&(t.j41(0,"div",11)(1,"span",12),t.EFF(2),t.k0s(),t.nVh(3,we,6,5,"a",13),t.k0s()),2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(),t.Y8G("title",e),t.R7$(),t.JRh(e),t.R7$(),t.vxM(null==i.myCall.contact||!i.myCall.contact.crmUrl||!(i.myCall.prepe
1ndNameToCID?i.isLastDisplayedItem(e):i.isFirstDisplayedItem(e))||i.myCall.contact.isPhonebookContact()&&i.showCrmUrlInPhonebookContactName()?-1:3)}}function Se(n,p){1&n&&t.eu8(0)}function Te(n,p){if(1&n&&t.DNE(0,Se,1,0,"ng-container",7),2&n){t.XpG(4);const e=t.sdS(9);t.Y8G("ngTemplateOutlet",e)}}function Ve(n,p){if(1&n&&(t.j41(0,"li",10),t.nVh(1,Ie,4,3,"div",11),t.nVh(2,Te,1,1,"ng-container"),t.k0s()),2&n){const e=p.$implicit,i=p.$index,o=p.$count,a=t.XpG(3);t.Y8G("title",e),t.R7$(),t.vxM(a.isInternalContactNameMatched(e)?-1:1),t.R7$(),t.vxM(a.isInternalContact&&(a.myCall.prependNameToCID?i===o-1:0===i)?2:-1)}}function ke(n,p){if(1&n&&(t.j41(0,"ul",8),t.Z7z(1,Ve,3,3,"li",10,t.fX1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Dyx(e.displayedParts)}}function je(n,p){if(1&n&&(t.j41(0,"a",13),t.nI1(1,"translate"),t.EFF(2," ("),t.j41(3,"span",14),t.EFF(4,"CRM"),t.k0s(),t.EFF(5,") "),t.k0s()),2&n){const e=t.XpG(3);t.Y8G("title",t.mNQ(t.bMT(1,3,"_i18n.CrmContactPage")))("href",null==e.myCall.contact?null:e.myCall.contact.crmUrl,t.B4B)}}function Ae(n,p){if(1&n&&(t.j41(0,"div",9)(1,"span",15),t.EFF(2),t.nI1(3,"lforfl"),t.nI1(4,"async"),t.k0s(),t.nVh(5,je,6,5,"a",13),t.k0s()),2&n){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(4,4,t.bMT(3,2,e.myCall.contact))),t.R7$(3),t.vxM(null!=e.myCall.contact&&e.myCall.contact.crmUrl?5:-1)}}function Re(n,p){1&n&&(t.j41(0,"div",8)(1,"span",16),t.EFF(2,"Unknown"),t.k0s()()),2&n&&(t.R7$(),t.Y8G("translate","_i18n.Unknown"))}function Ne(n,p){if(1&n&&t.nVh(0,Re,3,1,"div",8),2&n){const e=t.XpG(2);t.vxM(e.isShowUnknown?0:-1)}}function Fe(n,p){if(1&n&&(t.nVh(0,ke,3,0,"ul",8)(1,Ae,6,6,"div",9),t.DNE(2,Ne,1,1,"ng-template",null,4,t.C5r)),2&n){const e=t.XpG();t.vxM(e.displayedParts.length>0?0:e.isExternalCrmContact?1:-1)}}function Ee(n,p){if(1&n){const e=t.RV6();t.j41(0,"a",20),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.openClientCrmUrl())}),t.j41(1,"span",21),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",22),t.k0s()}2&n&&(t.R7$(2),t.JRh(t.bMT(3,1,"_i18n.LookUp")))}function Be(n,p){if(1&n){const e=t.RV6();t.j41(0,"a",23),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.addToContacts(o.myCall))}),t.nrm(1,"span",24),t.j41(2,"span",21),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}2&n&&(t.R7$(3),t.JRh(t.bMT(4,1,"_i18n.MenuAddContact")))}function De(n,p){if(1&n&&(t.j41(0,"div",17),t.nVh(1,Ee,5,3,"a",18),t.nI1(2,"async"),t.nVh(3,Be,5,3,"a",19),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.vxM(t.bMT(2,2,e.hasClientCrmIntegration$)&&e.canOpenClientCrmUrl?1:-1),t.R7$(2),t.vxM(e.canBeAdded?3:-1)}}function Ge(n,p){if(1&n&&(t.j41(0,"div",11)(1,"span",27),t.EFF(2),t.k0s(),t.j41(3,"a",29),t.nI1(4,"translate"),t.EFF(5," ("),t.j41(6,"span",14),t.EFF(7,"CRM"),t.k0s(),t.EFF(8,") "),t.k0s()()),2&n){const e=t.XpG(),i=t.XpG(2);t.R7$(),t.Y8G("title",e),t.R7$(),t.JRh(e),t.R7$(),t.Y8G("title",t.mNQ(t.bMT(4,5,"_i18n.CrmContactPage")))("href",null==i.myCall.contact?null:i.myCall.contact.crmUrl,t.B4B)}}function $e(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",25),t.nVh(1,Ge,9,7,"div",11),t.j41(2,"div",11)(3,"span",27),t.EFF(4),t.k0s(),t.j41(5,"a",28),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.viewContact(o.myCall.contact))}),t.EFF(6," ("),t.j41(7,"span",14),t.EFF(8,"3CX"),t.k0s(),t.EFF(9,") "),t.k0s()()()}if(2&n){const e=p,i=t.XpG(2);t.R7$(),t.vxM(i.showCrmUrlInPhonebookContactName()?1:-1),t.R7$(2),t.Y8G("title",e),t.R7$(),t.JRh(e),t.R7$(),t.Y8G("title",t.mNQ(e))}}function Le(n,p){if(1&n&&(t.j41(0,"div",26)(1,"span",30),t.EFF(2),t.nI1(3,"lforfl"),t.nI1(4,"async"),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(4,3,t.bMT(3,1,e.myCall.contact)))}}function Xe(n,p){if(1&n&&(t.nVh(0,$e,10,5,"div",25),t.nI1(1,"lforfl"),t.nI1(2,"async"),t.vZN(3,Le,5,5,"div",26)),2&n){let e;const i=t.XpG();
1t.vxM((e=i.myCall.contact.isPhonebookContact()&&t.bMT(2,3,t.bMT(1,1,i.myCall.contact)))?0:i.isExtensionContact?3:-1,e)}}function We(n,p){if(1&n&&(t.j41(0,"div",31),t.nrm(1,"duration",32),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("startedAt",e.myCall.startedAt)}}var D=function(n){return n[n.Normal=0]="Normal",n[n.InCallKeyPad=1]="InCallKeyPad",n[n.OnlyDuration=2]="OnlyDuration",n[n.NoInfo=3]="NoInfo",n}(D||{});let ze=(()=>{class n{constructor(){this.integrationService=(0,l.WQX)(se.a),this.router=(0,l.WQX)(r.Ix),this.phonebook=(0,l.WQX)(re.m),this.myPhone=(0,l.WQX)(Pt.gx),this.modalService=(0,l.WQX)(Ot.B),this.contactSearcherService=(0,l.WQX)(Mt.D),this.mode=D.Normal,this.subscriptions=new bt.yU,this.CallerInfoMode=D}ngOnInit(){this.hasClientCrmIntegration$=this.integrationService.hasClientCrmIntegration$}ngOnDestroy(){this.subscriptions.unsubscribe()}get adaptiveFontSize(){return this.myCall&&this.myCall.phone?(0,c.bG)(this.myCall.phone.length,24,13):24}get canOpenClientCrmUrl(){return"MakeCall"!==this.myCall.phone&&this.myCall.otherPartyDnType===C.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(e){return e===this.myCall.contact.firstNameLastName.trim()||e===this.myCall.contact.lastNameFirstName.trim()||e===this.lastFirstSplitByComma(this.myCall.contact)}showCrmUrlInPhonebookContactName(){const e=this.myCall.displayName.split(":");return!!this.myCall.contact?.crmUrl&&(this.myCall.displayName===this.myCall.phone||e.some(i=>this.matchesName(i))&&this.myCall.contact?.type===Z.eE.CompanyPhonebook||!e.some(i=>!this.isInternalContactNameMatched(i))||e.filter(i=>this.matchesName(i)).length>1&&(this.myCall.contact?.type===Z.eE.PersonalPhonebook||this.myCall.contact?.type===Z.eE.DepartmentPhonebook))}get displayedPartsNotMatched(){return this.displayedParts.filter(e=>!this.isInternalContactNameMatched(e))}isLastDisplayedItem(e){return this.displayedPartsNotMatched.length>0&&this.displayedPartsNotMatched[this.displayedPartsNotMatched.length-1]===e}isFirstDisplayedItem(e){return this.displayedPartsNotMatched.length>0&&this.displayedPartsNotMatched[0]===e}get isExternalCrmContact(){return this.myCall.contact?.type===Z.eE.External}get isExtensionContact(){return this.myCall.contact?.type===Z.eE.Extension}get isShowUnknown(){return Y.Q.isNullOrEmpty(this.myCall.phone)}get displayedParts(){const e=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(e.filter(i=>i!==this.myCall.phone))]}isInternalContactNameMatched(e){return this.isInternalContact&&this.matchesName(e)}get isInternalContact(){return this.myCall.contact.isPhonebookContact()||this.isExtensionContact}lastFirstSplitByComma(e){return[e.lastName,e.firstName].filter(Boolean).join(", ").trim()}viewContact(e){!e||!e.id||this.router.navigate(["contacts/view",e.type,e.id])}get canBeAdded(){return this.myCall.contact?.canBeAddedToPhonebook()&&!this.myCall.contact.crmUrl&&"LiveChat"!==this.myCall.phone&&this.myCall.otherPartyDnType===C.Jhl.ExternalLine&&0!==this.myCall.phone.length}addToContacts(e){const i=this.myPhone.myPhoneSession.pipe((0,g.T)(o=>o.systemParameters.IsLastFirst));this.phonebook.addToContact(e.phone,pe.r.Compact).pipe((0,ce.M)(()=>{this.myCall.isUrlAutoOpened=!0}),(0,at.c)(500),(0,T.n)(({model:o,creationResults:a})=>{const m=a.some(S=>(S.type===K.Of.Personal||S.type===K.Of.Company||S.type===K.Of.Department)&&S.status===K.cZ.Success),f=a.find(S=>(S.type===K.Of.Crm||S.type===K.Of.Microsoft365)&&S.status===K.cZ.Success)?.createdContact;return o&&m?this.requestLocalContactCreated$(e,o).pipe((0,g.T)(S=>(S.crmUrl=f?.crmUrl??"",S))):(0,H.of)(f)}),(0,F.E)(i),(0,h.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 m=(a?o.lastNameFirstName:o.firstNameLastName).trim();this.myCall.displayName=e.prependNameToCID?`${e.displayName}${m?":"+m:""}`:`${m?m+":":""}${e.displayName}`}},error:o=>{this.modalService.error(o)}})}requestLocalContactCreated$(e,i){return i&&i.hasPhoneNumber(e.phone)?this.contactSearcherService.requestContactByNumber(e.phone):(0,H.of)(yt.a3)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["caller-info"]],viewQuery:function(i,o){if(1&i&&t.GBs(Ce,5),2&i){let a;t.mGM(a=t.lsd())&&(o.callNumber=a.first)}},inputs:{myCall:"myCall",mode:"mode",callState:"callState"},decls:12,vars:1,consts:[["displayName",""],["contactActions",""],["phonebookContactLink",""],["callDuration",""],["unknown",""],[1,"call-info"],[1,"callNumber"],[4,"ngTemplateOutlet"],[1,"callDisplayName","call-info-section"],[1,"callDisplayName","call-info-section","d-flex","align-items-center","justify-content-center","mb-1","gap-1"],[1,"d-flex","flex-column","justify-content-center","mb-1","gap-1",3,"title"],[1,"d-flex","align-items-center","justify-content-center","gap-1"],["data-qa","display-name",1,"text-truncate",3,"title"],["data-qa","crm-link","target","_blank",1,"pointer",3,"href","title"],[1,"text-underline"],["data-qa","display-name-external",1,"text-truncate"],[3,"translate"],[1,"call-info-section","d-flex","flex-column","gap-1","my-1"],["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,"text-truncate"],["app-search-regular-icon","",1,"svg-xxs","ms-1"],["data-qa","add-contact-link",1,"action-link","pointer","d-flex","align-items-center","justify-content-center","text-truncate",3,"click"],["app-plus-solid-icon","",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",1,"text-truncate",3,"title"],["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){if(1&i&&(t.nVh(0,ge,6,6,"div",5)(1,ye,7,6,"div",5)(2,Oe,3,2,"div",5)(3,xe,1,0,"div",5),t.DNE(4,Fe,4,1,"ng-template",null,0,t.C5r)(6,De,4,4,"ng-template",null,1,t.C5r)(8,Xe,4,5,"ng-template",null,2,t.C5r)(10,We,2,1,"ng-template",null,3,t.C5r)),2&i){let a;t.vxM((a=o.mode)===o.CallerInfoMode.Normal?0:a===o.CallerInfoMode.InCallKeyPad?1:a===o.CallerInfoMode.OnlyDuration?2:3)}},dependencies:[k.T3,$.Mm,ct.b,de.K,ue.U,xt._,$.D9,k.Jj],styles:["[_nghost-%COMP%]{min-height:0;display:flex;flex-direction:column;width:100%;align-items:center;color:var(--text-primary)}.call-info[_ngcontent-%COMP%]{min-height:0;display:flex;flex-direction:column;justify-self:center;align-items:center;width:100%}
1.call-info-section[_ngcontent-%COMP%]{width:205px}.callDisplayName[_ngcontent-%COMP%]{overflow-y:auto;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);fill:var(--text-tertiary)}.action-link[_ngcontent-%COMP%]:hover{text-decoration:underline;transition:.2s;color:var(--text-secondary);fill:var(--text-secondary)}.call-duration[_ngcontent-%COMP%]{font-size:11px;height:15px}"]})}}return n})();var Q=s(94681),nt=s(33971),st=s(3013),Ue=s(5739),He=s(74743),wt=s(96081),Ke=s(19543),Ye=s(55645),Qe=s(47548);const Je=["scrollableElement"],It=n=>({item:n});function Ze(n,p){1&n&&t.eu8(0)}function qe(n,p){if(1&n){const e=t.RV6();t.j41(0,"li",5),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG();return l.Njj(a.itemSelected(o))}),t.DNE(1,Ze,1,0,"ng-container",6),t.k0s()}if(2&n){const e=p.$implicit;t.XpG();const i=t.sdS(9);t.R7$(),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.eq3(2,It,e))}}function tn(n,p){if(1&n&&(t.j41(0,"li",7),t.nrm(1,"span",8),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("title",e.error)}}function en(n,p){1&n&&(t.j41(0,"li",7),t.nrm(1,"span",9),t.k0s())}function nn(n,p){1&n&&t.eu8(0)}function on(n,p){if(1&n){const e=t.RV6();t.j41(0,"li",5),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG(3);return l.Njj(a.itemSelected(o))}),t.DNE(1,nn,1,0,"ng-container",6),t.k0s()}if(2&n){const e=p.$implicit;t.XpG(3);const i=t.sdS(9);t.R7$(),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.eq3(2,It,e))}}function ln(n,p){if(1&n&&(t.nVh(0,tn,2,1,"li",7),t.nVh(1,en,2,0,"li",7),t.Z7z(2,on,2,4,"li",4,t.fX1)),2&n){const e=t.XpG();t.vxM("error"===e.status?0:-1),t.R7$(),t.vxM("loading"===e.status?1:-1),t.R7$(),t.Dyx(e.contacts)}}function an(n,p){1&n&&t.nVh(0,ln,4,2),2&n&&t.vxM("unavailable"!==p.status?0:-1)}function cn(n,p){if(1&n&&(t.nrm(0,"span",13),t.nI1(1,"translate")),2&n){const e=t.XpG().item,i=t.XpG();t.Y8G("truncatedText",t.mNQ(t.bMT(1,2,e.contact.type===i.ContactType.SystemExtension?"_i18n.GroupVoicemail":"_i18n.VoiceMail")))}}function sn(n,p){if(1&n&&(t.nrm(0,"span",13),t.nI1(1,"contactPhoneType"),t.nI1(2,"async"),t.nI1(3,"userProfile"),t.nI1(4,"async")),2&n){const e=t.XpG().item;t.Y8G("truncatedText",t.ai1("",e.number," ",t.bMT(2,6,t.i5U(1,3,e.contact,e.number))||t.bMT(4,12,t.brH(3,8,e.contact.profile,e.contact.isBusy,e.contact.isRegistered))))}}function rn(n,p){if(1&n&&(t.nrm(0,"app-avatar",10),t.j41(1,"div",11)(2,"div",12),t.nrm(3,"span",13),t.nI1(4,"lforfl"),t.nI1(5,"async"),t.k0s(),t.j41(6,"div",14),t.nVh(7,cn,2,4,"span",13)(8,sn,5,14,"span",13),t.k0s()()),2&n){const e=p.item;t.Y8G("ext",e.contact),t.R7$(3),t.Y8G("truncatedText",t.mNQ(t.bMT(5,7,t.i5U(4,4,e.contact,e.name)))),t.R7$(4),t.vxM(e.isVoicemail?7:8)}}let St=(()=>{class n{constructor(){this.contactSearcher=(0,l.WQX)(Mt.D),this.runtimeSearch=(0,l.WQX)(st.B),this.contactSelected=(0,y.CGW)(),this.ContactType=Z.eE,this.requestCount=5}ngOnInit(){this.searchResult$=this.runtimeSearch.getContacts(this.searchContext),this.crmSearchResult$=this.runtimeSearch.getCrmContacts(this.searchContext)}search(e){void 0!==this.scrollableList&&(this.scrollableList.nativeElement.scrollTop=0),this.runtimeSearch.search$.next(e)}itemSelected(e){this.contactSelected.emit(e instanceof Q.q?e:e instanceof yt.KA?new Q.q({contact:e}):e)}requestContact(e){const i=(e||"").trim();i||this.itemSelected(void 0),(0,nt.B9)(i)?this.contactSearcher.requestContactByEmail(i,this.searchContext).pipe((0,h.s)(1)).subscribe(o=>{const a=new Q.q({name:o.firstNameLastName,number:i,contact:o.isDummy?void 0:o,isEmail:!0});this.itemSelected(a)}):this.contactSearcher.requestContactByNumber(i,this.searchContext).pipe((0,h.s)(1)).subscribe(o=>{if(o.isDummy){const a=new Q.q({name:"",number:i});this.itemSelected(a)}else{const a=new Q.q({name:o.firstNameLastName,number:i,contact:o});this.itemSelected(a)}})}listMaxHeight(){return this.numberOfVisibleContacts?35*this.numberOfVisibleContacts:105}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["call-search-list"]],viewQuery:function(i,o){if(1&i&&t.GBs(Je,5),2&i){let a;t.mGM(a=t.lsd())&&(o.scrollableList=a.first)}},inputs:{searchContext:"searchContext",numberOfVisibleContacts:"numberOfVisibleContacts"},outputs:{contactSelected:"contactSelected"},features:[t.Jv_([{provide:st.X,useValue:20},st.B])],decls:10,vars:7,consts:[["scrollableElement",""],["dialerContactsListTemplate",""],[1,"contact-search-list-container"],["id","scrollableList",1,"search-nav-ul"],[1,"search-result","pointer"],[1,"search-result","pointer",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"crm-tile","d-flex","justify-content-center","p-3","gap-2"],["app-exclamation-circle-solid-icon","",1,"customSVGIcons","svg-sm",3,"title"],["app-spinner-regular-icon","",1,"customSVGIcons","svg-sm"],[3,"ext"],[1,"search-result-info"],[1,"search-result-name"],[1,"search-result-message",3,"truncatedText"],[1,"search-result-number"]],template:function(i,o){if(1&i&&(t.j41(0,"div",2)(1,"ul",3,0),t.Z7z(3,qe,2,4,"li",4,t.fX1),t.nI1(5,"async"),t.nVh(6,an,1,1),t.nI1(7,"async"),t.k0s()(),t.DNE(8,rn,9,9,"ng-template",null,1,t.C5r)),2&i){let a;t.R7$(),t.xc7("max-height",o.listMaxHeight(),"px"),t.R7$(2),t.Dyx(t.bMT(5,3,o.searchResult$)),t.R7$(3),t.vxM((a=t.bMT(7,5,o.crmSearchResult$))?6:-1,a)}},dependencies:[k.T3,Ue.b,He.a,wt.f,Qe.N,Ke.R,xt._,Ye.z,$.D9,k.Jj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative;width:100%}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]{min-height:30px}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]{overflow-y:auto;opacity:1;max-height:105px;margin:0;padding:0;width:100%}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]{display:flex;flex-direction:row;list-style:none;align-items:center}.theme-dark   [_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]:hover{background-color:var(--text-tertiary)}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]:hover   .search-result-info[_ngcontent-%COMP%]{color:var(--text-tertiary-hover)}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]   .search-result-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;color:var(--text-tertiary)}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]   .search-result-info[_ngcontent-%COMP%]   .search-result-name[_ng
1content-%COMP%]{display:flex;font-size:13px}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]   .search-result-info[_ngcontent-%COMP%]   .search-result-number[_ngcontent-%COMP%]{display:flex;font-size:11px}[_nghost-%COMP%]   .contact-search-list-container[_ngcontent-%COMP%]   .search-nav-ul[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]   .search-result-info[_ngcontent-%COMP%]   .search-result-message[_ngcontent-%COMP%]{flex:1 1 auto;width:0}"]})}}return n})();var rt=s(96049),pn=s(57786),W=s(5964),pt=s(23294),dt=s(58664),G=s(89417);let Tt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.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(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})();var dn=s(99172),un=s(30782),Cn=s(71985),mn=s(3417),hn=s.n(mn);let ut=(()=>{class n{constructor(){this.el=(0,l.WQX)(t.aKT)}ngOnChanges(e){e.srcObject&&void 0!==this.srcObject&&(this.el.nativeElement.srcObject=this.srcObject)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=t.FsC({type:n,selectors:[["","srcObject",""]],inputs:{srcObject:"srcObject"},features:[t.OA$]})}}return n})();var L=s(11514),Vt=s(43358),_n=s(19859);let gn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.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.6-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(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})(),fn=(()=>{class n{constructor(){this.idle=(0,l.WQX)(Vt.vw),this.state="open",this.dropClick=(0,y.CGW)(),this.exitFullscreenClick=(0,y.CGW)();const e=this.idle;e.setIdle(3),e.setTimeout(!1),e.setInterrupts(Vt.I9),this.onIdleEndSubscription=e.onIdleEnd.subscribe(()=>{this.state="open"}),this.onIdleStartSubscription=e.onIdleStart.subscribe(()=>{this.state="hidden"}),this.idle.watch()}ngOnDestroy(){this.idle.stop(),this.onIdleEndSubscription.unsubscribe(),this.onIdleStartSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["fullscreen-control-buttons"]],hostVars:1,hostBindings:function(i,o){2&i&&t.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&&(t.j41(0,"button",0),t.bIt("click",function(m){return o.dropClick.emit(m)}),t.nrm(1,"i",1),t.k0s(),t.j41(2,"button",2),t.bIt("click",function(m){return o.exitFullscreenClick.emit(m)}),t.nrm(3,"i",3),t.k0s())}
1,dependencies:[_n.v,gn],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,L.hZ)("linearAnimation",[(0,L.wk)("hidden",(0,L.iF)({bottom:"-300px"})),(0,L.wk)("open",(0,L.iF)({bottom:"50px"})),(0,L.kY)("open => hidden",(0,L.i0)("300ms linear")),(0,L.kY)("hidden => open",(0,L.i0)("100ms linear"))])]}})}}return n})(),vn=(()=>{class n{transform(e){if(!e)return null;const i=e.getVideoTracks();return 0===i.length?null:new MediaStream(i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=t.EJ8({name:"videoOnly",type:n,pure:!0})}}return n})();const bn=["container"],yn=(n,p)=>({containerNormal:n,containerFullscreen:p}),Mn=n=>({"toaster-inner":n});function Pn(n,p){1&n&&t.nrm(0,"i",3)}function On(n,p){if(1&n&&(t.nrm(0,"video",4),t.nI1(1,"async"),t.nI1(2,"videoOnly")),2&n){const e=t.XpG();t.Y8G("srcObject",t.bMT(2,3,t.bMT(1,1,null==e.media?null:e.media.remoteStream$)))}}function xn(n,p){if(1&n&&(t.nrm(0,"video",6),t.nI1(1,"videoOnly")),2&n){const e=t.XpG();t.HbH(t.VkB("mirrorVideo ",e.media.isVideoReceived?"homeVideo":"awayVideo")),t.Y8G("srcObject",t.bMT(1,4,null==e.media?null:e.media.localStream))}}function wn(n,p){if(1&n){const e=t.RV6();t.j41(0,"fullscreen-control-buttons",7),t.bIt("dropClick",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.drop())})("exitFullscreenClick",function(o){l.eBV(e);const a=t.XpG();return l.Njj(a.exitFullscreen(o))}),t.k0s()}}function kt(n){return!!n&&n.getVideoTracks().some(p=>!p.muted)}let In=(()=>{class n{constructor(){this.cd=(0,l.WQX)(y.gRc),this.router=(0,l.WQX)(r.Ix),this.media=un.d,this.backgroundColor="",this.dropClick=(0,y.CGW)(),this.isFullscreen=!1,this.isVideoActive$=(0,H.of)(!1)}isAudioOnly(){return!this.media.isNegotiationInProgress&&!this.media.isVideoReceived}drop(){this.dropClick.emit(!0)}exitFullscreen(e){e.stopPropagation(),this.removeFullscreen()}openFullscreen(e){if(e.shiftKey)this.router.navigate(["/webrtc",this.media.lastWebRTCState.Id]);else try{this.fs.request()}catch{}}ngAfterViewInit(){this.fs=hn()(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(e){e.media&&(this.removeFullscreen(),this.isVideoActive$=this.media?this.media.remoteStream$.pipe((0,T.n)(i=>i?new Cn.c(o=>{const a=()=>o.next(kt(i));return i.getTracks().forEach(m=>{m.onmute=a,m.onunmute=a}),()=>{}}).pipe((0,dn.Z)(kt(i))):(0,H.of)(!1))):(0,H.of)(!1))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["video-output"]],viewQuery:function(i,o){if(1&i&&t.GBs(bn,5),2&i){let a;t.mGM(a=t.lsd())&&(o.container=a.first)}},inputs:{media:"media",backgroundColor:"backgroundColor"},outputs:{dropClick:"dropClick"},features:[t.OA$],decls:7,vars:13,consts:[["container",""],[1,"w-100",3,"click","ngClass"],[2,"position","relative","width","100%","height","100%",3,"ngClass"],[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){if(1&i){const a=t.RV6();t.j41(0,"div",1,0),t.bIt("click",function(f){return l.eBV(a),l.Njj(o.openFullscreen(f))}),t.j41(2,"div",2),t.nVh(3,Pn,1,0,"i",3),t.nVh(4,On,3,5,"video",4),t.nVh(5,xn,2,6,"video",5),t.nVh(6,wn,1,0,"fullscreen-control-buttons"),t.k0s()()}2&i&&(t.Y8G("ngClass",t.l_i(8,yn,!o.isFullscreen,o.isFullscreen)),t.R7$(2),t.xc7("background-color",o.backgroundColor||"#222121"),t.Y8G("ngClass",t.eq3(11,Mn,!o.isFullscreen)),t.R7$(),t.vxM(o.isAudioOnly()?3:-1),t.R7$(),t.vxM(o.media.isVideoReceived||!o.media.isVideoSend?4:-1),t.R7$(),t.vxM(o.media.isVideoSend?5:-1),t.R7$(),t.vxM(o.isFullscreen?6:-1))},dependencies:[k.YU,ut,fn,k.Jj,vn],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)}"]})}}return n})();var jt=s(13220);const Sn=["callContent"],Tn=["callButtons"],Vn=["searchList"],kn=["searchInput"];function jn(n,p){1&n&&t.nrm(0,"span",14)}function An(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",7)(1,"div",11)(2,"div",12)(3,"input",13,2),t.nI1(5,"translate"),t.bIt("ngModelChange",function(o){l.eBV(e);const a=t.XpG();return l.Njj(a.searchNumberChanged(o))}),t.k0s(),t.nVh(6,jn,1,0,"span",14),t.k0s()(),t.j41(7,"call-search-list",15,3),t.bIt("contactSelected",function(o){l.eBV(e);const a=t.XpG();return l.Njj(a.onContactSelected(o))}),t.k0s(),t.nrm(9,"div",16),t.k0s()}if(2&n){const e=t.XpG();t.R7$(3),t.Y8G("placeholder",t.mNQ(t.bMT(5,6,"_i18n.EnterNameOrNumber")))("ngModel",e.searchNumber),t.R7$(3),t.vxM(e.searchNumber?-1:6),t.R7$(),t.Y8G("hidden",!e.searchNumber)("searchContext",e.inCallSearchContext())}}function Rn(n,p){if(1&n&&(t.j41(0,"div",8)(1,"div",17),t.nrm(2,"app-phone-waveform-sharp-icon",18),t.EFF(3),t.k0s()()),2&n){const e=t.XpG();t.R7$(),t.HbH(1===e.myCall.state?"line-clamp-6":"line-clamp-2"),t.Y8G("title",e.myCall.callScreening),t.R7$(2),t.SpI("",e.myCall.callScreening," ")}}function Nn(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",9)(1,"video-output",19),t.bIt("dropClick",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.callsService.drop(o.myCall))}),t.k0s(),t.nrm(2,"ngx-loading",20),t.k0s()}if(2&n){const e=t.XpG();t.R7$(),t.Y8G("media",e.myCall.media),t.R7$(),t.Y8G("show",e.isLoadingVisible(e.myCall))}}let Fn=(()=>{class n{constructor(){this.callsService=(0,l.WQX)(w.z),this.dialerService=(0,l.WQX)(v.$),this.utilityService=(0,l.WQX)(c.vQ),this.callsAdapterService=(0,l.WQX)(dt.d),this.route=(0,l.WQX)(r.nX),this.router=(0,l.WQX)(r.Ix),this.inCallKeyPadVisible=(0,y.CGW)(),this.conferenceActionsVisible=(0,y.CGW)(),this.inCallSearchVisible=(0,y.CGW)(),this.LocalConnectionState=C.Tll,this.CallerInfoMode=D,this.CallButtonsType=N,this.isInCallKeyPadVisible=!1,this.areConferenceActionsVisible=!1,this.inCallSearchAction=c.GS.None,this.isVideoVisible=!0,this.dialpadkeys=["0","1","2","3","4","5","6","7","8","9","*","#"],this.searchNumber="",this.defaultSearchContext=rt.o.default(),this.headerSearchContext=rt.o.headerSearch()}ngOnInit(){this.queryPhoneNumberSubscription=this.dialerService.queryPhoneNumber$.subscribe(e=>{this.utilityService.isDialing(this.myCall)||(this.isVideoVisible=!1,this.isInCallSearchVisible()||this.onInCallSearchActionChange(c.GS.NewCall,!0),setTimeout(()=>{this.searchNumberChanged(e)}));
1const i={...this.route.snapshot.queryParams};delete i.phone,this.router.navigate([],{queryParams:i})}),this.activeCallChangedSubscription=this.dialerService.activeCall$.pipe((0,W.p)(e=>!!e),(0,pt.F)((e,i)=>e?.myCallId===i?.myCallId)).subscribe(()=>{this.resetView()}),this.stealFocusSubscription=(0,pn.h)(this.dialerService.newPrimaryCallSelected$,this.callsAdapterService.dialerVisibilityInfo.pipe((0,W.p)(e=>e.stealFocus))).subscribe(()=>{this.focus()}),this.dialerActionSubscription=this.dialerService.dialerActionEmitted$.subscribe(e=>{this.onDialerAction(e)}),this.dialerService.setSearchAction(c.GS.None)}onDialerAction(e){if(this.myCall.state===C.Tll.Connected)switch(e.action){case"newCall":this.isVideoVisible=!1,this.onInCallSearchActionChange(c.GS.NewCall,!0),e.number&&this.searchNumberChanged(e.number);break;case"focus":this.focus()}}ngOnDestroy(){this.activeCallChangedSubscription.unsubscribe(),this.stealFocusSubscription.unsubscribe(),this.dialerActionSubscription.unsubscribe(),this.dialerService.setSearchAction(c.GS.None),this.queryPhoneNumberSubscription.unsubscribe()}resetView(){this.onInCallSearchActionChange(c.GS.None,!1),this.onInCallKeyPadVisibilityChange(!1,!1),this.onConferenceActionsVisibilityChange(!1,!1),this.isVideoVisible=!0}onKeyDown(e){if("Enter"===e.key||"Escape"===e.key){if(this.myCall.isTrying)return;const o=this.myCall.isWebRtcBrowserAgent&&this.myCall.state===C.Tll.Dialing&&this.myCall.media.lastWebRTCState.sdpType!==C.Pqd.WRTCAnswerProvided&&this.myCall.media.lastWebRTCState.sdpType!==C.Pqd.WRTCConfirmed;this.myCall.state===C.Tll.Ringing?"Enter"===e.key?this.callsService.answer(this.myCall,!1):"Escape"===e.key&&this.callsService.drop(this.myCall):o?this.callsService.drop(this.myCall):this.isInCallSearchVisible()?"Enter"===e.key&&this.searchNumber?this.searchList.requestContact(this.searchNumber):"Escape"===e.key&&(Y.Q.isNullOrEmpty(this.searchNumber)?this.onInCallSearchActionChange(c.GS.None):this.searchNumberChanged("")):this.callsService.drop(this.myCall)}else this.dialpadkeys.includes(e.key)&&(this.isInCallKeyPadVisible&&this.callButtons.canSendDtmf()?(this.callButtons.playDtmfSound(e.ke
1y),this.callsService.sendDtmf(this.myCall,e.key)):this.isInCallSearchVisible()&&this.callButtons.playDtmfSound(e.key))}focus(){setTimeout(()=>{this.callContent&&!this.isInCallSearchVisible()&&this.callContent.nativeElement.focus(),this.searchInput&&this.isInCallSearchVisible()&&this.searchInput.nativeElement.focus()},350)}isLoadingVisible(e){return e.media.isNegotiationInProgress||e.state!==C.Tll.Connected}onInCallKeyPadVisibilityChange(e,i=!0){this.isInCallKeyPadVisible=e,this.inCallKeyPadVisible.emit(e),i&&this.focus()}onConferenceActionsVisibilityChange(e,i=!0){this.areConferenceActionsVisible=e,this.conferenceActionsVisible.emit(e),i&&this.focus()}isInCallSearchVisible(){return this.inCallSearchAction!==c.GS.None}onInCallSearchActionChange(e,i=!0){this.inCallSearchAction=e,this.inCallSearchVisible.emit(this.isInCallSearchVisible()),i&&this.focus(),this.searchNumberChanged(""),this.dialerService.setSearchAction(e)}OnVideoVisibilityChange(e){this.isVideoVisible=e,this.focus()}getCallInfoMode(e){return this.isInCallSearchVisible()?D.NoInfo:this.isInCallKeyPadVisible?D.InCallKeyPad:this.areConferenceActionsVisible?D.Normal:this.utilityService.isVideoActive(e)&&!this.hasSingleCall||!this.hasSingleCall&&!this.isInCallKeyPadVisible?D.OnlyDuration:D.Normal}getCallButtonsType(e){return e.state===C.Tll.Ringing||e.state===C.Tll.Dialing&&e.isWebRtcBrowserAgent&&e.isPushCall?N.IncomingCallActions:this.isInCallSearchVisible()?N.InCallSearchContactActions:this.isInCallKeyPadVisible?N.InCallKeyPadActions:this.areConferenceActionsVisible?N.ConferenceCallActions:this.isVideoVisible&&this.utilityService.isVideoActive(e)?N.VideoCallActions:N.EstablishedCallActions}getStateName(e){return(0,c.VR)(e)}onContactSelected(e){if(e instanceof Q.q)switch(this.inCallSearchAction){case c.GS.Transfer:this.callsService.transfer(this.myCall,e);break;case c.GS.AttTransfer:this.callsService.attTransfer(this.myCall,e);break;case c.GS.NewCall:{const i=(0,nt.t9)(e.number);Y.Q.isNullOrEmpty(i)||this.dialerService.makeCall({phoneNumber:i,videoCall:!1});break}case c.GS.Conference:this.callsService.conference(this.myCall,e);break;case c.GS.AttConference:this.callsService.attendedConference(this.myCall,e)}this.onInCallSearchActionChange(c.GS.None)}searchNumberChanged(e){this.searchNumber=e,this.searchList&&this.searchList.search(e)}inCallSearchContext(){switch(this.inCallSearchAction){case c.GS.NewCall:case c.GS.Conference:case c.GS.AttConference:return this.headerSearchContext;default:return this.defaultSearchContext}}onSearchKeyPressed(e){const i=this.searchInput.nativeElement;if("number"==typeof i.selectionStart){const o=(0,c.jk)(this.searchNumber,i.selectionStart,i.selectionEnd,e);this.searchNumberChanged(o),this.setPhoneInputCaretPosition(i.selectionStart+1)}else this.searchNumberChanged((this.searchNumber||"")+e);this.focus()}onSearchActionFired(){this.searchNumber&&this.searchList.requestContact(this.searchNumber)}setPhoneInputCaretPosition(e){const i=this.searchInput.nativeElement;setTimeout(()=>{i.setSelectionRange(e,e)})}onCallActionFired(){this.focus()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["call-view"]],viewQuery:function(i,o){if(1&i&&(t.GBs(Sn,5),t.GBs(Tn,5),t.GBs(Vn,5),t.GBs(kn,5)),2&i){let a;t.mGM(a=t.lsd())&&(o.callContent=a.first),t.mGM(a=t.lsd())&&(o.callButtons=a.first),t.mGM(a=t.lsd())&&(o.searchList=a.first),t.mGM(a=t.lsd())&&(o.searchInput=a.first)}},hostBindings:function(i,o){1&i&&t.bIt("keydown",function(m){return o.onKeyDown(m)})},inputs:{myCall:"myCall",hasSingleCall:"hasSingleCall"},outputs:{inCallKeyPadVisible:"inCallKeyPadVisible",conferenceActionsVisible:"conferenceActionsVisible",inCallSearchVisible:"inCallSearchVisible"},decls:10,vars:11,consts:[["callContent",""],["callButtons",""],["searchInput",""],["searchList",""],["tabindex","0",1,"content"],[1,"call-view-header"],[3,"ngClass","myCall","mode","callState"],[1,"in-call-search-area"],[1,"call-screening"],[1,"call-actions-video-wrapper"],[3,"inCallKeyPadVisibilityChange","conferenceActionsVisibilityChange","inCallSearchActionChange","videoVisibilityChange","searchKeyPressed","searchActionFired","callActionFired","myCall","type","searchTextPopulated"],[1,"search-input-area"],[1,"search-input"],["type","text","autocomplete","off","spellcheck","fal
1se","id","search-input",3,"ngModelChange","placeholder","ngModel"],["data-qa","search-number","app-search-regular-icon","",1,"customSVGIcons","svg-xs","fillIconWithTertiary"],[1,"searchList",3,"contactSelected","hidden","searchContext"],[1,"expander"],[3,"title"],[1,"svg-xs","inline-icon"],["id","video","backgroundColor","transparent",3,"dropClick","media"],[3,"show"]],template:function(i,o){if(1&i){const a=t.RV6();t.j41(0,"div",4,0)(2,"div",5),t.nrm(3,"caller-info",6),t.nI1(4,"translate"),t.nVh(5,An,10,8,"div",7)(6,Rn,4,4,"div",8),t.nVh(7,Nn,3,2,"div",9),t.k0s(),t.j41(8,"call-buttons",10,1),t.bIt("inCallKeyPadVisibilityChange",function(f){return l.eBV(a),l.Njj(o.onInCallKeyPadVisibilityChange(f))})("conferenceActionsVisibilityChange",function(f){return l.eBV(a),l.Njj(o.onConferenceActionsVisibilityChange(f))})("inCallSearchActionChange",function(f){return l.eBV(a),l.Njj(o.onInCallSearchActionChange(f))})("videoVisibilityChange",function(f){return l.eBV(a),l.Njj(o.OnVideoVisibilityChange(f))})("searchKeyPressed",function(f){return l.eBV(a),l.Njj(o.onSearchKeyPressed(f))})("searchActionFired",function(){return l.eBV(a),l.Njj(o.onSearchActionFired())})("callActionFired",function(){return l.eBV(a),l.Njj(o.onCallActionFired())}),t.k0s()()}2&i&&(t.R7$(3),t.Y8G("ngClass",o.getCallInfoMode(o.myCall)===o.CallerInfoMode.NoInfo?"":"caller-info-expanded")("myCall",o.myCall)("mode",o.getCallInfoMode(o.myCall))("callState",t.bMT(4,9,o.getStateName(o.myCall))),t.R7$(2),t.vxM(o.isInCallSearchVisible()?5:o.myCall.callScreening&&1===o.myCall.state?6:-1),t.R7$(2),t.vxM(o.utilityService.isWebRTCCall(o.myCall)&&o.getCallButtonsType(o.myCall)===o.CallButtonsType.VideoCallActions?7:-1),t.R7$(),t.Y8G("myCall",o.myCall)("type",o.getCallButtonsType(o.myCall))("searchTextPopulated",!!o.searchNumber))},dependencies:[ze,k.YU,G.X1,G.me,G.BC,G.YN,G.vS,ct.b,St,In,jt.kq,jt.bt,ae,Tt,$.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;margin-right:auto;margin-left:auto}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;height:100%}.call-view-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1;min-height:0;min-width:0}.caller-info-expanded[_ngcontent-%COMP%]{color:var(--text-secondary)}.call-screening[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:start;gap:5px;color:#fff;padding:8px 12px;margin:5px;background-color:#0000001a;border-radius:15px;font-size:12px}.call-screening[_ngcontent-%COMP%]   .inline-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-right:4px}.in-call-search-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1}.search-input-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;align-items:center;justify-content:flex-start}.search-input[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:80%}.search-input[_ngcontent-%COMP%]   #search-input[_ngcontent-%COMP%]{font-family:Arial,serif;background-color:transparent;color:var(--text-tertiary);font-size:14px;border:0;text-align:center}.search-input[_ngcontent-%COMP%]   #search-input[_ngcontent-%COMP%]::placeholder{color:var(--text-tertiary)}.search-input[_ngcontent-%COMP%]   #search-input[_ngcontent-%COMP%]:focus:hover:placeholder-shown{color:var(--text-tertiary)}.search-input[_ngcontent-%COMP%]   #search-input[_ngcontent-%COMP%]:focus:hover:placeholder-shown::placeholder{color:transparent}.search-input[_ngcontent-%COMP%]   #search-input[_ngcontent-%COMP%]:placeholder-shown{color:transparent}.search-input[_ngcontent-%COMP%]   #search-input[_ngcontent-%COMP%]:not(:placeholder-shown){color:var(--text-tertiary)}.searchList[_ngcontent-%COMP%]{margin-bottom:10px}.expander[_ngcontent-%COMP%]{display:flex;flex:1;min-height:0;min-width:0}.call-actions-video-wrapper[_ngcontent-%COMP%]{flex:1;flex-direction:column;display:flex;justify-items:center;margin-right:auto;margin-left:auto;position:relative;max-width:100%;min-height:170px;min-width:0;margin-bottom:10px}.call-actions-video-wrapper[_ngcontent-%COMP%]   #video[_ngcontent-%COMP%]{display:flex;overflow:hidden}"]})}}return n})();var En=s(28793),Bn=s(70274),q=s(983),At=s(84572),Dn=s(99437),X=s(97992),Gn=s(86908),$n=s(60889),Rt=s(98866),Ln=s(95195);const Xn=s.p+"media/Alerting-ea2d6631.mp3",Wn=s.p+"media/Tweeting-8f44015d.mp3",zn=s.p+"media/Ringtone-85a3993e.mp3";var it=s(90558),Un=s(48743),Hn=s(17855),Kn=s(42181),Nt=s(20284),Yn=s(33726),Ft=s(19724);const Qn=["sink"];let Jn=(()=>{class n{constructor(){this.modalService=(0,l.WQX)(Ot.B),this.loop=!1,this.sink=q.w}ngOnInit(){this.sinkSubscriber=(0,Yn.R)(this.audioSink.nativeElement,"loadeddata").pipe((0,T.n)(i=>(0,At.z)([this.sink.pipe((0,pt.F)()),(0,H.of)(i.target).pipe((0,W.p)(Boolean))])),(0,T.n)(([i,o])=>{if(i.labelId&&i.media){const a=i.labelId;return(0,Ft.H)(navigator.mediaDevices.enumerateDevices()).pipe((0,g.T)(m=>(0,E.C7)(m,"audiooutput",a)),(0,T.n)(m=>m.media?(0,Ft.H)(o.setSinkId(m.media.deviceId)):q.w))}return q.w})).subscribe({error:i=>{this.modalService.error(i)}})}ngOnDestroy(){this.sinkSubscriber?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["audio-sink"]],viewQuery:function(i,o){if(1&i&&t.GBs(Qn,7),2&i){let a;t.mGM(a=t.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&&t.nrm(0,"audio",1,0),2&i&&t.Y8G("loop",o.loop)("src",o.src,t.B4B)("srcObject",o.srcObject)},dependencies:[ut],encapsulation:2})}}return n})();const Zn=n=>({"primary-active-call-item":n});function qn(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",3),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG(2);return l.Njj(a.setPrimaryCall(o))}),t.j41(1,"div",4),t.EFF(2),t.k0s(),t.j41(3,"div",5),t.nI1(4,"translate"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}if(2&n){const e=p.$implicit,i=t.XpG(2);t.Y8G("ngClass",t.eq3(9,Zn,e.myCallId===(i.activeCall?i.activeCall.myCallId:-1))),t.R7$(),t.Y8G("title",e.displayName?e.displayName:e.phone),t.R7$(),t.SpI(" ",e.displayName?e.displayName:e.phone," "),t.R7$(),t.Y8G("title",t.bMT(4,5,i.getStateName(e))),t.R7$(2),t.JRh(t.bMT(6,7,i.getStateName(e)))}}function ti(n,p){if(1&n&&(t.j41(0,"div",0)(1,"div",1),t.Z7z(2,qn,7,11,"div",2,t.fX1),t.nI1(4,"async"),t.k0s()()),2&n){const e=t.XpG();t.R7$(2),t.Dyx(t.bMT(4,0,e.dialerService.calls$))}}let ei=(()=>{class n{constructor(){this.dialerService=(0,l.WQX)(v.$),this.callService=(0,l.WQX)(w.z)}setPrimaryCall(e){e.state!==C.Tll.Ringing?this.callService.resume(e):this.dialerService.setPrimaryCall(e.myCallId)}getStateName(e){return(0,c.VR)(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["calls-bar"]],inputs:{activeCall:"activeCall"},decls:2,vars:3,consts:[[1,"active-calls-bar-container"],[1,"active-calls-bar"],[1,"active-call-item",3,"ngClass"],[1,"active-call-item",3,"click","ngClass"],[1,"call-item-display-name","text-truncate",3,"title"],[1,"call-item-status","text-truncate",3,"title"]],template:function(i,o){1&i&&(t.nVh(0,ti,5,2,"div",0),t.nI1(1,"async")),2&i&&t.vxM(t.bMT(1,1,o.dialerService.hasMultipleCallsNotAllIncoming$)?0:-1)},dependencies:[k.YU,$.D9,k.Jj],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:12px;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)}"]})}}return n})();function ni(n,p){if(1&n&&(t.j41(0,"li",17),t.EFF(1),t.k0s()),2&n){const e=p.$implicit;t.Y8G("title",e),t.R7$(),t.SpI(" ",e," ")}}function ii(n,p){1&n&&(t.j41(0,"ul",5),t.Z7z(1,ni,2,2,"li",17,t.fX1),t.k0s()),2&n&&(t.R7$(),t.Dyx(p.split(":")))}function oi(n,p){if(1&n&&(t.j41(0,"div",8)(1,"div",18),t.nrm(2,"app-phone-waveform-sharp-icon",19),t.EFF(3),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(),t.HbH("line-clamp-3"),t.Y8G("title",e.callScreening),t.R7$(2),t.SpI(" ",e.callScreening," ")}}function li(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"app-avatar",3),t.j41(3,"div",4),t.nVh(4,ii,3,0,"ul",5),t.j41(5,"div",6)(6,"span",7),t.EFF(7),t.k0s()()()(),t.nVh(8,oi,4,4,"div",8),t.j41(9,"div",9)(10,"button",10),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG();return l.Njj(a.AnswerCall(o))}),t.nrm(11,"span",11),t.j41(12,"span",12),t.nI1(13,"translate"),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"button",13),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG();return l.Njj(a.DropCall(o))}),t.nrm(17,"span",14),t.j41(18,"span",12),t.nI1(19,"translate"),t.EFF(20),t.nI1(21,"translate"),t.k0s()(),t.j41(22,"button",15),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG();return l.Njj(a.DivertToVoiceMail(o))}),t.nrm(23,"span",16),t.j41(24,"span",12),t.nI1(25,"translate"),t.EFF(26),t.nI1(27,"translate"),t.k0s()()()()}if(2&n){let e;const i=p.$implicit,o=t.XpG();t.R7$(2),t.Y8G("ext",i.contact),t.R7$(2),t.vxM((e=o.CallerName(i))?4:-1,e),t.R7$(2),t.Y8G("title",o.CallerNumber(i)),t.R7$(),t.SpI(" ",o.CallerNumber(i)," "),t.R7$(),t.vxM(1===i.state&&i.callScreening?8:-1),t.R7$(2),t.Y8G("disabled",!i.isAnswerEnabled||i.isSendingWebrtcRequest),t.R7$(2),t.Y8G("title",t.mNQ(t.bMT(13,16,"_i18n.Answer"))),t.R7$(2),t.SpI(" ",t.bMT(15,18,"_i18n.Answer")," "),t.R7$(2),t.Y8G("disabled",i.isTrying),t.R7$(2),t.Y8G("title",t.mNQ(t.bMT(19,20,"_i18n.Decline"))),t.R7$(2),t.SpI(" ",t.bMT(21,22,"_i18n.Decline")," "),t.R7$(4),t.Y8G("title",t.mNQ(t.bMT(25,24,"_i18n.SendToVmail"))),t.R7$(2),t.SpI(" ",t.bMT(27,26,"_i18n.SendToVmail")," ")}}let ai=(()=>{class n{constructor(){this.dialerService=(0,l.WQX)(v.$),this.callsService=(0,l.WQX)(w.z),this.callActionFired=(0,y.CGW)()}CallerName(e){return e.displayName?e.displayName:e.phone}CallerNumber(e){return this.CallerName(e)===e.phone?"":e.phone}AnswerCall(e){this.callsService.answer(e,!1),this.callActionFired.emit()}DropCall(e){this.callsService.drop(e),this.callActionFired.emit()}DivertToVoiceMail(e){this.callsService.divertToVoicemail(e),this.callActionFired.emit()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["multiple-incoming-calls"]],outputs:{callActionFired:"callActionFired"},decls:4,vars:2,consts:[[1,"call-list"],[1,"call-item"],[1,"caller-info-container"],[3,"ext"],[1,"caller-info"],[1,"caller-name"],[1,"caller-number"],[1,"caller-message","text-truncate",3,"title"],[1,"call-screening"],[1,"call-actions"],["id","btnAnswer","type","button",1,"call-action",3,"click","disabled"],["app-phone-circle-green-background-custom-icon","",1,"svg-wrapper"],[1,"call-action-text","text-truncate",3,"title"],["id","btnDecline","type","button",1,"call-action",3,"click","disabled"],["app-phone-circle-red-background-custom-icon","",1,"svg-wrapper"],["id","btnDivertToVoicemail","type","button",1,"call-action",3,"click"],["app-envelope-light-icon","",1,"svg-wrapper","fillIconWhite"],[1,"text-truncate",3,"title"],[3,"title"],[1,"svg-xs","inline-icon"]],template:function(i,o){1&i&&(t.j41(0,"div",0),t.Z7z(1,li,28,28,"div",1,t.fX1),t.nI1(3,"async"),t.k0s()),2&i&&(t.R7$(),t.Dyx(t.bMT(3,0,o.dialerService.calls$)))},dependencies:[wt.f,lt,ht,gt.l,Tt,$.D9,k.Jj],styles:['[_nghost-%COMP%]{margin-top:25px;display:flex;flex-direction:column;flex-grow:1;width:100%;height:100%;overflow:hidden;margin-right:auto;margin-left:auto;color:var(--text-secondary)}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]{width:100%;overflow-y:auto}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%;padding-bottom:10px;gap:5px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]:after{display:block;content:"";width:100%;height:1px;background:var(--text-tertiary);position:relative;margin:3px 0;opacity:.5}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]:last-child:after{display:none}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .caller-info-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .caller-info-container[_ngcontent-%COMP%]   .caller-info[_ngcontent-%COMP%]{min-width:0;display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .caller-info-container[_ngcontent-%COMP%]   .caller-info[_ngcontent-%COMP%]   .caller-name[_ng
1content-%COMP%]{font-size:13px;margin-right:2px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .caller-info-container[_ngcontent-%COMP%]   .caller-info[_ngcontent-%COMP%]   .caller-number[_ngcontent-%COMP%]{display:flex;font-size:11px;height:15px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .caller-info-container[_ngcontent-%COMP%]   .caller-info[_ngcontent-%COMP%]   .caller-message[_ngcontent-%COMP%]{flex:1 1 auto;width:0}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-screening[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:start;gap:5px;color:#fff;padding:1px;margin:5px;font-size:11px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-screening[_ngcontent-%COMP%]   .inline-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-right:4px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]{display:grid;align-items:center;width:100%;grid-column-gap:0;grid-template-columns:repeat(3,minmax(33.3%,33.3%))}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   .call-action[_ngcontent-%COMP%]{display:grid;grid-template-columns:25px auto;height:100%;background-color:transparent;align-items:center;border:0;padding-left:6px;color:inherit}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   .call-action[_ngcontent-%COMP%]:disabled{opacity:.4}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   .call-action[_ngcontent-%COMP%]   .call-action-text[_ngcontent-%COMP%]{margin:0 0 0 3px;font-size:10px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   .call-action[_ngcontent-%COMP%]:hover{background-color:var(--text-tertiary);color:var(--text-tertiary-hover)}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   #btnAnswer[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:25px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   #btnDecline[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:25px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   #btnDivertToVoicemail[_ngcontent-%COMP%]   .svg-wrapper[_ngcontent-%COMP%]{width:20px}[_nghost-%COMP%]   .call-list[_ngcontent-%COMP%]   .call-item[_ngcontent-%COMP%]   .call-actions[_ngcontent-%COMP%]   #btnDivertToVoicemail[_ngcontent-%COMP%]:hover   svg[_ngcontent-%COMP%]{fill:var(--text-tertiary-hover)!important}']})}}return n})(),ci=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.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.69L54.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(),t.rj2(0,"svg",0),t.Hgh(1,"path",1),t.eux())},encapsulation:2})}}return n})();var Ct=s(68580),pi=s(29912),di=s(38900);const ui=(n,p)=>({"dropdown-toggle":n,disabled:p});function Ci(n,p){if(1&n&&(t.j41(0,"span",2),t.nI1(1,"stripUserAgent"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"stripUserAgent"),t.nI1(6,"translate"),t.k0s()),2&n){const e=t.XpG();t.Y8G("title",t.mNQ(t.bMT(2,6,t.bMT(1,4,null==e?null:e.UserAgent)))),t.R7$(3),t.Lme(" ",t.bMT(4,8,"_i18n.CallUsing")," ",t.bMT(6,12,t.bMT(5,10,null==e?null:e.UserAgent))," ")}}function mi(n,p){1&n&&(t.j41(0,"span",2),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n&&(t.Y8G("title",t.mNQ(t.bMT(1,3,"_i18n.DisabledByAdmin"))),t.R7$(2),t.SpI(" ",t.bMT(3,5,"_i18n.DisabledByAdmin")," "))}function hi(n,p){if(1&n&&t.nrm(0,"show-svg-images",10),2&n){const e=t.XpG(5);t.Y8G("svg",e.selectPhoneIcon)}}function _i(n,p){if(1&n&&t.nrm(0,"show-svg-images",10),2&n){const e=t.XpG(5);t.Y8G("svg",e.unselectedPhoneIcon)}}function gi(n,p){if(1&n){const e=t.RV6();t.j41(0,"li",8)(1,"a",9),t.bIt("click",function(){const o=l.eBV(e).$implicit,a=t.XpG(4);return l.Njj(a.selectedPhonesDeviceChange(o))}),t.nVh(2,hi,1,1,"show-svg-images",10)(3,_i,1,1,"show-svg-images",10),t.j41(4,"span",11),t.nI1(5,"stripUserAgent"),t.nI1(6,"translate"),t.EFF(7),t.nI1(8,"stripUserAgent"),t.nI1(9,"translate"),t.k0s()()()}if(2&n){const e=p.$implicit,i=t.XpG(3);t.R7$(2),t.vxM((null==i?null:i.Contact)===e.Contact?2:3),t.R7$(2),t.Y8G("title",t.mNQ(t.bMT(6,6,t.bMT(5,4,e.UserAgent)))),t.R7$(3),t.SpI(" ",t.bMT(9,10,t.bMT(8,8,e.UserAgent))," ")}}function fi(n,p){if(1&n&&(t.nrm(0,"li",5),t.Z7z(1,gi,10,12,"li",8,t.fX1),t.nI1(3,"async")),2&n){const e=t.XpG(3);t.R7$(),t.Dyx(t.bMT(3,0,e.phones$))}}function vi(n,p){if(1&n){const e=t.RV6();t.j41(0,"ul",4),t.nVh(1,fi,4,2),t.nI1(2,"async"),t.nrm(3,"li",5),t.j41(4,"a",6)(5,"span",7),t.nI1(6,"translate"),t.nI1(7,"translate"),t.bIt("click",function(){l.eBV(e);const o=t.XpG(2);return l.Njj(o.goToMediaDeviceOptions())}),t.EFF(8),t.nI1(9,"translate"),t.nI1(10,"translate"),t.k0s()()()}if(2&n){const e=t.XpG(2);t.R7$(),t.vxM(t.bMT(2,6,e.hasPhones$)?1:-1),t.R7$(4),t.Y8G("title",t.ai1("",t.bMT(6,8,"_i18n.MediaDeviceOptions")," ",t.bMT(7,10,"_i18n.Settings"))),t.R7$(3),t.Lme(" ",t.bMT(9,12,"_i18n.MediaDeviceOptions")," ",t.bMT(10,14,"_i18n.Settings")," ")}}function bi(n,p){if(1&n&&(t.j41(0,"div",0)(1,"a",1),t.nI1(2,"async"),t.nI1(3,"async"),t.nVh(4,Ci,7,14,"span",2),t.nI1(5,"async"),t.vZN(6,mi,4,7,"span",2),t.k0s(),t.DNE(7,vi,11,16,"ul",3),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngClass",t.l_i(8,ui,t.bMT(2,2,e.hasPhones$),!t.bMT(3,4,e.hasPhones$))),t.R7$(3),t.vxM(t.bMT(5,6,e.hasPhones$)?4:6)}}let yi=(()=>{class n{constructor(){this.deviceService=(0,l.WQX)(it.gc),this.callsAdapterService=(0,l.WQX)(dt.d),this.router=(0,l.WQX)(r.Ix),this.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>',this.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';const e=this.deviceService;this.userSelectedPhoneDevice$=e.selectedPhoneDevice$,this.phones$=e.phones$,this.hasPhones$=e.phones$.pipe((0,g.T)(i=>i&&i.length>0))}selectedPhonesDeviceChange(e){this.deviceService.selectPhoneDevice(e)}goToMediaDeviceOptions(){this.router.navigate(["/settings/media"]),this.callsAdapterService.toggleDialer.next(!0)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["dialer-select-phone"]],decls:2,vars:3,consts:[["dropdown","","placement","bottom right",1,"dropdown","dropdown-select-phone"],["dropdownToggle","",1,"menu-title",3,"ngClass"],[1,"menu-title-text",3,"title"],["role","menu","class","dropdown-menu dropdown-menu-middle",4,"dropdownMenu"],["role","menu",1,"dropdown-menu","dropdown-menu-middle"],[1,"divi
1der","dropdown-divider"],[1,"d-flex","align-items-center","dropdown-item"],[1,"dropdown-item-text","ps-0",2,"vertical-align","middle",3,"click","title"],["role","menuitem"],[1,"d-flex","align-items-center","dropdown-item",3,"click"],[1,"svg-xxs","left",3,"svg"],[1,"dropdown-item-text","ps-2",2,"vertical-align","middle",3,"title"]],template:function(i,o){if(1&i&&(t.nVh(0,bi,8,11,"div",0),t.nI1(1,"async")),2&i){let a;t.vxM((a=t.bMT(1,1,o.userSelectedPhoneDevice$))?0:-1,a)}},dependencies:[Ct.Kk,Ct.UL,k.YU,Ct.hs,pi.d,$.D9,k.Jj,di.x],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;width:100%}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;padding-top:3px;width:78%}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .menu-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;max-width:100%;font-size:10px;color:var(--text-tertiary)}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .menu-title[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{color:var(--text-secondary);transition:.2s}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .menu-title.disabled[_ngcontent-%COMP%]{cursor:not-allowed}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .menu-title.disabled[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{color:var(--text-tertiary)}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .menu-title[_ngcontent-%COMP%]   .menu-title-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{background-color:var(--bg-tertiary)!important;max-width:100%!important}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border-color:#595959}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{fill:var(--text-tertiary);color:var(--text-tertiary);font-size:11px}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:hover{color:var(--text-tertiary-hover);background:var(--text-tertiary);fill:var(--text-tertiary-hover)!important}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]   .dropdown-item-text[_ngcontent-%COMP%]{color:inherit;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .dropdown-select-phone[_ngcontent-%COMP%]   .dropdown-menu-middle[_ng
1content-%COMP%]{left:50%!important;right:auto!important;text-align:center!important;transform:translate(-50%)!important}"],changeDetection:0})}}return n})();var Mi=s(35606);const Pi=["phoneNumberInput"],Oi=["searchList"],xi=["dialpad"];function wi(n,p){1&n&&t.nrm(0,"span",7)}function Ii(n,p){1&n&&t.nrm(0,"dialer-select-phone")}function Si(n,p){if(1&n){const e=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.makeCall(!0))}),t.nrm(1,"span",18),t.k0s()}}function Ti(n,p){1&n&&t.nrm(0,"span",13)}function Vi(n,p){1&n&&t.nrm(0,"span",14)}let ki=(()=>{class n{constructor(){this.dialerService=(0,l.WQX)(v.$),this.deviceService=(0,l.WQX)(it.gc),this.phoneService=(0,l.WQX)(Nt.u),this.route=(0,l.WQX)(r.nX),this.callsAdapterService=(0,l.WQX)(dt.d),this.router=(0,l.WQX)(r.Ix),this.phoneNumber="",this.dialpadkeys=["0","1","2","3","4","5","6","7","8","9","*","#"],this.keyId="dialpad-",this.searchContext=rt.o.headerSearch()}ngOnInit(){this.queryPhoneNumberSubscription=this.dialerService.queryPhoneNumber$.subscribe(e=>{setTimeout(()=>{this.numberChanged(e);const i={...this.route.snapshot.queryParams};delete i.phone,this.router.navigate([],{queryParams:i})})}),this.numberSubscription=this.dialerService.currentPhoneNumber.pipe((0,F.E)(this.callsAdapterService.dialerRealState)).subscribe(([e,i])=>{this.phoneNumber=e,"open"===i&&this.focus()}),this.focusSubscription=this.callsAdapterService.dialerRealState.pipe((0,at.c)(350)).subscribe(e=>{"open"===e&&this.focus()}),this.dialerActionSubscription=this.dialerService.dialerActionEmitted$.subscribe(e=>{this.onDialerAction(e)}),this.dialerVisibilitySubscription=this.callsAdapterService.dialerVisibilityInfo.pipe((0,at.c)(350)).subscribe(e=>{e.stealFocus&&this.focus()})}ngOnDestroy(){this?.queryPhoneNumberSubscription.unsubscribe(),this?.numberSubscription.unsubscribe(),this?.dialerVisibilitySubscription.unsubscribe(),this?.focusSubscription.unsubscribe(),this?.dialerActionSubscription.unsubscribe()}focus(){this.phoneNumberInput&&this.phoneNumberInput.nativeElement.focus()}onDialerAction(e){switch(e.action){case"newCall":e.number&&this.numberChanged(e.number);break;case"focus":this.focus()}}makeCall(e){if(Y.Q.isNullOrEmpty(this.phoneNumber))this.numberChanged(this.phoneService.lastDialerNumber);else{const i=(0,nt.t9)(this.phoneNumber);Y.Q.isNullOrEmpty(i)||this.dialerService.makeCall({phoneNumber:i,videoCall:e})}}onButtonPress(e){const i=this.phoneNumberInput.nativeElement;if("number"==typeof i.selectionStart){const o=(0,c.jk)(this.phoneNumber,i.selectionStart,i.selectionEnd,e);this.numberChanged(o),this.setPhoneInputCaretPosition(i.selectionStart+1)}else this.numberChanged((this.phoneNumber||"")+e);this.focus()}onBackSpacePress(){if(this.phoneNumber){const e=this.phoneNumberInput.nativeElement;if("number"==typeof e.selectionStart){const i=e.selectionStart===e.selectionEnd&&e.selectionStart>0?e.selectionStart-1:e.selectionStart,o=(0,c.jk)(this.phoneNumber,i,e.selectionEnd,"");this.numberChanged(o),this.setPhoneInputCaretPosition(i)}else this.numberChanged(this.phoneNumber.slice(0,-1))}this.focus()}setPhoneInputCaretPosition(e){const i=this.phoneNumberInput.nativeElement;setTimeout(()=>{i.setSelectionRange(e,e)})}onKeyDown(e){"Enter"===e.key?this.makeCall(!1):"Escape"===e.key?Y.Q.isNullOrEmpty(this.phoneNumber)?this.callsAdapterService.toggleDialer.next(!1):this.numberChanged(""):this.dialpadkeys.includes(e.key)&&(this.dialpad.play$.next(e.key),document.getElementById(this.keyId+e.key).classList.add("btn-active")),this.focus()}onKeyUp(e){this.dialpadkeys.includes(e.key)&&document.getElementById(this.keyId+e.key).classList.remove("btn-active")}numberChanged(e){this.dialerService.setTypedPhone(e),this.searchList.search(e)}onContactSelected(e){e instanceof Q.q&&this.makeContactCall(e)}makeContactCall(e){void 0!==e&&(e.isVoicemail?this.dialerService.leaveVoiceMailNumber(e.number):this.dialerService.makeCall({phoneNumber:e.number,videoCall:!1}))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["dialer-view"]],viewQuery:function(i,o){if(1&i&&(t.GBs(Pi,5),t.GBs(Oi,5),t.GBs(xi,5)),2&i){let a;t.mGM(a=t.lsd())&&(o.phoneNumberInput=a.first),t.mGM(a=t.lsd())&&(o.searchList=a.first),t.mGM(a=t.lsd())&&(o.dialpad=a.first)}},decls:20,vars:13,consts:[["phoneNumberInput",""],["searchList",""],["dialpad",""],["tabindex","0",1,"dialer-wrapper",3,"keydown","keyup","focus"],[1,"dialer-input-area"],[1,"dialer-input"],["wcAutofocus","","type","text","autocomplete","off","spellcheck","fal
1se","id","dialpad-input",3,"ngModelChange","placeholder","ngModel"],["app-search-regular-icon","",1,"customSVGIcons","svg-xs","fillIconWithTertiary"],[1,"searchList",3,"contactSelected","hidden","searchContext"],[1,"expander"],["id","dialpad",3,"buttonPressed"],["id","btnVideo","type","button",1,"btnNum"],["id","btnCall","type","button",1,"btnNum",3,"click"],["app-phone-circle-green-background-custom-icon",""],["app-disabled-phone-custom-icon",""],["id","dialpadBackspace","type","button",1,"btnNum",3,"click"],["app-backspace-regular-icon",""],["id","btnVideo","type","button",1,"btnNum",3,"click"],["app-video-light-icon",""]],template:function(i,o){if(1&i){const a=t.RV6();t.j41(0,"div",3),t.bIt("keydown",function(f){return l.eBV(a),l.Njj(o.onKeyDown(f))})("keyup",function(f){return l.eBV(a),l.Njj(o.onKeyUp(f))})("focus",function(){return l.eBV(a),l.Njj(o.focus())}),t.j41(1,"div",4)(2,"div",5)(3,"input",6,0),t.nI1(5,"translate"),t.bIt("ngModelChange",function(f){return l.eBV(a),l.Njj(o.numberChanged(f))}),t.k0s(),t.nVh(6,wi,1,0,"span",7),t.k0s(),t.nVh(7,Ii,1,0,"dialer-select-phone"),t.k0s(),t.j41(8,"call-search-list",8,1),t.bIt("contactSelected",function(f){return l.eBV(a),l.Njj(o.onContactSelected(f))}),t.k0s(),t.nrm(10,"div",9),t.j41(11,"call-dialpad",10,2),t.bIt("buttonPressed",function(f){return l.eBV(a),l.Njj(o.onButtonPress(f))}),t.nVh(13,Si,2,0,"button",11),t.nI1(14,"async"),t.j41(15,"button",12),t.bIt("click",function(){return l.eBV(a),l.Njj(o.makeCall(!1))}),t.nVh(16,Ti,1,0,"span",13)(17,Vi,1,0,"span",14),t.k0s(),t.j41(18,"button",15),t.bIt("click",function(){return l.eBV(a),l.Njj(o.onBackSpacePress())}),t.nrm(19,"span",16),t.k0s()()()}2&i&&(t.R7$(3),t.Y8G("placeholder",t.mNQ(t.bMT(5,9,"_i18n.EnterNameOrNumber")))("ngModel",o.phoneNumber),t.R7$(3),t.vxM(o.phoneNumber?-1:6),t.R7$(),t.vxM(o.phoneNumber?-1:7),t.R7$(),t.Y8G("hidden",!o.phoneNumber)("searchContext",o.searchContext),t.R7$(5),t.vxM(t.bMT(14,11,o.deviceService.isWebRTCSelected$)?13:-1),t.R7$(3),t.vxM(o.phoneNumber?16:17))},dependencies:[G.X1,G.me,G.BC,G.YN,G.vS,ct.b,yi,St,u,mt,lt,_t,ci,Mi.J,$.D9,k.Jj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex-grow:1;width:100%;height:100%;margin-right:auto;margin-left:auto}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;flex:1;min-height:0;min-width:0}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0 8px}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]   #dialpad-input[_ngcontent-%COMP%]{font-family:Arial,serif;background-color:transparent;color:var(--text-tertiary);font-size:16px;border:0;text-align:center}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]   #dialpad-input[_ngcontent-%COMP%]::placeholder{color:var(--text-tertiary)}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]   #dialpad-input[_ngcontent-%COMP%]:focus:hover:placeholder-shown{color:var(--text-tertiary)}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]   #dialpad-input[_ngcontent-%COMP%]:focus:hover:placeholder-shown::placeholder{color:transparent}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]   #dialpad-input[_ngcontent-%COMP%]:placeholder-shown{color:transparent}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .dialer-input-area[_ngcontent-%COMP%]   .dialer-input[_ngcontent-%COMP%]   #dialpad-input[_ngcontent-%COMP%]:not(:placeholder-shown){color:var(--text-tertiary)}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .searchList[_ngcontent-%COMP%]{margin-bottom:10px}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   .expander[_ngcontent-%COMP%]{display:flex;flex:1;min-height:0;min-width:0}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   #dialpad[_ngcontent-%COMP%]   #btnVideo[_ngcontent-%COMP%]{grid-column-start:1;width:24px;margin:auto;
1fill:var(--text-secondary)}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   #dialpad[_ngcontent-%COMP%]   #btnCall[_ngcontent-%COMP%]{grid-column-start:2;width:39px;height:39px;margin:auto}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   #dialpad[_ngcontent-%COMP%]   #dialpadBackspace[_ngcontent-%COMP%]{grid-column-start:3;width:19px;margin:auto;fill:var(--text-secondary);height:19px}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   #dialpad[_ngcontent-%COMP%]   .btnNum[_ngcontent-%COMP%]{display:inline-block;background-color:transparent;border:0;padding:0;font-size:18px;height:28px;color:var(--text-secondary)!important}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   #dialpad[_ngcontent-%COMP%]   .btnNum[_ngcontent-%COMP%]:hover{opacity:.7;transition:.2s}[_nghost-%COMP%]   .dialer-wrapper[_ngcontent-%COMP%]   #dialpad[_ngcontent-%COMP%]   .btnNum[_ngcontent-%COMP%]:active{color:var(--bg-secondary);transition:.1s}"]})}}return n})();const ji=["callView"];function Ai(n,p){if(1&n&&t.nrm(0,"audio-sink",3),2&n){const e=t.XpG(),i=t.XpG();t.Y8G("loop",!0)("src",e.url)("sink",i.deviceMediaService.selectedOutputAudioDevice$)}}function Ri(n,p){if(1&n&&t.nrm(0,"audio-sink",3),2&n){const e=t.XpG(),i=t.XpG();t.Y8G("loop",!0)("src",e.url)("sink",i.deviceMediaService.selectedRingerDevice$)}}function Ni(n,p){if(1&n&&(t.nVh(0,Ai,1,3,"audio-sink",3),t.nI1(1,"async"),t.vZN(2,Ri,1,3,"audio-sink",3)),2&n){const e=t.XpG();t.vxM(p.isRinging?t.bMT(1,1,e.silentModeService.silentMode$)?-1:2:0)}}function Fi(n,p){if(1&n&&t.nrm(0,"audio-sink",4),2&n){const e=t.XpG(2);t.Y8G("sink",e.deviceMediaService.selectedOutputAudioDevice$)("srcObject",p)}}function Ei(n,p){if(1&n&&(t.nVh(0,Fi,1,2,"audio-sink",4),t.nI1(1,"async")),2&n){let e;const i=t.XpG();t.vxM((e=i.utilityService.isWebRTCCall(p)&&t.bMT(1,1,i.activeMediaStream$))?0:-1,e)}}function Bi(n,p){if(1&n&&(t.nrm(0,"calls-bar",1),t.nI1(1,"async")),2&n){const e=t.XpG();t.Y8G("activeCall",t.bMT(1,1,e.dialerService.activeCall$))}}function Di(n,p){if(1&n){const e=t.RV6();t.j41(0,"multiple-incoming-calls",5),t.bIt("callActionFired",function(){l.eBV(e);const o=t.XpG();return l.Njj(o.onCallActionFired())}),t.k0s()}}function Gi(n,p){if(1&n){const e=t.RV6();t.j41(0,"call-view",7,0),t.nI1(2,"async"),t.bIt("inCallKeyPadVisible",function(o){l.eBV(e);const a=t.XpG(2);return l.Njj(a.InCallKeyPadVisibilityChange(o))})("conferenceActionsVisible",function(o){l.eBV(e);const a=t.XpG(2);return l.Njj(a.ConferenceActionsVisibilityChange(o))})("inCallSearchVisible",function(o){l.eBV(e);const a=t.XpG(2);return l.Njj(a.InCallSearchVisibilityChange(o))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("myCall",p)("hasSingleCall",t.bMT(2,2,e.dialerService.hasSingleCall$))}}function $i(n,p){if(1&n&&(t.nVh(0,Gi,3,4,"call-view",6),t.nI1(1,"async")),2&n){let e;const i=t.XpG();t.vxM((e=t.bMT(1,1,i.dialerService.activeCall$))?0:-1,e)}}function Li(n,p){1&n&&t.nrm(0,"dialer-view")}let Xi=(()=>{class n{constructor(){this.dialerService=(0,l.WQX)(v.$),this.deviceMediaService=(0,l.WQX)(B.q),this.silentModeService=(0,l.WQX)(Un.Y),this.route=(0,l.WQX)(r.nX),this.deviceService=(0,l.WQX)(it.gc),this.headsetService=(0,l.WQX)(Gn.i),this.callControlService=(0,l.WQX)(w.z),this.webRtcCallService=(0,l.WQX)($n.w$),this.phoneService=(0,l.WQX)(Nt.u),this.myPhoneService=(0,l.WQX)(Pt.gx),this.notificationService=(0,l.WQX)(Ln.J),this.utilityService=(0,l.WQX)(c.vQ),this.callStateService=(0,l.WQX)(Kn.y),this.inCallKeyPadVisibility=!1,this.inCallSearchVisibility=!1,this.conferenceActionsVisibility=!1,this.subs=new bt.yU;const e=this.dialerService;this.activeCall$=e.activeCall$,this.soundNotification$=this.dialerService.calls$.pipe((0,g.T)(i=>{const o=i.find(m=>m.isWebRtcBrowserAgent&&m.state===C.Tll.Dialing&&m.media.lastWebRTCState.sdpType!==C.Pqd.WRTCAnswerProvided&&m.media.lastWebRTCState.sdpType!==C.Pqd.WRTCConfirmed),a=i.find(m=>m.state===C.Tll.Ringing);if(o)return{url:Xn,isRinging:!1};if(a&&a.isPushCall){const m=i.find(S=>S.state===C.Tll.Connected);return i.size>1&&m?{url:Wn,isRinging:!0}:{url:zn,isRinging:!0}}})),this.activeMediaStream$=e.activeCall$.pipe((0,W.p)(P.vN),(0,T.n)(i=>i.media.remoteStream$),(0,W.p)(P.vN))}get isCallsBarVisible(){return!this.inCallKeyPadVisibility&&!this.conferenceActionsVisibility&&!this.inCallSearchVisibility}InCallKeyPadVisibilityChange(e){this.inCallKeyPadVisibility=e}ConferenceActionsVisibilityChange(e){this.conferenceActionsVisibility=e}InCallSearchVisibilityChange(e){this.inCallSearchVisibility=e}onCallActionFired(){setTimeout(()=>{this.callView&&this.callView.onCallActionFired()},350)}ngAfterViewInit(){this.subs.add(this.myPhoneService.myPhoneSession.pipe((0,T.n)(o=>(0,En.x)((0,H.of)(o),o.isActive$.pipe((0,W.p)(a=>!a),(0,g.T)(()=>o))))).subscribe(()=>{this.headsetService.reset()})),this.subs.add(this.headsetService.headsetEvents$.pipe((0,F.E)(this.phoneService.myCalls$)).subscribe(o=>{const[a,m]=o;if(a.Action===X.T.MakeCall){const f=(0,nt.t9)(a.Value);Y.Q.isNullOrEmpty(f)||this.phoneService.call(f,!1)}else{let f;if(-1!==a.CallId?f=m.calls.find(S=>S.myCallId===a.CallId):(f=m.calls.find(S=>S.media.isActive),!f&&!m.calls.isEmpty()&&(f=m.calls.get(0))),f)if(a.Action!==X.T.AcceptCall||f.webRTCId)if(a.Action===X.T.TerminateCall||a.Action===X.T.RejectCall)this.callControlService.drop(f);else if(a.Action===X.T.HoldCall)this.callControlService.hold(f);else if(a.Action===X.T.ResumeCall)this.callControlService.resume(f);else if(a.Action===X.T.ToggleMuteCall)this.callControlService.mute(f);else if(a.Action===X.T.FlashCall)if(1===m.calls.size)f.isHold?this.callControlService.resume(f):this.callControlService.hold(f);else{const tt=m.calls.indexOf(f)+1,J=m.calls.get(tt>=m.calls.size?0:tt);J.state===C.Tll.Ringing?this.callControlService.answer(J,!1):this.callControlService.resume(J)}else a.Action===X.T.SendDtmf&&(0,P.Kk)(f)&&["0","1","2","3","4","5","6","7","8","9","*","#"].includes(a.Value)&&this.callControlService.sendDtmf(f,a.Value);else this.callControlService.answer(f,!1)}})),this.subs.add(this.deviceMediaService.mediaPeerConstraints$.pipe((0,Bn.H)(()=>this.phoneService.myCalls$.pipe((0,h.s)(1),(0,T.n)(o=>{const a=o.calls.find(m=>m.media.isActive);return a?this.webRtcCallService.reactivate(a.media):q.w}),(0,Dn.W)(()=>q.w)))).subscribe(()=>{}));const e=this.myPhoneService.myPhoneSession.pipe((0,T.n)(o=>o.myInfo.Connections$),(0,g.T)(o=>o&&o.Items?o.Items:[])),i=(o,a)=>this.route.queryParams.pipe((0,g.T)(m=>m[o]),(0,pt.F)(),(0,W.p)(P.z2),(0,T.n)(m=>(0,At.z)([e,this.phoneService.pushDeviceRegistration$,this.deviceService.selectedPhoneDevice$]).pipe((0,g.T)(([f,S,tt])=>f.find(J=>J.CallId===+m&&((0,it.F0)(tt)?J.DeviceContact===S?.Contact:J.DeviceContact===tt?.Contact))),(0,W.p)(P.z2),(0,h.s)(1)))).subscribe(m=>{this.phoneService.requestMakePushWakeUpCall(m,a)});this.subs.add(i("answer",!0)),this.subs.add(i("decline",!1)),this.subs.add(this.notificationService.n
1otificationActions$.pipe((0,F.E)(this.phoneService.myCalls$)).subscribe(o=>{const[a,m]=o,f=m.calls.find(S=>S.localConnectionId===a.localConnectionId||S.callId===a.callId);f&&(a.action===Rt.dF?this.callControlService.drop(f):a.action===Rt.xw&&this.callControlService.answer(f,!1))})),this.subs.add(this.callStateService.callState$.pipe((0,T.n)(o=>this.myPhoneService.myPhoneSession.pipe((0,g.T)(a=>(0,Hn.cX)(a.myInfo)),(0,g.T)(a=>[o,a])))).subscribe({next:o=>{const[a,m]=o}}))}ngOnDestroy(){this.subs.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-call-control"]],viewQuery:function(i,o){if(1&i&&t.GBs(ji,5),2&i){let a;t.mGM(a=t.lsd())&&(o.callView=a.first)}},decls:11,vars:13,consts:[["callView",""],[3,"activeCall"],[1,"calls-wrapper"],[3,"loop","src","sink"],[3,"sink","srcObject"],[3,"callActionFired"],["tabindex","0",3,"myCall","hasSingleCall"],["tabindex","0",3,"inCallKeyPadVisible","conferenceActionsVisible","inCallSearchVisible","myCall","hasSingleCall"]],template:function(i,o){if(1&i&&(t.nVh(0,Ni,3,3),t.nI1(1,"async"),t.nVh(2,Ei,2,3),t.nI1(3,"async"),t.nVh(4,Bi,2,3,"calls-bar",1),t.j41(5,"div",2),t.nVh(6,Di,1,0,"multiple-incoming-calls"),t.nI1(7,"async"),t.vZN(8,$i,2,3),t.nVh(9,Li,1,0,"dialer-view"),t.nI1(10,"async"),t.k0s()),2&i){let a,m;t.vxM((a=t.bMT(1,5,o.soundNotification$))?0:-1,a),t.R7$(2),t.vxM((m=t.bMT(3,7,o.activeCall$))?2:-1,m),t.R7$(2),t.vxM(o.isCallsBarVisible?4:-1),t.R7$(2),t.vxM(t.bMT(7,9,o.dialerService.hasMultipleCallsAllIncoming$)?6:8),t.R7$(3),t.vxM(t.bMT(10,11,o.dialerService.doesNotHaveCalls$)?9:-1)}},dependencies:[Jn,ut,ei,ai,Fn,ki,k.Jj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;position:relative;overflow:hidden;align-items:stretch;flex-grow:1}[_nghost-%COMP%]   .calls-wrapper[_ngcontent-%COMP%]{padding:0 0 15px;position:relative;display:flex;flex-direction:row;max-height:100%;min-height:0;flex-grow:1}"]})}}return n})()},3417:(A,x,s)=>{A.exports=P,P.available=function C(){return!!_(document.body)},P.enabled=function w(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)};var l=s(44356).EventEmitter,v=s(25869),y=v.removeEventListener;function P(M){for(var O=M.ownerDocument,T=_(M),V=new l,j=["","webkit","moz"],E=0,z=j.length;E<z;++E)v(O,j[E]+"fullscreenchange",B),v(O,j[E]+"fullscreenerror",t);return v(O,"MSFullscreenChange",B),v(O,"MSFullscreenError",t),V.release=function u(){var d=M.exitFullscreen||M.webkitExitFullscreen||M.mozCancelFullScreen||M.mozExitFullScreen||M.msExitFullscreen;d?d.apply(M,arguments):(O.exitFullscreen||O.webkitExitFullscreen||O.mozCancelFullScreen||O.mozExitFullScreen||O.msExitFullscreen).apply(O,arguments)},V.request=function R(){return T.apply(M,arguments)},V.dispose=function r(){for(var d=0,h=j.length;d<h;++d)y(O,j[d]+"fullscreenchange",B),y(O,j[d]+"fullscreenerror",t);y(O,"MSFullscreenChange",B),y(O,"MSFullscreenError",t)},V.target=c,_||setTimeout(function(){V.emit("error",new Error("fullscreen is not supported"))},0),V;function B(){if(!c())return V.emit("release");V.emit("attain")}function t(){V.emit("error")}function c(){return O.fullscreenElement||O.webkitFullscreenElement||O.mozFullScreenElement||O.msFullscreenElement||null}}function _(M){return M.requestFullscreen||M.webkitRequestFullscreen||M.mozRequestFullScreen||M.msRequestFullscreen}},4202:(A,x,s)=>{"use strict";s.d(x,{l:()=>y});var l=s(2615),v=s(73664);let y=(()=>{class C{static{this.\u0275fac=function(_){return new(_||C)}}static{this.\u0275cmp=v.VBU({type:C,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(_,M){1&_&&(l.qSk(),v.rj2(0,"svg",0),v.Hgh(1,"path",1),v.eux())},encapsulation:2})}}return C})()},5491:(A,x,s)=>{"use strict";s.d(x,{C:()=>y});var l=s(2615),v=s(73664);let y=(()=>{class C{static{this.\u0275fac=function(_){return new(_||C)}}static{this.\u0275cmp=v.VBU({type:C,selectors:[["app-pause-solid-icon"],["","app-pause-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z"]],template:function(_,M){1&_&&(l.qSk(),v.rj2(0,"svg",0),v.Hgh(1,"path",1),v.eux())},encapsulation:2})}}return C})()},5739:(A,x,s)=>{"use strict";s.d(x,{b:()=>y});var l=s(2615),v=s(73664);let y=(()=>{class C{static{this.\u0275fac=function(_){return new(_||C)}}static{this.\u0275cmp=v.VBU({type:C,selectors:[["app-exclamation-circle-solid-icon"],["","app-exclamation-circle-solid-icon",""]],decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346 7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418
1-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]],template:function(_,M){1&_&&(l.qSk(),v.rj2(0,"svg",0),v.Hgh(1,"path",1),v.eux())},encapsulation:2})}}return C})()},25869:A=>{s.removeEventListener=function l(P,_,M,O){return(x=x||(document.addEventListener?{add:v,rm:y}:{add:C,rm:w})).rm(P,_,M,O)},s.addEventListener=s,A.exports=s;var x=null;function s(P,_,M,O){return(x=x||(document.addEventListener?{add:v,rm:y}:{add:C,rm:w})).add(P,_,M,O)}function v(P,_,M,O){P.addEventListener(_,M,O)}function y(P,_,M,O){P.removeEventListener(_,M,O)}function C(P,_,M,O){if(O)throw new Error("cannot useCapture in oldIE");P.attachEvent("on"+_,M)}function w(P,_,M,O){P.detachEvent("on"+_,M)}},38900:(A,x,s)=>{"use strict";s.d(x,{x:()=>C});var l=s(90558),v=s(73664);let C=(()=>{class w{transform(_,M="_i18n.Enable3CXSmartphone"){return function y(w,P){if(!w)return"";const _=w.indexOf("/");return(w=_>=0?w.substring(0,_):w).replace(new RegExp("^(3CXPhone for Windows)+.*$","igm"),"_i18n.3CXPhoneForWindows").replace("3CXPhone ","3CX Client ").replace(l.Jc,P).replace(l.N9,P).replace(l.$S,"_i18n.Browser")}(_,M)}static{this.\u0275fac=function(M){return new(M||w)}}static{this.\u0275pipe=v.EJ8({name:"stripUserAgent",type:w,pure:!0})}}return w})()},44356:A=>{"use strict";var l,x="object"==typeof Reflect?Reflect:null,s=x&&"function"==typeof x.apply?x.apply:function(c,r,d){return Function.prototype.apply.call(c,r,d)};l=x&&"function"==typeof x.ownKeys?x.ownKeys:Object.getOwnPropertySymbols?function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:function(c){return Object.getOwnPropertyNames(c)};var y=Number.isNaN||function(c){return c!=c};function C(){C.init.call(this)}A.exports=C,A.exports.once=function B(u,c){return new Promise(function(r,d){function h(b){u.removeListener(c,g),d(b)}function g(){"function"==typeof u.removeListener&&u.removeListener("error",h),r([].slice.call(arguments))}R(u,c,g,{once:!0}),"error"!==c&&function t(u,c,r){"function"==typeof u.on&&R(u,"error",c,r)}(u,h,{once:!0})})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var w=10;function P(u){if("function"!=typeof u)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}function _(u){return void 0===u._maxListeners?C.defaultMaxListeners:u._maxListeners}function M(u,c,r,d){var h,g,b;if(P(r),void 0===(g=u._events)?(g=u._events=Object.create(null),u._eventsCount=0):(void 0!==g.newListener&&(u.emit("newListener",c,r.listener?r.listener:r),g=u._events),b=g[c]),void 0===b)b=g[c]=r,++u._eventsCount;else if("function"==typeof b?b=g[c]=d?[r,b]:[b,r]:d?b.unshift(r):b.push(r),(h=_(u))>0&&b.length>h&&!b.warned){b.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+b.length+" "+String(c)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=u,I.type=c,I.count=b.length,function v(u){console&&console.warn&&console.warn(u)}(I)}return u}function O(){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 F(u,c,r){var d={fired:!1,wrapFn:void 0,target:u,type:c,listener:r},h=O.bind(d);return h.listener=r,d.wrapFn=h,h}function T(u,c,r){var d=u._events;if(void 0===d)return[];var h=d[c];return void 0===h?[]:"function"==typeof h?r?[h.listener||h]:[h]:r?function z(u){for(var c=new Array(u.length),r=0;r<c.length;++r)c[r]=u[r].listener||u[r];return c}(h):j(h,h.length)}function V(u){var c=this._events;if(void 0!==c){var r=c[u];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function j(u,c){for(var r=new Array(c),d=0;d<c;++d)r[d]=u[d];return r}function R(u,c,r,d){if("function"==typeof u.on)d.once?u.once(c,r):u.on(c,r);else{if("function"!=typeof u.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u);u.addEventListener(c,function h(g){d.once&&u.removeEventListener(c,h),r(g)})}}Object.defineProperty(C,"defaultMaxListeners",{enumerable:!0,get:function(){return w},set:function(u){if("number"!=typeof u||u<0||y(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");w=u}}
vendor: 4,857 bytes, line 1
1),C.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},C.prototype.setMaxListeners=function(c){if("number"!=typeof c||c<0||y(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this},C.prototype.getMaxListeners=function(){return _(this)},C.prototype.emit=function(c){for(var r=[],d=1;d<arguments.length;d++)r.push(arguments[d]);var h="error"===c,g=this._events;if(void 0!==g)h=h&&void 0===g.error;else if(!h)return!1;if(h){var b;if(r.length>0&&(b=r[0]),b instanceof Error)throw b;var I=new Error("Unhandled error."+(b?" ("+b.message+")":""));throw I.context=b,I}var U=g[c];if(void 0===U)return!1;if("function"==typeof U)s(U,this,r);else{var et=U.length,ot=j(U,et);for(d=0;d<et;++d)s(ot[d],this,r)}return!0},C.prototype.on=C.prototype.addListener=function(c,r){return M(this,c,r,!1)},C.prototype.prependListener=function(c,r){return M(this,c,r,!0)},C.prototype.once=function(c,r){return P(r),this.on(c,F(this,c,r)),this},C.prototype.prependOnceListener=function(c,r){return P(r),this.prependListener(c,F(this,c,r)),this},C.prototype.off=C.prototype.removeListener=function(c,r){var d,h,g,b,I;if(P(r),void 0===(h=this._events))return this;if(void 0===(d=h[c]))return this;if(d===r||d.listener===r)0===--this._eventsCount?this._events=Object.create(null):(delete h[c],h.removeListener&&this.emit("removeListener",c,d.listener||r));else if("function"!=typeof d){for(g=-1,b=d.length-1;b>=0;b--)if(d[b]===r||d[b].listener===r){I=d[b].listener,g=b;break}if(g<0)return this;0===g?d.shift():function E(u,c){for(;c+1<u.length;c++)u[c]=u[c+1];u.pop()}(d,g),1===d.length&&(h[c]=d[0]),void 0!==h.removeListener&&this.emit("removeListener",c,I||r)}return this},C.prototype.removeAllListeners=function(c){var r,d,h;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[c]&&(0===--this._eventsCount?this._events=Object.create(null):delete d[c]),this;if(0===arguments.length){var b,g=Object.keys(d);for(h=0;h<g.length;++h)"removeListener"!==(b=g[h])&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(r=d[c]))this.removeListener(c,r);else if(void 0!==r)for(h=r.length-1;h>=0;h--)this.removeListener(c,r[h]);return this},C.prototype.listeners=function(c){return T(this,c,!0)},C.prototype.rawListeners=function(c){return T(this,c,!1)},C.listenerCount=function(u,c){return"function"==typeof u.listenerCount?u.listenerCount(c):V.call(u,c)},C.prototype.listenerCount=V,C.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},48984:(A,x,s)=>{"use strict";s.d(x,{L:()=>y});var l=s(2615),v=s(73664);let y=(()=>{class C{static{this.\u0275fac=function(_){return new(_||C)}}static{this.\u0275cmp=v.VBU({type:C,selectors:[["app-webmeeting-custom-icon"],["","app-webmeeting-custom-icon",""]],decls:5,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M208.545 398.405c.848-28.636.848-57.06-19.515-79.333-22.06-23.97-35.212-24.181-57.06-.212-30.334 33.303-22.698 32.879-53.667-1.06-21.212-23.122-32.242-23.334-54.515-.425-11.667 11.879-18.242 26.515-21 46.667l-.636 30.12c.212 7.637 1.697 10.607 9.12 10.607 62.788-.212 125.364-.212 188.151-.212 3.607-.425 8.91 1.485 9.122-6.152z"],["d","M71.727 235.285c-5.515.212-13.788-2.97-13.576 8.909.425 20.363 4.667 39.242 21.212 51.333 16.334 11.879 33.515 12.727 49.849 1.697 22.697-15.273 25.03-39.454 21.636-66.606-26.727 7.424-53.03 3.394-79.12 4.667zm-5.94-7.849c1.486.212 3.183.212 5.092 0h26.09v.212c1.061 0 2.334 0 3.182-.212h12.515v-.424c7.425-.212 14.849-.636 22.273-2.121 14.636-2.97 18.242-15.91 17.182-30.545-.849-7 4.454-19.303-5.515-19.728-23.122-1.06-47.091-5.727-69.364 3.606C61.545 184.8 55.606 202.406 59 219.376c.848 5.515 3.394 7.636 6.788 8.06zm137.455-28-.849 30.122c.212 7.636 1.697 10.606 9.121 10.606 62.788-.213 125.363-.213 188.15-.213 3.82 0 9.122 1.91 9.334-5.727.849-28.636.849-57.06-19.515-79.333-22.06-23.97-35.212-24.181-57.06-.212-30.333 33.303-22.697 32.879-53.667-1.06-21.212-23.122-32.242-23.334-54.514-.425-11.667 11.667-18.243 26.091-21 46.242z"],["d","M280.759 70.892c-5.516.212-13.788-2.97-13.576 8.909.424 20.363 4.667 39.242 21.212 51.333 16.333 11.878 33.515 12.727 49.848 1.697 22.697-15.273 25.03-39.455 21.636-66.606-26.727 7.424-52.818 3.394-79.12 4.667zm-5.939-7.637c1.484.212 3.181.212 5.09 0H306v.212c1.061 0 2.334 0 3.183-.212h12.515v-.424c7.424-.212 14.848-.636 22.272-2.121 14.637-2.97 18.243-15.91 17.182-30.545-.636-6.788 4.667-19.091-5.515-19.516-23.121-1.06-47.09-5.727-69.363 3.8
119-15.697 6.575-21.637 24.181-18.243 41.151.849 4.879 3.394 7 6.788 7.636zm130.877 360.818c-30.333 33.302-22.696 32.878-53.666-1.061-21-23.121-32.242-23.333-54.303-.424-11.666 11.878-18.242 26.515-21 46.666l-.848 30.121c.212 7.637 1.697 10.606 9.121 10.606 62.788-.212 125.363-.212 188.15-.212 3.819 0 9.122 1.91 9.334-5.727.848-28.636.848-57.06-19.515-79.333-22.273-24.182-35.636-24.394-57.273-.636z"],["d","M345.455 339.86c-5.515.212-13.788-2.97-13.575 8.91.424 20.363 4.666 39.241 21.212 51.332 16.333 11.879 33.515 12.727 49.848 1.697 22.697-15.273 25.03-39.454 21.636-66.606-26.727 7.637-53.03 3.394-79.12 4.667zm74.879-60.454c-23.121-1.06-47.091-5.727-69.364 3.818-15.697 6.576-21.636 24.182-18.242 41.151 1.06 5.303 3.818 7.424 7 7.849 1.485.212 3.182.212 4.879 0h26.09v.212c1.061 0 2.334 0 3.182-.212h12.515v-.425c7.425-.212 14.849-.636 22.273-2.12 14.636-2.97 18.242-15.91 17.182-30.546-.637-7 4.454-19.303-5.515-19.727zM120.303 141.952V36.316h110.302c19.09 0 19.09-34.297 0-34.297h-125.15c-8.061 0-14.85 7.285-14.85 16.194V141.74c0 21.212 29.698 21.424 29.698.212zM494.788 2.377h-84c-19.09 0-19.09 32.878 0 32.878h69.363v274.908h-2.545c-19.09 0-19.09 32.879 0 32.879H495c8.06 0 14.848-7.424 14.848-16.333V19.134c-.424-9.12-7.212-16.757-15.06-16.757zM239.183 477.103H128.881v-35.849c0-21.212-29.485-21.212-29.485 0v52.394c0 8.909 6.788 16.333 14.848 16.333h125.151c18.879 0 18.879-32.878-.212-32.878z"]],template:function(_,M){1&_&&(l.qSk(),v.rj2(0,"svg",0),v.Hgh(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4),v.eux())},encapsulation:2})}}return C})()},62526:(A,x,s)=>{"use strict";s.d(x,{z:()=>t});var l=s(25558),v=s(96697),y=s(2615),C=s(16444),w=s(24337),P=s(22040),_=s(1211),M=s(84572),O=s(7673),F=s(1807),T=s(983),V=s(60889),j=s(30782),E=s(13499),z=s(20284),B=s(51078);let t=(()=>{class R{constructor(){this.myphone=(0,y.WQX)(C.gx),this.modal=(0,y.WQX)(w.B),this.phoneService=(0,y.WQX)(z.u),this.dialerService=(0,y.WQX)(E.$),this.settingsService=(0,y.WQX)(P.h),this.webRTCControlService=(0,y.WQX)(V.w$),this.meetingListService=(0,y.WQX)(B.X)}onError(c){c&&c.source instanceof _.UsZ||"Invalid connection Id"!==c.message&&this.modal.error(c)}divertToVoicemail(c){this.myphone.myPhoneSession.pipe((0,v.s)(1),(0,l.n)(r=>{const d=new _.Icu;return d.LocalConnectionId=c.localConnectionId,d.IsLocal=!0,d.vmail=!0,d.Destination=r.myInfo.Number,r.get(d)})).subscribe({error:r=>this.onError(r)})}answer(c,r){this.phoneService.answer(c,r),this.dialerService.setPrimaryCall(c.myCallId)}join(c){c.joinToConnectionId&&this.phoneService.join$(c.joinToConnectionId,c.localConnectionId,c.DeviceID).subscribe({error:r=>this.onError(r)})}transfer(c,r){this.settingsService.preprocessPhoneNumber(r.number).pipe((0,l.n)(d=>{const h=r.isVoicemail,g=d;return this.myphone.myPhoneSession.pipe((0,v.s)(1),(0,l.n)(b=>{const I=new _.JoO;return I.IsLocal=!1,I.LocalConnectionId=c.localConnectionId,I.Destination=h?b.systemParameters.VmailDialCode+g:g,b.get(I)}))})).subscribe({error:d=>this.onError(d)})}makeConnectedCall(c,r){return this.phoneService.makeConnectedCall$(c.localConnectionId,r)}attTransfer(c,r){(0,M.z)([this.settingsService.preprocessPhoneNumber(r.number),this.myphone.myPhoneSession]).pipe((0,v.s)(1),(0,l.n)(([d,h])=>this.makeConnectedCall(c,r.isVoicemail?h.systemParameters.VmailDialCode+d:d)),(0,v.s)(1)).subscribe({next:d=>{const[h,g]=d;this.phoneService.requestAttTransfer(h.myCallId,g.myCallId)},error:d=>this.onError(d)})}attendedConference(c,r){this.settingsService.preprocessPhoneNumber(r.number).pipe((0,l.n)(d=>this.makeConnectedCall(c,d).pipe((0,v.s)(1)))).subscribe({next:d=>{const[h,g]=d;this.phoneService.requestAttConference(h.myCallId,g.myCallId)},error:d=>this.onError(d)})}joinAttendedConference(c){(0,M.z)([this.meetingListService.IsMyPrivateConferenceActive$,this.dialerService.myPrivateConferenceCall$]).pipe((0,v.s)(1),(0,l.n)(([r,d])=>{if(r&&c.conferenceType!==_.kqr.LCCT_AdHocPrivate){const g=new _.zqb;return g.LocalConnectionId=c.localConnectionId,g.IsLocal=!0,g.Participants=d?_.nRF.OTHER_CONNECTION:_.nRF.BOTH_CONNECTIONS,this.myphone.get(g).pipe((0,l.n)(b=>d&&d.isWebRtcBrowserAgent?(0,F.O)(300).pipe((0,v.s)(1),(0,l.n)(()=>this.webRTCControlService.hold(d.media,!0))):(0,O.of)(!0)))}if(!c.joinConferenceOtherConnectionId)return T.w;const h=new _.zqb;if(h.LocalConnectionId=c.joinConferenceOtherConnectionId,h.IsLocal=!0,h.Participants=_.nRF.OTHER_CONNECTION,c.conferenceType===_.kqr.LCCT_AdHocPrivate)return this.myphone.get(h).pipe((0,l.n)(g=>c.isWebRtcBrowserAgent?this.webRTCControlService.hold(c.media,!0):(0,O.of)(!0)));{const g=new _.zqb;return g.LocalConnectionId=c.localConnectionId,g.IsLocal=!0,g.Participants=_.nRF.BOTH_CONNECTIONS,(0,M.z)([this.myphone.get(g),this.myphone.get(h)])}})).subscribe({next:()=>this.phoneService.requestAttendedCallCompleted(c.myCallId),error:r=>this.onError(r)})}conference(c,r){this.settingsService.preprocessPhoneNumber(r.number).pipe((0,l.n)(d=>this.makeConnectedCall(c,d).pipe((0,v.s)(1))),(0,l.n)(d=>{const[h,g]=d,b=new _.zqb;if(b.LocalConnectionId=g.localConnectionId,b.IsLocal=!0,b.Participants=_.nRF.BOTH_CONNECTIONS,!g.isConnCapabilitiesTransfer)return(0,O.of)("");if(c.isConferenceCall)return b.Participants=_.nRF.OTHER_CONNECTION,this.myphone.get(b).pipe((0,l.n)(I=>c.isWebRtcBrowserAgent?this.webRTCControlService.hold(c.media,!0):(0,O.of)(!0)));{const I=new _.zqb;return I.LocalConnectionId=h.localConnectionId,I.IsLocal=!0,I.Participants=_.nRF.OTHER_CONNECTION,(0,M.z)([this.myphone.get(I),this.myphone.get(b)])}})).subscribe({error:d=>this.onError(d)})}sendDtmf(c,r){try{this.webRTCControlService.sendDtmf(c.media,r)}catch(d){this.onError(d)}}drop(c){this.phoneService.drop(c)}video(c){c.media!==j.d&&this.webRTCControlService.video(c.media).subscribe({error:r=>this.onError(r)})}mute(c){c.media!==j.d&&this.webRTCControlService.mute(c.media,c.myCallId)}hold(c){this.webRTCControlService.hold(c.media,!1).subscribe({error:r=>this.onError(r)})}resume(c){this.dialerService.setPrimaryCall(c.myCallId),this.webRTCControlService.hold(c.media,!0).subscribe({error:r=>this.onError(r)})}record(c){this.myphone.myPhoneSession.pipe((0,v.s)(1),(0,l.n)(r=>{const d=new _.ODZ;return d.LocalConnectionId=c.localConnectionId,d.IsLocal=!0,d.RecAction=c.isRecording?c.isRecordingPaused?_._rP.Resume:_._rP.Pause:_._rP.Start,d.Folder=r.myInfo.Number,r.get(d)})).subscribe({error:r=>this.onError(r)})}static{this.\u0275fac=function(r){return new(r||R)}}static{this.\u0275prov=y.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()}}]);

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.