UNPKG

soft-phone

Version:
8 lines 619 kB
/** * soft-phone - SoftPhone library * @version v1.1.13 * @author xputer technologies * @link https://github.com/trekhleb/angular-library-seed#readme * @license MIT */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("@angular/router"),require("@angular/animations"),require("@angular/platform-browser"),require("rxjs/Subject"),require("@angular/platform-browser/animations"),require("@angular/http")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@angular/forms","@angular/router","@angular/animations","@angular/platform-browser","rxjs/Subject","@angular/platform-browser/animations","@angular/http"],t):"object"==typeof exports?exports["soft-phone"]=t(require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("@angular/router"),require("@angular/animations"),require("@angular/platform-browser"),require("rxjs/Subject"),require("@angular/platform-browser/animations"),require("@angular/http")):e["soft-phone"]=t(e.ng.core,e.ng.common,e.ng.forms,e.ng.router,e.ng.animations,e.ng.platformBrowser,e.Rx,e.ng.platformBrowserAnimations,e.ng.http)}(this,function(e,t,i,n,o,s,r,a,l){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){"use strict";function n(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}Object.defineProperty(t,"__esModule",{value:!0}),n(i(70)),n(i(4)),n(i(71)),n(i(72)),n(i(73)),n(i(74)),n(i(8)),n(i(75)),n(i(76)),n(i(77)),n(i(78)),n(i(79)),n(i(80)),n(i(81)),n(i(82)),n(i(83)),n(i(84)),n(i(85)),n(i(86)),n(i(87)),n(i(88)),n(i(89)),n(i(90)),n(i(91)),n(i(92)),n(i(93)),n(i(94)),n(i(95)),n(i(96)),n(i(97)),n(i(98)),n(i(99)),n(i(100)),n(i(101)),n(i(13)),n(i(102)),n(i(103)),n(i(104)),n(i(105)),n(i(106)),n(i(107)),n(i(20)),n(i(108)),n(i(109)),n(i(110)),n(i(111)),n(i(14)),n(i(112)),n(i(113)),n(i(114)),n(i(115)),n(i(21)),n(i(116)),n(i(117)),n(i(118)),n(i(119)),n(i(120)),n(i(121)),n(i(122)),n(i(123)),n(i(124)),n(i(125)),n(i(126)),n(i(127)),n(i(128)),n(i(129)),n(i(130)),n(i(131)),n(i(132)),n(i(133)),n(i(134))},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=function(){function e(){this.calculatedScrollbarWidth=null}return e.prototype.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},e.prototype.addMultipleClasses=function(e,t){if(e.classList)for(var i=t.split(" "),n=0;n<i.length;n++)e.classList.add(i[n]);else for(var i=t.split(" "),n=0;n<i.length;n++)e.className+=" "+i[n]},e.prototype.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},e.prototype.hasClass=function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},e.prototype.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,function(t){return t!==e})},e.prototype.find=function(e,t){return e.querySelectorAll(t)},e.prototype.findSingle=function(e,t){return e.querySelector(t)},e.prototype.index=function(e){for(var t=e.parentNode.childNodes,i=0,n=0;n<t.length;n++){if(t[n]==e)return i;1==t[n].nodeType&&i++}return-1},e.prototype.relativePosition=function(e,t){var i,n,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=t.offsetHeight,r=t.offsetWidth,a=t.getBoundingClientRect(),l=(this.getWindowScrollTop(),this.getViewport());a.top+s+o.height>l.height?(i=-1*o.height,a.top+i<0&&(i=0)):i=s,n=a.left+o.width>l.width?r-o.width:0,e.style.top=i+"px",e.style.left=n+"px"},e.prototype.absolutePosition=function(e,t){var i,n,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=t.offsetHeight,l=t.offsetWidth,p=t.getBoundingClientRect(),d=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),c=this.getViewport();p.top+a+s>c.height?(i=p.top+d-s)<0&&(i=0+d):i=a+p.top+d,n=p.left+l+r>c.width?p.left+u+l-r:p.left+u,e.style.top=i+"px",e.style.left=n+"px"},e.prototype.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.prototype.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.prototype.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.prototype.scrollInView=function(e,t){var i=getComputedStyle(e).getPropertyValue("borderTopWidth"),n=i?parseFloat(i):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),s=o?parseFloat(o):0,r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),l=a.top+document.body.scrollTop-(r.top+document.body.scrollTop)-n-s,p=e.scrollTop,d=e.clientHeight,u=this.getOuterHeight(t);l<0?e.scrollTop=p+l:l+u>d&&(e.scrollTop=p+l-d+u)},e.prototype.fadeIn=function(e,t){e.style.opacity=0;var i=+new Date,n=0,o=function(){n=+e.style.opacity+((new Date).getTime()-i)/t,e.style.opacity=n,i=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()},e.prototype.fadeOut=function(e,t){var i=1,n=t,o=50/n,s=setInterval(function(){i-=o,i<=0&&(i=0,clearInterval(s)),e.style.opacity=i},50)},e.prototype.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.prototype.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.prototype.matches=function(e,t){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.prototype.getOuterWidth=function(e,t){var i=e.offsetWidth;if(t){var n=getComputedStyle(e);i+=parseFloat(n.marginLeft)+parseFloat(n.marginRight)}return i},e.prototype.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.prototype.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.prototype.innerWidth=function(e){var t=e.offsetWidth,i=getComputedStyle(e);return t+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)},e.prototype.width=function(e){var t=e.offsetWidth,i=getComputedStyle(e);return t-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)},e.prototype.getInnerHeight=function(e){var t=e.offsetHeight,i=getComputedStyle(e);return t+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)},e.prototype.getOuterHeight=function(e,t){var i=e.offsetHeight;if(t){var n=getComputedStyle(e);i+=parseFloat(n.marginTop)+parseFloat(n.marginBottom)}return i},e.prototype.getHeight=function(e){var t=e.offsetHeight,i=getComputedStyle(e);return t-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)},e.prototype.getWidth=function(e){var t=e.offsetWidth,i=getComputedStyle(e);return t-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)},e.prototype.getViewport=function(){var e=window,t=document,i=t.documentElement,n=t.getElementsByTagName("body")[0];return{width:e.innerWidth||i.clientWidth||n.clientWidth,height:e.innerHeight||i.clientHeight||n.clientHeight}},e.prototype.getOffset=function(e){for(var t=e.offsetLeft,i=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,i+=e.offsetTop;return{left:t,top:i}},e.prototype.getUserAgent=function(){return navigator.userAgent},e.prototype.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0)return e.indexOf("rv:"),!0;return e.indexOf("Edge/")>0},e.prototype.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot append "+t+" to "+e;t.el.nativeElement.appendChild(e)}},e.prototype.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+e+" from "+t;t.el.nativeElement.removeChild(e)}},e.prototype.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.prototype.calculateScrollbarWidth=function(){if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var e=document.createElement("div");e.className="ui-scrollbar-measure",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.prototype.invokeElementMethod=function(e,t,i){e[t].apply(e,i)},e.prototype.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e}();s.zindex=1e3,s=n([o.Injectable()],s),t.DomHandler=s},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(1),a=i(0),l=function(){function e(){}return e}();l=n([a.Component({selector:"p-header",template:"<ng-content></ng-content>"})],l),t.Header=l;var p=function(){function e(){}return e}();p=n([a.Component({selector:"p-footer",template:"<ng-content></ng-content>"})],p),t.Footer=p;var d=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e}();n([s.Input(),o("design:type",String)],d.prototype,"type",void 0),n([s.Input("pTemplate"),o("design:type",String)],d.prototype,"name",void 0),d=n([s.Directive({selector:"[pTemplate]",host:{}}),o("design:paramtypes",[s.TemplateRef])],d),t.PrimeTemplate=d;var u=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.templateRef,{$implicit:this.item,index:this.index})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();n([s.Input(),o("design:type",Object)],u.prototype,"item",void 0),n([s.Input(),o("design:type",Number)],u.prototype,"index",void 0),n([s.Input("pTemplateWrapper"),o("design:type",s.TemplateRef)],u.prototype,"templateRef",void 0),u=n([s.Directive({selector:"[pTemplateWrapper]"}),o("design:paramtypes",[s.ViewContainerRef])],u),t.TemplateWrapper=u;var c=function(){function e(){this.filterType="text",this.sortFunction=new s.EventEmitter}return e.prototype.ngAfterContentInit=function(){var e=this;this.templates.forEach(function(t){switch(t.getType()){case"header":e.headerTemplate=t.template;break;case"body":e.bodyTemplate=t.template;break;case"footer":e.footerTemplate=t.template;break;case"filter":e.filterTemplate=t.template;break;case"editor":e.editorTemplate=t.template;break;default:e.bodyTemplate=t.template}})},e}();n([s.Input(),o("design:type",String)],c.prototype,"field",void 0),n([s.Input(),o("design:type",String)],c.prototype,"sortField",void 0),n([s.Input(),o("design:type",String)],c.prototype,"header",void 0),n([s.Input(),o("design:type",String)],c.prototype,"footer",void 0),n([s.Input(),o("design:type",Object)],c.prototype,"sortable",void 0),n([s.Input(),o("design:type",Boolean)],c.prototype,"editable",void 0),n([s.Input(),o("design:type",Boolean)],c.prototype,"filter",void 0),n([s.Input(),o("design:type",String)],c.prototype,"filterMatchMode",void 0),n([s.Input(),o("design:type",String)],c.prototype,"filterType",void 0),n([s.Input(),o("design:type",Number)],c.prototype,"rowspan",void 0),n([s.Input(),o("design:type",Number)],c.prototype,"colspan",void 0),n([s.Input(),o("design:type",Object)],c.prototype,"style",void 0),n([s.Input(),o("design:type",String)],c.prototype,"styleClass",void 0),n([s.Input(),o("design:type",Boolean)],c.prototype,"hidden",void 0),n([s.Input(),o("design:type",Boolean)],c.prototype,"expander",void 0),n([s.Input(),o("design:type",String)],c.prototype,"selectionMode",void 0),n([s.Input(),o("design:type",String)],c.prototype,"filterPlaceholder",void 0),n([s.Input(),o("design:type",Number)],c.prototype,"filterMaxlength",void 0),n([s.Input(),o("design:type",Boolean)],c.prototype,"frozen",void 0),n([s.Output(),o("design:type",s.EventEmitter)],c.prototype,"sortFunction",void 0),n([s.ContentChildren(d),o("design:type",s.QueryList)],c.prototype,"templates",void 0),n([s.ContentChild(s.TemplateRef),o("design:type",s.TemplateRef)],c.prototype,"template",void 0),c=n([a.Component({selector:"p-column",template:""})],c),t.Column=c;var h=function(){function e(){}return e}();n([s.ContentChildren(c),o("design:type",s.QueryList)],h.prototype,"columns",void 0),h=n([a.Component({selector:"p-row",template:""})],h),t.Row=h;var f=function(){function e(){}return e}();n([s.ContentChildren(h),o("design:type",s.QueryList)],f.prototype,"rows",void 0),f=n([a.Component({selector:"p-headerColumnGroup",template:""})],f),t.HeaderColumnGroup=f;var g=function(){function e(){}return e}();n([s.ContentChildren(h),o("design:type",s.QueryList)],g.prototype,"rows",void 0),g=n([a.Component({selector:"p-footerColumnGroup",template:""})],g),t.FooterColumnGroup=g;var m=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.bodyTemplate,{$implicit:this.column,rowData:this.rowData,rowIndex:this.rowIndex})},e.prototype.ngOnChanges=function(e){this.view&&"rowIndex"in e&&(this.view.context.rowIndex=e.rowIndex.currentValue)},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();n([s.Input(),o("design:type",Object)],m.prototype,"column",void 0),n([s.Input(),o("design:type",Object)],m.prototype,"rowData",void 0),n([s.Input(),o("design:type",Number)],m.prototype,"rowIndex",void 0),m=n([a.Component({selector:"p-columnBodyTemplateLoader",template:""}),o("design:paramtypes",[s.ViewContainerRef])],m),t.ColumnBodyTemplateLoader=m;var v=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.headerTemplate,{$implicit:this.column})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();n([s.Input(),o("design:type",Object)],v.prototype,"column",void 0),v=n([a.Component({selector:"p-columnHeaderTemplateLoader",template:""}),o("design:paramtypes",[s.ViewContainerRef])],v),t.ColumnHeaderTemplateLoader=v;var y=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.footerTemplate,{$implicit:this.column})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();n([s.Input(),o("design:type",Object)],y.prototype,"column",void 0),y=n([a.Component({selector:"p-columnFooterTemplateLoader",template:""}),o("design:paramtypes",[s.ViewContainerRef])],y),t.ColumnFooterTemplateLoader=y;var b=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.filterTemplate,{$implicit:this.column})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();n([s.Input(),o("design:type",Object)],b.prototype,"column",void 0),b=n([a.Component({selector:"p-columnFilterTemplateLoader",template:""}),o("design:paramtypes",[s.ViewContainerRef])],b),t.ColumnFilterTemplateLoader=b;var C=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.editorTemplate,{$implicit:this.column,rowData:this.rowData,rowIndex:this.rowIndex})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();n([s.Input(),o("design:type",Object)],C.prototype,"column",void 0),n([s.Input(),o("design:type",Object)],C.prototype,"rowData",void 0),n([s.Input(),o("design:type",Object)],C.prototype,"rowIndex",void 0),C=n([a.Component({selector:"p-columnEditorTemplateLoader",template:""}),o("design:paramtypes",[s.ViewContainerRef])],C),t.ColumnEditorTemplateLoader=C;var w=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.template&&(this.view=this.viewContainer.createEmbeddedView(this.template,{$implicit:this.data}))},e.prototype.ngOnDestroy=function(){this.view&&this.view.destroy()},e}();n([s.Input(),o("design:type",s.TemplateRef)],w.prototype,"template",void 0),n([s.Input(),o("design:type",Object)],w.prototype,"data",void 0),w=n([a.Component({selector:"p-templateLoader",template:""}),o("design:paramtypes",[s.ViewContainerRef])],w),t.TemplateLoader=w;var A=function(){function e(){}return e}();A=n([s.NgModule({imports:[r.CommonModule],exports:[l,p,c,u,v,m,y,b,d,w,h,f,g,C],declarations:[l,p,c,u,v,m,y,b,d,w,h,f,g,C]})],A),t.SharedModule=A},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(3),a=i(1),l=function(){function e(e,t){this.el=e,this.domHandler=t,this.iconPos="left",this.cornerStyleClass="ui-corner-all"}return e.prototype.ngAfterViewInit=function(){if(this.domHandler.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.icon){var e=document.createElement("span"),t="right"==this.iconPos?"ui-button-icon-right":"ui-button-icon-left";e.className=t+" ui-clickable fa fa-fw "+this.icon,this.el.nativeElement.appendChild(e)}var i=document.createElement("span");i.className="ui-button-text ui-clickable",i.appendChild(document.createTextNode(this.label||"ui-btn")),this.el.nativeElement.appendChild(i),this.initialized=!0},e.prototype.getStyleClass=function(){var e="ui-button ui-widget ui-state-default "+this.cornerStyleClass;return this.icon?null!=this.label&&void 0!=this.label?"left"==this.iconPos?e+=" ui-button-text-icon-left":e+=" ui-button-text-icon-right":e+=" ui-button-icon-only":e+=" ui-button-text-only",e},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._label=e,this.initialized&&(this.domHandler.findSingle(this.el.nativeElement,".ui-button-text").textContent=this._label)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(e){if(this._icon=e,this.initialized){var t="right"==this.iconPos?"ui-button-icon-right":"ui-button-icon-left";this.domHandler.findSingle(this.el.nativeElement,".fa").className=t+" ui-clifa fa-fw "+this.icon}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){for(;this.el.nativeElement.hasChildNodes();)this.el.nativeElement.removeChild(this.el.nativeElement.lastChild);this.initialized=!1},e}();n([s.Input(),o("design:type",String)],l.prototype,"iconPos",void 0),n([s.Input(),o("design:type",String)],l.prototype,"cornerStyleClass",void 0),n([s.Input(),o("design:type",String),o("design:paramtypes",[String])],l.prototype,"label",null),n([s.Input(),o("design:type",String),o("design:paramtypes",[String])],l.prototype,"icon",null),l=n([s.Directive({selector:"[pButton]",providers:[r.DomHandler]}),o("design:paramtypes",[s.ElementRef,r.DomHandler])],l),t.Button=l;var p=function(){function e(){}return e}();p=n([s.NgModule({imports:[a.CommonModule],exports:[l],declarations:[l]})],p),t.ButtonModule=p},function(e,t,i){"use strict";function n(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}Object.defineProperty(t,"__esModule",{value:!0}),n(i(22)),n(i(29))},function(e,t){function i(e,t){var i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var s=n(o);return[i].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([s]).join("\n")}return[i].join("\n")}function n(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=i(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(n[s]=!0)}for(o=0;o<e.length;o++){var r=e[o];"number"==typeof r[0]&&n[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="("+r[2]+") and ("+i+")"),t.push(r))}},t}},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=function(){function e(){}return e.prototype.equals=function(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.equalsByValue(e,t)},e.prototype.equalsByValue=function(e,t){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e==t)return delete e._$visited,!0;if("object"==typeof e&&"object"==typeof t){e._$visited=!0;for(var i in e)if("_$visited"!==i){if(e.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1;switch(typeof e[i]){case"object":if(e[i]&&e[i]._$visited||!this.equals(e[i],t[i]))return!1;break;case"function":if(void 0===t[i]||"compare"!=i&&e[i].toString()!=t[i].toString())return!1;break;default:if(e[i]!=t[i])return!1}}for(var i in t)if(void 0===e[i])return!1;return delete e._$visited,!0}return!1},e.prototype.resolveFieldData=function(e,t){if(e&&t){if(-1==t.indexOf("."))return e[t];for(var i=t.split("."),n=e,o=0,s=i.length;o<s;++o){if(null==n)return null;n=n[i[o]]}return n}return null},e.prototype.filter=function(e,t,i){var n=[];if(e)for(var o=0,s=e;o<s.length;o++)for(var r=s[o],a=0,l=t;a<l.length;a++){var p=l[a];if(String(this.resolveFieldData(r,p)).toLowerCase().indexOf(i.toLowerCase())>-1){n.push(r);break}}return n},e.prototype.reorderArray=function(e,t,i){var n;if(e&&t!==i){if(i>=e.length)for(n=i-e.length;1+n--;)e.push(void 0);e.splice(i,0,e.splice(t,1)[0])}},e}();s=n([o.Injectable()],s),t.ObjectUtils=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i(38))},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(1),a=function(){function e(e){this.el=e}return e.prototype.ngDoCheck=function(){this.updateFilledState()},e.prototype.onInput=function(e){this.updateFilledState()},e.prototype.updateFilledState=function(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length},e}();n([s.HostListener("input",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],a.prototype,"onInput",null),a=n([s.Directive({selector:"[pInputText]",host:{"[class.ui-inputtext]":"true","[class.ui-corner-all]":"true","[class.ui-state-default]":"true","[class.ui-widget]":"true","[class.ui-state-filled]":"filled"}}),o("design:paramtypes",[s.ElementRef])],a),t.InputText=a;var l=function(){function e(){}return e}();l=n([s.NgModule({imports:[r.CommonModule],exports:[a],declarations:[a]})],l),t.InputTextModule=l},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(1),a=function(){function e(){this.pageLinkSize=5,this.onPageChange=new s.EventEmitter,this.alwaysShow=!0,this._totalRecords=0,this._first=0,this._rows=0}return Object.defineProperty(e.prototype,"totalRecords",{get:function(){return this._totalRecords},set:function(e){this._totalRecords=e,this.updatePageLinks()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._first},set:function(e){this._first=e,this.updatePageLinks()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e,this.updatePageLinks()},enumerable:!0,configurable:!0}),e.prototype.isFirstPage=function(){return 0===this.getPage()},e.prototype.isLastPage=function(){return this.getPage()===this.getPageCount()-1},e.prototype.getPageCount=function(){return Math.ceil(this.totalRecords/this.rows)||1},e.prototype.calculatePageLinkBoundaries=function(){var e=this.getPageCount(),t=Math.min(this.pageLinkSize,e),i=Math.max(0,Math.ceil(this.getPage()-t/2)),n=Math.min(e-1,i+t-1),o=this.pageLinkSize-(n-i+1);return i=Math.max(0,i-o),[i,n]},e.prototype.updatePageLinks=function(){this.pageLinks=[];for(var e=this.calculatePageLinkBoundaries(),t=e[0],i=e[1],n=t;n<=i;n++)this.pageLinks.push(n+1)},e.prototype.changePage=function(e,t){var i=this.getPageCount();if(e>=0&&e<i){this.first=this.rows*e;var n={page:e,first:this.first,rows:this.rows,pageCount:i};this.updatePageLinks(),this.onPageChange.emit(n)}t&&t.preventDefault()},e.prototype.getPage=function(){return Math.floor(this.first/this.rows)},e.prototype.changePageToFirst=function(e){this.changePage(0,e)},e.prototype.changePageToPrev=function(e){this.changePage(this.getPage()-1,e)},e.prototype.changePageToNext=function(e){this.changePage(this.getPage()+1,e)},e.prototype.changePageToLast=function(e){this.changePage(this.getPageCount()-1,e)},e.prototype.onRppChange=function(e){this.rows=this.rowsPerPageOptions[e.target.selectedIndex],this.changePageToFirst(e)},e}();n([s.Input(),o("design:type",Number)],a.prototype,"pageLinkSize",void 0),n([s.Output(),o("design:type",s.EventEmitter)],a.prototype,"onPageChange",void 0),n([s.Input(),o("design:type",Object)],a.prototype,"style",void 0),n([s.Input(),o("design:type",String)],a.prototype,"styleClass",void 0),n([s.Input(),o("design:type",Array)],a.prototype,"rowsPerPageOptions",void 0),n([s.Input(),o("design:type",Boolean)],a.prototype,"alwaysShow",void 0),n([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"totalRecords",null),n([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"first",null),n([s.Input(),o("design:type",Number),o("design:paramtypes",[Number])],a.prototype,"rows",null),a=n([s.Component({selector:"p-paginator",template:'\n <div [class]="styleClass" [ngStyle]="style" [ngClass]="\'ui-paginator ui-widget ui-widget-header ui-unselectable-text\'"\n *ngIf="alwaysShow ? true : (pageLinks && pageLinks.length > 1)">\n <a href="#" class="ui-paginator-first ui-paginator-element ui-state-default ui-corner-all"\n (click)="changePageToFirst($event)" [ngClass]="{\'ui-state-disabled\':isFirstPage()}" [tabindex]="isFirstPage() ? -1 : null">\n <span class="fa fa-step-backward"></span>\n </a>\n <a href="#" class="ui-paginator-prev ui-paginator-element ui-state-default ui-corner-all"\n (click)="changePageToPrev($event)" [ngClass]="{\'ui-state-disabled\':isFirstPage()}" [tabindex]="isFirstPage() ? -1 : null">\n <span class="fa fa-backward"></span>\n </a>\n <span class="ui-paginator-pages">\n <a href="#" *ngFor="let pageLink of pageLinks" class="ui-paginator-page ui-paginator-element ui-state-default ui-corner-all"\n (click)="changePage(pageLink - 1, $event)" [ngClass]="{\'ui-state-active\': (pageLink-1 == getPage())}">{{pageLink}}</a>\n </span>\n <a href="#" class="ui-paginator-next ui-paginator-element ui-state-default ui-corner-all"\n (click)="changePageToNext($event)" [ngClass]="{\'ui-state-disabled\':isLastPage()}" [tabindex]="isLastPage() ? -1 : null">\n <span class="fa fa-forward"></span>\n </a>\n <a href="#" class="ui-paginator-last ui-paginator-element ui-state-default ui-corner-all"\n (click)="changePageToLast($event)" [ngClass]="{\'ui-state-disabled\':isLastPage()}" [tabindex]="isLastPage() ? -1 : null">\n <span class="fa fa-step-forward"></span>\n </a>\n <select class="ui-paginator-rpp-options ui-widget ui-state-default" *ngIf="rowsPerPageOptions" (change)="onRppChange($event)">\n <option *ngFor="let opt of rowsPerPageOptions" [value]="opt" [selected]="rows == opt">{{opt}}</option>\n </select>\n </div>\n '})],a),t.Paginator=a;var l=function(){function e(){}return e}();l=n([s.NgModule({imports:[r.CommonModule],exports:[a],declarations:[a]})],l),t.PaginatorModule=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(9);t.ButtonsComponent=n.ButtonsComponent,t.ExpertComponent=n.ExpertComponent,t.KeypadComponent=n.KeypadComponent,t.RecipientDetailComponent=n.RecipientDetailComponent,t.RecipientSummaryComponent=n.RecipientSummaryComponent,t.RegistrationComponent=n.RegistrationComponent,t.SoftPhoneBodyComponent=n.SoftPhoneBodyComponent;var o=i(67);t.SoftPhoneModule=o.SoftPhoneModule},function(e,t){e.exports=s},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(18),r=function(){function e(){this.dragStartSource=new s.Subject,this.dragStopSource=new s.Subject,this.dragStart$=this.dragStartSource.asObservable(),this.dragStop$=this.dragStopSource.asObservable()}return e.prototype.startDrag=function(e){this.dragStartSource.next(e)},e.prototype.stopDrag=function(e){this.dragStopSource.next(e)},e}();r=n([o.Injectable()],r),t.TreeDragDropService=r},function(e,t){e.exports=r},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(18),r=function(){function e(){this.requireConfirmationSource=new s.Subject,this.acceptConfirmationSource=new s.Subject,this.requireConfirmation$=this.requireConfirmationSource.asObservable(),this.accept=this.acceptConfirmationSource.asObservable()}return e.prototype.confirm=function(e){return this.requireConfirmationSource.next(e),this},e.prototype.onAccept=function(){this.acceptConfirmationSource.next()},e}();r=n([o.Injectable()],r),t.ConfirmationService=r},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(1),a=function(){function e(){this.closable=!0,this.valueChange=new s.EventEmitter}return e.prototype.hasMessages=function(){return this.value&&this.value.length>0},e.prototype.getSeverityClass=function(){return this.value[0].severity},e.prototype.clear=function(e){this.value=[],this.valueChange.emit(this.value),e.preventDefault()},Object.defineProperty(e.prototype,"icon",{get:function(){var e=null;if(this.hasMessages()){switch(this.value[0].severity){case"success":e="fa-check";break;case"info":e="fa-info-circle";break;case"error":e="fa-close";break;case"warn":e="fa-warning";break;case"success":e="fa-check";break;default:e="fa-info-circle"}}return e},enumerable:!0,configurable:!0}),e}();n([s.Input(),o("design:type",Array)],a.prototype,"value",void 0),n([s.Input(),o("design:type",Boolean)],a.prototype,"closable",void 0),n([s.Output(),o("design:type",s.EventEmitter)],a.prototype,"valueChange",void 0),a=n([s.Component({selector:"p-messages",template:'\n <div *ngIf="hasMessages()" class="ui-messages ui-widget ui-corner-all" style="display:block"\n [ngClass]="{\'ui-messages-info\':(value[0].severity === \'info\'),\n \'ui-messages-warn\':(value[0].severity === \'warn\'),\n \'ui-messages-error\':(value[0].severity === \'error\'),\n \'ui-messages-success\':(value[0].severity === \'success\')}">\n <a href="#" class="ui-messages-close" (click)="clear($event)" *ngIf="closable">\n <i class="fa fa-close"></i>\n </a>\n <span class="ui-messages-icon fa fa-fw fa-2x" [ngClass]="icon"></span>\n <ul>\n <li *ngFor="let msg of value">\n <span class="ui-messages-summary">{{msg.summary}}</span>\n <span class="ui-messages-detail">{{msg.detail}}</span>\n </li>\n </ul>\n </div>\n '})],a),t.Messages=a;var l=function(){function e(){}return e}();l=n([s.NgModule({imports:[r.CommonModule],exports:[a],declarations:[a]})],l),t.MessagesModule=l},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=i(1),a=function(){function e(){this.showValue=!0,this.unit="%"}return e}();n([s.Input(),o("design:type",Object)],a.prototype,"value",void 0),n([s.Input(),o("design:type",Boolean)],a.prototype,"showValue",void 0),n([s.Input(),o("design:type",String)],a.prototype,"unit",void 0),a=n([s.Component({selector:"p-progressBar",template:'\n <div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" [attr.aria-valuenow]="value" aria-valuemax="100">\n <div class="ui-progressbar-value ui-progressbar-value-animate ui-widget-header ui-corner-all" [style.width]="value + \'%\'" style="display:block"></div>\n <div class="ui-progressbar-label" [style.display]="value ? \'block\' : \'none\'" *ngIf="showValue">{{value}}{{unit}}</div>\n </div>\n '})],a),t.ProgressBar=a;var l=function(){function e(){}return e}();l=n([s.NgModule({imports:[r.CommonModule],exports:[a],declarations:[a]})],l),t.ProgressBarModule=l},function(e,t,i){"use strict";function n(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}Object.defineProperty(t,"__esModule",{value:!0}),n(i(23)),n(i(24)),n(i(25)),n(i(26)),n(i(27)),n(i(28))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e}();t.Agent=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e}();t.Registration=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e}();t.User=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e}();t.UserDetail=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Ringing=0]="Ringing"}(t.CallStatus||(t.CallStatus={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.DialPadOutbound=0]="DialPadOutbound",e[e.ActiveCallOutbound=1]="ActiveCallOutbound",e[e.InCall=2]="InCall",e[e.DialPadForwarding=3]="DialPadForwarding",e[e.ActiveCallForwarding=4]="ActiveCallForwarding",e[e.ActiveCallInbound=5]="ActiveCallInbound"}(t.CallState||(t.CallState={}))},function(e,t,i){"use strict";function n(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}Object.defineProperty(t,"__esModule",{value:!0}),n(i(30)),n(i(35)),n(i(42)),n(i(47)),n(i(52)),n(i(57)),n(i(62))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i(31))},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),r=function(){function e(){this.OutCallPickEmitter=new s.EventEmitter,this.IncomPickEmitter=new s.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.outClick=function(){this.OutCallPickEmitter.emit(!1),this.IncomPickEmitter.emit(!0)},e.prototype.pickClick=function(){this.OutCallPickEmitter.emit(!0),this.IncomPickEmitter.emit(!1)},n([s.Output("action"),o("design:type",Object)],e.prototype,"OutCallPickEmitter",void 0),n([s.Output("action2"),o("design:type",Object)],e.prototype,"IncomPickEmitter",void 0),e=n([s.Component({selector:"sphone-buttons",template:i(32),styles:[i(33)]}),o("design:paramtypes",[])],e)}();t.ButtonsComponent=r},function(e,t){e.exports='\r\n<div>\r\n \x3c!-- <button pButton type="button" (click)="inClick()" label="incoming" id="btn" ></button> --\x3e\r\n <button pButton type="button" (click)="outClick()" label="outgoin" id="btn" ></button>\r\n <button pButton type="button" (click)="restClick()" label="rest" id="btn" ></button>\r\n <button pButton type="button" (click)="pickClick()" label="IncomPick" id="btn" ></button>\r\n <button pButton type="button" (click)="transClick()" label="transfer" id="btn" ></button>\r\n \x3c!-- <button pButton type="button" (click)="keypadClick()" label="keypad" id="btn" ></button> --\x3e\r\n \r\n </div>\r\n'},function(e,t,i){var n=i(34);e.exports="string"==typeof n?n:n.toString()},function(e,t,i){t=e.exports=i(10)(void 0),t.push([e.i,"/* You can add global styles to this file, and also import other style files */\r\n#panel{\r\n width: 450px;\r\n margin: 0 auto;\r\n }\r\n#panel-heada{\r\n text-align: center;\r\n}\r\n.Caller-details{\r\n text-align: center;\r\n}\r\n.Call-button{\r\n text-align: center;\r\n}\r\n#btn{\r\n width: 250px;\r\n}\r\n.fone{\r\n text-align: center;\r\n}\r\n\r\nbody #kpp .ui-button{\r\n width: 280px;\r\n height: 40px;\r\n}\r\n\r\nbody #kp .ui-button {\r\n width: 80px;\r\n height: 80px;\r\n float: none;\r\n }\r\n\r\n .butgrp {\r\n padding-bottom: 0px;\r\n }\r\n\r\n .nopad {\r\n padding: 0px;\r\n }\r\n\r\n .short {\r\n height: 184px;\r\n \r\n max-height: 184px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n \r\n width: 280px;\r\n }\r\n\r\n .phone-width {\r\n width: 290px;\r\n }\r\n\r\n .expand {\r\n min-height: 184px;\r\n max-height: 395px;\r\n \r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n }\r\n .full-width{\r\n width: 100%;\r\n}\r\nbody .md-inputfield{\r\n margin-bottom: 5px;\r\n}\r\n.c-input span input {\r\n width: 100% !important;\r\n}\r\n\r\n .recip{\r\n width:280px ;height: 60px; margin:0px\r\n}\r\n\r\n ",""])},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i(36))},function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=i(0);i(37);var r=i(12),a=i(9),l=function(){function e(e){this.service=e}return e.prototype.ngOnInit=function(){var e=this;this.service.reg.bandwidth=0,this.service.reg.enable_rtcweb_breaker=!1,this.service.reg.disable_callbtn_options=!0,this.service.reg.disable_video=!0,this.service.reg.display_name="104",this.service.reg.impi="104",this.service.reg.impu="sip:104@192.168.1.2",this.service.reg.password="xputer",this.service.reg.realm="192.168.1.2",this.service.reg.enable_early_ims=!0,this.service.reg.enable_media_stream_cache=!0,this.service.reg.ice_servers=[],this.service.reg.websocket_proxy_url="ws://192.168.1.2:8088/ws",this.service.reg.outbound_proxy_url="udp://192.168.1.2:5060",this.service.reg.video_size={minWidth:640,minHeight:480,maxWidth:640,maxHeight:480},this.service.reg.disable_debug=!0,this.service.reg.type=null,this.service.reg.auto_recording=!1,SIPml.init(),this.service.configCall={audio_remote:document.getElementById("audio-remote"),bandwidth:{audio:void 0,video:void 0},events_listener:{events:"*",listener:function(t){e.service.onSipEventSession(t)}},sip_caps:[{name:"+g.oma.sip-im"},{name:"language",value:'"en,fr"'}]}},e.prototype.login=function(){var e=this.service,t=this,i=function(i){console.info("session event = "+i.type),e.txtRegStatus=i.type,"connected"==i.type&&i.session==e.registerSession&&(e.txtRegStatus="connected as "+e.reg.impi,t.makeCall())};e.registerSession=this.service.sipStack.newSession("register",{events_listener:{events:"*",listener:i}}),e.registerSession.register()},e.prototype.eventsListenerLogin=function(e){var t=this,i=this.service;switch(e.type){case"started":t.login();break;case"i_new_message":break;case"i_new_call":i.callSession=e.newSession,i.callSession.setConfiguration(i.configCall),i.startRingTone();var n=t.service.callSession.getRemoteFriendlyName()||"unknown";i.status=a.CallState.ActiveCallInbound,i.selectedUser=new a.User,i.selectedUser.phoneNumber=n,i.selectedUser.fullname=n;break;case"stopping":case"stopped":case"failed_to_start":case"failed_to_stop":var o="failed_to_start"==e.type||"failed_to_stop"==e.type;i.sipStack=null,i.registerSession=null,i.callSession=null,i.stopRingbackTone(),i.stopRingTone(),i.callStat="",i.txtRegStatus=o?"Disconnected: "+e.description:"Disconnected"}},e.prototype.makeCall=function(){var e=this.service;this.service.callSession=this.service.sipStack.newSession(e.call_type,e.configCall)},e.prototype.sipRegister=function(){var e=this;this.service;if(this.service.sipStack)this.service.sipStack.stop(),this.service.sipStack=null,this.service.callSession=null,this.service.registerSession=null;else{var e=this;this.service.sipStack=new SIPml.Stack({realm:this.service.reg.realm,impi:this.service.reg.impi,impu:this.service.reg.impu,password:this.service.reg.password,display_name:this.service.reg.display_name,websocket_proxy_url:this.service.reg.websocket_proxy_url,outbound_proxy_url:this.service.reg.outbound_proxy_url,ice_servers:this.service.reg.ice_servers,enable_rtcweb_breaker:this.service.reg.enable_rtcweb_breaker,events_listener:{events:"*",listener:function(t){e.eventsListenerLogin(t)}},enable_early_ims:this.service.reg.enable_early_ims,enable_media_stream_cache:this.service.reg.enable_media_stream_cache,bandwidth:null,video_size:this.service.reg.video_size,sip_headers:[{name:"User-Agent",value:"IM-client/OMA1.0 sipML5-v1.2016.03.04"},{name:"Organization",value:"Doubango Telecom"}]}),this.service.sipStack.start()}},e=n([s.Component({selector:"expert",template:i(39),styles:[i(40)]}),o("design:paramtypes",[r.PhoneService])],e)}();t.ExpertComponent=l},function(e,t){SIPml={},SIPml.b_initialized=!1,SIPml.b_initializing=!1,SIPml.s_navigator_friendly_name="unknown",SIPml.b_navigator_outdated=!1,SIPml.s_navigator_version="unknown",SIPml.s_system_friendly_name="unknown",SIPml.b_webrtc4all_plugin_outdated=!1,SIPml.b_webrtc4all_supported=!1,SIPml.s_webrtc4all_version="unknown",SIPml.b_have_media_stream=!1,SIPml.b_webrtc_supported=!1,SIPml.setDebugLevel=function(e){tsk_utils_log_set_level("fatal"===e?1:"error"===e?2:"warn"===e?3:4)},SIPml.startNativeDebug=function(){WebRtc4all_GetPlugin().startDebug()},SIPml.stopNativeDebug=function(){WebRtc4all_GetPlugin().stopDebug()},SIPml.getWebRtcType=function(){switch(WebRtc4all_GetType()){case WebRtcType_e.W4A:case WebRtcType_e.IE:case WebRtcType_e.NPAPI:return"w4a";case WebRtcType_e.ERICSSON:return"erisson";case WebRtcType_e.NATIVE:return"native";default:return"unknown"}},SIPml.setWebRtcType=function(e){if(SIPml.isInitialized())throw new Error("ERR_ALREADY_INITIALIZED: Engine already initialized.");return WebRtc4all_SetType(e)},SIPml.getRunningApps=function(){if("w4a"!=SIPml.getWebRtcType())throw new Error("ERR_NOT_SUPPORTED: requires webrtc4all plugin");return WebRtc4all_GetPlugin().runningApps()},SIPml.setFps=function(e){if("w4a"!=SIPml.getWebRtcType())throw new Error("ERR_NOT_SUPPORTED: Setting maximum video size requires webrtc4all plugin");return WebRtc4all_GetPlugin().fps=e,0},SIPml.setMaxVideoSize=function(e){if("w4a"!=SIPml.getWebRtcType())throw new Error("ERR_NOT_SUPPORTED: Setting FPS requires webrtc4all plugin");return WebRtc4all_GetPlugin().maxVideoSize=e,0},SIPml.setMaxBandwidthUp=function(e){if("w4a"!=SIPml.getWebRtcType())throw new Error("ERR_NOT_SUPPORTED: Setting maximum bandwidth requires webrtc4all plugin");return WebRtc4all_GetPlugin().maxBandwidthUp=e,0},SIPml.setMaxBandwidthDown=function(e){if("w4a"!=SIPml.getWebRtcType())throw new Error("ERR_NOT_SUPPORTED: Setting maximum bandwidth requires webrtc4all plugin");return WebRtc4all_GetPlugin().maxBandwidthDown=e,0},SIPml.setZeroArtifacts=function(e){if("w4a"!=SIPml.getWebRtcType())throw new Error("ERR_NOT_SUPPORTED: Setting maximum bandwidth requires webrtc4all plugin");return WebRtc4all_GetPlugin().zeroArtifacts=e,0},SIPml.getWebRtc4AllVersion=function(){if(!SIPml.isInitialized())throw new Error("ERR_NOT_INITIALIZED: Engine not initialized yet. Please call 'SIPml.init()' first");return SIPml.s_webrtc4all_version},SIPml.getNavigatorVersion=function(){if(!SIPml.isInitialized())throw new Error("ERR_NOT_INITIALIZED: Engine not initialized yet. Please call 'SIPml.init()' first");return SIPml.s_navigator_version},SIPml.getNavigatorFriendlyName=function(){if(!SIPml.isInitialized())throw new Error("ERR_NOT_INITIALIZED: Engine not initialized yet. Please call 'SIPml.init()' first");return SIPml.s_navigator_friendly_name},SIPml.getSystemFriendlyName=function(){if(!SIPml.isInitialized())throw new Error("ERR_NOT_INITIALIZED: Engine not initialized yet. Please call 'SIPml.init()' first");return SIPml.s_