!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/form-field"),require("@angular/material/button"),require("@angular/material/input"),require("@angular/material/select"),require("@angular/material/datepicker"),require("@angular/material/autocomplete"),require("@angular/material/core"),require("@angular/forms"),require("@angular/material-moment-adapter"),require("@angular/material/snack-bar"),require("@angular/cdk/clipboard"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@angular/common/http"),require("@angular/animations"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@roblex/commons",["exports","@angular/core","@angular/common","@angular/material/form-field","@angular/material/button","@angular/material/input","@angular/material/select","@angular/material/datepicker","@angular/material/autocomplete","@angular/material/core","@angular/forms","@angular/material-moment-adapter","@angular/material/snack-bar","@angular/cdk/clipboard","@angular/router","rxjs","rxjs/operators","@angular/common/http","@angular/animations","@angular/platform-browser"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).roblexCommons={},e.ng.core,e.ng.common,e.ng.material.formField,e.ng.material.button,e.ng.material.input,e.ng.material.select,e.ng.material.datepicker,e.ng.material.autocomplete,e.ng.material.core,e.ng.forms,e.ng.materialMomentAdapter,e.ng.material.snackBar,e.ng.cdk.clipboard,e.ng.router,e.rxjs,e.rxjs.operators,e.ng.common.http,e.ng.animations,e.ng.platformBrowser)}(this,(function(e,t,n,o,r,i,a,s,l,c,u,p,d,m,f,h,v,y,g,b){"use strict";function C(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var x=C(t),I=C(y),E=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();E.decorators=[{type:t.Component,args:[{selector:"roblex-step",template:'<div class="container wrapper-step">\n    <div class="row justify-content-center align-items-center">\n        <div class="col-md-8 text-center">\n            <ul class="steps d-flex justify-content-center align-items-center">\n                <ng-container *ngFor="let item of steps; let i = index">\n\n                    <li [ngClass]="{ \'active\': current === item.step }">\n                        <div>\n                            <span>{{ item.step }}</span>\n                        </div>\n                        <span>{{ item.name }}</span>\n                    </li>\n                    <li class="content-divisor" *ngIf="i + 1 !== steps.length">\n                        <div class="divisor"></div>\n                    </li>\n\n                </ng-container>\n            </ul>\n        </div>\n    </div>\n</div>',styles:[""]}]}],E.ctorParameters=function(){return[]},E.propDecorators={steps:[{type:t.Input}],current:[{type:t.Input}]};
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
var S=function(e,t){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function R(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function k(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}Object.create;function T(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function A(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(O(arguments[t]));return e}Object.create;var N=function(){function e(){}return e.getAllErrors=function(e){var t=e instanceof u.FormGroup||e instanceof u.FormArray?this.getAllErrors(e):e.errors;return t||null},e.errorMessage=function(e){for(var t in e.errors)if(e.errors.hasOwnProperty(t)&&e.touched)return this.getValidatorErrorMessage(t,null==e?void 0:e.errors[t]);return null},e.getValidatorErrorMessage=function(e,t){return{required:"(*) El campo es obligatorio.",email:"El correo electronico no es valido.",invalidPassword:"Contraseña invalida. La contraseña debe tener al menos 6 caracteres y contener un número.",minlength:"Caracteres mínimos permitidos "+t.requiredLength+".",maxlength:"Máximo de caracteres permitidos "+t.requiredLength+".",isnumber:"Solo números permitidos.",numberInvalid:"Solo números permitidos.",isdecimal:"Solo se permiten números enteros y decimales.",pattern:"El valor ingresado no es valido.",isequals:"El valor ingresado no es valido.",match:"Ingrese el mismo valor nuevamente.",digits:"El valor ingresado no es correcto, solo se permiten números",property:"EL valor ingreso no está permitido.",arrayLength:"Candiad de datos seleccionados no permitidos",ruc:"EL ruc ingresado no es validado.",confirmPasswordValidator:"La contraseña y la confirmación de contraseña deben coincidir.",digitalWalletNotBuy:"No puedes seleccionar "+t.name+" para una "+t.type+".",minAmountValid:"No puede seleccionar para montos menores a "+t.minAmount+".",digitalWalletMaxAmount:"No puede seleccionar para montos mayores a "+t.maxAmount+".",phoneInvalid:"El número de teléfono ingresado no es válido.",invalidAgeFormat:"La fecha debe estar en formato ISO (YYYY-MM-DDTHH:MM:SSZ).",invalidAgeDate:"La fecha proporcionada no es válida.",underage:"Debe ser mayor de 18 años."}[e]},e}();N.decorators=[{type:t.Injectable}];var D=function(){this.home$=new h.BehaviorSubject(!1),this.login$=new h.BehaviorSubject(!1),this.forgot$=new h.BehaviorSubject(!1),this.newPassword$=new h.BehaviorSubject(!1)};D.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new D},token:D,providedIn:"root"}),D.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],D.ctorParameters=function(){return[]};var P,_=function(){function e(){this.storage=localStorage}return e.prototype.set=function(e,t){this.storage.setItem(e,JSON.stringify(t))},e.prototype.setItem=function(e,t){return this.storage.setItem(e,JSON.stringify(t)),h.of(t)},e.prototype.get=function(e){var t=this.storage.getItem(e);return t?JSON.parse(t):null},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return h.of(t?JSON.parse(this.storage.getItem(e)):null)},e.prototype.remove=function(e){this.storage.removeItem(e)},e.prototype.removeItem=function(e){return h.of(this.storage.removeItem(e))},e.prototype.clear=function(){this.storage.clear()},e}();_.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new _},token:_,providedIn:"root"}),_.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],_.ctorParameters=function(){return[]},e.ChannelAppType=void 0,(P=e.ChannelAppType||(e.ChannelAppType={}))[P.WEB=1]="WEB",P[P.WEB_APP=2]="WEB_APP",P[P.MOBILE=3]="MOBILE";var M,j=new t.InjectionToken("cdn.config",{providedIn:"platform",factory:function(){return""}}),F=new t.InjectionToken("micro.apps",{providedIn:"platform",factory:function(){return[]}}),L=new t.InjectionToken("current.task",{providedIn:"platform",factory:function(){return""}}),V=new t.InjectionToken("channel.task",{providedIn:"platform",factory:function(){return e.ChannelAppType.WEB}}),U=new t.InjectionToken("config.firebase",{providedIn:"platform",factory:function(){}}),B=new t.InjectionToken("app.firebase",{providedIn:"platform",factory:function(){}}),H=new t.InjectionToken("analytics.firebase",{providedIn:"platform",factory:function(){}}),K=new t.InjectionToken("enviroment.config",{providedIn:"platform",factory:function(){}});e.IconType=void 0,(M=e.IconType||(e.IconType={})).CARD="card",M.EMAIL="email",M.LISTO="listo",M.INFO="info",M.SCHEDULE="schedule",M.ERROR="error",M.DELETE="delete";var G=function(t){switch(t){case e.IconType.CARD:return"assets/img/card.svg";case e.IconType.EMAIL:return"assets/img/correo.svg";case e.IconType.LISTO:return"assets/img/listo.svg";case e.IconType.INFO:return"assets/img/info.svg";case e.IconType.SCHEDULE:return"assets/img/horario.svg";case e.IconType.DELETE:return"assets/img/eliminar.svg";case e.IconType.ERROR:default:return"assets/img/error.svg"}},Y=function(){function t(e){this.cdnCofing=e,this.buttonsDefault={"icon-cancel":{className:"btn-icon-close roblex roblex-close",visible:!0,text:"",value:!1}},this.messageErrorDefault={title:"Tittle",text:"Message",icon:this.iconType(),className:"sweet-alert-danger",buttons:Object.assign({confirm:{text:"Aceptar",visible:!0,value:!0}},this.buttonsDefault)}}return t.prototype.swal=function(e){return e.icon&&(e.icon=this.iconType(e.icon)),swal(Object.assign({},e))},t.prototype.error=function(e,t){return this.swal(Object.assign(this.messageErrorDefault,{title:e||"Error",text:t}))},t.prototype.success=function(t,n,o,r){return this.swal({title:t||"Exito",content:{element:"div",attributes:{innerHTML:n}},icon:o||e.IconType.LISTO,className:"sweet-alert-success",buttons:Object.assign(null!=r?r:{},this.buttonsDefault)})},t.prototype.emailSent=function(){return this.swal({title:"Revisa tu correo",content:{element:"div",attributes:{innerHTML:'Ingresa el link que enviamos a tu correo. <br/> Si no lo encuentras revisa en "Spam” '}},icon:e.IconType.EMAIL,className:"sweet-alert-success",buttons:Object.assign(this.buttonsDefault)})},t.prototype.accountAdd=function(){return this.swal({title:"Cuenta agregada",content:{element:"div",attributes:{innerHTML:"Ya podrás realizar operaciones."}},icon:e.IconType.CARD,className:"sweet-alert-success",buttons:Object.assign(this.buttonsDefault)})},t.prototype.cardAdd=function(){return this.swal({title:"Tarjeta agregada",content:{element:"div",attributes:{innerHTML:"Ya podrás realizar operaciones."}},icon:e.IconType.CARD,className:"sweet-alert-success",buttons:Object.assign(this.buttonsDefault)})},t.prototype.updateData=function(){return this.swal({title:"Cambio guardado",content:{element:"div",attributes:{innerHTML:"Gracias por actualizar los datos."}},icon:e.IconType.CARD,className:"sweet-alert-success",buttons:Object.assign(this.buttonsDefault)})},t.prototype.unauthorized=function(){return this.swal(Object.assign(this.messageErrorDefault,{title:"Error",text:"Error de autorización"}))},t.prototype.confirm=function(e,t,n,o){return this.swal(Object.assign(this.messageErrorDefault,{className:"sweet-alert-warning",title:null!=e?e:"Title",text:null,content:{element:"div",attributes:{className:"sweet-alert-text-content",innerHTML:null!=t?t:"Description"}},icon:o,buttons:Object.assign({cancel:{text:"Regresar",visible:!0,value:!1},confirm:{text:null!=n?n:"Aceptar",visible:!0,value:!0}},this.buttonsDefault)}))},t.prototype.iconType=function(e){return this.cdnCofing+"/"+G(e)},t}();Y.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new Y(x.ɵɵinject(j))},token:Y,providedIn:"platform"}),Y.decorators=[{type:t.Injectable,args:[{providedIn:"platform"}]}],Y.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[j]}]}]},e.StorageNames=void 0,(e.StorageNames||(e.StorageNames={})).USER="user";var $=function(){function t(e){this.storageService=e}return Object.defineProperty(t.prototype,"auth",{get:function(){return this.storageService.get(e.StorageNames.USER)},enumerable:!1,configurable:!0}),t.prototype.profile=function(){return this.auth.profile},t.prototype.user=function(){return this.auth.user},t.prototype.setUser=function(t){var n=Object.assign(Object.assign({},this.auth),{user:t});return this.storageService.set(e.StorageNames.USER,n),n},t}();$.decorators=[{type:t.Injectable}],$.ctorParameters=function(){return[{type:_}]};var q=function(){},z=function(){function e(){this._afterClosed=new h.Subject,this.afterClosed=this._afterClosed.asObservable()}return e.prototype.close=function(e){this._afterClosed.next(e)},e}(),W=function(e){this.viewContainerRef=e};W.decorators=[{type:t.Directive,args:[{selector:"[roblexInsertion]"}]}],W.ctorParameters=function(){return[{type:t.ViewContainerRef}]};var J=function(){function e(e,t,n,o){this.componentFactoryResolver=e,this.cd=t,this.neyhazModalRef=n,this.roblexModalConfig=o,this._onClose=new h.Subject,this.onClose=this._onClose.asObservable()}return e.prototype.ngAfterViewInit=function(){this.loadChildComponent(this.childComponentType),this.cd.detectChanges()},e.prototype.onOutsideClicked=function(e){this.roblexModalConfig.backdrop&&this.neyhazModalRef.close()},e.prototype.onDialogClicked=function(e){e.stopPropagation()},e.prototype.loadChildComponent=function(e){var t=this.componentFactoryResolver.resolveComponentFactory(e),n=this.insertionPoint.viewContainerRef;n.clear(),this.componentRef=n.createComponent(t)},e.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy()},e.prototype.close=function(){this._onClose.next()},e}();J.decorators=[{type:t.Component,args:[{selector:"roblex-modal",template:'<div [ngClass]="{ \'roblex-modal-dialog\' : true }"\n     (click)="onOutsideClicked($event)"\n     [class]="roblexModalConfig.className">\n    <roblex-modal-overlay class="modal-dialog-centered">\n        <roblex-modal-content (click)="onDialogClicked($event)">\n            <ng-template roblexInsertion>\n\n            </ng-template>\n        </roblex-modal-content>\n    </roblex-modal-overlay>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],J.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef},{type:z},{type:q}]},J.propDecorators={insertionPoint:[{type:t.ViewChild,args:[W]}]};var X=function(){function e(e,t){this.roblexModalRef=e,this.roblexModalConfig=t}return e.prototype.ngOnInit=function(){this.isLeave=this.roblexModalConfig.isLeave},e.prototype.onClickClose=function(){this.roblexModalRef.close()},e}();X.decorators=[{type:t.Component,args:[{selector:"roblex-modal-header",template:'<a class="btn-roblex-modal-close" (click)="onClickClose()" *ngIf="isLeave">\n  <i class="roblex roblex-close"></i>\n</a>\n<ng-content></ng-content>',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],X.ctorParameters=function(){return[{type:z},{type:q}]};var Z=function(){};Z.decorators=[{type:t.Component,args:[{selector:"roblex-modal-overlay",template:"<ng-content></ng-content>\n",encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],Z.ctorParameters=function(){return[]};var Q=function(){};Q.decorators=[{type:t.Component,args:[{selector:"roblex-modal-content",template:"<ng-content></ng-content>\n",encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],Q.ctorParameters=function(){return[]};var ee,te=function(){};te.decorators=[{type:t.Component,args:[{selector:"roblex-modal-body",template:"<ng-content></ng-content>\n",encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],te.ctorParameters=function(){return[]},e.RoblexModalFooterAlign=void 0,(ee=e.RoblexModalFooterAlign||(e.RoblexModalFooterAlign={})).start="start",ee.end="end",ee.stretch="stretch",ee.center="center";var ne=function(){function t(){this.contentAlign=e.RoblexModalFooterAlign.stretch}return t.prototype.customClassAlign=function(){switch(this.contentAlign){case e.RoblexModalFooterAlign.center:return{"roblex-footer-center":!0};case e.RoblexModalFooterAlign.end:return{"roblex-footer-end":!0};case e.RoblexModalFooterAlign.start:return{"roblex-footer-start":!0};case e.RoblexModalFooterAlign.stretch:return{"roblex-footer-stretch":!0}}return{}},t}();ne.decorators=[{type:t.Component,args:[{selector:"roblex-modal-footer",template:'<div class="roblex-modal-footer-content" [ngClass]="customClassAlign()">\n    <ng-content></ng-content>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],ne.ctorParameters=function(){return[]},ne.propDecorators={contentAlign:[{type:t.Input}]};var oe=function(){function e(e){this.el=e,this.enabledNumberOnly=!0,this.regex=new RegExp(/^\d+$/g),this.specialKeys=["Backspace","Tab","End","Home"]}return e.prototype.onKeyDown=function(e){if(this.enabledNumberOnly){if(this.specialKeys.indexOf(e.key)>-1)return;var t=this.el.nativeElement.value.concat(e.key);t&&!String(t).match(this.regex)&&e.preventDefault()}},e}();oe.decorators=[{type:t.Directive,args:[{selector:"[roblexNumberOnly]"}]}],oe.ctorParameters=function(){return[{type:t.ElementRef}]},oe.propDecorators={enabledNumberOnly:[{type:t.Input}],onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var re=function(){function e(e,t){this.el=e,this.decimalPipe=t,this.hasDecimalPoint=!1,this.navigationKeys=["Backspace","Delete","Tab","Escape","Enter","Home","End","ArrowLeft","ArrowRight","Clear","Copy","Paste"],this.decimal=!1,this.decimalSeparator=".",this.min=-1/0,this.max=1/0,this.inputElement=e.nativeElement}return e.prototype.onBeforeInput=function(e){if(isNaN(Number(e.data))){if(e.data===this.decimalSeparator)return;e.preventDefault(),e.stopPropagation()}},e.prototype.ngOnChanges=function(e){if(e.pattern&&(this.regex=this.pattern?RegExp(this.pattern):null),e.min){var t=Number(this.min);this.min=isNaN(t)?-1/0:t}if(e.max){var n=Number(this.max);this.max=isNaN(n)?1/0:n}},e.prototype.onKeyDown=function(e){if(!(this.navigationKeys.indexOf(e.key)>-1||("a"===e.key||"KeyA"===e.code)&&!0===e.ctrlKey||("c"===e.key||"KeyC"===e.code)&&!0===e.ctrlKey||("v"===e.key||"KeyV"===e.code)&&!0===e.ctrlKey||("x"===e.key||"KeyX"===e.code)&&!0===e.ctrlKey||("a"===e.key||"KeyA"===e.code)&&!0===e.metaKey||("c"===e.key||"KeyC"===e.code)&&!0===e.metaKey||("v"===e.key||"KeyV"===e.code)&&!0===e.metaKey||("x"===e.key||"KeyX"===e.code)&&!0===e.metaKey)){var t="";if(this.decimal&&e.key===this.decimalSeparator)return(t=this.forecastValue(e.key)).split(this.decimalSeparator).length>2?void e.preventDefault():void(this.hasDecimalPoint=t.indexOf(this.decimalSeparator)>-1);if(" "===e.key||isNaN(Number(e.key)))e.preventDefault();else if(t=(t=t||this.forecastValue(e.key)).replace(",",""),!this.regex||this.regex.test(t)){var n=Number(t);t=t||this.forecastValue(e.key),(n>this.max||n<this.min)&&e.preventDefault()}else e.preventDefault()}},e.prototype.onPaste=function(e){var t;window.clipboardData?t=window.clipboardData.getData("text"):e.clipboardData&&e.clipboardData.getData&&(t=e.clipboardData.getData("text/plain")),this.pasteData(t),e.preventDefault()},e.prototype.onDrop=function(e){var t=e.dataTransfer.getData("text");this.inputElement.focus(),this.pasteData(t),e.preventDefault()},e.prototype.pasteData=function(e){var t=this.sanitizeInput(e);if(!document.execCommand("insertText",!1,t))if(this.inputElement.setRangeText){var n=this.inputElement,o=n.selectionStart,r=n.selectionEnd;this.inputElement.setRangeText(t,o,r,"end"),void 0!==window.InstallTrigger&&this.inputElement.dispatchEvent(new Event("input",{cancelable:!0}))}else this.insertAtCursor(this.inputElement,t);this.decimal&&(this.hasDecimalPoint=this.inputElement.value.indexOf(this.decimalSeparator)>-1)},e.prototype.insertAtCursor=function(e,t){var n=e.selectionStart,o=e.selectionEnd;e.value=e.value.substring(0,n)+t+e.value.substring(o,e.value.length);var r=n+t.length;e.focus(),e.setSelectionRange(r,r),this.triggerEvent(e,"input")},e.prototype.triggerEvent=function(e,t){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(t,!1,!0),e.dispatchEvent(n)}},e.prototype.sanitizeInput=function(e){var t="";if(this.decimal&&this.isValidDecimal(e)){var n=new RegExp("[^0-9"+this.decimalSeparator+"]","g");t=e.replace(n,"")}else t=e.replace(/[^0-9]/g,"");var o=this.inputElement.maxLength;if(o>0){var r=o-this.inputElement.value.length;t=r>0?t.substring(0,r):""}return t},e.prototype.isValidDecimal=function(e){if(this.hasDecimalPoint){var t=this.getSelection();return t&&t.indexOf(this.decimalSeparator)>-1?e.split(this.decimalSeparator).length<=2:e.indexOf(this.decimalSeparator)<0}return e.split(this.decimalSeparator).length<=2},e.prototype.getSelection=function(){return this.inputElement.value.substring(this.inputElement.selectionStart,this.inputElement.selectionEnd)},e.prototype.forecastValue=function(e){var t=this.inputElement.selectionStart,n=this.inputElement.selectionEnd,o=this.inputElement.value,r=o.substring(t,n);return r?o.replace(r,e):o.substring(0,t)+e+o.substring(t)},e}();re.decorators=[{type:t.Directive,args:[{selector:"[roblexNumberOnlyDecimal]",providers:[n.DecimalPipe]}]}],re.ctorParameters=function(){return[{type:t.ElementRef},{type:n.DecimalPipe}]},re.propDecorators={decimal:[{type:t.Input}],decimalSeparator:[{type:t.Input}],min:[{type:t.Input}],max:[{type:t.Input}],pattern:[{type:t.Input}],onBeforeInput:[{type:t.HostListener,args:["beforeinput",["$event"]]}],onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}],onPaste:[{type:t.HostListener,args:["paste",["$event"]]}],onDrop:[{type:t.HostListener,args:["drop",["$event"]]}]};var ie=function(){function e(e){this.elementRef=e,this.clickOutside=new t.EventEmitter}return e.prototype.onMouseEnter=function(e){this.elementRef.nativeElement.contains(e)||this.clickOutside.emit(e)},e}();ie.decorators=[{type:t.Directive,args:[{selector:"[clickOutside]"}]}],ie.ctorParameters=function(){return[{type:t.ElementRef}]},ie.propDecorators={clickOutside:[{type:t.Output,args:["clickOutside"]}],onMouseEnter:[{type:t.HostListener,args:["document:click",["$event.target"]]}]};var ae=function(){function e(e){this.el=e,this.navigationKeys=["Backspace","Delete","Tab","Escape","Enter","Home","End","ArrowLeft","ArrowRight","Clear","Copy","Paste"],this.inputElement=e.nativeElement}return e.prototype.ngOnInit=function(){this.regex=new RegExp(this.inputElement.pattern)},e.prototype.onKeyDown=function(e){if(!(this.navigationKeys.indexOf(e.key)>-1||("a"===e.key||"KeyA"===e.code)&&!0===e.ctrlKey||("c"===e.key||"KeyC"===e.code)&&!0===e.ctrlKey||("v"===e.key||"KeyV"===e.code)&&!0===e.ctrlKey||("x"===e.key||"KeyX"===e.code)&&!0===e.ctrlKey||("a"===e.key||"KeyA"===e.code)&&!0===e.metaKey||("c"===e.key||"KeyC"===e.code)&&!0===e.metaKey||("v"===e.key||"KeyV"===e.code)&&!0===e.metaKey||("x"===e.key||"KeyX"===e.code)&&!0===e.metaKey)){var t=this.forecastValue(e.key);this.regex.test(t)||e.preventDefault()}},e.prototype.forecastValue=function(e){var t=this.inputElement.selectionStart,n=this.inputElement.selectionEnd,o=this.inputElement.value,r=o.substring(t,n);return r?o.replace(r,e):o.substring(0,t)+e+o.substring(t)},e}();ae.decorators=[{type:t.Directive,args:[{selector:"[roblexMask]"}]}],ae.ctorParameters=function(){return[{type:t.ElementRef}]},ae.propDecorators={onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var se=function(){function e(e,t){this.el=e,this.control=t,this.status=!0}return e.prototype.onEvent=function(){var e=this.el.nativeElement.value.toUpperCase();this.status&&this.control.control.setValue(e)},e}();se.decorators=[{type:t.Directive,args:[{selector:"[roblexUpperCase]"}]}],se.ctorParameters=function(){return[{type:t.ElementRef},{type:u.NgControl}]},se.propDecorators={status:[{type:t.Input,args:["roblexUpperCase"]}],onEvent:[{type:t.HostListener,args:["input"]}]};var le=function(){function e(e,t,n){this.viewContainer=e,this.templateRef=t,this._created=!1,this.ngSwitch=n}return e.prototype.ngOnInit=function(){var e=this;(this.roblexSwitchCases||[]).forEach((function(){return e.ngSwitch._addCase()}))},e.prototype.ngDoCheck=function(){var e=this,t=!1;(this.roblexSwitchCases||[]).forEach((function(n){return t=e.ngSwitch._matchCase(n)||t})),this.enforceState(t)},e.prototype.enforceState=function(e){e&&!this._created?(this._created=!0,this.viewContainer.createEmbeddedView(this.templateRef)):!e&&this._created&&(this._created=!1,this.viewContainer.clear())},e}();le.decorators=[{type:t.Directive,args:[{selector:"[roblexSwitchCases]"}]}],le.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:n.NgSwitch,decorators:[{type:t.Host}]}]},le.propDecorators={roblexSwitchCases:[{type:t.Input}]};var ce=[oe,re,W,ie,ae,se,le],ue=function(){};ue.decorators=[{type:t.NgModule,args:[{declarations:A(ce),exports:A(ce),providers:[]}]}];var pe=function(){};pe.decorators=[{type:t.NgModule,args:[{declarations:[J,Q,Z,te,X,ne],imports:[n.CommonModule,ue],entryComponents:[J],exports:[te,X,ne]}]}];var de,me,fe=function(){function e(e,t){this._parentInjector=e,this._additionalTokens=t}return e.prototype.get=function(e,t,n){var o=this._additionalTokens.get(e);return o||this._parentInjector.get(e,t)},e}(),he=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o._parentInjector=t,o._additionalTokens=n,o}return w(t,e),t}(fe),ve=function(){function e(e,t,n){this.componentFactoryResolver=e,this.appRef=t,this.injector=n,this.childUniqueKey=0,this.componentsReferences=Array()}return e.prototype.show=function(e,t){return this.appendDialogComponentToBody(Object.assign({backdrop:!0,isLeave:!0},t),e)},e.prototype.appendDialogComponentToBody=function(e,t){var n=this,o=new WeakMap;o.set(q,e);var r=new z;o.set(z,r);var i=this.componentFactoryResolver.resolveComponentFactory(J).create(new he(this.injector,o));this.appRef.attachView(i.hostView);var a=this.componentToHTLMElement(i);document.body.appendChild(a),document.body.classList.add("modal-open");var s=i.instance;s.uniqueKey=++this.childUniqueKey,s.childComponentType=t;var l=r.afterClosed.subscribe((function(){n.removeModalComponentFromBody(s.uniqueKey),l.unsubscribe()}));return this.componentsReferences.push(i),r},e.prototype.removeModalComponentFromBody=function(e){var t,n,o,r,i,a=this;try{for(var s=T(null===(o=this.componentsReferences)||void 0===o?void 0:o.entries()),l=s.next();!l.done;l=s.next()){var c=O(l.value,2),u=c[0],p=c[1];p.instance.uniqueKey===e&&(i=p,null===(r=this.componentsReferences)||void 0===r||r.splice(u,1))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}i&&(0===this.componentsReferences.length&&document.body.classList.remove("modal-open"),i.hostView.rootNodes[0].firstChild.firstChild.classList.add("dialog-remove"),document.body.addEventListener("animationend",(function(e){a.removeElement(e,i)})),document.body.addEventListener("webkitAnimationEnd",(function(e){a.removeElement(e,i)})))},e.prototype.componentToHTLMElement=function(e){return e.hostView.rootNodes[0]},e.prototype.removeElement=function(e,t){if("disapearY"===e.animationName){this.appRef.detachView(t.hostView),t.destroy();var n=t.hostView.rootNodes[0];n&&n.remove()}},e}();ve.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new ve(x.ɵɵinject(x.ComponentFactoryResolver),x.ɵɵinject(x.ApplicationRef),x.ɵɵinject(x.INJECTOR))},token:ve,providedIn:pe}),ve.decorators=[{type:t.Injectable,args:[{providedIn:pe}]}],ve.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector}]},e.EventCustom=void 0,(de=e.EventCustom||(e.EventCustom={})).LOGIN="LOGIN",de.REGISTER="REGISTRAR-USUARIO",de.RECOVER_PASSWORD="RECUPERAR-CONTRASENIA",de.OPERATIONS="OPERACIONES",de.CHANGES="CAMBIOS",de.ACCOUNTS="CUENTAS",de.GLOBAL="GENERAL",e.EventName=void 0,(me=e.EventName||(e.EventName={})).REDIRECTION="REDIRECCION",me.TASK="TASK",me.SIGN_OUT="DESCONECTARCE",me.LOG_IN="INICIAR-SESION",me.IMAGE_RECOVERY_PASS="IMAGE-RECOVERY-PASSWORD",me.EDIT="EDITAR",me.REFRESH_LIST="ACTUALIZAR-LISTADO",me.FILTER_OPERATIONS="FILTRAR-OPERACIONES",me.COUNTRY="PAISES",me.UPDATE_VALUATION="UPDATE-VALUATION",me.REFRESH_TIMER="REFRESH-TIMER",me.UPDATE_LAST_VALUATION="UPDATE-LAST-VALUATION",me.SAVING_OPERATION="SAVING-OPERATION",me.ANALYTICS="ANALYTICS",me.CHANGE_TAB="CHANGE_TAB",me.REFRESH_MOUNTS="REFRESH_MOUNTS",me.SHOW_TIME_ALERTS="SHOW_TIME_ALERTS",me.TIMER_UPDATE="TIMER_UPDATE";var ye=new t.InjectionToken("state.config",{providedIn:"platform",factory:function(){return xe}}),ge=new t.EventEmitter,be=function(e,t){var n;return null===(n=xe.states)||void 0===n?void 0:n.find((function(n){return n.eventCustom===e&&n.eventName===t}))},Ce=function(e,t){return ge.pipe(v.switchMap((function(n){return n.eventCustom===e&&n.eventName===t?h.of(n):h.NEVER})))},xe={queryParams:{},authentication:{},register:{},accounts:{},operations:{},changes:{},recoverPassword:{},states:[],set:function(e){var t,n=null===(t=xe.states)||void 0===t?void 0:t.map((function(t){return t.eventCustom===e.eventCustom&&t.eventName===e.eventName&&(t=e),t}));n.find((function(t){return t.eventCustom===e.eventCustom&&t.eventName===e.eventName}))||n.push(e),xe.states=n,ge.emit(e)},get:be,on:Ce};var Ie=function(){function t(e,t){this.cdn=e,this.stateConfig=t}return t.prototype.get=function(){return R(this,void 0,void 0,(function(){var t;return k(this,(function(n){switch(n.label){case 0:return[4,fetch(this.cdn+"/config-front/countries.json",{method:"GET"})];case 1:return[4,n.sent().json()];case 2:return t=(t=n.sent()).map((function(e){return{id:e.code,code:e.dial_code,name:e.name_es.trim()}})).sort((function(e,t){return e.name>t.name?1:-1})),this.stateConfig.set({eventCustom:e.EventCustom.GLOBAL,eventName:e.EventName.COUNTRY,data:t}),[2,t]}}))}))},t.prototype.getById=function(t){var n;return(null===(n=this.stateConfig.get(e.EventCustom.GLOBAL,e.EventName.COUNTRY))||void 0===n?void 0:n.data).find((function(e){return e.id===t}))},t}();Ie.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new Ie(x.ɵɵinject(j),x.ɵɵinject(ye))},token:Ie,providedIn:"root"}),Ie.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Ie.ctorParameters=function(){return[{type:String,decorators:[{type:t.Inject,args:[j]}]},{type:void 0,decorators:[{type:t.Inject,args:[ye]}]}]};var Ee=function(){function e(e){this.componentFactoryResolver=e}return e.prototype.componentToHTLMElement=function(e){return e.hostView.rootNodes[0]},e.prototype.appendDialogComponentToBody=function(e,t,n,o){var r,i,a=this.componentFactoryResolver.resolveComponentFactory(n).create(t);e.attachView(a.hostView);var s=this.componentToHTLMElement(a);document.body.appendChild(s);try{for(var l=T(o),c=l.next();!c.done;c=l.next()){var u=c.value;document.body.classList.add(u)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return a},e.prototype.removeModalComponentFromBody=function(e,t,n,o,r){var i,a,s,l=this;try{for(var c=T(null==t?void 0:t.entries()),u=c.next();!u.done;u=c.next()){var p=O(u.value,2),d=p[0],m=p[1];m.instance.uniqueKey===n&&(s=m,null==t||t.splice(d,1))}}catch(e){i={error:e}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}s&&(0===t.length&&document.body.classList.remove(o),s.hostView.rootNodes[0].firstChild.firstChild.classList.add(r),document.body.addEventListener("animationend",(function(t){l.removeElement(e,t,s)})),document.body.addEventListener("webkitAnimationEnd",(function(t){l.removeElement(e,t,s)})))},e.prototype.removeElement=function(e,t,n){if(t.animationName===this.animateName){e.detachView(n.hostView),n.destroy();var o=n.hostView.rootNodes[0];o&&o.remove()}},e}();Ee.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new Ee(x.ɵɵinject(x.ComponentFactoryResolver))},token:Ee,providedIn:"root"}),Ee.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Ee.ctorParameters=function(){return[{type:t.ComponentFactoryResolver}]};var Se=function(){function e(e){this.storageService=e,this.defaultExpires=86400}return e.prototype.observable=function(e,t,n){var o=this;return void 0===n&&(n=this.defaultExpires),this.storageService.getItem(e).pipe(v.map((function(e){return e&&new Date(e.expires).getTime()>Date.now()?e:null})),v.switchMap((function(r){return r?h.of(r.value):t.pipe(v.switchMap((function(t){return o.value(e,t,n)})))})))},e.prototype.value=function(e,t,n){void 0===n&&(n=this.defaultExpires);var o=this.sanitizeAndGenerateDateExpiry(n);return this.storageService.setItem(e,{expires:o,value:t}).pipe(v.map((function(e){return e.value})))},e.prototype.expire=function(e){return this.storageService.removeItem(e)},e.prototype.sanitizeAndGenerateDateExpiry=function(e){var t=this.expiryToDate(e);return t.getTime()<=Date.now()?new Date(Date.now()+this.defaultExpires):t},e.prototype.expiryToDate=function(e){return Number(e)?new Date(Date.now()+1e3*Math.abs(e)):String(e)?new Date(e):new Date(e)?e:new Date},e}();Se.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new Se(x.ɵɵinject(_))},token:Se,providedIn:"root"}),Se.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Se.ctorParameters=function(){return[{type:_}]};var we=function(){function e(e,t){this.http=e,this.channelApp=t}return e.prototype.get=function(e){var t=this.channelApp;return this.http.get(e+"/notification/active",{params:{channelId:t}})},e}();we.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new we(x.ɵɵinject(I.HttpClient),x.ɵɵinject(V))},token:we,providedIn:"root"}),we.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],we.ctorParameters=function(){return[{type:y.HttpClient},{type:e.ChannelAppType,decorators:[{type:t.Inject,args:[V]}]}]};var Re=function(){function e(e){this.controlContainer=e,this.hide=!0,this._value="",this.appearance="outline",this.label="input form field label",this.disabled=!1,this.placeholder="",this.type="text",this.enabledNumberOnly=!1,this.hasBackspace=!1,this.upperCase=!1,this.suffix=new t.EventEmitter,this.backspace=new t.EventEmitter,this.onChangeCallback=function(e){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChangeCallback(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){var e,t,n;return(null===(e=this.controlContainer)||void 0===e?void 0:e.formDirective)?null===(n=null===(t=this.controlContainer)||void 0===t?void 0:t.formDirective)||void 0===n?void 0:n.form:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classFormFiel",{get:function(){var e,t,n={};return n["mat-form-field-invalid"]=(null===(e=this.control)||void 0===e?void 0:e.touched)&&(null===(t=this.control)||void 0===t?void 0:t.invalid),this.className&&(n[this.className]=!0),n},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.control=this.form.get(this.formControlName)},e.prototype.getErrorMessage=function(){return this.control?null==N?void 0:N.errorMessage(this.control):null},e.prototype.onClickMatSuffix=function(){this.suffix.emit()},e.prototype.onKeyupEvent=function(e){if(!this.hasBackspace||"Backspace"!==e.code&&"Backspace"!==e.key){var t=e.target.value;this.writeValue(null!=t?t:null)}else this.backspace.emit()},e.prototype.onBlurEvent=function(){this.control&&this.control.markAsTouched()},e.prototype.writeValue=function(e){this.value=e,this.onChangeCallback(this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}();Re.decorators=[{type:t.Component,args:[{selector:"roblex-input-form-field",template:'<mat-form-field [appearance]="appearance"\n                [ngClass]="classFormFiel">\n    <mat-label> {{ label }} </mat-label>\n    <button type="button"\n            mat-icon-button\n            matPrefix\n            disabled\n            *ngIf="iconLeft">\n        <i [class]="iconLeft"></i>\n    </button>\n    <input matInput\n           [type]="type === \'password\' && hide ? \'password\' : \'text\'"\n           [ngClass]="{\'input-material-password\': type === \'password\' ? true : false }"\n           [attr.placeholder]="placeholder || null"\n           [disabled]="disabled"\n           (keyup)="onKeyupEvent($event)"\n           (blur)="onBlurEvent()"\n           [value]="value || null"\n           [id]="identifier ? identifier : \'roblex-\' + formControlName"\n           roblexNumberOnly\n           [enabledNumberOnly]="enabledNumberOnly" \n           [roblexUpperCase]="upperCase"/>\n    <button type="button"\n            mat-icon-button\n            matSuffix\n            [attr.aria-label]="\'Hide password\'"\n            [attr.aria-pressed]="hide"\n            (click)="hide=!hide"\n            *ngIf="type === \'password\'">\n        <i class="roblex roblex-eyes-open" *ngIf="hide"></i>\n        <i class="roblex roblex-eyes-close" *ngIf="!hide"></i>\n    </button>\n    <button type="button"\n            mat-icon-button\n            matSuffix\n            (click)="onClickMatSuffix()"\n            *ngIf="iconRight">\n        <i [class]="iconRight"></i>\n    </button>\n    <button type="button"\n            mat-icon-button\n            matSuffix\n            [disabled]="iconRightDisabled"\n            (click)="onClickMatSuffix()"\n            *ngIf="templateRight">\n        <ng-container *ngTemplateOutlet="templateRight"></ng-container>\n    </button>\n    <mat-hint *ngIf="control?.touched && control?.invalid"> {{ getErrorMessage() }}</mat-hint>\n    <mat-hint class="w-100" *ngIf="templateLegend && !(!control?.disabled && control?.touched && !control?.valid)">\n        <ng-container *ngTemplateOutlet="templateLegend"></ng-container>\n    </mat-hint>\n    <ng-content></ng-content>\n</mat-form-field>\n',encapsulation:t.ViewEncapsulation.None,providers:[{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return Re}))}],styles:[""]}]}],Re.ctorParameters=function(){return[{type:u.ControlContainer}]},Re.propDecorators={identifier:[{type:t.Input}],className:[{type:t.Input}],appearance:[{type:t.Input}],formControlName:[{type:t.Input}],label:[{type:t.Input}],disabled:[{type:t.Input}],placeholder:[{type:t.Input}],type:[{type:t.Input}],iconLeft:[{type:t.Input}],iconRight:[{type:t.Input}],iconRightDisabled:[{type:t.Input}],templateRight:[{type:t.Input}],enabledNumberOnly:[{type:t.Input}],templateLegend:[{type:t.Input}],hasBackspace:[{type:t.Input}],upperCase:[{type:t.Input}],suffix:[{type:t.Output}],backspace:[{type:t.Output}]};var ke=function(){function e(e){this.controlContainer=e,this.appearance="outline",this.flattenText=!1,this.disabled=!1,this.displayKey="id",this.displayValue="name",this.data=[],this.suffix=new t.EventEmitter,this.selectChange=new t.EventEmitter,this.onChange=function(){},this.onTouched=function(){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){return this.controlContainer.formDirective?this.controlContainer.formDirective.form:null},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.control=this.form.get(this.formControlName)},e.prototype.getErrorMessage=function(){return this.control?N.errorMessage(this.control):null},e.prototype.onChangeEvent=function(e){this.selectChange.emit(e),this.writeValue(null!=e?e:null)},e.prototype.onBlurEvent=function(){this.control&&this.control.markAsTouched()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.writeValue=function(e){this.value=e},e}();ke.decorators=[{type:t.Component,args:[{selector:"roblex-input-form-select",template:'<mat-form-field [appearance]="appearance"\n    [class]="control?.touched && !control?.valid ? \'mat-form-field-invalid\' : null">\n    <mat-label> {{ label }}</mat-label>\n    <button type="button"\n            mat-icon-button\n            matPrefix\n            disabled\n            *ngIf="iconLeft">\n        <i [class]="iconLeft"></i>\n    </button>\n    <mat-select [(value)]="value" [disabled]="disabled" (selectionChange)="onChangeEvent($event.value)" (blur)="onBlurEvent()"\n        [id]="\'roblex-\' +formControlName">\n        <mat-option value="null"> - seleccionar - </mat-option>\n        <mat-option [value]="item[displayKey] ? item[displayKey] : item" [ngClass]="{\'flatten-text\':flattenText}" *ngFor="let item of data">\n            <ng-container *ngIf="displayImagenFn">\n                <img [src]="displayImagenFn(item) | baseUrlCdn" width="20" />\n            </ng-container>\n            <ng-container *ngIf="displayFn">\n                <span class="flatten-text">{{ displayFn(item) }}</span>\n            </ng-container>\n            <ng-container *ngIf="!displayFn">\n                {{ item[displayValue] ? item[displayValue] : item }}\n            </ng-container>\n        </mat-option>\n    </mat-select>\n    \x3c!--<button type="button"\n            mat-icon-button\n            matSuffix\n            (click)="onClickMatSuffix()"\n            *ngIf="iconRight">\n        <i [class]="iconRight"></i>\n    </button>--\x3e\n    <mat-hint *ngIf="control?.touched && !control?.valid">{{ getErrorMessage() }}</mat-hint>\n    <mat-hint class="w-100" *ngIf="templateLegend && !(control?.touched && !control?.valid)">\n        <ng-container *ngTemplateOutlet="templateLegend"></ng-container>\n    </mat-hint>\n</mat-form-field>\n',providers:[{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return ke}))}],styles:[".flatten-text{white-space:pre-line!important;line-height:1.2em!important}"]}]}],ke.ctorParameters=function(){return[{type:u.ControlContainer}]},ke.propDecorators={appearance:[{type:t.Input}],formControlName:[{type:t.Input}],flattenText:[{type:t.Input}],disabled:[{type:t.Input}],displayKey:[{type:t.Input}],displayValue:[{type:t.Input}],displayFn:[{type:t.Input}],displayImagenFn:[{type:t.Input}],val:[{type:t.Input,args:["value"]}],label:[{type:t.Input}],data:[{type:t.Input}],templateLegend:[{type:t.Input}],iconLeft:[{type:t.Input}],suffix:[{type:t.Output}],selectChange:[{type:t.Output}]};var Te={api:""},Oe=new t.InjectionToken("input-file.config",{providedIn:"root",factory:function(){return Te}}),Ae=function(){function e(e,t){this.configInputValue=e,this.http=t}return e.prototype.upload=function(e){var t=new FormData;return t.append("file",e),this.http.post(this.configInputValue.api,t)},e}();Ae.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new Ae(x.ɵɵinject(Oe),x.ɵɵinject(I.HttpClient))},token:Ae,providedIn:"root"}),Ae.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Ae.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Oe]}]},{type:y.HttpClient}]};var Ne=function(){function e(e,t,n){this.inputFileService=e,this.controlContainer=t,this.inputConfig=n,this.disabled=!1,this.accept="image/x-png,image/jpeg",this.onChangeCallback=function(e){},this._value=""}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChangeCallback(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){var e,t;return(null===(e=this.controlContainer)||void 0===e?void 0:e.formDirective)?(null===(t=this.controlContainer)||void 0===t?void 0:t.formDirective).form:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form.controls[this.formControlName]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classValid",{get:function(){var e,t,n={};return n["input-file-invalid"]=(null===(e=this.control)||void 0===e?void 0:e.touched)&&(null===(t=this.control)||void 0===t?void 0:t.invalid),n},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.onChangeFile=function(e){var t=this;e.target.files[0]&&this.inputFileService.upload(e.target.files[0]).subscribe((function(e){t.fileUpload=e,t.writeValue(e.filename)}))},e.prototype.onClickRemove=function(){this.fileUpload=null,this.control.reset()},e.prototype.writeValue=function(e){this.value=e,this.onChangeCallback(this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}();Ne.decorators=[{type:t.Component,args:[{selector:"roblex-input-file",template:'<div class="wrapper-files py-4" [ngClass]="classValid" *ngIf="!value">\n    <input type="file" class="wrapper-files__input cursor-pointer" (change)="onChangeFile($event)" [attr.accept]="accept" #inputFile>\n    <span class="wrapper-files__label">Foto</span>\n</div>\n\n\n<div class="wrapper-files__preview" *ngIf="value">\n    <img [src]="value" width="100%" alt="">\n    <button type="button" (click)="onClickRemove()">\n        <i class="roblex roblex-close"></i>\n    </button>\n</div>',providers:[Ae,{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return Ne}))}],styles:[""]}]}],Ne.ctorParameters=function(){return[{type:Ae},{type:u.ControlContainer},{type:void 0,decorators:[{type:t.Inject,args:[Oe]}]}]},Ne.propDecorators={disabled:[{type:t.Input}],formControlName:[{type:t.Input}],accept:[{type:t.Input}],inputFile:[{type:t.ViewChild,args:["inputFile"]}]};var De=function(){function e(e,n){this.controlContainer=e,this.fb=n,this._value="",this.label="date picker label",this.disabled=!1,this.placeholder="",this.change=new t.EventEmitter,this.onChangeCallback=function(e){},this.initializeForm()}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChangeCallback(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){return this.controlContainer.formDirective?this.controlContainer.formDirective.form:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classFormFiel",{get:function(){var e,t,n={"date-range-picker":!0};return n["mat-form-field-invalid"]=(null===(e=this.control)||void 0===e?void 0:e.touched)&&(null===(t=this.control)||void 0===t?void 0:t.invalid),this.className&&(n[this.className]=!0),n},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.form.get(this.formControlName),this.dateRangePickerForm.valueChanges.subscribe((function(t){e.onDateChange(t)}))},e.prototype.getErrorMessage=function(){return this.control?N.errorMessage(this.control):null},e.prototype.onDateChange=function(e){this.change.emit(e),this.writeValue(e)},e.prototype.writeValue=function(e){e?this.dateRangePickerForm.patchValue({value:e},{emitEvent:!1}):this.dateRangePickerForm.reset(),this.value=e,this.onChangeCallback(this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.initializeForm=function(){this.dateRangePickerForm=this.fb.group({start:[null,null],end:[null,null]})},e}();De.decorators=[{type:t.Component,args:[{selector:"roblex-input-date-ramge-picker",template:'<mat-form-field appearance="outline" [ngClass]="classFormFiel">\n    <mat-label>{{ label }}</mat-label>\n    <mat-date-range-input [formGroup]="dateRangePickerForm"\n                          [rangePicker]="campaignOnePicker">\n        <input matStartDate placeholder="00/00/0000" formControlName="start">\n        <input matEndDate placeholder="00/00/0000" formControlName="end">\n    </mat-date-range-input>\n    <mat-datepicker-toggle matSuffix [for]="campaignOnePicker"></mat-datepicker-toggle>\n    <mat-date-range-picker #campaignOnePicker></mat-date-range-picker>\n    <mat-hint *ngIf="control?.touched && control?.invalid"> {{ getErrorMessage() }}</mat-hint>\n</mat-form-field>',providers:[{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return De}))}],styles:[""]}]}],De.ctorParameters=function(){return[{type:u.ControlContainer},{type:u.FormBuilder}]},De.propDecorators={identifier:[{type:t.Input}],className:[{type:t.Input}],formControlName:[{type:t.Input}],label:[{type:t.Input}],disabled:[{type:t.Input}],placeholder:[{type:t.Input}],change:[{type:t.Input}]};var Pe=function(){function e(e){this.controlContainer=e,this._value="",this.appearance="outline",this.label="date picker label",this.disabled=!1,this.placeholder="",this.change=new t.EventEmitter,this.onChangeCallback=function(e){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChangeCallback(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){return this.controlContainer.formDirective?this.controlContainer.formDirective.form:null},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.control=this.form.get(this.formControlName)},e.prototype.getErrorMessage=function(){return this.control?N.errorMessage(this.control):null},e.prototype.onDateInput=function(e){this.control&&this.control.markAsTouched()},e.prototype.onDateChange=function(e){var t="string"!=typeof e.value?e.value.toISOString():e.value;this.change.emit(t),this.writeValue(t)},e.prototype.writeValue=function(e){this.value=e,this.onChangeCallback(this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}();Pe.decorators=[{type:t.Component,args:[{selector:"roblex-input-date-picker",template:'<mat-form-field [appearance]="appearance" [class]="control?.touched && control?.invalid ? \'mat-form-field-invalid\' : null">\n    <mat-label> {{ label }}</mat-label>\n    <input matInput [matDatepicker]="picker" \n          (dateInput)="onDateInput($event)" \n          (dateChange)="onDateChange($event)"\n          (focus)="picker.open()"\n          (click)="picker.open()"\n          [attr.placeholder]="placeholder || null"\n          [value]="value || null"\n          mask="00/00/0000" />\n    <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>\n    <mat-datepicker #picker></mat-datepicker>\n    <mat-hint *ngIf="control?.touched && control?.invalid"> {{ getErrorMessage() }}</mat-hint>\n</mat-form-field>',encapsulation:t.ViewEncapsulation.None,providers:[{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return Pe}))}],styles:["app-input-datepicker{display:block!important;width:100%!important}app-input-datepicker mat-form-field{width:100%!important}"]}]}],Pe.ctorParameters=function(){return[{type:u.ControlContainer}]},Pe.propDecorators={formControlName:[{type:t.Input}],appearance:[{type:t.Input}],label:[{type:t.Input}],disabled:[{type:t.Input}],placeholder:[{type:t.Input}],change:[{type:t.Input}]};var _e=function(){function e(){this.positionFixed=!0}return e.prototype.ngOnInit=function(){},e}();_e.decorators=[{type:t.Component,args:[{selector:"roblex-right-page-content",template:'<roblex-navegation [positionFixed]="true"></roblex-navegation>\n<div class="flex-fill d-flex justify-content-center" [ngClass]="{ \'align-items-center\': alignItemsCenter }">\n    <ng-content></ng-content>\n</div>\n',host:{class:"container h-100 d-flex flex-column position-relative"},styles:[""]}]}],_e.ctorParameters=function(){return[]},_e.propDecorators={positionFixed:[{type:t.Input}],alignItemsCenter:[{type:t.Input}]};var Me=function(){function e(e,t){this.navegationStateService=e,this.cdRef=t,this.positionFixed=!0,this.position="position-relative"}return e.prototype.ngOnInit=function(){this.positionFixed&&(this.position="position-fixed"),this.navegationStateService.home$.subscribe((function(e){}))},e.prototype.ngAfterViewInit=function(){this.cdRef.detectChanges()},e}();Me.decorators=[{type:t.Component,args:[{selector:"roblex-navegation",template:'<ul>\n    <li class="label-maax-xs color-dark-slate-gray" *ngIf="navegationStateService?.home$ | async">Home</li>\n    <ng-container *ngIf="navegationStateService?.login$ | async">\n        <li>\n            <img [src]="\'assets/img/right-arrow.svg\' | baseUrlCdn">\n        </li>\n        <li class="label-maax-xs color-dark-slate-gray">\n            Inicio de sesión\n        </li>\n    </ng-container>\n    <ng-container *ngIf="navegationStateService?.forgot$ | async">\n        <li>\n            <img [src]="\'assets/img/right-arrow.svg\' | baseUrlCdn">\n        </li>\n        <li class="label-maax-xs color-dark-slate-gray active">\n            Olvidé contraseña\n        </li>\n    </ng-container>\n    <ng-container *ngIf="navegationStateService?.newPassword$ | async">\n        <li>\n            <img [src]="\'assets/img/right-arrow.svg\' | baseUrlCdn">\n        </li>\n        <li class="label-maax-xs color-dark-slate-gray">\n            Nueva contraseña\n        </li>\n    </ng-container>\n</ul>\n',host:{class:"wrapper-navigation navigation-list"},styles:[""]}]}],Me.ctorParameters=function(){return[{type:D},{type:t.ChangeDetectorRef}]},Me.propDecorators={positionFixed:[{type:t.Input}],position:[{type:t.HostBinding,args:["class"]}]};var je=function(){function e(){this.onDismissible=new h.Subscription,this.toggle=!1,this.dismissOnTimeout=1e4,this.closed=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;this.onDismissible.unsubscribe(),e.toggle&&e.dismissible&&this.dismissible&&(this.onDismissible=h.of(!0).pipe(v.delay(this.dismissOnTimeout)).subscribe((function(){t.toggle=!1,t.closed.emit(t.toggle),t.onDismissible.unsubscribe()})))},e.prototype.onClickToggle=function(){this.onDismissible.unsubscribe(),this.toggle=!this.toggle,this.closed.emit(this.toggle)},e.prototype.getClassByType=function(e){switch(e){case"error":return{"alert-danger":!0};case"info":return{"alert-warning":!0};case"success":return{"alert-info":!0};case"warning":return{"alert-success":!0};default:return{"alert-warning":!0}}},e.prototype.getTitleByType=function(e,t){if(e)return e;switch(t){case"error":return"Error, ";case"info":return"Info, ";case"success":return"Exito, ";case"warning":return"Advertencia, ";default:return""}},e}();je.decorators=[{type:t.Component,args:[{selector:"roblex-alert-message",template:'<div class="alert alert-dismissible fade show"\n     role="alert"\n     *ngIf="toggle"\n     [class]="class"\n     [ngClass]="getClassByType(type)"\n     [@fadeInOut]>\n    <strong>{{ getTitleByType(title, type) }}</strong>\n    <ng-content></ng-content>\n    <button type="button"\n            class="close"\n            data-dismiss="alert"\n            aria-label="Close"\n            (click)="onClickToggle()">\n        <span aria-hidden="true">&times;</span>\n    </button>\n</div>\n',encapsulation:t.ViewEncapsulation.None,animations:[g.trigger("fadeInOut",[g.transition(":enter",[g.style({opacity:0}),g.animate(100,g.style({opacity:1}))]),g.transition(":leave",[g.animate(100,g.style({opacity:0}))])])],styles:["app-alert-message .alert button:active,app-alert-message .alert button:focus,app-alert-message .alert button:hover{outline:none}app-alert-message .alert button span{font-size:1.5rem!important;color:inherit!important}app-alert-message .alert-dismissible{padding-right:3rem}app-alert-message .alert-dismissible .close{padding:.75rem 1.25rem 0 0}"]}]}],je.propDecorators={toggle:[{type:t.Input}],dismissible:[{type:t.Input}],dismissOnTimeout:[{type:t.Input}],title:[{type:t.Input}],type:[{type:t.Input}],class:[{type:t.Input}],closed:[{type:t.Output}]};var Fe,Le=function(){function e(){this.showReturn=!1,this.background="bg-color-blue-light",this.router=new t.EventEmitter,this.returnHome=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.onClickRoute=function(e){this.router.emit(e)},e.prototype.onClickReturnHome=function(){this.returnHome.emit()},e}();Le.decorators=[{type:t.Component,args:[{selector:"roblex-footer",template:'<div class="d-flex justify-content-center content-btn-return-page-responsive"\n     *ngIf="showReturn">\n    <a class="btn btn-primary btn-return-page"\n       href="#home">\n        Volver al inicio\n    </a>\n</div>\n<footer class="content-footer"\n        [ngClass]="background">\n    <div class="container-lg d-flex justify-content-center">\n\n        <div class="item-section our-stores">\n            <h4 class="title-footer">\n                Descarga disponible en:\n            </h4>\n            <div class="d-flex flex-column apps-stores">\n                <div *ngFor="let item of appStores">\n                    <ng-container *ngIf="item?.status">\n                        <ng-container *ngIf="item?.link">\n                            <a [href]="item?.link"\n                               target="_blank">\n                                <img [src]="item?.icon"\n                                     width="121px">\n                            </a>\n                        </ng-container>\n                        <ng-container *ngIf="!item?.link">\n                            <img [src]="item?.icon"\n                                 width="121px">\n                        </ng-container>\n                    </ng-container>\n                </div>\n            </div>\n        </div>\n        <div class="item-section our-schedule">\n            <h4 class="title-footer">\n                Nuestro horarios:\n            </h4>\n            <div class="d-flex flex-column content-hours">\n                <div class="text-hours"\n                     *ngFor="let item of ourSchedule">\n                    {{ item?.days }} <br />\n                    {{ item?.schedule }}\n                </div>\n            </div>\n        </div>\n        <div class="item-section out-following">\n            <h4 class="title-footer">\n                Siguenos en:\n            </h4>\n            <div class="d-flex flex-column content-contact">\n                <a [href]="item?.link"\n                   target="_blank"\n                   class="text-hours d-flex align-items-center mb-2"\n                   *ngFor="let item of social">\n                    <img [src]="item?.iconMovil | baseUrlCdn"\n                         class="pr-2 icon-contact-movil"\n                         width="28px">\n                    <img [src]="item?.icon"\n                         class="pr-2 icon-contact"\n                         width="28px">\n                    {{ item?.name }}\n                </a>\n            </div>\n        </div>\n        <div class="item-section out-contact">\n            <h4 class="title-footer">\n                Contactanos en:\n            </h4>\n            <div class="d-flex flex-column content-contact">\n                <a href="tel:{{ contactEmail?.phone }}"\n                   class="mb-2"\n                   *ngIf="contactEmail?.phone">\n                    <div class="text-hours d-flex align-items-center">\n                        <img [src]="\'assets/img/phone-alt-solid.svg\' | baseUrlCdn"\n                             class="pr-2 icon-phone"\n                             width="28px">\n                        {{ contactEmail?.phone }}\n                    </div>\n                </a>\n                <a href="https://api.whatsapp.com/send?phone=51{{ contactEmail?.cellphone }}"\n                   class="mb-2">\n                    <div class="text-hours d-flex align-items-center">\n                        <img [src]="contactEmail?.iconPhone | baseUrlCdn"\n                             class="pr-2 icon-phone"\n                             width="28px">\n                        {{ contactEmail?.cellphone }}\n                    </div>\n                </a>\n                <a href="mailto:{{ contactEmail?.email }}">\n                    <div class="text-hours d-flex align-items-center">\n                        <img [src]="contactEmail?.iconEmail | baseUrlCdn"\n                             class="pr-2 icon-email"\n                             width="28px">\n                        {{ contactEmail?.email }}\n                    </div>\n                </a>\n            </div>\n        </div>\n        <div class="item-section more-information">\n            <h4 class="title-footer">\n                Mas información:\n            </h4>\n            <div class="d-flex flex-column social-content">\n                <a (click)="onClickRoute(item)"\n                   class="text-hours d-flex align-items-center mb-2 cursor-pointer"\n                   *ngFor="let item of moreInformations">\n                    {{ item?.title }}\n                </a>\n                \x3c!-- <button type="button" (click)="onClickRoute(\'/promociones\')" class="text-hours d-flex align-items-center mb-2">\n                    Promociones\n                </button>\n                <button type="button" (click)="onClickRoute(\'/buscar-cci\')" class="text-hours d-flex align-items-center mb-2">\n                    Buscar CCI\n                </button>\n                <button type="button" (click)="onClickRoute(\'/terminos-y-condiciones\')" class="text-hours d-flex align-items-center mb-2">\n                    Términos y Condiciones\n                </button>\n                <button type="button" (click)="onClickRoute(\'/politicas-de-privacidad\')" class="text-hours d-flex align-items-center mb-2">\n                    Política de Privacidad\n                </button>\n                <button type="button" (click)="onClickRoute(\'/politicas-de-privacidad\')" class="text-hours d-flex align-items-center mb-2">\n                    Política de Privacidad\n                </button> --\x3e\n            </div>\n        </div>\n        <div class="item-section wrapper-copyright">\n            <h4 class="title-footer">\n                @Roblex Todos los derechos reservados\n            </h4>\n            <div class="d-flex flex-column content-copyright">\n                <span *ngIf="version">\n                    Versión {{ version }}\n                </span>\n                <span>\n                    {{ information?.companyName }} <br>\n                    RUC {{ information?.ruc }}\n                </span>\n                <span>\n                    {{ information?.address }}\n                </span>\n                <span>\n                    {{ information?.sbs }}\n                </span>\n            </div>\n        </div>\n    </div>\n    <div class="wrapper-copyright-responsive">\n        <h4 class="title-footer">\n            @Roblex Todos los derechos reservados\n        </h4>\n        <div class="d-flex flex-column content-copyright">\n            <span>\n                {{ information?.companyName }} <br>\n                RUC {{ information?.ruc }}\n            </span>\n            <span>\n                {{ information?.address }}\n            </span>\n            <span>\n                {{ information?.sbs }}\n            </span>\n        </div>\n    </div>\n    <div class="d-flex justify-content-center mb-2 pb-2 mt-2 pt-2 content-btn-return-page"\n         *ngIf="showReturn">\n        <a class="btn btn-primary btn-return-page cursor-pointer"\n           (click)="onClickReturnHome()">\n            Volver al inicio\n        </a>\n    </div>\n</footer>',styles:[""]}]}],Le.ctorParameters=function(){return[]},Le.propDecorators={ourSchedule:[{type:t.Input}],contactEmail:[{type:t.Input}],information:[{type:t.Input}],social:[{type:t.Input}],appStores:[{type:t.Input}],showReturn:[{type:t.Input}],version:[{type:t.Input}],background:[{type:t.Input}],moreInformations:[{type:t.Input}],router:[{type:t.Output}],returnHome:[{type:t.Output}]},e.SafeType=void 0,(Fe=e.SafeType||(e.SafeType={})).HTML="html",Fe.STYLE="style",Fe.SCRIPT="script",Fe.URL="url",Fe.RESOURCE="resourceUrl";var Ve=function(){function t(e){this.sanitizer=e}return t.prototype.transform=function(t,n){switch(n){case e.SafeType.HTML:return this.sanitizer.bypassSecurityTrustHtml(t);case e.SafeType.STYLE:return this.sanitizer.bypassSecurityTrustStyle(t);case e.SafeType.SCRIPT:return this.sanitizer.bypassSecurityTrustScript(t);case e.SafeType.URL:return this.sanitizer.bypassSecurityTrustUrl(t);case e.SafeType.RESOURCE:return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error("SafePipe unable to bypass security for invalid type: "+n)}},t}();Ve.decorators=[{type:t.Pipe,args:[{name:"safe-type"}]}],Ve.ctorParameters=function(){return[{type:b.DomSanitizer}]};var Ue=function(){function t(e,t){this.safeTypePipe=e,this.cdnCofing=t}return t.prototype.transform=function(t,n){if(t){var o=this.cdnCofing+"/"+t;switch(n){case e.SafeType.STYLE:o="url('"+o+"')"}return this.safeTypePipe.transform(o,n||e.SafeType.URL)}return""},t}();Ue.decorators=[{type:t.Pipe,args:[{name:"baseUrlCdn"}]}],Ue.ctorParameters=function(){return[{type:Ve},{type:String,decorators:[{type:t.Inject,args:[j]}]}]};var Be=function(){function e(e){this.countryService=e}return e.prototype.transform=function(e){var t=this.countryService.getById(e);return t?null==t?void 0:t.name:e},e}();Be.decorators=[{type:t.Pipe,args:[{name:"roblexCountry"}]}],Be.ctorParameters=function(){return[{type:Ie}]};var He=function(){function e(e){this.countryService=e}return e.prototype.transform=function(e){var t,n=this.countryService.getById(e);return n?"assets/img/countries/"+(null===(t=null==n?void 0:n.id)||void 0===t?void 0:t.toLowerCase())+".svg":e},e}();He.decorators=[{type:t.Pipe,args:[{name:"roblexCountryImage"}]}],He.ctorParameters=function(){return[{type:Ie}]};var Ke=function(){function e(e){this.countryService=e}return e.prototype.transform=function(e){var t=this.countryService.getById(e);return t?t.code:e},e}();Ke.decorators=[{type:t.Pipe,args:[{name:"roblexCountryCodePhone"}]}],Ke.ctorParameters=function(){return[{type:Ie}]};var Ge=function(){function e(){}return e.prototype.transform=function(e){return e?"****"+e.substr(e.length-4):""},e}();Ge.decorators=[{type:t.Pipe,args:[{name:"roblexMaskNumberAccount"}]}],Ge.ctorParameters=function(){return[]};var Ye,$e=[{id:"6312be83-69aa-4b35-a3a5-236479e3f510",description:"DNI"},{id:"0d5e2fd6-1561-4fc1-8a6e-a9f34d39406d",description:"Pasaporte"},{id:"f5df527c-836e-4abf-8a3a-ec1fe4988738",description:"Carné de E."},{id:"f5df527c-830e-4abf-8a3a-ecafe4988734",description:"PTP"}],qe=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)};e.ScheduleNotificationType=void 0,(Ye=e.ScheduleNotificationType||(e.ScheduleNotificationType={}))[Ye.warning=1]="warning",Ye[Ye.promotion=2]="promotion",Ye[Ye.notice=3]="notice",Ye[Ye.post=4]="post";var ze=function(t){switch(t){case e.ScheduleNotificationType.warning:return"assets/icons/warning.svg";case e.ScheduleNotificationType.promotion:return"assets/icons/promotion.svg";case e.ScheduleNotificationType.notice:return"assets/icons/notice.svg";case e.ScheduleNotificationType.post:return"assets/icons/post.svg";default:return null}},We=function(){function e(){this.documentTypes=$e}return e.prototype.transform=function(e){var t,n;return null!==(n=null===(t=this.documentTypes.find((function(t){return t.id===e})))||void 0===t?void 0:t.description)&&void 0!==n?n:""},e}();We.decorators=[{type:t.Pipe,args:[{name:"roblexDocumentDescription"}]}];var Je=[Ue,Ve,Be,He,Ke,Ge,We],Xe=function(){};Xe.decorators=[{type:t.NgModule,args:[{declarations:A(Je),exports:A(Je),providers:A(Je)}]}];var Ze=function(){function e(){this._afterClosed=new h.Subject,this.afterClosed=this._afterClosed.asObservable()}return e.prototype.close=function(e){this._afterClosed.next(e)},e}(),Qe=function(){},et=function(e){this.viewContainerRef=e};et.decorators=[{type:t.Directive,args:[{selector:"[roblexCollapsedSidepanelInsertion]"}]}],et.ctorParameters=function(){return[{type:t.ViewContainerRef}]};var tt=function(){function e(e,t,n,o){this.roblexCollapsedSidepanelConfig=e,this.componentFactoryResolver=t,this.cd=n,this.roblexCollapsedSidepanelRef=o,this._onClose=new h.Subject,this.onClose=this._onClose.asObservable()}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.loadChildComponent(this.childComponentType),this.cd.detectChanges()},e.prototype.onOutsideClicked=function(e){this.roblexCollapsedSidepanelConfig.backdrop&&"roblex-collapsed-sidepanel-overlay"===e.target.localName&&this.roblexCollapsedSidepanelRef.close()},e.prototype.loadChildComponent=function(e){var t=this.componentFactoryResolver.resolveComponentFactory(e),n=this.insertionPoint.viewContainerRef;n.clear(),this.componentRef=n.createComponent(t)},e}();tt.decorators=[{type:t.Component,args:[{selector:"roblex-collapsed-sidepanel",template:'<div [ngClass]="{ \'roblex-collapsed-sidepanel-dialog\' : true }" (click)="onOutsideClicked($event)"\n    [class]="roblexCollapsedSidepanelConfig.className">\n    <roblex-collapsed-sidepanel-overlay>\n        <roblex-collapsed-sidepanel-content>\n            <ng-template roblexCollapsedSidepanelInsertion>\n\n            </ng-template>\n        </roblex-collapsed-sidepanel-content>\n    </roblex-collapsed-sidepanel-overlay>\n</div>',styles:[""]}]}],tt.ctorParameters=function(){return[{type:Qe},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef},{type:Ze}]},tt.propDecorators={insertionPoint:[{type:t.ViewChild,args:[et]}]};var nt=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();nt.decorators=[{type:t.Component,args:[{selector:"roblex-collapsed-sidepanel-overlay",template:"<ng-content></ng-content>\n",styles:[""]}]}],nt.ctorParameters=function(){return[]};var ot=function(){function e(e){this.roblexCollapsedSidepanelRef=e}return e.prototype.ngOnInit=function(){},e.prototype.onClickClosed=function(){this.roblexCollapsedSidepanelRef.close()},e}();ot.decorators=[{type:t.Component,args:[{selector:"roblex-collapsed-sidepanel-content",template:'<ng-content></ng-content>\n<button class="btn btn-collapsed-sidepanel" (click)="onClickClosed()">\n    <i class="roblex roblex-close"></i>\n</button>',styles:[""]}]}],ot.ctorParameters=function(){return[{type:Ze}]};var rt=function(){};rt.decorators=[{type:t.NgModule,args:[{declarations:[tt,nt,et,ot],imports:[n.CommonModule,ue],entryComponents:[tt],exports:[tt],providers:[Qe],schemas:[t.CUSTOM_ELEMENTS_SCHEMA]}]}];var it=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o._parentInjector=t,o._additionalTokens=n,o}return w(t,e),t}(fe),at=function(){function e(e,t,n,o){this.componentFactoryResolver=e,this.appRef=t,this.injector=n,this.elementService=o,this.componentsReferences=Array(),this.elementService.animateName="disapearX"}return e.prototype.show=function(e,t){var n=this,o=new WeakMap;o.set(Qe,Object.assign({backdrop:!0},t));var r=new Ze;o.set(Ze,r);var i=this.elementService.appendDialogComponentToBody(this.appRef,new it(this.injector,o),tt,["collapsed-sidepanel-open"]),a=i.instance;a.childComponentType=e;var s=r.afterClosed.subscribe((function(e){n.elementService.removeModalComponentFromBody(n.appRef,n.componentsReferences,a.uniqueKey,"collapsed-sidepanel-open","collapsed-sidepanel-remove"),s.unsubscribe()}));return this.componentsReferences.push(i),i},e}();at.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new at(x.ɵɵinject(x.ComponentFactoryResolver),x.ɵɵinject(x.ApplicationRef),x.ɵɵinject(x.INJECTOR),x.ɵɵinject(Ee))},token:at,providedIn:rt}),at.decorators=[{type:t.Injectable,args:[{providedIn:rt}]}],at.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:Ee}]};var st=function(){function e(e,t){this.roblexCollapsedSidepanelConfig=e,this.roblexCollapsedSidepanelRef=t}return e.prototype.ngOnInit=function(){this.menus=this.roblexCollapsedSidepanelConfig.data.menus,this.dropdows=this.roblexCollapsedSidepanelConfig.data.dropdows},e.prototype.onClickMenu=function(e){(null==e?void 0:e.isRouteActive)&&(null==e||e.isRouteActive(e)),(null==e?void 0:e.callbackAction)&&(null==e||e.callbackAction(e)),this.roblexCollapsedSidepanelRef.close()},e.prototype.onClickDropdown=function(e){(null==e?void 0:e.callbackAction)&&(null==e||e.callbackAction(e)),this.roblexCollapsedSidepanelRef.close()},e}();st.decorators=[{type:t.Component,args:[{selector:"roblex-header-collapsed-sidepanel",template:'<div class="d-flex flex-column">\n    <div class="text-center pt-5">\n        <img [src]="\'assets/img/roblex.svg\' | baseUrlCdn" alt="">\n    </div>\n    <div class="list-collapsed-sidepanel">\n        <ul>\n            <li (click)="onClickMenu(item)" *ngFor="let item of menus">\n                {{ item.title }}\n            </li>\n        </ul>\n    </div>\n    <div class="dropdown-divider"></div>\n    <div class="list-collapsed-sidepanel">\n        <ul>\n            <li class="d-flex" *ngFor="let item of dropdows" (click)="onClickDropdown(item)">\n                <i [ngClass]="{ \'roblex\': true, \'pr-2\': true }" [class]="item.icon"></i>\n                {{ item.title }}\n            </li>\n        </ul>\n    </div>\n</div>',styles:[""]}]}],st.ctorParameters=function(){return[{type:Qe},{type:Ze}]};var lt=function(){function e(e){this.roblexCollapsedSidepanelService=e,this.hasContainer=!1}return e.prototype.ngOnInit=function(){},e.prototype.onClickMenu=function(e){(null==e?void 0:e.isRouteActive)&&(null==e||e.isRouteActive(e)),(null==e?void 0:e.callbackAction)&&(null==e||e.callbackAction(e))},e.prototype.onClickToggle=function(){this.roblexCollapsedSidepanelService.show(st,{data:{menus:this.menus,dropdows:this.dropdows}})},e}();lt.decorators=[{type:t.Component,args:[{selector:"roblex-header",template:'<nav class="navbar navbar-expand-lg navbar-light navbar-header bg-light">\n    <div class="container-fluid" [ngClass]="{ \'container\': hasContainer }">\n        <div class="d-flex justify-content-between align-items-center w-100">\n                <a class="navbar-brand" [routerLink]="[\'/\']">\n                    <img [src]="\'assets/img/roblex.svg\' | baseUrlCdn" height="54px" alt="" class="logo-roblex">\n                    <img [src]="\'assets/img/logo-short.svg\' | baseUrlCdn" height="30px" alt="" class="responsive__logo-roblex-short">\n                </a>\n\n            <div class="d-flex">\n                <div>\n                    <ul class="menu-options">\n                        <li [ngClass]="{ \'menu-option-active\': item?.isRouteActive && item?.isRouteActive(item) }"\n                            *ngFor="let item of menus">\n                            <a (click)="onClickMenu(item)">\n                                {{ item.title }}\n                            </a>\n                        </li>\n                    </ul>\n                </div>\n                <roblex-dropdown [text]="username" [options]="dropdows" icon="roblex-usuario" class="username-information" *ngIf="dropdows"></roblex-dropdown>\n                <roblex-dropdown [text]="username" icon="roblex-usuario" *ngIf="dropdows" class="responsive__username-information"></roblex-dropdown>\n                <button class="btn btn-menu-toggle responsive__menu-toggle color-primary ml-2" (click)="onClickToggle()" *ngIf="dropdows || menus">\n                    <i class="roblex roblex-menu"></i>\n                </button>\n            </div>\n        </div>\n    </div>\n</nav>\n',styles:[""]}]}],lt.ctorParameters=function(){return[{type:at}]},lt.propDecorators={hasContainer:[{type:t.Input}],menus:[{type:t.Input}],dropdows:[{type:t.Input}],username:[{type:t.Input}]};var ct,ut=function(){function e(){this.text="Title",this.eventClick=new t.EventEmitter}return e.prototype.onClickDropdown=function(){this.dropdownContent.nativeElement.classList.toggle("show"),this.eventClick.emit()},e.prototype.onClickOption=function(e){this.dropdownContent.nativeElement.classList.toggle("show"),(null==e?void 0:e.callbackAction)&&(null==e||e.callbackAction(e))},e.prototype.onClickOutside=function(){this.dropdownContent.nativeElement.classList.contains("show")&&this.dropdownContent.nativeElement.classList.remove("show")},e}();ut.decorators=[{type:t.Component,args:[{selector:"roblex-dropdown",template:'<div class="roblex-wrapper-dropdown" (clickOutside)="onClickOutside()">\n    <button class="roblex-wrapper-dropdown__button" \n            [ngClass]="{ \'roblex-wrapper-dropdown__down-shape\': options?.length > 0 }"\n            (click)="onClickDropdown()">\n        <i class="roblex {{ icon }}" *ngIf="icon"></i>\n        {{ text }}\n    </button>\n    <div class="roblex-wrapper-dropdown__content" #dropdownContent>\n        <ng-container *ngFor="let item of options">\n            <a (click)="onClickOption(item)">\n                <i class="roblex roblex-change" [ngClass]="item?.icon" *ngIf="item?.icon"></i>\n                <span>{{ item?.title }}</span>\n            </a>\n        </ng-container>\n    </div>\n</div>\n',styles:[""]}]}],ut.ctorParameters=function(){return[]},ut.propDecorators={options:[{type:t.Input}],text:[{type:t.Input}],icon:[{type:t.Input}],eventClick:[{type:t.Output}],dropdownContent:[{type:t.ViewChild,args:["dropdownContent"]}]},e.OperationActive=void 0,(ct=e.OperationActive||(e.OperationActive={})).SEND="S",ct.RECEIVE="R";var pt=function(){function n(){this.textSend="Envío",this.textReceive="Recibo",this.exchangeRateUsed=0,this.amountSend=0,this.amountReceive=0,this.keyupSend=new t.EventEmitter,this.keyupReceive=new t.EventEmitter,this.changeCurrency=new t.EventEmitter,this.interval=1e3}return n.prototype.ngOnInit=function(){},n.prototype.onKeyupSend=function(t){var n=this;clearTimeout(this.timeout);var o=+t.replace(new RegExp(",","g"),"");this.timeout=setTimeout((function(){o>0&&n.keyupSend.emit({active:e.OperationActive.SEND,value:+o}),clearTimeout(n.timeout)}),this.interval)},n.prototype.onKeyupReceive=function(t){var n=this;clearTimeout(this.timeout);var o=+t.replace(new RegExp(",","g"),"");this.timeout=setTimeout((function(){o>0&&n.keyupReceive.emit({active:e.OperationActive.RECEIVE,value:+o}),clearTimeout(n.timeout)}),this.interval)},n.prototype.onChangeCurrency=function(){this.changeCurrency.emit({active:e.OperationActive.SEND,symbolSend:this.symbolReceive,symbolReceive:this.symbolSend,value:+this.amountReceive})},n}();pt.decorators=[{type:t.Component,args:[{selector:"roblex-trading-calculator",template:'<div class="wrapper-trading-calculator">\n    <div class="wrapper-trading-calculator__amounts d-flex justify-content-center align-items-center">\n        <div class="wrapper-trading-calculator__amounts-send d-flex flex-column">\n            <label class="wrapper-trading-calculator__label text-center">{{ textSend }}</label>\n            <div class="wrapper-trading-calculator__content-input d-flex align-items-center justify-content-center">\n                <label class="wrapper-trading-calculator__currency-symbol">{{ symbolSend }}</label>\n                \x3c!-- [value]="amountSend | number : \'1.2-2\'" --\x3e\n                <input type="text"\n                       class="wrapper-trading-calculator__input"\n                       [value]="amountSend | number : \'1.2-2\'"\n                       (keyup)="onKeyupSend($event.target.value)"\n                       roblexNumberOnlyDecimal\n                       pattern="^(?=.*\\d)\\d*(\\.\\d{1,2})?$"\n                       placeholder="0.00"\n                       decimal="true"\n                       [disabled]="disabledAmountSend"\n                       *ngIf="!disabledAmountSend">\n                <label *ngIf="disabledAmountSend" class="wrapper-trading-calculator__content-input-disabled">{{ (amountSend || 0) | number : \'1.2-2\' }}</label>\n            </div>\n        </div>\n        <div class="wrapper-trading-calculator__reverse">\n            <button type="button"\n                    class="btn-reverse d-flex justify-content-center align-items-center"\n                    (click)="onChangeCurrency()"\n                    [disabled]="rotate"\n                    [ngClass]="{ \'btn-change-rotate\': rotate }"\n                    *ngIf="!hideChange">\n                <i class="roblex roblex-tasa"></i>\n            </button>\n        </div>\n        <div class="wrapper-trading-calculator__amounts-receive d-flex flex-column">\n            <label class="wrapper-trading-calculator__label text-center">{{ textReceive }}</label>\n            <div class="wrapper-trading-calculator__content-input d-flex align-items-center justify-content-center">\n                <label class="wrapper-trading-calculator__currency-symbol">{{ symbolReceive }}</label>\n                <input type="text"\n                       class="wrapper-trading-calculator__input"\n                       placeholder="0.00"\n                       [value]="amountReceive | number : \'1.2-2\'"\n                       (keyup)="onKeyupReceive($event.target.value)"\n                       roblexNumberOnlyDecimal\n                       pattern="^(?=.*\\d)\\d*(\\.\\d{1,2})?$"\n                       placeholder="0.00"\n                       decimal="true"\n                       [disabled]="disabledAmountReceive"\n                       *ngIf="!disabledAmountReceive">\n                <label *ngIf="disabledAmountReceive" class="wrapper-trading-calculator__content-input-disabled">{{ (amountReceive || 0) | number : \'1.2-2\' }}</label>\n            </div>\n        </div>\n    </div>\n</div>\n<p class="text-center text-maax-sm pt-2">\n    Tipo de cambio utilizado <b>{{ exchangeRateUsed | number : \'1.4-4\' }}</b>\n    <b class="color-orange"\n       *ngIf="previousExchangeRate">\n        {{ \' | Antes \' + (previousExchangeRate | number : \'1.2-2\') }}\n    </b>\n</p>',styles:[""]}]}],pt.ctorParameters=function(){return[]},pt.propDecorators={textSend:[{type:t.Input}],textReceive:[{type:t.Input}],exchangeRateUsed:[{type:t.Input}],previousExchangeRate:[{type:t.Input}],symbolSend:[{type:t.Input}],symbolReceive:[{type:t.Input}],amountSend:[{type:t.Input}],amountReceive:[{type:t.Input}],rotate:[{type:t.Input}],disabledAmountSend:[{type:t.Input}],disabledAmountReceive:[{type:t.Input}],hideChange:[{type:t.Input}],keyupSend:[{type:t.Output}],keyupReceive:[{type:t.Output}],changeCurrency:[{type:t.Output}]};var dt=function(e,t){for(var n=e.split(","),o=n[0].match(/:(.*?);/)[1],r=atob(n[1]),i=r.length,a=new Uint8Array(i);i--;)a[i]=r.charCodeAt(i);return new File([a],t,{type:o})},mt={api:""},ft=new t.InjectionToken("camera.config",{providedIn:"root",factory:function(){return mt}}),ht=function(){function e(e,t){this.configCameraValue=e,this.http=t}return e.prototype.upload=function(e){var t=new FormData;return t.append("file",e),this.http.post(this.configCameraValue.api,t)},e}();ht.ɵprov=x.ɵɵdefineInjectable({factory:function(){return new ht(x.ɵɵinject(ft,8),x.ɵɵinject(I.HttpClient))},token:ht,providedIn:"root"}),ht.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],ht.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ft]}]},{type:y.HttpClient}]};var vt=function(){function e(e,t){this.cameraService=e,this.roblexModalRef=t,this.loading$=new h.Subject}return e.prototype.ngOnInit=function(){this.hasGetUserMedia()?this.setConfigCamera():alert("getUserMedia() is not supported by your browser")},e.prototype.ngOnDestroy=function(){this.stream.stop()},e.prototype.onClickTake=function(){var e=document.createElement("canvas");e.width=this.videoElement.videoWidth,e.height=this.videoElement.videoHeight,e.getContext("2d").drawImage(this.videoElement,0,0),this.image=e.toDataURL("image/jpeg")},e.prototype.onClickAccept=function(){return R(this,void 0,void 0,(function(){var e;return k(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),this.loading$.next(!0),[4,this.cameraService.upload(dt(this.image,"TAKE_"+(new Date).getTime()+".jpeg")).toPromise()];case 1:return e=t.sent(),this.roblexModalRef.close(e),[3,4];case 2:return t.sent(),[3,4];case 3:return this.loading$.next(!1),[7];case 4:return[2]}}))}))},e.prototype.onClickClear=function(){this.image=""},e.prototype.onClickClose=function(){this.roblexModalRef.close()},e.prototype.setConfigCamera=function(){var e=this;this.videoElement=document.querySelector(".wrapper-video"),navigator.mediaDevices.getUserMedia({video:!0}).then((function(t){e.stream=t.getTracks()[0],e.videoElement.srcObject=t})).catch()},e.prototype.hasGetUserMedia=function(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)},e}();vt.decorators=[{type:t.Component,args:[{selector:"robch-camera",template:'<roblex-modal-body class="p-0">\n    <button class="btn btn-camera-close" (click)="onClickClose()">\n        <i class="roblex roblex-close color-primary"></i>\n    </button>\n    <div class="d-flex justify-content-center align-items-center">\n        <video autoplay class="wrapper-video" [hidden]="image"></video>\n        <img class="screenshot" [src]="image" [hidden]="!image" width="100%">\n        <div class="action-camera d-flex justify-content-center">\n            <div class="wrapper-action-buttom" *ngIf="image">\n                <button class="btn btn-roblex-primary" [disabled]="loading$ | async" (click)="onClickClear()">\n                    <i class="roblex roblex-close"></i>\n                </button>\n            </div>\n            <div class="wrapper-action-buttom">\n                <button class="btn btn-roblex-primary" [disabled]="loading$ | async" (click)="onClickTake()">\n                    <i class="roblex roblex-camara"></i>\n                </button>\n            </div>\n            <div class="wrapper-action-buttom" *ngIf="image">\n                <button class="btn btn-roblex-primary" [disabled]="loading$ | async" (click)="onClickAccept()">\n                    <i class="roblex roblex-done"></i>\n                </button>\n            </div>\n            <div class="wrapper-action-buttom">\n                <button class="btn btn-roblex-primary" [disabled]="loading$ | async" (click)="onClickClose()">\n                    <i class="roblex roblex-logout"></i>\n                </button>\n            </div>\n        </div>\n    </div>\n</roblex-modal-body>',providers:[ht],styles:["roblex-modal-body{position:relative}roblex-modal-body .btn-camera-close{background-color:initial!important;box-shadow:unset;position:absolute;top:0;right:0;z-index:1;padding:.375rem .5rem}roblex-modal-body .screenshot{border-radius:.4rem}roblex-modal-body .wrapper-video{width:100%;height:376px;border:1px solid #ccc;border-radius:.4rem;position:relative}roblex-modal-body .action-camera{position:absolute;bottom:0;left:0;right:0;padding-bottom:.5rem;padding-top:.5rem}roblex-modal-body .action-camera .wrapper-action-buttom{margin-right:15px}roblex-modal-body .action-camera .wrapper-action-buttom :last-child{margin-right:0}"]}]}],vt.ctorParameters=function(){return[{type:ht},{type:z}]};var yt=function(){function e(e,t){this.snackBarRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.prototype.onClickClose=function(){this.snackBarRef.dismiss()},e}();yt.decorators=[{type:t.Component,args:[{selector:"roblex-snack-bar",template:'<p>\n    {{ data?.message }}\n</p>\n\n<button type="button" class="btn-close-snack" (click)="onClickClose()">\n    <img [src]="\'assets/img/clean.svg\' | baseUrlCdn" alt="">\n</button>',styles:[""]}]}],yt.ctorParameters=function(){return[{type:d.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[d.MAT_SNACK_BAR_DATA]}]}]};var gt=function(){function e(){this.width="71px"}return Object.defineProperty(e.prototype,"style",{get:function(){return{width:this.width,height:this.width}},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.getTwoLetters=function(){var e,t=null===(e=this.name)||void 0===e?void 0:e.split(" "),n="";return(null==t?void 0:t.length)>1?t.forEach((function(e,t){t<2&&(n+=e.charAt(0).toUpperCase())})):1===(null==t?void 0:t.length)?(n+=this.name.charAt(0),n+=this.name.charAt(this.name.length-1)):n+="RB",n},e}();gt.decorators=[{type:t.Component,args:[{selector:"roblex-letter-avatar",template:'<div class="wrapper-avatar" [ngStyle]="style">\n    <div class="wrapper-avatar__letter">\n        {{ getTwoLetters() }}\n    </div>\n</div>',styles:[""]}]}],gt.ctorParameters=function(){return[]},gt.propDecorators={name:[{type:t.Input}],width:[{type:t.Input}]};var bt,Ct,xt,It,Et,St,wt,Rt,kt,Tt,Ot,At,Nt,Dt,Pt,_t={parse:{dateInput:"LL"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Mt=function(){function e(){}return Object.defineProperty(e.prototype,"Form",{get:function(){return this.form},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Value",{get:function(){return this.form.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RawValue",{get:function(){return this.form.getRawValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Invalid",{get:function(){return this.form.invalid},enumerable:!1,configurable:!0}),e.prototype.patchValue=function(e,t){this.form.patchValue(e,t)},Object.defineProperty(e.prototype,"Valid",{get:function(){return this.form.valid},enumerable:!1,configurable:!0}),e.prototype.Disabled=function(){this.form.disable()},e.prototype.Enabled=function(){this.form.enable()},e.prototype.markAllAsTouched=function(){this.markFormGroupTouched(this.Form)},e.prototype.markFormGroupTouched=function(e){var t=this;Object.keys(e.controls).forEach((function(n){var o=e.get(n);o.controls?t.markFormGroupTouched(o):(o.markAsDirty(),o.markAllAsTouched())}))},e}(),jt=function(e){function t(t){var n=e.call(this)||this;return n.fb=t,n.initializeInputs(),n.createform(),n}return w(t,e),t.prototype.initializeInputs=function(){this.type=new u.FormControl(null,null),this.currencyName=new u.FormControl(null,null),this.exchangeCurrencyName=new u.FormControl(null,null),this.send=new u.FormControl(null,[u.Validators.required]),this.receive=new u.FormControl(null,[u.Validators.required]),this.currencyCreditCardName=new u.FormControl(null,null),this.exchangeCurrencyCreditCardName=new u.FormControl(null,null),this.commissionSymbol=new u.FormControl(null,null),this.cardBankCommission=new u.FormControl(0,null),this.operationBankCommission=new u.FormControl(0,null),this.amountDueCard=new u.FormControl(100,null),this.hasCrediCard=new u.FormControl(!1,null),this.serviceType=new u.FormControl(null,null),this.code=new u.FormControl(null,null)},t.prototype.createform=function(){this.form=this.fb.group({currencyName:this.currencyName,exchangeCurrencyName:this.exchangeCurrencyName,type:this.type,send:this.send,receive:this.receive,currencyCreditCardName:this.currencyCreditCardName,exchangeCurrencyCreditCardName:this.exchangeCurrencyCreditCardName,commissionSymbol:this.commissionSymbol,cardBankCommission:this.cardBankCommission,operationBankCommission:this.operationBankCommission,amountDueCard:this.amountDueCard,hasCrediCard:this.hasCrediCard,serviceType:this.serviceType,code:this.code})},t}(Mt);jt.decorators=[{type:t.Injectable}],jt.ctorParameters=function(){return[{type:u.FormBuilder}]},e.RoutePathMatch=void 0,(bt=e.RoutePathMatch||(e.RoutePathMatch={})).LOGIN="login",bt.REGISTER="registro",bt.PROFILE="perfil",bt.CREATE_PROFILE="crear-perfil",bt.REGISTER_PROFILE="registro/perfil",bt.REGISTER_PERSON="registro/persona",bt.REGISTER_COMPANY="registro/empresa",bt.REGISTER_COMPANY_PROFILE="registro/empresa-perfil",bt.REGISTER_COMPANY_PERSON="registro/empresa-persona",bt.REGISTER_DATA="registro/persona-datos",bt.OPERATIONS="operaciones",bt.RECOVER_PASSWORD="recuperar-contraseña",bt.RECOVER_PASSWORD_NEW_PASSWORD="recuperar-contraseña/nueva-contraseña",bt.CHANGE="cambio",bt.CARDS="tarjetas",bt.CHANGE_TRANSFER="cambio/transferencia",bt.CHANGE_VERIFY="cambio/verificacion",bt.HOME="home",bt.HOME_CHANGE_TRANSFER="/home/cambio/transferencia",bt.HOME_CHANGE_VERIFY="/home/cambio/verificacion",bt.HOME_CHANGE_FORM="/home/cambio/formulario",bt.HOME_OPERATIONS="/home/operaciones",bt.HOME_CHANGE="/home/cambio",bt.HOME_ACCOUNTS="/home/cuentas",bt.HOME_CARDS="/home/tarjetas",bt.HOME_PROFILE="/home/perfil",bt.ACCOUNTS="cuentas",e.Profile=void 0,(Ct=e.Profile||(e.Profile={})).user="user",Ct.company="company",e.UserState=void 0,(xt=e.UserState||(e.UserState={})).registered="7d3407b9-707e-46b3-9d98-95d3311cd45d",xt.confirmed="9a79d2a9-6f80-40c7-9309-bc99a8e9b9fc",xt.incompleteProfile="f0cacd82-24b4-4394-8446-1686e503c602",e.DocumentType=void 0,(It=e.DocumentType||(e.DocumentType={})).DNI="6312be83-69aa-4b35-a3a5-236479e3f510",It.PASSPORT="0d5e2fd6-1561-4fc1-8a6e-a9f34d39406d",It.FOREIGN_CARD="f5df527c-836e-4abf-8a3a-ec1fe4988738",It.PTP="f5df527c-830e-4abf-8a3a-ecafe4988734",It.RUC="RUC",e.TypeAccount=void 0,(Et=e.TypeAccount||(e.TypeAccount={})).AHORROS="AHORROS",Et.CORRIENTE="CORRIENTE",e.TypeNumberAccount=void 0,(St=e.TypeNumberAccount||(e.TypeNumberAccount={})).INTERBANK="interbank",St.BANK="bank",e.OperationType=void 0,(wt=e.OperationType||(e.OperationType={})).BUY="compra",wt.SALE="venta",e.OperationStatus=void 0,(Rt=e.OperationStatus||(e.OperationStatus={}))[Rt.all=0]="all",Rt[Rt.created=1]="created",Rt[Rt.pending=2]="pending",Rt[Rt.cancelled=3]="cancelled",Rt[Rt.verified=4]="verified",Rt[Rt.rejected=5]="rejected",Rt[Rt.finalized=6]="finalized",Rt[Rt.notified=7]="notified",Rt[Rt.returned=8]="returned",Rt[Rt.trasferred=9]="trasferred",Rt[Rt.waitingFounds=10]="waitingFounds",e.RoblexCodeStatus=void 0,(kt=e.RoblexCodeStatus||(e.RoblexCodeStatus={}))[kt.initial=0]="initial",kt[kt.valid=1]="valid",kt[kt.notValid=2]="notValid",e.VerificationType=void 0,(Tt=e.VerificationType||(e.VerificationType={}))[Tt.nationalIdentityDocumentCompleteProfile=1]="nationalIdentityDocumentCompleteProfile",Tt[Tt.nationalIdentityDocumentCode=2]="nationalIdentityDocumentCode",Tt[Tt.nationalIdentityDocumentPhoto=3]="nationalIdentityDocumentPhoto",Tt[Tt.nationalIdentityDocumentSelfie=4]="nationalIdentityDocumentSelfie",Tt[Tt.otherDocumentCompleteProfile=5]="otherDocumentCompleteProfile",Tt[Tt.otherDocumentPhoto=6]="otherDocumentPhoto",Tt[Tt.otherDocumentSelfie=7]="otherDocumentSelfie",Tt[Tt.companyCompleteProfile=8]="companyCompleteProfile",Tt[Tt.companyPowerOfAttorneyDocument=9]="companyPowerOfAttorneyDocument",Tt[Tt.companyDocumentPhoto=10]="companyDocumentPhoto",e.ServiceType=void 0,(Ot=e.ServiceType||(e.ServiceType={}))[Ot.DEPOSIT_BANK_ACCOUNT=1]="DEPOSIT_BANK_ACCOUNT",Ot[Ot.CREDIT_CARD_PAYMENT=2]="CREDIT_CARD_PAYMENT",e.CookieName=void 0,(e.CookieName||(e.CookieName={})).ROBLEX_CALCULATOR="roblex-calculator",e.VerificationStateType=void 0,(At=e.VerificationStateType||(e.VerificationStateType={}))[At.VERIFIED=2]="VERIFIED",e.ChannelType=void 0,(Nt=e.ChannelType||(e.ChannelType={})).digital="D",Nt.agency="A",e.ScopeType=void 0,(Dt=e.ScopeType||(e.ScopeType={}))[Dt.national=1]="national",Dt[Dt.capital=2]="capital",e.ReviewStatusType=void 0,(Pt=e.ReviewStatusType||(e.ReviewStatusType={})).unreviewed="1",Pt.reviewed="2",Pt.skipped="3";var Ft=function(){function n(n){this.calculatorPresenter=n,this.roblexCodeStatus=e.RoblexCodeStatus,this.change=!0,this.labelSend="Envío",this.labelReceive="Recibo",this.labelCode="Código Promocional",this.hasPromotionalCode=!1,this.validated=e.RoblexCodeStatus.initial,this.keyupSend=new t.EventEmitter,this.keyupReceive=new t.EventEmitter,this.changeCurrency=new t.EventEmitter,this.startOperations=new t.EventEmitter,this.validateCode=new t.EventEmitter,this.backSpaceCode=new t.EventEmitter}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(e){var t;(null===(t=e.loading)||void 0===t?void 0:t.currentValue)?this.calculatorPresenter.Disabled():this.calculatorPresenter.Enabled()},n.prototype.onChangeCurrency=function(){this.changeCurrency.emit({active:e.OperationActive.SEND,currencyName:this.calculatorPresenter.exchangeCurrencyName.value,exchangeCurrencyName:this.calculatorPresenter.currencyName.value,value:+this.calculatorPresenter.receive})},n.prototype.onKeyupSend=function(t){this.keyupSend.emit({active:e.OperationActive.SEND,value:t})},n.prototype.onKeyupReceive=function(t){this.keyupReceive.emit({active:e.OperationActive.RECEIVE,value:t})},n.prototype.onClickStartOperations=function(){this.startOperations.emit()},n.prototype.onSuffixPromotionCode=function(){this.validateCode.emit()},n.prototype.onBackspace=function(){this.backSpaceCode.emit()},n}();Ft.decorators=[{type:t.Component,args:[{selector:"roblex-calculator",template:'<div class="content-calculator"\n     [formGroup]="calculatorPresenter?.Form">\n    <div class="content-group-inputs">\n        <roblex-calculator-input [label]="labelSend"\n                                 [currencyName]="calculatorPresenter?.currencyName?.value"\n                                 formControlName="send"\n                                 (valueChange)="onKeyupSend($event)">\n\n            <button type="button"\n                    class="btn btn-change-amount"\n                    [ngClass]="{ \'btn-change-rotate\': rotate }"\n                    [disabled]="loading"\n                    (click)="onChangeCurrency()">\n                <i class="roblex roblex-tasa"></i>\n            </button>\n        </roblex-calculator-input>\n        <roblex-calculator-input [label]="labelReceive"\n                                 [currencyName]="calculatorPresenter?.exchangeCurrencyName?.value"\n                                 formControlName="receive"\n                                 (valueChange)="onKeyupReceive($event)">\n        </roblex-calculator-input>\n        <roblex-input-form-field *ngIf="hasPromotionalCode"\n                                 [label]="labelCode"\n                                 [className]="\'roblex-promotion-input form-calculator\' + (validated === roblexCodeStatus.valid ? \' roblex-promotion-input-validated\' : \'\')"\n                                 formControlName="code"\n                                 [templateRight]="templateRightPromotionCode"\n                                 [upperCase]="true"\n                                 [hasBackspace]="true"\n                                 (backspace)="onBackspace()"\n                                 (suffix)="onSuffixPromotionCode()"\n                                 textRight="Validar">\n        </roblex-input-form-field>\n        <ng-template #templateRightPromotionCode>\n            <ng-container [ngSwitch]="validated">\n                <ng-container *ngSwitchCase="roblexCodeStatus.initial">Validar</ng-container>\n                <ng-container *ngSwitchCase="roblexCodeStatus.valid">\n                    <i class="roblex roblex-filledcheck"></i>\n                </ng-container>\n                <ng-container *ngSwitchCase="roblexCodeStatus.notValid">\n                    <i class="roblex roblex-close"></i>\n                </ng-container>\n            </ng-container>\n        </ng-template>\n    </div>\n    <button type="button"\n            class="btn btn-primary w-100 cursor-pointer mt-3 btn-change-operation"\n            [disabled]="loading"\n            (click)="onClickStartOperations()">\n        Iniciar operación\n    </button>\n</div>',providers:[],host:{class:"d-block"},styles:[""]}]}],Ft.ctorParameters=function(){return[{type:jt}]},Ft.propDecorators={loading:[{type:t.Input}],rotate:[{type:t.Input}],valuation:[{type:t.Input}],labelSend:[{type:t.Input}],labelReceive:[{type:t.Input}],labelCode:[{type:t.Input}],hasPromotionalCode:[{type:t.Input}],validated:[{type:t.Input}],keyupSend:[{type:t.Output}],keyupReceive:[{type:t.Output}],changeCurrency:[{type:t.Output}],startOperations:[{type:t.Output}],validateCode:[{type:t.Output}],backSpaceCode:[{type:t.Output}]};var Lt=function(){function e(e){this.controlContainer=e,this.label="input form field label",this.disabled=!1,this.valueChange=new t.EventEmitter,this.interval=500,this._value="",this.onChangeCallback=function(e){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChangeCallback(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){var e,t,n;return(null===(e=this.controlContainer)||void 0===e?void 0:e.formDirective)?null===(n=null===(t=this.controlContainer)||void 0===t?void 0:t.formDirective)||void 0===n?void 0:n.form:null},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.control=this.form.get(this.formControlName)},e.prototype.onKeyupEvent=function(e){var t=this;clearTimeout(this.timeout);var n=+e.replace(new RegExp(",","g"),"");this.timeout=setTimeout((function(){n>0&&(t.writeValue(n),t.valueChange.emit(n)),clearTimeout(t.timeout)}),this.interval)},e.prototype.writeValue=function(e){this.value=e,this.onChangeCallback(this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}();Lt.decorators=[{type:t.Component,args:[{selector:"roblex-calculator-input",template:'<div class="form-calculator">\n    <mat-form-field appearance="outline">\n        <mat-label>{{ label }}</mat-label>\n        <input matInput\n            type="text"\n            [id]="formControlName"\n            [value]="value | number : \'1.2-2\'"\n            [disabled]="disabled"\n            roblexNumberOnlyDecimal\n            pattern="^(?=.*\\d)\\d*(\\.\\d{1,2})?$"\n            placeholder="0.00"\n            decimal="false"\n            (keyup)="onKeyupEvent($event.target.value)" />\n    </mat-form-field>\n    \n    <div class="content-currency-name d-flex justify-content-center align-items-center">\n        <label>{{ currencyName }}</label>\n    </div>\n\n    <ng-content></ng-content>    \n</div>',providers:[{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return Lt}))}],styles:[""]}]}],Lt.ctorParameters=function(){return[{type:u.ControlContainer}]},Lt.propDecorators={formControlName:[{type:t.Input}],label:[{type:t.Input}],disabled:[{type:t.Input}],currencyName:[{type:t.Input}],valueChange:[{type:t.Output}]};var Vt=function(){function t(t,n){this.roblexModalConfig=t,this.roblexModalRef=n,this.modalFooterAlign=e.RoblexModalFooterAlign}return t.prototype.ngOnInit=function(){this.notification=this.roblexModalConfig.data},t.prototype.renderIconByType=function(){return ze(this.notification.typeId)||""},t.prototype.onClickViev=function(){this.roblexModalRef.close(),window.open(this.notification.link,"_blank")},t}();Vt.decorators=[{type:t.Component,args:[{selector:"roblex-schedule-notifications",template:'<roblex-modal-header class="pb-0">\n    <div class="d-flex justify-content-center">\n        <img [src]="renderIconByType() | baseUrlCdn"\n             height="50">\n    </div>\n    <h4>\n        {{ notification?.title }}\n    </h4>\n    <p class="text-center">{{ notification?.description }}</p>\n</roblex-modal-header>\n<roblex-modal-body>\n    <div class="d-flex flex-column"\n         [ngClass]="{ \'pb-4\': !notification?.link }">\n\n        <img [src]="notification?.image"\n             alt=""\n             *ngIf="notification?.image"\n             height="auto"\n             width="100%">\n    </div>\n</roblex-modal-body>\n<roblex-modal-footer [contentAlign]="modalFooterAlign?.center"\n                     class="d-block py-3"\n                     *ngIf="notification?.link">\n    <button class="btn btn-roblex-primary"\n            (click)="onClickViev()">Ver</button>\n</roblex-modal-footer>',styles:[""]}]}],Vt.ctorParameters=function(){return[{type:q},{type:z}]};var Ut=function(){function e(){this.stars=[{id:1,icon:"roblex roblex-star-regular",class:"star-gray star-hover star"},{id:2,icon:"roblex roblex-star-regular",class:"star-gray star-hover star"},{id:3,icon:"roblex roblex-star-regular",class:"star-gray star-hover star"},{id:4,icon:"roblex roblex-star-regular",class:"star-gray star-hover star"},{id:5,icon:"roblex roblex-star-regular",class:"star-gray star-hover star"}],this.valueChanged=new t.EventEmitter}return e.prototype.selectStar=function(e){this.stars.filter((function(t){return t.id<=e?t.icon="roblex roblex-star-solid":t.icon="roblex roblex-star-regular",t})),this.value=e,this.valueChanged.emit(this.value)},e}();Ut.decorators=[{type:t.Component,args:[{selector:"roblex-rating",template:'<div class="d-flex justify-content-center">\n      <div class="star-rating-container star-rating-animation d-flex color-primary"\n           [ngClass]="{ \'star-rating-disabled\': disabled}">\n            <div *ngFor="let star of stars"\n                 [ngClass]="[star.class]"\n                 (click)="selectStar(star.id)">\n                  <i [ngClass]="star.icon"></i>\n            </div>\n      </div>\n</div>',styles:[""]}]}],Ut.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}],valueChanged:[{type:t.Output}]};var Bt=function(){function e(){this.value=0,this.hasInformation=!0,this.clickedInformation=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.onClickInformation=function(){this.clickedInformation.emit()},e}();Bt.decorators=[{type:t.Component,args:[{selector:"roblex-progress",template:'<div class="roblex-progress-wrapper d-flex flex-column">\n    <div class="d-flex justify-content-between pb-1">\n        <div class="roblex-progress-wrapper__title">\n            {{ level }}\n        </div>\n        <div class="roblex-progress-wrapper__quantity">\n            {{ start + "/" + end }}\n        </div>\n        <div class="roblex-progress-wrapper__informations">\n            <label>{{ description }}</label>\n            <a class="btn-information" (click)="onClickInformation()" *ngIf="hasInformation">\n                <i class="roblex roblex-info"></i>\n            </a>\n        </div>\n    </div>\n    <div>\n        <div class="roblex-progress-wrapper__barra">\n            <div class="roblex-progress-wrapper__progress"\n                 [ngStyle]="{ \'width\': value + \'%\' }"></div>\n        </div>\n    </div>\n</div>',styles:[""]}]}],Bt.ctorParameters=function(){return[]},Bt.propDecorators={value:[{type:t.Input}],level:[{type:t.Input}],start:[{type:t.Input}],end:[{type:t.Input}],description:[{type:t.Input}],hasInformation:[{type:t.Input}],clickedInformation:[{type:t.Output}]};var Ht=function(){function e(e){this.controlContainer=e,this.appearance="outline",this.label="input form field label",this.disabled=!1,this.valueChange=new t.EventEmitter,this.backSpace=new t.EventEmitter,this.suffix=new t.EventEmitter,this.interval=500,this._value="",this.onChangeCallback=function(e){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChangeCallback(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){var e,t,n;return(null===(e=this.controlContainer)||void 0===e?void 0:e.formDirective)?null===(n=null===(t=this.controlContainer)||void 0===t?void 0:t.formDirective)||void 0===n?void 0:n.form:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classFormFiel",{get:function(){var e,t,n={};return n["mat-form-field-invalid"]=(null===(e=this.control)||void 0===e?void 0:e.touched)&&(null===(t=this.control)||void 0===t?void 0:t.invalid),this.className&&(n[this.className]=!0),n},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.control=this.form.get(this.formControlName)},e.prototype.onKeyupEvent=function(e){var t=e.target.value,n=+this.reestructureValue(t);n?this.writeValue(0===n?null:n):this.writeValue(null),this.valueChange.emit(n)},e.prototype.reestructureValue=function(e){if(e){var t=e.replace(new RegExp("[,.]","g"),"");return t.length>1?t[0]+"."+t.substring(1):t}return""},e.prototype.writeValue=function(e){this.value=e,this.onChangeCallback(this.value)},e.prototype.onClickMatSuffix=function(){this.suffix.emit()},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}();Ht.decorators=[{type:t.Component,args:[{selector:"roblex-change-input",template:'<mat-form-field [appearance]="appearance"\n                [ngClass]="classFormFiel">\n    <mat-label>{{ label }}</mat-label>\n    <button type="button"\n            mat-icon-button\n            matPrefix\n            disabled\n            *ngIf="iconLeft">\n        <i [class]="iconLeft"></i>\n    </button>\n    <input matInput\n           type="text"\n           [id]="formControlName"\n           [value]="value"\n           [disabled]="disabled"\n           roblexNumberOnlyDecimal\n           pattern="^(?=.*\\d)\\d*(\\.\\d{1,4})?$"\n           placeholder="0.0000"\n           [decimal]="true"\n           (keyup)="onKeyupEvent($event)" />\n    <button type="button"\n            mat-icon-button\n            matSuffix\n            (click)="onClickMatSuffix()"\n            *ngIf="iconRight">\n        <i [class]="iconRight"></i>\n    </button>\n    <div matSuffix\n         [disabled]="iconRightDisabled"\n         (click)="onClickMatSuffix()"\n         *ngIf="templateRight">\n        <ng-container *ngTemplateOutlet="templateRight"></ng-container>\n    </div>\n    <ng-content></ng-content>\n</mat-form-field>',providers:[{provide:u.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return Ht}))}],styles:[""]}]}],Ht.ctorParameters=function(){return[{type:u.ControlContainer}]},Ht.propDecorators={formControlName:[{type:t.Input}],appearance:[{type:t.Input}],className:[{type:t.Input}],iconLeft:[{type:t.Input}],iconRight:[{type:t.Input}],iconRightDisabled:[{type:t.Input}],label:[{type:t.Input}],disabled:[{type:t.Input}],currencyName:[{type:t.Input}],templateRight:[{type:t.Input}],valueChange:[{type:t.Output}],backSpace:[{type:t.Output}],suffix:[{type:t.Output}]};var Kt=[Re,ke,Ne,De,Pe,E,_e,Me,je,Le,lt,ut,pt,vt,yt,st,gt,Ft,Lt,Vt,Ut,Bt,Ht],Gt=_t,Yt=function(){};Yt.decorators=[{type:t.NgModule,args:[{declarations:A(Kt),imports:[n.CommonModule,f.RouterModule,u.FormsModule,u.ReactiveFormsModule,Xe,ue,pe,rt,m.ClipboardModule,r.MatButtonModule,i.MatInputModule,a.MatSelectModule,c.MatNativeDateModule,s.MatDatepickerModule,o.MatFormFieldModule,l.MatAutocompleteModule,d.MatSnackBarModule],exports:A(Kt),providers:[at,[{provide:c.MAT_DATE_LOCALE,useValue:"en-GB"},{provide:c.MAT_DATE_FORMATS,useValue:Gt},{provide:c.DateAdapter,useClass:p.MomentDateAdapter,deps:[c.MAT_DATE_LOCALE,p.MAT_MOMENT_DATE_ADAPTER_OPTIONS]}]],schemas:[t.CUSTOM_ELEMENTS_SCHEMA]}]}];var $t=function(){function t(e,t,n){this.sweetalertService=e,this.storageService=t,this.stateConfig=n}return t.prototype.intercept=function(t,n){var o=this,r=t;return n.handle(r).pipe(v.catchError((function(t){switch(t.status){case 201:return h.of(new y.HttpResponse({headers:t.headers,status:200,statusText:t.statusText,url:null==t?void 0:t.url,body:t.error.text}));case 401:o.sweetalertService.unauthorized().then((function(){o.storageService.clear(),o.stateConfig.set({eventCustom:e.EventCustom.GLOBAL,eventName:e.EventName.REDIRECTION,data:{route:e.RoutePathMatch.LOGIN}})}))}return h.throwError(t)})),v.map((function(e){var t;if(e instanceof y.HttpResponse){var n=e.body;return e.clone({body:n&&(null===(t=Object.entries(n).filter((function(e){var t=O(e,2),n=t[0];t[1];return"data"==n})))||void 0===t?void 0:t.length)>0?n.data:n})}})))},t}();$t.decorators=[{type:t.Injectable}],$t.ctorParameters=function(){return[{type:Y},{type:_},{type:void 0,decorators:[{type:t.Inject,args:[ye]}]}]};var qt=function(){function t(e){this.storageService=e}return t.prototype.intercept=function(t,n){var o=this.storageService.get(e.StorageNames.USER),r=t;return(null==o?void 0:o.accessToken)&&(r=t.clone({setHeaders:{authorization:"Bearer "+(null==o?void 0:o.accessToken)}})),n.handle(r)},t}();qt.decorators=[{type:t.Injectable}],qt.ctorParameters=function(){return[{type:_}]};var zt=function(){function e(e){this.sweetalertService=e}return e.prototype.intercept=function(e,t){var n=this,o=e,r=!1;return o.headers.has("ignore-interceptor")&&(r=JSON.parse(o.headers.get("ignore-interceptor")),o=o.clone({headers:o.headers.delete("ignore-interceptor")})),t.handle(o).pipe(v.tap({error:function(e){if(!r){var t=e.error;n.sweetalertService.error("Error",t.message||t.error)}}}))},e}();zt.decorators=[{type:t.Injectable}],zt.ctorParameters=function(){return[{type:Y}]};var Wt={provide:y.HTTP_INTERCEPTORS,useClass:$t,multi:!0},Jt={provide:y.HTTP_INTERCEPTORS,useClass:qt,multi:!0},Xt={provide:y.HTTP_INTERCEPTORS,useClass:zt,multi:!0};var Zt=function(e){return null===e.value||""===e.value||e.value.toString().match(/^[0-9]+(\.?[0-9]+)?$/)?null:{numberInvalid:!0}};e.ANALYTICS=H,e.AgeValidator=function(e){var t=e.value;if(!t||"string"!=typeof t)return{invalidFormat:!0};var n=new Date(t);if(isNaN(n.getTime()))return{invalidDate:!0};var o=new Date;return n>new Date(o.getFullYear()-18,o.getMonth(),o.getDate())?{underage:!0}:null},e.AlertMessageComponent=je,e.BaseUrlCdnPipe=Ue,e.CAMERA_CONFIG=ft,e.CAMERA_VALUE_CONFIG=mt,e.CDN_CONFIG=j,e.CHANNEL_APP=V,e.CURRENT_TASK=L,e.CalculatorComponent=Ft,e.CalculatorInputComponent=Lt,e.CalculatorPresenter=jt,e.CameraComponent=vt,e.ChangeInputComponent=Ht,e.ClickOutsideDirective=ie,e.CofirmPasswordValidator=function(e,t){return function(n){var o=n.controls[e],r=n.controls[t];r.errors&&!r.errors.confirmPasswordValidator||(o.value!==r.value?r.setErrors({confirmPasswordValidator:!0}):r.setErrors(null))}},e.CollapsedSidepanelComponent=tt,e.CollapsedSidepanelInsertionDirective=et,e.CountryCodePhonePipe=Ke,e.CountryImagePipe=He,e.CountryPipe=Be,e.CountryService=Ie,e.DOCUMENT_TYPES=$e,e.DROPDOWN_OPTIONS=function(e,t,n){return[{title:"Perfil",icon:"roblex-usuario2",routePath:"/home/perfil",callbackAction:function(t){return e?e(t):null}},{title:"Alertas",icon:"roblex-notification",callbackAction:function(e){return t?t(e):null}},{title:"Cerrar sesión",icon:"roblex-logout",callbackAction:function(e){return n?n(e):null}}]},e.DigitalWalletValidator=function(t,n,o){return function(r){if(t&&n){if((null==t?void 0:t.digitalWallet)&&n.type===e.OperationType.BUY)return{digitalWalletNotBuy:{name:t.short,type:e.OperationType.BUY}};if((null==t?void 0:t.digitalWallet)&&+o>+(null==t?void 0:t.maxAmount))return{digitalWalletMaxAmount:{maxAmount:t.maxAmount}};if((null==t?void 0:t.minAmount)&&+(null==t?void 0:t.minAmount)>+o)return{minAmountValid:{minAmount:t.minAmount}}}return null}},e.DocumentDescriptionPipe=We,e.DocumentTypeValidator=function(t,n){return function(o){var r=o.controls[t],i=o.controls[n];switch(r.value){case e.DocumentType.DNI:i.setValidators([u.Validators.required,u.Validators.minLength(8),u.Validators.maxLength(8),Zt]);break;case e.DocumentType.PASSPORT:case e.DocumentType.FOREIGN_CARD:i.setValidators([u.Validators.required,u.Validators.maxLength(12)]);break;case e.DocumentType.PTP:i.setValidators([u.Validators.required]);break;case e.DocumentType.RUC:i.setValidators([u.Validators.required,u.Validators.minLength(11),u.Validators.maxLength(11)])}}},e.DropdownComponent=ut,e.ENV_CONFIG=K,e.ElementService=Ee,e.EnumToData=function(e){var t=[];for(var n in e)e[n]&&t.push({id:e[n],name:qe(null==n?void 0:n.toLowerCase())});return t},e.ErrorsInterceptor=zt,e.EventClickInputFile=function(e){var t,n;try{for(var o=T(e),r=o.next();!r.done;r=o.next()){var i=r.value;if(!i.control.value){i.inputFile.nativeElement.click();break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.FIREBASE_APP=B,e.FIREBASE_CONFIG_APP=U,e.FooterComponent=Le,e.GetIconType=G,e.HeaderCollapsedSidepanelComponent=st,e.HeaderComponent=lt,e.INPUT_FILE_CONFIG=Oe,e.INPUT_FILE_VALUE_CONFIG=Te,e.INTERCEPTOR_ERROR=Xt,e.INTERCEPTOR_RESPONSE_PARSE=Wt,e.INTERCEPTOR_TOKEN=Jt,e.InputDateRamgePickerComponent=De,e.InputDatepickerComponent=Pe,e.InputFileComponent=Ne,e.InputFormFieldComponent=Re,e.InputFormSelectComponent=ke,e.InsertionDirective=W,e.LetterAvatarComponent=gt,e.LocalCacheService=Se,e.MENU_OPTIONS=function(e,t){return[{title:"Cambio",routePath:"/home/cambio",isRouteActive:function(t){return!!e&&e(t)},callbackAction:function(e){return t(e)}},{title:"Cuentas",routePath:"/home/cuentas",isRouteActive:function(t){return!!e&&e(t)},callbackAction:function(e){return t(e)}},{title:"Tarjetas",routePath:"/home/tarjetas",isRouteActive:function(t){return!!e&&e(t)},callbackAction:function(e){return t(e)}},{title:"Operaciones",routePath:"/home/operaciones",isRouteActive:function(t){return!!e&&e(t)},callbackAction:function(e){return t(e)}}]},e.MICRO_APPS=F,e.MaskNumberAccountPipe=Ge,e.ModalBodyComponent=te,e.ModalComponent=J,e.ModalContentComponent=Q,e.ModalFooterComponent=ne,e.ModalHeaderComponent=X,e.ModalOverlayComponent=Z,e.NavegationComponent=Me,e.NavegationStateService=D,e.NotificationService=we,e.NumberOnlyDecimalDirective=re,e.NumberOnlyDirective=oe,e.ObjectEntriesEmpty=function(e){return Object.entries(e).filter((function(e){var t=O(e,2);t[0];return null!=t[1]})).reduce((function(e,t){var n,o=O(t,2),r=o[0],i=o[1];return Object.assign(Object.assign({},e),((n={})[r]=i,n))}),{})},e.PhoneValidator=function(e){return null===e.value||""===e.value||e.value.toString().match(/^(9)[0-9]{8}$/)?null:{phoneInvalid:!0}},e.Presenter=Mt,e.RatingComponent=Ut,e.ReactiveFormsService=N,e.ResponseParseInterceptor=$t,e.RightPageContentComponent=_e,e.RoblexCollapsedSidepanelConfig=Qe,e.RoblexCollapsedSidepanelInjector=it,e.RoblexCollapsedSidepanelModule=rt,e.RoblexCollapsedSidepanelRef=Ze,e.RoblexCollapsedSidepanelService=at,e.RoblexComponentsModule=Yt,e.RoblexDirectivesModule=ue,e.RoblexEnviromentDev={identitiesUrl:"https://identitiesdev.roblex.pe",operationsUrl:"https://operationsdev.roblex.pe",promotionsUrl:"https://promotionsdev.roblex.pe",verificationsUrl:"https://verificationsdev.roblex.pe",searchPromotionUrl:"https://roblexdev.pe/#/promociones",notificationUrl:"https://alertsdev.pe/#/promociones",reviewsUrl:"https://reviewsdev.roblex.pe"},e.RoblexEnviromentProd={identitiesUrl:"https://identities.roblex.pe",operationsUrl:"https://operations.roblex.pe",promotionsUrl:"https://promotions.roblex.pe",verificationsUrl:"https://verifications.roblex.pe",searchPromotionUrl:"https://roblex.pe/#/promociones",notificationUrl:"https://alerts.pe/#/promociones",reviewsUrl:"https://reviews.roblex.pe"},e.RoblexMaskDirective=ae,e.RoblexModalConfig=q,e.RoblexModalInjector=he,e.RoblexModalModule=pe,e.RoblexModalRef=z,e.RoblexModalService=ve,e.RoblexPipesModule=Xe,e.RouterMap=function(e){return A(e.split("/"))},e.RucValidator=function(){return function(e){if(e.value){for(var t=new Array,n=1;n<=11;++n)t[n]=+e.value.substr(n-1,1);t[1]=5*t[1],t[2]=4*t[2],t[3]=3*t[3],t[4]=2*t[4],t[5]=7*t[5],t[6]=6*t[6],t[7]=5*t[7],t[8]=4*t[8],t[9]=3*t[9],t[10]=2*t[10];for(var o=0,r=1;r<=10;++r)o+=t[r];var i=11-(o-11*parseInt((o/11).toString())),a=!0;if((10===i&&0===t[11]||11===i&&1===t[11]||i===t[11])&&(a=!1),a)return{rucInvalid:!0}}return null}},e.STATE_CONFIG=ye,e.STATE_CONFIG_VALUE=xe,e.STEP_COMPANY=[{step:1,name:"Empresa"},{step:2,name:"Perfil"},{step:3,name:"Persona"}],e.STEP_PERSON=[{step:1,name:"Tu perfil"},{step:2,name:"Tus datos"}],e.SafeTypePipe=Ve,e.ScheduleNotificationIcon=ze,e.ScheduleNotificationsComponent=Vt,e.SharedPrefService=$,e.SnackBarComponent=yt,e.StepComponent=E,e.StorageService=_,e.SweetalertService=Y,e.SwitchCasesDirective=le,e.TokenInterceptor=qt,e.TradingCalculatorComponent=pt,e.UpperCaseDirective=se,e.ValidatorEmail=function(e){if(null===e.value||""===e.value)return null;var t=e.value;return""!==t&&(t.length<=5||!/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(t))?{email:!0}:null},e.ValidatorOnlyNumber=Zt,e.actionState=ge,e.capitalize=qe,e.initialCountry=function(e){return function(){return e.get()}},e.ɵ0=Gt,e.ɵ1=be,e.ɵ2=Ce,e.ɵa=Ae,e.ɵb=nt,e.ɵc=ot,e.ɵd=ht,e.ɵe=z,e.ɵf=Ze,e.ɵg=Bt,e.ɵh=pe,e.ɵi=_t,e.ɵj=ue,e.ɵk=fe,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=roblex-commons.umd.min.js.map