ng-smn-ui 4.2.8 → 4.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function h(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function m(e,t){return function(n,i){t(n,i,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}var v=function(){function e(){}var n;return n=e,e.disableScroll=function(){window.addEventListener&&window.addEventListener("DOMMouseScroll",w,!1),window.onwheel=w,window.ontouchmove=w,document.onkeydown=x},e.enableScroll=function(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",w,!1),window.onwheel=null,window.ontouchmove=null,document.onkeydown=null},e.closest=function(e,t){var n,i=null;for(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].some((function(e){return"function"==typeof document.body[e]&&(i=e,!0)}));e;){if((n=e.parentElement)&&n[i](t))return n;e=n}return null},e.index=function(e){for(var t,n,i=e.parentNode.childNodes,o=n=0;(t=i.item(o++))&&t!==e;)1===t.nodeType&&n++;return n},e.trigger=function(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!1),e.dispatchEvent(n)},e.on=function(e,t,n){var i;i=e.constructor===NodeList?e:[e],t=t.split(" "),Array.prototype.forEach.call(i,(function(e){t.forEach((function(t){return e.addEventListener(t,n,!1)}))}))},e.off=function(e,t,n){for(var i=(t=t.split(" ")).length,o=0;o<i;o++)t[o]&&e.removeEventListener(t[o],n,!1)},e.is=function(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;return n?n.call(e,t):null},e.position=function(e,t){return e.getBoundingClientRect?function(e){var n=e.getBoundingClientRect(),i=document.body,o=document.documentElement,r=0,s=0;t||(r=window.pageYOffset||o.scrollTop||i.scrollTop,s=window.pageXOffset||o.scrollLeft||i.scrollLeft);var a=o.clientTop||i.clientTop||0,l=o.clientLeft||i.clientLeft||0,c=n.top+r-a,p=n.left+s-l;return{top:Math.round(c),left:Math.round(p)}}(e):function(e){var t=0,n=0;for(;e;)t+=parseInt(e.offsetTop,10),n+=parseInt(e.offsetLeft,10),e=e.offsetParent;return{top:t,left:n}}(e)},e.offset=function(e){var t=e.offsetTop,n=e.offsetLeft;return{top:Math.round(t),left:Math.round(n)}},e.animate=function(e,t,n,i,o,r,s){var a=["width","height","left","top","border-radius","border-spacing","margin-left","margin-top"],l=0,c=(i-n)/o/.06,p=setInterval((function(){l++;var o=n+c*l;s&&s(o);var d=a.indexOf(t)>-1;e.style[t]=o+(d?"px":""),(n>i?o.toFixed(2)<=i:o.toFixed(2)>=i)&&(clearInterval(p),r&&r())}),1/.06)},e.css=function(e,t,n){if(void 0!==n)t=t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})),e.style[t]=n;else{var i=void 0,o=(e.ownerDocument||document).defaultView;if(o&&o.getComputedStyle)return t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),o.getComputedStyle(e,null).getPropertyValue(t);if(e.currentStyle)return t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()})),i=e.currentStyle[t],/^\d+(em|pt|%|ex)?$/i.test(i)?(r=i,s=e.style.left,a=e.runtimeStyle.left,e.runtimeStyle.left=e.currentStyle.left,e.style.left=r||0,r=e.style.pixelLeft+"px",e.style.left=s,e.runtimeStyle.left=a,r):i}var r,s,a},e.isInViewport=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.left<=(window.innerWidth||document.documentElement.clientWidth)},e.focus=function(e){e.focus();var t=document.querySelector("ui-toolbar header").clientHeight+16;n.position(e,!0).top<t&&window.scrollTo(0,n.position(e).top-t)},e.isMobile=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},e.caretPosition={get:E,set:C},e.classList={remove:k,add:R,contains:I},e=n=h([t.Injectable()],e)}(),b={38:1,40:1};function w(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}function x(e){if(b[e.keyCode])return w(e),!1}function E(e){var t={selection:void 0};Object.assign(t,document);var n=0;if(t.selection){e.focus();var i=t.selection.createRange();i.moveStart("character",-e.value.length),n=i.text.length}else(e.selectionStart||"0"===e.selectionStart)&&(n=e.selectionStart);return n}function C(e,t,n,i){var o;if(i=i||[],e.selectionStart||"0"===e.selectionStart){o=n;for(var r=0;r<i.length;r++)if(t===i[r]&&n===i[r]+1){o=i[r]+2;break}setTimeout((function(){!function(){if(e.setSelectionRange)e.selectionStart?(e.focus(),e.setSelectionRange(o,o)):e.focus();else if(e.createTextRange){var t=e.createTextRange();t.collapse(!0),t.move("character",o),t.moveEnd("character",o),t.moveStart("character",o),t.select()}}()}))}}function k(e,t){return e.classList.remove(t)}function R(e,t){return e.classList.add(t)}function I(e,t){return e.classList.contains(t)}function M(e,t,n){var i;return function(){var o=this,r=arguments,s=function(){i=null,n||e.apply(o,r)},a=n&&!i;clearTimeout(i),i=setTimeout(s,t),a&&e.apply(o,r)}}v.on(window,"scroll resize",(function(e){var t=document.querySelectorAll(".ui-fab-container"),n=t.length;if(n)for(var i=window.scrollY||window.pageYOffset,o=0;o<n;o++){var r=t[o];i>1?r.classList.add("scrolled"):r.classList.remove("scrolled")}}));for(var S=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹÐ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],D={},O=0;O<S.length;O++)for(var T=S[O].letters,L=0;L<T.length;L++)D[T[L]]=S[O].base;function P(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return D[e]||e}))}var A=function(){function e(e){this.viewContainerRef=e}return e.ctorParameters=function(){return[{type:t.ViewContainerRef}]},e=h([t.Directive({selector:"[addCalendar]"}),f("design:paramtypes",[t.ViewContainerRef])],e)}(),V=function(){function e(){this.days=["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],this.shortDays=["dom","seg","ter","qua","qui","sex","sáb"],this.months=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],this.shortMonths=["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"]}return e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),z=function(){function e(){}return e.isBright=function(e,t){return j(e,t)},e.hexToRgb=function(e){return F(e)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}();function j(e,t){var n=F(e);return!!n&&1-(.299*n.r+.587*n.g+.114*n.b)/255<(t||.3)}function F(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}var N=function(){function e(e,t,n){this.datetimeService=e,this.elementRef=t,this.changeDetectorRef=n,this.chosen=new r.Subject,this.days=e.days,this.months=e.months}return e.prototype.ngAfterViewInit=function(){var e=this;this.events&&this.events.length&&(this.verifyEventDates(),this.changeDetectorRef.detectChanges()),this.elementRef.nativeElement.querySelectorAll(".days button").forEach((function(t){t.addEventListener("keydown",(function(t){var n,i,o=v.closest(t.target,".day"),r=v.index(o),s=0;setTimeout((function(){switch(t.keyCode){case 37:(n=e.getSibling(r-1)).length||(n=e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])"),s=n.length-1),n[s].focus();break;case 38:n=e.getSibling(r-7),i=e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])")[0],n.length&&r>v.index(n[0])?n[0].focus():i.focus();break;case 39:(n=e.getSibling(r+1)).length?n[0].focus():e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])")[0].focus();break;case 40:n=e.getSibling(r+7),i=(i=e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])"))[i.length-1],n.length&&r<v.index(n[0].parentNode)?n[0].focus():i.focus()}}))}))})),this.elementRef.nativeElement.addEventListener("keydown",(function(e){if([37,38,39,40].indexOf(e.keyCode)>-1)return e.preventDefault(),!1}))},e.prototype.getSibling=function(e){return e<0||!this.elementRef.nativeElement.querySelectorAll(".day")[e]?[]:this.elementRef.nativeElement.querySelectorAll(".day")[e].querySelectorAll("button:not([disabled])")},e.prototype.isDay=function(e){var t=this.chosenDate;if(t)return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()},e.prototype.chooseDate=function(e){if(e){this.chosenDate=e,this.confirmSelection||(this.ngModel=e);var t={value:e,confirmSelection:this.confirmSelection};this.chosen.next(t)}},e.prototype.isDisabled=function(e){var t=this.minDate?new Date(this.minDate).getTime():null,n=this.maxDate?new Date(this.maxDate).getTime():null,i=e.getTime();return"number"==typeof t&&!isNaN(t)&&i<t||"number"==typeof n&&!isNaN(n)&&i>n},e.prototype.verifyEventDates=function(){var e=this;this.calendar.days.map((function(t){e.events.map((function(e){new Date(e.date).getTime()+6e4*t.value.getTimezoneOffset()===t.value.getTime()&&(t.hasEvent=!0,t.eventColor=e.color,t.blocked=e.blocked)}))}))},e.prototype.isBright=function(e){return z.isBright(e)},e.ctorParameters=function(){return[{type:V},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},e=h([t.Component({selector:"ui-calendar-content",template:'<div class="label">\r\n <button class="month-label">\r\n <span>{{months[calendar.month] + \' de \' + calendar.year | uiCapitalize}}</span>\r\n </button>\r\n</div>\r\n<div class="week-header">\r\n <div class="week-day" *ngFor="let day of days">{{day.charAt(0).toUpperCase()}}</div>\r\n</div>\r\n<div class="days">\r\n <div class="day" *ngFor="let day of calendar.days">\r\n <button type="button"\r\n class="ui-button icon"\r\n [style.backgroundColor]="day.eventColor"\r\n (click)="!isDisabled(day.value) && chooseDate(day.value)"\r\n [disabled]="isDisabled(day.value) || day.blocked"\r\n [ngClass]="{\'primary\': isDay(day.value) || day.today && !day.hasEvent, \'flat\': !isDay(day.value),\r\n \'dark-text\': isBright(day.color), \'light-text\': !isBright(day.color) && !isDisabled(day.value)}"\r\n *ngIf="day.month === calendar.month">\r\n {{day.date}}\r\n </button>\r\n </div>\r\n</div>\r\n',styles:[":host{width:296px;display:block;padding:8px 0}:host .label{height:36px}:host .month-label{background-color:transparent;width:100%;height:36px;display:flex;align-items:center;justify-content:center;border-radius:2px;font-size:14px}:host .week-header{display:flex;font-weight:700;padding:0 8px}:host .days{display:flex;flex-wrap:wrap;padding:0 8px}:host .day,:host .week-day{display:flex;align-items:center;justify-content:center;width:14.28%;height:40px;font-size:12px}:host .dark-text{color:rgba(0,0,0,.84)}:host .light-text{color:#fff}"]}),f("design:paramtypes",[V,t.ElementRef,t.ChangeDetectorRef])],e)}(),B=function(){function e(e,n){this.componentFactoryResolver=e,this.datetimeService=n,this.select=new t.EventEmitter,this.selectDateChange=new t.EventEmitter,this.cancel=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.updateMonth=new t.EventEmitter,this.chosen=new r.Subject,this.days=n.days,this.shortDays=n.shortDays,this.months=n.months}return e.prototype.ngOnInit=function(){this.minDate=this.minDate&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.maxDate=this.maxDate&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate,this.chosenDate=this.ngModel&&s.isDate(new Date(this.ngModel))?new Date(this.ngModel):null,this.ngModel=this.ngModel&&s.isDate(new Date(this.ngModel))?new Date(this.ngModel):this.ngModel,this.viewDate=s.isDate(this.ngModel)?this.ngModel:this.initOnSelected||new Date,this.renderCalendar(this.viewDate)},e.prototype.ngOnChanges=function(e){if(e.ngModel&&!e.ngModel.firstChange&&!isNaN(e.ngModel.currentValue)){var t=e.ngModel.currentValue=e.ngModel.currentValue&&s.isDate(new Date(e.ngModel.currentValue))?new Date(e.ngModel.currentValue):e.ngModel.currentValue;this.ngModel=this.chosenDate=this.componentRef.instance.chosenDate=this.componentRef.instance.ngModel=t}if(e.maxDate&&!e.maxDate.firstChange){var n=e.maxDate.currentValue=e.maxDate.currentValue&&s.isDate(new Date(e.maxDate.currentValue))?new Date(e.maxDate.currentValue):e.maxDate.currentValue;this.componentRef.instance.maxDate=this.maxDate=n}if(e.minDate&&!e.minDate.firstChange){var i=e.minDate.currentValue=e.minDate.currentValue&&s.isDate(new Date(e.minDate.currentValue))?new Date(e.minDate.currentValue):e.minDate.currentValue;this.componentRef.instance.minDate=this.minDate=i}e.confirmSelection&&(this.confirmSelection=e.confirmSelection.currentValue)},e.prototype.prevMonth=function(){this.viewDate.setMonth(this.viewDate.getMonth()-1),this.updateMonth.emit(),this.renderCalendar(this.viewDate)},e.prototype.nextMonth=function(){this.viewDate.setMonth(this.viewDate.getMonth()+1),this.updateMonth.emit(),this.renderCalendar(this.viewDate)},e.prototype.selectDate=function(e){this.ngModel=this.componentRef.instance.ngModel=e,this.ngModelChange.emit(this.ngModel),this.select.emit(this.ngModel),this.selectDateChange.emit(this.ngModel),this.chosen.next(this.ngModel)},e.prototype.cancelDate=function(){this.ngModel=this.chosenDate=this.componentRef.instance.ngModel=this.componentRef.instance.chosenDate=null,this.cancel.emit(),this.ngModelChange.emit(this.ngModel)},e.prototype.renderCalendar=function(e){var t=this,n=e;n.setHours(0,0,0,0),n.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),this.viewDate=n;var i={year:n.getFullYear(),month:n.getMonth(),monthDays:n.getDate(),lastDayWeek:n.getDay(),lastDayWeekName:this.days[n.getDay()]};n.setDate(1),i.firstDayWeek=n.getDay(),i.firstDayWeekName=this.days[n.getDay()],i.totalDays=i.monthDays+i.firstDayWeek+(6-i.lastDayWeek),i.days=[];for(var o=1-i.firstDayWeek,r=i.monthDays+(7-i.lastDayWeek),s=o;s<r;s++){n=new Date(i.year,i.month,s);var a=new Date;a=n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()&&n.getDate()===a.getDate(),i.days.push({month:n.getMonth(),date:n.getDate(),value:n,time:n.getTime(),today:a})}this.calendar=i;var l=this.componentFactoryResolver.resolveComponentFactory(N),c=this.addCalendar.viewContainerRef;c.clear(),this.componentRef=c.createComponent(l),["calendar","ngModel","minDate","maxDate","chosenDate","confirmSelection","events"].map((function(e){return t.componentRef.instance[e]=t[e]})),this.componentRef.instance.chosen.subscribe((function(e){e&&(t.chosenDate=e.value,e.confirmSelection||t.selectDate(e.value))}))},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:V}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"maxDate",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"minDate",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"hideHeader",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"initOnSelected",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"selectDateChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"cancel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"updateMonth",void 0),h([t.ViewChild(A,{static:!0}),f("design:type",A)],e.prototype,"addCalendar",void 0),e=h([t.Component({selector:"ui-calendar",template:'<header *ngIf="!hideHeader">\r\n <div>\r\n <div class="year" >{{chosenDate && chosenDate.getFullYear()}}</div>\r\n <span class="date-empty" *ngIf="!chosenDate">Selecione uma data</span>\r\n <div class="date" *ngIf="chosenDate">\r\n <span class="week-day">{{shortDays[chosenDate.getDay()] | uiCapitalize}},</span> {{chosenDate.getDate()}} de {{months[chosenDate.getMonth()] | uiCapitalize}}\r\n </div>\r\n </div>\r\n</header>\r\n<div>\r\n <div class="content">\r\n <div class="controls">\r\n <button class="prev ui-button icon flat"\r\n (click)="prevMonth()"\r\n [hidden]="!(!minDate || (calendar && calendar.days[0].time > minDate.getTime()))"\r\n tabindex="0"><i class="material-icons">keyboard_arrow_left</i></button>\r\n <button class="next ui-button icon flat"\r\n (click)="nextMonth()"\r\n [hidden]="!(!maxDate || (calendar && calendar.days[calendar.days.length - 1].time < maxDate.getTime()))"\r\n tabindex="2"><i class="material-icons">keyboard_arrow_right</i></button>\r\n </div>\r\n <div class="calendar-cover">\r\n <div addCalendar></div>\r\n </div>\r\n </div>\r\n <div class="actions ui-button-container align-right" *ngIf="confirmSelection">\r\n <button class="ui-button flat primary" (click)="cancelDate()">Cancelar</button>\r\n <button class="ui-button flat primary" (click)="selectDate(chosenDate)">Ok</button>\r\n </div>\r\n</div>\r\n',encapsulation:t.ViewEncapsulation.None,styles:["@-webkit-keyframes open{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes open{0%{transform:scale(0)}100%{transform:scale(1)}}ui-calendar{display:inline-flex;flex-direction:column;overflow:hidden;border-radius:2px;position:relative;z-index:0}ui-calendar header{padding:16px;min-height:72px;display:flex;justify-content:center;flex-direction:column}ui-calendar header .year{font-size:14px;opacity:.8;font-weight:400}ui-calendar header .date-empty{font-size:18px;font-weight:500}ui-calendar header .date{margin-top:8px;font-size:26px;font-weight:500}ui-calendar .actions{padding:8px;text-align:right;cursor:default}ui-calendar .content{position:relative}ui-calendar .content .calendar-cover{position:relative;overflow:hidden;transition:.3s ease-in-out}ui-calendar .content .controls{position:absolute;top:0;left:0;right:0;z-index:1}ui-calendar .content .controls button{position:absolute;top:0;margin:8px}ui-calendar .content .controls .prev{left:0}ui-calendar .content .controls .next{right:0}@media (min-width:600px),(min-width:496px) and (orientation:landscape){ui-calendar:not(.portrait-only){flex-direction:row}ui-calendar:not(.portrait-only) header{justify-content:flex-start;width:192px}ui-calendar:not(.portrait-only) header .week-day{display:block}}"]}),f("design:paramtypes",[t.ComponentFactoryResolver,V])],e)}(),H=function(){function e(){}return e.prototype.transform=function(e,t){return e&&e.length>0?e[0].toUpperCase()+e.substr(1).toLowerCase():e},e=h([t.Pipe({name:"uiCapitalize"})],e)}(),q=function(){function e(){}return e.get=function(e){for(var t,n=document.cookie.split(";"),i=n.length,o=e+"=",r=0;r<i;r+=1)if(0===(t=n[r].replace(/^\s+/g,"")).indexOf(o))return t.substring(o.length,t.length);return""},e.has=function(e){return!!this.get(e)},e.delete=function(e,t){this.set(e,"",-1,null,t)},e.set=function(e,t,n,i,o){void 0===n&&(n=365),void 0===i&&(i="/");var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var s="expires="+r.toUTCString();o&&(o="; domain="+o),document.cookie=e+"="+t+"; "+s+"; path="+i+o},e=h([t.Injectable()],e)}(),W=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=document.createElement("i");e.classList.add("material-icons"),e.innerHTML="arrow_downward",this.element.nativeElement.classList.contains("align-right")?this.element.nativeElement.insertBefore(e.cloneNode(!0),this.element.nativeElement.firstChild):this.element.nativeElement.appendChild(e.cloneNode(!0))},e.prototype.ngOnChanges=function(e){e.uiDataTableOrderBy&&!e.uiDataTableOrderBy.firstChange&&(this.uiDataTableOrderBy=e.uiDataTableOrderBy.currentValue,this.orderByCondition())},e.prototype.orderByClick=function(){this.element.nativeElement.classList.contains("order_desc")||this.element.nativeElement.classList.contains("order_asc")?this.element.nativeElement.classList.contains("order_asc")?(this.element.nativeElement.classList.add("order_desc"),this.element.nativeElement.classList.remove("order_asc")):this.element.nativeElement.classList.contains("order_desc")&&(this.element.nativeElement.classList.remove("order_desc"),this.element.nativeElement.classList.remove("order_asc")):this.element.nativeElement.classList.add("order_asc")},e.prototype.orderByCondition=function(){switch(this.uiDataTableOrderBy){case"ASC":this.element.nativeElement.classList.add("order_asc"),this.element.nativeElement.classList.remove("order_desc");break;case"DESC":this.element.nativeElement.classList.add("order_desc"),this.element.nativeElement.classList.remove("order_asc");break;default:this.element.nativeElement.classList.remove("order_asc","order_desc")}},e.prototype.onClick=function(){this.withCondition||this.orderByClick()},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("withCondition"),f("design:type",Boolean)],e.prototype,"withCondition",void 0),h([t.Input("uiDataTableOrderBy"),f("design:type",String)],e.prototype,"uiDataTableOrderBy",void 0),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),e=h([t.Directive({selector:"th[uiDataTableOrderBy]"}),f("design:paramtypes",[t.ElementRef])],e)}(),_=function(){function e(){this.datePickers={}}return e.prototype.add=function(e,t){this.datePickers&&this.datePickers[e]||(this.datePickers[e]=t)},e.prototype.get=function(e){return this.datePickers[e]},e.prototype.remove=function(e){delete this.datePickers[e]},e.prototype.closeAll=function(){v.trigger(window,"click")},e.prototype.getAll=function(){return this.datePickers},e.prototype.updateModel=function(e,t){this.datePickers[e].ngModel=t,this.datePickers[e].ngModelChange.emit(t)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),Y=function(){function e(e,t,n,i,o){this.componentFactoryResolver=e,this.applicationRef=t,this.injector=n,this.referencesService=i,this.elementRef=o}return e.prototype.ngAfterViewInit=function(){var e=this;this.datePicker=this.referencesService.get(this.datePickerCaller),v.on(this.elementRef.nativeElement,this.pickerEvent||"click",(function(t){e.inputElement=document.querySelector('[date-picker-name="'+e.datePickerCaller+'"]'),e.referencesService.closeAll(),e.pickerOpen||(e.renderDatePicker(e.datePicker),t.stopPropagation())})),v.on(window,"click resize scroll",(function(t){e.pickerOpen&&((v.is(t.target,".wrap-date-picker")||v.closest(t.target,".wrap-date-picker")||document.body.clientWidth<=600&&"scroll"===t.type)&&!v.is(t.target,".overlay")||e.closePicker())}))},e.prototype.getComponentAsElement=function(e){return e.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){var n=this;["ngModel","maxDate","minDate","initOnSelected","confirmSelection","select","selectDateChange","events"].map((function(n){return t.instance[n]=e[n]})),t.instance.cancel.subscribe((function(){return n.closePicker()})),t.instance.updateMonth.subscribe((function(){return n.setCoordinate(n.componentElement)})),e.chosen.subscribe((function(e){return t.instance.ngOnChanges(e)})),t.instance.chosen.subscribe((function(e){n.referencesService.updateModel(n.datePickerCaller,e),n.pickerOpen&&(n.inputElement.focus(),n.closePicker())}))},e.prototype.renderViewCalendar=function(e,t){this.wrapDatePicker=document.createElement("div"),this.wrapDatePicker.classList.add("wrap-date-picker");var n=document.createElement("div");n.classList.add("overlay"),t&&this.wrapDatePicker.classList.add(t),this.wrapDatePicker.style.transform="scale(0)",e.classList.add("portrait-only"),this.wrapDatePicker.appendChild(n),this.wrapDatePicker.appendChild(e),document.body.appendChild(this.wrapDatePicker),this.setCoordinate(e)},e.prototype.renderDatePicker=function(e){var t=this.componentFactoryResolver.resolveComponentFactory(B);this.componentRef=t.create(this.injector),this.componentElement=this.getComponentAsElement(this.componentRef),this.setInstances(e,this.componentRef),this.applicationRef.attachView(this.componentRef.hostView),this.renderViewCalendar(this.componentElement,e.themeClass),this.pickerOpen=!0},e.prototype.closePicker=function(){var e=this;this.wrapDatePicker.classList.remove("open"),setTimeout((function(){e.pickerOpen=!1,e.applicationRef.detachView(e.componentRef.hostView),document.body.style.overflowY="";try{document.body.removeChild(e.wrapDatePicker)}catch(e){}}),280)},e.prototype.setCoordinate=function(e){var t=this,n=v.position(this.inputElement),i={x:n.left,y:this.inputElement.offsetHeight+n.top};setTimeout((function(){var n=i.x+e.clientWidth,o=i.y+e.clientHeight,r=window.innerWidth+(document.body.scrollLeft||window.scrollX||window.pageXOffset),s=window.innerHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);n>r&&(i.x=r-(e.clientWidth+8)),o>s&&(i.y=s-(e.clientHeight+8)),t.wrapDatePicker.style.transform="",e.style.position="absolute",e.style.top=i.y+"px",e.style.left=i.x+"px",t.wrapDatePicker.classList.add("open"),document.body.clientWidth<=600&&(document.body.style.overflowY="hidden")}))},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:_},{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"pickerEvent",void 0),h([t.Input("uiDatePickerCaller"),f("design:type",String)],e.prototype,"datePickerCaller",void 0),e=h([t.Directive({selector:"[uiDatePickerCaller]"}),f("design:paramtypes",[t.ComponentFactoryResolver,t.ApplicationRef,t.Injector,_,t.ElementRef])],e)}(),U=function(){function e(e,n,i){this.referencesService=e,this.element=n,this.changeDetectorRef=i,this.select=new t.EventEmitter,this.selectDateChange=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.chosen=new r.Subject,this.minDate=this.minDate&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.maxDate=this.maxDate&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate}return e.prototype.ngOnInit=function(){this.referencesService.add(this.datePicker,this)},e.prototype.ngAfterViewInit=function(){this.element.nativeElement.setAttribute("date-picker-name",this.datePicker)},e.prototype.ngOnChanges=function(e){this.chosen.next(e),e.ngModel&&""===e.ngModel.currentValue&&(this.ngModelChange.emit(null),this.changeDetectorRef.detectChanges())},e.prototype.ngOnDestroy=function(){this.referencesService.remove(this.datePicker)},e.ctorParameters=function(){return[{type:_},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"maxDate",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"minDate",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"events",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"initOnSelected",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("uiDatePicker"),f("design:type",String)],e.prototype,"datePicker",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"selectDateChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Directive({selector:"[uiDatePicker]"}),f("design:paramtypes",[_,t.ElementRef,t.ChangeDetectorRef])],e)}(),X=function(){function e(t){if(this.nativeElement=t,t)if(t.length)if(this.length=t.length,t===window)this[0]=new e(t);else for(var n=0;n<t.length;n++)this[n]=new e(t[n]);else this.length=1,this[0]=t;this.classList={remove:function(e){return v.classList.remove(t,e)},add:function(e){return v.classList.add(t,e)},contains:function(e){return v.classList.contains(t,e)}}}return e.prototype.closest=function(t){return new e(v.closest(this.nativeElement,t))},e.prototype.index=function(){return v.index(this.nativeElement)},e.prototype.trigger=function(e){return v.trigger(this.nativeElement,e)},e.prototype.on=function(e,t){return v.on(this.nativeElement,e,t)},e.prototype.off=function(e,t){return v.off(this.nativeElement,e,t)},e.prototype.is=function(e){return v.is(this.nativeElement,e)},e.prototype.position=function(e){return v.position(this.nativeElement,e)},e.prototype.offset=function(){return v.offset(this.nativeElement)},e.prototype.animate=function(e,t,n,i,o,r){return v.animate(this.nativeElement,e,t,n,i,o,r)},e.prototype.querySelector=function(t){var n=this.nativeElement.querySelectorAll(t);return n.length?new e(n=1===n.length?n[0]:n):new e(null)},e.prototype.forEach=function(e){return Array.prototype.forEach.call(this,e)},e.prototype.filter=function(e){return Array.prototype.filter.call(this,e)},e.prototype.indexOf=function(e){return Array.prototype.indexOf.call(this,e)},e.prototype.css=function(e,t){return v.css(this.nativeElement,e,t)},e.prototype.isInViewport=function(){return v.isInViewport(this.nativeElement)},e.prototype.attribute=function(e,t){return void 0!==t?this.nativeElement.setAttribute(e,t):this.nativeElement.getAttribute(e)},e.prototype.height=function(e){return void 0!==e&&v.css(this.nativeElement,"height",e),this.nativeElement.clientHeight},e.prototype.parent=function(){return new e(this.nativeElement.parentNode)},e.prototype.focus=function(){this.nativeElement&&this.nativeElement.focus&&this.nativeElement.focus()},e}(),G=function(){function e(e){this.elementRef=e,this.closeChange=new t.EventEmitter}return e.prototype.close=function(){var e=this;if(this.opened=!1,this.closeChange.emit(),this.viewRef){var t=new X(document).querySelector(".ui-fab-container");t.length&&t.classList.remove("hide"),this.viewRef.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),this.viewRef&&setTimeout((function(){e.viewRef.rootNodes.forEach((function(e){e.remove?e.remove():e.parentNode.removeChild(e)})),e.viewRef.destroy(),e.viewRef=null}),280),document.body.style.overflowY=""}},e.prototype.show=function(e){var t=this;if(!this.viewRef){this.close(),void 0===(e=e||{}).clickOverlayToClose?e.clickOverlayToClose=!0:e.clickOverlayToClose&&(e.clickOverlayToClose=JSON.parse(e.clickOverlayToClose)),this.viewRef=this.templateRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))}},e.prototype.open=function(e,t){var n=this;this.opened=!0,setTimeout((function(){var i=new X(document).querySelector(".ui-fab-container");t.darkClass&&e.classList.add(t.darkClass),t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),(t.cardSize||n.cardSize)&&(e.querySelector("ui-card").style.maxWidth=(t.cardSize||n.cardSize)+"px",e.querySelector("ui-card").style.width="100%"),!t.transparentOverlay&&i.length&&i.classList.add("hide"),t.clickOverlayToClose&&e.querySelector(".overlay").addEventListener("click",(function(){n.close()})),e.style.transform="",e.classList.add("open"),document.body.style.overflowY="hidden"}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("card-size"),f("design:type",Number)],e.prototype,"cardSize",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"closeChange",void 0),h([t.ViewChild(t.TemplateRef,{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=h([t.Component({selector:"ui-dialog",template:'<ng-template>\r\n <div class="wrap-dialog">\r\n <div class="overlay"></div>\r\n <ui-card>\r\n <ng-content>\r\n </ng-content>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n',encapsulation:t.ViewEncapsulation.None,styles:[".wrap-dialog{position:fixed;z-index:5;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:16px}.wrap-dialog ui-card{transform-origin:bottom;transition:transform 225ms cubic-bezier(.4,0,1,1),opacity 195ms cubic-bezier(.4,0,1,1);transform:scale(.8) translateY(16px);box-shadow:0 24px 38px 3px rgba(0,0,0,.14),0 9px 49px 8px rgba(0,0,0,.12),0 11px 15px 0 rgba(0,0,0,.2);opacity:0;max-width:100%;max-height:100%;overflow-y:auto}.wrap-dialog .overlay{transition:opacity 280ms;left:0;top:0;position:absolute;width:100%;height:100%;opacity:0}.wrap-dialog.open ui-card{transition:transform 225ms cubic-bezier(0,0,.2,1),opacity 195ms cubic-bezier(0,0,.2,1);transform:scale(1) translateY(0);opacity:1}.wrap-dialog.open .overlay{transition:opacity 280ms cubic-bezier(0,0,.2,1);opacity:1}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),$=function(){function e(e,t){this.viewContainerRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.dialog.closeChange.subscribe((function(){e.close()})),v.on(this.elementRef.nativeElement,this.triggerEvents||"click",(function(){e.render()})),this.clickOverlayToClose=void 0===this.clickOverlayToClose||this.clickOverlayToClose},e.prototype.render=function(){var e=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.dialog.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(t){document.body.appendChild(t),t.clientWidth&&e.open(t)}))},e.prototype.open=function(e){var t=this;this.opened=!0,setTimeout((function(){var n=document.querySelectorAll(".ui-fab-container");t.darkClass&&e.classList.add(t.darkClass),t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.dialog.cardSize&&(e.querySelectorAll("ui-card")[0].style.maxWidth=t.dialog.cardSize+"px",e.querySelectorAll("ui-card")[0].style.width="100%"),!t.transparentOverlay&&n.length&&Array.prototype.forEach.call(n,(function(e){e.classList.add("hide")})),t.clickOverlayToClose&&e.querySelectorAll(".overlay")[0].addEventListener("click",(function(){t.close()})),e.style.transform="",e.classList.add("open"),document.body.style.overflowY="hidden"}))},e.prototype.close=function(){var e=this;if(this.opened=!1,this.viewContainerRef.length){var t=this.viewRef,n=document.querySelectorAll(".ui-fab-container");n.length&&Array.prototype.forEach.call(n,(function(e){e.classList.remove("hide")})),t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280),document.body.style.overflowY=""}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.Input("trigger-events"),f("design:type",String)],e.prototype,"triggerEvents",void 0),h([t.Input("dark-class"),f("design:type",String)],e.prototype,"darkClass",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("transparent-overlay"),f("design:type",Boolean)],e.prototype,"transparentOverlay",void 0),h([t.Input("uiDialogTrigger"),f("design:type",Object)],e.prototype,"dialog",void 0),h([t.Input("click-overlay-to-close"),f("design:type",Object)],e.prototype,"clickOverlayToClose",void 0),e=h([t.Directive({selector:"[uiDialogTrigger]"}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),K=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement,t=e.getElementsByClassName("ui-input-wrap")[0],n=e.getElementsByClassName("icon")[0],i=document.createElement("div");if(i.className="line",t.appendChild(i),n){var o=n===t.firstElementChild?"insertBefore":"appendChild";t.removeChild(n),e[o](n,e.firstChild)}},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"loading",void 0),e=h([t.Component({selector:"ui-input-container",template:'\n <div class="ui-input-wrap">\n <ng-content></ng-content>\n \n <div *ngIf="loading" class="ui-progress input">\n <div class="indeterminate"></div>\n </div>\n </div>\n ',encapsulation:t.ViewEncapsulation.None}),f("design:paramtypes",[t.ElementRef])],e)}(),Z=function(){function e(e,n){this.element=e,this.renderer=n,this.ngModelChange=new t.EventEmitter,this.placeholder=e.nativeElement.placeholder}return e.prototype.ngAfterViewInit=function(){this.renderer.addClass(this.element.nativeElement,"ui-control"),this.setPlaceholder()},e.prototype.ngOnChanges=function(){this.isEmpty(this.ngModel)},e.prototype.onBlur=function(){this.isEmpty(this.ngModel)},e.prototype.onFocus=function(){this.isEmpty(this.ngModel),this.setPlaceholder(this.placeholder)},e.prototype.onFocusout=function(){this.setPlaceholder()},e.prototype.isEmpty=function(e){var t=this;function n(){var n=a.isNullOrUndefined(e)&&!t.element.nativeElement.value?"addClass":"removeClass";a.isNullOrUndefined(t.ngModel)||!t.ngModel.trim||t.ngModel.trim()||(n="addClass"),t.renderer[n](t.element.nativeElement,"ui-empty")}n(),setTimeout(n)},e.prototype.setPlaceholder=function(e){e=this.persistPlaceholder?this.placeholder:e||"",this.renderer.setProperty(this.element.nativeElement,"placeholder",e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"persistPlaceholder",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("blur"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onBlur",null),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),h([t.HostListener("focusout"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocusout",null),e=h([t.Directive({selector:"[uiInput]"}),f("design:paramtypes",[t.ElementRef,t.Renderer2])],e)}(),J=function(){function e(){}var i;return i=e,e.prototype.validate=function(e){var t=e.value?e.value.toString():e.value;return t&&t.length>this.maxLength?{uiMaxlength:!0}:null},h([t.Input("uiMaxlength"),f("design:type",Object)],e.prototype,"maxLength",void 0),e=i=h([t.Directive({selector:"[uiMaxlength][ngModel]",providers:[{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[])],e)}(),Q=function(){function e(e,n){this.viewContainerRef=e,this.elementRef=n,this.closeChange=new t.EventEmitter}return e.prototype.ngOnDestroy=function(){this.close()},e.prototype.show=function(e,t){t&&(this.element=t.element||null,this.themeClass=t.class||null,this.menuAlign=t.align||null,this.persistentMenu=t.persistent||null),this.createListener();var n={x:e.clientX,y:e.clientY+window.pageYOffset};if(this.element){var i=v.position(this.element);n={x:i.left,y:i.top}}this.render(n)},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;setTimeout((function(){var i=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+document.body.scrollLeft,s=document.body.clientHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);"right"===n.menuAlign&&(t.x-=e.clientWidth-(n.element?n.element.clientWidth:0),i=t.x),i>r&&(e.classList.add("right"),t.x=r-(e.clientWidth+8)),t.x<=8&&(t.x=8),o>s&&(t.y=s-(e.clientHeight+8)),t.y<=0&&(t.y=0),n.themeClass&&e.classList.add(n.themeClass),n.menuAlign&&e.classList.add(n.menuAlign),e.style.transform="",e.querySelector("ui-card").style.maxHeight=window.innerHeight+"px",e.style.top=t.y+"px",e.style.left=t.x+"px",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.closeChange.emit(),this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.prototype.createListener=function(){var e=this;this.listenerExists||(this.listenerExists=!0,v.on(window,"mouseup resize scroll touchend",(function(t){e.elementRef.nativeElement!==t.target&&(e.persistentMenu||e.close())})))},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.ViewChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"closeChange",void 0),e=h([t.Component({selector:"ui-menu",template:'<ng-template>\r\n <div class="wrap-menu-overlay" *ngIf="overlay" (click)="close()"></div>\r\n <div class="wrap-menu">\r\n <ui-card>\r\n <ng-content>\r\n </ng-content>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n\r\n',encapsulation:t.ViewEncapsulation.None,styles:[".wrap-menu-overlay{position:fixed;top:0;left:0;right:0;bottom:0}.wrap-menu{position:absolute;transition:transform 280ms,opacity 280ms;transform-origin:top left;transform:scale(0);opacity:0;z-index:5}.wrap-menu.right{transform-origin:top right}.wrap-menu.top{transform-origin:top}.wrap-menu.open{transition:transform 280ms cubic-bezier(0,0,.2,1),opacity 280ms cubic-bezier(0,0,.2,1);transform:scale(1);opacity:1}.wrap-menu ui-card{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 15px 0 rgba(0,0,0,.2);overflow-y:auto}.wrap-menu .ui-menu-title{font-size:14px;font-weight:500;padding:8px 24px}.wrap-menu .ui-menu-content{padding:8px 0;min-width:56px}.wrap-menu .ui-menu-content.size-2x{min-width:112px}.wrap-menu .ui-menu-content.size-3x{min-width:168px}.wrap-menu .ui-menu-content.size-4x{min-width:224px}.wrap-menu .ui-menu-content.size-5x{min-width:280px}.wrap-menu .ui-menu-content.size-6x{min-width:336px}.wrap-menu .ui-menu-content.size-7x{min-width:392px}.wrap-menu .ui-menu-item{height:48px;line-height:48px;padding:0 16px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;color:inherit;text-decoration:none;transition:280ms cubic-bezier(0,0,.2,1)}.wrap-menu .ui-menu-item:not(a){cursor:default}.wrap-menu .ui-menu-item .icon{margin-right:14px;margin-left:-4px}.wrap-menu ui-subheader{color:inherit;padding:0 16px}@media only screen and (min-width:376px) and (min-width:764px){.wrap-menu .ui-menu-content.size-2x{min-width:128px}.wrap-menu .ui-menu-content.size-3x{min-width:192px}.wrap-menu .ui-menu-content.size-4x{min-width:256px}.wrap-menu .ui-menu-content.size-5x{min-width:320px}.wrap-menu .ui-menu-content.size-6x{min-width:384px}.wrap-menu .ui-menu-content.size-7x{min-width:448px}.wrap-menu .ui-menu-item{height:32px;line-height:32px;font-size:15px;padding:0 24px}.wrap-menu ui-subheader{min-height:32px;padding:0 24px}}body.ui-nav-drawer-persistent .wrap-menu{z-index:6}"]}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),ee=function(){function e(e,t){this.viewContainerRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.menu.closeChange.subscribe((function(){e.close()})),v.on(this.elementRef.nativeElement,this.triggerEvents||"click",(function(t){e.menu.overlay=e.overlay,e.persistentMenu||e.close(),e.contextmenu||setTimeout((function(){var t=v.position(e.elementRef.nativeElement),n={x:t.left,y:t.top};e.render(n)}))})),v.on(window,"mouseup resize scroll touchend",(function(t){if(!e.fixed||"scroll"!==t.type&&"resize"!==t.type){if(e.clickOverlayToClose)switch(t.type){case"mouseup":case"touchend":return void(v.closest(t.target,".wrap-menu")||e.close());default:return void e.close()}e.elementRef.nativeElement!==t.target&&(e.persistentMenu||e.close())}})),v.on(window,"mouseup touchend",(function(t){!e.clickOverlayToClose||v.closest(t.target,".wrap-menu")||e.close()}))},e.prototype.onContextmenu=function(){if(!this.contextmenu)return!0;var e=v.position(this.elementRef.nativeElement),t={x:e.left,y:e.top};return this.render(t),!1},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.menu.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&!n.classList.contains("wrap-menu-overlay")&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;setTimeout((function(){var i=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+document.body.scrollLeft,s=document.body.clientHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);"right"!==n.align&&"right"!==n.menuAlign||(t.x-=e.clientWidth-n.elementRef.nativeElement.clientWidth,i=t.x),i>r&&(t.x=r-(e.clientWidth+8)),t.x<=8&&(t.x=8),o>s&&(t.y=s-(e.clientHeight+8)),t.y<=0&&(t.y=0),n.themeClass&&e.classList.add(n.themeClass),(n.align||n.menuAlign)&&e.classList.add(n.align||n.menuAlign),e.style.transform="",e.querySelector("ui-card").style.maxHeight=window.innerHeight+"px",e.querySelector("ui-card").style.maxWidth=window.innerWidth-16+"px",e.style.top=t.y+"px",e.style.left=t.x+"px",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.Input("trigger-events"),f("design:type",Object)],e.prototype,"triggerEvents",void 0),h([t.Input("theme-class"),f("design:type",Object)],e.prototype,"themeClass",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"align",void 0),h([t.Input("menu-align"),f("design:type",Object)],e.prototype,"menuAlign",void 0),h([t.Input("uiMenuTrigger"),f("design:type",Object)],e.prototype,"menu",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"persistentMenu",void 0),h([t.Input("click-overlay-to-close"),f("design:type",Object)],e.prototype,"clickOverlayToClose",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"contextmenu",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"overlay",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"fixed",void 0),h([t.HostListener("contextmenu"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onContextmenu",null),e=h([t.Directive({selector:"[uiMenuTrigger]"}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),te=function(){function e(e){var n=this;this.element=e,this.openChange=new t.EventEmitter,this.openNav=function(){if(document.body.clientWidth<=375||!n.element.nativeElement.classList.contains("persistent")&&(window.scrollY||window.pageYOffset)>1){var e=document.querySelectorAll(".ui-fab-container")[0];e&&e.classList.add("hide")}n.element.nativeElement.classList.add("open"),n.element.nativeElement.classList.contains("persistent")?document.body.style.overflowY="":document.body.style.overflowY="hidden"},this.closeNav=function(){var e=document.querySelectorAll(".ui-fab-container")[0];e&&e.classList.remove("hide"),n.element.nativeElement.classList.remove("open"),document.body.style.overflowY=""}}return e.prototype.ngAfterViewInit=function(){var e=this,t=v.closest(this.element.nativeElement,"body");t.classList.add("notransition"),setTimeout((function(){t.classList.remove("notransition"),e.element.nativeElement.querySelectorAll(".ui-nav-drawer-overlay")[0].style.visibility="visible"}),300);var n=this.element.nativeElement.classList.contains("persistent"),i=this.element.nativeElement.classList.contains("open");n&&i?document.body.clientWidth>375&&t.classList.add("ui-nav-drawer-persistent"):t.classList.remove("ui-nav-drawer-persistent"),this.element.nativeElement.addEventListener("click",(function(t){n&&window.innerWidth>763||!v.is(t.srcElement,"a")||(e.open=!1,e.openChange.emit(e.open))})),this.open?this.openNav():this.closeNav();var o,r,s,a=this.element.nativeElement.querySelector("nav");this.onTouchStart=function(t){e.element.nativeElement.classList.contains(".right")||(r=t.touches[0].pageX,o=r>0&&r<40?"open":o,o=r>320&&r<360?"close":o)},this.onTouchMove=function(t){o&&(s=t.touches[0].pageX-r,"open"!==o||e.open?"close"===o&&e.open&&(s=(s=s<-330?-330:s)>0?0:s,v.css(a,"transform","translateX("+s+"px)")):(s=s>320?320:s,v.css(a,"transform","translateX("+(-320+s)+"px)")))},this.onTouchEnd=function(t){o&&("open"===o&&s>20?(v.css(a,"transform",""),e.open=!0,e.openChange.emit(e.open),e.openNav()):"close"===o&&s<-20?(v.css(a,"transform",""),e.open=!1,e.openChange.emit(e.open),e.closeNav()):v.css(a,"transform","")),o=void 0},v.on(window,"touchstart",this.onTouchStart),v.on(window,"touchmove",this.onTouchMove),v.on(window,"touchend",this.onTouchEnd)},e.prototype.ngOnChanges=function(e){if("true"===q.get("NavDrawerPersistent")&&(this.open=!0,this.openNav()),e.open){var t=e.open.currentValue;this.open=t,t?this.openNav():this.closeNav();var n=this.element.nativeElement.classList.contains("persistent"),i=v.closest(this.element.nativeElement,"body");n&&t?document.body.clientWidth>375&&(i.classList.add("ui-nav-drawer-persistent"),q.set("NavDrawerPersistent","true")):(i.classList.remove("ui-nav-drawer-persistent"),q.set("NavDrawerPersistent","false")),setTimeout((function(){v.trigger(window,"resize")}),280)}},e.prototype.ngOnDestroy=function(){v.off(window,"touchstart",this.onTouchStart),v.off(window,"touchmove",this.onTouchMove),v.off(window,"touchend",this.onTouchEnd),document.body.classList.add("notransition"),document.body.classList.remove("ui-nav-drawer-persistent"),setTimeout((function(){document.body.classList.remove("notransition")}),1)},e.prototype.closeMenuOverlay=function(){void 0!==this.open&&(this.open=!1,this.openChange.emit(this.open))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"open",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"openChange",void 0),e=h([t.Component({selector:"ui-nav-drawer",template:'<nav>\r\n <ng-content></ng-content>\r\n</nav>\r\n<div class="ui-nav-drawer-overlay" (click)="closeMenuOverlay()"></div>\r\n',encapsulation:t.ViewEncapsulation.None,styles:["ui-nav-drawer.right nav{right:-10px;left:auto;transform:translateX(100%)}ui-nav-drawer nav{top:0;bottom:0;max-width:320px;position:fixed;width:100%;z-index:7;box-shadow:0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px 0 rgba(0,0,0,.2);transition:transform 280ms cubic-bezier(0,0,.2,1);transform:translateX(-100%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;left:-10px}ui-nav-drawer nav .ui-nav-drawer-overflow{height:calc(100% - 64px);overflow:auto;margin-top:-1px;position:relative}ui-nav-drawer nav .ui-list{padding-bottom:0}ui-nav-drawer nav .ui-list .ui-list-item:not(.nothing){padding-left:21px}ui-nav-drawer.persistent nav{z-index:4}ui-nav-drawer.open nav{left:0;transform:translateX(0)}ui-nav-drawer.open.right nav{left:auto;right:0}ui-nav-drawer:not(.persistent) .ui-nav-drawer-overlay{position:fixed;left:0;top:0;bottom:0;right:0;opacity:0;z-index:-1;visibility:hidden}@media (max-width:375px),only screen and (min-width:376px) and (max-width:763px){ui-nav-drawer nav{width:calc(100% - 56px)}ui-nav-drawer .ui-nav-drawer-overlay{position:fixed;left:0;top:0;bottom:0;right:0;opacity:0;z-index:-1;visibility:hidden}}ui-nav-drawer.open nav+.ui-nav-drawer-overlay{-webkit-animation:280ms cubic-bezier(0,0,.2,1) openNav;animation:280ms cubic-bezier(0,0,.2,1) openNav;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}ui-nav-drawer:not(.open) nav+.ui-nav-drawer-overlay{-webkit-animation:280ms cubic-bezier(0,0,.2,1) closeNav;animation:280ms cubic-bezier(0,0,.2,1) closeNav;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes openNav{0%{opacity:0;z-index:3}100%{opacity:1;z-index:3}}@keyframes openNav{0%{opacity:0;z-index:3}100%{opacity:1;z-index:3}}@-webkit-keyframes closeNav{0%{opacity:1;z-index:3}99%{opacity:0;z-index:3}100%{opacity:0;z-index:-1}}@keyframes closeNav{0%{opacity:1;z-index:3}99%{opacity:0;z-index:3}100%{opacity:0;z-index:-1}}body{transition:margin-left 280ms cubic-bezier(0,0,.2,1)}@media only screen and (min-width:376px) and (min-width:764px){ui-nav-drawer.persistent nav{box-shadow:0 0 2px 0 rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.12),0 1px 3px 0 rgba(0,0,0,.2)}body.ui-nav-drawer-persistent{margin-left:320px}}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),ne=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement.querySelector("input");e.classList.add("ui-option");e.insertAdjacentHTML("afterend",'<div class="ui-option-shell"><div class="ui-option-fill"></div><div class="ui-option-mark"></div></div>'),this.setColor()},e.prototype.ngOnChanges=function(e){e.color&&!e.color.firstChange&&this.setColor()},e.prototype.setColor=function(){this.element.nativeElement.querySelector(".ui-option-fill").style.borderColor=this.color||""},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),e=h([t.Component({selector:"ui-option",template:"<label>\r\n <ng-content></ng-content>\r\n</label>\r\n",encapsulation:t.ViewEncapsulation.None,styles:['ui-option-container{display:flex;flex-wrap:wrap;min-height:32px;align-items:center;margin-bottom:8px}ui-option-container .info{color:rgba(0,0,0,.87);display:block;width:100%;margin-bottom:8px;font-size:12px;line-height:16px}ui-option-container .info .secondary{display:block;color:rgba(0,0,0,.54)}ui-option-container>ui-option{flex:0 0 auto;max-width:100%;margin-right:16px}ui-option{position:relative;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ui-option.no-space{margin:0}ui-option input{width:0;height:0;position:absolute;z-index:-9999;opacity:0}ui-option .ui-option-shell{position:relative;flex:0 0 auto;width:18px;height:18px;transition:.2s ease-in-out}ui-option.small{font-size:14px}ui-option.small .ui-option-shell{width:14px;height:14px}ui-option.small input[type=checkbox]:checked+.ui-option-shell .ui-option-fill{border-width:7px}ui-option .ui-option-shell:not(:last-child){margin-right:4px}ui-option input[type=checkbox]+.ui-option-shell,ui-option input[type=checkbox]+.ui-option-shell .ui-option-fill{border-radius:2px}ui-option input[type=radio]+.ui-option-shell,ui-option input[type=radio]+.ui-option-shell .ui-option-fill{border-radius:50%}ui-option .ui-option-shell::before{content:"";display:block;position:absolute;top:-100%;left:-100%;right:-100%;bottom:-100%;transform:scale(0);border-radius:50%;transition:.1s ease-in-out;pointer-events:none}ui-option .ui-option:focus+.ui-option-shell::before,ui-option>label:active .ui-option-shell::before{transform:scale(1)}ui-option input[type=checkbox]:not(:disabled):active+.ui-option-shell,ui-option>label:active .ui-option-shell{transform:scale(.9)}ui-option .ui-option-fill{content:"";display:block;position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;margin:auto;border-radius:2px;overflow:hidden;transition:.1s ease-in-out}ui-option input[type=checkbox]+.ui-option-shell .ui-option-fill{border-width:0;border-style:solid;transition:border .2s ease-in-out}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-fill{border-width:9px}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark{position:absolute;top:0;left:0;width:50%;height:90%;transform:rotate(45deg) translate(22%,-26%);opacity:0;transition:50ms ease-in-out}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-mark{opacity:1}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::after,ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::before{content:"";position:absolute;display:block;background-color:#fff;transition:transform .1s ease-in-out,opacity .2s ease-in-out}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::before{top:87%;left:0;right:0;bottom:0;transform-origin:0 50%;transform:scaleX(0)}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::after{top:10%;left:70%;right:0;bottom:0;transform-origin:50% 100%;transform:scaleY(0)}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-mark::before{transform:scaleX(1);transition:50ms ease-in-out .2s,opacity linear}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-mark::after{transform:scaleY(1);transition:50ms ease-in-out 250ms,opacity linear}ui-option input[type=radio]+.ui-option-shell .ui-option-fill{transition:border .1s ease-in-out .1s,transform .2s ease-in-out}ui-option input[type=radio]:checked+.ui-option-shell .ui-option-fill{border-width:9px;transform:scale(.6);transition:border .2s ease-in-out,transform .3s cubic-bezier(.42,0,.53,2) .1s}ui-option input:disabled+.ui-option-shell{opacity:.6}ui-option input:disabled+*{cursor:not-allowed;transform:scale(1)!important}ui-option input:disabled+.ui-option-shell::before{display:none}ui-option input:disabled+div+span{color:#bdbdbd}ui-option>label{display:flex;align-items:center;min-height:19px}']}),f("design:paramtypes",[t.ElementRef])],e)}(),ie=function(){function e(){}return e.prototype.ngOnInit=function(){},e=h([t.Component({selector:"ui-progress-radial.indeterminate",template:'<svg class="spinner-container" viewBox="0 0 44 44">\r\n <circle class="path" cx="22" cy="22" r="20" fill="none" stroke-width="4"></circle>\r\n</svg>\r\n',styles:[":host{width:24px;display:block}:host .spinner-container{-webkit-animation:2s linear infinite rotate;animation:2s linear infinite rotate;z-index:2}:host .spinner-container .path{stroke-dasharray:1,150;stroke-dashoffset:0;-webkit-animation:1.5s ease-in-out infinite dash;animation:1.5s ease-in-out infinite dash}:host #initial_startup .spinner-container .path,:host #startup .spinner-container .path{stroke:#acb9bf}@-webkit-keyframes rotate{100%{transform:rotate(360deg)}}@keyframes rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host-context(.ui-button.fab),:host-context(.ui-button.icon){position:absolute;width:100%;top:0}"]}),f("design:paramtypes",[])],e)}(),oe=0,re=function(){function e(e){this.element=e,this.isIE=navigator.userAgent.indexOf("Trident")>-1}return e.prototype.ngAfterViewInit=function(){this.elRippleContainerTemplate=document.createElement("div"),this.elRippleContainerTemplate.classList.add("ui-ripple-container"),this.elRippleTemplate=document.createElement("div"),this.elRippleTemplate.classList.add("ui-ripple-wave"),this.elRippleContainerTemplateClone=this.elRippleContainerTemplate.cloneNode(!0)},e.prototype.onMousedown=function(e){if(!this.isIE&&(oe=document.querySelectorAll(".ui-ripple-wave").length,!this.rippleDisable&&!this.element.nativeElement.hasAttribute("disabled")&&oe<10)){var t=this.element.nativeElement.offsetWidth,n=this.element.nativeElement.offsetHeight,i=this.element.nativeElement.classList.contains("icon"),o=this.element.nativeElement.classList.contains("fab"),r=this.element.nativeElement.classList.contains("ripple-rounded");(i||o||r)&&(this.elRippleContainerTemplateClone.style.borderRadius="50%"),this.elRippleContainerTemplateClone.style.width=t+"px",this.elRippleContainerTemplateClone.style.height=n+"px",this.element.nativeElement.appendChild(this.elRippleContainerTemplateClone);var s=this.elRippleTemplate.cloneNode(!0),a=void 0,l=void 0,c=void 0,p=void 0;t>n?(a=3*t,l=3*t):(a=3*n,l=3*n),c=-a/2,p=-a/2,s.style.width=a+"px",s.style.height=l+"px";var d=this.getMousePosition(e),u=v.position(this.element.nativeElement),h={y:d.y-u.top,x:d.x-u.left};i||o||r?(c+=t/2,p+=t/2):(c+=h.y,p+=h.x),s.style.top=c+"px",s.style.left=p+"px",this.elRippleContainerTemplateClone.insertBefore(s,this.elRippleContainerTemplateClone.firstChild),this.elRippleContainerTemplateClone.classList.add("pressed"),v.animate(this.elRippleContainerTemplateClone,"border-spacing",0,1,800,null,(function(e){s.style.transform="scale("+e+")"})),oe++}},e.prototype.onMouseup=function(){var e=this;this.isIE||M((function(){e.eraseRipples(e)}),800,!0)()},e.prototype.onMouseout=function(){var e=this;this.isIE||M((function(){e.eraseRipples(e)}),2e3,!0)()},e.prototype.eraseRipples=function(e){e.elRippleContainerTemplateClone.classList.remove("pressed");var t=e.elRippleContainerTemplateClone.children,n=t.length;oe=n;for(var i=function(n){var i=t[n];i&&("1"===(i.style.opacity||"1")&&v.animate(i,"opacity",1,0,800,(function(){try{i.parentNode.removeChild(i),oe--}catch(e){}if(!oe)try{e.elRippleContainerTemplateClone.parentNode.removeChild(e.elRippleContainerTemplateClone)}catch(e){}}),null))},o=0;o<n;o++)i(o)},e.prototype.getMousePosition=function(e){var t={y:void 0,x:void 0};return e.originalEvent&&void 0!==e.originalEvent.touches?(t.y=e.originalEvent.touches[0].pageY,t.x=e.originalEvent.touches[0].pageX):e.pageX?(t.y=e.pageY,t.x=e.pageX):e&&void 0!==e.touches&&(t.y=e.touches[0].pageY,t.x=e.touches[0].pageX),t},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("ripple-disable"),f("design:type",Object)],e.prototype,"rippleDisable",void 0),h([t.HostListener("mousedown",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onMousedown",null),h([t.HostListener("mouseup"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onMouseup",null),h([t.HostListener("mouseout"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onMouseout",null),e=h([t.Directive({selector:"[uiRipple]"}),f("design:paramtypes",[t.ElementRef])],e)}(),se=function(){function e(e,n){this.differs=e,this.element=n,this.modelChange=new t.EventEmitter,this.differ=e.find([]).create()}return e.prototype.ngOnInit=function(){var e=this;this.defaultItem||(this.defaultItem={}),this.list=[Object.assign({},this.defaultItem)],this.model||console.error("Você precisa declarar a model no seu componente"),this.objDiffer={},this.list.forEach((function(t,n){e.objDiffer[n]=e.differs.find(t).create()})),this.model.forEach((function(t){e.list.push(t)}))},e.prototype.ngDoCheck=function(){var e=this,t=!1;this.list.forEach((function(n,i){var o=e.objDiffer[i];o||(o=e.objDiffer[i]=e.differs.find(n).create());var r=o.diff(n);r&&(t=!0,r.forEachChangedItem((function(t){t.currentValue||"number"==typeof t.currentValue||"boolean"==typeof t.currentValue||n[e.autoDeleteException]||delete n[t.key]})),n&&e.model.indexOf(n)<0&&Object.keys(n).length>Object.keys(e.defaultItem).length&&e.model.push(n),n&&Object.keys(n).length===Object.keys(e.defaultItem).length&&ae(n,e.defaultItem)&&e.model.length&&e.model.indexOf(n)>-1&&!n[e.autoDeleteException]&&e.model.splice(e.model.indexOf(n),1))})),t&&this.newItem()},e.prototype.newItem=function(){var e=this,t=0;this.list.forEach((function(n){if(n&&Object.keys(n).length<=Object.keys(e.defaultItem).length&&ae(n,e.defaultItem)){t++;var i=e.list[e.list.indexOf(n)];e.list.splice(e.list.indexOf(n),1),e.list.splice(e.list.length,0,i)}})),t?setTimeout((function(){e.list.splice(e.list.length-1,1),e.newItem()})):this.list.push(Object.assign({},this.defaultItem))},e.prototype.remove=function(e){var t=this;Object.keys(this.list[e]).forEach((function(n){Object.keys(t.defaultItem).includes(n)?t.list[e][n]=t.defaultItem[n]:delete t.list[e][n]})),this.ngDoCheck()},e.prototype.ngOnChanges=function(e){var t=this;e.model&&e.model.currentValue&&(e.model.currentValue.length?e.model.currentValue.forEach((function(e){t.list&&-1===t.list.indexOf(e)&&t.list.push(e)})):e.model.currentValue&&e.model.previousValue&&(this.list=[Object.assign({},this.defaultItem)]))},e.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"model",void 0),h([t.Input("default-item"),f("design:type",Object)],e.prototype,"defaultItem",void 0),h([t.Input("auto-delete-exception"),f("design:type",Object)],e.prototype,"autoDeleteException",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),e=h([t.Component({selector:"ui-smart-list",template:"<ng-content>\r\n</ng-content>\r\n",styles:[":host{display:block}:host ::ng-deep ui-smart-list-item{display:block}"]}),f("design:paramtypes",[t.KeyValueDiffers,t.ElementRef])],e)}();function ae(e,t){return JSON.stringify(e)===JSON.stringify(t)}var le,ce,pe,de=function(){function e(e,t){this.parent=e,this.element=t}return e.prototype.ngAfterViewInit=function(){for(var e=this,t=this,n=this.element.nativeElement.querySelectorAll("input"),i=0;i<n.length;i++){var o=n[i];o.addEventListener("focus",(function(n){e.onFocus(n,t)})),o.addEventListener("blur",(function(n){e.onBlur(n,t)}))}},e.prototype.onFocus=function(e,t){var n=e.target,i=new X(n).closest("ui-smart-list-item"),o=Array.prototype.indexOf.call(t.parent.element.nativeElement.children,i.nativeElement);t.parent.currentFocusedElementIndex=o>-1?o:t.parent.currentFocusedElementIndex},e.prototype.onBlur=function(e,t){setTimeout((function(){new X(e.target).closest("body").nativeElement||setTimeout((function(){t.parent.element.nativeElement.children[t.parent.currentFocusedElementIndex].querySelector("input").focus()}),100)}))},e.ctorParameters=function(){return[{type:se,decorators:[{type:t.Inject,args:[se]}]},{type:t.ElementRef}]},e=h([t.Component({selector:"ui-smart-list-item",template:"<ng-content>\r\n</ng-content>\r\n"}),m(0,t.Inject(se)),f("design:paramtypes",[se,t.ElementRef])],e)}(),ue=[],he={duration:5e3,center:!1,actionText:null},me=function(){function e(){}return e.show=function(e){e=Object.assign({},he,e),ue.push(e),1===ue.length&&this.timerBar(e),this.barsChange.emit(ue)},e.hide=function(){var e=this;if(ue.length){var t=document.querySelector("ui-snackbar-container > ui-snackbar");if(!t)return;t.classList.add("leave"),setTimeout((function(){clearTimeout(le),e.finishTimeout()}),280)}},e.timerBar=function(e){var t=this;ue.length&&(this.elevateFAB(),e.duration!==1/0&&(le=setTimeout((function(){document.querySelectorAll("ui-snackbar-container > ui-snackbar")[0]&&document.querySelectorAll("ui-snackbar-container > ui-snackbar")[0].classList.add("leave"),setTimeout((function(){return t.finishTimeout()}),280)}),e.duration)))},e.finishTimeout=function(){ue.shift(),this.setTranslateFAB(0,!1),ue.length&&this.timerBar(ue[0]),this.barsChange.emit(ue)},e.elevateFAB=function(){var e=this;setTimeout((function(){var t;t=window.innerWidth<=764?document.querySelectorAll("ui-snackbar-container > ui-snackbar")[0].clientHeight:0,e.setTranslateFAB(t,!0)}))},e.setTranslateFAB=function(e,t){var n;n=window.innerWidth<=764?document.querySelectorAll(".ui-fab-container"):document.querySelectorAll(".ui-fab-container.scrolled"),[].forEach.call(document.querySelectorAll(".ui-fab-container"),(function(e){e.classList.remove("elevating-snack"),e.style.transform=""})),[].forEach.call(n,(function(n){n.classList[t?"add":"remove"]("elevating-snack"),n.style.transform=e?"translateY(-"+e+"px)":""}))},e.barsChange=new t.EventEmitter,e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),fe=function(){function e(){}return e.prototype.hide=function(){me.hide()},h([t.Input(),f("design:type",Object)],e.prototype,"bar",void 0),e=h([t.Component({selector:"ui-snackbar",template:'<div class="text" [innerHtml]="bar.text"></div>\r\n<div class="action" *ngIf="bar.action && bar.actionText">\r\n <button class="ui-button accent flat" (click)="bar.action(hide)" uiRipple>\r\n {{bar.actionText}}\r\n </button>\r\n</div>\r\n',styles:[":host{display:flex;align-items:center;justify-content:space-between;background-color:#323232;padding-left:24px;box-shadow:0 0 4px 0 rgba(0,0,0,.14),0 3px 4px 0 rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);margin:0 auto;width:100%;flex:0 0 auto;transition:transform 280ms cubic-bezier(0,0,.2,1)}:host:first-child{-webkit-animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar;animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar}:host+::ng-deep ui-snackbar:not(.nothing){position:absolute;z-index:-1;transform:translateY(150%);bottom:initial}:host.leave{transform:translateY(100%)}@media only screen and (min-width:376px) and (min-width:764px){:host{min-width:288px;margin:16px;border-radius:2px;max-width:568px;width:auto}:host:not(.center){position:absolute;bottom:0}:host:not(.center).leave{transform:translateY(calc(100% + 16px))}}:host .text{color:#fff;font-size:14px;padding:14px 0;min-height:48px;display:flex;align-items:center;margin-right:24px}:host button.ui-button{min-width:0;margin-right:8px}:host.center{position:absolute;bottom:0;margin:0 auto;border-bottom-left-radius:0;border-bottom-right-radius:0;transform:translateX(-50%);left:50%}:host.center:first-child{-webkit-animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar-center;animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar-center}:host.center.leave{transform:translateY(100%) translateX(-50%)}:host ::ng-deep [uiRipple].ui-button:not(.success):not(.warning):not(.error):not(:disabled).flat.accent .ui-ripple-wave{background-color:rgba(255,255,255,.1)}@media only screen and (min-width:376px) and (min-width:764px){::ng-deep .ui-button.elevating-snack{transform:translateY(0)!important}}@-webkit-keyframes enter-snackbar{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes enter-snackbar{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@-webkit-keyframes enter-snackbar-center{0%{transform:translateY(100%) translateX(-50%)}100%{transform:translateY(0) translateX(-50%)}}@keyframes enter-snackbar-center{0%{transform:translateY(100%) translateX(-50%)}100%{transform:translateY(0) translateX(-50%)}}"]}),f("design:paramtypes",[])],e)}(),ge=function(){function e(){var e=this;me.barsChange.subscribe((function(t){e.bars=t}))}return e.prototype.ngAfterViewInit=function(){var e=this;v.on(window,"resize",(function(){e.bars&&e.bars.length&&me.elevateFAB()}))},e=h([t.Component({selector:"ui-snackbar-container",template:'<ui-snackbar *ngFor="let bar of bars" [bar]="bar" [ngClass]="{\'center\': bar.center}">\r\n {{bar.text}}\r\n</ui-snackbar>\r\n',styles:[":host{position:fixed;height:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;transition:left 280ms;z-index:6}@media only screen and (min-width:376px) and (min-width:764px){:host-context(.ui-nav-drawer-persistent){left:320px}}"]}),f("design:paramtypes",[])],e)}(),ye=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement.querySelectorAll("input")[0];e.classList.add("ui-switch");e.insertAdjacentHTML("afterend",'<div class="switch-cover"><div class="track"></div><div class="thumb-container"><div class="thumb"></div></div></div>')},e.ctorParameters=function(){return[{type:t.ElementRef}]},e=h([t.Component({selector:"ui-switch",template:"<label>\r\n <ng-content></ng-content>\r\n</label>\r\n",encapsulation:t.ViewEncapsulation.None,styles:['ui-switch-container{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}ui-switch-container .info{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;margin-right:10px}ui-switch-container .info .secondary{display:block}ui-switch-container.no-space{margin-bottom:0}ui-switch{position:relative;width:36px;height:24px;display:inline-block}ui-switch input{position:absolute;width:0;height:0;opacity:0}ui-switch .switch-cover{width:0;height:0;margin:auto}ui-switch .track{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:34px;height:14px;background-color:inherit;opacity:.5;border-radius:7px;transition:.3s ease-in-out}ui-switch .thumb-container{position:absolute;top:0;right:0;bottom:0;height:0;margin:auto 0;width:20px;background-color:inherit;transition:right .3s ease-in-out}ui-switch .thumb{position:absolute;top:0;bottom:0;margin:auto 0;width:20px;height:20px;border-radius:10px;transform:translateX(0);box-shadow:0 2px 4px rgba(0,0,0,.15),0 2px 6px rgba(0,0,0,.2);background-color:inherit;transition:.3s ease-in-out}ui-switch input:not(:checked)+.switch-cover .thumb-container{right:100%}ui-switch input:not(:checked)+.switch-cover .thumb{box-shadow:0 1px 2px rgba(0,0,0,.21),0 1px 3px rgba(0,0,0,.3);transform:translateX(100%)}ui-switch input:not(:checked):not(:disabled)+.switch-cover .thumb{background-color:#fff}ui-switch .thumb-container::before{content:"";position:absolute;top:0;left:50%;right:0;bottom:0;width:40px;height:40px;margin:auto -20px;border-radius:50%;background-color:inherit;opacity:.2;transform:scale(0);transition:.3s ease-in-out;pointer-events:none}ui-switch input:not(:checked)+.switch-cover .thumb-container::before{opacity:.1;margin:auto 0}ui-switch input:active+.switch-cover .thumb-container::before,ui-switch input:focus+.switch-cover .thumb-container::before{transform:scale(1)}fieldset:disabled ui-switch-container .info{color:rgba(0,0,0,.42)}fieldset:disabled ui-switch-container .info .secondary{color:rgba(0,0,0,.24)}']}),f("design:paramtypes",[t.ElementRef])],e)}(),ve=function(){function e(e){var t=this;this.element=e,v.on(window,"scroll resize",(function(e){if(t.element.nativeElement.classList.contains("elevate-on-scroll")){var n=t.element.nativeElement.querySelectorAll("header")[0],i=3.6*(window.scrollY||window.pageYOffset);t.element.nativeElement.classList.contains("size-2x")?("scroll"===e.type&&i<97?(t.element.nativeElement.classList.add("notransition"),n.style.paddingBottom=102-i+"px",n.style.height=162-i+"px",setTimeout((function(){t.element.nativeElement.classList.remove("notransition")}),500)):(n.style.paddingBottom="",n.style.height=""),i>97?(n.style.zIndex=3,t.element.nativeElement.classList.add("scrolled")):(n.style.zIndex=2,t.element.nativeElement.classList.remove("scrolled"))):(window.scrollY||window.pageYOffset)>1?t.element.nativeElement.classList.add("scrolled"):t.element.nativeElement.classList.remove("scrolled")}}))}return e.prototype.ngAfterViewInit=function(){},e.ctorParameters=function(){return[{type:t.ElementRef}]},e=h([t.Component({selector:"ui-toolbar",template:'<header>\r\n <ng-content></ng-content>\r\n</header>\r\n<div class="ui-toolbar-space"></div>\r\n',encapsulation:t.ViewEncapsulation.None}),f("design:paramtypes",[t.ElementRef])],e)}(),be=new t.EventEmitter,we=[480,600,840,960,1280,1440,1600],xe=function(){function e(){this.change=be}return e.prototype.get=function(){return this.sharedValue},e.prototype.set=function(e){this.sharedValue=e,this.change.emit(e)},e.prototype.registerMainToolbar=function(e){ce=e,pe=[],we.forEach((function(e){ce.classList.contains("elevate-on-s"+e)&&pe.push(e)}))},e.prototype.getMainToolbar=function(){if(ce)return ce;console.error("Você não registrou um toolbar principal.")},e.prototype.activateExtendedToolbar=function(e){var t=this;if(ce){e&&(we.includes(e)?(we.forEach((function(e){return t.getMainToolbar().classList.remove("elevate-on-s"+e)})),this.getMainToolbar().classList.add("elevate-on-s"+e)):console.error('O tamanho do "breakpoint" tem que ser um dos tamanhos suportados: '+we.join(", "))),this.getMainToolbar().classList.add("size-2x");var n=this.getMainToolbar().querySelectorAll("header")[0];n.style.transition="all 280ms",setTimeout((function(){n.style.transition="",v.trigger(window,"scroll")}),280)}},e.prototype.deactivateExtendedToolbar=function(){var e=this;if(ce){we.forEach((function(t){return e.getMainToolbar().classList.remove("elevate-on-s"+t)})),pe.forEach((function(t){return e.getMainToolbar().classList.add("elevate-on-s"+t)})),this.getMainToolbar().classList.remove("size-2x"),this.getMainToolbar().classList.remove("scrolled");var t=this.getMainToolbar().querySelectorAll("header")[0];t.style.transition="all 280ms",t.style.height="",t.style.paddingBottom="",setTimeout((function(){t.style.transition=""}),280),v.trigger(window,"scroll")}},e.prototype.activateTransparentToolbar=function(e){this.getMainToolbar().classList.add("transparent"),e&&this.getMainToolbar().classList.add(e)},e.prototype.deactivateTransparentToolbar=function(e){this.getMainToolbar().classList.remove("transparent"),e&&this.getMainToolbar().classList.remove(e)},e.prototype.activateElevatingToolbar=function(e){this.getMainToolbar().classList.add("elevate-on-scroll"),e&&this.getMainToolbar().classList.add(e)},e.prototype.deactivateElevatingToolbar=function(e){this.getMainToolbar().classList.remove("elevate-on-scroll"),e&&this.getMainToolbar().classList.remove(e)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}();function Ee(){return window}var Ce=function(){function e(){}return e.nativeWindow=function(){return Ee()},e=h([t.Injectable()],e)}();function ke(e){if(e=e.replace(/[^\w\s!\/]/gi,""),!/^[\d, \/]+$/.test(e))return!1;var t,n,i,o=e.split("/");if(3!==o.length)return!1;var r="d/M/yy";r=r.split("/");for(var s=0;s<3;s++)r[s].indexOf("d")>-1&&(t=s),r[s].indexOf("M")>-1&&(n=s),r[s].indexOf("y")>-1&&(i=s);if(isNaN(t)||isNaN(n)||isNaN(i))return!1;var a=o[t],l=o[n],c=o[i];return!!(a&&l&&c)&&(!(l<1||l>12)&&(!(c.length<4)&&(!(a>new Date(c,l,0).getDate()||a<1)&&new Date(c,l-1,a))))}var Re=function(){function e(e,n){this.elementRef=e,this.datePipe=n,this.maxlength=10,this.regex=/^\d\d\/\d\d\/\d\d\d\d$/g,this.regexiso=/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z|(((\+|\-)[0-1][0-9]):([0-5][0-9])))?$/g,this.symbolsPositions=[2,5],this.dateFormatsList=[{format:"dd/MM/yyyy",maxlength:10,regex:/^(\d{2}\/){2}\d{4}$/g,symbolsPositions:[2,5]},{format:"dd/MM",maxlength:5,regex:/^(\d{2})\/(\d{2})$/g,symbolsPositions:[2]},{format:"MM/yyyy",maxlength:7,regex:/^(\d{2})\/(\d{4})$/g,symbolsPositions:[2]},{format:"dd/MM/yy",maxlength:8,regex:/^(\d{2}\/){2}\d{2}$/g,symbolsPositions:[2,5]},{format:"MM/yy",maxlength:5,regex:/^(\d{2})\/(\d{2})$/g,symbolsPositions:[2]}],this.day="01",this.year=(new Date).getFullYear().toString(),this.ngModelChange=new t.EventEmitter}var o;return o=e,e.prototype.ngOnInit=function(){this.validaDateFormat()},e.prototype.ngAfterViewInit=function(){var e=this;this.minDate=this.minDate&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.maxDate=this.maxDate&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate,this.ngModel=this.ngModel&&s.isDate(new Date(this.ngModel))?new Date(this.ngModel):this.ngModel,setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),!this.input&&e&&(this.elementRef.nativeElement.value=this.format(this.datePipe.transform(this.ngModel,this.dateFormat))),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=ke(this.getCorrectValue(this.format(e)))||this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.format(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>this.symbolsPositions[0]&&(e=e.substring(0,this.symbolsPositions[0])+"/"+e.substring(this.symbolsPositions[0])),e.length>this.symbolsPositions[1]&&(e=e.substring(0,this.symbolsPositions[1])+"/"+e.substring(this.symbolsPositions[1],this.maxlength-1)),e.substring(0,this.maxlength)):""},e.prototype.validaDateFormat=function(){var e=this;if(this.dateFormat){var t=!1;this.dateFormatsList.forEach((function(n){n.format===e.dateFormat&&(e.maxlength=n.maxlength,e.regex=n.regex,e.symbolsPositions=n.symbolsPositions,t=!0)})),t||console.error('Formato de data não suportado, tente algum destes: ["dd/MM/yyyy", "dd/MM", "MM/yyyy", "dd/MM/yy", "MM/yy"]')}else this.dateFormat="dd/MM/yyyy"},e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),e.minDate&&!e.minDate.firstChange&&(this.minDate=e.minDate.currentValue&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.control.updateValueAndValidity(this.control)),e.maxDate&&!e.maxDate.firstChange&&(this.maxDate=e.maxDate.currentValue&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate,this.control.updateValueAndValidity(this.control)),(e.minDate&&!e.minDate.firstChange||e.maxDate&&!e.maxDate.firstChange)&&this.control.updateValueAndValidity(this.control)},e.prototype.getCorrectValue=function(e){var t=this.regex.test(e);if("MM/yyyy"===this.dateFormat&&t)return this.day+"/"+e;if("dd/MM"===this.dateFormat&&t)return e+"/"+this.year;if("dd/MM/yy"===this.dateFormat&&t)return(n=e.split("/"))[0]+"/"+n[1]+"/20"+n[2];if("MM/yy"===this.dateFormat&&t){var n=e.split("/");return this.day+"/"+n[0]+"/20"+n[1]}return e},e.prototype.validate=function(e){this.control=e;var t=this.ngModel&&this.regexiso.test(this.ngModel)?new Date(this.ngModel):this.ngModel,n=s.isDate(e.value)?e.value:new Date(e.value);if(t&&(!s.isDate(t)||!ke(t.toLocaleDateString("pt-BR"))))return{parse:!0};if(t&&(s.isDate(t)||ke(t.toLocaleDateString("pt-BR")))){if(n.setHours(0,0,0,0),this.minDate&&s.isDate(this.minDate)&&(this.minDate.setHours(0,0,0,0),n.getTime()<this.minDate.getTime()))return{minDate:!0};if(this.maxDate&&s.isDate(this.maxDate)&&(this.maxDate.setHours(0,0,0,0),n.getTime()>this.maxDate.getTime()))return{maxDate:!0}}return null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:i.DatePipe}]},h([t.Input(),f("design:type",Date)],e.prototype,"minDate",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"maxDate",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",String)],e.prototype,"dateFormat",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"day",void 0),h([t.Input(),f("design:type",String)],e.prototype,"year",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=o=h([t.Directive({selector:"[uiMaskDate][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return o})),multi:!0},i.DatePipe]}),f("design:paramtypes",[t.ElementRef,i.DatePipe])],e)}(),Ie=function(){function e(e){this.isDestroyed=!1,this.async=new i.AsyncPipe(e)}return e.prototype.transform=function(e,t,n,i,o){if(void 0===t&&(t=""),void 0===n&&(n=""),this.textBefore=t,this.textAfter=n,this.isMinified=i,this.isHence=o,null==e)return"";if(!(e instanceof Date))try{e=new Date(e)}catch(e){throw new Error("UiTimeAgo só funciona com datas")}return this.value=e,this.timer||(this.timer=this.getObservable()),this.async.transform(this.timer)},e.prototype.now=function(){return new Date},e.prototype.ngOnDestroy=function(){this.isDestroyed=!0},e.prototype.getObservable=function(){var e=this;return l.of(1).pipe(c.repeatWhen((function(e){return e.pipe(c.flatMap((function(e,t){var n=t<60?1e3:3e4;return l.timer(n)})))})),c.takeWhile((function(t){return!e.isDestroyed})),c.map((function(t,n){return e.elapsed()})))},e.prototype.elapsed=function(){var e=(this.now().getTime()-this.value.getTime())/1e3;if(this.isHence&&(e*=-1),e<60){var t=Math.floor(e),n=void 0;return n=this.isMinified?t+"s":t+" segundo"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter}if(e<3600){t=Math.floor(e/60),n=void 0;return n=this.isMinified?t+"m":t+" minuto"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter}if(e<86400){t=Math.floor(e/3600),n=void 0;return n=this.isMinified?t+"h":t+" hora"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter}t=Math.floor(e/86400),n=void 0;return n=this.isMinified?t+"d":t+" dia"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e=h([t.Pipe({name:"uiTimeAgo",pure:!1}),f("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Me=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.uiListItem.querySelectorAll(".ui-list-item.active")[0]&&(e.element.nativeElement.classList.toggle("expanded"),e.uiListItem.classList.toggle("expanded"),Se(e.uiListItem,e.element.nativeElement))}))},e.prototype.onClick=function(){this.element.nativeElement.classList.toggle("expanded"),this.uiListItem.classList.toggle("expanded"),Se(this.uiListItem,this.element.nativeElement)},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"uiListItem",void 0),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),e=h([t.Directive({selector:"[uiListItem]"}),f("design:paramtypes",[t.ElementRef])],e)}();function Se(e,t){if(e.style.height&&"0px"!==e.style.height){var n=parseInt(e.style.height.replace("px",""),10);e.style.height="";for(o=v.closest(e,".ui-list-item-group");o;)o.style.height=De(o)-n+"px",o&&(o=v.closest(o,".ui-list-item-group"))}else{var i=De(e);e.style.height=e.style.maxHeight&&i>e.style.maxHeight.replace("px","")?e.style.maxHeight:i+"px";for(var o=v.closest(e,".ui-list-item-group");o;)o.style.height=De(o)+i+"px",o&&(o=v.closest(o,".ui-list-item-group"))}setTimeout((function(){var n=v.closest(e,".ui-list");if(n){var i=n.parentNode;v.is(i,"ui-list")&&(i=i.parentNode),v.animate(e,"border-spacing",i.scrollTop,t.offsetTop,500,null,(function(e){i.scrollTop=e}))}}),500)}function De(e){return Array.prototype.reduce.call(e.childNodes,(function(e,t){return e+(t.offsetHeight||0)}),0)}var Oe=function(){function e(){}return e.prototype.transform=function(e,t){return e?(e=e.toString().replace(/[^0-9]+/g,""),t||(e=e.padStart(11,"0")),e.length>3&&(e=e.substring(0,3)+"."+e.substring(3)),e.length>7&&(e=e.substring(0,7)+"."+e.substring(7)),e.length>11&&(e=e.substring(0,11)+"-"+e.substring(11)),e.length>14&&(e=e.substring(0,14)),e):""},e=h([t.Pipe({name:"uiCpf"})],e)}(),Te=function(){function e(e,n){this.elementRef=e,this.cpfPipe=n,this.symbolsPositions=[3,7,11,14],this.padOnPaste=!0,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.ngModel=this.ngModel?this.ngModel.toString().padStart(11,"0"):"",this.elementRef.nativeElement.value=this.cpfPipe.transform(this.ngModel,!0)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cpfPipe.transform(this.elementRef.nativeElement.value,!0)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,11)},e.prototype.validate=function(e){return this.control=e,this.input&&e.value&&this.format(e.value).length<11||!0===this.uiMaskCpf&&e.value&&!this.cpfIsValid(e.value)?{parse:!0}:(this.input=!1,null)},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.cpfIsValid=function(e){if(e&&11===e.length){var t=void 0,n=void 0;if(t=0,"00000000000"===e)return!1;for(var i=1;i<=9;i++)t+=parseInt(e.substring(i-1,i),10)*(11-i);if(10!==(n=10*t%11)&&11!==n||(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(i=1;i<=10;i++)t+=parseInt(e.substring(i-1,i),20)*(12-i);return 10!==(n=10*t%11)&&11!==n||(n=0),n===parseInt(e.substring(10,11),10)}},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=this.format(n)!==this.ngModel,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.prototype.padLeft=function(e){if(this.padOnPaste){e.preventDefault();var t=void 0;window.clipboardData?t=window.clipboardData:e.clipboardData&&e.clipboardData.getData&&(t=e.clipboardData);var n=t.getData("text").toString().replace(/[^0-9]+/g,"");this.renderViaInput(n.padStart(11,"0"))}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Oe}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"padOnPaste",void 0),h([t.Input("uiMaskCpf"),f("design:type",Object)],e.prototype,"uiMaskCpf",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("paste",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"padLeft",null),e=i=h([t.Directive({selector:"[uiMaskCpf][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Oe]}),f("design:paramtypes",[t.ElementRef,Oe])],e)}(),Le=function(){function e(){}return e.prototype.transform=function(e,t){return e?(e=e.toString().replace(/[^0-9]+/g,""),t||(e=e.padStart(14,"0")),(e=e.toString().replace(/[^0-9]+/g,"")).length>2&&(e=e.substring(0,2)+"."+e.substring(2)),e.length>6&&(e=e.substring(0,6)+"."+e.substring(6)),e.length>10&&(e=e.substring(0,10)+"/"+e.substring(10)),e.length>15&&(e=e.substring(0,15)+"-"+e.substring(15)),e.length>18&&(e=e.substring(0,18)),e):""},e=h([t.Pipe({name:"uiCnpj"})],e)}(),Pe=function(){function e(e,n){this.elementRef=e,this.cnpjPipe=n,this.symbolsPositions=[2,6,10,15,18],this.padOnPaste=!0,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.ngModel=this.ngModel?this.ngModel.toString().padStart(14,"0"):"",this.elementRef.nativeElement.value=this.cnpjPipe.transform(this.ngModel,!0)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cnpjPipe.transform(this.elementRef.nativeElement.value,!0)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,14)},e.prototype.validate=function(e){return this.control=e,this.input&&e.value&&this.format(e.value).length<14||!0===this.uiMaskCnpj&&e.value&&!this.cnpjIsValid(e.value)?{parse:!0}:(this.input=!1,null)},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.cnpjIsValid=function(e){if(!+e||14!==e.length)return!1;for(var t=e.length-2,n=e.substring(0,t),i=e.substring(t),o=0,r=t-7,s=t;s>=1;s--)o+=n.charAt(t-s)*r--,r<2&&(r=9);var a=o%11<2?0:11-o%11;if(a.toString()!==i.charAt(0))return!1;t+=1,n=e.substring(0,t),o=0,r=t-7;for(s=t;s>=1;s--)o+=n.charAt(t-s)*r--,r<2&&(r=9);return(a=o%11<2?0:11-o%11).toString()===i.charAt(1)},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=this.format(n)!==this.ngModel,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.prototype.padLeft=function(e){if(this.padOnPaste){e.preventDefault();var t=void 0;window.clipboardData?t=window.clipboardData:e.clipboardData&&e.clipboardData.getData&&(t=e.clipboardData);var n=t.getData("text").toString().replace(/[^0-9]+/g,"");this.renderViaInput(n.padStart(14,"0"))}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Le}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"padOnPaste",void 0),h([t.Input("uiMaskCnpj"),f("design:type",Object)],e.prototype,"uiMaskCnpj",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("paste",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"padLeft",null),e=i=h([t.Directive({selector:"[uiMaskCnpj][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Le]}),f("design:paramtypes",[t.ElementRef,Le])],e)}(),Ae=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>5&&(e=e.substring(0,5)+"-"+e.substring(5)),e.length>9&&(e=e.substring(0,9)),e):""},e=h([t.Pipe({name:"uiCep"})],e)}(),Ve=function(){function e(e,n){this.elementRef=e,this.cepPipe=n,this.symbolsPositions=[5,9],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.cepPipe.transform(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cepPipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,8)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<8?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Ae}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCep][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Ae]}),f("design:paramtypes",[t.ElementRef,Ae])],e)}(),ze=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^a-zA-Z0-9]+/g,"")).length>5&&(e=e.substring(0,5)+"-"+e.substring(5)),e.length>9&&(e=e.substring(0,9)),e):""},e=h([t.Pipe({name:"uiCepNovo"})],e)}(),je=function(){function e(e,n){this.elementRef=e,this.cepPipe=n,this.symbolsPositions=[5,9],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.cepPipe.transform(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cepPipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^a-zA-Z0-9]+/g,"")).substring(0,8)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<8?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:ze}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCepNovo][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},ze]}),f("design:paramtypes",[t.ElementRef,ze])],e)}(),Fe=function(){function e(){}return e.prototype.transform=function(e,t){return e?(e=e.toString().replace(/[^0-9]+/g,""),"ddi"===t?(e.length>0&&(e="+"+e),"1"===e[1]?(e.length>2&&(e=e.substring(0,2)+" ("+e.substring(2)),e.length>7&&(e=e.substring(0,7)+") "+e.substring(7)),e.length>12&&(e=e.substring(0,12)+"-"+e.substring(12)),e.length>17&&(e=e.substring(0,17))):(e.length>3&&(e=e.substring(0,3)+" ("+e.substring(3)),e.length>7&&(e=e.substring(0,7)+") "+e.substring(7)),e.length>12&&e.length<18?e=e.substring(0,13)+"-"+e.substring(13):e.length>17&&(e=e.substring(0,14)+"-"+e.substring(14)),e.length>17&&(e=e.substring(0,19)))):(e.length>0&&(e="("+e),e.length>3&&(e=e.substring(0,3)+") "+e.substring(3)),e.length>9&&e.length<14?e=e.substring(0,9)+"-"+e.substring(9):e.length>13&&(e=e.substring(0,10)+"-"+e.substring(10)),e.length>15&&(e=e.substring(0,15))),e):""},e=h([t.Pipe({name:"uiPhone"})],e)}(),Ne=function(){function e(e,n){this.elementRef=e,this.phonePipe=n,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnInit=function(){switch(this.uiMaskPhone){case"ddi":this.symbolsPositions=[0,12,14,17];break;default:this.maxLength=11,this.symbolsPositions=[0,9,11,14]}},e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){if("ddi"===this.uiMaskPhone&&e){var t=e.toString().substring(0,1);this.maxLength="1"===t?11:13}this.control&&this.loaded&&e&&this.control.markAsDirty(),this.elementRef.nativeElement.value=this.phonePipe.transform(this.ngModel,this.uiMaskPhone||""),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.phonePipe.transform(this.elementRef.nativeElement.value,this.uiMaskPhone||"")},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,this.maxLength)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<this.maxLength-1?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),"ddi"===this.uiMaskPhone?(this.ngModel&&"1"===this.ngModel.substring(0,1)?(this.maxLength=11,3===t&&(this.beforeSelIndex=4,t=5)):(this.maxLength=13,4===t&&(this.beforeSelIndex=5,t=6)),8===t&&(this.beforeSelIndex=9,t=10)):4===t&&(this.beforeSelIndex=5,t=6),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Fe}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"uiMaskPhone",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskPhone][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Fe]}),f("design:paramtypes",[t.ElementRef,Fe])],e)}(),Be=function(){function e(){}return e.prototype.ngOnChanges=function(){var e,t,n=this;if(!this.list)return console.error('É obrigatório fornecer a model "list"'),!1;this.itemModel||(this.itemModel={id:"id",parentId:"parentId",name:"name",url:"url",icon:"icon"}),this.list.forEach((function(e){Object.keys(n.itemModel).forEach((function(t){var i=n.itemModel[t];!function(e,t,n){if(!e.hasOwnProperty(t)||t===n)return!1;e[n]=e[t],delete e[t]}(e,i,t)}))})),this.list=(e=this.list,t=[],function e(t,n){for(var i,o=function(o){i=[];var r=t[o],s=n.filter((function(e){return e.parentId!==r.id&&i.push(e),e.parentId===r.id}));s.length&&(r.childs=s,i=e(r.childs,i)[1])},r=0;r<t.length;r++)o(r);return[t,i]}(e.filter((function(e){return null!==e.parentId&&t.push(e),null===e.parentId})),t)[0])},h([t.Input(),f("design:type",Object)],e.prototype,"list",void 0),h([t.Input("item-model"),f("design:type",Object)],e.prototype,"itemModel",void 0),e=h([t.Component({selector:"ui-list",template:'<ng-container>\r\n <div class="ui-list">\r\n <ng-content></ng-content>\r\n <ui-list-items [items]="list"></ui-list-items>\r\n </div>\r\n</ng-container>\r\n',encapsulation:t.ViewEncapsulation.None}),f("design:paramtypes",[])],e)}();var He,qe=function(){function e(){}return e.prototype.ngOnInit=function(){},h([t.Input(),f("design:type",Object)],e.prototype,"items",void 0),e=h([t.Component({selector:"ui-list-items",template:'<div *ngFor="let item of items">\r\n <ui-list-item [item]="item"></ui-list-item>\r\n</div>\r\n'}),f("design:paramtypes",[])],e)}(),We=function(){function e(){}return e.prototype.ngOnInit=function(){},h([t.Input(),f("design:type",Object)],e.prototype,"item",void 0),e=h([t.Component({selector:"ui-list-item",template:'<div *ngIf="!item.childs && !item.url" class="ui-list-item disabled">\r\n <span *ngIf="!!item.icon" class="icon">\r\n <i *ngIf="item.icon.material" class="material-icons">{{item.icon.material}}</i>\r\n <img *ngIf="!!item.icon.img" [src]="item.icon.img" style="width:24px;height:24px"/>\r\n </span>\r\n {{item.name}}\r\n</div>\r\n<a *ngIf="!item.childs && item.url" class="ui-list-item" uiRipple\r\n [routerLink]="item.url ? [item.url] : null"\r\n [routerLinkActive]="[\'active\']">\r\n <span *ngIf="!!item.icon" class="icon">\r\n <i *ngIf="item.icon.material" class="material-icons">{{item.icon.material}}</i>\r\n <img *ngIf="!!item.icon.img" [src]="item.icon.img" style="width:24px;height:24px"/>\r\n </span>\r\n {{item.name}}\r\n</a>\r\n<div *ngIf="item.childs">\r\n <div class="ui-list-item" uiRipple [uiListItem]="childs">\r\n <span *ngIf="!!item.icon" class="icon">\r\n <i *ngIf="item.icon.material" class="material-icons">{{item.icon.material}}</i>\r\n <img *ngIf="!!item.icon.img" [src]="item.icon.img" style="width:24px;height:24px"/>\r\n </span>\r\n {{item.name}}\r\n <span class="arrow"><i class="material-icons">keyboard_arrow_down</i></span>\r\n </div>\r\n <div class="ui-list-item-group" #childs>\r\n <div>\r\n <ui-list-items [items]="item.childs"></ui-list-items>\r\n </div>\r\n </div>\r\n</div>\r\n'}),f("design:paramtypes",[])],e)}(),_e=function(){function e(e){this.elementRef=e,this.valueChange=new t.EventEmitter,this.viewFormat||(this.viewFormat=function(e){return e})}return e.prototype.ngOnInit=function(){this.percentageBlock=100/(this.range.length-1),this.value=this.value||this.range[0],this.valueModel=this.closestNumber(this.value).index||this.range[0]},e.prototype.ngOnChanges=function(e){!e.value||e.value.firstChange||this.mouseDown||(this.valueModel=this.closestNumber(e.value.currentValue).index),!e.color||e.color.firstChange||this.mouseDown||(this.color=e.color.currentValue),!e.textColor||e.textColor.firstChange||this.mouseDown||(this.textColor=e.textColor.currentValue)},e.prototype.ngAfterViewInit=function(){this.valueElement=this.elementRef.nativeElement.querySelectorAll(".thumb-container")[0],this.registerEventsListeners()},e.prototype.registerEventsListeners=function(){var e=this;v.on(this.valueElement,"mousedown touchstart",(function(){e.disabled||(e.mouseDown=!0,e.toggleTackOn(!0),e.toggleBalloon(!0,0),e.valueElement.classList.add("active"))})),v.on(document,"mouseup touchend",(function(t){e.disabled||(e.valueElement.classList.remove("active"),e.mouseDown&&(t.pageX||t.originalEvent)&&e.change(t,!0),e.mouseDown=!1,e.toggleBalloon(),e.toggleTackOn())})),v.on(document,"mousemove touchmove",(function(t){e.mouseDown&&!e.disabled&&e.change(t)}))},e.prototype.change=function(e,t){var n=e.pageX||(e.touches?e.touches[0].pageX:null)||(e.changedTouches?e.changedTouches[0].pageX:null),i=this.getPositionInIndex(n),o=this.closestNumber(this.range[Math.round(i)]);t&&(i=o.index),this.value=o.value,this.valueModel=i,this.valueChange.emit(this.value)},e.prototype.toggleBalloon=function(e,t){var n=this.elementRef.nativeElement.querySelectorAll(".balloon-wrap")[0];n&&(e?(n.style.right="number"==typeof t?t:"",n.classList.add("active")):n.classList.remove("active"))},e.prototype.toggleTackOn=function(e){var t=e?"add":"remove";this.elementRef.nativeElement.querySelectorAll(".track.on")[0].classList[t]("no-transition")},e.prototype.getPositionInIndex=function(e){var t=this.elementRef.nativeElement.querySelectorAll(".track.off")[0];return e=(e=(e-=v.position(t).left)/t.clientWidth*100)>100?100:e<0?0:e,(this.range.length-1)/100*e},e.prototype.closestNumber=function(e){for(var t,n=this.range[0],i=Math.abs(e-n),o=0,r=0;r<this.range.length;r++)(t=Math.abs(e-this.range[r]))<i&&(i=t,n=this.range[r],o=r);return{index:o,value:n}},e.prototype.getPercentage=function(){return this.percentageBlock*this.valueModel},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"hideBalloon",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"begin",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"end",void 0),h([t.Input(),f("design:type",String)],e.prototype,"direction",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Array)],e.prototype,"range",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input("text-color"),f("design:type",String)],e.prototype,"textColor",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"valueChange",void 0),h([t.Input("view-format"),f("design:type",Function)],e.prototype,"viewFormat",void 0),e=h([t.Component({selector:"ui-slider[value]",template:'<div class="track off"></div>\r\n<div class="points" [ngClass]="{\'disabled\': disabled, \'show\': mouseDown}">\r\n <div class="point" *ngFor="let value of range"></div>\r\n</div>\r\n<div class="track on"\r\n [ngClass]="{\'disabled\': disabled}"\r\n [ngStyle]="{\'left\': getPercentageLeft ? getPercentageLeft() + \'%\' : 0,\r\n \'right\': getPercentageRight ? getPercentageRight() + \'%\' : \'\',\r\n \'width\': getPercentage ? getPercentage() + \'%\': \'\',\r\n \'background-color\': color || \'\'}">\r\n <div class="balloon-wrap" *ngIf="!hideBalloon">\r\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="36px" height="36px" viewBox="0 0 36 36" enable-background="new 0 0 36 36" xml:space="preserve">\r\n <path [style.fill]="color || \'\'" d="M31.948,13.996c-0.146-5.378-4.016-8.907-4.016-8.907C23.222,0.624,18.163,0.993,18,1.006\r\n c-0.163-0.013-5.222-0.382-9.931,4.083c0,0-3.87,3.528-4.016,8.907c0,0-0.497,3.41,1.572,7.205c0,0,0.864,2.126,4.765,6.678\r\n c0,0,3.406,3.846,7.595,7.089v0.024c0.005-0.004,0.01-0.008,0.015-0.012c0.005,0.004,0.01,0.008,0.015,0.012v-0.024\r\n c4.19-3.244,7.595-7.089,7.595-7.089c3.901-4.552,4.765-6.678,4.765-6.678C32.445,17.405,31.948,13.996,31.948,13.996z"/>\r\n </svg>\r\n <div class="value" [style.color]="textColor || \'\'">\r\n {{viewFormat(multiHandle ? direction === \'begin\' ? begin : end : value)}}\r\n </div>\r\n </div>\r\n <div class="thumb-container left" tabindex="1" *ngIf="multiHandle" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n <div class="thumb-container right" tabindex="1" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n</div>\r\n',styles:[':host{display:block;position:relative}:host .track{height:2px}:host .track.on{position:absolute;top:0;transition:left 280ms,right 280ms,width 280ms,background 280ms}:host .track.on.no-transition{transition:none}:host .track.on.disabled{background-color:transparent}:host .track.on.disabled .thumb-container{background-color:#bdbdbd}:host .track.on.disabled .thumb-container:focus::before{transform:scale(0)}:host .track.on.disabled .thumb-container .thumb{width:8px;height:8px;background-color:inherit}:host .track.on .thumb-container{position:absolute;top:1px;border-radius:50%;transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container.left{left:0;transform:scale(1) translate(-50%,-50%)}:host .track.on .thumb-container.right{right:0;transform:scale(1) translate(50%,-50%)}:host .track.on .thumb-container .thumb{position:relative;width:12px;height:12px;border-radius:50%;transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container::before{content:"";position:absolute;width:32px;height:32px;top:-10px;left:-10px;border-radius:50%;transform:scale(0);transition:transform 280ms cubic-bezier(0,0,.2,1);background-color:inherit;opacity:.1}:host .track.on .thumb-container:focus::before{transform:scale(1)}:host .track.on .thumb-container.active::before{transform:scale(0)}:host .track.on .thumb-container.active .thumb{width:18px;height:18px}:host .track.on .balloon-wrap{position:absolute;top:-42px;transition:transform 280ms cubic-bezier(0,0,.2,1),width 280ms cubic-bezier(0,0,.2,1);z-index:1;transform:scale(0);transform-origin:bottom;cursor:default;margin-left:-18px;margin-right:-18px;width:36px}:host .track.on .balloon-wrap.active{transform:scale(1)}:host .track.on .balloon-wrap .value{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;font-size:10px;padding-top:9px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .track.on .balloon-wrap~.thumb-container{transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container::before{transition:transform 280ms cubic-bezier(0,0,.2,1) 280ms}:host .track.on .balloon-wrap~.thumb-container .thumb{transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container.active{pointer-events:auto}:host .track.on .balloon-wrap~.thumb-container.active .thumb{width:0;height:0}:host .track.on .balloon-wrap~.thumb-container.active::before{transition:none}:host .points{margin-top:-2px;width:100%;display:flex;align-items:center;justify-content:space-between}:host .points .point{padding:1px;border-radius:50%;transform:scale(0)}:host .points.show .point{transform:scale(1)}:host .points.disabled .point{background-color:transparent}']}),f("design:paramtypes",[t.ElementRef])],e)}(),Ye=function(){function e(e){this.elementRef=e,this.beginChange=new t.EventEmitter,this.endChange=new t.EventEmitter,this.viewFormat||(this.viewFormat=function(e){return e})}return e.prototype.ngOnInit=function(){this.bodyElement=document.body,this.htmlElement=document.documentElement,this.multiHandle=!0,this.percentageBlock=100/(this.range.length-1),this.begin=this.begin||this.range[0],this.end=this.end||this.range[0],this.beginModel=this.closestNumber(this.begin).index||this.range[0],this.endModel=this.closestNumber(this.end).index||this.range[0]},e.prototype.ngOnChanges=function(e){!e.begin||e.begin.firstChange||this.mouseDown||(this.beginModel=this.closestNumber(this.begin).index),!e.end||e.end.firstChange||this.mouseDown||(this.endModel=this.closestNumber(this.end).index),!e.color||e.color.firstChange||this.mouseDown||(this.color=e.color.currentValue),!e.textColor||e.textColor.firstChange||this.mouseDown||(this.textColor=e.textColor.currentValue)},e.prototype.ngAfterViewInit=function(){this.thumbs=this.elementRef.nativeElement.querySelectorAll(".thumb-container"),this.beginElement=this.thumbs[0],this.endElement=this.thumbs[1],this.registerEventsListeners()},e.prototype.registerEventsListeners=function(){var e=this;v.on(this.beginElement,"mousedown touchstart",(function(t){e.disabled||(t.stopImmediatePropagation(),e.direction="begin",e.toggleBalloon(!0),e.beginElement.classList.add("active"),e.endElement.classList.remove("active"))})),v.on(this.thumbs,"mousedown touchstart",(function(t){e.disabled||(t.stopImmediatePropagation(),e.mouseDown=!0,e.toggleTackOn(!0),v.disableScroll())})),v.on(this.endElement,"mousedown touchstart",(function(t){e.disabled||(t.stopImmediatePropagation(),e.direction="end",e.toggleBalloon(!0,0),e.endElement.classList.add("active"),e.beginElement.classList.remove("active"))})),v.on(document,"mouseup touchend",(function(t){e.disabled||(e.beginElement.classList.remove("active"),e.endElement.classList.remove("active"),e.mouseDown&&(t.pageX||t.originalEvent)&&e.change(t,!0),e.mouseDown=!1,e.toggleBalloon(),e.toggleTackOn(),v.enableScroll())})),v.on(document,"mousemove touchmove",(function(t){e.mouseDown&&!e.disabled&&e.change(t)}))},e.prototype.change=function(e,t){var n=e.pageX||(e.touches?e.touches[0].pageX:null)||(e.changedTouches?e.changedTouches[0].pageX:null),i=this.getPositionInIndex(n),o=this.closestNumber(this.range[Math.round(i)]);t&&(i=o.index),"begin"===this.direction&&this.beginModel>=this.endModel?(this[this.direction+"Model"]=o.index,this.direction="end",v.trigger(this.endElement,"mousedown"),this.endElement.focus()):"end"===this.direction&&this.endModel<this.beginModel&&(this[this.direction+"Model"]=o.index,this.direction="begin",v.trigger(this.beginElement,"mousedown"),this.beginElement.focus()),this[this.direction]=o.value,this[this.direction+"Model"]=i,this[this.direction+"Change"].emit(this[this.direction])},e.prototype.toggleBalloon=function(e,t){var n=this.elementRef.nativeElement.querySelectorAll(".balloon-wrap")[0];n&&(e?(n.style.right="number"==typeof t?t:"",n.classList.add("active")):n.classList.remove("active"))},e.prototype.toggleTackOn=function(e){var t=e?"add":"remove";this.elementRef.nativeElement.querySelectorAll(".track.on")[0].classList[t]("no-transition")},e.prototype.getPositionInIndex=function(e){var t=this.elementRef.nativeElement.querySelectorAll(".track.off")[0];return e=(e=(e-=v.position(t).left)/t.clientWidth*100)>100?100:e<0?0:e,(this.range.length-1)/100*e},e.prototype.closestNumber=function(e){for(var t,n=this.range[0],i=Math.abs(e-n),o=0,r=0;r<this.range.length;r++)(t=Math.abs(e-this.range[r]))<i&&(i=t,n=this.range[r],o=r);return{index:o,value:n}},e.prototype.getPercentageLeft=function(){return this.percentageBlock*this.beginModel},e.prototype.getPercentageRight=function(){return this.percentageBlock*Math.abs(this.endModel-(this.range.length-1))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"hideBalloon",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"begin",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"end",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Array)],e.prototype,"range",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input("text-color"),f("design:type",String)],e.prototype,"textColor",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"beginChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"endChange",void 0),h([t.Input("view-format"),f("design:type",Function)],e.prototype,"viewFormat",void 0),e=h([t.Component({selector:"ui-slider[begin][end]",template:'<div class="track off"></div>\r\n<div class="points" [ngClass]="{\'disabled\': disabled, \'show\': mouseDown}">\r\n <div class="point" *ngFor="let value of range"></div>\r\n</div>\r\n<div class="track on"\r\n [ngClass]="{\'disabled\': disabled}"\r\n [ngStyle]="{\'left\': getPercentageLeft ? getPercentageLeft() + \'%\' : 0,\r\n \'right\': getPercentageRight ? getPercentageRight() + \'%\' : \'\',\r\n \'width\': getPercentage ? getPercentage() + \'%\': \'\',\r\n \'background-color\': color || \'\'}">\r\n <div class="balloon-wrap" *ngIf="!hideBalloon">\r\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="36px" height="36px" viewBox="0 0 36 36" enable-background="new 0 0 36 36" xml:space="preserve">\r\n <path [style.fill]="color || \'\'" d="M31.948,13.996c-0.146-5.378-4.016-8.907-4.016-8.907C23.222,0.624,18.163,0.993,18,1.006\r\n c-0.163-0.013-5.222-0.382-9.931,4.083c0,0-3.87,3.528-4.016,8.907c0,0-0.497,3.41,1.572,7.205c0,0,0.864,2.126,4.765,6.678\r\n c0,0,3.406,3.846,7.595,7.089v0.024c0.005-0.004,0.01-0.008,0.015-0.012c0.005,0.004,0.01,0.008,0.015,0.012v-0.024\r\n c4.19-3.244,7.595-7.089,7.595-7.089c3.901-4.552,4.765-6.678,4.765-6.678C32.445,17.405,31.948,13.996,31.948,13.996z"/>\r\n </svg>\r\n <div class="value" [style.color]="textColor || \'\'">\r\n {{viewFormat(multiHandle ? direction === \'begin\' ? begin : end : value)}}\r\n </div>\r\n </div>\r\n <div class="thumb-container left" tabindex="1" *ngIf="multiHandle" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n <div class="thumb-container right" tabindex="1" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n</div>\r\n',styles:[':host{display:block;position:relative}:host .track{height:2px}:host .track.on{position:absolute;top:0;transition:left 280ms,right 280ms,width 280ms,background 280ms}:host .track.on.no-transition{transition:none}:host .track.on.disabled{background-color:transparent}:host .track.on.disabled .thumb-container{background-color:#bdbdbd}:host .track.on.disabled .thumb-container:focus::before{transform:scale(0)}:host .track.on.disabled .thumb-container .thumb{width:8px;height:8px;background-color:inherit}:host .track.on .thumb-container{position:absolute;top:1px;border-radius:50%;transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container.left{left:0;transform:scale(1) translate(-50%,-50%)}:host .track.on .thumb-container.right{right:0;transform:scale(1) translate(50%,-50%)}:host .track.on .thumb-container .thumb{position:relative;width:12px;height:12px;border-radius:50%;transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container::before{content:"";position:absolute;width:32px;height:32px;top:-10px;left:-10px;border-radius:50%;transform:scale(0);transition:transform 280ms cubic-bezier(0,0,.2,1);background-color:inherit;opacity:.1}:host .track.on .thumb-container:focus::before{transform:scale(1)}:host .track.on .thumb-container.active::before{transform:scale(0)}:host .track.on .thumb-container.active .thumb{width:18px;height:18px}:host .track.on .balloon-wrap{position:absolute;top:-42px;transition:transform 280ms cubic-bezier(0,0,.2,1),width 280ms cubic-bezier(0,0,.2,1);z-index:1;transform:scale(0);transform-origin:bottom;cursor:default;margin-left:-18px;margin-right:-18px;width:36px}:host .track.on .balloon-wrap.active{transform:scale(1)}:host .track.on .balloon-wrap .value{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;font-size:10px;padding-top:9px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .track.on .balloon-wrap~.thumb-container{transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container::before{transition:transform 280ms cubic-bezier(0,0,.2,1) 280ms}:host .track.on .balloon-wrap~.thumb-container .thumb{transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container.active{pointer-events:auto}:host .track.on .balloon-wrap~.thumb-container.active .thumb{width:0;height:0}:host .track.on .balloon-wrap~.thumb-container.active::before{transition:none}:host .points{margin-top:-2px;width:100%;display:flex;align-items:center;justify-content:space-between}:host .points .point{padding:1px;border-radius:50%;transform:scale(0)}:host .points.show .point{transform:scale(1)}:host .points.disabled .point{background-color:transparent}']}),f("design:paramtypes",[t.ElementRef])],e)}(),Ue=function(){function e(){}return e.prototype.register=function(e,t,n){var i=this;void 0===n&&(n="vertical"),this.element=e,this.func=t,this.listener=function(){if("vertical"===n){var e=(i.element.scrollHeight||document.documentElement.scrollHeight)-(i.element.clientHeight||i.element.innerHeight);(i.element.scrollTop||i.element.scrollY)>=e-.1*e&&t()}else{var o=(i.element.scrollWidth||document.documentElement.scrollWidth)-(i.element.clientWidth||i.element.innerWidth);(i.element.scrollLeft||i.element.scrollX)>=o-.1*o&&t()}},this.element.addEventListener("scroll",this.listener),this.readyToCheck=!0},e.prototype.destroy=function(){this.element.removeEventListener("scroll",this.listener),this.readyToCheck=!1},e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),Xe=function(){function e(e,n){this.element=e,this.infiniteLoad=n,this.uiInfiniteLoad=new t.EventEmitter,this.orientation="vertical"}return e.prototype.ngAfterViewInit=function(){var e=this;this.infiniteLoad.register(this.element.nativeElement,(function(){e.uiInfiniteLoad.emit()}),this.orientation)},e.prototype.ngDoCheck=function(){this.infiniteLoad.listener&&this.infiniteLoad.listener()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Ue}]},h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"uiInfiniteLoad",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"orientation",void 0),e=h([t.Directive({selector:"[uiInfiniteLoad]"}),f("design:paramtypes",[t.ElementRef,Ue])],e)}(),Ge=function(){function e(){}return e.prototype.selectItem=function(e){this.selectChange.emit(e)},e.prototype.loadMoreEmit=function(){var e=this;setTimeout((function(){return e.loadMore.emit()}))},e=h([t.Component({selector:"ui-autocomplete",template:'<ui-card class="suggestions" tabindex="-1" [ngClass]="{\'has-secondary\': !!secondary}" (uiInfiniteLoad)="loadMoreEmit()">\r\n <div class="suggestions-wrap">\r\n <div class="ui-progress" [ngClass]="{\'hide\': !loading, \'accent\': accentClass}" style="position: absolute">\r\n <div class="indeterminate"></div>\r\n </div>\r\n <ul class="ui-list">\r\n <li class="multi-line" uiRipple\r\n *ngFor="let item of list; let index = index"\r\n (click)="selectItem(item)"\r\n [ngClass]="{\'focused\': index === focusedIndex, \'accent\': accentClass}"\r\n [style.transition-delay]="(index > 5 ? 0: 100 + (index * 50)) + \'ms\'">\r\n <div class="lines" *ngIf="secondary">\r\n <div class="primary">{{item[primary] || item[secondary]}}</div>\r\n <div class="secondary">{{item[primary] ? item[secondary] : null}}</div>\r\n </div>\r\n <span *ngIf="!secondary" class="primary">{{item[primary] || item}}</span>\r\n </li>\r\n <li *ngIf="!list.length && !hideNotFound" class="not-found">\r\n <span *ngIf="ngModel">Nenhum registro encontrado para "{{ngModel}}"</span>\r\n <span *ngIf="!ngModel">Nenhum registro encontrado</span>\r\n </li>\r\n </ul>\r\n </div>\r\n</ui-card>\r\n',styles:[":host{display:block}:host .suggestions{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 15px 0 rgba(0,0,0,.2);overflow-y:auto}:host .suggestions .suggestions-wrap .ui-list{padding:0}:host .suggestions .suggestions-wrap .ui-list .not-found,:host .suggestions .suggestions-wrap .ui-list .not-found span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::ng-deep .wrap-autocomplete{position:absolute;z-index:2;transition:top 280ms,left 280ms}::ng-deep .wrap-autocomplete .overlay{overflow:hidden}::ng-deep .wrap-autocomplete ui-autocomplete>.suggestions:not(.nothing){transition:max-height 280ms cubic-bezier(.4,0,.6,1),opacity 280ms cubic-bezier(.4,0,.6,1);z-index:3;max-height:0}::ng-deep .wrap-autocomplete ui-autocomplete>.suggestions:not(.nothing) .ui-list li{transition:opacity 280ms cubic-bezier(.4,0,.6,1),transform 280ms cubic-bezier(.4,0,.6,1);opacity:0;transform:translateY(-8px)}::ng-deep .wrap-autocomplete.open ui-autocomplete>.suggestions:not(.nothing){max-height:240px;-webkit-animation:280ms cubic-bezier(.4,0,.6,1) hide-overflow;animation:280ms cubic-bezier(.4,0,.6,1) hide-overflow}::ng-deep .wrap-autocomplete.open ui-autocomplete>.suggestions:not(.nothing).has-secondary{max-height:370px}::ng-deep .wrap-autocomplete.open ui-autocomplete>.suggestions:not(.nothing) .ui-list li{opacity:1;transform:translateY(0)}::ng-deep .wrap-autocomplete:not(.open) ui-autocomplete>.suggestions:not(.nothing){overflow:hidden}@-webkit-keyframes hide-overflow{0%,99.99%{overflow:hidden}100%{overflow:auto}}@keyframes hide-overflow{0%,99.99%{overflow:hidden}100%{overflow:auto}}::ng-deep .wrap-dialog+.wrap-autocomplete{z-index:5}"]})],e)}(),$e=function(){function e(e,n,i,o){this.componentFactoryResolver=e,this.applicationRef=n,this.injector=i,this.elementRef=o,this.loadMore=new t.EventEmitter,this.loadMoreEmmiter=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.modelValueChange=new t.EventEmitter,this.selectChange=new t.EventEmitter,this.requiredChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnInit=function(){var e=this;this.selectChange.subscribe((function(t){e.ngModel=t[e.primary]||t,e.modelValue=e.modelProperty&&t&&"object"==typeof t?t[e.modelProperty]:t,e.ngModelChange.emit(e.ngModel),e.modelValueChange.emit(e.modelValue),e.select&&e.select(t),e.elementRef.nativeElement.blur(),e.close()}))},e.prototype.ngAfterViewInit=function(){var e=this;v.on(window,"click resize",(function(t){e.componentRef&&(v.is(t.target,".wrap-autocomplete")||v.closest(t.target,".wrap-autocomplete")||v.is(t.target,".overlay")||t.target===e.elementRef.nativeElement||e.close())}))},e.prototype.ngOnChanges=function(e){var t=this;e.ngModel&&!e.ngModel.firstChange&&this.componentRef&&(this.componentRef.instance.ngModel=e.ngModel.currentValue),e.list&&!e.list.firstChange&&this.componentRef&&(this.componentRef.instance.list=e.list.currentValue,setTimeout((function(){var e=v.position(t.elementRef.nativeElement),n={x:e.left,y:e.top+1};t.setPosition(n,t.componentElement)}))),e.loading&&!e.loading.firstChange&&this.componentRef&&(this.componentRef.instance.loading=e.loading.currentValue)},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(Ge);this.componentRef=e.create(this.injector)},e.prototype.getComponentAsElement=function(){return this.componentRef.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){["ngModel","list","primary","secondary","selectChange","loading","accentClass","loadMore","hideNotFound"].forEach((function(n){t.instance[n]=e[n]}))},e.prototype.render=function(e,t){var n=this;this.createWrapElement(),this.wrapElement.appendChild(e),document.body.appendChild(this.wrapElement),setTimeout((function(){n.setPosition(t,e),n.wrapElement.classList.add("open")}))},e.prototype.createWrapElement=function(){this.wrapElement=document.createElement("div"),this.wrapElement.classList.add("wrap-autocomplete");var e=document.createElement("div");e.classList.add("overlay"),this.themeClass&&this.wrapElement.classList.add(this.themeClass),v.css(this.wrapElement,"top",0),v.css(this.wrapElement,"left",0),v.css(this.wrapElement,"visibility","hidden"),v.css(this.wrapElement,"transition","none"),this.wrapElement.appendChild(e)},e.prototype.setFocusIndex=function(e){this.componentRef.instance.focusedIndex=e},e.prototype.close=function(){var e=this;this.wrapElement&&(this.wrapElement.classList.remove("open"),setTimeout((function(){e.componentRef&&(e.applicationRef.detachView(e.componentRef.hostView),e.componentRef=null,e.wrapElement.remove())}),280))},e.prototype.initialize=function(){this.focusedIndex=void 0,this.accentClass=this.elementRef.nativeElement.classList.contains("accent");var e=v.position(this.elementRef.nativeElement),t={x:e.left,y:e.top+1};this.componentRef||(this.createComponent(),this.setInstances(this,this.componentRef),this.applicationRef.attachView(this.componentRef.hostView),this.componentElement=this.getComponentAsElement(),this.render(this.componentElement,t))},e.prototype.setPosition=function(e,t){var n=t.querySelector(".suggestions-wrap"),i=this.secondary?370:240,o=e.x+n.clientWidth,r=e.y+(n.clientHeight>i?i:n.clientHeight),s=window.innerWidth+(document.body.scrollLeft||window.scrollX||window.pageXOffset),a=window.innerHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);o>s&&(e.x=s-(n.clientWidth+8)),e.x<=8&&(e.x=8),r>a&&(e.y=e.y-((n.clientHeight>i?i:n.clientHeight)+this.elementRef.nativeElement.clientHeight)-14),v.css(this.wrapElement,"top",e.y+this.elementRef.nativeElement.clientHeight+"px"),v.css(this.wrapElement,"left",e.x+"px"),v.css(this.wrapElement,"width",this.elementRef.nativeElement.clientWidth+"px"),v.css(this.wrapElement,"visibility",""),v.css(this.wrapElement,"transition","")},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.validate=function(e){return this.control=e,this.elementRef.nativeElement.hasAttribute("required")&&!e.value?{required:!0}:null},e.prototype.onInput=function(){this.ngModel&&this.modelValue&&this.ngModel===this.modelValue||(this.modelValue=null,this.modelValueChange.emit(this.modelValue),this.control.updateValueAndValidity())},e.prototype.onFocus=function(){this.hidePanel||this.initialize()},e.prototype.onClick=function(){this.hidePanel||this.initialize()},e.prototype.onBlur=function(e){this.hidePanel||e.relatedTarget===this.componentElement.querySelector("ui-card.suggestions")||this.close()},e.prototype.onKeydown=function(e){if(this.componentRef)switch(void 0===this.focusedIndex&&(this.focusedIndex=-1),e.which){case 8:case 37:this.elementRef.nativeElement.focus();break;case 38:this.focusedIndex=this.list.length?this.focusedIndex?this.focusedIndex-1:this.list.length-1:null,this.setFocusIndex(this.focusedIndex);break;case 40:this.focusedIndex=this.list.length?this.list.length-1===this.focusedIndex?0:this.focusedIndex+1:null,this.setFocusIndex(this.focusedIndex);break;case 13:this.list&&"number"==typeof this.focusedIndex&&-1!==this.focusedIndex&&this.selectChange.emit(this.list[this.focusedIndex]),event.preventDefault()}},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:t.ElementRef}]},h([t.Input(),f("design:type",Array)],e.prototype,"list",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"modelValue",void 0),h([t.Input("model-property"),f("design:type",Object)],e.prototype,"modelProperty",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"select",void 0),h([t.Input(),f("design:type",String)],e.prototype,"primary",void 0),h([t.Input(),f("design:type",String)],e.prototype,"secondary",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"loading",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"hideNotFound",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"hidePanel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"loadMore",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"loadMoreEmmiter",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"modelValueChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"selectChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"requiredChange",void 0),h([t.HostListener("input"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),h([t.HostListener("blur",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onBlur",null),h([t.HostListener("keydown",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),e=i=h([t.Directive({selector:"[uiAutocomplete]",providers:[{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[t.ComponentFactoryResolver,t.ApplicationRef,t.Injector,t.ElementRef])],e)}(),Ke=function(){function e(e){this.elementRef=e,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),void 0!==e.max&&(this.max=e.max.currentValue),void 0!==e.min&&(this.min=e.min.currentValue)},e.prototype.ngOnInit=function(){switch(this.uiMaskInteger){case"smallint":this.min=-32768,this.max=32768;break;case"bigint":this.min=-0x8000000000000000,this.max=0x8000000000000000;break;case"integer":this.min=-2147483648,this.max=2147483647}},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){if(this.control&&this.loaded&&e&&this.control.markAsDirty(),!this.input){var t=parseInt(this.ngModel,10);this.elementRef.nativeElement.value="number"==typeof this.ngModel?this.ngModel:Number.isNaN(t)?"":t}this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.ngModel||""},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return e.toString().replace(/[^0-9]+/g,"")||void 0},e.prototype.validate=function(e){return this.control=e,void 0!==this.min&&e.value&&this.format(e.value)<this.min?{min:!0}:void 0!==this.max&&e.value&&this.format(e.value)>this.max?{max:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onInput=function(e){var t=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(t)},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"uiMaskInteger",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"min",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskInteger][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[t.ElementRef])],e)}(),Ze=function(){function e(e){var t=this;this.element=e,this.onScroll=function(){return t.tabsScroll(0)},this.disabled=[]}return e.prototype.ngOnInit=function(){this.internetExplorer=navigator.userAgent.includes("Trident")},e.prototype.ngAfterViewInit=function(){for(var e=this.element.nativeElement.querySelectorAll(".tab"),t=this.element.nativeElement.querySelector(".indicator"),n=0;n<e.length;n++)e[n].classList.contains("disabled")&&e[n].classList.remove("disabled");for(n=0;n<this.disabled.length;n++)e[this.disabled[n]].classList.add("disabled");var i,o=this;function r(n,r){for(var s=0;s<e.length;s++){var a=e[s];a!==n&&a.classList.contains("selected")&&(v.css(t,"left",v.offset(a).left+"px"),v.css(t,"width",a.offsetWidth+"px"),a.classList.remove("selected"))}v.css(t,"left",v.offset(n).left+"px"),v.css(t,"width",n.offsetWidth+"px"),clearTimeout(i),i=setTimeout((function(){n.classList.add("selected"),v.css(t,"width",""),v.css(t,"left","")}),280);var l=o.element.nativeElement.querySelector(".overflow");o.tabsScroll(v.offset(n).left-l.scrollLeft,r)}var s=function(t){var n=e[t];a.element.nativeElement.addEventListener("click",(function(e){e.target!==n||e.target.classList.contains("disabled")||r(n)}))},a=this;for(n=0;n<e.length;n++)s(n);var l=this.element.nativeElement.querySelector(".tab.first-selected");l&&r(l,!0),v.trigger(window,"scroll"),v.on(window,"scroll resize",this.onScroll)},e.prototype.ngOnChanges=function(e){var t=this;setTimeout((function(){t.ngAfterViewInit()}))},e.prototype.ngOnDestroy=function(){v.off(window,"scroll resize",this.onScroll)},e.prototype.tabsScroll=function(e,t){var n=this,i=this.element.nativeElement.querySelector(".overflow"),o=i.scrollLeft,r=i.scrollWidth-i.clientWidth,s=t||this.internetExplorer?1:280;void 0!==e?v.animate(i,"borderSpacing",o,o+e,s,null,(function(e){i.scrollLeft=e,o=i.scrollLeft,n.showLeftArrow=o>0,n.showRightArrow=o<r})):(this.showLeftArrow=o>0,this.showRightArrow=o<r),this.showRightArrow||this.infiniteLoad&&this.infiniteLoad()},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("infinite-load"),f("design:type",Object)],e.prototype,"infiniteLoad",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"watch",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"disabled",void 0),e=h([t.Component({selector:"ui-tabs",template:'<div class="tabs">\r\n <div class="overflow" (scroll)="tabsScroll()">\r\n <ng-content></ng-content>\r\n <div class="indicator"></div>\r\n </div>\r\n <div class="arrows">\r\n <div class="left" [class.show]="showLeftArrow">\r\n <div class="ui-button icon flat" uiRipple (click)="tabsScroll(-200)">\r\n <i class="material-icons">keyboard_arrow_left</i>\r\n </div>\r\n </div>\r\n <div class="right" [class.show]="showRightArrow">\r\n <div class="ui-button icon flat" uiRipple (click)="tabsScroll(200)">\r\n <i class="material-icons">keyboard_arrow_right</i>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n',styles:[":host{width:100%;display:block}:host .tabs{position:relative;overflow:hidden;z-index:2;width:100%;height:48px}:host .tabs .overflow{overflow-y:auto;position:relative;width:100%;height:100px;display:flex;transition:transform 280ms cubic-bezier(0,0,.2,1),padding-left 280ms cubic-bezier(0,0,.2,1)}:host .tabs .overflow ::ng-deep .tab{height:48px;display:flex;justify-content:center;align-items:center;padding:0 12px;text-transform:uppercase;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;text-align:center;transition:color 280ms cubic-bezier(0,0,.2,1),max-width 280ms cubic-bezier(0,0,.2,1)}@media (max-width:375px),only screen and (min-width:376px) and (max-width:763px){:host .tabs .overflow ::ng-deep .tab{min-width:72px}}:host:not(.scrollable) .tabs ::ng-deep .tab{width:100%}@media (min-width:763px){:host.scrollable:not(.no-padding) .tabs .overflow{padding-left:60px}}@media (max-width:1082px){:host-context(body.ui-nav-drawer-persistent).scrollable:not(.no-padding) .tabs .overflow{padding-left:0}}:host.scrollable .tabs .overflow ::ng-deep .tab{min-width:160px;max-width:264px}:host .tabs .overflow .indicator{position:absolute;height:2px;top:46px;transition:width 280ms cubic-bezier(0,0,.2,1),left 280ms cubic-bezier(0,0,.2,1)}:host .tabs .arrows{position:absolute;width:100%;top:0;left:0;right:0;height:100%;pointer-events:none;display:flex;align-items:center;cursor:default}:host .tabs .arrows .ui-button{margin:0}:host .tabs .arrows .left,:host .tabs .arrows .right{display:flex;justify-content:center;width:50px;transition:transform 280ms cubic-bezier(0,0,.2,1)}:host .tabs .arrows .left .ui-button,:host .tabs .arrows .right .ui-button{pointer-events:auto;transform:scale(0)}:host .tabs .arrows .left.show .ui-button,:host .tabs .arrows .right.show .ui-button{transform:scale(1)}:host .tabs .arrows .right{margin-left:auto}:host:not(.scrollable) .arrows{display:none!important}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),Je=function(){function e(e){this.element=e,this.onChangePage=new t.EventEmitter,this.currentPage=1}return e.prototype.ngAfterViewInit=function(){var e=this;if(this.tabs){var t,n,i,o,r,s,a,l=new X(this.tabs.element.nativeElement).querySelector(".tab"),c=this.element.nativeElement.querySelector(".page-container");c.addEventListener("touchstart",(function(t){if(s=l.indexOf(l.filter((function(e){return e.is(".selected")}))[0]),n=t.touches[0].pageX,o=t.touches[0].pageY,c.classList.add("no-transition"),e.enableOverflow)for(var i=new X(e.element.nativeElement).querySelector(".page-container .page"),r=0;r<i.length;r++)i[r].css("height","")})),c.addEventListener("touchmove",(function(l){if((n<0||n>40)&&(t=n-l.touches[0].pageX,i=o-l.touches[0].pageY,r||(t>20||t<-20?r="X":(i>20||i<-20)&&(r="Y")),t&&"X"===r)){v.disableScroll();for(var c=100*s*(s>0?-1:1),p=e.element.nativeElement.querySelectorAll(".page-container .page"),d=0;d<p.length;d++){var u=p[d];a=c-100/u.clientWidth*t,u.style.transform="translate("+a+"%)"}}})),c.addEventListener("touchend",(function(){if(c.classList.remove("no-transition"),t){var n=-1*Math.round(a/100);l[n]?l[n].trigger("click"):e.pagesGoToPage()}v.enableScroll(),r=void 0}))}this.pagesGoToPage(1)},e.prototype.pagesGoToPage=function(e){var t,n=this;if((t=this.tabs?new X(this.tabs.element.nativeElement).querySelector(".tab"):new X(this.element.nativeElement).querySelector(".page"))[e-1])for(var i=100*(e-1)*(e-1>0?-1:1),o=this.element.nativeElement.children[0].children,r=0;r<o.length;r++){o[r].style.transform="translate("+i+"%)"}else this.pagesGoToPage(t.indexOf(t.filter((function(e){return e.is(".selected")}))[0])+1);var s=new X(this.element.nativeElement),a=new X(this.element.nativeElement.children[0].children[e-1]),l=this.element.nativeElement.children[0].children;for(r=0;r<l.length;r++){if(e-1===r)new X(l[r]).css("height","")}if(this.firstLoad){var c=new X(this.element.nativeElement.children[0].children[this.currentPage-1]);s.css("height",c.nativeElement.clientHeight+"px")}else this.firstLoad=!0;a&&setTimeout((function(){s.css("height",a.nativeElement.clientHeight+"px"),clearTimeout(n.timeOutTurnBack),n.timeOutTurnBack=setTimeout((function(){s.css("height","");for(var t=0;t<l.length;t++){if(e-1!==t)new X(l[t]).css("height",0)}}),280)})),void 0!==e&&(this.currentPage=e,this.onChangePage&&setTimeout((function(){n.onChangePage.emit()})))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"tabs",void 0),h([t.Input("enable-overflow"),f("design:type",Boolean)],e.prototype,"enableOverflow",void 0),h([t.Output("onchangepage"),f("design:type",t.EventEmitter)],e.prototype,"onChangePage",void 0),e=h([t.Component({selector:"ui-tabs-pages",template:'<div class="page-container">\r\n <ng-content></ng-content>\r\n</div>\r\n',styles:[":host{width:100%;transition:height 280ms cubic-bezier(0,0,.2,1);overflow:hidden;display:block}:host .page-container{overflow:hidden;text-align:center;display:flex;justify-content:flex-start;max-width:100%;max-width:100vw}:host .page-container:not(.no-transition) ::ng-deep .page{transition:transform 280ms cubic-bezier(0,0,.2,1)}:host .page-container ::ng-deep .page{text-align:left;flex-shrink:0;width:100%;margin-bottom:auto}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),Qe=function(){function e(e){var t=this;this.element=e,this.elementRef=new X(e.nativeElement),this.elementRef.on("load",(function(){t.elementRef.classList.add("loaded")}))}return e.prototype.ngDoCheck=function(){!this.visible&&this.elementRef.isInViewport()&&(this.visible=!0,this.elementRef.attribute("src",this.lazySrc))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("lazy-src"),f("design:type",Object)],e.prototype,"lazySrc",void 0),e=h([t.Directive({selector:"[uiLazyLoad][lazy-src]"}),f("design:paramtypes",[t.ElementRef])],e)}(),et=function(){function e(e){this.element=e}return e.prototype.ngOnInit=function(){var e=new X(this.element.nativeElement).querySelector("tfoot");e&&this.tableFooter.nativeElement.appendChild(e.nativeElement)},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.ViewChild("tableFooter",{static:!0}),f("design:type",Object)],e.prototype,"tableFooter",void 0),e=h([t.Component({selector:"ui-data-table",template:'<div class="ui-table-overflow">\r\n <table class="ui-data-table">\r\n <ng-content></ng-content>\r\n </table>\r\n</div>\r\n<table class="ui-data-table" #tableFooter>\r\n</table>\r\n'}),f("design:paramtypes",[t.ElementRef])],e)}(),tt=function(){function e(e){this.elementRef=e,this.closeChange=new t.EventEmitter}return e.prototype.close=function(){var e=this;if(this.opened=!1,this.closeChange.emit(),this.viewRef){var t=new X(document).querySelector(".ui-fab-container");t.length&&t.classList.remove("hide"),this.viewRef.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),this.viewRef&&setTimeout((function(){e.viewRef.rootNodes.forEach((function(e){e.remove?e.remove():e.parentNode.removeChild(e)})),e.viewRef.destroy(),e.viewRef=null}),280),document.body.style.overflowY=""}},e.prototype.show=function(e){var t=this;if(!this.viewRef){this.close(),void 0===(e=e||{}).clickOverlayToClose?e.clickOverlayToClose=!0:e.clickOverlayToClose&&(e.clickOverlayToClose=JSON.parse(e.clickOverlayToClose)),this.viewRef=this.templateRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))}},e.prototype.open=function(e,t){var n=this;this.opened=!0,setTimeout((function(){setTimeout((function(){var i=e.querySelector("ui-card");i.className+=" "+n.elementRef.nativeElement.className,t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.cardSize&&(i.style.maxWidth=t.cardSize+"px"),!t.transparentOverlay&&t.fabs&&t.fabs.classList.add("hide"),e.querySelectorAll(".overlay")[0].addEventListener("click",(function(){n.close()})),e.style.transform="",e.classList.add("open")}))}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("card-size"),f("design:type",Number)],e.prototype,"cardSize",void 0),h([t.ViewChild(t.TemplateRef,{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"closeChange",void 0),e=h([t.Component({selector:"ui-bottom-sheet",template:'<ng-template>\r\n <div class="wrap-bottom-sheet">\r\n <div class="overlay"></div>\r\n <ui-card>\r\n <ng-content>\r\n </ng-content>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n',encapsulation:t.ViewEncapsulation.None,styles:[".wrap-bottom-sheet{position:fixed;top:0;left:0;right:0;bottom:0;z-index:5;display:flex;align-items:flex-end;justify-content:center;max-height:100%;overflow:hidden}.wrap-bottom-sheet ui-card{width:100%;max-height:100%;transform:translateY(100%);box-shadow:0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px 0 rgba(0,0,0,.2);transition:transform 195ms cubic-bezier(.4,0,1,1);border-top-left-radius:2px;border-top-right-radius:2px;overflow-y:auto}.wrap-bottom-sheet ui-card .header{padding:0 16px;min-height:56px;display:flex;align-items:center;font-size:16px;font-weight:500}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list){list-style:none;display:flex;flex-wrap:wrap}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) .ui-divider{min-width:100%;margin:0}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) li:not(.ui-divider){padding:24px;display:flex;align-items:center;justify-content:center;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;cursor:default}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) li:not(.ui-divider) .icon{width:48px;height:48px;margin-bottom:8px}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) li:not(.ui-divider) .icon i{font-size:48px}.wrap-bottom-sheet ui-card.grid ul.ui-list{display:flex;flex-wrap:wrap}.wrap-bottom-sheet ui-card.grid ul.col-2 li:not(.ui-divider){min-width:50%;max-width:50%}.wrap-bottom-sheet ui-card.grid ul.col-3 li:not(.ui-divider){min-width:33.3333333333%;max-width:33.3333333333%}.wrap-bottom-sheet ui-card.grid ul.col-4 li:not(.ui-divider){min-width:25%;max-width:25%}.wrap-bottom-sheet ui-card.grid .header~ul{padding-top:0}@media (max-width:600px){.wrap-bottom-sheet ui-card{max-width:100%!important;border-radius:0}}.wrap-bottom-sheet .overlay{transition:opacity 280ms;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wrap-bottom-sheet.open ui-card{transition:transform 195ms cubic-bezier(0,0,.2,1);transform:translateY(0)}.wrap-bottom-sheet.open .overlay{transition:opacity 280ms cubic-bezier(0,0,.2,1);opacity:1}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),nt=function(){function e(e,t){this.viewContainerRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.bottomSheet.closeChange.subscribe((function(){e.close()})),v.on(this.elementRef.nativeElement,this.triggerEvents||"click",(function(){e.render()}))},e.prototype.render=function(){var e=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.bottomSheet.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(t){document.body.appendChild(t),t.clientWidth&&e.open(t)}))},e.prototype.open=function(e){var t=this;setTimeout((function(){var n=e.querySelector("ui-card");n.className+=" "+t.bottomSheet.elementRef.nativeElement.className,t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.bottomSheet.cardSize&&(n.style.maxWidth=t.bottomSheet.cardSize+"px"),!t.transparentOverlay&&t.fabs&&t.fabs.classList.add("hide"),e.querySelectorAll(".overlay")[0].addEventListener("click",(function(){t.close()})),e.style.transform="",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.viewContainerRef.length){var t=this.viewRef;this.fabs&&this.fabs.classList.remove("hide"),t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.Input("trigger-events"),f("design:type",String)],e.prototype,"triggerEvents",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("transparent-overlay"),f("design:type",Boolean)],e.prototype,"transparentOverlay",void 0),h([t.Input("uiBottomSheetTrigger"),f("design:type",Object)],e.prototype,"bottomSheet",void 0),e=h([t.Directive({selector:"[uiBottomSheetTrigger]"}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),it=function(){function e(e,n){this.element=e,this.ngControl=n,this.filesChange=new t.EventEmitter,this.modelChange=new t.EventEmitter}return e.prototype.onChange=function(e){e.stopPropagation(),e.preventDefault(),this.readFiles(e.target.files)},e.prototype.readFiles=function(e){this.ngControl.control.markAsDirty(),this.ngControl.control.setErrors(null),this.model=[];for(var t=this.accept?this.accept.split(","):[],n=this.maxSize?this.toByte(this.maxSize):null,i=this.maxFileSize?this.toByte(this.maxFileSize):null,o=0,r=0;r<e.length;r++){var s=e[r];o+=s.size;var a=this.validateMaxSize(s.size,i),l=this.validateMaxSize(o,n),c=s.name.substring(s.name.lastIndexOf(".")+1),p=this.validateType(s,c,t);a&&this.ngControl.control.setErrors(Object.assign(this.ngControl.errors||{},{maxFileSize:!0})),p||this.ngControl.control.setErrors(Object.assign(this.ngControl.errors||{},{accept:!0})),this.validateMaxSize(o,n)&&this.ngControl.control.setErrors(Object.assign(this.ngControl.errors||{},{maxSize:!0})),!p||a||l?this.error&&this.error(s,{type:!p,maxSize:l,maxFileSize:a},r):(this.model.push({}),this.modelChange.emit(this.model),this.readFile(s,this.model[r],r))}this.files=e,this.filesChange.emit(this.files),this.fileChange&&this.fileChange(this.files,this.ngControl.control.invalid),this.element.nativeElement.value=""},e.prototype.validateType=function(e,t,n){if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i].trim(),r=o.match(/^[^\*]*\*$/)?new RegExp("^"+o):new RegExp("^"+o+"$");if(e.type.match(r)||t.match(r))return!0}return!1},e.prototype.validateMaxSize=function(e,t){return t&&e>t},e.prototype.toByte=function(e){var t=(e=e.toString()).match(/[a-zA-Z]+/g),n=t?t[0]:null,i=e.match(/\d+/),o=i?parseInt(i[0],10):null,r=o;switch(n){case"KB":r=1024*o;break;case"MB":r=o*Math.pow(1024,2);break;case"GB":r=o*Math.pow(1024,3);break;case"TB":r=o*Math.pow(1024,4);break;case"PB":r=o*Math.pow(1024,5);break;case"EB":r=o*Math.pow(1024,6);break;case"ZB":r=o*Math.pow(1024,7);break;case"YB":r=o*Math.pow(1024,8)}return r},e.prototype.readFile=function(e,t,n){var i=this;if("object"==typeof t){var o=new FileReader;t.resolved="false",o.onload=function(o){t.result=o.target.result,t.resolved=!0,i.modelChange.emit(i.model),i.read(e,t.result,n)},o.onerror=function(e){t.error=e.target.error,i.modelChange.emit(i.model)},o.onprogress=function(e){t.progress={loaded:e.loaded,total:e.total,percent:Math.round(e.loaded/e.total*100)},i.modelChange.emit(i.model)},o.readAsDataURL(e)}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:n.NgControl}]},h([t.Input(),f("design:type",Object)],e.prototype,"files",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"model",void 0),h([t.Input(),f("design:type",String)],e.prototype,"accept",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"read",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"error",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"fileChange",void 0),h([t.Input("max-size"),f("design:type",String)],e.prototype,"maxSize",void 0),h([t.Input("max-file-size"),f("design:type",String)],e.prototype,"maxFileSize",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"filesChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),h([t.HostListener("change",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onChange",null),e=h([t.Directive({selector:"[uiInputFile]",exportAs:"uiInputFile"}),f("design:paramtypes",[t.ElementRef,n.NgControl])],e)}(),ot=function(){function e(e){this.element=e}return e.prototype.ngOnInit=function(){var e=new X(this.element.nativeElement);this.uiEllipsis=this.uiEllipsis||1,this.lineHeight=this.lineHeight||17,e.css("-webkit-line-clamp",this.uiEllipsis),e.css("max-height",this.lineHeight*this.uiEllipsis+"px"),e.css("line-height",this.lineHeight+"px"),e.on("mousemove",(function(){e.nativeElement.scrollHeight>e.nativeElement.clientHeight?e.nativeElement.setAttribute("title",e.nativeElement.innerText):e.nativeElement.removeAttribute("title")}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Number)],e.prototype,"uiEllipsis",void 0),h([t.Output(),f("design:type",Number)],e.prototype,"uiEllipsisChange",void 0),h([t.Input("line-height"),f("design:type",Number)],e.prototype,"lineHeight",void 0),e=h([t.Directive({selector:"[uiEllipsis]"}),f("design:paramtypes",[t.ElementRef])],e)}(),rt=function(){function e(){}var i;return i=e,e.prototype.validate=function(e){var t=e.value;return t&&t.trim&&!t.trim()?{required:!0,uiMaxlength:!1}:null},h([t.Input("required"),f("design:type",Object)],e.prototype,"maxLength",void 0),e=i=h([t.Directive({selector:"[required][ngModel]",providers:[{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[])],e)}(),st="rgba(0, 0, 0, .87)",at=[{name:"red"},{name:"pink"},{name:"purple"},{name:"deepPurple"},{name:"indigo"},{name:"blue"},{name:"lightBlue"},{name:"cyan"},{name:"teal"},{name:"green"},{name:"lightGreen"},{name:"lime"},{name:"yellow"},{name:"amber"},{name:"orange"},{name:"deepOrange"},{name:"brown"},{name:"grey"},{name:"blueGrey"},{name:"black",hideSlider:!0},{name:"white",hideSlider:!0,hasBorder:!0}],lt={red:{50:{color:"#ffebee",text:st},100:{color:"#ffcdd2",text:st},200:{color:"#ef9a9a",text:st},300:{color:"#e57373",text:st},400:{color:"#ef5350",text:"#fff"},500:{color:"#f44336",text:"#fff"},600:{color:"#e53935",text:"#fff"},700:{color:"#d32f2f",text:"#fff"},800:{color:"#c62828",text:"#fff"},900:{color:"#b71c1c",text:"#fff"}},pink:{50:{color:"#fce4ec",text:st},100:{color:"#f8bbd0",text:st},200:{color:"#f48fb1",text:st},300:{color:"#f06292",text:"#fff"},400:{color:"#ec407a",text:"#fff"},500:{color:"#e91e63",text:"#fff"},600:{color:"#d81b60",text:"#fff"},700:{color:"#c2185b",text:"#fff"},800:{color:"#ad1457",text:"#fff"},900:{color:"#880e4f",text:"#fff"}},purple:{50:{color:"#f3e5f5",text:st},100:{color:"#e1bee7",text:st},200:{color:"#ce93d8",text:st},300:{color:"#ba68c8",text:"#fff"},400:{color:"#ab47bc",text:"#fff"},500:{color:"#9c27b0",text:"#fff"},600:{color:"#8e24aa",text:"#fff"},700:{color:"#7b1fa2",text:"#fff"},800:{color:"#6a1b9a",text:"#fff"},900:{color:"#4a148c",text:"#fff"}},deepPurple:{50:{color:"#ede7f6",text:st},100:{color:"#d1c4e9",text:st},200:{color:"#b39ddb",text:st},300:{color:"#9575cd",text:"#fff"},400:{color:"#7e57c2",text:"#fff"},500:{color:"#673ab7",text:"#fff"},600:{color:"#5e35b1",text:"#fff"},700:{color:"#512da8",text:"#fff"},800:{color:"#4527a0",text:"#fff"},900:{color:"#311b92",text:"#fff"}},indigo:{50:{color:"#e8eaf6",text:st},100:{color:"#c5cae9",text:st},200:{color:"#9fa8da",text:st},300:{color:"#7986cb",text:"#fff"},400:{color:"#5c6bc0",text:"#fff"},500:{color:"#3f51b5",text:"#fff"},600:{color:"#3949ab",text:"#fff"},700:{color:"#303f9f",text:"#fff"},800:{color:"#283593",text:"#fff"},900:{color:"#1a237e",text:"#fff"}},blue:{50:{color:"#e3f2fd",text:st},100:{color:"#bbdefb",text:st},200:{color:"#90caf9",text:st},300:{color:"#64b5f6",text:st},400:{color:"#42a5f5",text:st},500:{color:"#2196f3",text:"#fff"},600:{color:"#1e88e5",text:"#fff"},700:{color:"#1976d2",text:"#fff"},800:{color:"#1565c0",text:"#fff"},900:{color:"#0d47a1",text:"#fff"}},lightBlue:{50:{color:"#e1f5fe",text:st},100:{color:"#b3e5fc",text:st},200:{color:"#81d4fa",text:st},300:{color:"#4fc3f7",text:st},400:{color:"#29b6f6",text:st},500:{color:"#03a9f4",text:st},600:{color:"#039be5",text:"#fff"},700:{color:"#0288d1",text:"#fff"},800:{color:"#0277bd",text:"#fff"},900:{color:"#01579b",text:"#fff"}},cyan:{50:{color:"#e0f7fa",text:st},100:{color:"#b2ebf2",text:st},200:{color:"#80deea",text:st},300:{color:"#4dd0e1",text:st},400:{color:"#26c6da",text:st},500:{color:"#00bcd4",text:st},600:{color:"#00acc1",text:st},700:{color:"#0097a7",text:"#fff"},800:{color:"#00838f",text:"#fff"},900:{color:"#006064",text:"#fff"}},teal:{50:{color:"#e0f2f1",text:st},100:{color:"#b2dfdb",text:st},200:{color:"#80cbc4",text:st},300:{color:"#4db6ac",text:st},400:{color:"#26a69a",text:st},500:{color:"#009688",text:"#fff"},600:{color:"#00897b",text:"#fff"},700:{color:"#00796b",text:"#fff"},800:{color:"#00695c",text:"#fff"},900:{color:"#004d40",text:"#fff"}},green:{50:{color:"#e8f5e9",text:st},100:{color:"#c8e6c9",text:st},200:{color:"#a5d6a7",text:st},300:{color:"#81c784",text:st},400:{color:"#66bb6a",text:st},500:{color:"#4caf50",text:st},600:{color:"#43a047",text:"#fff"},700:{color:"#388e3c",text:"#fff"},800:{color:"#2e7d32",text:"#fff"},900:{color:"#1b5e20",text:"#fff"}},lightGreen:{50:{color:"#f1f8e9",text:st},100:{color:"#dcedc8",text:st},200:{color:"#c5e1a5",text:st},300:{color:"#aed581",text:st},400:{color:"#9ccc65",text:st},500:{color:"#8bc34a",text:st},600:{color:"#7cb342",text:st},700:{color:"#689f38",text:"#fff"},800:{color:"#558b2f",text:"#fff"},900:{color:"#33691e",text:"#fff"}},lime:{50:{color:"#f9fbe7",text:st},100:{color:"#f0f4c3",text:st},200:{color:"#e6ee9c",text:st},300:{color:"#dce775",text:st},400:{color:"#d4e157",text:st},500:{color:"#cddc39",text:st},600:{color:"#c0ca33",text:st},700:{color:"#afb42b",text:st},800:{color:"#9e9d24",text:st},900:{color:"#827717",text:"#fff"}},yellow:{50:{color:"#fffde7",text:st},100:{color:"#fff9c4",text:st},200:{color:"#fff59d",text:st},300:{color:"#fff176",text:st},400:{color:"#ffee58",text:st},500:{color:"#ffeb3b",text:st},600:{color:"#fdd835",text:st},700:{color:"#fbc02d",text:st},800:{color:"#f9a825",text:st},900:{color:"#f57f17",text:st}},amber:{50:{color:"#fff8e1",text:st},100:{color:"#ffecb3",text:st},200:{color:"#ffe082",text:st},300:{color:"#ffd54f",text:st},400:{color:"#ffca28",text:st},500:{color:"#ffc107",text:st},600:{color:"#ffb300",text:st},700:{color:"#ffa000",text:st},800:{color:"#ff8f00",text:st},900:{color:"#ff6f00",text:st}},orange:{50:{color:"#fff3e0",text:st},100:{color:"#ffe0b2",text:st},200:{color:"#ffcc80",text:st},300:{color:"#ffb74d",text:st},400:{color:"#ffa726",text:st},500:{color:"#ff9800",text:st},600:{color:"#fb8c00",text:st},700:{color:"#f57c00",text:st},800:{color:"#ef6c00",text:"#fff"},900:{color:"#e65100",text:"#fff"}},deepOrange:{50:{color:"#fbe9e7",text:st},100:{color:"#ffccbc",text:st},200:{color:"#ffab91",text:st},300:{color:"#ff8a65",text:st},400:{color:"#ff7043",text:st},500:{color:"#ff5722",text:"#fff"},600:{color:"#f4511e",text:"#fff"},700:{color:"#e64a19",text:"#fff"},800:{color:"#d84315",text:"#fff"},900:{color:"#bf360c",text:"#fff"}},brown:{50:{color:"#efebe9",text:st},100:{color:"#d7ccc8",text:st},200:{color:"#bcaaa4",text:st},300:{color:"#a1887f",text:"#fff"},400:{color:"#8d6e63",text:"#fff"},500:{color:"#795548",text:"#fff"},600:{color:"#6d4c41",text:"#fff"},700:{color:"#5d4037",text:"#fff"},800:{color:"#4e342e",text:"#fff"},900:{color:"#3e2723",text:"#fff"}},grey:{50:{color:"#fafafa",text:st},100:{color:"#f5f5f5",text:st},200:{color:"#eeeeee",text:st},300:{color:"#e0e0e0",text:st},400:{color:"#bdbdbd",text:st},500:{color:"#9e9e9e",text:st},600:{color:"#757575",text:"#fff"},700:{color:"#616161",text:"#fff"},800:{color:"#424242",text:"#fff"},900:{color:"#212121",text:"#fff"}},blueGrey:{50:{color:"#eceff1",text:st},100:{color:"#cfd8dc",text:st},200:{color:"#b0bec5",text:st},300:{color:"#90a4ae",text:st},400:{color:"#78909c",text:"#fff"},500:{color:"#607d8b",text:"#fff"},600:{color:"#546e7a",text:"#fff"},700:{color:"#455a64",text:"#fff"},800:{color:"#37474f",text:"#fff"},900:{color:"#263238",text:"#fff"}},black:{500:{color:"#000000",text:"#fff"}},white:{500:{color:"#FFFFFF",text:st}}},ct=function(){function e(e){this.ngControl=e,this.valueChange=new t.EventEmitter,this.palette=lt,this.colors=at,this.hues=Array.from({length:10},(function(e,t){return 100*t})),this.hues[0]=50,this.value=500,this.colorSelected={}}return e.prototype.ngAfterViewInit=function(){var e=this;this.setColorSelected(this.ngModel),this.hueColor.valueChange.subscribe((function(t){e.ngModel=e.getColor(e.colorSelected.name,t),e.ngModelChange.emit(e.ngModel)}))},e.prototype.getColor=function(e,t){if(void 0===t&&(t=500),e)return this.palette[e][t].color},e.prototype.getColorText=function(e,t){if(void 0===t&&(t=500),e)return this.palette[e][t].text},e.prototype.selectColor=function(e){this.ngControl.control.markAsDirty(),this.deselectColors(),e.selected=!0,this.colorSelected=e,this.ngModel=this.getColor(this.colorSelected.name,this.value),this.ngModelChange.emit(this.ngModel)},e.prototype.deselectColors=function(){this.ngControl.control.markAsDirty(),this.ngModel=this.getColor(null),this.ngModelChange.emit(this.ngModel),this.colorSelected={},this.value=500,this.colors.forEach((function(e){return e.selected=!1}))},e.prototype.setColorSelected=function(e){var t=this;e&&Object.keys(this.palette).forEach((function(n){Object.keys(t.palette[n]).forEach((function(i){t.palette[n][i].color===e&&t.colors.forEach((function(e){e.name===n&&setTimeout((function(){e.selected=!0,t.value=i,t.colorSelected=e}))}))}))}))},e.ctorParameters=function(){return[{type:n.NgControl}]},h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"valueChange",void 0),h([t.ViewChild("hueColor"),f("design:type",Object)],e.prototype,"hueColor",void 0),e=h([t.Component({selector:"ui-color-picker",template:'<ui-card>\r\n <div class="colors">\r\n <div class="color"\r\n *ngFor="let color of colors"\r\n tabindex="1"\r\n [class.selected]="color.name === colorSelected.name"\r\n [ngStyle]="{\'background-color\': getColor(color.name, color.name === colorSelected.name ? value : 500), \'border\': color.hasBorder ? \'1px solid #424242\' : \'none\'}"\r\n (click)="selectColor(color)">\r\n <i class="material-icons" [style.color]="getColorText(color.name, color.name === colorSelected.name ? value : 500)" *ngIf="color.selected">done</i>\r\n </div>\r\n <div class="color remove" [class.selected]="!colorSelected.name" (click)="deselectColors()" tabindex="1">\r\n <i class="material-icons secondary-text">block</i>\r\n </div>\r\n </div>\r\n <ui-card-content [hidden]="!colorSelected.name" *ngIf="!colorSelected.hideSlider">\r\n <ui-slider [range]="hues"\r\n [(value)]="value"\r\n [hideBalloon]="true"\r\n [color]="getColor(colorSelected.name, value)"\r\n [text-color]="getColorText(colorSelected.name, value)"\r\n #hueColor></ui-slider>\r\n </ui-card-content>\r\n</ui-card>\r\n',styles:[":host ui-card{max-width:246px}:host ui-card ui-card-content{height:34px;overflow:hidden;padding:0 16px;transition:height 280ms cubic-bezier(0,0,.2,1)}:host ui-card ui-card-content[hidden]{height:0}:host .colors{padding:8px 16px 16px 8px;display:flex;flex-wrap:wrap}:host .colors .color{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin-left:8px;margin-top:8px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:background-color 280ms cubic-bezier(0,0,.2,1),box-shadow 280ms cubic-bezier(0,0,.2,1)}:host .colors .color.remove i{font-size:44px}:host .colors .color i{transition:color 280ms cubic-bezier(0,0,.2,1)}:host .colors .color.selected{box-shadow:0 0 4px 0 rgba(0,0,0,.14),0 3px 4px 0 rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2)}:host ::ng-deep ui-slider:not(.nothing){margin-top:16px}:host ::ng-deep ui-slider:not(.nothing) .track{height:4px}:host ::ng-deep ui-slider:not(.nothing) .thumb{width:16px;height:16px}:host ::ng-deep ui-slider:not(.nothing) .points{margin-top:-4px}:host ::ng-deep ui-slider:not(.nothing) .points .point:not(.nothing){padding:2px;opacity:.54}::ng-deep .wrap-color-picker{z-index:5}::ng-deep .wrap-color-picker .overlay{overflow:hidden}::ng-deep .wrap-color-picker ui-color-picker{transform-origin:top left;transition:transform 280ms cubic-bezier(.4,0,.6,1),opacity 280ms cubic-bezier(.4,0,.6,1);transform:scale(0);opacity:0;position:absolute;z-index:5}::ng-deep .wrap-color-picker.open ui-color-picker{transform:scale(1);opacity:1}@media (max-width:600px){::ng-deep .wrap-color-picker{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;background-color:transparent!important}::ng-deep .wrap-color-picker .overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0);transition:background 195ms cubic-bezier(0,0,.2,1)}::ng-deep .wrap-color-picker ui-color-picker{position:relative;top:0!important;left:0!important;margin:auto;transform-origin:bottom;transition:transform 225ms cubic-bezier(.4,0,1,1),opacity 195ms cubic-bezier(.4,0,1,1);transform:scale(.8) translateY(16px)}::ng-deep .wrap-color-picker ui-color-picker ui-card{box-shadow:0 24px 38px 3px rgba(0,0,0,.14),0 9px 49px 8px rgba(0,0,0,.12),0 11px 15px 0 rgba(0,0,0,.2)}::ng-deep .wrap-color-picker.open .overlay{background-color:rgba(0,0,0,.2)}::ng-deep .wrap-color-picker.open ui-color-picker{transition:transform 225ms cubic-bezier(0,0,.2,1),opacity 195ms cubic-bezier(0,0,.2,1);transform:scale(1) translateY(0)}}"]}),f("design:paramtypes",[n.NgControl])],e)}(),pt=function(){function e(e,n,i,o){this.element=e,this.componentFactoryResolver=n,this.applicationRef=i,this.injector=o,this.ngModelChange=new t.EventEmitter,this.palette=lt}return e.prototype.ngAfterViewInit=function(){var e=this;this.generateElementColor(),this.setColorElement(this.ngModel),this.element.nativeElement.classList.add("elevate"),this.element.nativeElement.parentNode.appendChild(this.elementColor),this.addEvents(),this.ngModelChange.subscribe((function(t){e.setColorElement(t)}))},e.prototype.ngOnChanges=function(e){e.ngModel&&!e.ngModel.firstChange&&(this.ngModel=e.ngModel.currentValue,this.setColorElement(this.ngModel))},e.prototype.generateElementColor=function(){this.elementColor=document.createElement("div"),this.elementColor.classList.add("ui-color"),this.elementColor.setAttribute("tabindex","1")},e.prototype.setColorElement=function(e){var t=this.elementColor.querySelector("i");e?(t&&t.remove(),this.elementColor.setAttribute("style","background-color: "+e)):t||((t=document.createElement("i")).classList.add("material-icons","secondary-text"),t.innerText="block",this.elementColor.appendChild(t),this.elementColor.setAttribute("style",""))},e.prototype.addEvents=function(){var e=this;v.on(this.elementColor,"click",(function(t){var n=v.position(e.elementColor),i={x:n.left,y:n.top};e.componentRef||(e.createComponent(),e.setInstances(e,e.componentRef),e.applicationRef.attachView(e.componentRef.hostView),e.componentElement=e.getComponentAsElement(),e.render(e.componentElement,i),t.stopPropagation())})),v.on(window,"click resize scroll",(function(t){e.componentRef&&((v.is(t.target,".wrap-color-picker")||v.closest(t.target,".wrap-color-picker")||document.body.clientWidth<=600&&"scroll"===t.type)&&!v.is(t.target,".overlay")||e.close())}))},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(ct);this.componentRef=e.create(this.injector)},e.prototype.getComponentAsElement=function(){return this.componentRef.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){["ngModel","ngModelChange"].forEach((function(n){t.instance[n]=e[n]}))},e.prototype.render=function(e,t){var n=this;this.createWrapElement(),this.wrapElement.appendChild(e),document.body.appendChild(this.wrapElement),setTimeout((function(){n.themeClass&&n.wrapElement.classList.add(n.themeClass),n.wrapElement.classList.add("open"),n.setPosition(t)}))},e.prototype.createWrapElement=function(){this.wrapElement=document.createElement("div"),this.wrapElement.classList.add("wrap-color-picker");var e=document.createElement("div");e.classList.add("overlay"),this.wrapElement.appendChild(e)},e.prototype.setPosition=function(e){var t=e.x+this.componentElement.clientWidth,n=e.y+this.componentElement.clientHeight,i=window.innerWidth+document.body.scrollLeft,o=window.innerHeight+document.body.scrollTop;t>i&&(e.x=i-(this.componentElement.clientWidth+8)),e.x<=8&&(e.x=8),n>o&&(e.y=e.y-this.componentElement.clientHeight),this.componentElement.style.top=e.y+"px",this.componentElement.style.left=e.x+"px"},e.prototype.close=function(){var e=this;this.wrapElement&&(this.wrapElement.classList.remove("open"),setTimeout((function(){e.componentRef&&(e.componentRef.instance.colors.forEach((function(e){return e.selected=!1})),e.applicationRef.detachView(e.componentRef.hostView),e.componentRef=null,e.wrapElement.remove())}),280))},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input("theme-class"),f("design:type",Object)],e.prototype,"themeClass",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Directive({selector:"[uiColorPicker]"}),f("design:paramtypes",[t.ElementRef,t.ComponentFactoryResolver,t.ApplicationRef,t.Injector])],e)}(),dt=function(){function e(e){this.element=e,this.retries=0,"TEXTAREA"!==this.element.nativeElement.tagName?this._findNestedTextArea():this.textAreaEl=this.element.nativeElement}return e.prototype.onInput=function(e){this.adjust()},e.prototype.onChange=function(e){this.adjust()},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.adjust()}))},e.prototype._findNestedTextArea=function(){var e=this;this.textAreaEl=this.element.nativeElement.getElementsByTagName("textarea")[0],this.textAreaEl||(this.retries>=3?console.error("textarea não encontrado"):(this.retries++,setTimeout((function(){e._findNestedTextArea()}),100)))},e.prototype.ngDoCheck=function(){},e.prototype.ngOnChanges=function(e){var t=this;setTimeout((function(){t.adjust()}))},e.prototype.adjust=function(){this.textAreaEl&&(this.textAreaEl.style.overflow="hidden",this.textAreaEl.style.height="",this.textAreaEl.style.height=this.textAreaEl.scrollHeight+"px")},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.HostListener("input",["$event.target"]),f("design:type",Function),f("design:paramtypes",[HTMLTextAreaElement]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("change",["$event.target"]),f("design:type",Function),f("design:paramtypes",[HTMLTextAreaElement]),f("design:returntype",void 0)],e.prototype,"onChange",null),e=h([t.Directive({selector:"[autosize]"}),f("design:paramtypes",[t.ElementRef])],e)}(),ut=function(){function e(e){this.element=e,this.select=new t.EventEmitter,this.cancel=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.chosen=new l.Subject;var n=Array.apply(null,{length:12}).map(Number.call,Number),i=Array.apply(null,{length:12}).map(Number.call,Number).map((function(e){return e+12}));n[0]=12,i[0]=0,this.hours=y(i,n),this.minutes=Array.apply(null,{length:12}).map(Number.call,Number).map((function(e){return 5*e})),this.activeSelection="hours",this.pointerRotation=0}return e.prototype.ngOnInit=function(){this.formatModel()},e.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.tabIndex=1,setTimeout((function(){e.element.nativeElement.focus()})),v.on(document,"keydown",(function(t){if(e.focused)switch(t.keyCode){case 13:"hours"===e.activeSelection?e.selectHour(e.hour):e.selectMinute(e.minute);break;case 39:case 40:"hours"===e.activeSelection?e.hour=e.hour+1>23?0:e.hour+1:e.minute=e.minute+1>59?0:e.minute+1,e.getPositionPointer(),t.preventDefault();break;case 37:case 38:"hours"===e.activeSelection?e.hour=e.hour-1<0?23:e.hour-1:e.minute=e.minute-1<0?59:e.minute-1,e.getPositionPointer(),t.preventDefault()}})),v.on(document,"click",(function(t){e.focused=(e.element.nativeElement===t.target||e.element.nativeElement===v.closest(t.target,"ui-clock"))&&(v.is(t.target,"ui-clock")||v.closest(t.target,"ui-clock"))}))},e.prototype.ngOnChanges=function(e){e.ngModel&&!e.ngModel.firstChange&&(this.ngModel=e.ngModel.currentValue,this.formatModel()),e.confirmSelection&&(this.confirmSelection=e.confirmSelection.currentValue)},e.prototype.formatModel=function(){if(this.ngModel){var e=this.ngModel.split(":");this.hour=parseInt(e[0],10),this.minute=parseInt(e[1],10),this.getPositionPointer()}},e.prototype.selectTime=function(e){this.hasHourAndMinute()&&(this.ngModel=this.formatToLpad(this.hour)+":"+this.formatToLpad(this.minute),this.ngModelChange.emit(this.ngModel),this.select.emit(this.ngModel),this.chosen.next({value:this.ngModel,close:e}))},e.prototype.cancelTime=function(){this.activeSelection="hours",this.hour=null,this.minute=null,this.ngModel=null,this.ngModelChange.emit(this.ngModel),this.cancel.emit()},e.prototype.selectHour=function(e){this.activeSelection="minutes",this.hour=e,this.minute=this.minute||0,this.getPositionPointer(),this.confirmSelection||this.selectTime()},e.prototype.selectMinute=function(e){this.activeSelection="hours",this.minute=e,this.getPositionPointer(),this.confirmSelection||this.selectTime(!0)},e.prototype.isEmpty=function(){return!("number"==typeof this.hour&&"number"==typeof this.minute)},e.prototype.formatToLpad=function(e){return"number"==typeof e&&e.toString().length<2&&(e="0"+e),e},e.prototype.getPositionPointer=function(){if(this.hasHourAndMinute()){var e,t=this.pointerRotation;t=t>=360?t-360*Math.floor(t/360):t<=-360?t+360*Math.floor(Math.abs(t)/360):t;var n="hours"===this.activeSelection?30*(this.hour>=12?this.hour-12:this.hour):6*this.minute;e=n-t<-180?360-t+n:n-t>180?-(360-n+t):n-t,180===Math.abs(e)&&(e=n>t?Math.abs(e):-e),this.pointerRotation+=e}},e.prototype.getPositionTopPointer=function(){return"hours"===this.activeSelection&&this.hour>0&&this.hour<13?"40px":""},e.prototype.hasHourAndMinute=function(){return"number"==typeof this.hour&&"number"==typeof this.minute},e.prototype.validate=function(){return this.hour<24&&this.minute<60||!this.hasHourAndMinute()},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input("hide-header"),f("design:type",Boolean)],e.prototype,"hideHeader",void 0),h([t.Input("confirm-selection"),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"cancel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Component({selector:"ui-clock",template:'<header *ngIf="!hideHeader" [class.time-error]="!validate()">\r\n <div>\r\n <span class="time-empty" *ngIf="isEmpty()">Selecione um horário</span>\r\n <span *ngIf="!isEmpty() && !validate()">Horário inválido</span>\r\n <div class="time" *ngIf="!isEmpty() && validate()" (click)="getPositionPointer()">\r\n <span (click)="activeSelection = \'hours\'" [class.time-focused]="activeSelection === \'hours\'">{{formatToLpad(hour)}}</span>:<span (click)="activeSelection = \'minutes\'" [class.time-focused]="activeSelection === \'minutes\'">{{formatToLpad(minute)}}</span>\r\n </div>\r\n </div>\r\n</header>\r\n<div>\r\n <div class="content">\r\n <div class="clock-cover">\r\n <div class="clock-wrap" [class.has-pointer]="hasHourAndMinute() && validate()">\r\n <div class="pointer"\r\n *ngIf="hasHourAndMinute() && validate()"\r\n [ngStyle]="{\'transform\': \'rotate(\' + pointerRotation + \'deg)\', \'top\': getPositionTopPointer()}"\r\n [@fade]>\r\n <div class="ball" [class.show-core]="activeSelection === \'minutes\' && minute % 5 !== 0"></div>\r\n </div>\r\n <div *ngIf="activeSelection === \'hours\'" [@explosion]>\r\n <div class="hour"\r\n *ngFor="let hour of hours"\r\n [style.transform]="\'rotate(\' + (30 * (hour >= 12 ? hour - 12 : hour )) + \'deg)\'"\r\n (click)="selectHour(hour)">\r\n <button class="ui-button icon flat" [style.transform]="\'rotate(-\' + (30 * (hour >= 12 ? hour - 12 : hour )) + \'deg)\'">{{hour}}</button>\r\n </div>\r\n </div>\r\n <div *ngIf="activeSelection === \'minutes\'" [@explosion]>\r\n <div class="minute"\r\n *ngFor="let minute of minutes; let index = index"\r\n [style.transform]="\'rotate(\' + (30 * (index >= 12 ? index - 12 : index )) + \'deg)\'"\r\n (click)="selectMinute(minute)">\r\n <button class="ui-button icon flat" [style.transform]="\'rotate(-\' + (30 * (index >= 12 ? index - 12 : index )) + \'deg)\'">{{minute}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="actions ui-button-container align-right" *ngIf="confirmSelection">\r\n <button class="ui-button flat primary" uiRipple (click)="cancelTime()">Cancelar</button>\r\n <button class="ui-button flat primary" uiRipple (click)="selectTime(true)" [disabled]="!hasHourAndMinute()">Ok</button>\r\n </div>\r\n</div>\r\n',encapsulation:t.ViewEncapsulation.None,animations:[p.trigger("explosion",[p.transition(":enter",[p.style({opacity:0,transform:"scale(1.3)"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:1,transform:"scale(1)"}))]),p.transition(":leave",[p.style({opacity:1,transform:"scale(1)"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0,transform:"scale(1.3)"}))])]),p.trigger("fade",[p.transition(":enter",[p.style({opacity:0}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:1}))]),p.transition(":leave",[p.style({opacity:1}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0}))])])],styles:['ui-clock{display:inline-flex;flex-direction:column;overflow:hidden;border-radius:2px;position:relative;z-index:0}ui-clock header{padding:16px;min-height:72px;display:flex;justify-content:center;flex-direction:column}ui-clock header .time-empty{font-size:18px;font-weight:500}ui-clock header .time{margin-top:8px;font-size:40px;font-weight:500;text-align:center;cursor:default}ui-clock .actions{padding:0 8px 8px;text-align:right;cursor:default}ui-clock .content{position:relative}ui-clock .content .clock-cover{overflow:hidden;transition:.3s ease-in-out;margin:24px}ui-clock .content .clock-cover .clock-wrap{border-radius:50%;width:250px;height:250px;position:relative}ui-clock .content .clock-cover .clock-wrap>div:not(.pointer){position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}ui-clock .content .clock-cover .clock-wrap::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;display:block;width:4px;height:4px;margin:auto;border-radius:50%;transition:transform 280ms cubic-bezier(0,0,.2,1);transform:scale(0)}ui-clock .content .clock-cover .clock-wrap .hour,ui-clock .content .clock-cover .clock-wrap .minute,ui-clock .content .clock-cover .clock-wrap .pointer{position:absolute;top:8px;left:0;right:0;bottom:50%;width:36px;margin:0 auto;pointer-events:none;transform-origin:bottom center}ui-clock .content .clock-cover .clock-wrap .hour .ui-button,ui-clock .content .clock-cover .clock-wrap .minute .ui-button,ui-clock .content .clock-cover .clock-wrap .pointer .ui-button{pointer-events:auto}ui-clock .content .clock-cover .clock-wrap .hour .ui-button::before,ui-clock .content .clock-cover .clock-wrap .minute .ui-button::before,ui-clock .content .clock-cover .clock-wrap .pointer .ui-button::before{transform:scale(1)}ui-clock .content .clock-cover .clock-wrap .pointer{z-index:2;transition:transform 280ms cubic-bezier(0,0,.2,1),top 280ms cubic-bezier(0,0,.2,1)}ui-clock .content .clock-cover .clock-wrap .pointer::before{content:"";width:2px;position:absolute;top:36px;left:0;right:0;bottom:0;margin:auto}ui-clock .content .clock-cover .clock-wrap .pointer .ball{width:36px;height:36px;margin:auto;border-radius:50%;position:absolute;top:0}ui-clock .content .clock-cover .clock-wrap .pointer .ball::before{content:"";width:8px;height:8px;margin:auto;display:block;border-radius:50%;position:absolute;top:0;left:0;right:0;bottom:0;transition:transform 280ms cubic-bezier(0,0,.2,1);transform:scale(0)}ui-clock .content .clock-cover .clock-wrap .pointer .ball.show-core::before{transform:scale(1)}ui-clock .content .clock-cover .clock-wrap .hour:nth-child(n+13){top:40px}ui-clock .content .clock-cover .clock-wrap.has-pointer::before{transform:scale(1)}@media (min-width:600px),(min-width:496px) and (orientation:landscape){ui-clock:not(.portrait-only){flex-direction:row}ui-clock:not(.portrait-only) header{width:168px}ui-clock:not(.portrait-only) .clock-cover{margin:8px 24px}}']}),f("design:paramtypes",[t.ElementRef])],e)}(),ht=function(){function e(){this.timePickers={}}return e.prototype.add=function(e,t){this.timePickers&&this.timePickers[e]||(this.timePickers[e]=t)},e.prototype.get=function(e){return this.timePickers[e]},e.prototype.remove=function(e){delete this.timePickers[e]},e.prototype.closeAll=function(){v.trigger(window,"click")},e.prototype.getAll=function(){return this.timePickers},e.prototype.updateModel=function(e,t){this.timePickers[e].ngModel=t,this.timePickers[e].ngModelChange.emit(t)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),mt=function(){function e(e,n){this.timePickerService=e,this.element=n,this.select=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.chosen=new r.Subject}return e.prototype.ngOnInit=function(){this.timePickerService.add(this.timePicker,this)},e.prototype.ngAfterViewInit=function(){this.element.nativeElement.setAttribute("time-picker-name",this.timePicker)},e.prototype.ngOnChanges=function(e){this.chosen.next(e)},e.prototype.ngOnDestroy=function(){this.timePickerService.remove(this.timePicker)},e.ctorParameters=function(){return[{type:ht},{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("uiTimePicker"),f("design:type",String)],e.prototype,"timePicker",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Directive({selector:"[uiTimePicker]"}),f("design:paramtypes",[ht,t.ElementRef])],e)}(),ft=function(){function e(e,t,n,i,o){this.componentFactoryResolver=e,this.applicationRef=t,this.injector=n,this.timePickerService=i,this.elementRef=o}return e.prototype.ngAfterViewInit=function(){var e=this;this.timePicker=this.timePickerService.get(this.timePickerCaller),v.on(this.elementRef.nativeElement,this.pickerEvent||"click",(function(t){e.inputElement=document.querySelector('[time-picker-name="'+e.timePickerCaller+'"]'),e.timePickerService.closeAll();var n=v.position(e.inputElement),i={x:n.left,y:e.inputElement.offsetHeight+n.top};e.pickerOpen||(e.renderTimePicker(e.timePicker,i),t.stopPropagation())})),v.on(window,"click resize scroll",(function(t){e.pickerOpen&&((v.is(t.target,".wrap-time-picker")||v.closest(t.target,".wrap-time-picker")||document.body.clientWidth<=600&&"scroll"===t.type)&&!v.is(t.target,".overlay")||e.closePicker())}))},e.prototype.getComponentAsElement=function(e){return e.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){var n=this;["ngModel","confirmSelection","select"].map((function(n){return t.instance[n]=e[n]})),t.instance.focused=!0,e.chosen.subscribe((function(e){return t.instance.ngOnChanges(e)})),t.instance.cancel.subscribe((function(){return n.closePicker()})),t.instance.chosen.subscribe((function(e){n.timePickerService.updateModel(n.timePickerCaller,e.value),n.pickerOpen&&e.close&&(n.inputElement.focus(),n.closePicker())}))},e.prototype.renderViewClock=function(e,t,n){var i=this;this.wrapTimePicker=document.createElement("div"),this.wrapTimePicker.classList.add("wrap-time-picker");var o=document.createElement("div");o.classList.add("overlay"),n&&this.wrapTimePicker.classList.add(n),this.wrapTimePicker.style.transform="scale(0)",e.classList.add("portrait-only"),this.wrapTimePicker.appendChild(o),this.wrapTimePicker.appendChild(e),document.body.appendChild(this.wrapTimePicker),setTimeout((function(){var n=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+(document.body.scrollLeft||window.scrollX||window.pageXOffset),s=window.innerHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);n>r&&(t.x=r-(e.clientWidth+8)),o>s&&(t.y=s-(e.clientHeight+8)),i.wrapTimePicker.style.transform="",e.style.position="absolute",e.style.top=t.y+"px",e.style.left=t.x+"px",i.wrapTimePicker.classList.add("open"),document.body.clientWidth<=600&&(document.body.style.overflowY="hidden")}))},e.prototype.renderTimePicker=function(e,t){var n=this.componentFactoryResolver.resolveComponentFactory(ut);this.componentRef=n.create(this.injector),this.componentElement=this.getComponentAsElement(this.componentRef),this.setInstances(e,this.componentRef),this.applicationRef.attachView(this.componentRef.hostView),this.renderViewClock(this.componentElement,t,e.themeClass),this.pickerOpen=!0},e.prototype.closePicker=function(){var e=this;this.wrapTimePicker.classList.remove("open"),setTimeout((function(){e.pickerOpen=!1,e.applicationRef.detachView(e.componentRef.hostView),document.body.style.overflowY="";try{document.body.removeChild(e.wrapTimePicker)}catch(e){}}),280)},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:ht},{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"pickerEvent",void 0),h([t.Input("uiTimePickerCaller"),f("design:type",String)],e.prototype,"timePickerCaller",void 0),e=h([t.Directive({selector:"[uiTimePickerCaller]"}),f("design:paramtypes",[t.ComponentFactoryResolver,t.ApplicationRef,t.Injector,ht,t.ElementRef])],e)}(),gt=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>2&&(e=e.substring(0,2)+":"+e.substring(2)),e.length>5&&(e=e.substring(0,5)),e):""},e=h([t.Pipe({name:"uiTime"})],e)}(),yt=function(){function e(e,n){this.elementRef=e,this.timePipe=n,this.symbolsPositions=[2],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),e.minTime&&!e.minTime.firstChange&&(this.minTime=e.minTime.currentValue),e.maxTime&&!e.maxTime.firstChange&&(this.maxTime=e.maxTime.currentValue)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.timePipe.transform(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.timePipe.transform(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.timePipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,4)},e.prototype.validate=function(e){if(this.control=e,e.value&&this.format(e.value).length<4)return{parse:!0};if(e.value){var t=e.value.split(":");if(!this.customTime&&t[0]>23)return{hour:!0};if(!this.customTime&&t[1]>59)return{minute:!0};if(this.minTime&&4===this.format(this.minTime).length&&this.format(e.value)<this.format(this.minTime))return{minTime:!0};if(this.maxTime&&4===this.format(this.maxTime).length&&this.format(e.value)>this.format(this.maxTime))return{maxTime:!0}}return null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(){var e=v.caretPosition.get(this.elementRef.nativeElement),t=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(t),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,e,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:gt}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",String)],e.prototype,"minTime",void 0),h([t.Input(),f("design:type",String)],e.prototype,"maxTime",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"customTime",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskTime][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},gt]}),f("design:paramtypes",[t.ElementRef,gt])],e)}(),vt=function(){function e(){}return e.prototype.transform=function(e,t){if(!e&&"number"!=typeof e)return"";"number"==typeof e&&(e=e.toFixed(2));var n=!(e.toString().match(/[+]/)||!e.toString().match(/[-]/)),i=3===e.length&&e.replace(",","").split("").every((function(e){return"0"===e}));if(e=e.toString().replace(/[^0-9]+/g,"").replace(/^0+/g,""),!i)for(;e.length<3;)e="0"+e.toString();var o="";e=e.split("");for(var r=0;r<e.length;r++){2===r?o=","+o:r>3&&!((r-2)%3)&&(o="."+o),o=e[e.length-1-r]+o}return t&&t.noNegative?o:n?"-"+o:o},e=h([t.Pipe({name:"uiCurrency"})],e)}(),bt=function(){function e(e,n){this.elementRef=e,this.currencyPipe=n,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),void 0!==e.max&&(this.max=e.max.currentValue),void 0!==e.min&&(this.min=e.min.currentValue)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.formatViewValue(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.formatViewValue(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){e=this.currencyPipe.transform(e,{noNegative:this.noNegative});var t=new RegExp("[^\\d\\,-]+","g");return e=e.toString().replace(t,""),"number"!=typeof(e=parseFloat(e.replace(",",".")))||isNaN(e)?null:e},e.prototype.formatViewValue=function(e){return e="0,00"===this.beforeViewValue&&e.length<this.beforeViewValue.length?"":e,this.currencyPipe.transform(e,{noNegative:this.noNegative})},e.prototype.validate=function(e){return this.control=e,void 0!==this.min&&e.value&&this.format(e.value)<this.min?{min:!0}:void 0!==this.max&&e.value&&this.format(e.value)>this.max?{max:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=this.elementRef.nativeElement.value;this.input=!0,this.beforeViewValue=t,this.renderViaInput(t)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:vt}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"min",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"noNegative",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCurrency][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},vt]}),f("design:paramtypes",[t.ElementRef,vt])],e)}(),wt=function(){function e(){}var n;return n=e,e.show=function(e,t){n.hide(),void 0===(t=t||{}).clickOverlayToClose?t.clickOverlayToClose=!0:t.clickOverlayToClose&&(t.clickOverlayToClose=JSON.parse(t.clickOverlayToClose)),(He=e.templateRef.createEmbeddedView(e.templateRef)).detectChanges(),He.rootNodes.forEach((function(e){document.body.appendChild(e),e.clientWidth&&n.open(e,t)}))},e.open=function(e,t){setTimeout((function(){var i=new X(document).querySelector(".ui-fab-container");t.darkClass&&e.classList.add(t.darkClass),t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.cardSize&&(e.querySelector("ui-card").style.maxWidth=t.cardSize+"px",e.querySelector("ui-card").style.width="100%"),!t.transparentOverlay&&i.length&&i.classList.add("hide"),t.clickOverlayToClose&&e.querySelector(".overlay").addEventListener("click",(function(){"function"==typeof t.onClose&&t.onClose(),n.hide()})),e.style.transform="",e.classList.add("open"),document.body.style.overflowY="hidden"}))},e.hide=function(){if(He){var e=new X(document).querySelector(".ui-fab-container");e.length&&e.classList.remove("hide"),He.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){He.rootNodes.forEach((function(e){e.remove?e.remove():e.parentNode.removeChild(e)})),He.destroy(),He=null}),280),document.body.style.overflowY=""}},e=n=h([t.Injectable()],e)}(),xt=function(){function e(e,n){this.element=e,this.viewContainerRef=n,this.ngModelChange=new t.EventEmitter,this.isMobile=v.isMobile,this.options=[],this.optionsExternal=[]}var i;return i=e,e.prototype.ngOnInit=function(){this.element.nativeElement.setAttribute("tabindex",0),this.selectOption()},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnChanges=function(e){this.element.nativeElement.setAttribute("disabled",this.disabled),(e.options||e.ngModel)&&this.selectOption(),e.ngModel&&!e.ngModel.firstChange&&(this.ngModel=e.ngModel.currentValue,e.ngModel.currentValue?this.selectOption():this.onChangeSelect(e.ngModel.currentValue))},e.prototype.onFocus=function(){var e=this;this.close();var t=v.closest(this.element.nativeElement,"fieldset:disabled");this.disabled||t?this.element.nativeElement.blur():this.isMobile()?this.selectNative.nativeElement.focus():setTimeout((function(){var t=v.position(e.element.nativeElement),n={x:t.left,y:t.top};e.render(n)}))},e.prototype.onBlur=function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.closest(e.relatedTarget,".wrap-select"))||this.close()},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;setTimeout((function(){var i=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+(window.scrollX||window.pageXOffset),s=document.body.clientHeight+(window.scrollY||window.pageYOffset);i>r&&(t.x=r-(e.clientWidth+8)),t.x<=8&&(t.x=8),o>s&&(t.y=s-(e.clientHeight+8)),t.y<=0&&(t.y=0),n.darkClass&&e.classList.add(n.darkClass),e.style.transform="",e.style.top=t.y+"px",e.style.left=t.x+"px",e.style.left=t.x+"px",e.style.width=n.element.nativeElement.clientWidth+"px",e.querySelector(".selected").addEventListener("blur",(function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.is(e.relatedTarget,".input-select"))||n.close()})),n.chosen?(e.querySelector(".input-select").addEventListener("blur",(function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.is(e.relatedTarget,".selected"))||n.close()})),e.querySelector(".input-select").click(),e.scrollTo(0,0)):e.querySelector(".selected").focus(),e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.prototype.onChangeSelect=function(e){e?(this.model=e[this.value],this.selected=e[this.label],this.ngModelChange.emit(e[this.value])):(this.search=e,this.model=e,this.selected=e,this.ngModelChange.emit(e))},e.prototype.selectOption=function(){var e=this;this.options.forEach((function(t){t[e.value]===e.ngModel&&e.onChangeSelect(t)}))},e.prototype.writeValue=function(){},e.prototype.registerOnChange=function(){},e.prototype.registerOnTouched=function(){},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ViewContainerRef}]},h([t.Input("dark-class"),f("design:type",Object)],e.prototype,"darkClass",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"input",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"chosen",void 0),h([t.Output(),f("design:type",Object)],e.prototype,"ngModelChange",void 0),h([t.ViewChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),h([t.ViewChild("selectNative",{static:!0}),f("design:type",Object)],e.prototype,"selectNative",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"label",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"options",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.ViewChild(n.NgModel),f("design:type",n.NgModel)],e.prototype,"model",void 0),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),h([t.HostListener("blur",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onBlur",null),e=i=h([t.Component({selector:"ui-select",template:'<div class="selected">{{selected}}</div>\r\n<ng-template>\r\n <div class="wrap-select">\r\n <div class="wrap-select-inner">\r\n <div class="selected" tabindex="0" (click)="close()">{{selected}}</div>\r\n <div class="ui-divider"></div>\r\n <div *ngIf="chosen">\r\n <div class="input-select-space">\r\n <input type="text" [(ngModel)]="search" class="input-select">\r\n </div>\r\n <div class="ui-divider"></div>\r\n </div>\r\n <div class="options">\r\n <ng-content></ng-content>\r\n <ui-select-option *ngFor="let item of optionsExternal" [value]="value" [label]="label"\r\n uiRipple></ui-select-option>\r\n <ui-select-option *ngFor="let item of options | selectFilter : search : label" [value]="item[value]"\r\n [label]="item[label]" [internal]="true"\r\n uiRipple></ui-select-option>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<div [hidden]="!options || !isMobile()">\r\n <select #selectNative\r\n style="transform: scale(1); position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0"\r\n [(ngModel)]="selectedNative"\r\n (change)="onChangeSelect(selectedNative)">\r\n <option *ngFor="let option of options" [ngValue]="option">\r\n {{option ? option[label] : null}}\r\n </option>\r\n </select>\r\n</div>\r\n',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:i,multi:!0}],styles:[":host{border-radius:2px;height:36px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;display:flex;align-items:center;padding:9px;position:relative;font-size:16px}::ng-deep .wrap-select{display:block;border-radius:2px;overflow:hidden;max-height:36px;transition:max-height 280ms cubic-bezier(0,0,.2,1),box-shadow 280ms cubic-bezier(0,0,.2,1);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;z-index:5}::ng-deep .wrap-select.open{max-height:216px;box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 15px 0 rgba(0,0,0,.2)}::ng-deep .wrap-select .selected{height:36px;display:flex;align-items:center;padding:9px}::ng-deep .wrap-select .ui-divider{margin:0}::ng-deep .wrap-select .options{overflow-y:auto;max-height:140px}::ng-deep .wrap-select .input-select-space{padding:3px;height:36px}::ng-deep .wrap-select .input-select-space input{border-radius:2px;height:100%;width:100%;padding:0 5px}"]}),f("design:paramtypes",[t.ElementRef,t.ViewContainerRef])],e)}(),Et=function(){function e(e,t){this.selectComponent=e,this.element=t}return e.prototype.ngOnInit=function(){this.element.nativeElement.setAttribute("tabindex",0),this.internal||this.selectComponent.optionsExternal.push({value:this.value,title:this.label})},e.prototype.onClick=function(){this.selectComponent.ngModelChange.next(this.value),this.selectComponent.model=this.value,this.selectComponent.selected=this.label,this.element.nativeElement.blur()},e.prototype.onEnter=function(e){13===e.keyCode&&this.element.nativeElement.click()},e.prototype.onBlur=function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.is(e.relatedTarget,".selected")||v.is(e.relatedTarget,".input-select"))||this.selectComponent.close()},e.ctorParameters=function(){return[{type:xt,decorators:[{type:t.Inject,args:[xt]}]},{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"label",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"internal",void 0),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),h([t.HostListener("keydown",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onEnter",null),h([t.HostListener("blur",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onBlur",null),e=h([t.Component({selector:"ui-select-option",template:"{{label}}\r\n",styles:[":host{height:36px;display:flex;align-items:center;padding:9px}:host:focus{background-color:rgba(0,0,0,.1)}"]}),m(0,t.Inject(xt)),f("design:paramtypes",[xt,t.ElementRef])],e)}(),Ct=function(){function e(){}return e.prototype.transform=function(e,t,n){return(t=t?P(t.toLowerCase()):null)?e.filter((function(e){return-1!==P(e[n].toLowerCase()).indexOf(t)})):e},e=h([t.Pipe({name:"selectFilter",pure:!1})],e)}(),kt=function(){function e(){}return e.prototype.transform=function(e,t,n){return(t=t?P(t.toLowerCase()):null)?e.filter((function(e){return-1!==P(e[n].toLowerCase()).indexOf(t)})):e},e=h([t.Pipe({name:"uiFilter",pure:!1})],e)}(),Rt=function(){function e(e){this.element=e,this.nameLength=1,this.initials=!1}return e.prototype.ngOnInit=function(){this.newImage=this.image},e.prototype.ngAfterViewInit=function(){this.setSize()},e.prototype.ngOnChanges=function(e){e.name&&!e.name.firstChange&&(this.name=e.name.currentValue),e.color&&!e.color.firstChange&&(this.color=e.color.currentValue),e.image&&!e.image.firstChange&&(e.image.currentValue||(this.showImage=!1,this.newImage=null),this.image=e.image.currentValue),e.size&&!e.size.firstChange&&(this.size=e.size.currentValue,this.setSize()),e.nameLength&&!e.nameLength.firstChange&&(this.nameLength=e.nameLength.currentValue)},e.prototype.isBright=function(e){return z.isBright(e)},e.prototype.loadedImage=function(){this.showImage=!0,this.animateImage()},e.prototype.animateImage=function(){var e=this;this.grayscale=!0,setTimeout((function(){e.grayscale=!1,e.newImage=e.image}),1120)},e.prototype.setSize=function(){if(this.size){var e=this.element.nativeElement.querySelector(".wrap"),t=this.element.nativeElement.querySelector(".empty");t&&v.css(t,"font-size",Math.round(this.size/100*36.36)+"px"),v.css(e,"width",this.size+"px"),v.css(e,"height",this.size+"px")}},e.prototype.getFontSize=function(){return Math.round(this.size/100*36.36)},e.prototype.getName=function(){if(this.name){if(this.initials){var e=this.name.trim().split(" ").map((function(e){return e.charAt(0).toUpperCase()}));return e[0]+e[e.length-1]}return this.name.trim().substr(0,this.nameLength).toUpperCase()}return""},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"name",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input(),f("design:type",String)],e.prototype,"image",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"size",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"nameLength",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"initials",void 0),e=h([t.Component({selector:"ui-avatar",template:'<img [src]="image" (load)="loadedImage()" *ngIf="image">\r\n<div class="wrap" [class.grayscale]="grayscale">\r\n <div class="empty" [ngStyle]="{\'background-color\': color, \'color\': isBright(color) ? \'#000\' : \'#FFF\', \'font-size\': getFontSize() + \'px\'}" *ngIf="!showImage">\r\n {{ getName() }}\r\n </div>\r\n <div class="profile" [style.background-image]="\'url(\' + newImage + \')\'" [@image] *ngIf="showImage"></div>\r\n <div class="profile" [style.background-image]="\'url(\' + image + \')\'" [@image] *ngIf="grayscale"></div>\r\n</div>\r\n',changeDetection:t.ChangeDetectionStrategy.OnPush,animations:[p.trigger("image",[p.transition(":enter",[p.style({opacity:0}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:1}))]),p.transition(":leave",[p.style({opacity:1}),p.animate("2800ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0}))])]),p.trigger("letter",[p.transition(":leave",[p.style({opacity:1}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0}))])])],styles:[":host{display:block}img{display:none}.wrap{width:44px;height:44px;margin:4px;position:relative}.empty,.profile{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%}.empty{display:flex;align-items:center;justify-content:center;font-size:16px;transition:background 280ms cubic-bezier(0,0,.2,1),color 280ms cubic-bezier(0,0,.2,1)}.profile{background-size:cover;background-position:center}.grayscale{-webkit-animation:960ms cubic-bezier(0,0,.2,1) 160ms forwards grayscale;animation:960ms cubic-bezier(0,0,.2,1) 160ms forwards grayscale;filter:grayscale(100%)}@-webkit-keyframes grayscale{100%{filter:grayscale(0)}}@keyframes grayscale{100%{filter:grayscale(0)}}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),It=function(){function e(){}return e.prototype.transform=function(e,t,n){if(void 0===t&&(t=null),!e&&"number"!=typeof e)return"";if(!t||isNaN(t)){var i=e.toString().split(".");t=i.length>1?i[1].length:0}"number"==typeof e&&(e=e.toFixed(t));var o=!(e.toString().match(/[+]/)||!e.toString().match(/[-]/)),r=t&&e.length===t+1&&e.replace(",","").split("").every((function(e){return"0"===e}));if(e=e.toString().replace(/[^0-9]+/g,"").replace(/^0+/g,""),!r)for(;e.length<t+1;)e="0"+e.toString();var s="";e=e.split("");for(var a=0;a<e.length;a++){t&&a===t?s=","+s:a>t&&!((a-t)%3)&&(s="."+s),s=e[e.length-1-a]+s}return n?s:o?"-"+s:s},e=h([t.Pipe({name:"uiFloat"})],e)}(),Mt=function(){function e(e,n){this.elementRef=e,this.floatPipe=n,this.uiMaskFloat=2,this.ngModelChange=new t.EventEmitter,this.decimal=this.uiMaskFloat}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),void 0!==e.uiMaskFloat&&(this.uiMaskFloat=e.uiMaskFloat.currentValue||2,this.decimal=this.uiMaskFloat),void 0!==e.decimal&&(this.decimal=e.decimal.currentValue||2,this.uiMaskFloat=this.decimal),void 0!==e.max&&(this.max=e.max.currentValue),void 0!==e.min&&(this.min=e.min.currentValue)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.formatViewValue(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.formatViewValue(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){e=this.floatPipe.transform(e,+this.decimal,this.noNegative);var t=new RegExp("[^\\d\\,-]+","g");return e=e.toString().replace(t,""),"number"!=typeof(e=parseFloat(e.replace(",",".")))||isNaN(e)?null:e},e.prototype.formatViewValue=function(e){var t="0,";return t=t.padEnd(+this.decimal+2,"0"),e=this.beforeViewValue===t&&e.length<this.beforeViewValue.length?"":e,this.floatPipe.transform(e,+this.decimal,this.noNegative)},e.prototype.validate=function(e){return this.control=e,void 0!==this.min&&e.value&&this.format(e.value)<this.min?{min:!0}:void 0!==this.max&&e.value&&this.format(e.value)>this.max?{max:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=this.elementRef.nativeElement.value;this.input=!0,this.beforeViewValue=t,this.renderViaInput(t)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:It}]},h([t.Input(),f("design:type",Number)],e.prototype,"uiMaskFloat",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"decimal",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"min",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"noNegative",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskFloat][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},It]}),f("design:paramtypes",[t.ElementRef,It])],e)}(),St=function(){function e(e){var t=this;this.element=e,this.onShow=function(e){t.show(e)},this.onHide=function(){t.hide()}}return e.prototype.ngOnInit=function(){this.top||this.left||this.right||(this.bottom=!0)},e.prototype.ngAfterViewInit=function(){v.on(this.element.nativeElement,"mouseenter",this.onShow),v.on(this.element.nativeElement,"mouseleave",this.onHide)},e.prototype.ngOnDestroy=function(){v.off(this.element.nativeElement,"mouseenter",this.onShow),v.off(this.element.nativeElement,"mouseleave",this.onHide),this.hide()},e.prototype.setClass=function(){this.top&&(this.class="top"),this.left&&(this.class="left"),this.right&&(this.class="right"),this.bottom&&(this.class="bottom")},e.prototype.show=function(e){var t=this;if(this.uiTooltip){this.setClass(),this.wrap=document.createElement("div"),this.wrap.classList.add("wrap-tooltip",this.class),this.wrap.innerText=this.uiTooltip,document.body.appendChild(this.wrap);var n,i,o=v.position(this.element.nativeElement);if(this.top||this.bottom){n=(n=o.left+this.element.nativeElement.clientWidth/2-this.wrap.clientWidth/2)>0?n:0,i=o.top;var r=window.innerHeight-32>=this.element.nativeElement.clientHeight+i;this.bottom&&r?i+=this.element.nativeElement.clientHeight:i-=this.wrap.clientHeight}(this.left||this.right)&&(i=o.top+this.element.nativeElement.clientHeight/2-this.wrap.clientHeight/2,n=o.left,this.left&&n>=this.wrap.clientWidth?n-=this.wrap.clientWidth:n+=this.element.nativeElement.clientWidth),v.css(this.wrap,"left",Math.round(n)+"px"),v.css(this.wrap,"top",Math.round(i)+"px"),setTimeout((function(){return t.wrap&&t.wrap.classList.add("show")}))}},e.prototype.hide=function(){this.wrap&&(this.wrap.classList.add("hide"),Array.from(document.querySelectorAll(".wrap-tooltip")).forEach((function(e){return e.remove()})))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"uiTooltip",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"top",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"left",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"right",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"bottom",void 0),e=h([t.Directive({selector:"[uiTooltip]"}),f("design:paramtypes",[t.ElementRef])],e)}(),Dt=function(){function e(e){this.parent=e}return e.prototype.ngAfterViewInit=function(){this.parent.loadOption(this)},e.prototype.ngOnChanges=function(e){this.active&&e.label&&!e.label.firstChange&&(this.label=e.label.currentValue,this.parent.updateOptionLabel(this.label))},e.prototype.onSelect=function(){this.disabled||this.parent.select(this)},e.prototype.setActive=function(e){this.active=e},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.forwardRef((function(){return Tt}))]}]}]},h([t.Input(),f("design:type",Object)],e.prototype,"label",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"disabled",void 0),e=h([t.Component({selector:"ui-chosen-option",template:'<div class="option"\r\n uiRipple\r\n (click)="onSelect()"\r\n [ngClass]="{\'active\': active, \'disabled\': disabled}"\r\n *ngIf="!hidden"\r\n [title]="label">\r\n {{label}}\r\n</div>\r\n',styles:[":host{display:block}.option{font-size:16px;padding:14px 16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"]}),m(0,t.Inject(t.forwardRef((function(){return Tt})))),f("design:paramtypes",[Object])],e)}(),Ot=function(){function e(){}return e.prototype.ngOnInit=function(){},h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.ContentChildren(Dt),f("design:type",t.QueryList)],e.prototype,"options",void 0),e=h([t.Component({selector:"ui-chosen-group",template:'<div class="label" *ngIf="!hidden">{{label}}</div>\r\n<div *ngIf="!hidden">\r\n <ng-content></ng-content>\r\n</div>\r\n',styles:[":host{display:block}:host ::ng-deep ui-chosen-option .option{padding-left:32px}.label{font-size:16px;padding:14px 16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:500}"]}),f("design:paramtypes",[])],e)}(),Tt=function(){function e(e,n,i){this.element=e,this.viewContainerRef=n,this.changeDetectorRef=i,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.setAttribute("tabindex",this.element.nativeElement.getAttribute("tabindex")||"0"),v.on(window,"resize scroll",(function(){e.close()})),/Mobi|Android/.test(navigator.userAgent)&&(this.isMobile=!0,this.element.nativeElement.classList.add("mobile")),this.changeDetectorRef.detectChanges()},e.prototype.ngOnChanges=function(e){a.isNullOrUndefined(e.ngModel)||e.ngModel.firstChange||this.setValue(e.ngModel.currentValue),e.required&&!e.required.firstChange&&(this.required=e.required.currentValue),e.disabled&&(this.disabled=e.disabled.currentValue)},e.prototype.ngAfterContentInit=function(){var e=this;a.isNullOrUndefined(this.ngModel)||setTimeout((function(){return e.setValue(e.ngModel)}))},e.prototype.writeValue=function(){},e.prototype.registerOnChange=function(){},e.prototype.registerOnTouched=function(){},e.prototype.validate=function(e){return this.control=e,this.required&&!e.value&&0!==e.value?{required:!0}:null},e.prototype.onFocus=function(){var e=this;if(this.isMobile)this.nativeSelect.nativeElement.focus();else if(!this.focused)if(this.disabled)this.element.nativeElement.blur();else{this.clearFilter(),this.search&&setTimeout((function(){return e.inputSearch.nativeElement.focus()}),100),this.focused=!0;var t=v.position(this.element.nativeElement),n={x:t.left,y:t.top+this.element.nativeElement.clientHeight};this.render(n)}},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.optionTemplate),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&!n.classList.contains("wrap-chosen-overlay")&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;e.style.top=0,setTimeout((function(){var i=v.position(n.element.nativeElement,!0).top+e.clientHeight,o=document.body.clientHeight;i+n.element.nativeElement.clientHeight>o&&(t.y-=i-o+n.element.nativeElement.clientHeight),t.y<=0&&(t.y=0);var r=e.querySelector("ui-card > .content"),s=r.clientHeight,a=e.querySelector("ui-card > .search"),l=a?a.clientHeight:0;r.style.maxHeight=(s>o?o-l:s)+"px",e.style.transform="",e.style.top=t.y+"px",e.style.left=t.x+"px";var c=e.querySelector("ui-card");c.style.maxHeight=window.innerHeight+"px",c.style.maxWidth=window.innerWidth-16+"px",c.style.width=n.element.nativeElement.clientWidth+"px",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.focused=!1,this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.prototype.setValue=function(e){var t=this,n=!1;this.options.map((function(i){i.value==e?(n=!0,t.value=i.label,i.setActive(!0)):i.setActive(!1)})),n||(this.value=null),this.element.nativeElement.value=this.value},e.prototype.select=function(e){this.control.markAsDirty(),this.control.markAsTouched(),this.ngModelChange.emit(e.value),this.close()},e.prototype.filterList=function(){var e=this;this.options.map((function(t){t.hidden=!!e.searchText&&!P(t.label.toLowerCase()).includes(P(e.searchText.toLowerCase()))})),this.optionsGroup.map((function(e){return e.hidden=0===e.options.filter((function(e){return!e.hidden})).length}))},e.prototype.clearFilter=function(){this.searchText=null,this.filterList()},e.prototype.changeNativeSelect=function(){var e=this;setTimeout((function(){e.control.markAsDirty(),e.control.markAsTouched(),e.ngModelChange.emit(e.ngModel)}))},e.prototype.trackByValue=function(e,t){return t.value},e.prototype.updateOptionLabel=function(e){this.value=e},e.prototype.loadOption=function(e){a.isNullOrUndefined(this.ngModel)||e.value!==this.ngModel||(this.value=e.label),this.changeDetectorRef.detectChanges()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ViewContainerRef},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"search",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"required",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",String)],e.prototype,"placeholder",void 0),h([t.Input(),f("design:type",String)],e.prototype,"persistPlaceholder",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.ViewChild("optionTemplate",{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"optionTemplate",void 0),h([t.ViewChild("inputSearch"),f("design:type",t.ElementRef)],e.prototype,"inputSearch",void 0),h([t.ViewChild("nativeSelect"),f("design:type",t.ElementRef)],e.prototype,"nativeSelect",void 0),h([t.ContentChildren(Dt,{descendants:!0}),f("design:type",t.QueryList)],e.prototype,"options",void 0),h([t.ContentChildren(Dt),f("design:type",t.QueryList)],e.prototype,"onlyOptions",void 0),h([t.ContentChildren(Ot,{descendants:!0}),f("design:type",t.QueryList)],e.prototype,"optionsGroup",void 0),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),e=i=h([t.Component({selector:"ui-chosen",template:'<select *ngIf="isMobile"\r\n [required]="required"\r\n [(ngModel)]="ngModel"\r\n uiInput\r\n #nativeSelect\r\n [disabled]="disabled"\r\n (ngModelChange)="changeNativeSelect()">\r\n <option *ngFor="let option of onlyOptions; trackBy: trackByValue"\r\n [label]="option.label"\r\n [ngValue]="option.value"\r\n [disabled]="option.disabled">{{option.label}}</option>\r\n <optgroup *ngFor="let group of optionsGroup; trackBy: trackByValue" [label]="group.label">\r\n <option *ngFor="let option of group.options"\r\n [label]="option.label"\r\n [ngValue]="option.value"\r\n [disabled]="option.disabled"></option>\r\n </optgroup>\r\n</select>\r\n<div class="value" *ngIf="!isMobile" [class.disabled]="disabled" (click)="onFocus()">\r\n <span class="placeholder"\r\n *ngIf="placeholder && !value && ((!persistPlaceholder && focused) || persistPlaceholder)">\r\n {{placeholder}}\r\n </span>\r\n <span *ngIf="value">{{value}}</span>\r\n</div>\r\n<ng-template #optionTemplate>\r\n <div class="wrap-chosen-overlay" (click)="close()"></div>\r\n <div class="wrap-chosen">\r\n <ui-card>\r\n <div class="search" *ngIf="search">\r\n <ui-input-container class="no-space">\r\n <input type="text" uiInput [(ngModel)]="searchText" (ngModelChange)="filterList()" #inputSearch>\r\n <button type="button"\r\n class="suffix ui-button flat icon"\r\n uiRipple\r\n (click)="clearFilter()"\r\n [disabled]="!searchText"\r\n uiTooltip="Limpar busca">\r\n <i class="material-icons">{{searchText ? \'close\' : \'search\'}}</i>\r\n </button>\r\n </ui-input-container>\r\n </div>\r\n <div class="content">\r\n <ng-content></ng-content>\r\n </div>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}],styles:[":host.mobile.ui-control{padding:0;border-width:0}:host .value{text-overflow:ellipsis;overflow:hidden}:host .value.disabled{color:rgba(0,0,0,.54);cursor:not-allowed}:host .value span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wrap-chosen-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:7}.wrap-chosen{position:absolute;transition:transform 280ms,opacity 280ms;transform-origin:top left;transform:scale(0);opacity:0;z-index:7}.wrap-chosen.open{transition:transform 280ms cubic-bezier(0,0,.2,1),opacity 280ms cubic-bezier(0,0,.2,1);transform:scale(1);opacity:1}.wrap-chosen ui-card{box-shadow:0 2px 4px 0 rgba(0,0,0,.14),0 4px 5px 0 rgba(0,0,0,.12),0 1px 10px 0 rgba(0,0,0,.2);overflow:hidden}.wrap-chosen ui-card .search{padding:8px 16px}.wrap-chosen ui-card .search input{width:100%}.wrap-chosen ui-card .content{max-height:235px;overflow-y:auto}body.ui-nav-drawer-persistent .wrap-chosen{z-index:6}"]}),f("design:paramtypes",[t.ElementRef,t.ViewContainerRef,t.ChangeDetectorRef])],e)}(),Lt=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>4&&(e=e.substring(0,4)+" "+e.substring(4)),e.length>9&&(e=e.substring(0,9)+" "+e.substring(9)),e.length>14&&(e=e.substring(0,14)+" "+e.substring(14)),e.length>19&&(e=e.substring(0,19)),e):""},e=h([t.Pipe({name:"uiCreditCard"})],e)}(),Pt=function(){function e(e,n,i){this.elementRef=e,this.creditCardPipe=n,this.changeDetector=i,this.symbolsPositions=[4,9,14],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){this.loaded=!0,this.changeDetector.detectChanges()},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.elementRef.nativeElement.value=this.creditCardPipe.transform(this.ngModel)},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.creditCardPipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,16)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<16?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Lt},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"UiMaskCreditCard",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCreditCard][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Lt]}),f("design:paramtypes",[t.ElementRef,Lt,t.ChangeDetectorRef])],e)}(),At=function(){function e(){this.color="primary",this.openChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.toggle=function(){this.disabled||(this.open=!this.open,this.openChange.emit(this.open))},h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"noArrow",void 0),h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.Input(),f("design:type",String)],e.prototype,"description",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"open",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"openChange",void 0),e=h([t.Component({selector:"ui-expansion-panel",template:'<div class="ui-expansion-panel-wrap">\r\n\r\n <div class="ui-expansion-panel-header" \r\n (click)="toggle()" \r\n [ngStyle]="{\'opacity\': disabled ? \'.5\' : \'1\'}" \r\n uiRipple \r\n [ripple-disable]="disabled">\r\n <span class="ui-expansion-panel-title">\r\n <ui-subheader [class]="color">\r\n {{ label }}\r\n </ui-subheader>\r\n </span>\r\n <span class="ui-expansion-panel-description label secondary-text">\r\n {{ description }}\r\n </span>\r\n <span>\r\n <i [class]="\'material-icons ui-expansion-panel-arrow \' + color" \r\n [ngClass]="{\'ui-expansion-panel-collapsed\': !open}"\r\n [ngStyle]="{\r\n \'display\' : disabled || noArrow ? \'none\' : \'block\' \r\n }">\r\n keyboard_arrow_up\r\n </i>\r\n </span>\r\n </div>\r\n\r\n <div class="ui-expansion-panel-body" [@expandAnimation] *ngIf="open">\r\n <ng-content selector="ui-expansion-panel-content" >\r\n </ng-content>\r\n </div>\r\n\r\n</div>',animations:[p.trigger("expandAnimation",[p.transition(":enter",[p.style({height:"0"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"*"}))]),p.transition(":leave",[p.style({height:"*"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"0"}))])])],styles:[".ui-expansion-panel-header{display:flex;flex-direction:row;justify-content:space-between;padding:4px 16px;cursor:default}.ui-expansion-panel-header span{margin:auto 0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui-expansion-panel-header span i{transition:transform .3s cubic-bezier(.4,0,1,1)}.ui-expansion-panel-body{transition:height .3s cubic-bezier(.4,0,1,1);overflow-y:hidden}.ui-expansion-panel-description{font-size:14px;font-weight:500}.ui-expansion-panel-collapsed{transform:rotateZ(180deg)}@media screen and (max-width:480px){.ui-expansion-panel-description{display:none}}"]}),f("design:paramtypes",[])],e)}(),Vt=function(){function e(){}return h([t.ContentChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"template",void 0),e=h([t.Directive({selector:"[uiTabContent]"}),f("design:paramtypes",[])],e)}(),zt=function(){function e(){}return h([t.ContentChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"template",void 0),e=h([t.Directive({selector:"[uiTabLabel]"}),f("design:paramtypes",[])],e)}(),jt=function(){function e(e,n){this.viewContainer=e,this.changeDetectorRef=n,this.tabChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){var e=this;this.subscription=this.tabChange.subscribe((function(t){t&&(e.loaded=!0),e.isActive=t,e.changeDetectorRef.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ChangeDetectorRef}]},h([t.ViewChild("tabContent",{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"tabContent",void 0),h([t.ContentChild(Vt),f("design:type",Vt)],e.prototype,"templateContent",void 0),h([t.ContentChild(zt),f("design:type",zt)],e.prototype,"templateLabel",void 0),h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.Input(),f("design:type",String)],e.prototype,"icon",void 0),h([t.Input(),f("design:type",String)],e.prototype,"disabled",void 0),e=h([t.Component({selector:"ui-tab",template:'<ng-template #tabContent>\r\n <ng-content></ng-content>\r\n <div *ngIf="templateContent && templateContent.template && loaded">\r\n <ng-container *ngTemplateOutlet="templateContent.template"></ng-container>\r\n </div>\r\n</ng-template>\r\n',styles:[""]}),f("design:paramtypes",[t.ViewContainerRef,t.ChangeDetectorRef])],e)}(),Ft=function(){function e(e,t){this.element=e,this.changeDetectorRef=t,this.increment=90}return e.prototype.ngOnInit=function(){this.tabsContainer=this.element.nativeElement.querySelector(".tabs-container"),this.inkBar=this.element.nativeElement.querySelector(".ink-bar")},e.prototype.ngAfterViewInit=function(){var e=this;this.inkBar.addEventListener("transitionend",(function(){e.showInkBar=!1}))},e.prototype.ngAfterViewChecked=function(){this.hasRightScroll=this.checkRightScroll(),this.hasLeftScroll=this.checkLeftScroll(),this.changeDetectorRef.detectChanges()},e.prototype.moveInkBarTo=function(e){var t=this;this.showInkBar=!0,this.changeDetectorRef.detectChanges(),setTimeout((function(){v.css(t.inkBar,"left",e.offsetLeft+"px"),v.css(t.inkBar,"width",e.clientWidth+"px")}))},e.prototype.checkLeftScroll=function(){return this.tabsContainer.scrollLeft>0},e.prototype.checkRightScroll=function(){return this.tabsContainer.scrollLeft+this.tabsContainer.clientWidth<this.tabsContainer.scrollWidth},e.prototype.updateScroll=function(e){var t=this,n=this.tabsContainer.scrollLeft;v.animate(this.tabsContainer,"borderSpacing",n,n+e,280,null,(function(e){t.tabsContainer.scrollLeft=e}))},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"topIcon",void 0),e=h([t.Component({selector:"ui-tab-header",template:'<div class="navigation left" *ngIf="hasLeftScroll">\r\n <button type="button" class="ui-button icon flat" (click)="updateScroll(-increment)">\r\n <i class="material-icons">chevron_left</i>\r\n </button>\r\n</div>\r\n<div class="tabs-container">\r\n <div class="tabs" [class.top-icon]="topIcon">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class="ink-bar" [hidden]="!showInkBar"></div>\r\n</div>\r\n<div class="navigation right" *ngIf="hasRightScroll">\r\n <button type="button" class="ui-button icon flat" (click)="updateScroll(increment)">\r\n <i class="material-icons">chevron_right</i>\r\n </button>\r\n</div>\r\n',styles:[":host{display:flex;align-items:center;position:relative}@media only screen and (min-width:376px) and (min-width:764px){::ng-deep ui-tab-group.scrollable>ui-tab-header>.tabs-container,:host.scrollable>.tabs-container{padding-left:52px}}::ng-deep ui-tab-group.fixed>ui-tab-header .tab-wrap,::ng-deep ui-tab-group.fixed>ui-tab-header ::ng-deep>.tab-wrap,:host.fixed .tab-wrap,:host.fixed ::ng-deep>.tab-wrap{flex:1}.tabs-container{flex:1;position:relative;overflow:hidden}.tabs{display:flex;height:48px;align-items:center}.tabs.top-icon{height:72px}.tabs.top-icon .tab-wrap,.tabs.top-icon ::ng-deep .tab-wrap{height:72px}.tabs.top-icon .tab-wrap .tab,.tabs.top-icon ::ng-deep .tab-wrap .tab{flex-direction:column;height:72px}.tabs.top-icon .tab-wrap .tab>.icon,.tabs.top-icon ::ng-deep .tab-wrap .tab>.icon{padding-right:0;padding-bottom:4px}.tab-wrap .tab,::ng-deep .tab-wrap .tab{padding:0 16px;min-width:90px;max-width:360px;height:48px;font-size:14px;font-weight:500;text-align:center;text-decoration:none;text-transform:uppercase;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;cursor:default;transition:color 280ms cubic-bezier(0,0,.2,1),border-color cubic-bezier(0,0,.2,1)}.tab-wrap .tab:hover,::ng-deep .tab-wrap .tab:hover{text-decoration:none}.tab-wrap .tab>.icon,::ng-deep .tab-wrap .tab>.icon{padding-right:4px}.tab-wrap.active .tab,::ng-deep .tab-wrap.active .tab{transition:color 280ms cubic-bezier(0,0,.2,1),border-color cubic-bezier(0,0,.2,1) 280ms}.ink-bar{left:0;width:0;height:2px;position:absolute;bottom:0;transition:width 280ms cubic-bezier(0,0,.2,1),left 280ms cubic-bezier(0,0,.2,1)}.navigation{margin:0 8px;position:absolute;z-index:1}.navigation.left{left:0}.navigation.right{right:0}"]}),f("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Nt=p.trigger("tabFakeAnimation",[p.transition(":enter",p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)")),p.transition(":leave",p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)"))]),Bt=p.trigger("tabTransform",[p.state("left",p.style({transform:"translateX(-100%)",position:"absolute"})),p.state("right",p.style({transform:"translateX(100%)",position:"absolute"})),p.state("active",p.style({transform:"translateX(0)",position:"relative"})),p.transition("left <=> right",p.animate(280)),p.transition("active <=> right",p.animate(280)),p.transition("left <=> active",p.animate(280))]),Ht=function(){function e(e,t){this.changeDetectorRef=e,this.element=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.tabs=this.tabsQueryList.toArray(),this.changeDetectorRef.detectChanges(),this.generateIndexes();var t=this.getFirstTab(this.active);this.activateTab(t,this.getTabRef(t)),this.animation=!0,this.changeDetectorRef.detectChanges(),this.tabsQueryList.changes.subscribe((function(t){if(e.tabs=t.toArray(),e.generateIndexes(),!e.tabs.includes(e.activatedTab)){var n=e.tabs[e.activatedTab.index]||e.tabs[e.tabs.length-1];e.activateTab(n,e.getTabRef(n))}}))},e.prototype.generateIndexes=function(){this.tabs.map((function(e,t){return e.index=t}))},e.prototype.getFirstTab=function(e){if("number"==typeof e&&!this.tabs[e].disabled)return this.tabs[e];for(var t=0;t<this.tabs.length;t++){var n=this.tabs[t];if(!n.disabled)return n}},e.prototype.getTabRef=function(e){var t=this.element.nativeElement.querySelectorAll(".tab");return t?t[e.index]:null},e.prototype.activateTab=function(e,t){e.disabled||e===this.activatedTab||(this.activatedTab&&this.activatedTab.tabChange.emit(!1),this.tabsContentElement.nativeElement.style.height=this.tabsContentElement.nativeElement.clientHeight+"px",e.tabChange.emit(!0),this.changeDetectorRef.detectChanges(),this.activatedTab=e,this.tabHeader.moveInkBarTo(t),this.updateActivatedTab())},e.prototype.updateActivatedTab=function(){var e=this;this.tabs.map((function(t){return t.indexActivatedTab=e.activatedTab.index}))},e.prototype.startTranslateAnimation=function(e){"active"===e.toState&&(this.tabsContentElement.nativeElement.style.height=e.element.scrollHeight+"px")},e.prototype.doneTranslateAnimation=function(e){this.tabsContentElement.nativeElement.style.height=""},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},h([t.ContentChildren(jt),f("design:type",t.QueryList)],e.prototype,"tabsQueryList",void 0),h([t.ViewChild(Ft,{static:!0}),f("design:type",Ft)],e.prototype,"tabHeader",void 0),h([t.ViewChild("tabsContentElement",{static:!0}),f("design:type",t.ElementRef)],e.prototype,"tabsContentElement",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"active",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"fillBackground",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"themeInkBar",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"accent",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"topIcon",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"lazyLoad",void 0),e=h([t.Component({selector:"ui-tab-group",template:'<ui-tab-header [ngClass]="{\r\n \'fill-background\': fillBackground,\r\n \'accent\': accent,\r\n \'theme-ink-bar\': themeInkBar}"\r\n [topIcon]="topIcon">\r\n <div class="tab-wrap"\r\n *ngFor="let tab of tabs"\r\n [ngClass]="{\'active\': tab.isActive, \'disabled\': tab.disabled}"\r\n (click)="activateTab(tab, tabRef)"\r\n #tabRef>\r\n <div *ngIf="!tab.templateLabel" class="tab" uiRipple="!tab.disabled">\r\n <i class="material-icons icon" *ngIf="tab.icon">{{tab.icon}}</i>\r\n {{tab.label}}\r\n </div>\r\n <div *ngIf="tab.templateLabel">\r\n <ng-container *ngTemplateOutlet="tab.templateLabel.template"></ng-container>\r\n </div>\r\n </div>\r\n</ui-tab-header>\r\n<div class="wrap-content" #tabsContentElement>\r\n <div *ngFor="let tab of tabs"\r\n [@tabTransform]="animation ? (tab.index < activatedTab?.index ? \'left\' : tab.index > activatedTab?.index ? \'right\' : \'active\') : \'\'"\r\n class="tab-content"\r\n (@tabTransform.start)="startTranslateAnimation($event)"\r\n (@tabTransform.done)="doneTranslateAnimation($event)">\r\n <div *ngIf="tab.isActive || !lazyLoad" [@tabFakeAnimation]>\r\n <ng-container [ngTemplateOutlet]="tab.tabContent"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n',animations:[Nt,Bt],styles:[":host{overflow:hidden;position:relative;display:block}:host .wrap-content{position:relative;transition:280ms cubic-bezier(0,0,.2,1)}:host .tab-content{left:0;right:0;top:0}"]}),f("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),qt=function(){function e(){}return h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.Input(),f("design:type",String)],e.prototype,"content",void 0),e=h([t.Component({selector:"ui-label-content",template:'<div class="label secondary-text">{{label}}</div>\r\n<div class="content primary-text">{{content}}</div>\r\n',styles:[":host{display:block}.label{font-size:12px}.content{font-size:14px}"]})],e)}(),Wt=function(){function e(){}return e.prototype.readFile=function(e,t){if(this.multiple||(this.max=1),!this.max||this.ngModel.length!==this.max)if(this.maxLength&&e.name.length>this.maxLength)me.show({text:'Arquivo "'+e.name+'" não pode ultrapassar '+this.maxLength+" caracteres."});else{var n={},i=!1;n[this.modelConfig.name]=e.name,n[this.modelConfig.base64]=t,this.ngModel.forEach((function(e){if(n.name===e.name)return i=!0,void me.show({text:'Já existe o arquivo "'+e.name+'".',duration:4e3})})),i||(this.ngModel.push(n),this.ngModelChange.emit(this.ngModel))}},e.prototype.errorFile=function(e,t){if(t.type){var n=this.accept.toUpperCase().split(",");me.hide(),me.show({text:"Você pode selecionar apenas arquivo"+(1==n.length?" do tipo "+n[0]:"s dos tipos "+n.join(", "))+"."})}t.maxFileSize&&(me.hide(),me.show({text:"Use arquivos menores que "+this.maxFileSize+"."}))},e.prototype.removeFile=function(e,t){this.ngModel.splice(t,1),this.ngModelChange.emit(this.ngModel),this.remove.emit({file:e,index:t})},e.prototype.filesChange=function(e){this.max&&this.ngModel.length+e.length>this.max&&(me.hide(),me.show({text:"Você pode selecionar apenas "+this.max+" arquivo"+(this.max>1?"s":"")+"."}))},e.prototype.getFileName=function(e){return e[this.modelConfig.name]},h([t.Input(),f("design:type",String)],e.prototype,"accept",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"multiple",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"remove",void 0),e=h([t.Directive()],e)}(),_t=p.trigger("enterLeaveViewAnimation",[p.transition(":enter",[p.style({height:"0",transform:"scale(0.8) translateY(-16px)",opacity:0}),p.animate("550ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"*",transform:"scale(1) translateY(0)",opacity:1}))]),p.transition(":leave",[p.style({height:"*",transform:"scale(1) translateY(0)",opacity:1}),p.animate("550ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"0",transform:"scale(0.8) translateY(-16px)",opacity:0}))])]),Yt=function(e){function i(){var n=e.call(this)||this;return n.ngModelChange=new t.EventEmitter,n.remove=new t.EventEmitter,n.readFile=n.readFile.bind(n),n.errorFile=n.errorFile.bind(n),n}var o;return function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(i,e),o=i,i.prototype.ngOnInit=function(){this.modelConfig=u({name:"name",base64:"base64"},this.modelConfig)},i.prototype.ngOnChanges=function(e){e.ngModel&&(this.ngModel=e.ngModel.currentValue&&Array.isArray(e.ngModel.currentValue)?e.ngModel.currentValue:[]),e.modelConfig&&(this.modelConfig=u({name:"name",base64:"base64"},e.modelConfig.currentValue))},i.prototype.writeValue=function(e){},i.prototype.renderViaInput=function(e){},i.prototype.registerOnChange=function(e){},i.prototype.registerOnTouched=function(e){},i.prototype.onDragEnter=function(e){e.stopPropagation(),e.preventDefault(),this.isDragging=!0},i.prototype.onDragOver=function(e){e.stopPropagation(),e.preventDefault(),this.isDragging=!0,e.dataTransfer.dropEffect="copy"},i.prototype.onDragLeave=function(e){e.stopPropagation(),e.preventDefault(),this.isDragging=!1},i.prototype.onDrop=function(e){if(this.disabled)e.preventDefault();else{e.preventDefault(),e.stopPropagation(),this.isDragging=!1;var t=e.dataTransfer.files;this.inputFileRef.readFiles(t)}},h([t.ViewChild("inputFileRef"),f("design:type",Object)],i.prototype,"inputFileRef",void 0),h([t.Input(),f("design:type",Object)],i.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],i.prototype,"modelConfig",void 0),h([t.Input(),f("design:type",String)],i.prototype,"message",void 0),h([t.Input(),f("design:type",Number)],i.prototype,"max",void 0),h([t.Input(),f("design:type",Number)],i.prototype,"maxLength",void 0),h([t.Input(),f("design:type",String)],i.prototype,"maxSize",void 0),h([t.Input(),f("design:type",String)],i.prototype,"maxFileSize",void 0),h([t.Input(),f("design:type",Boolean)],i.prototype,"multiple",void 0),h([t.Input(),f("design:type",Boolean)],i.prototype,"disabled",void 0),h([t.Output(),f("design:type",t.EventEmitter)],i.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],i.prototype,"remove",void 0),h([t.HostListener("dragenter",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDragEnter",null),h([t.HostListener("dragover",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDragOver",null),h([t.HostListener("dragleave",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDragLeave",null),h([t.HostListener("drop",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDrop",null),i=o=h([t.Component({selector:"ui-upload",template:'<fieldset [disabled]="disabled">\r\n <input type="file"\r\n name="input"\r\n uiInputFile\r\n [(ngModel)]="model"\r\n [read]="readFile"\r\n [error]="errorFile"\r\n #inputFile\r\n [multiple]="multiple"\r\n #inputFileRef="uiInputFile"\r\n #fieldNovaImagem="ngModel"\r\n (filesChange)="filesChange($event)"\r\n [accept]="accept"\r\n [max-size]="maxSize"\r\n [max]="max"\r\n [max-file-size]="maxFileSize"\r\n class="ui-input-file-hidden"/>\r\n <div class="border" [class.dragging]="isDragging" [ngClass]="disabled ? \'fade\' : \'\'">\r\n <div [@enterLeaveViewAnimation]="ngModel.length === 1" *ngIf="ngModel && ngModel.length">\r\n <div [@enterLeaveViewAnimation] *ngFor="let file of ngModel; let i = index">\r\n <header>\r\n <div class="file-name">\r\n {{getFileName(ngModel[i])}}\r\n </div>\r\n <button class="ui-button icon error flat" type="button" (click)="removeFile(ngModel[i], i)"\r\n uiRipple>\r\n <i class="material-icons">delete</i>\r\n </button>\r\n </header>\r\n <div class="ui-divider" *ngIf="multiple"></div>\r\n </div>\r\n </div>\r\n <section uiRipple (click)="inputFile.click()" [ripple-disable]="disabled">\r\n <i class="material-icons theme">cloud_upload</i>\r\n <div class="message text-area">\r\n Arraste e solte seu arquivo aqui <br> ou <span class=theme>encontre na sua galeria</span>\r\n </div>\r\n </section>\r\n </div>\r\n</fieldset>\r\n',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}],animations:[_t],styles:[":host.space{margin:8px 0;display:block}fieldset:disabled{cursor:not-allowed}fieldset:disabled i{color:#afafaf}fieldset:disabled .fade{color:#afafaf;border-color:#afafaf}fieldset:disabled .fade span{color:#afafaf}.border{border-radius:4px;position:relative;transition:border 280ms cubic-bezier(0,0,.2,1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.border .file-name,.border .message{font-weight:500}.border .file-name{font-size:16px;word-break:break-all;cursor:pointer}.border .message{text-align:center;font-size:14px}.border header{display:flex;align-items:center;padding:8px 8px 8px 16px;justify-content:space-between}.border header button{cursor:pointer}.border .ui-divider{margin:0}.border section{display:flex;justify-content:center;padding:32px;align-items:center}.border section i{font-size:55px}.border section .text-area{color:#afafaf;padding:8px}"]}),f("design:paramtypes",[])],i)}(Wt),Ut=[A,B,N,H,W,Y,U,G,$,K,Z,J,Q,ee,te,ne,ie,re,se,de,fe,fe,ge,ye,ve,Q,ee,ie,Re,Ie,Me,Te,Oe,Pe,Le,Ve,Ae,je,ze,Ne,Fe,Be,qe,We,Fe,_e,Ye,Xe,$e,Ge,Ke,Ze,Je,Qe,et,Qe,tt,nt,it,ot,rt,ct,pt,dt,pt,ut,mt,ft,gt,yt,bt,vt,xt,Et,Ct,kt,Rt,Mt,St,Tt,Dt,Ot,Lt,Pt,At,It,jt,Ht,Vt,zt,Ft,qt,Yt],Xt=function(){function e(){}return e=h([t.NgModule({imports:[i.CommonModule,n.FormsModule,o.RouterModule],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],declarations:y(Ut),exports:y(Ut),providers:[z,V,v,_,me,Ce,Ue,ht,wt],entryComponents:[B,N,Ge,ct,ut]})],e)}();e.SMNUIModule=Xt,e.UiCepNovoPipe=ze,e.UiCepPipe=Ae,e.UiCnpjPipe=Le,e.UiColor=z,e.UiCookie=q,e.UiCpfPipe=Oe,e.UiCreditCardPipe=Lt,e.UiCurrencyPipe=vt,e.UiDatetimeService=V,e.UiDialog=wt,e.UiElement=v,e.UiElementRef=X,e.UiFilterPipe=kt,e.UiFloatPipe=It,e.UiInfiniteLoadService=Ue,e.UiMaskCreditCard=Pt,e.UiMaskPhoneDirective=Ne,e.UiPhonePipe=Fe,e.UiSnackbar=me,e.UiTimePipe=gt,e.UiToolbarService=xe,e.UiWindowRef=Ce,e.debounce=M,e.unaccent=P,e.ɵa=j,e.ɵb=F,e.ɵba=ye,e.ɵbb=ve,e.ɵbc=Re,e.ɵbd=Ie,e.ɵbe=Me,e.ɵbf=Te,e.ɵbg=Pe,e.ɵbh=Ve,e.ɵbi=je,e.ɵbj=Be,e.ɵbk=qe,e.ɵbl=We,e.ɵbm=_e,e.ɵbn=Ye,e.ɵbo=Xe,e.ɵbp=$e,e.ɵbq=Ge,e.ɵbr=Ke,e.ɵbs=Ze,e.ɵbt=Je,e.ɵbu=Qe,e.ɵbv=et,e.ɵbw=tt,e.ɵbx=nt,e.ɵby=it,e.ɵbz=ot,e.ɵc=Ee,e.ɵca=rt,e.ɵcb=ct,e.ɵcc=pt,e.ɵcd=dt,e.ɵce=ut,e.ɵcf=mt,e.ɵcg=ht,e.ɵch=ft,e.ɵci=yt,e.ɵcj=bt,e.ɵck=xt,e.ɵcl=Et,e.ɵcm=Ct,e.ɵcn=Rt,e.ɵco=Mt,e.ɵcp=St,e.ɵcq=Tt,e.ɵcr=Dt,e.ɵcs=Ot,e.ɵct=At,e.ɵcu=jt,e.ɵcv=Vt,e.ɵcw=zt,e.ɵcx=Ht,e.ɵcy=Nt,e.ɵcz=Bt,e.ɵd=A,e.ɵda=Ft,e.ɵdb=qt,e.ɵdc=Yt,e.ɵdd=Wt,e.ɵde=_t,e.ɵe=B,e.ɵf=N,e.ɵg=H,e.ɵh=W,e.ɵi=Y,e.ɵj=_,e.ɵk=U,e.ɵl=G,e.ɵm=$,e.ɵn=K,e.ɵo=Z,e.ɵp=J,e.ɵq=Q,e.ɵr=ee,e.ɵs=te,e.ɵt=ne,e.ɵu=ie,e.ɵv=re,e.ɵw=se,e.ɵx=de,e.ɵy=fe,e.ɵz=ge,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function h(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function m(e,t){return function(n,i){t(n,i,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}var v=function(){function e(){}var n;return n=e,e.disableScroll=function(){window.addEventListener&&window.addEventListener("DOMMouseScroll",w,!1),window.onwheel=w,window.ontouchmove=w,document.onkeydown=x},e.enableScroll=function(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",w,!1),window.onwheel=null,window.ontouchmove=null,document.onkeydown=null},e.closest=function(e,t){var n,i=null;for(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].some((function(e){return"function"==typeof document.body[e]&&(i=e,!0)}));e;){if((n=e.parentElement)&&n[i](t))return n;e=n}return null},e.index=function(e){for(var t,n,i=e.parentNode.childNodes,o=n=0;(t=i.item(o++))&&t!==e;)1===t.nodeType&&n++;return n},e.trigger=function(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!1),e.dispatchEvent(n)},e.on=function(e,t,n){var i;i=e.constructor===NodeList?e:[e],t=t.split(" "),Array.prototype.forEach.call(i,(function(e){t.forEach((function(t){return e.addEventListener(t,n,!1)}))}))},e.off=function(e,t,n){for(var i=(t=t.split(" ")).length,o=0;o<i;o++)t[o]&&e.removeEventListener(t[o],n,!1)},e.is=function(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;return n?n.call(e,t):null},e.position=function(e,t){return e.getBoundingClientRect?function(e){var n=e.getBoundingClientRect(),i=document.body,o=document.documentElement,r=0,s=0;t||(r=window.pageYOffset||o.scrollTop||i.scrollTop,s=window.pageXOffset||o.scrollLeft||i.scrollLeft);var a=o.clientTop||i.clientTop||0,l=o.clientLeft||i.clientLeft||0,c=n.top+r-a,p=n.left+s-l;return{top:Math.round(c),left:Math.round(p)}}(e):function(e){var t=0,n=0;for(;e;)t+=parseInt(e.offsetTop,10),n+=parseInt(e.offsetLeft,10),e=e.offsetParent;return{top:t,left:n}}(e)},e.offset=function(e){var t=e.offsetTop,n=e.offsetLeft;return{top:Math.round(t),left:Math.round(n)}},e.animate=function(e,t,n,i,o,r,s){var a=["width","height","left","top","border-radius","border-spacing","margin-left","margin-top"],l=0,c=(i-n)/o/.06,p=setInterval((function(){l++;var o=n+c*l;s&&s(o);var u=a.indexOf(t)>-1;e.style[t]=o+(u?"px":""),(n>i?o.toFixed(2)<=i:o.toFixed(2)>=i)&&(clearInterval(p),r&&r())}),1/.06)},e.css=function(e,t,n){if(void 0!==n)t=t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})),e.style[t]=n;else{var i=void 0,o=(e.ownerDocument||document).defaultView;if(o&&o.getComputedStyle)return t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),o.getComputedStyle(e,null).getPropertyValue(t);if(e.currentStyle)return t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()})),i=e.currentStyle[t],/^\d+(em|pt|%|ex)?$/i.test(i)?(r=i,s=e.style.left,a=e.runtimeStyle.left,e.runtimeStyle.left=e.currentStyle.left,e.style.left=r||0,r=e.style.pixelLeft+"px",e.style.left=s,e.runtimeStyle.left=a,r):i}var r,s,a},e.isInViewport=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.left<=(window.innerWidth||document.documentElement.clientWidth)},e.focus=function(e){e.focus();var t=document.querySelector("ui-toolbar header").clientHeight+16;n.position(e,!0).top<t&&window.scrollTo(0,n.position(e).top-t)},e.isMobile=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},e.caretPosition={get:E,set:C},e.classList={remove:k,add:R,contains:I},e=n=h([t.Injectable()],e)}(),b={38:1,40:1};function w(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}function x(e){if(b[e.keyCode])return w(e),!1}function E(e){var t={selection:void 0};Object.assign(t,document);var n=0;if(t.selection){e.focus();var i=t.selection.createRange();i.moveStart("character",-e.value.length),n=i.text.length}else(e.selectionStart||"0"===e.selectionStart)&&(n=e.selectionStart);return n}function C(e,t,n,i){var o;if(i=i||[],e.selectionStart||"0"===e.selectionStart){o=n;for(var r=0;r<i.length;r++)if(t===i[r]&&n===i[r]+1){o=i[r]+2;break}setTimeout((function(){!function(){if(e.setSelectionRange)e.selectionStart?(e.focus(),e.setSelectionRange(o,o)):e.focus();else if(e.createTextRange){var t=e.createTextRange();t.collapse(!0),t.move("character",o),t.moveEnd("character",o),t.moveStart("character",o),t.select()}}()}))}}function k(e,t){return e.classList.remove(t)}function R(e,t){return e.classList.add(t)}function I(e,t){return e.classList.contains(t)}function M(e,t,n){var i;return function(){var o=this,r=arguments,s=function(){i=null,n||e.apply(o,r)},a=n&&!i;clearTimeout(i),i=setTimeout(s,t),a&&e.apply(o,r)}}v.on(window,"scroll resize",(function(e){var t=document.querySelectorAll(".ui-fab-container"),n=t.length;if(n)for(var i=window.scrollY||window.pageYOffset,o=0;o<n;o++){var r=t[o];i>1?r.classList.add("scrolled"):r.classList.remove("scrolled")}}));for(var S=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹÐ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],D={},O=0;O<S.length;O++)for(var T=S[O].letters,L=0;L<T.length;L++)D[T[L]]=S[O].base;function A(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return D[e]||e}))}var P=function(){function e(e){this.viewContainerRef=e}return e.ctorParameters=function(){return[{type:t.ViewContainerRef}]},e=h([t.Directive({selector:"[addCalendar]"}),f("design:paramtypes",[t.ViewContainerRef])],e)}(),V=function(){function e(){this.days=["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],this.shortDays=["dom","seg","ter","qua","qui","sex","sáb"],this.months=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],this.shortMonths=["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"]}return e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),z=function(){function e(){}return e.isBright=function(e,t){return j(e,t)},e.hexToRgb=function(e){return F(e)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}();function j(e,t){var n=F(e);return!!n&&1-(.299*n.r+.587*n.g+.114*n.b)/255<(t||.3)}function F(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}var N=function(){function e(e,t,n){this.datetimeService=e,this.elementRef=t,this.changeDetectorRef=n,this.chosen=new r.Subject,this.days=e.days,this.months=e.months}return e.prototype.ngAfterViewInit=function(){var e=this;this.events&&this.events.length&&(this.verifyEventDates(),this.changeDetectorRef.detectChanges()),this.elementRef.nativeElement.querySelectorAll(".days button").forEach((function(t){t.addEventListener("keydown",(function(t){var n,i,o=v.closest(t.target,".day"),r=v.index(o),s=0;setTimeout((function(){switch(t.keyCode){case 37:(n=e.getSibling(r-1)).length||(n=e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])"),s=n.length-1),n[s].focus();break;case 38:n=e.getSibling(r-7),i=e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])")[0],n.length&&r>v.index(n[0])?n[0].focus():i.focus();break;case 39:(n=e.getSibling(r+1)).length?n[0].focus():e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])")[0].focus();break;case 40:n=e.getSibling(r+7),i=(i=e.elementRef.nativeElement.querySelectorAll(".days button:not([disabled])"))[i.length-1],n.length&&r<v.index(n[0].parentNode)?n[0].focus():i.focus()}}))}))})),this.elementRef.nativeElement.addEventListener("keydown",(function(e){if([37,38,39,40].indexOf(e.keyCode)>-1)return e.preventDefault(),!1}))},e.prototype.getSibling=function(e){return e<0||!this.elementRef.nativeElement.querySelectorAll(".day")[e]?[]:this.elementRef.nativeElement.querySelectorAll(".day")[e].querySelectorAll("button:not([disabled])")},e.prototype.isDay=function(e){var t=this.chosenDate;if(t)return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()},e.prototype.chooseDate=function(e){if(e){this.chosenDate=e,this.confirmSelection||(this.ngModel=e);var t={value:e,confirmSelection:this.confirmSelection};this.chosen.next(t)}},e.prototype.isDisabled=function(e){var t=this.minDate?new Date(this.minDate).getTime():null,n=this.maxDate?new Date(this.maxDate).getTime():null,i=e.getTime();return"number"==typeof t&&!isNaN(t)&&i<t||"number"==typeof n&&!isNaN(n)&&i>n},e.prototype.verifyEventDates=function(){var e=this;this.calendar.days.map((function(t){e.events.map((function(e){new Date(e.date).getTime()+6e4*t.value.getTimezoneOffset()===t.value.getTime()&&(t.hasEvent=!0,t.eventColor=e.color,t.blocked=e.blocked)}))}))},e.prototype.isBright=function(e){return z.isBright(e)},e.ctorParameters=function(){return[{type:V},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},e=h([t.Component({selector:"ui-calendar-content",template:'<div class="label">\r\n <button class="month-label">\r\n <span>{{months[calendar.month] + \' de \' + calendar.year | uiCapitalize}}</span>\r\n </button>\r\n</div>\r\n<div class="week-header">\r\n <div class="week-day" *ngFor="let day of days">{{day.charAt(0).toUpperCase()}}</div>\r\n</div>\r\n<div class="days">\r\n <div class="day" *ngFor="let day of calendar.days">\r\n <button type="button"\r\n class="ui-button icon"\r\n [style.backgroundColor]="day.eventColor"\r\n (click)="!isDisabled(day.value) && chooseDate(day.value)"\r\n [disabled]="isDisabled(day.value) || day.blocked"\r\n [ngClass]="{\'primary\': isDay(day.value) || day.today && !day.hasEvent, \'flat\': !isDay(day.value),\r\n \'dark-text\': isBright(day.color), \'light-text\': !isBright(day.color) && !isDisabled(day.value)}"\r\n *ngIf="day.month === calendar.month">\r\n {{day.date}}\r\n </button>\r\n </div>\r\n</div>\r\n',styles:[":host{width:296px;display:block;padding:8px 0}:host .label{height:36px}:host .month-label{background-color:transparent;width:100%;height:36px;display:flex;align-items:center;justify-content:center;border-radius:2px;font-size:14px}:host .week-header{display:flex;font-weight:700;padding:0 8px}:host .days{display:flex;flex-wrap:wrap;padding:0 8px}:host .day,:host .week-day{display:flex;align-items:center;justify-content:center;width:14.28%;height:40px;font-size:12px}:host .dark-text{color:rgba(0,0,0,.84)}:host .light-text{color:#fff}"]}),f("design:paramtypes",[V,t.ElementRef,t.ChangeDetectorRef])],e)}(),H=function(){function e(e,n){this.componentFactoryResolver=e,this.datetimeService=n,this.select=new t.EventEmitter,this.selectDateChange=new t.EventEmitter,this.cancel=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.updateMonth=new t.EventEmitter,this.chosen=new r.Subject,this.days=n.days,this.shortDays=n.shortDays,this.months=n.months}return e.prototype.ngOnInit=function(){this.minDate=this.minDate&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.maxDate=this.maxDate&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate,this.chosenDate=this.ngModel&&s.isDate(new Date(this.ngModel))?new Date(this.ngModel):null,this.ngModel=this.ngModel&&s.isDate(new Date(this.ngModel))?new Date(this.ngModel):this.ngModel,this.viewDate=s.isDate(this.ngModel)?this.ngModel:this.initOnSelected||new Date,this.renderCalendar(this.viewDate)},e.prototype.ngOnChanges=function(e){if(e.ngModel&&!e.ngModel.firstChange&&!isNaN(e.ngModel.currentValue)){var t=e.ngModel.currentValue=e.ngModel.currentValue&&s.isDate(new Date(e.ngModel.currentValue))?new Date(e.ngModel.currentValue):e.ngModel.currentValue;this.ngModel=this.chosenDate=this.componentRef.instance.chosenDate=this.componentRef.instance.ngModel=t}if(e.maxDate&&!e.maxDate.firstChange){var n=e.maxDate.currentValue=e.maxDate.currentValue&&s.isDate(new Date(e.maxDate.currentValue))?new Date(e.maxDate.currentValue):e.maxDate.currentValue;this.componentRef.instance.maxDate=this.maxDate=n}if(e.minDate&&!e.minDate.firstChange){var i=e.minDate.currentValue=e.minDate.currentValue&&s.isDate(new Date(e.minDate.currentValue))?new Date(e.minDate.currentValue):e.minDate.currentValue;this.componentRef.instance.minDate=this.minDate=i}e.confirmSelection&&(this.confirmSelection=e.confirmSelection.currentValue)},e.prototype.prevMonth=function(){this.viewDate.setMonth(this.viewDate.getMonth()-1),this.updateMonth.emit(),this.renderCalendar(this.viewDate)},e.prototype.nextMonth=function(){this.viewDate.setMonth(this.viewDate.getMonth()+1),this.updateMonth.emit(),this.renderCalendar(this.viewDate)},e.prototype.selectDate=function(e){this.ngModel=this.componentRef.instance.ngModel=e,this.ngModelChange.emit(this.ngModel),this.select.emit(this.ngModel),this.selectDateChange.emit(this.ngModel),this.chosen.next(this.ngModel)},e.prototype.cancelDate=function(){this.ngModel=this.chosenDate=this.componentRef.instance.ngModel=this.componentRef.instance.chosenDate=null,this.cancel.emit(),this.ngModelChange.emit(this.ngModel)},e.prototype.renderCalendar=function(e){var t=this,n=e;n.setHours(0,0,0,0),n.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0),this.viewDate=n;var i={year:n.getFullYear(),month:n.getMonth(),monthDays:n.getDate(),lastDayWeek:n.getDay(),lastDayWeekName:this.days[n.getDay()]};n.setDate(1),i.firstDayWeek=n.getDay(),i.firstDayWeekName=this.days[n.getDay()],i.totalDays=i.monthDays+i.firstDayWeek+(6-i.lastDayWeek),i.days=[];for(var o=1-i.firstDayWeek,r=i.monthDays+(7-i.lastDayWeek),s=o;s<r;s++){n=new Date(i.year,i.month,s);var a=new Date;a=n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()&&n.getDate()===a.getDate(),i.days.push({month:n.getMonth(),date:n.getDate(),value:n,time:n.getTime(),today:a})}this.calendar=i;var l=this.componentFactoryResolver.resolveComponentFactory(N),c=this.addCalendar.viewContainerRef;c.clear(),this.componentRef=c.createComponent(l),["calendar","ngModel","minDate","maxDate","chosenDate","confirmSelection","events"].map((function(e){return t.componentRef.instance[e]=t[e]})),this.componentRef.instance.chosen.subscribe((function(e){e&&(t.chosenDate=e.value,e.confirmSelection||t.selectDate(e.value))}))},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:V}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"maxDate",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"minDate",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"hideHeader",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"initOnSelected",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"selectDateChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"cancel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"updateMonth",void 0),h([t.ViewChild(P,{static:!0}),f("design:type",P)],e.prototype,"addCalendar",void 0),e=h([t.Component({selector:"ui-calendar",template:'<header *ngIf="!hideHeader">\r\n <div>\r\n <div class="year" >{{chosenDate && chosenDate.getFullYear()}}</div>\r\n <span class="date-empty" *ngIf="!chosenDate">Selecione uma data</span>\r\n <div class="date" *ngIf="chosenDate">\r\n <span class="week-day">{{shortDays[chosenDate.getDay()] | uiCapitalize}},</span> {{chosenDate.getDate()}} de {{months[chosenDate.getMonth()] | uiCapitalize}}\r\n </div>\r\n </div>\r\n</header>\r\n<div>\r\n <div class="content">\r\n <div class="controls">\r\n <button class="prev ui-button icon flat"\r\n (click)="prevMonth()"\r\n [hidden]="!(!minDate || (calendar && calendar.days[0].time > minDate.getTime()))"\r\n tabindex="0"><i class="material-icons">keyboard_arrow_left</i></button>\r\n <button class="next ui-button icon flat"\r\n (click)="nextMonth()"\r\n [hidden]="!(!maxDate || (calendar && calendar.days[calendar.days.length - 1].time < maxDate.getTime()))"\r\n tabindex="2"><i class="material-icons">keyboard_arrow_right</i></button>\r\n </div>\r\n <div class="calendar-cover">\r\n <div addCalendar></div>\r\n </div>\r\n </div>\r\n <div class="actions ui-button-container align-right" *ngIf="confirmSelection">\r\n <button class="ui-button flat primary" (click)="cancelDate()">Cancelar</button>\r\n <button class="ui-button flat primary" (click)="selectDate(chosenDate)">Ok</button>\r\n </div>\r\n</div>\r\n',encapsulation:t.ViewEncapsulation.None,styles:["@-webkit-keyframes open{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes open{0%{transform:scale(0)}100%{transform:scale(1)}}ui-calendar{display:inline-flex;flex-direction:column;overflow:hidden;border-radius:2px;position:relative;z-index:0}ui-calendar header{padding:16px;min-height:72px;display:flex;justify-content:center;flex-direction:column}ui-calendar header .year{font-size:14px;opacity:.8;font-weight:400}ui-calendar header .date-empty{font-size:18px;font-weight:500}ui-calendar header .date{margin-top:8px;font-size:26px;font-weight:500}ui-calendar .actions{padding:8px;text-align:right;cursor:default}ui-calendar .content{position:relative}ui-calendar .content .calendar-cover{position:relative;overflow:hidden;transition:.3s ease-in-out}ui-calendar .content .controls{position:absolute;top:0;left:0;right:0;z-index:1}ui-calendar .content .controls button{position:absolute;top:0;margin:8px}ui-calendar .content .controls .prev{left:0}ui-calendar .content .controls .next{right:0}@media (min-width:600px),(min-width:496px) and (orientation:landscape){ui-calendar:not(.portrait-only){flex-direction:row}ui-calendar:not(.portrait-only) header{justify-content:flex-start;width:192px}ui-calendar:not(.portrait-only) header .week-day{display:block}}"]}),f("design:paramtypes",[t.ComponentFactoryResolver,V])],e)}(),B=function(){function e(){}return e.prototype.transform=function(e,t){return e&&e.length>0?e[0].toUpperCase()+e.substr(1).toLowerCase():e},e=h([t.Pipe({name:"uiCapitalize"})],e)}(),q=function(){function e(){}return e.get=function(e){for(var t,n=document.cookie.split(";"),i=n.length,o=e+"=",r=0;r<i;r+=1)if(0===(t=n[r].replace(/^\s+/g,"")).indexOf(o))return t.substring(o.length,t.length);return""},e.has=function(e){return!!this.get(e)},e.delete=function(e,t){this.set(e,"",-1,null,t)},e.set=function(e,t,n,i,o){void 0===n&&(n=365),void 0===i&&(i="/");var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var s="expires="+r.toUTCString();o&&(o="; domain="+o),document.cookie=e+"="+t+"; "+s+"; path="+i+o},e=h([t.Injectable()],e)}(),W=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=document.createElement("i");e.classList.add("material-icons"),e.innerHTML="arrow_downward",this.element.nativeElement.classList.contains("align-right")?this.element.nativeElement.insertBefore(e.cloneNode(!0),this.element.nativeElement.firstChild):this.element.nativeElement.appendChild(e.cloneNode(!0))},e.prototype.ngOnChanges=function(e){e.uiDataTableOrderBy&&!e.uiDataTableOrderBy.firstChange&&(this.uiDataTableOrderBy=e.uiDataTableOrderBy.currentValue,this.orderByCondition())},e.prototype.orderByClick=function(){this.element.nativeElement.classList.contains("order_desc")||this.element.nativeElement.classList.contains("order_asc")?this.element.nativeElement.classList.contains("order_asc")?(this.element.nativeElement.classList.add("order_desc"),this.element.nativeElement.classList.remove("order_asc")):this.element.nativeElement.classList.contains("order_desc")&&(this.element.nativeElement.classList.remove("order_desc"),this.element.nativeElement.classList.remove("order_asc")):this.element.nativeElement.classList.add("order_asc")},e.prototype.orderByCondition=function(){switch(this.uiDataTableOrderBy){case"ASC":this.element.nativeElement.classList.add("order_asc"),this.element.nativeElement.classList.remove("order_desc");break;case"DESC":this.element.nativeElement.classList.add("order_desc"),this.element.nativeElement.classList.remove("order_asc");break;default:this.element.nativeElement.classList.remove("order_asc","order_desc")}},e.prototype.onClick=function(){this.withCondition||this.orderByClick()},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("withCondition"),f("design:type",Boolean)],e.prototype,"withCondition",void 0),h([t.Input("uiDataTableOrderBy"),f("design:type",String)],e.prototype,"uiDataTableOrderBy",void 0),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),e=h([t.Directive({selector:"th[uiDataTableOrderBy]"}),f("design:paramtypes",[t.ElementRef])],e)}(),_=function(){function e(){this.datePickers={}}return e.prototype.add=function(e,t){this.datePickers&&this.datePickers[e]||(this.datePickers[e]=t)},e.prototype.get=function(e){return this.datePickers[e]},e.prototype.remove=function(e){delete this.datePickers[e]},e.prototype.closeAll=function(){v.trigger(window,"click")},e.prototype.getAll=function(){return this.datePickers},e.prototype.updateModel=function(e,t){this.datePickers[e].ngModel=t,this.datePickers[e].ngModelChange.emit(t)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),Y=function(){function e(e,t,n,i,o){this.componentFactoryResolver=e,this.applicationRef=t,this.injector=n,this.referencesService=i,this.elementRef=o}return e.prototype.ngAfterViewInit=function(){var e=this;this.datePicker=this.referencesService.get(this.datePickerCaller),v.on(this.elementRef.nativeElement,this.pickerEvent||"click",(function(t){e.inputElement=document.querySelector('[date-picker-name="'+e.datePickerCaller+'"]'),e.referencesService.closeAll(),e.pickerOpen||(e.renderDatePicker(e.datePicker),t.stopPropagation())})),v.on(window,"click resize scroll",(function(t){e.pickerOpen&&((v.is(t.target,".wrap-date-picker")||v.closest(t.target,".wrap-date-picker")||document.body.clientWidth<=600&&"scroll"===t.type)&&!v.is(t.target,".overlay")||e.closePicker())}))},e.prototype.getComponentAsElement=function(e){return e.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){var n=this;["ngModel","maxDate","minDate","initOnSelected","confirmSelection","select","selectDateChange","events"].map((function(n){return t.instance[n]=e[n]})),t.instance.cancel.subscribe((function(){return n.closePicker()})),t.instance.updateMonth.subscribe((function(){return n.setCoordinate(n.componentElement)})),e.chosen.subscribe((function(e){return t.instance.ngOnChanges(e)})),t.instance.chosen.subscribe((function(e){n.referencesService.updateModel(n.datePickerCaller,e),n.pickerOpen&&(n.inputElement.focus(),n.closePicker())}))},e.prototype.renderViewCalendar=function(e,t){this.wrapDatePicker=document.createElement("div"),this.wrapDatePicker.classList.add("wrap-date-picker");var n=document.createElement("div");n.classList.add("overlay"),t&&this.wrapDatePicker.classList.add(t),this.wrapDatePicker.style.transform="scale(0)",e.classList.add("portrait-only"),this.wrapDatePicker.appendChild(n),this.wrapDatePicker.appendChild(e),document.body.appendChild(this.wrapDatePicker),this.setCoordinate(e)},e.prototype.renderDatePicker=function(e){var t=this.componentFactoryResolver.resolveComponentFactory(H);this.componentRef=t.create(this.injector),this.componentElement=this.getComponentAsElement(this.componentRef),this.setInstances(e,this.componentRef),this.applicationRef.attachView(this.componentRef.hostView),this.renderViewCalendar(this.componentElement,e.themeClass),this.pickerOpen=!0},e.prototype.closePicker=function(){var e=this;this.wrapDatePicker.classList.remove("open"),setTimeout((function(){e.pickerOpen=!1,e.applicationRef.detachView(e.componentRef.hostView),document.body.style.overflowY="";try{document.body.removeChild(e.wrapDatePicker)}catch(e){}}),280)},e.prototype.setCoordinate=function(e){var t=this,n=v.position(this.inputElement),i={x:n.left,y:this.inputElement.offsetHeight+n.top};setTimeout((function(){var n=i.x+e.clientWidth,o=i.y+e.clientHeight,r=window.innerWidth+(document.body.scrollLeft||window.scrollX||window.pageXOffset),s=window.innerHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);n>r&&(i.x=r-(e.clientWidth+8)),o>s&&(i.y=s-(e.clientHeight+8)),t.wrapDatePicker.style.transform="",e.style.position="absolute",e.style.top=i.y+"px",e.style.left=i.x+"px",t.wrapDatePicker.classList.add("open"),document.body.clientWidth<=600&&(document.body.style.overflowY="hidden")}))},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:_},{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"pickerEvent",void 0),h([t.Input("uiDatePickerCaller"),f("design:type",String)],e.prototype,"datePickerCaller",void 0),e=h([t.Directive({selector:"[uiDatePickerCaller]"}),f("design:paramtypes",[t.ComponentFactoryResolver,t.ApplicationRef,t.Injector,_,t.ElementRef])],e)}(),U=function(){function e(e,n,i){this.referencesService=e,this.element=n,this.changeDetectorRef=i,this.select=new t.EventEmitter,this.selectDateChange=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.chosen=new r.Subject,this.minDate=this.minDate&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.maxDate=this.maxDate&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate}return e.prototype.ngOnInit=function(){this.referencesService.add(this.datePicker,this)},e.prototype.ngAfterViewInit=function(){this.element.nativeElement.setAttribute("date-picker-name",this.datePicker)},e.prototype.ngOnChanges=function(e){this.chosen.next(e),e.ngModel&&""===e.ngModel.currentValue&&(this.ngModelChange.emit(null),this.changeDetectorRef.detectChanges())},e.prototype.ngOnDestroy=function(){this.referencesService.remove(this.datePicker)},e.ctorParameters=function(){return[{type:_},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"maxDate",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"minDate",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"events",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"initOnSelected",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("uiDatePicker"),f("design:type",String)],e.prototype,"datePicker",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"selectDateChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Directive({selector:"[uiDatePicker]"}),f("design:paramtypes",[_,t.ElementRef,t.ChangeDetectorRef])],e)}(),X=function(){function e(t){if(this.nativeElement=t,t)if(t.length)if(this.length=t.length,t===window)this[0]=new e(t);else for(var n=0;n<t.length;n++)this[n]=new e(t[n]);else this.length=1,this[0]=t;this.classList={remove:function(e){return v.classList.remove(t,e)},add:function(e){return v.classList.add(t,e)},contains:function(e){return v.classList.contains(t,e)}}}return e.prototype.closest=function(t){return new e(v.closest(this.nativeElement,t))},e.prototype.index=function(){return v.index(this.nativeElement)},e.prototype.trigger=function(e){return v.trigger(this.nativeElement,e)},e.prototype.on=function(e,t){return v.on(this.nativeElement,e,t)},e.prototype.off=function(e,t){return v.off(this.nativeElement,e,t)},e.prototype.is=function(e){return v.is(this.nativeElement,e)},e.prototype.position=function(e){return v.position(this.nativeElement,e)},e.prototype.offset=function(){return v.offset(this.nativeElement)},e.prototype.animate=function(e,t,n,i,o,r){return v.animate(this.nativeElement,e,t,n,i,o,r)},e.prototype.querySelector=function(t){var n=this.nativeElement.querySelectorAll(t);return n.length?new e(n=1===n.length?n[0]:n):new e(null)},e.prototype.forEach=function(e){return Array.prototype.forEach.call(this,e)},e.prototype.filter=function(e){return Array.prototype.filter.call(this,e)},e.prototype.indexOf=function(e){return Array.prototype.indexOf.call(this,e)},e.prototype.css=function(e,t){return v.css(this.nativeElement,e,t)},e.prototype.isInViewport=function(){return v.isInViewport(this.nativeElement)},e.prototype.attribute=function(e,t){return void 0!==t?this.nativeElement.setAttribute(e,t):this.nativeElement.getAttribute(e)},e.prototype.height=function(e){return void 0!==e&&v.css(this.nativeElement,"height",e),this.nativeElement.clientHeight},e.prototype.parent=function(){return new e(this.nativeElement.parentNode)},e.prototype.focus=function(){this.nativeElement&&this.nativeElement.focus&&this.nativeElement.focus()},e}(),$=function(){function e(e){this.elementRef=e,this.closeChange=new t.EventEmitter}return e.prototype.close=function(){var e=this;if(this.opened=!1,this.closeChange.emit(),this.viewRef){var t=new X(document).querySelector(".ui-fab-container");t.length&&t.classList.remove("hide"),this.viewRef.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),this.viewRef&&setTimeout((function(){e.viewRef.rootNodes.forEach((function(e){e.remove?e.remove():e.parentNode.removeChild(e)})),e.viewRef.destroy(),e.viewRef=null}),280),document.body.style.overflowY=""}},e.prototype.show=function(e){var t=this;if(!this.viewRef){this.close(),void 0===(e=e||{}).clickOverlayToClose?e.clickOverlayToClose=!0:e.clickOverlayToClose&&(e.clickOverlayToClose=JSON.parse(e.clickOverlayToClose)),this.viewRef=this.templateRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))}},e.prototype.open=function(e,t){var n=this;this.opened=!0,setTimeout((function(){var i=new X(document).querySelector(".ui-fab-container");t.darkClass&&e.classList.add(t.darkClass),t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),(t.cardSize||n.cardSize)&&(e.querySelector("ui-card").style.maxWidth=(t.cardSize||n.cardSize)+"px",e.querySelector("ui-card").style.width="100%"),!t.transparentOverlay&&i.length&&i.classList.add("hide"),t.clickOverlayToClose&&e.querySelector(".overlay").addEventListener("click",(function(){n.close()})),e.style.transform="",e.classList.add("open"),document.body.style.overflowY="hidden"}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("card-size"),f("design:type",Number)],e.prototype,"cardSize",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"closeChange",void 0),h([t.ViewChild(t.TemplateRef,{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=h([t.Component({selector:"ui-dialog",template:'<ng-template>\r\n <div class="wrap-dialog">\r\n <div class="overlay"></div>\r\n <ui-card>\r\n <ng-content>\r\n </ng-content>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n',encapsulation:t.ViewEncapsulation.None,styles:[".wrap-dialog{position:fixed;z-index:5;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:16px}.wrap-dialog ui-card{transform-origin:bottom;transition:transform 225ms cubic-bezier(.4,0,1,1),opacity 195ms cubic-bezier(.4,0,1,1);transform:scale(.8) translateY(16px);box-shadow:0 24px 38px 3px rgba(0,0,0,.14),0 9px 49px 8px rgba(0,0,0,.12),0 11px 15px 0 rgba(0,0,0,.2);opacity:0;max-width:100%;max-height:100%;overflow-y:auto}.wrap-dialog .overlay{transition:opacity 280ms;left:0;top:0;position:absolute;width:100%;height:100%;opacity:0}.wrap-dialog.open ui-card{transition:transform 225ms cubic-bezier(0,0,.2,1),opacity 195ms cubic-bezier(0,0,.2,1);transform:scale(1) translateY(0);opacity:1}.wrap-dialog.open .overlay{transition:opacity 280ms cubic-bezier(0,0,.2,1);opacity:1}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),G=function(){function e(e,t){this.viewContainerRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.dialog.closeChange.subscribe((function(){e.close()})),v.on(this.elementRef.nativeElement,this.triggerEvents||"click",(function(){e.render()})),this.clickOverlayToClose=void 0===this.clickOverlayToClose||this.clickOverlayToClose},e.prototype.render=function(){var e=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.dialog.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(t){document.body.appendChild(t),t.clientWidth&&e.open(t)}))},e.prototype.open=function(e){var t=this;this.opened=!0,setTimeout((function(){var n=document.querySelectorAll(".ui-fab-container");t.darkClass&&e.classList.add(t.darkClass),t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.dialog.cardSize&&(e.querySelectorAll("ui-card")[0].style.maxWidth=t.dialog.cardSize+"px",e.querySelectorAll("ui-card")[0].style.width="100%"),!t.transparentOverlay&&n.length&&Array.prototype.forEach.call(n,(function(e){e.classList.add("hide")})),t.clickOverlayToClose&&e.querySelectorAll(".overlay")[0].addEventListener("click",(function(){t.close()})),e.style.transform="",e.classList.add("open"),document.body.style.overflowY="hidden"}))},e.prototype.close=function(){var e=this;if(this.opened=!1,this.viewContainerRef.length){var t=this.viewRef,n=document.querySelectorAll(".ui-fab-container");n.length&&Array.prototype.forEach.call(n,(function(e){e.classList.remove("hide")})),t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280),document.body.style.overflowY=""}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.Input("trigger-events"),f("design:type",String)],e.prototype,"triggerEvents",void 0),h([t.Input("dark-class"),f("design:type",String)],e.prototype,"darkClass",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("transparent-overlay"),f("design:type",Boolean)],e.prototype,"transparentOverlay",void 0),h([t.Input("uiDialogTrigger"),f("design:type",Object)],e.prototype,"dialog",void 0),h([t.Input("click-overlay-to-close"),f("design:type",Object)],e.prototype,"clickOverlayToClose",void 0),e=h([t.Directive({selector:"[uiDialogTrigger]"}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),K=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement,t=e.getElementsByClassName("ui-input-wrap")[0],n=e.getElementsByClassName("icon")[0],i=document.createElement("div");if(i.className="line",t.appendChild(i),n){var o=n===t.firstElementChild?"insertBefore":"appendChild";t.removeChild(n),e[o](n,e.firstChild)}},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"loading",void 0),e=h([t.Component({selector:"ui-input-container",template:'\n <div class="ui-input-wrap">\n <ng-content></ng-content>\n \n <div *ngIf="loading" class="ui-progress input">\n <div class="indeterminate"></div>\n </div>\n </div>\n ',encapsulation:t.ViewEncapsulation.None}),f("design:paramtypes",[t.ElementRef])],e)}(),Z=function(){function e(e,n){this.element=e,this.renderer=n,this.ngModelChange=new t.EventEmitter,this.placeholder=e.nativeElement.placeholder}return e.prototype.ngAfterViewInit=function(){this.renderer.addClass(this.element.nativeElement,"ui-control"),this.setPlaceholder()},e.prototype.ngOnChanges=function(){this.isEmpty(this.ngModel)},e.prototype.onBlur=function(){this.isEmpty(this.ngModel)},e.prototype.onFocus=function(){this.isEmpty(this.ngModel),this.setPlaceholder(this.placeholder)},e.prototype.onFocusout=function(){this.setPlaceholder()},e.prototype.isEmpty=function(e){var t=this;function n(){var n=a.isNullOrUndefined(e)&&!t.element.nativeElement.value?"addClass":"removeClass";a.isNullOrUndefined(t.ngModel)||!t.ngModel.trim||t.ngModel.trim()||(n="addClass"),t.renderer[n](t.element.nativeElement,"ui-empty")}n(),setTimeout(n)},e.prototype.setPlaceholder=function(e){e=this.persistPlaceholder?this.placeholder:e||"",this.renderer.setProperty(this.element.nativeElement,"placeholder",e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"persistPlaceholder",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("blur"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onBlur",null),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),h([t.HostListener("focusout"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocusout",null),e=h([t.Directive({selector:"[uiInput]"}),f("design:paramtypes",[t.ElementRef,t.Renderer2])],e)}(),J=function(){function e(){}var i;return i=e,e.prototype.validate=function(e){var t=e.value?e.value.toString():e.value;return t&&t.length>this.maxLength?{uiMaxlength:!0}:null},h([t.Input("uiMaxlength"),f("design:type",Object)],e.prototype,"maxLength",void 0),e=i=h([t.Directive({selector:"[uiMaxlength][ngModel]",providers:[{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[])],e)}(),Q=function(){function e(e,n){this.viewContainerRef=e,this.elementRef=n,this.closeChange=new t.EventEmitter}return e.prototype.ngOnDestroy=function(){this.close()},e.prototype.show=function(e,t){t&&(this.element=t.element||null,this.themeClass=t.class||null,this.menuAlign=t.align||null,this.persistentMenu=t.persistent||null),this.createListener();var n={x:e.clientX,y:e.clientY+window.pageYOffset};if(this.element){var i=v.position(this.element);n={x:i.left,y:i.top}}this.render(n)},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;setTimeout((function(){var i=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+document.body.scrollLeft,s=document.body.clientHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);"right"===n.menuAlign&&(t.x-=e.clientWidth-(n.element?n.element.clientWidth:0),i=t.x),i>r&&(e.classList.add("right"),t.x=r-(e.clientWidth+8)),t.x<=8&&(t.x=8),o>s&&(t.y=s-(e.clientHeight+8)),t.y<=0&&(t.y=0),n.themeClass&&e.classList.add(n.themeClass),n.menuAlign&&e.classList.add(n.menuAlign),e.style.transform="",e.querySelector("ui-card").style.maxHeight=window.innerHeight+"px",e.style.top=t.y+"px",e.style.left=t.x+"px",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.closeChange.emit(),this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.prototype.createListener=function(){var e=this;this.listenerExists||(this.listenerExists=!0,v.on(window,"mouseup resize scroll touchend",(function(t){e.elementRef.nativeElement!==t.target&&(e.persistentMenu||e.close())})))},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.ViewChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"closeChange",void 0),e=h([t.Component({selector:"ui-menu",template:'<ng-template>\r\n <div class="wrap-menu-overlay" *ngIf="overlay" (click)="close()"></div>\r\n <div class="wrap-menu">\r\n <ui-card>\r\n <ng-content>\r\n </ng-content>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n\r\n',encapsulation:t.ViewEncapsulation.None,styles:[".wrap-menu-overlay{position:fixed;top:0;left:0;right:0;bottom:0}.wrap-menu{position:absolute;transition:transform 280ms,opacity 280ms;transform-origin:top left;transform:scale(0);opacity:0;z-index:5}.wrap-menu.right{transform-origin:top right}.wrap-menu.top{transform-origin:top}.wrap-menu.open{transition:transform 280ms cubic-bezier(0,0,.2,1),opacity 280ms cubic-bezier(0,0,.2,1);transform:scale(1);opacity:1}.wrap-menu ui-card{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 15px 0 rgba(0,0,0,.2);overflow-y:auto}.wrap-menu .ui-menu-title{font-size:14px;font-weight:500;padding:8px 24px}.wrap-menu .ui-menu-content{padding:8px 0;min-width:56px}.wrap-menu .ui-menu-content.size-2x{min-width:112px}.wrap-menu .ui-menu-content.size-3x{min-width:168px}.wrap-menu .ui-menu-content.size-4x{min-width:224px}.wrap-menu .ui-menu-content.size-5x{min-width:280px}.wrap-menu .ui-menu-content.size-6x{min-width:336px}.wrap-menu .ui-menu-content.size-7x{min-width:392px}.wrap-menu .ui-menu-item{height:48px;line-height:48px;padding:0 16px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;align-items:center;color:inherit;text-decoration:none;transition:280ms cubic-bezier(0,0,.2,1)}.wrap-menu .ui-menu-item:not(a){cursor:default}.wrap-menu .ui-menu-item .icon{margin-right:14px;margin-left:-4px}.wrap-menu ui-subheader{color:inherit;padding:0 16px}@media only screen and (min-width:376px) and (min-width:764px){.wrap-menu .ui-menu-content.size-2x{min-width:128px}.wrap-menu .ui-menu-content.size-3x{min-width:192px}.wrap-menu .ui-menu-content.size-4x{min-width:256px}.wrap-menu .ui-menu-content.size-5x{min-width:320px}.wrap-menu .ui-menu-content.size-6x{min-width:384px}.wrap-menu .ui-menu-content.size-7x{min-width:448px}.wrap-menu .ui-menu-item{height:32px;line-height:32px;font-size:15px;padding:0 24px}.wrap-menu ui-subheader{min-height:32px;padding:0 24px}}body.ui-nav-drawer-persistent .wrap-menu{z-index:6}"]}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),ee=function(){function e(e,t){this.viewContainerRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.menu.closeChange.subscribe((function(){e.close()})),v.on(this.elementRef.nativeElement,this.triggerEvents||"click",(function(t){e.menu.overlay=e.overlay,e.persistentMenu||e.close(),e.contextmenu||setTimeout((function(){var t=v.position(e.elementRef.nativeElement),n={x:t.left,y:t.top};e.render(n)}))})),v.on(window,"mouseup resize scroll touchend",(function(t){if(!e.fixed||"scroll"!==t.type&&"resize"!==t.type){if(e.clickOverlayToClose)switch(t.type){case"mouseup":case"touchend":return void(v.closest(t.target,".wrap-menu")||e.close());default:return void e.close()}e.elementRef.nativeElement!==t.target&&(e.persistentMenu||e.close())}})),v.on(window,"mouseup touchend",(function(t){!e.clickOverlayToClose||v.closest(t.target,".wrap-menu")||e.close()}))},e.prototype.onContextmenu=function(){if(!this.contextmenu)return!0;var e=v.position(this.elementRef.nativeElement),t={x:e.left,y:e.top};return this.render(t),!1},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.menu.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&!n.classList.contains("wrap-menu-overlay")&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;setTimeout((function(){var i=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+document.body.scrollLeft,s=document.body.clientHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);"right"!==n.align&&"right"!==n.menuAlign||(t.x-=e.clientWidth-n.elementRef.nativeElement.clientWidth,i=t.x),i>r&&(t.x=r-(e.clientWidth+8)),t.x<=8&&(t.x=8),o>s&&(t.y=s-(e.clientHeight+8)),t.y<=0&&(t.y=0),n.themeClass&&e.classList.add(n.themeClass),(n.align||n.menuAlign)&&e.classList.add(n.align||n.menuAlign),e.style.transform="",e.querySelector("ui-card").style.maxHeight=window.innerHeight+"px",e.querySelector("ui-card").style.maxWidth=window.innerWidth-16+"px",e.style.top=t.y+"px",e.style.left=t.x+"px",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.Input("trigger-events"),f("design:type",Object)],e.prototype,"triggerEvents",void 0),h([t.Input("theme-class"),f("design:type",Object)],e.prototype,"themeClass",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"align",void 0),h([t.Input("menu-align"),f("design:type",Object)],e.prototype,"menuAlign",void 0),h([t.Input("uiMenuTrigger"),f("design:type",Object)],e.prototype,"menu",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"persistentMenu",void 0),h([t.Input("click-overlay-to-close"),f("design:type",Object)],e.prototype,"clickOverlayToClose",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"contextmenu",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"overlay",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"fixed",void 0),h([t.HostListener("contextmenu"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onContextmenu",null),e=h([t.Directive({selector:"[uiMenuTrigger]"}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),te=function(){function e(e){var n=this;this.element=e,this.openChange=new t.EventEmitter,this.openNav=function(){if(document.body.clientWidth<=375||!n.element.nativeElement.classList.contains("persistent")&&(window.scrollY||window.pageYOffset)>1){var e=document.querySelectorAll(".ui-fab-container")[0];e&&e.classList.add("hide")}n.element.nativeElement.classList.add("open"),n.element.nativeElement.classList.contains("persistent")?document.body.style.overflowY="":document.body.style.overflowY="hidden"},this.closeNav=function(){var e=document.querySelectorAll(".ui-fab-container")[0];e&&e.classList.remove("hide"),n.element.nativeElement.classList.remove("open"),document.body.style.overflowY=""}}return e.prototype.ngAfterViewInit=function(){var e=this,t=v.closest(this.element.nativeElement,"body");t.classList.add("notransition"),setTimeout((function(){t.classList.remove("notransition"),e.element.nativeElement.querySelectorAll(".ui-nav-drawer-overlay")[0].style.visibility="visible"}),300);var n=this.element.nativeElement.classList.contains("persistent"),i=this.element.nativeElement.classList.contains("open");n&&i?document.body.clientWidth>375&&t.classList.add("ui-nav-drawer-persistent"):t.classList.remove("ui-nav-drawer-persistent"),this.element.nativeElement.addEventListener("click",(function(t){n&&window.innerWidth>763||!v.is(t.srcElement,"a")||(e.open=!1,e.openChange.emit(e.open))})),this.open?this.openNav():this.closeNav();var o,r,s,a=this.element.nativeElement.querySelector("nav");this.onTouchStart=function(t){e.element.nativeElement.classList.contains(".right")||(r=t.touches[0].pageX,o=r>0&&r<40?"open":o,o=r>320&&r<360?"close":o)},this.onTouchMove=function(t){o&&(s=t.touches[0].pageX-r,"open"!==o||e.open?"close"===o&&e.open&&(s=(s=s<-330?-330:s)>0?0:s,v.css(a,"transform","translateX("+s+"px)")):(s=s>320?320:s,v.css(a,"transform","translateX("+(-320+s)+"px)")))},this.onTouchEnd=function(t){o&&("open"===o&&s>20?(v.css(a,"transform",""),e.open=!0,e.openChange.emit(e.open),e.openNav()):"close"===o&&s<-20?(v.css(a,"transform",""),e.open=!1,e.openChange.emit(e.open),e.closeNav()):v.css(a,"transform","")),o=void 0},v.on(window,"touchstart",this.onTouchStart),v.on(window,"touchmove",this.onTouchMove),v.on(window,"touchend",this.onTouchEnd)},e.prototype.ngOnChanges=function(e){if("true"===q.get("NavDrawerPersistent")&&(this.open=!0,this.openNav()),e.open){var t=e.open.currentValue;this.open=t,t?this.openNav():this.closeNav();var n=this.element.nativeElement.classList.contains("persistent"),i=v.closest(this.element.nativeElement,"body");n&&t?document.body.clientWidth>375&&(i.classList.add("ui-nav-drawer-persistent"),q.set("NavDrawerPersistent","true")):(i.classList.remove("ui-nav-drawer-persistent"),q.set("NavDrawerPersistent","false")),setTimeout((function(){v.trigger(window,"resize")}),280)}},e.prototype.ngOnDestroy=function(){v.off(window,"touchstart",this.onTouchStart),v.off(window,"touchmove",this.onTouchMove),v.off(window,"touchend",this.onTouchEnd),document.body.classList.add("notransition"),document.body.classList.remove("ui-nav-drawer-persistent"),setTimeout((function(){document.body.classList.remove("notransition")}),1)},e.prototype.closeMenuOverlay=function(){void 0!==this.open&&(this.open=!1,this.openChange.emit(this.open))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"open",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"openChange",void 0),e=h([t.Component({selector:"ui-nav-drawer",template:'<nav>\r\n <ng-content></ng-content>\r\n</nav>\r\n<div class="ui-nav-drawer-overlay" (click)="closeMenuOverlay()"></div>\r\n',encapsulation:t.ViewEncapsulation.None,styles:["ui-nav-drawer.right nav{right:-10px;left:auto;transform:translateX(100%)}ui-nav-drawer nav{top:0;bottom:0;max-width:320px;position:fixed;width:100%;z-index:7;box-shadow:0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px 0 rgba(0,0,0,.2);transition:transform 280ms cubic-bezier(0,0,.2,1);transform:translateX(-100%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;left:-10px}ui-nav-drawer nav .ui-nav-drawer-overflow{height:calc(100% - 64px);overflow:auto;margin-top:-1px;position:relative}ui-nav-drawer nav .ui-list{padding-bottom:0}ui-nav-drawer nav .ui-list .ui-list-item:not(.nothing){padding-left:21px}ui-nav-drawer.persistent nav{z-index:4}ui-nav-drawer.open nav{left:0;transform:translateX(0)}ui-nav-drawer.open.right nav{left:auto;right:0}ui-nav-drawer:not(.persistent) .ui-nav-drawer-overlay{position:fixed;left:0;top:0;bottom:0;right:0;opacity:0;z-index:-1;visibility:hidden}@media (max-width:375px),only screen and (min-width:376px) and (max-width:763px){ui-nav-drawer nav{width:calc(100% - 56px)}ui-nav-drawer .ui-nav-drawer-overlay{position:fixed;left:0;top:0;bottom:0;right:0;opacity:0;z-index:-1;visibility:hidden}}ui-nav-drawer.open nav+.ui-nav-drawer-overlay{-webkit-animation:280ms cubic-bezier(0,0,.2,1) openNav;animation:280ms cubic-bezier(0,0,.2,1) openNav;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}ui-nav-drawer:not(.open) nav+.ui-nav-drawer-overlay{-webkit-animation:280ms cubic-bezier(0,0,.2,1) closeNav;animation:280ms cubic-bezier(0,0,.2,1) closeNav;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes openNav{0%{opacity:0;z-index:3}100%{opacity:1;z-index:3}}@keyframes openNav{0%{opacity:0;z-index:3}100%{opacity:1;z-index:3}}@-webkit-keyframes closeNav{0%{opacity:1;z-index:3}99%{opacity:0;z-index:3}100%{opacity:0;z-index:-1}}@keyframes closeNav{0%{opacity:1;z-index:3}99%{opacity:0;z-index:3}100%{opacity:0;z-index:-1}}body{transition:margin-left 280ms cubic-bezier(0,0,.2,1)}@media only screen and (min-width:376px) and (min-width:764px){ui-nav-drawer.persistent nav{box-shadow:0 0 2px 0 rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.12),0 1px 3px 0 rgba(0,0,0,.2)}body.ui-nav-drawer-persistent{margin-left:320px}}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),ne=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement.querySelector("input");e.classList.add("ui-option");e.insertAdjacentHTML("afterend",'<div class="ui-option-shell"><div class="ui-option-fill"></div><div class="ui-option-mark"></div></div>'),this.setColor()},e.prototype.ngOnChanges=function(e){e.color&&!e.color.firstChange&&this.setColor()},e.prototype.setColor=function(){this.element.nativeElement.querySelector(".ui-option-fill").style.borderColor=this.color||""},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),e=h([t.Component({selector:"ui-option",template:"<label>\r\n <ng-content></ng-content>\r\n</label>\r\n",encapsulation:t.ViewEncapsulation.None,styles:['ui-option-container{display:flex;flex-wrap:wrap;min-height:32px;align-items:center;margin-bottom:8px}ui-option-container .info{color:rgba(0,0,0,.87);display:block;width:100%;margin-bottom:8px;font-size:12px;line-height:16px}ui-option-container .info .secondary{display:block;color:rgba(0,0,0,.54)}ui-option-container>ui-option{flex:0 0 auto;max-width:100%;margin-right:16px}ui-option{position:relative;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ui-option.no-space{margin:0}ui-option input{width:0;height:0;position:absolute;z-index:-9999;opacity:0}ui-option .ui-option-shell{position:relative;flex:0 0 auto;width:18px;height:18px;transition:.2s ease-in-out}ui-option.small{font-size:14px}ui-option.small .ui-option-shell{width:14px;height:14px}ui-option.small input[type=checkbox]:checked+.ui-option-shell .ui-option-fill{border-width:7px}ui-option .ui-option-shell:not(:last-child){margin-right:4px}ui-option input[type=checkbox]+.ui-option-shell,ui-option input[type=checkbox]+.ui-option-shell .ui-option-fill{border-radius:2px}ui-option input[type=radio]+.ui-option-shell,ui-option input[type=radio]+.ui-option-shell .ui-option-fill{border-radius:50%}ui-option .ui-option-shell::before{content:"";display:block;position:absolute;top:-100%;left:-100%;right:-100%;bottom:-100%;transform:scale(0);border-radius:50%;transition:.1s ease-in-out;pointer-events:none}ui-option .ui-option:focus+.ui-option-shell::before,ui-option>label:active .ui-option-shell::before{transform:scale(1)}ui-option input[type=checkbox]:not(:disabled):active+.ui-option-shell,ui-option>label:active .ui-option-shell{transform:scale(.9)}ui-option .ui-option-fill{content:"";display:block;position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;margin:auto;border-radius:2px;overflow:hidden;transition:.1s ease-in-out}ui-option input[type=checkbox]+.ui-option-shell .ui-option-fill{border-width:0;border-style:solid;transition:border .2s ease-in-out}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-fill{border-width:9px}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark{position:absolute;top:0;left:0;width:50%;height:90%;transform:rotate(45deg) translate(22%,-26%);opacity:0;transition:50ms ease-in-out}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-mark{opacity:1}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::after,ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::before{content:"";position:absolute;display:block;background-color:#fff;transition:transform .1s ease-in-out,opacity .2s ease-in-out}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::before{top:87%;left:0;right:0;bottom:0;transform-origin:0 50%;transform:scaleX(0)}ui-option input[type=checkbox]+.ui-option-shell .ui-option-mark::after{top:10%;left:70%;right:0;bottom:0;transform-origin:50% 100%;transform:scaleY(0)}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-mark::before{transform:scaleX(1);transition:50ms ease-in-out .2s,opacity linear}ui-option input[type=checkbox]:checked+.ui-option-shell .ui-option-mark::after{transform:scaleY(1);transition:50ms ease-in-out 250ms,opacity linear}ui-option input[type=radio]+.ui-option-shell .ui-option-fill{transition:border .1s ease-in-out .1s,transform .2s ease-in-out}ui-option input[type=radio]:checked+.ui-option-shell .ui-option-fill{border-width:9px;transform:scale(.6);transition:border .2s ease-in-out,transform .3s cubic-bezier(.42,0,.53,2) .1s}ui-option input:disabled+.ui-option-shell{opacity:.6}ui-option input:disabled+*{cursor:not-allowed;transform:scale(1)!important}ui-option input:disabled+.ui-option-shell::before{display:none}ui-option input:disabled+div+span{color:#bdbdbd}ui-option>label{display:flex;align-items:center;min-height:19px}']}),f("design:paramtypes",[t.ElementRef])],e)}(),ie=function(){function e(){}return e.prototype.ngOnInit=function(){},e=h([t.Component({selector:"ui-progress-radial.indeterminate",template:'<svg class="spinner-container" viewBox="0 0 44 44">\r\n <circle class="path" cx="22" cy="22" r="20" fill="none" stroke-width="4"></circle>\r\n</svg>\r\n',styles:[":host{width:24px;display:block}:host .spinner-container{-webkit-animation:2s linear infinite rotate;animation:2s linear infinite rotate;z-index:2}:host .spinner-container .path{stroke-dasharray:1,150;stroke-dashoffset:0;-webkit-animation:1.5s ease-in-out infinite dash;animation:1.5s ease-in-out infinite dash}:host #initial_startup .spinner-container .path,:host #startup .spinner-container .path{stroke:#acb9bf}@-webkit-keyframes rotate{100%{transform:rotate(360deg)}}@keyframes rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host-context(.ui-button.fab),:host-context(.ui-button.icon){position:absolute;width:100%;top:0}"]}),f("design:paramtypes",[])],e)}(),oe=0,re=function(){function e(e){this.element=e,this.isIE=navigator.userAgent.indexOf("Trident")>-1}return e.prototype.ngAfterViewInit=function(){this.elRippleContainerTemplate=document.createElement("div"),this.elRippleContainerTemplate.classList.add("ui-ripple-container"),this.elRippleTemplate=document.createElement("div"),this.elRippleTemplate.classList.add("ui-ripple-wave"),this.elRippleContainerTemplateClone=this.elRippleContainerTemplate.cloneNode(!0)},e.prototype.onMousedown=function(e){if(!this.isIE&&(oe=document.querySelectorAll(".ui-ripple-wave").length,!this.rippleDisable&&!this.element.nativeElement.hasAttribute("disabled")&&oe<10)){var t=this.element.nativeElement.offsetWidth,n=this.element.nativeElement.offsetHeight,i=this.element.nativeElement.classList.contains("icon"),o=this.element.nativeElement.classList.contains("fab"),r=this.element.nativeElement.classList.contains("ripple-rounded");(i||o||r)&&(this.elRippleContainerTemplateClone.style.borderRadius="50%"),this.elRippleContainerTemplateClone.style.width=t+"px",this.elRippleContainerTemplateClone.style.height=n+"px",this.element.nativeElement.appendChild(this.elRippleContainerTemplateClone);var s=this.elRippleTemplate.cloneNode(!0),a=void 0,l=void 0,c=void 0,p=void 0;t>n?(a=3*t,l=3*t):(a=3*n,l=3*n),c=-a/2,p=-a/2,s.style.width=a+"px",s.style.height=l+"px";var u=this.getMousePosition(e),d=v.position(this.element.nativeElement),h={y:u.y-d.top,x:u.x-d.left};i||o||r?(c+=t/2,p+=t/2):(c+=h.y,p+=h.x),s.style.top=c+"px",s.style.left=p+"px",this.elRippleContainerTemplateClone.insertBefore(s,this.elRippleContainerTemplateClone.firstChild),this.elRippleContainerTemplateClone.classList.add("pressed"),v.animate(this.elRippleContainerTemplateClone,"border-spacing",0,1,800,null,(function(e){s.style.transform="scale("+e+")"})),oe++}},e.prototype.onMouseup=function(){var e=this;this.isIE||M((function(){e.eraseRipples(e)}),800,!0)()},e.prototype.onMouseout=function(){var e=this;this.isIE||M((function(){e.eraseRipples(e)}),2e3,!0)()},e.prototype.eraseRipples=function(e){e.elRippleContainerTemplateClone.classList.remove("pressed");var t=e.elRippleContainerTemplateClone.children,n=t.length;oe=n;for(var i=function(n){var i=t[n];i&&("1"===(i.style.opacity||"1")&&v.animate(i,"opacity",1,0,800,(function(){try{i.parentNode.removeChild(i),oe--}catch(e){}if(!oe)try{e.elRippleContainerTemplateClone.parentNode.removeChild(e.elRippleContainerTemplateClone)}catch(e){}}),null))},o=0;o<n;o++)i(o)},e.prototype.getMousePosition=function(e){var t={y:void 0,x:void 0};return e.originalEvent&&void 0!==e.originalEvent.touches?(t.y=e.originalEvent.touches[0].pageY,t.x=e.originalEvent.touches[0].pageX):e.pageX?(t.y=e.pageY,t.x=e.pageX):e&&void 0!==e.touches&&(t.y=e.touches[0].pageY,t.x=e.touches[0].pageX),t},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("ripple-disable"),f("design:type",Object)],e.prototype,"rippleDisable",void 0),h([t.HostListener("mousedown",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onMousedown",null),h([t.HostListener("mouseup"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onMouseup",null),h([t.HostListener("mouseout"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onMouseout",null),e=h([t.Directive({selector:"[uiRipple]"}),f("design:paramtypes",[t.ElementRef])],e)}(),se=function(){function e(e,n){this.differs=e,this.element=n,this.modelChange=new t.EventEmitter,this.differ=e.find([]).create()}return e.prototype.ngOnInit=function(){var e=this;this.defaultItem||(this.defaultItem={}),this.list=[Object.assign({},this.defaultItem)],this.model||console.error("Você precisa declarar a model no seu componente"),this.objDiffer={},this.list.forEach((function(t,n){e.objDiffer[n]=e.differs.find(t).create()})),this.model.forEach((function(t){e.list.push(t)}))},e.prototype.ngDoCheck=function(){var e=this,t=!1;this.list.forEach((function(n,i){var o=e.objDiffer[i];o||(o=e.objDiffer[i]=e.differs.find(n).create());var r=o.diff(n);r&&(t=!0,r.forEachChangedItem((function(t){t.currentValue||"number"==typeof t.currentValue||"boolean"==typeof t.currentValue||n[e.autoDeleteException]||delete n[t.key]})),n&&e.model.indexOf(n)<0&&Object.keys(n).length>Object.keys(e.defaultItem).length&&e.model.push(n),n&&Object.keys(n).length===Object.keys(e.defaultItem).length&&ae(n,e.defaultItem)&&e.model.length&&e.model.indexOf(n)>-1&&!n[e.autoDeleteException]&&e.model.splice(e.model.indexOf(n),1))})),t&&this.newItem()},e.prototype.newItem=function(){var e=this,t=0;this.list.forEach((function(n){if(n&&Object.keys(n).length<=Object.keys(e.defaultItem).length&&ae(n,e.defaultItem)){t++;var i=e.list[e.list.indexOf(n)];e.list.splice(e.list.indexOf(n),1),e.list.splice(e.list.length,0,i)}})),t?setTimeout((function(){e.list.splice(e.list.length-1,1),e.newItem()})):this.list.push(Object.assign({},this.defaultItem))},e.prototype.remove=function(e){var t=this;Object.keys(this.list[e]).forEach((function(n){Object.keys(t.defaultItem).includes(n)?t.list[e][n]=t.defaultItem[n]:delete t.list[e][n]})),this.ngDoCheck()},e.prototype.ngOnChanges=function(e){var t=this;e.model&&e.model.currentValue&&(e.model.currentValue.length?e.model.currentValue.forEach((function(e){t.list&&-1===t.list.indexOf(e)&&t.list.push(e)})):e.model.currentValue&&e.model.previousValue&&(this.list=[Object.assign({},this.defaultItem)]))},e.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"model",void 0),h([t.Input("default-item"),f("design:type",Object)],e.prototype,"defaultItem",void 0),h([t.Input("auto-delete-exception"),f("design:type",Object)],e.prototype,"autoDeleteException",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),e=h([t.Component({selector:"ui-smart-list",template:"<ng-content>\r\n</ng-content>\r\n",styles:[":host{display:block}:host ::ng-deep ui-smart-list-item{display:block}"]}),f("design:paramtypes",[t.KeyValueDiffers,t.ElementRef])],e)}();function ae(e,t){return JSON.stringify(e)===JSON.stringify(t)}var le,ce,pe,ue=function(){function e(e,t){this.parent=e,this.element=t}return e.prototype.ngAfterViewInit=function(){for(var e=this,t=this,n=this.element.nativeElement.querySelectorAll("input"),i=0;i<n.length;i++){var o=n[i];o.addEventListener("focus",(function(n){e.onFocus(n,t)})),o.addEventListener("blur",(function(n){e.onBlur(n,t)}))}},e.prototype.onFocus=function(e,t){var n=e.target,i=new X(n).closest("ui-smart-list-item"),o=Array.prototype.indexOf.call(t.parent.element.nativeElement.children,i.nativeElement);t.parent.currentFocusedElementIndex=o>-1?o:t.parent.currentFocusedElementIndex},e.prototype.onBlur=function(e,t){setTimeout((function(){new X(e.target).closest("body").nativeElement||setTimeout((function(){t.parent.element.nativeElement.children[t.parent.currentFocusedElementIndex].querySelector("input").focus()}),100)}))},e.ctorParameters=function(){return[{type:se,decorators:[{type:t.Inject,args:[se]}]},{type:t.ElementRef}]},e=h([t.Component({selector:"ui-smart-list-item",template:"<ng-content>\r\n</ng-content>\r\n"}),m(0,t.Inject(se)),f("design:paramtypes",[se,t.ElementRef])],e)}(),de=[],he={duration:5e3,center:!1,actionText:null},me=function(){function e(){}return e.show=function(e){e=Object.assign({},he,e),de.push(e),1===de.length&&this.timerBar(e),this.barsChange.emit(de)},e.hide=function(){var e=this;if(de.length){var t=document.querySelector("ui-snackbar-container > ui-snackbar");if(!t)return;t.classList.add("leave"),setTimeout((function(){clearTimeout(le),e.finishTimeout()}),280)}},e.timerBar=function(e){var t=this;de.length&&(this.elevateFAB(),e.duration!==1/0&&(le=setTimeout((function(){document.querySelectorAll("ui-snackbar-container > ui-snackbar")[0]&&document.querySelectorAll("ui-snackbar-container > ui-snackbar")[0].classList.add("leave"),setTimeout((function(){return t.finishTimeout()}),280)}),e.duration)))},e.finishTimeout=function(){de.shift(),this.setTranslateFAB(0,!1),de.length&&this.timerBar(de[0]),this.barsChange.emit(de)},e.elevateFAB=function(){var e=this;setTimeout((function(){var t;t=window.innerWidth<=764?document.querySelectorAll("ui-snackbar-container > ui-snackbar")[0].clientHeight:0,e.setTranslateFAB(t,!0)}))},e.setTranslateFAB=function(e,t){var n;n=window.innerWidth<=764?document.querySelectorAll(".ui-fab-container"):document.querySelectorAll(".ui-fab-container.scrolled"),[].forEach.call(document.querySelectorAll(".ui-fab-container"),(function(e){e.classList.remove("elevating-snack"),e.style.transform=""})),[].forEach.call(n,(function(n){n.classList[t?"add":"remove"]("elevating-snack"),n.style.transform=e?"translateY(-"+e+"px)":""}))},e.barsChange=new t.EventEmitter,e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),fe=function(){function e(){}return e.prototype.hide=function(){me.hide()},h([t.Input(),f("design:type",Object)],e.prototype,"bar",void 0),e=h([t.Component({selector:"ui-snackbar",template:'<div class="text" [innerHtml]="bar.text"></div>\r\n<div class="action" *ngIf="bar.action && bar.actionText">\r\n <button class="ui-button accent flat" (click)="bar.action(hide)" uiRipple>\r\n {{bar.actionText}}\r\n </button>\r\n</div>\r\n',styles:[":host{display:flex;align-items:center;justify-content:space-between;background-color:#323232;padding-left:24px;box-shadow:0 0 4px 0 rgba(0,0,0,.14),0 3px 4px 0 rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);margin:0 auto;width:100%;flex:0 0 auto;transition:transform 280ms cubic-bezier(0,0,.2,1)}:host:first-child{-webkit-animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar;animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar}:host+::ng-deep ui-snackbar:not(.nothing){position:absolute;z-index:-1;transform:translateY(150%);bottom:initial}:host.leave{transform:translateY(100%)}@media only screen and (min-width:376px) and (min-width:764px){:host{min-width:288px;margin:16px;border-radius:2px;max-width:568px;width:auto}:host:not(.center){position:absolute;bottom:0}:host:not(.center).leave{transform:translateY(calc(100% + 16px))}}:host .text{color:#fff;font-size:14px;padding:14px 0;min-height:48px;display:flex;align-items:center;margin-right:24px}:host button.ui-button{min-width:0;margin-right:8px}:host.center{position:absolute;bottom:0;margin:0 auto;border-bottom-left-radius:0;border-bottom-right-radius:0;transform:translateX(-50%);left:50%}:host.center:first-child{-webkit-animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar-center;animation:280ms cubic-bezier(0,0,.2,1) enter-snackbar-center}:host.center.leave{transform:translateY(100%) translateX(-50%)}:host ::ng-deep [uiRipple].ui-button:not(.success):not(.warning):not(.error):not(:disabled).flat.accent .ui-ripple-wave{background-color:rgba(255,255,255,.1)}@media only screen and (min-width:376px) and (min-width:764px){::ng-deep .ui-button.elevating-snack{transform:translateY(0)!important}}@-webkit-keyframes enter-snackbar{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes enter-snackbar{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@-webkit-keyframes enter-snackbar-center{0%{transform:translateY(100%) translateX(-50%)}100%{transform:translateY(0) translateX(-50%)}}@keyframes enter-snackbar-center{0%{transform:translateY(100%) translateX(-50%)}100%{transform:translateY(0) translateX(-50%)}}"]}),f("design:paramtypes",[])],e)}(),ge=function(){function e(){var e=this;me.barsChange.subscribe((function(t){e.bars=t}))}return e.prototype.ngAfterViewInit=function(){var e=this;v.on(window,"resize",(function(){e.bars&&e.bars.length&&me.elevateFAB()}))},e=h([t.Component({selector:"ui-snackbar-container",template:'<ui-snackbar *ngFor="let bar of bars" [bar]="bar" [ngClass]="{\'center\': bar.center}">\r\n {{bar.text}}\r\n</ui-snackbar>\r\n',styles:[":host{position:fixed;height:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;transition:left 280ms;z-index:6}@media only screen and (min-width:376px) and (min-width:764px){:host-context(.ui-nav-drawer-persistent){left:320px}}"]}),f("design:paramtypes",[])],e)}(),ye=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this.element.nativeElement.querySelectorAll("input")[0];e.classList.add("ui-switch");e.insertAdjacentHTML("afterend",'<div class="switch-cover"><div class="track"></div><div class="thumb-container"><div class="thumb"></div></div></div>')},e.ctorParameters=function(){return[{type:t.ElementRef}]},e=h([t.Component({selector:"ui-switch",template:"<label>\r\n <ng-content></ng-content>\r\n</label>\r\n",encapsulation:t.ViewEncapsulation.None,styles:['ui-switch-container{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}ui-switch-container .info{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;margin-right:10px}ui-switch-container .info .secondary{display:block}ui-switch-container.no-space{margin-bottom:0}ui-switch{position:relative;width:36px;height:24px;display:inline-block}ui-switch input{position:absolute;width:0;height:0;opacity:0}ui-switch .switch-cover{width:0;height:0;margin:auto}ui-switch .track{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:34px;height:14px;background-color:inherit;opacity:.5;border-radius:7px;transition:.3s ease-in-out}ui-switch .thumb-container{position:absolute;top:0;right:0;bottom:0;height:0;margin:auto 0;width:20px;background-color:inherit;transition:right .3s ease-in-out}ui-switch .thumb{position:absolute;top:0;bottom:0;margin:auto 0;width:20px;height:20px;border-radius:10px;transform:translateX(0);box-shadow:0 2px 4px rgba(0,0,0,.15),0 2px 6px rgba(0,0,0,.2);background-color:inherit;transition:.3s ease-in-out}ui-switch input:not(:checked)+.switch-cover .thumb-container{right:100%}ui-switch input:not(:checked)+.switch-cover .thumb{box-shadow:0 1px 2px rgba(0,0,0,.21),0 1px 3px rgba(0,0,0,.3);transform:translateX(100%)}ui-switch input:not(:checked):not(:disabled)+.switch-cover .thumb{background-color:#fff}ui-switch .thumb-container::before{content:"";position:absolute;top:0;left:50%;right:0;bottom:0;width:40px;height:40px;margin:auto -20px;border-radius:50%;background-color:inherit;opacity:.2;transform:scale(0);transition:.3s ease-in-out;pointer-events:none}ui-switch input:not(:checked)+.switch-cover .thumb-container::before{opacity:.1;margin:auto 0}ui-switch input:active+.switch-cover .thumb-container::before,ui-switch input:focus+.switch-cover .thumb-container::before{transform:scale(1)}fieldset:disabled ui-switch-container .info{color:rgba(0,0,0,.42)}fieldset:disabled ui-switch-container .info .secondary{color:rgba(0,0,0,.24)}']}),f("design:paramtypes",[t.ElementRef])],e)}(),ve=function(){function e(e){var t=this;this.element=e,v.on(window,"scroll resize",(function(e){if(t.element.nativeElement.classList.contains("elevate-on-scroll")){var n=t.element.nativeElement.querySelectorAll("header")[0],i=3.6*(window.scrollY||window.pageYOffset);t.element.nativeElement.classList.contains("size-2x")?("scroll"===e.type&&i<97?(t.element.nativeElement.classList.add("notransition"),n.style.paddingBottom=102-i+"px",n.style.height=162-i+"px",setTimeout((function(){t.element.nativeElement.classList.remove("notransition")}),500)):(n.style.paddingBottom="",n.style.height=""),i>97?(n.style.zIndex=3,t.element.nativeElement.classList.add("scrolled")):(n.style.zIndex=2,t.element.nativeElement.classList.remove("scrolled"))):(window.scrollY||window.pageYOffset)>1?t.element.nativeElement.classList.add("scrolled"):t.element.nativeElement.classList.remove("scrolled")}}))}return e.prototype.ngAfterViewInit=function(){},e.ctorParameters=function(){return[{type:t.ElementRef}]},e=h([t.Component({selector:"ui-toolbar",template:'<header>\r\n <ng-content></ng-content>\r\n</header>\r\n<div class="ui-toolbar-space"></div>\r\n',encapsulation:t.ViewEncapsulation.None}),f("design:paramtypes",[t.ElementRef])],e)}(),be=new t.EventEmitter,we=[480,600,840,960,1280,1440,1600],xe=function(){function e(){this.change=be}return e.prototype.get=function(){return this.sharedValue},e.prototype.set=function(e){this.sharedValue=e,this.change.emit(e)},e.prototype.registerMainToolbar=function(e){ce=e,pe=[],we.forEach((function(e){ce.classList.contains("elevate-on-s"+e)&&pe.push(e)}))},e.prototype.getMainToolbar=function(){if(ce)return ce;console.error("Você não registrou um toolbar principal.")},e.prototype.activateExtendedToolbar=function(e){var t=this;if(ce){e&&(we.includes(e)?(we.forEach((function(e){return t.getMainToolbar().classList.remove("elevate-on-s"+e)})),this.getMainToolbar().classList.add("elevate-on-s"+e)):console.error('O tamanho do "breakpoint" tem que ser um dos tamanhos suportados: '+we.join(", "))),this.getMainToolbar().classList.add("size-2x");var n=this.getMainToolbar().querySelectorAll("header")[0];n.style.transition="all 280ms",setTimeout((function(){n.style.transition="",v.trigger(window,"scroll")}),280)}},e.prototype.deactivateExtendedToolbar=function(){var e=this;if(ce){we.forEach((function(t){return e.getMainToolbar().classList.remove("elevate-on-s"+t)})),pe.forEach((function(t){return e.getMainToolbar().classList.add("elevate-on-s"+t)})),this.getMainToolbar().classList.remove("size-2x"),this.getMainToolbar().classList.remove("scrolled");var t=this.getMainToolbar().querySelectorAll("header")[0];t.style.transition="all 280ms",t.style.height="",t.style.paddingBottom="",setTimeout((function(){t.style.transition=""}),280),v.trigger(window,"scroll")}},e.prototype.activateTransparentToolbar=function(e){this.getMainToolbar().classList.add("transparent"),e&&this.getMainToolbar().classList.add(e)},e.prototype.deactivateTransparentToolbar=function(e){this.getMainToolbar().classList.remove("transparent"),e&&this.getMainToolbar().classList.remove(e)},e.prototype.activateElevatingToolbar=function(e){this.getMainToolbar().classList.add("elevate-on-scroll"),e&&this.getMainToolbar().classList.add(e)},e.prototype.deactivateElevatingToolbar=function(e){this.getMainToolbar().classList.remove("elevate-on-scroll"),e&&this.getMainToolbar().classList.remove(e)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}();function Ee(){return window}var Ce=function(){function e(){}return e.nativeWindow=function(){return Ee()},e=h([t.Injectable()],e)}();function ke(e){if(e=e.replace(/[^\w\s!\/]/gi,""),!/^[\d, \/]+$/.test(e))return!1;var t,n,i,o=e.split("/");if(3!==o.length)return!1;var r="d/M/yy";r=r.split("/");for(var s=0;s<3;s++)r[s].indexOf("d")>-1&&(t=s),r[s].indexOf("M")>-1&&(n=s),r[s].indexOf("y")>-1&&(i=s);if(isNaN(t)||isNaN(n)||isNaN(i))return!1;var a=o[t],l=o[n],c=o[i];return!!(a&&l&&c)&&(!(l<1||l>12)&&(!(c.length<4)&&(!(a>new Date(c,l,0).getDate()||a<1)&&new Date(c,l-1,a))))}var Re=function(){function e(e,n){this.elementRef=e,this.datePipe=n,this.maxlength=10,this.regex=/^\d\d\/\d\d\/\d\d\d\d$/g,this.regexiso=/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z|(((\+|\-)[0-1][0-9]):([0-5][0-9])))?$/g,this.symbolsPositions=[2,5],this.dateFormatsList=[{format:"dd/MM/yyyy",maxlength:10,regex:/^(\d{2}\/){2}\d{4}$/g,symbolsPositions:[2,5]},{format:"dd/MM",maxlength:5,regex:/^(\d{2})\/(\d{2})$/g,symbolsPositions:[2]},{format:"MM/yyyy",maxlength:7,regex:/^(\d{2})\/(\d{4})$/g,symbolsPositions:[2]},{format:"dd/MM/yy",maxlength:8,regex:/^(\d{2}\/){2}\d{2}$/g,symbolsPositions:[2,5]},{format:"MM/yy",maxlength:5,regex:/^(\d{2})\/(\d{2})$/g,symbolsPositions:[2]}],this.day="01",this.year=(new Date).getFullYear().toString(),this.ngModelChange=new t.EventEmitter}var o;return o=e,e.prototype.ngOnInit=function(){this.validaDateFormat()},e.prototype.ngAfterViewInit=function(){var e=this;this.minDate=this.minDate&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.maxDate=this.maxDate&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate,this.ngModel=this.ngModel&&s.isDate(new Date(this.ngModel))?new Date(this.ngModel):this.ngModel,setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),!this.input&&e&&(this.elementRef.nativeElement.value=this.format(this.datePipe.transform(this.ngModel,this.dateFormat))),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=ke(this.getCorrectValue(this.format(e)))||this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.format(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>this.symbolsPositions[0]&&(e=e.substring(0,this.symbolsPositions[0])+"/"+e.substring(this.symbolsPositions[0])),e.length>this.symbolsPositions[1]&&(e=e.substring(0,this.symbolsPositions[1])+"/"+e.substring(this.symbolsPositions[1],this.maxlength-1)),e.substring(0,this.maxlength)):""},e.prototype.validaDateFormat=function(){var e=this;if(this.dateFormat){var t=!1;this.dateFormatsList.forEach((function(n){n.format===e.dateFormat&&(e.maxlength=n.maxlength,e.regex=n.regex,e.symbolsPositions=n.symbolsPositions,t=!0)})),t||console.error('Formato de data não suportado, tente algum destes: ["dd/MM/yyyy", "dd/MM", "MM/yyyy", "dd/MM/yy", "MM/yy"]')}else this.dateFormat="dd/MM/yyyy"},e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),e.minDate&&!e.minDate.firstChange&&(this.minDate=e.minDate.currentValue&&s.isDate(new Date(this.minDate))?new Date(this.minDate):this.minDate,this.control.updateValueAndValidity(this.control)),e.maxDate&&!e.maxDate.firstChange&&(this.maxDate=e.maxDate.currentValue&&s.isDate(new Date(this.maxDate))?new Date(this.maxDate):this.maxDate,this.control.updateValueAndValidity(this.control)),(e.minDate&&!e.minDate.firstChange||e.maxDate&&!e.maxDate.firstChange)&&this.control.updateValueAndValidity(this.control)},e.prototype.getCorrectValue=function(e){var t=this.regex.test(e);if("MM/yyyy"===this.dateFormat&&t)return this.day+"/"+e;if("dd/MM"===this.dateFormat&&t)return e+"/"+this.year;if("dd/MM/yy"===this.dateFormat&&t)return(n=e.split("/"))[0]+"/"+n[1]+"/20"+n[2];if("MM/yy"===this.dateFormat&&t){var n=e.split("/");return this.day+"/"+n[0]+"/20"+n[1]}return e},e.prototype.validate=function(e){this.control=e;var t=this.ngModel&&this.regexiso.test(this.ngModel)?new Date(this.ngModel):this.ngModel,n=s.isDate(e.value)?e.value:new Date(e.value);if(t&&(!s.isDate(t)||!ke(t.toLocaleDateString("pt-BR"))))return{parse:!0};if(t&&(s.isDate(t)||ke(t.toLocaleDateString("pt-BR")))){if(n.setHours(0,0,0,0),this.minDate&&s.isDate(this.minDate)&&(this.minDate.setHours(0,0,0,0),n.getTime()<this.minDate.getTime()))return{minDate:!0};if(this.maxDate&&s.isDate(this.maxDate)&&(this.maxDate.setHours(0,0,0,0),n.getTime()>this.maxDate.getTime()))return{maxDate:!0}}return null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:i.DatePipe}]},h([t.Input(),f("design:type",Date)],e.prototype,"minDate",void 0),h([t.Input(),f("design:type",Date)],e.prototype,"maxDate",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",String)],e.prototype,"dateFormat",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"day",void 0),h([t.Input(),f("design:type",String)],e.prototype,"year",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=o=h([t.Directive({selector:"[uiMaskDate][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return o})),multi:!0},i.DatePipe]}),f("design:paramtypes",[t.ElementRef,i.DatePipe])],e)}(),Ie=function(){function e(e){this.isDestroyed=!1,this.async=new i.AsyncPipe(e)}return e.prototype.transform=function(e,t,n,i,o){if(void 0===t&&(t=""),void 0===n&&(n=""),this.textBefore=t,this.textAfter=n,this.isMinified=i,this.isHence=o,null==e)return"";if(!(e instanceof Date))try{e=new Date(e)}catch(e){throw new Error("UiTimeAgo só funciona com datas")}return this.value=e,this.timer||(this.timer=this.getObservable()),this.async.transform(this.timer)},e.prototype.now=function(){return new Date},e.prototype.ngOnDestroy=function(){this.isDestroyed=!0},e.prototype.getObservable=function(){var e=this;return l.of(1).pipe(c.repeatWhen((function(e){return e.pipe(c.flatMap((function(e,t){var n=t<60?1e3:3e4;return l.timer(n)})))})),c.takeWhile((function(t){return!e.isDestroyed})),c.map((function(t,n){return e.elapsed()})))},e.prototype.elapsed=function(){var e=(this.now().getTime()-this.value.getTime())/1e3;if(this.isHence&&(e*=-1),e<60){var t=Math.floor(e),n=void 0;return n=this.isMinified?t+"s":t+" segundo"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter}if(e<3600){t=Math.floor(e/60),n=void 0;return n=this.isMinified?t+"m":t+" minuto"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter}if(e<86400){t=Math.floor(e/3600),n=void 0;return n=this.isMinified?t+"h":t+" hora"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter}t=Math.floor(e/86400),n=void 0;return n=this.isMinified?t+"d":t+" dia"+(1!==t?"s":""),""+this.textBefore+n+this.textAfter},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e=h([t.Pipe({name:"uiTimeAgo",pure:!1}),f("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Me=function(){function e(e){this.element=e}return e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.uiListItem.querySelectorAll(".ui-list-item.active")[0]&&(e.element.nativeElement.classList.toggle("expanded"),e.uiListItem.classList.toggle("expanded"),Se(e.uiListItem,e.element.nativeElement))}))},e.prototype.onClick=function(){this.element.nativeElement.classList.toggle("expanded"),this.uiListItem.classList.toggle("expanded"),Se(this.uiListItem,this.element.nativeElement)},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"uiListItem",void 0),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),e=h([t.Directive({selector:"[uiListItem]"}),f("design:paramtypes",[t.ElementRef])],e)}();function Se(e,t){if(e.style.height&&"0px"!==e.style.height){var n=parseInt(e.style.height.replace("px",""),10);e.style.height="";for(o=v.closest(e,".ui-list-item-group");o;)o.style.height=De(o)-n+"px",o&&(o=v.closest(o,".ui-list-item-group"))}else{var i=De(e);e.style.height=e.style.maxHeight&&i>e.style.maxHeight.replace("px","")?e.style.maxHeight:i+"px";for(var o=v.closest(e,".ui-list-item-group");o;)o.style.height=De(o)+i+"px",o&&(o=v.closest(o,".ui-list-item-group"))}setTimeout((function(){var n=v.closest(e,".ui-list");if(n){var i=n.parentNode;v.is(i,"ui-list")&&(i=i.parentNode),v.animate(e,"border-spacing",i.scrollTop,t.offsetTop,500,null,(function(e){i.scrollTop=e}))}}),500)}function De(e){return Array.prototype.reduce.call(e.childNodes,(function(e,t){return e+(t.offsetHeight||0)}),0)}var Oe=function(){function e(){}return e.prototype.transform=function(e,t){return e?(e=e.toString().replace(/[^0-9]+/g,""),t||(e=e.padStart(11,"0")),e.length>3&&(e=e.substring(0,3)+"."+e.substring(3)),e.length>7&&(e=e.substring(0,7)+"."+e.substring(7)),e.length>11&&(e=e.substring(0,11)+"-"+e.substring(11)),e.length>14&&(e=e.substring(0,14)),e):""},e=h([t.Pipe({name:"uiCpf"})],e)}(),Te=function(){function e(e,n){this.elementRef=e,this.cpfPipe=n,this.symbolsPositions=[3,7,11,14],this.padOnPaste=!0,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.ngModel=this.ngModel?this.ngModel.toString().padStart(11,"0"):"",this.elementRef.nativeElement.value=this.cpfPipe.transform(this.ngModel,!0)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cpfPipe.transform(this.elementRef.nativeElement.value,!0)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,11)},e.prototype.validate=function(e){return this.control=e,this.input&&e.value&&this.format(e.value).length<11||!0===this.uiMaskCpf&&e.value&&!this.cpfIsValid(e.value)?{parse:!0}:(this.input=!1,null)},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.cpfIsValid=function(e){if(e&&11===e.length){var t=void 0,n=void 0;if(t=0,"00000000000"===e)return!1;for(var i=1;i<=9;i++)t+=parseInt(e.substring(i-1,i),10)*(11-i);if(10!==(n=10*t%11)&&11!==n||(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(i=1;i<=10;i++)t+=parseInt(e.substring(i-1,i),20)*(12-i);return 10!==(n=10*t%11)&&11!==n||(n=0),n===parseInt(e.substring(10,11),10)}},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=this.format(n)!==this.ngModel,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.prototype.padLeft=function(e){if(this.padOnPaste){e.preventDefault();var t=void 0;window.clipboardData?t=window.clipboardData:e.clipboardData&&e.clipboardData.getData&&(t=e.clipboardData);var n=t.getData("text").toString().replace(/[^0-9]+/g,"");this.renderViaInput(n.padStart(11,"0"))}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Oe}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"padOnPaste",void 0),h([t.Input("uiMaskCpf"),f("design:type",Object)],e.prototype,"uiMaskCpf",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("paste",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"padLeft",null),e=i=h([t.Directive({selector:"[uiMaskCpf][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Oe]}),f("design:paramtypes",[t.ElementRef,Oe])],e)}(),Le=function(){function e(){}return e.prototype.transform=function(e,t){return e?(e=e.toString().replace(/[^0-9]+/g,""),t||(e=e.padStart(14,"0")),(e=e.toString().replace(/[^0-9]+/g,"")).length>2&&(e=e.substring(0,2)+"."+e.substring(2)),e.length>6&&(e=e.substring(0,6)+"."+e.substring(6)),e.length>10&&(e=e.substring(0,10)+"/"+e.substring(10)),e.length>15&&(e=e.substring(0,15)+"-"+e.substring(15)),e.length>18&&(e=e.substring(0,18)),e):""},e=h([t.Pipe({name:"uiCnpj"})],e)}(),Ae=function(){function e(e,n){this.elementRef=e,this.cnpjPipe=n,this.symbolsPositions=[2,6,10,15,18],this.padOnPaste=!0,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.ngModel=this.ngModel?this.ngModel.toString().padStart(14,"0"):"",this.elementRef.nativeElement.value=this.cnpjPipe.transform(this.ngModel,!0)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cnpjPipe.transform(this.elementRef.nativeElement.value,!0)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,14)},e.prototype.validate=function(e){return this.control=e,this.input&&e.value&&this.format(e.value).length<14||!0===this.uiMaskCnpj&&e.value&&!this.cnpjIsValid(e.value)?{parse:!0}:(this.input=!1,null)},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.cnpjIsValid=function(e){if(!+e||14!==e.length)return!1;for(var t=e.length-2,n=e.substring(0,t),i=e.substring(t),o=0,r=t-7,s=t;s>=1;s--)o+=n.charAt(t-s)*r--,r<2&&(r=9);var a=o%11<2?0:11-o%11;if(a.toString()!==i.charAt(0))return!1;t+=1,n=e.substring(0,t),o=0,r=t-7;for(s=t;s>=1;s--)o+=n.charAt(t-s)*r--,r<2&&(r=9);return(a=o%11<2?0:11-o%11).toString()===i.charAt(1)},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=this.format(n)!==this.ngModel,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.prototype.padLeft=function(e){if(this.padOnPaste){e.preventDefault();var t=void 0;window.clipboardData?t=window.clipboardData:e.clipboardData&&e.clipboardData.getData&&(t=e.clipboardData);var n=t.getData("text").toString().replace(/[^0-9]+/g,"");this.renderViaInput(n.padStart(14,"0"))}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Le}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"padOnPaste",void 0),h([t.Input("uiMaskCnpj"),f("design:type",Object)],e.prototype,"uiMaskCnpj",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("paste",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"padLeft",null),e=i=h([t.Directive({selector:"[uiMaskCnpj][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Le]}),f("design:paramtypes",[t.ElementRef,Le])],e)}(),Pe=function(){function e(){}return e.prototype.transform=function(e,t){if(!e)return"";(e=e.toString().toUpperCase().replace(/[^0-9A-Z]+/g,""),t)||/^[0-9]*$/.test(e)&&(e=e.padStart(14,"0"));return(e=e.toString().toUpperCase().replace(/[^0-9A-Z]+/g,"")).length>2&&(e=e.substring(0,2)+"."+e.substring(2)),e.length>6&&(e=e.substring(0,6)+"."+e.substring(6)),e.length>10&&(e=e.substring(0,10)+"/"+e.substring(10)),e.length>15&&(e=e.substring(0,15)+"-"+e.substring(15)),e.length>18&&(e=e.substring(0,18)),e},e=h([t.Pipe({name:"uiCnpjNovo"})],e)}(),Ve=function(){function e(e,n){this.elementRef=e,this.cnpjPipe=n,this.symbolsPositions=[2,6,10,15,18],this.padOnPaste=!0,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){var t=this;if(this.control&&this.loaded&&e&&this.control.markAsDirty(),!this.input){if(this.ngModel){var n=this.ngModel.toString().toUpperCase().replace(/[^0-9A-Z]+/g,""),i=/^[0-9]*$/.test(n)?n.padStart(14,"0"):n;i!==n?(this.ngModel=i,setTimeout((function(){return t.ngModelChange.emit(t.ngModel)}))):this.ngModel=i}else this.ngModel="";this.elementRef.nativeElement.value=this.cnpjPipe.transform(this.ngModel,!0)}this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cnpjPipe.transform(this.elementRef.nativeElement.value,!0)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().toUpperCase().replace(/[^0-9A-Z]+/g,"")).substring(0,14)},e.prototype.validate=function(e){if(this.control=e,this.input&&e.value&&this.format(e.value).length<14)return{parse:!0};if(!0===this.uiMaskCnpjNovo&&e.value){var t=e.value.toString().toUpperCase().replace(/[^0-9A-Z]+/g,"");if(/^[0-9]*$/.test(t)&&(t=t.padStart(14,"0")),!this.cnpjIsValid(t))return{parse:!0}}return this.input=!1,null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.charToValue=function(e){return e.toUpperCase().charCodeAt(0)-48},e.prototype.cnpjIsValid=function(e){if(!e||14!==e.length)return!1;if(e=e.toUpperCase(),!/^[0-9A-Z]{14}$/.test(e))return!1;if(/^(.)\1{13}$/.test(e))return!1;for(var t=e.substring(0,12),n=e.substring(12),i=0,o=5,r=0;r<12;r++)i+=this.charToValue(t.charAt(r))*o--,o<2&&(o=9);var s=i%11<2?0:11-i%11;if(s!==this.charToValue(n.charAt(0)))return!1;var a=t+n.charAt(0);i=0,o=6;for(r=0;r<13;r++)i+=this.charToValue(a.charAt(r))*o--,o<2&&(o=9);return(s=i%11<2?0:11-i%11)===this.charToValue(n.charAt(1))},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=this.format(n)!==this.ngModel,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.prototype.padLeft=function(e){if(this.padOnPaste){e.preventDefault();var t=void 0;window.clipboardData?t=window.clipboardData:e.clipboardData&&e.clipboardData.getData&&(t=e.clipboardData);var n=t.getData("text").toString().toUpperCase().replace(/[^0-9A-Z]+/g,""),i=/^[0-9]*$/.test(n);this.renderViaInput(i?n.padStart(14,"0"):n)}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Pe}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"padOnPaste",void 0),h([t.Input("uiMaskCnpjNovo"),f("design:type",Object)],e.prototype,"uiMaskCnpjNovo",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("paste",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"padLeft",null),e=i=h([t.Directive({selector:"[uiMaskCnpjNovo][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Pe]}),f("design:paramtypes",[t.ElementRef,Pe])],e)}(),ze=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>5&&(e=e.substring(0,5)+"-"+e.substring(5)),e.length>9&&(e=e.substring(0,9)),e):""},e=h([t.Pipe({name:"uiCep"})],e)}(),je=function(){function e(e,n){this.elementRef=e,this.cepPipe=n,this.symbolsPositions=[5,9],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.cepPipe.transform(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cepPipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,8)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<8?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:ze}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCep][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},ze]}),f("design:paramtypes",[t.ElementRef,ze])],e)}(),Fe=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^a-zA-Z0-9]+/g,"")).length>5&&(e=e.substring(0,5)+"-"+e.substring(5)),e.length>9&&(e=e.substring(0,9)),e):""},e=h([t.Pipe({name:"uiCepNovo"})],e)}(),Ne=function(){function e(e,n){this.elementRef=e,this.cepPipe=n,this.symbolsPositions=[5,9],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.cepPipe.transform(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.cepPipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^a-zA-Z0-9]+/g,"")).substring(0,8)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<8?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Fe}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCepNovo][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Fe]}),f("design:paramtypes",[t.ElementRef,Fe])],e)}(),He=function(){function e(){}return e.prototype.transform=function(e,t){return e?(e=e.toString().replace(/[^0-9]+/g,""),"ddi"===t?(e.length>0&&(e="+"+e),"1"===e[1]?(e.length>2&&(e=e.substring(0,2)+" ("+e.substring(2)),e.length>7&&(e=e.substring(0,7)+") "+e.substring(7)),e.length>12&&(e=e.substring(0,12)+"-"+e.substring(12)),e.length>17&&(e=e.substring(0,17))):(e.length>3&&(e=e.substring(0,3)+" ("+e.substring(3)),e.length>7&&(e=e.substring(0,7)+") "+e.substring(7)),e.length>12&&e.length<18?e=e.substring(0,13)+"-"+e.substring(13):e.length>17&&(e=e.substring(0,14)+"-"+e.substring(14)),e.length>17&&(e=e.substring(0,19)))):(e.length>0&&(e="("+e),e.length>3&&(e=e.substring(0,3)+") "+e.substring(3)),e.length>9&&e.length<14?e=e.substring(0,9)+"-"+e.substring(9):e.length>13&&(e=e.substring(0,10)+"-"+e.substring(10)),e.length>15&&(e=e.substring(0,15))),e):""},e=h([t.Pipe({name:"uiPhone"})],e)}(),Be=function(){function e(e,n){this.elementRef=e,this.phonePipe=n,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnInit=function(){switch(this.uiMaskPhone){case"ddi":this.symbolsPositions=[0,12,14,17];break;default:this.maxLength=11,this.symbolsPositions=[0,9,11,14]}},e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){if("ddi"===this.uiMaskPhone&&e){var t=e.toString().substring(0,1);this.maxLength="1"===t?11:13}this.control&&this.loaded&&e&&this.control.markAsDirty(),this.elementRef.nativeElement.value=this.phonePipe.transform(this.ngModel,this.uiMaskPhone||""),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.phonePipe.transform(this.elementRef.nativeElement.value,this.uiMaskPhone||"")},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,this.maxLength)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<this.maxLength-1?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(n),"ddi"===this.uiMaskPhone?(this.ngModel&&"1"===this.ngModel.substring(0,1)?(this.maxLength=11,3===t&&(this.beforeSelIndex=4,t=5)):(this.maxLength=13,4===t&&(this.beforeSelIndex=5,t=6)),8===t&&(this.beforeSelIndex=9,t=10)):4===t&&(this.beforeSelIndex=5,t=6),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:He}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"uiMaskPhone",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskPhone][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},He]}),f("design:paramtypes",[t.ElementRef,He])],e)}(),qe=function(){function e(){}return e.prototype.ngOnChanges=function(){var e,t,n=this;if(!this.list)return console.error('É obrigatório fornecer a model "list"'),!1;this.itemModel||(this.itemModel={id:"id",parentId:"parentId",name:"name",url:"url",icon:"icon"}),this.list.forEach((function(e){Object.keys(n.itemModel).forEach((function(t){var i=n.itemModel[t];!function(e,t,n){if(!e.hasOwnProperty(t)||t===n)return!1;e[n]=e[t],delete e[t]}(e,i,t)}))})),this.list=(e=this.list,t=[],function e(t,n){for(var i,o=function(o){i=[];var r=t[o],s=n.filter((function(e){return e.parentId!==r.id&&i.push(e),e.parentId===r.id}));s.length&&(r.childs=s,i=e(r.childs,i)[1])},r=0;r<t.length;r++)o(r);return[t,i]}(e.filter((function(e){return null!==e.parentId&&t.push(e),null===e.parentId})),t)[0])},h([t.Input(),f("design:type",Object)],e.prototype,"list",void 0),h([t.Input("item-model"),f("design:type",Object)],e.prototype,"itemModel",void 0),e=h([t.Component({selector:"ui-list",template:'<ng-container>\r\n <div class="ui-list">\r\n <ng-content></ng-content>\r\n <ui-list-items [items]="list"></ui-list-items>\r\n </div>\r\n</ng-container>\r\n',encapsulation:t.ViewEncapsulation.None}),f("design:paramtypes",[])],e)}();var We,_e=function(){function e(){}return e.prototype.ngOnInit=function(){},h([t.Input(),f("design:type",Object)],e.prototype,"items",void 0),e=h([t.Component({selector:"ui-list-items",template:'<div *ngFor="let item of items">\r\n <ui-list-item [item]="item"></ui-list-item>\r\n</div>\r\n'}),f("design:paramtypes",[])],e)}(),Ye=function(){function e(){}return e.prototype.ngOnInit=function(){},h([t.Input(),f("design:type",Object)],e.prototype,"item",void 0),e=h([t.Component({selector:"ui-list-item",template:'<div *ngIf="!item.childs && !item.url" class="ui-list-item disabled">\r\n <span *ngIf="!!item.icon" class="icon">\r\n <i *ngIf="item.icon.material" class="material-icons">{{item.icon.material}}</i>\r\n <img *ngIf="!!item.icon.img" [src]="item.icon.img" style="width:24px;height:24px"/>\r\n </span>\r\n {{item.name}}\r\n</div>\r\n<a *ngIf="!item.childs && item.url" class="ui-list-item" uiRipple\r\n [routerLink]="item.url ? [item.url] : null"\r\n [routerLinkActive]="[\'active\']">\r\n <span *ngIf="!!item.icon" class="icon">\r\n <i *ngIf="item.icon.material" class="material-icons">{{item.icon.material}}</i>\r\n <img *ngIf="!!item.icon.img" [src]="item.icon.img" style="width:24px;height:24px"/>\r\n </span>\r\n {{item.name}}\r\n</a>\r\n<div *ngIf="item.childs">\r\n <div class="ui-list-item" uiRipple [uiListItem]="childs">\r\n <span *ngIf="!!item.icon" class="icon">\r\n <i *ngIf="item.icon.material" class="material-icons">{{item.icon.material}}</i>\r\n <img *ngIf="!!item.icon.img" [src]="item.icon.img" style="width:24px;height:24px"/>\r\n </span>\r\n {{item.name}}\r\n <span class="arrow"><i class="material-icons">keyboard_arrow_down</i></span>\r\n </div>\r\n <div class="ui-list-item-group" #childs>\r\n <div>\r\n <ui-list-items [items]="item.childs"></ui-list-items>\r\n </div>\r\n </div>\r\n</div>\r\n'}),f("design:paramtypes",[])],e)}(),Ue=function(){function e(e){this.elementRef=e,this.valueChange=new t.EventEmitter,this.viewFormat||(this.viewFormat=function(e){return e})}return e.prototype.ngOnInit=function(){this.percentageBlock=100/(this.range.length-1),this.value=this.value||this.range[0],this.valueModel=this.closestNumber(this.value).index||this.range[0]},e.prototype.ngOnChanges=function(e){!e.value||e.value.firstChange||this.mouseDown||(this.valueModel=this.closestNumber(e.value.currentValue).index),!e.color||e.color.firstChange||this.mouseDown||(this.color=e.color.currentValue),!e.textColor||e.textColor.firstChange||this.mouseDown||(this.textColor=e.textColor.currentValue)},e.prototype.ngAfterViewInit=function(){this.valueElement=this.elementRef.nativeElement.querySelectorAll(".thumb-container")[0],this.registerEventsListeners()},e.prototype.registerEventsListeners=function(){var e=this;v.on(this.valueElement,"mousedown touchstart",(function(){e.disabled||(e.mouseDown=!0,e.toggleTackOn(!0),e.toggleBalloon(!0,0),e.valueElement.classList.add("active"))})),v.on(document,"mouseup touchend",(function(t){e.disabled||(e.valueElement.classList.remove("active"),e.mouseDown&&(t.pageX||t.originalEvent)&&e.change(t,!0),e.mouseDown=!1,e.toggleBalloon(),e.toggleTackOn())})),v.on(document,"mousemove touchmove",(function(t){e.mouseDown&&!e.disabled&&e.change(t)}))},e.prototype.change=function(e,t){var n=e.pageX||(e.touches?e.touches[0].pageX:null)||(e.changedTouches?e.changedTouches[0].pageX:null),i=this.getPositionInIndex(n),o=this.closestNumber(this.range[Math.round(i)]);t&&(i=o.index),this.value=o.value,this.valueModel=i,this.valueChange.emit(this.value)},e.prototype.toggleBalloon=function(e,t){var n=this.elementRef.nativeElement.querySelectorAll(".balloon-wrap")[0];n&&(e?(n.style.right="number"==typeof t?t:"",n.classList.add("active")):n.classList.remove("active"))},e.prototype.toggleTackOn=function(e){var t=e?"add":"remove";this.elementRef.nativeElement.querySelectorAll(".track.on")[0].classList[t]("no-transition")},e.prototype.getPositionInIndex=function(e){var t=this.elementRef.nativeElement.querySelectorAll(".track.off")[0];return e=(e=(e-=v.position(t).left)/t.clientWidth*100)>100?100:e<0?0:e,(this.range.length-1)/100*e},e.prototype.closestNumber=function(e){for(var t,n=this.range[0],i=Math.abs(e-n),o=0,r=0;r<this.range.length;r++)(t=Math.abs(e-this.range[r]))<i&&(i=t,n=this.range[r],o=r);return{index:o,value:n}},e.prototype.getPercentage=function(){return this.percentageBlock*this.valueModel},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"hideBalloon",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"begin",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"end",void 0),h([t.Input(),f("design:type",String)],e.prototype,"direction",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Array)],e.prototype,"range",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input("text-color"),f("design:type",String)],e.prototype,"textColor",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"valueChange",void 0),h([t.Input("view-format"),f("design:type",Function)],e.prototype,"viewFormat",void 0),e=h([t.Component({selector:"ui-slider[value]",template:'<div class="track off"></div>\r\n<div class="points" [ngClass]="{\'disabled\': disabled, \'show\': mouseDown}">\r\n <div class="point" *ngFor="let value of range"></div>\r\n</div>\r\n<div class="track on"\r\n [ngClass]="{\'disabled\': disabled}"\r\n [ngStyle]="{\'left\': getPercentageLeft ? getPercentageLeft() + \'%\' : 0,\r\n \'right\': getPercentageRight ? getPercentageRight() + \'%\' : \'\',\r\n \'width\': getPercentage ? getPercentage() + \'%\': \'\',\r\n \'background-color\': color || \'\'}">\r\n <div class="balloon-wrap" *ngIf="!hideBalloon">\r\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="36px" height="36px" viewBox="0 0 36 36" enable-background="new 0 0 36 36" xml:space="preserve">\r\n <path [style.fill]="color || \'\'" d="M31.948,13.996c-0.146-5.378-4.016-8.907-4.016-8.907C23.222,0.624,18.163,0.993,18,1.006\r\n c-0.163-0.013-5.222-0.382-9.931,4.083c0,0-3.87,3.528-4.016,8.907c0,0-0.497,3.41,1.572,7.205c0,0,0.864,2.126,4.765,6.678\r\n c0,0,3.406,3.846,7.595,7.089v0.024c0.005-0.004,0.01-0.008,0.015-0.012c0.005,0.004,0.01,0.008,0.015,0.012v-0.024\r\n c4.19-3.244,7.595-7.089,7.595-7.089c3.901-4.552,4.765-6.678,4.765-6.678C32.445,17.405,31.948,13.996,31.948,13.996z"/>\r\n </svg>\r\n <div class="value" [style.color]="textColor || \'\'">\r\n {{viewFormat(multiHandle ? direction === \'begin\' ? begin : end : value)}}\r\n </div>\r\n </div>\r\n <div class="thumb-container left" tabindex="1" *ngIf="multiHandle" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n <div class="thumb-container right" tabindex="1" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n</div>\r\n',styles:[':host{display:block;position:relative}:host .track{height:2px}:host .track.on{position:absolute;top:0;transition:left 280ms,right 280ms,width 280ms,background 280ms}:host .track.on.no-transition{transition:none}:host .track.on.disabled{background-color:transparent}:host .track.on.disabled .thumb-container{background-color:#bdbdbd}:host .track.on.disabled .thumb-container:focus::before{transform:scale(0)}:host .track.on.disabled .thumb-container .thumb{width:8px;height:8px;background-color:inherit}:host .track.on .thumb-container{position:absolute;top:1px;border-radius:50%;transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container.left{left:0;transform:scale(1) translate(-50%,-50%)}:host .track.on .thumb-container.right{right:0;transform:scale(1) translate(50%,-50%)}:host .track.on .thumb-container .thumb{position:relative;width:12px;height:12px;border-radius:50%;transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container::before{content:"";position:absolute;width:32px;height:32px;top:-10px;left:-10px;border-radius:50%;transform:scale(0);transition:transform 280ms cubic-bezier(0,0,.2,1);background-color:inherit;opacity:.1}:host .track.on .thumb-container:focus::before{transform:scale(1)}:host .track.on .thumb-container.active::before{transform:scale(0)}:host .track.on .thumb-container.active .thumb{width:18px;height:18px}:host .track.on .balloon-wrap{position:absolute;top:-42px;transition:transform 280ms cubic-bezier(0,0,.2,1),width 280ms cubic-bezier(0,0,.2,1);z-index:1;transform:scale(0);transform-origin:bottom;cursor:default;margin-left:-18px;margin-right:-18px;width:36px}:host .track.on .balloon-wrap.active{transform:scale(1)}:host .track.on .balloon-wrap .value{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;font-size:10px;padding-top:9px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .track.on .balloon-wrap~.thumb-container{transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container::before{transition:transform 280ms cubic-bezier(0,0,.2,1) 280ms}:host .track.on .balloon-wrap~.thumb-container .thumb{transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container.active{pointer-events:auto}:host .track.on .balloon-wrap~.thumb-container.active .thumb{width:0;height:0}:host .track.on .balloon-wrap~.thumb-container.active::before{transition:none}:host .points{margin-top:-2px;width:100%;display:flex;align-items:center;justify-content:space-between}:host .points .point{padding:1px;border-radius:50%;transform:scale(0)}:host .points.show .point{transform:scale(1)}:host .points.disabled .point{background-color:transparent}']}),f("design:paramtypes",[t.ElementRef])],e)}(),Xe=function(){function e(e){this.elementRef=e,this.beginChange=new t.EventEmitter,this.endChange=new t.EventEmitter,this.viewFormat||(this.viewFormat=function(e){return e})}return e.prototype.ngOnInit=function(){this.bodyElement=document.body,this.htmlElement=document.documentElement,this.multiHandle=!0,this.percentageBlock=100/(this.range.length-1),this.begin=this.begin||this.range[0],this.end=this.end||this.range[0],this.beginModel=this.closestNumber(this.begin).index||this.range[0],this.endModel=this.closestNumber(this.end).index||this.range[0]},e.prototype.ngOnChanges=function(e){!e.begin||e.begin.firstChange||this.mouseDown||(this.beginModel=this.closestNumber(this.begin).index),!e.end||e.end.firstChange||this.mouseDown||(this.endModel=this.closestNumber(this.end).index),!e.color||e.color.firstChange||this.mouseDown||(this.color=e.color.currentValue),!e.textColor||e.textColor.firstChange||this.mouseDown||(this.textColor=e.textColor.currentValue)},e.prototype.ngAfterViewInit=function(){this.thumbs=this.elementRef.nativeElement.querySelectorAll(".thumb-container"),this.beginElement=this.thumbs[0],this.endElement=this.thumbs[1],this.registerEventsListeners()},e.prototype.registerEventsListeners=function(){var e=this;v.on(this.beginElement,"mousedown touchstart",(function(t){e.disabled||(t.stopImmediatePropagation(),e.direction="begin",e.toggleBalloon(!0),e.beginElement.classList.add("active"),e.endElement.classList.remove("active"))})),v.on(this.thumbs,"mousedown touchstart",(function(t){e.disabled||(t.stopImmediatePropagation(),e.mouseDown=!0,e.toggleTackOn(!0),v.disableScroll())})),v.on(this.endElement,"mousedown touchstart",(function(t){e.disabled||(t.stopImmediatePropagation(),e.direction="end",e.toggleBalloon(!0,0),e.endElement.classList.add("active"),e.beginElement.classList.remove("active"))})),v.on(document,"mouseup touchend",(function(t){e.disabled||(e.beginElement.classList.remove("active"),e.endElement.classList.remove("active"),e.mouseDown&&(t.pageX||t.originalEvent)&&e.change(t,!0),e.mouseDown=!1,e.toggleBalloon(),e.toggleTackOn(),v.enableScroll())})),v.on(document,"mousemove touchmove",(function(t){e.mouseDown&&!e.disabled&&e.change(t)}))},e.prototype.change=function(e,t){var n=e.pageX||(e.touches?e.touches[0].pageX:null)||(e.changedTouches?e.changedTouches[0].pageX:null),i=this.getPositionInIndex(n),o=this.closestNumber(this.range[Math.round(i)]);t&&(i=o.index),"begin"===this.direction&&this.beginModel>=this.endModel?(this[this.direction+"Model"]=o.index,this.direction="end",v.trigger(this.endElement,"mousedown"),this.endElement.focus()):"end"===this.direction&&this.endModel<this.beginModel&&(this[this.direction+"Model"]=o.index,this.direction="begin",v.trigger(this.beginElement,"mousedown"),this.beginElement.focus()),this[this.direction]=o.value,this[this.direction+"Model"]=i,this[this.direction+"Change"].emit(this[this.direction])},e.prototype.toggleBalloon=function(e,t){var n=this.elementRef.nativeElement.querySelectorAll(".balloon-wrap")[0];n&&(e?(n.style.right="number"==typeof t?t:"",n.classList.add("active")):n.classList.remove("active"))},e.prototype.toggleTackOn=function(e){var t=e?"add":"remove";this.elementRef.nativeElement.querySelectorAll(".track.on")[0].classList[t]("no-transition")},e.prototype.getPositionInIndex=function(e){var t=this.elementRef.nativeElement.querySelectorAll(".track.off")[0];return e=(e=(e-=v.position(t).left)/t.clientWidth*100)>100?100:e<0?0:e,(this.range.length-1)/100*e},e.prototype.closestNumber=function(e){for(var t,n=this.range[0],i=Math.abs(e-n),o=0,r=0;r<this.range.length;r++)(t=Math.abs(e-this.range[r]))<i&&(i=t,n=this.range[r],o=r);return{index:o,value:n}},e.prototype.getPercentageLeft=function(){return this.percentageBlock*this.beginModel},e.prototype.getPercentageRight=function(){return this.percentageBlock*Math.abs(this.endModel-(this.range.length-1))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"hideBalloon",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"begin",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"end",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Array)],e.prototype,"range",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input("text-color"),f("design:type",String)],e.prototype,"textColor",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"beginChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"endChange",void 0),h([t.Input("view-format"),f("design:type",Function)],e.prototype,"viewFormat",void 0),e=h([t.Component({selector:"ui-slider[begin][end]",template:'<div class="track off"></div>\r\n<div class="points" [ngClass]="{\'disabled\': disabled, \'show\': mouseDown}">\r\n <div class="point" *ngFor="let value of range"></div>\r\n</div>\r\n<div class="track on"\r\n [ngClass]="{\'disabled\': disabled}"\r\n [ngStyle]="{\'left\': getPercentageLeft ? getPercentageLeft() + \'%\' : 0,\r\n \'right\': getPercentageRight ? getPercentageRight() + \'%\' : \'\',\r\n \'width\': getPercentage ? getPercentage() + \'%\': \'\',\r\n \'background-color\': color || \'\'}">\r\n <div class="balloon-wrap" *ngIf="!hideBalloon">\r\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="36px" height="36px" viewBox="0 0 36 36" enable-background="new 0 0 36 36" xml:space="preserve">\r\n <path [style.fill]="color || \'\'" d="M31.948,13.996c-0.146-5.378-4.016-8.907-4.016-8.907C23.222,0.624,18.163,0.993,18,1.006\r\n c-0.163-0.013-5.222-0.382-9.931,4.083c0,0-3.87,3.528-4.016,8.907c0,0-0.497,3.41,1.572,7.205c0,0,0.864,2.126,4.765,6.678\r\n c0,0,3.406,3.846,7.595,7.089v0.024c0.005-0.004,0.01-0.008,0.015-0.012c0.005,0.004,0.01,0.008,0.015,0.012v-0.024\r\n c4.19-3.244,7.595-7.089,7.595-7.089c3.901-4.552,4.765-6.678,4.765-6.678C32.445,17.405,31.948,13.996,31.948,13.996z"/>\r\n </svg>\r\n <div class="value" [style.color]="textColor || \'\'">\r\n {{viewFormat(multiHandle ? direction === \'begin\' ? begin : end : value)}}\r\n </div>\r\n </div>\r\n <div class="thumb-container left" tabindex="1" *ngIf="multiHandle" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n <div class="thumb-container right" tabindex="1" [style.background-color]="color || \'\'">\r\n <div class="thumb"></div>\r\n </div>\r\n</div>\r\n',styles:[':host{display:block;position:relative}:host .track{height:2px}:host .track.on{position:absolute;top:0;transition:left 280ms,right 280ms,width 280ms,background 280ms}:host .track.on.no-transition{transition:none}:host .track.on.disabled{background-color:transparent}:host .track.on.disabled .thumb-container{background-color:#bdbdbd}:host .track.on.disabled .thumb-container:focus::before{transform:scale(0)}:host .track.on.disabled .thumb-container .thumb{width:8px;height:8px;background-color:inherit}:host .track.on .thumb-container{position:absolute;top:1px;border-radius:50%;transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container.left{left:0;transform:scale(1) translate(-50%,-50%)}:host .track.on .thumb-container.right{right:0;transform:scale(1) translate(50%,-50%)}:host .track.on .thumb-container .thumb{position:relative;width:12px;height:12px;border-radius:50%;transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .thumb-container::before{content:"";position:absolute;width:32px;height:32px;top:-10px;left:-10px;border-radius:50%;transform:scale(0);transition:transform 280ms cubic-bezier(0,0,.2,1);background-color:inherit;opacity:.1}:host .track.on .thumb-container:focus::before{transform:scale(1)}:host .track.on .thumb-container.active::before{transform:scale(0)}:host .track.on .thumb-container.active .thumb{width:18px;height:18px}:host .track.on .balloon-wrap{position:absolute;top:-42px;transition:transform 280ms cubic-bezier(0,0,.2,1),width 280ms cubic-bezier(0,0,.2,1);z-index:1;transform:scale(0);transform-origin:bottom;cursor:default;margin-left:-18px;margin-right:-18px;width:36px}:host .track.on .balloon-wrap.active{transform:scale(1)}:host .track.on .balloon-wrap .value{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;font-size:10px;padding-top:9px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .track.on .balloon-wrap~.thumb-container{transition:transform 280ms cubic-bezier(0,0,.2,1),background-color 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container::before{transition:transform 280ms cubic-bezier(0,0,.2,1) 280ms}:host .track.on .balloon-wrap~.thumb-container .thumb{transition:width 280ms cubic-bezier(0,0,.2,1),height 280ms cubic-bezier(0,0,.2,1),background 280ms cubic-bezier(0,0,.2,1),transform 280ms cubic-bezier(0,0,.2,1)}:host .track.on .balloon-wrap~.thumb-container.active{pointer-events:auto}:host .track.on .balloon-wrap~.thumb-container.active .thumb{width:0;height:0}:host .track.on .balloon-wrap~.thumb-container.active::before{transition:none}:host .points{margin-top:-2px;width:100%;display:flex;align-items:center;justify-content:space-between}:host .points .point{padding:1px;border-radius:50%;transform:scale(0)}:host .points.show .point{transform:scale(1)}:host .points.disabled .point{background-color:transparent}']}),f("design:paramtypes",[t.ElementRef])],e)}(),$e=function(){function e(){}return e.prototype.register=function(e,t,n){var i=this;void 0===n&&(n="vertical"),this.element=e,this.func=t,this.listener=function(){if("vertical"===n){var e=(i.element.scrollHeight||document.documentElement.scrollHeight)-(i.element.clientHeight||i.element.innerHeight);(i.element.scrollTop||i.element.scrollY)>=e-.1*e&&t()}else{var o=(i.element.scrollWidth||document.documentElement.scrollWidth)-(i.element.clientWidth||i.element.innerWidth);(i.element.scrollLeft||i.element.scrollX)>=o-.1*o&&t()}},this.element.addEventListener("scroll",this.listener),this.readyToCheck=!0},e.prototype.destroy=function(){this.element.removeEventListener("scroll",this.listener),this.readyToCheck=!1},e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),Ge=function(){function e(e,n){this.element=e,this.infiniteLoad=n,this.uiInfiniteLoad=new t.EventEmitter,this.orientation="vertical"}return e.prototype.ngAfterViewInit=function(){var e=this;this.infiniteLoad.register(this.element.nativeElement,(function(){e.uiInfiniteLoad.emit()}),this.orientation)},e.prototype.ngDoCheck=function(){this.infiniteLoad.listener&&this.infiniteLoad.listener()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:$e}]},h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"uiInfiniteLoad",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"orientation",void 0),e=h([t.Directive({selector:"[uiInfiniteLoad]"}),f("design:paramtypes",[t.ElementRef,$e])],e)}(),Ke=function(){function e(){}return e.prototype.selectItem=function(e){this.selectChange.emit(e)},e.prototype.loadMoreEmit=function(){var e=this;setTimeout((function(){return e.loadMore.emit()}))},e=h([t.Component({selector:"ui-autocomplete",template:'<ui-card class="suggestions" tabindex="-1" [ngClass]="{\'has-secondary\': !!secondary}" (uiInfiniteLoad)="loadMoreEmit()">\r\n <div class="suggestions-wrap">\r\n <div class="ui-progress" [ngClass]="{\'hide\': !loading, \'accent\': accentClass}" style="position: absolute">\r\n <div class="indeterminate"></div>\r\n </div>\r\n <ul class="ui-list">\r\n <li class="multi-line" uiRipple\r\n *ngFor="let item of list; let index = index"\r\n (click)="selectItem(item)"\r\n [ngClass]="{\'focused\': index === focusedIndex, \'accent\': accentClass}"\r\n [style.transition-delay]="(index > 5 ? 0: 100 + (index * 50)) + \'ms\'">\r\n <div class="lines" *ngIf="secondary">\r\n <div class="primary">{{item[primary] || item[secondary]}}</div>\r\n <div class="secondary">{{item[primary] ? item[secondary] : null}}</div>\r\n </div>\r\n <span *ngIf="!secondary" class="primary">{{item[primary] || item}}</span>\r\n </li>\r\n <li *ngIf="!list.length && !hideNotFound" class="not-found">\r\n <span *ngIf="ngModel">Nenhum registro encontrado para "{{ngModel}}"</span>\r\n <span *ngIf="!ngModel">Nenhum registro encontrado</span>\r\n </li>\r\n </ul>\r\n </div>\r\n</ui-card>\r\n',styles:[":host{display:block}:host .suggestions{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 15px 0 rgba(0,0,0,.2);overflow-y:auto}:host .suggestions .suggestions-wrap .ui-list{padding:0}:host .suggestions .suggestions-wrap .ui-list .not-found,:host .suggestions .suggestions-wrap .ui-list .not-found span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::ng-deep .wrap-autocomplete{position:absolute;z-index:2;transition:top 280ms,left 280ms}::ng-deep .wrap-autocomplete .overlay{overflow:hidden}::ng-deep .wrap-autocomplete ui-autocomplete>.suggestions:not(.nothing){transition:max-height 280ms cubic-bezier(.4,0,.6,1),opacity 280ms cubic-bezier(.4,0,.6,1);z-index:3;max-height:0}::ng-deep .wrap-autocomplete ui-autocomplete>.suggestions:not(.nothing) .ui-list li{transition:opacity 280ms cubic-bezier(.4,0,.6,1),transform 280ms cubic-bezier(.4,0,.6,1);opacity:0;transform:translateY(-8px)}::ng-deep .wrap-autocomplete.open ui-autocomplete>.suggestions:not(.nothing){max-height:240px;-webkit-animation:280ms cubic-bezier(.4,0,.6,1) hide-overflow;animation:280ms cubic-bezier(.4,0,.6,1) hide-overflow}::ng-deep .wrap-autocomplete.open ui-autocomplete>.suggestions:not(.nothing).has-secondary{max-height:370px}::ng-deep .wrap-autocomplete.open ui-autocomplete>.suggestions:not(.nothing) .ui-list li{opacity:1;transform:translateY(0)}::ng-deep .wrap-autocomplete:not(.open) ui-autocomplete>.suggestions:not(.nothing){overflow:hidden}@-webkit-keyframes hide-overflow{0%,99.99%{overflow:hidden}100%{overflow:auto}}@keyframes hide-overflow{0%,99.99%{overflow:hidden}100%{overflow:auto}}::ng-deep .wrap-dialog+.wrap-autocomplete{z-index:5}"]})],e)}(),Ze=function(){function e(e,n,i,o){this.componentFactoryResolver=e,this.applicationRef=n,this.injector=i,this.elementRef=o,this.loadMore=new t.EventEmitter,this.loadMoreEmmiter=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.modelValueChange=new t.EventEmitter,this.selectChange=new t.EventEmitter,this.requiredChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnInit=function(){var e=this;this.selectChange.subscribe((function(t){e.ngModel=t[e.primary]||t,e.modelValue=e.modelProperty&&t&&"object"==typeof t?t[e.modelProperty]:t,e.ngModelChange.emit(e.ngModel),e.modelValueChange.emit(e.modelValue),e.select&&e.select(t),e.elementRef.nativeElement.blur(),e.close()}))},e.prototype.ngAfterViewInit=function(){var e=this;v.on(window,"click resize",(function(t){e.componentRef&&(v.is(t.target,".wrap-autocomplete")||v.closest(t.target,".wrap-autocomplete")||v.is(t.target,".overlay")||t.target===e.elementRef.nativeElement||e.close())}))},e.prototype.ngOnChanges=function(e){var t=this;e.ngModel&&!e.ngModel.firstChange&&this.componentRef&&(this.componentRef.instance.ngModel=e.ngModel.currentValue),e.list&&!e.list.firstChange&&this.componentRef&&(this.componentRef.instance.list=e.list.currentValue,setTimeout((function(){var e=v.position(t.elementRef.nativeElement),n={x:e.left,y:e.top+1};t.setPosition(n,t.componentElement)}))),e.loading&&!e.loading.firstChange&&this.componentRef&&(this.componentRef.instance.loading=e.loading.currentValue)},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(Ke);this.componentRef=e.create(this.injector)},e.prototype.getComponentAsElement=function(){return this.componentRef.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){["ngModel","list","primary","secondary","selectChange","loading","accentClass","loadMore","hideNotFound"].forEach((function(n){t.instance[n]=e[n]}))},e.prototype.render=function(e,t){var n=this;this.createWrapElement(),this.wrapElement.appendChild(e),document.body.appendChild(this.wrapElement),setTimeout((function(){n.setPosition(t,e),n.wrapElement.classList.add("open")}))},e.prototype.createWrapElement=function(){this.wrapElement=document.createElement("div"),this.wrapElement.classList.add("wrap-autocomplete");var e=document.createElement("div");e.classList.add("overlay"),this.themeClass&&this.wrapElement.classList.add(this.themeClass),v.css(this.wrapElement,"top",0),v.css(this.wrapElement,"left",0),v.css(this.wrapElement,"visibility","hidden"),v.css(this.wrapElement,"transition","none"),this.wrapElement.appendChild(e)},e.prototype.setFocusIndex=function(e){this.componentRef.instance.focusedIndex=e},e.prototype.close=function(){var e=this;this.wrapElement&&(this.wrapElement.classList.remove("open"),setTimeout((function(){e.componentRef&&(e.applicationRef.detachView(e.componentRef.hostView),e.componentRef=null,e.wrapElement.remove())}),280))},e.prototype.initialize=function(){this.focusedIndex=void 0,this.accentClass=this.elementRef.nativeElement.classList.contains("accent");var e=v.position(this.elementRef.nativeElement),t={x:e.left,y:e.top+1};this.componentRef||(this.createComponent(),this.setInstances(this,this.componentRef),this.applicationRef.attachView(this.componentRef.hostView),this.componentElement=this.getComponentAsElement(),this.render(this.componentElement,t))},e.prototype.setPosition=function(e,t){var n=t.querySelector(".suggestions-wrap"),i=this.secondary?370:240,o=e.x+n.clientWidth,r=e.y+(n.clientHeight>i?i:n.clientHeight),s=window.innerWidth+(document.body.scrollLeft||window.scrollX||window.pageXOffset),a=window.innerHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);o>s&&(e.x=s-(n.clientWidth+8)),e.x<=8&&(e.x=8),r>a&&(e.y=e.y-((n.clientHeight>i?i:n.clientHeight)+this.elementRef.nativeElement.clientHeight)-14),v.css(this.wrapElement,"top",e.y+this.elementRef.nativeElement.clientHeight+"px"),v.css(this.wrapElement,"left",e.x+"px"),v.css(this.wrapElement,"width",this.elementRef.nativeElement.clientWidth+"px"),v.css(this.wrapElement,"visibility",""),v.css(this.wrapElement,"transition","")},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.validate=function(e){return this.control=e,this.elementRef.nativeElement.hasAttribute("required")&&!e.value?{required:!0}:null},e.prototype.onInput=function(){this.ngModel&&this.modelValue&&this.ngModel===this.modelValue||(this.modelValue=null,this.modelValueChange.emit(this.modelValue),this.control.updateValueAndValidity())},e.prototype.onFocus=function(){this.hidePanel||this.initialize()},e.prototype.onClick=function(){this.hidePanel||this.initialize()},e.prototype.onBlur=function(e){this.hidePanel||e.relatedTarget===this.componentElement.querySelector("ui-card.suggestions")||this.close()},e.prototype.onKeydown=function(e){if(this.componentRef)switch(void 0===this.focusedIndex&&(this.focusedIndex=-1),e.which){case 8:case 37:this.elementRef.nativeElement.focus();break;case 38:this.focusedIndex=this.list.length?this.focusedIndex?this.focusedIndex-1:this.list.length-1:null,this.setFocusIndex(this.focusedIndex);break;case 40:this.focusedIndex=this.list.length?this.list.length-1===this.focusedIndex?0:this.focusedIndex+1:null,this.setFocusIndex(this.focusedIndex);break;case 13:this.list&&"number"==typeof this.focusedIndex&&-1!==this.focusedIndex&&this.selectChange.emit(this.list[this.focusedIndex]),event.preventDefault()}},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:t.ElementRef}]},h([t.Input(),f("design:type",Array)],e.prototype,"list",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"modelValue",void 0),h([t.Input("model-property"),f("design:type",Object)],e.prototype,"modelProperty",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"select",void 0),h([t.Input(),f("design:type",String)],e.prototype,"primary",void 0),h([t.Input(),f("design:type",String)],e.prototype,"secondary",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"loading",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"hideNotFound",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"hidePanel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"loadMore",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"loadMoreEmmiter",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"modelValueChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"selectChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"requiredChange",void 0),h([t.HostListener("input"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),h([t.HostListener("blur",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onBlur",null),h([t.HostListener("keydown",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),e=i=h([t.Directive({selector:"[uiAutocomplete]",providers:[{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[t.ComponentFactoryResolver,t.ApplicationRef,t.Injector,t.ElementRef])],e)}(),Je=function(){function e(e){this.elementRef=e,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),void 0!==e.max&&(this.max=e.max.currentValue),void 0!==e.min&&(this.min=e.min.currentValue)},e.prototype.ngOnInit=function(){switch(this.uiMaskInteger){case"smallint":this.min=-32768,this.max=32768;break;case"bigint":this.min=-0x8000000000000000,this.max=0x8000000000000000;break;case"integer":this.min=-2147483648,this.max=2147483647}},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){if(this.control&&this.loaded&&e&&this.control.markAsDirty(),!this.input){var t=parseInt(this.ngModel,10);this.elementRef.nativeElement.value="number"==typeof this.ngModel?this.ngModel:Number.isNaN(t)?"":t}this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.ngModel||""},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return e.toString().replace(/[^0-9]+/g,"")||void 0},e.prototype.validate=function(e){return this.control=e,void 0!==this.min&&e.value&&this.format(e.value)<this.min?{min:!0}:void 0!==this.max&&e.value&&this.format(e.value)>this.max?{max:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onInput=function(e){var t=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(t)},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"uiMaskInteger",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"min",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskInteger][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[t.ElementRef])],e)}(),Qe=function(){function e(e){var t=this;this.element=e,this.onScroll=function(){return t.tabsScroll(0)},this.disabled=[]}return e.prototype.ngOnInit=function(){this.internetExplorer=navigator.userAgent.includes("Trident")},e.prototype.ngAfterViewInit=function(){for(var e=this.element.nativeElement.querySelectorAll(".tab"),t=this.element.nativeElement.querySelector(".indicator"),n=0;n<e.length;n++)e[n].classList.contains("disabled")&&e[n].classList.remove("disabled");for(n=0;n<this.disabled.length;n++)e[this.disabled[n]].classList.add("disabled");var i,o=this;function r(n,r){for(var s=0;s<e.length;s++){var a=e[s];a!==n&&a.classList.contains("selected")&&(v.css(t,"left",v.offset(a).left+"px"),v.css(t,"width",a.offsetWidth+"px"),a.classList.remove("selected"))}v.css(t,"left",v.offset(n).left+"px"),v.css(t,"width",n.offsetWidth+"px"),clearTimeout(i),i=setTimeout((function(){n.classList.add("selected"),v.css(t,"width",""),v.css(t,"left","")}),280);var l=o.element.nativeElement.querySelector(".overflow");o.tabsScroll(v.offset(n).left-l.scrollLeft,r)}var s=function(t){var n=e[t];a.element.nativeElement.addEventListener("click",(function(e){e.target!==n||e.target.classList.contains("disabled")||r(n)}))},a=this;for(n=0;n<e.length;n++)s(n);var l=this.element.nativeElement.querySelector(".tab.first-selected");l&&r(l,!0),v.trigger(window,"scroll"),v.on(window,"scroll resize",this.onScroll)},e.prototype.ngOnChanges=function(e){var t=this;setTimeout((function(){t.ngAfterViewInit()}))},e.prototype.ngOnDestroy=function(){v.off(window,"scroll resize",this.onScroll)},e.prototype.tabsScroll=function(e,t){var n=this,i=this.element.nativeElement.querySelector(".overflow"),o=i.scrollLeft,r=i.scrollWidth-i.clientWidth,s=t||this.internetExplorer?1:280;void 0!==e?v.animate(i,"borderSpacing",o,o+e,s,null,(function(e){i.scrollLeft=e,o=i.scrollLeft,n.showLeftArrow=o>0,n.showRightArrow=o<r})):(this.showLeftArrow=o>0,this.showRightArrow=o<r),this.showRightArrow||this.infiniteLoad&&this.infiniteLoad()},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("infinite-load"),f("design:type",Object)],e.prototype,"infiniteLoad",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"watch",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"disabled",void 0),e=h([t.Component({selector:"ui-tabs",template:'<div class="tabs">\r\n <div class="overflow" (scroll)="tabsScroll()">\r\n <ng-content></ng-content>\r\n <div class="indicator"></div>\r\n </div>\r\n <div class="arrows">\r\n <div class="left" [class.show]="showLeftArrow">\r\n <div class="ui-button icon flat" uiRipple (click)="tabsScroll(-200)">\r\n <i class="material-icons">keyboard_arrow_left</i>\r\n </div>\r\n </div>\r\n <div class="right" [class.show]="showRightArrow">\r\n <div class="ui-button icon flat" uiRipple (click)="tabsScroll(200)">\r\n <i class="material-icons">keyboard_arrow_right</i>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n',styles:[":host{width:100%;display:block}:host .tabs{position:relative;overflow:hidden;z-index:2;width:100%;height:48px}:host .tabs .overflow{overflow-y:auto;position:relative;width:100%;height:100px;display:flex;transition:transform 280ms cubic-bezier(0,0,.2,1),padding-left 280ms cubic-bezier(0,0,.2,1)}:host .tabs .overflow ::ng-deep .tab{height:48px;display:flex;justify-content:center;align-items:center;padding:0 12px;text-transform:uppercase;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;text-align:center;transition:color 280ms cubic-bezier(0,0,.2,1),max-width 280ms cubic-bezier(0,0,.2,1)}@media (max-width:375px),only screen and (min-width:376px) and (max-width:763px){:host .tabs .overflow ::ng-deep .tab{min-width:72px}}:host:not(.scrollable) .tabs ::ng-deep .tab{width:100%}@media (min-width:763px){:host.scrollable:not(.no-padding) .tabs .overflow{padding-left:60px}}@media (max-width:1082px){:host-context(body.ui-nav-drawer-persistent).scrollable:not(.no-padding) .tabs .overflow{padding-left:0}}:host.scrollable .tabs .overflow ::ng-deep .tab{min-width:160px;max-width:264px}:host .tabs .overflow .indicator{position:absolute;height:2px;top:46px;transition:width 280ms cubic-bezier(0,0,.2,1),left 280ms cubic-bezier(0,0,.2,1)}:host .tabs .arrows{position:absolute;width:100%;top:0;left:0;right:0;height:100%;pointer-events:none;display:flex;align-items:center;cursor:default}:host .tabs .arrows .ui-button{margin:0}:host .tabs .arrows .left,:host .tabs .arrows .right{display:flex;justify-content:center;width:50px;transition:transform 280ms cubic-bezier(0,0,.2,1)}:host .tabs .arrows .left .ui-button,:host .tabs .arrows .right .ui-button{pointer-events:auto;transform:scale(0)}:host .tabs .arrows .left.show .ui-button,:host .tabs .arrows .right.show .ui-button{transform:scale(1)}:host .tabs .arrows .right{margin-left:auto}:host:not(.scrollable) .arrows{display:none!important}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),et=function(){function e(e){this.element=e,this.onChangePage=new t.EventEmitter,this.currentPage=1}return e.prototype.ngAfterViewInit=function(){var e=this;if(this.tabs){var t,n,i,o,r,s,a,l=new X(this.tabs.element.nativeElement).querySelector(".tab"),c=this.element.nativeElement.querySelector(".page-container");c.addEventListener("touchstart",(function(t){if(s=l.indexOf(l.filter((function(e){return e.is(".selected")}))[0]),n=t.touches[0].pageX,o=t.touches[0].pageY,c.classList.add("no-transition"),e.enableOverflow)for(var i=new X(e.element.nativeElement).querySelector(".page-container .page"),r=0;r<i.length;r++)i[r].css("height","")})),c.addEventListener("touchmove",(function(l){if((n<0||n>40)&&(t=n-l.touches[0].pageX,i=o-l.touches[0].pageY,r||(t>20||t<-20?r="X":(i>20||i<-20)&&(r="Y")),t&&"X"===r)){v.disableScroll();for(var c=100*s*(s>0?-1:1),p=e.element.nativeElement.querySelectorAll(".page-container .page"),u=0;u<p.length;u++){var d=p[u];a=c-100/d.clientWidth*t,d.style.transform="translate("+a+"%)"}}})),c.addEventListener("touchend",(function(){if(c.classList.remove("no-transition"),t){var n=-1*Math.round(a/100);l[n]?l[n].trigger("click"):e.pagesGoToPage()}v.enableScroll(),r=void 0}))}this.pagesGoToPage(1)},e.prototype.pagesGoToPage=function(e){var t,n=this;if((t=this.tabs?new X(this.tabs.element.nativeElement).querySelector(".tab"):new X(this.element.nativeElement).querySelector(".page"))[e-1])for(var i=100*(e-1)*(e-1>0?-1:1),o=this.element.nativeElement.children[0].children,r=0;r<o.length;r++){o[r].style.transform="translate("+i+"%)"}else this.pagesGoToPage(t.indexOf(t.filter((function(e){return e.is(".selected")}))[0])+1);var s=new X(this.element.nativeElement),a=new X(this.element.nativeElement.children[0].children[e-1]),l=this.element.nativeElement.children[0].children;for(r=0;r<l.length;r++){if(e-1===r)new X(l[r]).css("height","")}if(this.firstLoad){var c=new X(this.element.nativeElement.children[0].children[this.currentPage-1]);s.css("height",c.nativeElement.clientHeight+"px")}else this.firstLoad=!0;a&&setTimeout((function(){s.css("height",a.nativeElement.clientHeight+"px"),clearTimeout(n.timeOutTurnBack),n.timeOutTurnBack=setTimeout((function(){s.css("height","");for(var t=0;t<l.length;t++){if(e-1!==t)new X(l[t]).css("height",0)}}),280)})),void 0!==e&&(this.currentPage=e,this.onChangePage&&setTimeout((function(){n.onChangePage.emit()})))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"tabs",void 0),h([t.Input("enable-overflow"),f("design:type",Boolean)],e.prototype,"enableOverflow",void 0),h([t.Output("onchangepage"),f("design:type",t.EventEmitter)],e.prototype,"onChangePage",void 0),e=h([t.Component({selector:"ui-tabs-pages",template:'<div class="page-container">\r\n <ng-content></ng-content>\r\n</div>\r\n',styles:[":host{width:100%;transition:height 280ms cubic-bezier(0,0,.2,1);overflow:hidden;display:block}:host .page-container{overflow:hidden;text-align:center;display:flex;justify-content:flex-start;max-width:100%;max-width:100vw}:host .page-container:not(.no-transition) ::ng-deep .page{transition:transform 280ms cubic-bezier(0,0,.2,1)}:host .page-container ::ng-deep .page{text-align:left;flex-shrink:0;width:100%;margin-bottom:auto}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),tt=function(){function e(e){var t=this;this.element=e,this.elementRef=new X(e.nativeElement),this.elementRef.on("load",(function(){t.elementRef.classList.add("loaded")}))}return e.prototype.ngDoCheck=function(){!this.visible&&this.elementRef.isInViewport()&&(this.visible=!0,this.elementRef.attribute("src",this.lazySrc))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("lazy-src"),f("design:type",Object)],e.prototype,"lazySrc",void 0),e=h([t.Directive({selector:"[uiLazyLoad][lazy-src]"}),f("design:paramtypes",[t.ElementRef])],e)}(),nt=function(){function e(e){this.element=e}return e.prototype.ngOnInit=function(){var e=new X(this.element.nativeElement).querySelector("tfoot");e&&this.tableFooter.nativeElement.appendChild(e.nativeElement)},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.ViewChild("tableFooter",{static:!0}),f("design:type",Object)],e.prototype,"tableFooter",void 0),e=h([t.Component({selector:"ui-data-table",template:'<div class="ui-table-overflow">\r\n <table class="ui-data-table">\r\n <ng-content></ng-content>\r\n </table>\r\n</div>\r\n<table class="ui-data-table" #tableFooter>\r\n</table>\r\n'}),f("design:paramtypes",[t.ElementRef])],e)}(),it=function(){function e(e){this.elementRef=e,this.closeChange=new t.EventEmitter}return e.prototype.close=function(){var e=this;if(this.opened=!1,this.closeChange.emit(),this.viewRef){var t=new X(document).querySelector(".ui-fab-container");t.length&&t.classList.remove("hide"),this.viewRef.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),this.viewRef&&setTimeout((function(){e.viewRef.rootNodes.forEach((function(e){e.remove?e.remove():e.parentNode.removeChild(e)})),e.viewRef.destroy(),e.viewRef=null}),280),document.body.style.overflowY=""}},e.prototype.show=function(e){var t=this;if(!this.viewRef){this.close(),void 0===(e=e||{}).clickOverlayToClose?e.clickOverlayToClose=!0:e.clickOverlayToClose&&(e.clickOverlayToClose=JSON.parse(e.clickOverlayToClose)),this.viewRef=this.templateRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))}},e.prototype.open=function(e,t){var n=this;this.opened=!0,setTimeout((function(){setTimeout((function(){var i=e.querySelector("ui-card");i.className+=" "+n.elementRef.nativeElement.className,t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.cardSize&&(i.style.maxWidth=t.cardSize+"px"),!t.transparentOverlay&&t.fabs&&t.fabs.classList.add("hide"),e.querySelectorAll(".overlay")[0].addEventListener("click",(function(){n.close()})),e.style.transform="",e.classList.add("open")}))}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input("card-size"),f("design:type",Number)],e.prototype,"cardSize",void 0),h([t.ViewChild(t.TemplateRef,{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"closeChange",void 0),e=h([t.Component({selector:"ui-bottom-sheet",template:'<ng-template>\r\n <div class="wrap-bottom-sheet">\r\n <div class="overlay"></div>\r\n <ui-card>\r\n <ng-content>\r\n </ng-content>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n',encapsulation:t.ViewEncapsulation.None,styles:[".wrap-bottom-sheet{position:fixed;top:0;left:0;right:0;bottom:0;z-index:5;display:flex;align-items:flex-end;justify-content:center;max-height:100%;overflow:hidden}.wrap-bottom-sheet ui-card{width:100%;max-height:100%;transform:translateY(100%);box-shadow:0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12),0 8px 10px 0 rgba(0,0,0,.2);transition:transform 195ms cubic-bezier(.4,0,1,1);border-top-left-radius:2px;border-top-right-radius:2px;overflow-y:auto}.wrap-bottom-sheet ui-card .header{padding:0 16px;min-height:56px;display:flex;align-items:center;font-size:16px;font-weight:500}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list){list-style:none;display:flex;flex-wrap:wrap}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) .ui-divider{min-width:100%;margin:0}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) li:not(.ui-divider){padding:24px;display:flex;align-items:center;justify-content:center;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;cursor:default}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) li:not(.ui-divider) .icon{width:48px;height:48px;margin-bottom:8px}.wrap-bottom-sheet ui-card.grid ul:not(.ui-list) li:not(.ui-divider) .icon i{font-size:48px}.wrap-bottom-sheet ui-card.grid ul.ui-list{display:flex;flex-wrap:wrap}.wrap-bottom-sheet ui-card.grid ul.col-2 li:not(.ui-divider){min-width:50%;max-width:50%}.wrap-bottom-sheet ui-card.grid ul.col-3 li:not(.ui-divider){min-width:33.3333333333%;max-width:33.3333333333%}.wrap-bottom-sheet ui-card.grid ul.col-4 li:not(.ui-divider){min-width:25%;max-width:25%}.wrap-bottom-sheet ui-card.grid .header~ul{padding-top:0}@media (max-width:600px){.wrap-bottom-sheet ui-card{max-width:100%!important;border-radius:0}}.wrap-bottom-sheet .overlay{transition:opacity 280ms;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wrap-bottom-sheet.open ui-card{transition:transform 195ms cubic-bezier(0,0,.2,1);transform:translateY(0)}.wrap-bottom-sheet.open .overlay{transition:opacity 280ms cubic-bezier(0,0,.2,1);opacity:1}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),ot=function(){function e(e,t){this.viewContainerRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.bottomSheet.closeChange.subscribe((function(){e.close()})),v.on(this.elementRef.nativeElement,this.triggerEvents||"click",(function(){e.render()}))},e.prototype.render=function(){var e=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.bottomSheet.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(t){document.body.appendChild(t),t.clientWidth&&e.open(t)}))},e.prototype.open=function(e){var t=this;setTimeout((function(){var n=e.querySelector("ui-card");n.className+=" "+t.bottomSheet.elementRef.nativeElement.className,t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.bottomSheet.cardSize&&(n.style.maxWidth=t.bottomSheet.cardSize+"px"),!t.transparentOverlay&&t.fabs&&t.fabs.classList.add("hide"),e.querySelectorAll(".overlay")[0].addEventListener("click",(function(){t.close()})),e.style.transform="",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.viewContainerRef.length){var t=this.viewRef;this.fabs&&this.fabs.classList.remove("hide"),t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ElementRef}]},h([t.Input("trigger-events"),f("design:type",String)],e.prototype,"triggerEvents",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("transparent-overlay"),f("design:type",Boolean)],e.prototype,"transparentOverlay",void 0),h([t.Input("uiBottomSheetTrigger"),f("design:type",Object)],e.prototype,"bottomSheet",void 0),e=h([t.Directive({selector:"[uiBottomSheetTrigger]"}),f("design:paramtypes",[t.ViewContainerRef,t.ElementRef])],e)}(),rt=function(){function e(e,n){this.element=e,this.ngControl=n,this.filesChange=new t.EventEmitter,this.modelChange=new t.EventEmitter}return e.prototype.onChange=function(e){e.stopPropagation(),e.preventDefault(),this.readFiles(e.target.files)},e.prototype.readFiles=function(e){this.ngControl.control.markAsDirty(),this.ngControl.control.setErrors(null),this.model=[];for(var t=this.accept?this.accept.split(","):[],n=this.maxSize?this.toByte(this.maxSize):null,i=this.maxFileSize?this.toByte(this.maxFileSize):null,o=0,r=0;r<e.length;r++){var s=e[r];o+=s.size;var a=this.validateMaxSize(s.size,i),l=this.validateMaxSize(o,n),c=s.name.substring(s.name.lastIndexOf(".")+1),p=this.validateType(s,c,t);a&&this.ngControl.control.setErrors(Object.assign(this.ngControl.errors||{},{maxFileSize:!0})),p||this.ngControl.control.setErrors(Object.assign(this.ngControl.errors||{},{accept:!0})),this.validateMaxSize(o,n)&&this.ngControl.control.setErrors(Object.assign(this.ngControl.errors||{},{maxSize:!0})),!p||a||l?this.error&&this.error(s,{type:!p,maxSize:l,maxFileSize:a},r):(this.model.push({}),this.modelChange.emit(this.model),this.readFile(s,this.model[r],r))}this.files=e,this.filesChange.emit(this.files),this.fileChange&&this.fileChange(this.files,this.ngControl.control.invalid),this.element.nativeElement.value=""},e.prototype.validateType=function(e,t,n){if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i].trim(),r=o.match(/^[^\*]*\*$/)?new RegExp("^"+o):new RegExp("^"+o+"$");if(e.type.match(r)||t.match(r))return!0}return!1},e.prototype.validateMaxSize=function(e,t){return t&&e>t},e.prototype.toByte=function(e){var t=(e=e.toString()).match(/[a-zA-Z]+/g),n=t?t[0]:null,i=e.match(/\d+/),o=i?parseInt(i[0],10):null,r=o;switch(n){case"KB":r=1024*o;break;case"MB":r=o*Math.pow(1024,2);break;case"GB":r=o*Math.pow(1024,3);break;case"TB":r=o*Math.pow(1024,4);break;case"PB":r=o*Math.pow(1024,5);break;case"EB":r=o*Math.pow(1024,6);break;case"ZB":r=o*Math.pow(1024,7);break;case"YB":r=o*Math.pow(1024,8)}return r},e.prototype.readFile=function(e,t,n){var i=this;if("object"==typeof t){var o=new FileReader;t.resolved="false",o.onload=function(o){t.result=o.target.result,t.resolved=!0,i.modelChange.emit(i.model),i.read(e,t.result,n)},o.onerror=function(e){t.error=e.target.error,i.modelChange.emit(i.model)},o.onprogress=function(e){t.progress={loaded:e.loaded,total:e.total,percent:Math.round(e.loaded/e.total*100)},i.modelChange.emit(i.model)},o.readAsDataURL(e)}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:n.NgControl}]},h([t.Input(),f("design:type",Object)],e.prototype,"files",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"model",void 0),h([t.Input(),f("design:type",String)],e.prototype,"accept",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"read",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"error",void 0),h([t.Input(),f("design:type",Function)],e.prototype,"fileChange",void 0),h([t.Input("max-size"),f("design:type",String)],e.prototype,"maxSize",void 0),h([t.Input("max-file-size"),f("design:type",String)],e.prototype,"maxFileSize",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"filesChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),h([t.HostListener("change",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onChange",null),e=h([t.Directive({selector:"[uiInputFile]",exportAs:"uiInputFile"}),f("design:paramtypes",[t.ElementRef,n.NgControl])],e)}(),st=function(){function e(e){this.element=e}return e.prototype.ngOnInit=function(){var e=new X(this.element.nativeElement);this.uiEllipsis=this.uiEllipsis||1,this.lineHeight=this.lineHeight||17,e.css("-webkit-line-clamp",this.uiEllipsis),e.css("max-height",this.lineHeight*this.uiEllipsis+"px"),e.css("line-height",this.lineHeight+"px"),e.on("mousemove",(function(){e.nativeElement.scrollHeight>e.nativeElement.clientHeight?e.nativeElement.setAttribute("title",e.nativeElement.innerText):e.nativeElement.removeAttribute("title")}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Number)],e.prototype,"uiEllipsis",void 0),h([t.Output(),f("design:type",Number)],e.prototype,"uiEllipsisChange",void 0),h([t.Input("line-height"),f("design:type",Number)],e.prototype,"lineHeight",void 0),e=h([t.Directive({selector:"[uiEllipsis]"}),f("design:paramtypes",[t.ElementRef])],e)}(),at=function(){function e(){}var i;return i=e,e.prototype.validate=function(e){var t=e.value;return t&&t.trim&&!t.trim()?{required:!0,uiMaxlength:!1}:null},h([t.Input("required"),f("design:type",Object)],e.prototype,"maxLength",void 0),e=i=h([t.Directive({selector:"[required][ngModel]",providers:[{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}]}),f("design:paramtypes",[])],e)}(),lt="rgba(0, 0, 0, .87)",ct=[{name:"red"},{name:"pink"},{name:"purple"},{name:"deepPurple"},{name:"indigo"},{name:"blue"},{name:"lightBlue"},{name:"cyan"},{name:"teal"},{name:"green"},{name:"lightGreen"},{name:"lime"},{name:"yellow"},{name:"amber"},{name:"orange"},{name:"deepOrange"},{name:"brown"},{name:"grey"},{name:"blueGrey"},{name:"black",hideSlider:!0},{name:"white",hideSlider:!0,hasBorder:!0}],pt={red:{50:{color:"#ffebee",text:lt},100:{color:"#ffcdd2",text:lt},200:{color:"#ef9a9a",text:lt},300:{color:"#e57373",text:lt},400:{color:"#ef5350",text:"#fff"},500:{color:"#f44336",text:"#fff"},600:{color:"#e53935",text:"#fff"},700:{color:"#d32f2f",text:"#fff"},800:{color:"#c62828",text:"#fff"},900:{color:"#b71c1c",text:"#fff"}},pink:{50:{color:"#fce4ec",text:lt},100:{color:"#f8bbd0",text:lt},200:{color:"#f48fb1",text:lt},300:{color:"#f06292",text:"#fff"},400:{color:"#ec407a",text:"#fff"},500:{color:"#e91e63",text:"#fff"},600:{color:"#d81b60",text:"#fff"},700:{color:"#c2185b",text:"#fff"},800:{color:"#ad1457",text:"#fff"},900:{color:"#880e4f",text:"#fff"}},purple:{50:{color:"#f3e5f5",text:lt},100:{color:"#e1bee7",text:lt},200:{color:"#ce93d8",text:lt},300:{color:"#ba68c8",text:"#fff"},400:{color:"#ab47bc",text:"#fff"},500:{color:"#9c27b0",text:"#fff"},600:{color:"#8e24aa",text:"#fff"},700:{color:"#7b1fa2",text:"#fff"},800:{color:"#6a1b9a",text:"#fff"},900:{color:"#4a148c",text:"#fff"}},deepPurple:{50:{color:"#ede7f6",text:lt},100:{color:"#d1c4e9",text:lt},200:{color:"#b39ddb",text:lt},300:{color:"#9575cd",text:"#fff"},400:{color:"#7e57c2",text:"#fff"},500:{color:"#673ab7",text:"#fff"},600:{color:"#5e35b1",text:"#fff"},700:{color:"#512da8",text:"#fff"},800:{color:"#4527a0",text:"#fff"},900:{color:"#311b92",text:"#fff"}},indigo:{50:{color:"#e8eaf6",text:lt},100:{color:"#c5cae9",text:lt},200:{color:"#9fa8da",text:lt},300:{color:"#7986cb",text:"#fff"},400:{color:"#5c6bc0",text:"#fff"},500:{color:"#3f51b5",text:"#fff"},600:{color:"#3949ab",text:"#fff"},700:{color:"#303f9f",text:"#fff"},800:{color:"#283593",text:"#fff"},900:{color:"#1a237e",text:"#fff"}},blue:{50:{color:"#e3f2fd",text:lt},100:{color:"#bbdefb",text:lt},200:{color:"#90caf9",text:lt},300:{color:"#64b5f6",text:lt},400:{color:"#42a5f5",text:lt},500:{color:"#2196f3",text:"#fff"},600:{color:"#1e88e5",text:"#fff"},700:{color:"#1976d2",text:"#fff"},800:{color:"#1565c0",text:"#fff"},900:{color:"#0d47a1",text:"#fff"}},lightBlue:{50:{color:"#e1f5fe",text:lt},100:{color:"#b3e5fc",text:lt},200:{color:"#81d4fa",text:lt},300:{color:"#4fc3f7",text:lt},400:{color:"#29b6f6",text:lt},500:{color:"#03a9f4",text:lt},600:{color:"#039be5",text:"#fff"},700:{color:"#0288d1",text:"#fff"},800:{color:"#0277bd",text:"#fff"},900:{color:"#01579b",text:"#fff"}},cyan:{50:{color:"#e0f7fa",text:lt},100:{color:"#b2ebf2",text:lt},200:{color:"#80deea",text:lt},300:{color:"#4dd0e1",text:lt},400:{color:"#26c6da",text:lt},500:{color:"#00bcd4",text:lt},600:{color:"#00acc1",text:lt},700:{color:"#0097a7",text:"#fff"},800:{color:"#00838f",text:"#fff"},900:{color:"#006064",text:"#fff"}},teal:{50:{color:"#e0f2f1",text:lt},100:{color:"#b2dfdb",text:lt},200:{color:"#80cbc4",text:lt},300:{color:"#4db6ac",text:lt},400:{color:"#26a69a",text:lt},500:{color:"#009688",text:"#fff"},600:{color:"#00897b",text:"#fff"},700:{color:"#00796b",text:"#fff"},800:{color:"#00695c",text:"#fff"},900:{color:"#004d40",text:"#fff"}},green:{50:{color:"#e8f5e9",text:lt},100:{color:"#c8e6c9",text:lt},200:{color:"#a5d6a7",text:lt},300:{color:"#81c784",text:lt},400:{color:"#66bb6a",text:lt},500:{color:"#4caf50",text:lt},600:{color:"#43a047",text:"#fff"},700:{color:"#388e3c",text:"#fff"},800:{color:"#2e7d32",text:"#fff"},900:{color:"#1b5e20",text:"#fff"}},lightGreen:{50:{color:"#f1f8e9",text:lt},100:{color:"#dcedc8",text:lt},200:{color:"#c5e1a5",text:lt},300:{color:"#aed581",text:lt},400:{color:"#9ccc65",text:lt},500:{color:"#8bc34a",text:lt},600:{color:"#7cb342",text:lt},700:{color:"#689f38",text:"#fff"},800:{color:"#558b2f",text:"#fff"},900:{color:"#33691e",text:"#fff"}},lime:{50:{color:"#f9fbe7",text:lt},100:{color:"#f0f4c3",text:lt},200:{color:"#e6ee9c",text:lt},300:{color:"#dce775",text:lt},400:{color:"#d4e157",text:lt},500:{color:"#cddc39",text:lt},600:{color:"#c0ca33",text:lt},700:{color:"#afb42b",text:lt},800:{color:"#9e9d24",text:lt},900:{color:"#827717",text:"#fff"}},yellow:{50:{color:"#fffde7",text:lt},100:{color:"#fff9c4",text:lt},200:{color:"#fff59d",text:lt},300:{color:"#fff176",text:lt},400:{color:"#ffee58",text:lt},500:{color:"#ffeb3b",text:lt},600:{color:"#fdd835",text:lt},700:{color:"#fbc02d",text:lt},800:{color:"#f9a825",text:lt},900:{color:"#f57f17",text:lt}},amber:{50:{color:"#fff8e1",text:lt},100:{color:"#ffecb3",text:lt},200:{color:"#ffe082",text:lt},300:{color:"#ffd54f",text:lt},400:{color:"#ffca28",text:lt},500:{color:"#ffc107",text:lt},600:{color:"#ffb300",text:lt},700:{color:"#ffa000",text:lt},800:{color:"#ff8f00",text:lt},900:{color:"#ff6f00",text:lt}},orange:{50:{color:"#fff3e0",text:lt},100:{color:"#ffe0b2",text:lt},200:{color:"#ffcc80",text:lt},300:{color:"#ffb74d",text:lt},400:{color:"#ffa726",text:lt},500:{color:"#ff9800",text:lt},600:{color:"#fb8c00",text:lt},700:{color:"#f57c00",text:lt},800:{color:"#ef6c00",text:"#fff"},900:{color:"#e65100",text:"#fff"}},deepOrange:{50:{color:"#fbe9e7",text:lt},100:{color:"#ffccbc",text:lt},200:{color:"#ffab91",text:lt},300:{color:"#ff8a65",text:lt},400:{color:"#ff7043",text:lt},500:{color:"#ff5722",text:"#fff"},600:{color:"#f4511e",text:"#fff"},700:{color:"#e64a19",text:"#fff"},800:{color:"#d84315",text:"#fff"},900:{color:"#bf360c",text:"#fff"}},brown:{50:{color:"#efebe9",text:lt},100:{color:"#d7ccc8",text:lt},200:{color:"#bcaaa4",text:lt},300:{color:"#a1887f",text:"#fff"},400:{color:"#8d6e63",text:"#fff"},500:{color:"#795548",text:"#fff"},600:{color:"#6d4c41",text:"#fff"},700:{color:"#5d4037",text:"#fff"},800:{color:"#4e342e",text:"#fff"},900:{color:"#3e2723",text:"#fff"}},grey:{50:{color:"#fafafa",text:lt},100:{color:"#f5f5f5",text:lt},200:{color:"#eeeeee",text:lt},300:{color:"#e0e0e0",text:lt},400:{color:"#bdbdbd",text:lt},500:{color:"#9e9e9e",text:lt},600:{color:"#757575",text:"#fff"},700:{color:"#616161",text:"#fff"},800:{color:"#424242",text:"#fff"},900:{color:"#212121",text:"#fff"}},blueGrey:{50:{color:"#eceff1",text:lt},100:{color:"#cfd8dc",text:lt},200:{color:"#b0bec5",text:lt},300:{color:"#90a4ae",text:lt},400:{color:"#78909c",text:"#fff"},500:{color:"#607d8b",text:"#fff"},600:{color:"#546e7a",text:"#fff"},700:{color:"#455a64",text:"#fff"},800:{color:"#37474f",text:"#fff"},900:{color:"#263238",text:"#fff"}},black:{500:{color:"#000000",text:"#fff"}},white:{500:{color:"#FFFFFF",text:lt}}},ut=function(){function e(e){this.ngControl=e,this.valueChange=new t.EventEmitter,this.palette=pt,this.colors=ct,this.hues=Array.from({length:10},(function(e,t){return 100*t})),this.hues[0]=50,this.value=500,this.colorSelected={}}return e.prototype.ngAfterViewInit=function(){var e=this;this.setColorSelected(this.ngModel),this.hueColor.valueChange.subscribe((function(t){e.ngModel=e.getColor(e.colorSelected.name,t),e.ngModelChange.emit(e.ngModel)}))},e.prototype.getColor=function(e,t){if(void 0===t&&(t=500),e)return this.palette[e][t].color},e.prototype.getColorText=function(e,t){if(void 0===t&&(t=500),e)return this.palette[e][t].text},e.prototype.selectColor=function(e){this.ngControl.control.markAsDirty(),this.deselectColors(),e.selected=!0,this.colorSelected=e,this.ngModel=this.getColor(this.colorSelected.name,this.value),this.ngModelChange.emit(this.ngModel)},e.prototype.deselectColors=function(){this.ngControl.control.markAsDirty(),this.ngModel=this.getColor(null),this.ngModelChange.emit(this.ngModel),this.colorSelected={},this.value=500,this.colors.forEach((function(e){return e.selected=!1}))},e.prototype.setColorSelected=function(e){var t=this;e&&Object.keys(this.palette).forEach((function(n){Object.keys(t.palette[n]).forEach((function(i){t.palette[n][i].color===e&&t.colors.forEach((function(e){e.name===n&&setTimeout((function(){e.selected=!0,t.value=i,t.colorSelected=e}))}))}))}))},e.ctorParameters=function(){return[{type:n.NgControl}]},h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"valueChange",void 0),h([t.ViewChild("hueColor"),f("design:type",Object)],e.prototype,"hueColor",void 0),e=h([t.Component({selector:"ui-color-picker",template:'<ui-card>\r\n <div class="colors">\r\n <div class="color"\r\n *ngFor="let color of colors"\r\n tabindex="1"\r\n [class.selected]="color.name === colorSelected.name"\r\n [ngStyle]="{\'background-color\': getColor(color.name, color.name === colorSelected.name ? value : 500), \'border\': color.hasBorder ? \'1px solid #424242\' : \'none\'}"\r\n (click)="selectColor(color)">\r\n <i class="material-icons" [style.color]="getColorText(color.name, color.name === colorSelected.name ? value : 500)" *ngIf="color.selected">done</i>\r\n </div>\r\n <div class="color remove" [class.selected]="!colorSelected.name" (click)="deselectColors()" tabindex="1">\r\n <i class="material-icons secondary-text">block</i>\r\n </div>\r\n </div>\r\n <ui-card-content [hidden]="!colorSelected.name" *ngIf="!colorSelected.hideSlider">\r\n <ui-slider [range]="hues"\r\n [(value)]="value"\r\n [hideBalloon]="true"\r\n [color]="getColor(colorSelected.name, value)"\r\n [text-color]="getColorText(colorSelected.name, value)"\r\n #hueColor></ui-slider>\r\n </ui-card-content>\r\n</ui-card>\r\n',styles:[":host ui-card{max-width:246px}:host ui-card ui-card-content{height:34px;overflow:hidden;padding:0 16px;transition:height 280ms cubic-bezier(0,0,.2,1)}:host ui-card ui-card-content[hidden]{height:0}:host .colors{padding:8px 16px 16px 8px;display:flex;flex-wrap:wrap}:host .colors .color{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin-left:8px;margin-top:8px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:background-color 280ms cubic-bezier(0,0,.2,1),box-shadow 280ms cubic-bezier(0,0,.2,1)}:host .colors .color.remove i{font-size:44px}:host .colors .color i{transition:color 280ms cubic-bezier(0,0,.2,1)}:host .colors .color.selected{box-shadow:0 0 4px 0 rgba(0,0,0,.14),0 3px 4px 0 rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2)}:host ::ng-deep ui-slider:not(.nothing){margin-top:16px}:host ::ng-deep ui-slider:not(.nothing) .track{height:4px}:host ::ng-deep ui-slider:not(.nothing) .thumb{width:16px;height:16px}:host ::ng-deep ui-slider:not(.nothing) .points{margin-top:-4px}:host ::ng-deep ui-slider:not(.nothing) .points .point:not(.nothing){padding:2px;opacity:.54}::ng-deep .wrap-color-picker{z-index:5}::ng-deep .wrap-color-picker .overlay{overflow:hidden}::ng-deep .wrap-color-picker ui-color-picker{transform-origin:top left;transition:transform 280ms cubic-bezier(.4,0,.6,1),opacity 280ms cubic-bezier(.4,0,.6,1);transform:scale(0);opacity:0;position:absolute;z-index:5}::ng-deep .wrap-color-picker.open ui-color-picker{transform:scale(1);opacity:1}@media (max-width:600px){::ng-deep .wrap-color-picker{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;background-color:transparent!important}::ng-deep .wrap-color-picker .overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0);transition:background 195ms cubic-bezier(0,0,.2,1)}::ng-deep .wrap-color-picker ui-color-picker{position:relative;top:0!important;left:0!important;margin:auto;transform-origin:bottom;transition:transform 225ms cubic-bezier(.4,0,1,1),opacity 195ms cubic-bezier(.4,0,1,1);transform:scale(.8) translateY(16px)}::ng-deep .wrap-color-picker ui-color-picker ui-card{box-shadow:0 24px 38px 3px rgba(0,0,0,.14),0 9px 49px 8px rgba(0,0,0,.12),0 11px 15px 0 rgba(0,0,0,.2)}::ng-deep .wrap-color-picker.open .overlay{background-color:rgba(0,0,0,.2)}::ng-deep .wrap-color-picker.open ui-color-picker{transition:transform 225ms cubic-bezier(0,0,.2,1),opacity 195ms cubic-bezier(0,0,.2,1);transform:scale(1) translateY(0)}}"]}),f("design:paramtypes",[n.NgControl])],e)}(),dt=function(){function e(e,n,i,o){this.element=e,this.componentFactoryResolver=n,this.applicationRef=i,this.injector=o,this.ngModelChange=new t.EventEmitter,this.palette=pt}return e.prototype.ngAfterViewInit=function(){var e=this;this.generateElementColor(),this.setColorElement(this.ngModel),this.element.nativeElement.classList.add("elevate"),this.element.nativeElement.parentNode.appendChild(this.elementColor),this.addEvents(),this.ngModelChange.subscribe((function(t){e.setColorElement(t)}))},e.prototype.ngOnChanges=function(e){e.ngModel&&!e.ngModel.firstChange&&(this.ngModel=e.ngModel.currentValue,this.setColorElement(this.ngModel))},e.prototype.generateElementColor=function(){this.elementColor=document.createElement("div"),this.elementColor.classList.add("ui-color"),this.elementColor.setAttribute("tabindex","1")},e.prototype.setColorElement=function(e){var t=this.elementColor.querySelector("i");e?(t&&t.remove(),this.elementColor.setAttribute("style","background-color: "+e)):t||((t=document.createElement("i")).classList.add("material-icons","secondary-text"),t.innerText="block",this.elementColor.appendChild(t),this.elementColor.setAttribute("style",""))},e.prototype.addEvents=function(){var e=this;v.on(this.elementColor,"click",(function(t){var n=v.position(e.elementColor),i={x:n.left,y:n.top};e.componentRef||(e.createComponent(),e.setInstances(e,e.componentRef),e.applicationRef.attachView(e.componentRef.hostView),e.componentElement=e.getComponentAsElement(),e.render(e.componentElement,i),t.stopPropagation())})),v.on(window,"click resize scroll",(function(t){e.componentRef&&((v.is(t.target,".wrap-color-picker")||v.closest(t.target,".wrap-color-picker")||document.body.clientWidth<=600&&"scroll"===t.type)&&!v.is(t.target,".overlay")||e.close())}))},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(ut);this.componentRef=e.create(this.injector)},e.prototype.getComponentAsElement=function(){return this.componentRef.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){["ngModel","ngModelChange"].forEach((function(n){t.instance[n]=e[n]}))},e.prototype.render=function(e,t){var n=this;this.createWrapElement(),this.wrapElement.appendChild(e),document.body.appendChild(this.wrapElement),setTimeout((function(){n.themeClass&&n.wrapElement.classList.add(n.themeClass),n.wrapElement.classList.add("open"),n.setPosition(t)}))},e.prototype.createWrapElement=function(){this.wrapElement=document.createElement("div"),this.wrapElement.classList.add("wrap-color-picker");var e=document.createElement("div");e.classList.add("overlay"),this.wrapElement.appendChild(e)},e.prototype.setPosition=function(e){var t=e.x+this.componentElement.clientWidth,n=e.y+this.componentElement.clientHeight,i=window.innerWidth+document.body.scrollLeft,o=window.innerHeight+document.body.scrollTop;t>i&&(e.x=i-(this.componentElement.clientWidth+8)),e.x<=8&&(e.x=8),n>o&&(e.y=e.y-this.componentElement.clientHeight),this.componentElement.style.top=e.y+"px",this.componentElement.style.left=e.x+"px"},e.prototype.close=function(){var e=this;this.wrapElement&&(this.wrapElement.classList.remove("open"),setTimeout((function(){e.componentRef&&(e.componentRef.instance.colors.forEach((function(e){return e.selected=!1})),e.applicationRef.detachView(e.componentRef.hostView),e.componentRef=null,e.wrapElement.remove())}),280))},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input("theme-class"),f("design:type",Object)],e.prototype,"themeClass",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Directive({selector:"[uiColorPicker]"}),f("design:paramtypes",[t.ElementRef,t.ComponentFactoryResolver,t.ApplicationRef,t.Injector])],e)}(),ht=function(){function e(e){this.element=e,this.retries=0,"TEXTAREA"!==this.element.nativeElement.tagName?this._findNestedTextArea():this.textAreaEl=this.element.nativeElement}return e.prototype.onInput=function(e){this.adjust()},e.prototype.onChange=function(e){this.adjust()},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.adjust()}))},e.prototype._findNestedTextArea=function(){var e=this;this.textAreaEl=this.element.nativeElement.getElementsByTagName("textarea")[0],this.textAreaEl||(this.retries>=3?console.error("textarea não encontrado"):(this.retries++,setTimeout((function(){e._findNestedTextArea()}),100)))},e.prototype.ngDoCheck=function(){},e.prototype.ngOnChanges=function(e){var t=this;setTimeout((function(){t.adjust()}))},e.prototype.adjust=function(){this.textAreaEl&&(this.textAreaEl.style.overflow="hidden",this.textAreaEl.style.height="",this.textAreaEl.style.height=this.textAreaEl.scrollHeight+"px")},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.HostListener("input",["$event.target"]),f("design:type",Function),f("design:paramtypes",[HTMLTextAreaElement]),f("design:returntype",void 0)],e.prototype,"onInput",null),h([t.HostListener("change",["$event.target"]),f("design:type",Function),f("design:paramtypes",[HTMLTextAreaElement]),f("design:returntype",void 0)],e.prototype,"onChange",null),e=h([t.Directive({selector:"[autosize]"}),f("design:paramtypes",[t.ElementRef])],e)}(),mt=function(){function e(e){this.element=e,this.select=new t.EventEmitter,this.cancel=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.chosen=new l.Subject;var n=Array.apply(null,{length:12}).map(Number.call,Number),i=Array.apply(null,{length:12}).map(Number.call,Number).map((function(e){return e+12}));n[0]=12,i[0]=0,this.hours=y(i,n),this.minutes=Array.apply(null,{length:12}).map(Number.call,Number).map((function(e){return 5*e})),this.activeSelection="hours",this.pointerRotation=0}return e.prototype.ngOnInit=function(){this.formatModel()},e.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.tabIndex=1,setTimeout((function(){e.element.nativeElement.focus()})),v.on(document,"keydown",(function(t){if(e.focused)switch(t.keyCode){case 13:"hours"===e.activeSelection?e.selectHour(e.hour):e.selectMinute(e.minute);break;case 39:case 40:"hours"===e.activeSelection?e.hour=e.hour+1>23?0:e.hour+1:e.minute=e.minute+1>59?0:e.minute+1,e.getPositionPointer(),t.preventDefault();break;case 37:case 38:"hours"===e.activeSelection?e.hour=e.hour-1<0?23:e.hour-1:e.minute=e.minute-1<0?59:e.minute-1,e.getPositionPointer(),t.preventDefault()}})),v.on(document,"click",(function(t){e.focused=(e.element.nativeElement===t.target||e.element.nativeElement===v.closest(t.target,"ui-clock"))&&(v.is(t.target,"ui-clock")||v.closest(t.target,"ui-clock"))}))},e.prototype.ngOnChanges=function(e){e.ngModel&&!e.ngModel.firstChange&&(this.ngModel=e.ngModel.currentValue,this.formatModel()),e.confirmSelection&&(this.confirmSelection=e.confirmSelection.currentValue)},e.prototype.formatModel=function(){if(this.ngModel){var e=this.ngModel.split(":");this.hour=parseInt(e[0],10),this.minute=parseInt(e[1],10),this.getPositionPointer()}},e.prototype.selectTime=function(e){this.hasHourAndMinute()&&(this.ngModel=this.formatToLpad(this.hour)+":"+this.formatToLpad(this.minute),this.ngModelChange.emit(this.ngModel),this.select.emit(this.ngModel),this.chosen.next({value:this.ngModel,close:e}))},e.prototype.cancelTime=function(){this.activeSelection="hours",this.hour=null,this.minute=null,this.ngModel=null,this.ngModelChange.emit(this.ngModel),this.cancel.emit()},e.prototype.selectHour=function(e){this.activeSelection="minutes",this.hour=e,this.minute=this.minute||0,this.getPositionPointer(),this.confirmSelection||this.selectTime()},e.prototype.selectMinute=function(e){this.activeSelection="hours",this.minute=e,this.getPositionPointer(),this.confirmSelection||this.selectTime(!0)},e.prototype.isEmpty=function(){return!("number"==typeof this.hour&&"number"==typeof this.minute)},e.prototype.formatToLpad=function(e){return"number"==typeof e&&e.toString().length<2&&(e="0"+e),e},e.prototype.getPositionPointer=function(){if(this.hasHourAndMinute()){var e,t=this.pointerRotation;t=t>=360?t-360*Math.floor(t/360):t<=-360?t+360*Math.floor(Math.abs(t)/360):t;var n="hours"===this.activeSelection?30*(this.hour>=12?this.hour-12:this.hour):6*this.minute;e=n-t<-180?360-t+n:n-t>180?-(360-n+t):n-t,180===Math.abs(e)&&(e=n>t?Math.abs(e):-e),this.pointerRotation+=e}},e.prototype.getPositionTopPointer=function(){return"hours"===this.activeSelection&&this.hour>0&&this.hour<13?"40px":""},e.prototype.hasHourAndMinute=function(){return"number"==typeof this.hour&&"number"==typeof this.minute},e.prototype.validate=function(){return this.hour<24&&this.minute<60||!this.hasHourAndMinute()},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input("hide-header"),f("design:type",Boolean)],e.prototype,"hideHeader",void 0),h([t.Input("confirm-selection"),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"cancel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Component({selector:"ui-clock",template:'<header *ngIf="!hideHeader" [class.time-error]="!validate()">\r\n <div>\r\n <span class="time-empty" *ngIf="isEmpty()">Selecione um horário</span>\r\n <span *ngIf="!isEmpty() && !validate()">Horário inválido</span>\r\n <div class="time" *ngIf="!isEmpty() && validate()" (click)="getPositionPointer()">\r\n <span (click)="activeSelection = \'hours\'" [class.time-focused]="activeSelection === \'hours\'">{{formatToLpad(hour)}}</span>:<span (click)="activeSelection = \'minutes\'" [class.time-focused]="activeSelection === \'minutes\'">{{formatToLpad(minute)}}</span>\r\n </div>\r\n </div>\r\n</header>\r\n<div>\r\n <div class="content">\r\n <div class="clock-cover">\r\n <div class="clock-wrap" [class.has-pointer]="hasHourAndMinute() && validate()">\r\n <div class="pointer"\r\n *ngIf="hasHourAndMinute() && validate()"\r\n [ngStyle]="{\'transform\': \'rotate(\' + pointerRotation + \'deg)\', \'top\': getPositionTopPointer()}"\r\n [@fade]>\r\n <div class="ball" [class.show-core]="activeSelection === \'minutes\' && minute % 5 !== 0"></div>\r\n </div>\r\n <div *ngIf="activeSelection === \'hours\'" [@explosion]>\r\n <div class="hour"\r\n *ngFor="let hour of hours"\r\n [style.transform]="\'rotate(\' + (30 * (hour >= 12 ? hour - 12 : hour )) + \'deg)\'"\r\n (click)="selectHour(hour)">\r\n <button class="ui-button icon flat" [style.transform]="\'rotate(-\' + (30 * (hour >= 12 ? hour - 12 : hour )) + \'deg)\'">{{hour}}</button>\r\n </div>\r\n </div>\r\n <div *ngIf="activeSelection === \'minutes\'" [@explosion]>\r\n <div class="minute"\r\n *ngFor="let minute of minutes; let index = index"\r\n [style.transform]="\'rotate(\' + (30 * (index >= 12 ? index - 12 : index )) + \'deg)\'"\r\n (click)="selectMinute(minute)">\r\n <button class="ui-button icon flat" [style.transform]="\'rotate(-\' + (30 * (index >= 12 ? index - 12 : index )) + \'deg)\'">{{minute}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="actions ui-button-container align-right" *ngIf="confirmSelection">\r\n <button class="ui-button flat primary" uiRipple (click)="cancelTime()">Cancelar</button>\r\n <button class="ui-button flat primary" uiRipple (click)="selectTime(true)" [disabled]="!hasHourAndMinute()">Ok</button>\r\n </div>\r\n</div>\r\n',encapsulation:t.ViewEncapsulation.None,animations:[p.trigger("explosion",[p.transition(":enter",[p.style({opacity:0,transform:"scale(1.3)"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:1,transform:"scale(1)"}))]),p.transition(":leave",[p.style({opacity:1,transform:"scale(1)"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0,transform:"scale(1.3)"}))])]),p.trigger("fade",[p.transition(":enter",[p.style({opacity:0}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:1}))]),p.transition(":leave",[p.style({opacity:1}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0}))])])],styles:['ui-clock{display:inline-flex;flex-direction:column;overflow:hidden;border-radius:2px;position:relative;z-index:0}ui-clock header{padding:16px;min-height:72px;display:flex;justify-content:center;flex-direction:column}ui-clock header .time-empty{font-size:18px;font-weight:500}ui-clock header .time{margin-top:8px;font-size:40px;font-weight:500;text-align:center;cursor:default}ui-clock .actions{padding:0 8px 8px;text-align:right;cursor:default}ui-clock .content{position:relative}ui-clock .content .clock-cover{overflow:hidden;transition:.3s ease-in-out;margin:24px}ui-clock .content .clock-cover .clock-wrap{border-radius:50%;width:250px;height:250px;position:relative}ui-clock .content .clock-cover .clock-wrap>div:not(.pointer){position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}ui-clock .content .clock-cover .clock-wrap::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;display:block;width:4px;height:4px;margin:auto;border-radius:50%;transition:transform 280ms cubic-bezier(0,0,.2,1);transform:scale(0)}ui-clock .content .clock-cover .clock-wrap .hour,ui-clock .content .clock-cover .clock-wrap .minute,ui-clock .content .clock-cover .clock-wrap .pointer{position:absolute;top:8px;left:0;right:0;bottom:50%;width:36px;margin:0 auto;pointer-events:none;transform-origin:bottom center}ui-clock .content .clock-cover .clock-wrap .hour .ui-button,ui-clock .content .clock-cover .clock-wrap .minute .ui-button,ui-clock .content .clock-cover .clock-wrap .pointer .ui-button{pointer-events:auto}ui-clock .content .clock-cover .clock-wrap .hour .ui-button::before,ui-clock .content .clock-cover .clock-wrap .minute .ui-button::before,ui-clock .content .clock-cover .clock-wrap .pointer .ui-button::before{transform:scale(1)}ui-clock .content .clock-cover .clock-wrap .pointer{z-index:2;transition:transform 280ms cubic-bezier(0,0,.2,1),top 280ms cubic-bezier(0,0,.2,1)}ui-clock .content .clock-cover .clock-wrap .pointer::before{content:"";width:2px;position:absolute;top:36px;left:0;right:0;bottom:0;margin:auto}ui-clock .content .clock-cover .clock-wrap .pointer .ball{width:36px;height:36px;margin:auto;border-radius:50%;position:absolute;top:0}ui-clock .content .clock-cover .clock-wrap .pointer .ball::before{content:"";width:8px;height:8px;margin:auto;display:block;border-radius:50%;position:absolute;top:0;left:0;right:0;bottom:0;transition:transform 280ms cubic-bezier(0,0,.2,1);transform:scale(0)}ui-clock .content .clock-cover .clock-wrap .pointer .ball.show-core::before{transform:scale(1)}ui-clock .content .clock-cover .clock-wrap .hour:nth-child(n+13){top:40px}ui-clock .content .clock-cover .clock-wrap.has-pointer::before{transform:scale(1)}@media (min-width:600px),(min-width:496px) and (orientation:landscape){ui-clock:not(.portrait-only){flex-direction:row}ui-clock:not(.portrait-only) header{width:168px}ui-clock:not(.portrait-only) .clock-cover{margin:8px 24px}}']}),f("design:paramtypes",[t.ElementRef])],e)}(),ft=function(){function e(){this.timePickers={}}return e.prototype.add=function(e,t){this.timePickers&&this.timePickers[e]||(this.timePickers[e]=t)},e.prototype.get=function(e){return this.timePickers[e]},e.prototype.remove=function(e){delete this.timePickers[e]},e.prototype.closeAll=function(){v.trigger(window,"click")},e.prototype.getAll=function(){return this.timePickers},e.prototype.updateModel=function(e,t){this.timePickers[e].ngModel=t,this.timePickers[e].ngModelChange.emit(t)},e=h([t.Injectable(),f("design:paramtypes",[])],e)}(),gt=function(){function e(e,n){this.timePickerService=e,this.element=n,this.select=new t.EventEmitter,this.ngModelChange=new t.EventEmitter,this.chosen=new r.Subject}return e.prototype.ngOnInit=function(){this.timePickerService.add(this.timePicker,this)},e.prototype.ngAfterViewInit=function(){this.element.nativeElement.setAttribute("time-picker-name",this.timePicker)},e.prototype.ngOnChanges=function(e){this.chosen.next(e)},e.prototype.ngOnDestroy=function(){this.timePickerService.remove(this.timePicker)},e.ctorParameters=function(){return[{type:ft},{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"confirmSelection",void 0),h([t.Input("theme-class"),f("design:type",String)],e.prototype,"themeClass",void 0),h([t.Input("uiTimePicker"),f("design:type",String)],e.prototype,"timePicker",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"select",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),e=h([t.Directive({selector:"[uiTimePicker]"}),f("design:paramtypes",[ft,t.ElementRef])],e)}(),yt=function(){function e(e,t,n,i,o){this.componentFactoryResolver=e,this.applicationRef=t,this.injector=n,this.timePickerService=i,this.elementRef=o}return e.prototype.ngAfterViewInit=function(){var e=this;this.timePicker=this.timePickerService.get(this.timePickerCaller),v.on(this.elementRef.nativeElement,this.pickerEvent||"click",(function(t){e.inputElement=document.querySelector('[time-picker-name="'+e.timePickerCaller+'"]'),e.timePickerService.closeAll();var n=v.position(e.inputElement),i={x:n.left,y:e.inputElement.offsetHeight+n.top};e.pickerOpen||(e.renderTimePicker(e.timePicker,i),t.stopPropagation())})),v.on(window,"click resize scroll",(function(t){e.pickerOpen&&((v.is(t.target,".wrap-time-picker")||v.closest(t.target,".wrap-time-picker")||document.body.clientWidth<=600&&"scroll"===t.type)&&!v.is(t.target,".overlay")||e.closePicker())}))},e.prototype.getComponentAsElement=function(e){return e.hostView.rootNodes[0]},e.prototype.setInstances=function(e,t){var n=this;["ngModel","confirmSelection","select"].map((function(n){return t.instance[n]=e[n]})),t.instance.focused=!0,e.chosen.subscribe((function(e){return t.instance.ngOnChanges(e)})),t.instance.cancel.subscribe((function(){return n.closePicker()})),t.instance.chosen.subscribe((function(e){n.timePickerService.updateModel(n.timePickerCaller,e.value),n.pickerOpen&&e.close&&(n.inputElement.focus(),n.closePicker())}))},e.prototype.renderViewClock=function(e,t,n){var i=this;this.wrapTimePicker=document.createElement("div"),this.wrapTimePicker.classList.add("wrap-time-picker");var o=document.createElement("div");o.classList.add("overlay"),n&&this.wrapTimePicker.classList.add(n),this.wrapTimePicker.style.transform="scale(0)",e.classList.add("portrait-only"),this.wrapTimePicker.appendChild(o),this.wrapTimePicker.appendChild(e),document.body.appendChild(this.wrapTimePicker),setTimeout((function(){var n=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+(document.body.scrollLeft||window.scrollX||window.pageXOffset),s=window.innerHeight+(document.body.scrollTop||window.scrollY||window.pageYOffset);n>r&&(t.x=r-(e.clientWidth+8)),o>s&&(t.y=s-(e.clientHeight+8)),i.wrapTimePicker.style.transform="",e.style.position="absolute",e.style.top=t.y+"px",e.style.left=t.x+"px",i.wrapTimePicker.classList.add("open"),document.body.clientWidth<=600&&(document.body.style.overflowY="hidden")}))},e.prototype.renderTimePicker=function(e,t){var n=this.componentFactoryResolver.resolveComponentFactory(mt);this.componentRef=n.create(this.injector),this.componentElement=this.getComponentAsElement(this.componentRef),this.setInstances(e,this.componentRef),this.applicationRef.attachView(this.componentRef.hostView),this.renderViewClock(this.componentElement,t,e.themeClass),this.pickerOpen=!0},e.prototype.closePicker=function(){var e=this;this.wrapTimePicker.classList.remove("open"),setTimeout((function(){e.pickerOpen=!1,e.applicationRef.detachView(e.componentRef.hostView),document.body.style.overflowY="";try{document.body.removeChild(e.wrapTimePicker)}catch(e){}}),280)},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector},{type:ft},{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"pickerEvent",void 0),h([t.Input("uiTimePickerCaller"),f("design:type",String)],e.prototype,"timePickerCaller",void 0),e=h([t.Directive({selector:"[uiTimePickerCaller]"}),f("design:paramtypes",[t.ComponentFactoryResolver,t.ApplicationRef,t.Injector,ft,t.ElementRef])],e)}(),vt=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>2&&(e=e.substring(0,2)+":"+e.substring(2)),e.length>5&&(e=e.substring(0,5)),e):""},e=h([t.Pipe({name:"uiTime"})],e)}(),bt=function(){function e(e,n){this.elementRef=e,this.timePipe=n,this.symbolsPositions=[2],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),e.minTime&&!e.minTime.firstChange&&(this.minTime=e.minTime.currentValue),e.maxTime&&!e.maxTime.firstChange&&(this.maxTime=e.maxTime.currentValue)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.timePipe.transform(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.timePipe.transform(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.timePipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,4)},e.prototype.validate=function(e){if(this.control=e,e.value&&this.format(e.value).length<4)return{parse:!0};if(e.value){var t=e.value.split(":");if(!this.customTime&&t[0]>23)return{hour:!0};if(!this.customTime&&t[1]>59)return{minute:!0};if(this.minTime&&4===this.format(this.minTime).length&&this.format(e.value)<this.format(this.minTime))return{minTime:!0};if(this.maxTime&&4===this.format(this.maxTime).length&&this.format(e.value)>this.format(this.maxTime))return{maxTime:!0}}return null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(){var e=v.caretPosition.get(this.elementRef.nativeElement),t=this.elementRef.nativeElement.value;this.input=!0,this.renderViaInput(t),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,e,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:vt}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",String)],e.prototype,"minTime",void 0),h([t.Input(),f("design:type",String)],e.prototype,"maxTime",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"customTime",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskTime][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},vt]}),f("design:paramtypes",[t.ElementRef,vt])],e)}(),wt=function(){function e(){}return e.prototype.transform=function(e,t){if(!e&&"number"!=typeof e)return"";"number"==typeof e&&(e=e.toFixed(2));var n=!(e.toString().match(/[+]/)||!e.toString().match(/[-]/)),i=3===e.length&&e.replace(",","").split("").every((function(e){return"0"===e}));if(e=e.toString().replace(/[^0-9]+/g,"").replace(/^0+/g,""),!i)for(;e.length<3;)e="0"+e.toString();var o="";e=e.split("");for(var r=0;r<e.length;r++){2===r?o=","+o:r>3&&!((r-2)%3)&&(o="."+o),o=e[e.length-1-r]+o}return t&&t.noNegative?o:n?"-"+o:o},e=h([t.Pipe({name:"uiCurrency"})],e)}(),xt=function(){function e(e,n){this.elementRef=e,this.currencyPipe=n,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),void 0!==e.max&&(this.max=e.max.currentValue),void 0!==e.min&&(this.min=e.min.currentValue)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.formatViewValue(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.formatViewValue(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){e=this.currencyPipe.transform(e,{noNegative:this.noNegative});var t=new RegExp("[^\\d\\,-]+","g");return e=e.toString().replace(t,""),"number"!=typeof(e=parseFloat(e.replace(",",".")))||isNaN(e)?null:e},e.prototype.formatViewValue=function(e){return e="0,00"===this.beforeViewValue&&e.length<this.beforeViewValue.length?"":e,this.currencyPipe.transform(e,{noNegative:this.noNegative})},e.prototype.validate=function(e){return this.control=e,void 0!==this.min&&e.value&&this.format(e.value)<this.min?{min:!0}:void 0!==this.max&&e.value&&this.format(e.value)>this.max?{max:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=this.elementRef.nativeElement.value;this.input=!0,this.beforeViewValue=t,this.renderViaInput(t)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:wt}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"min",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"noNegative",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCurrency][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},wt]}),f("design:paramtypes",[t.ElementRef,wt])],e)}(),Et=function(){function e(){}var n;return n=e,e.show=function(e,t){n.hide(),void 0===(t=t||{}).clickOverlayToClose?t.clickOverlayToClose=!0:t.clickOverlayToClose&&(t.clickOverlayToClose=JSON.parse(t.clickOverlayToClose)),(We=e.templateRef.createEmbeddedView(e.templateRef)).detectChanges(),We.rootNodes.forEach((function(e){document.body.appendChild(e),e.clientWidth&&n.open(e,t)}))},e.open=function(e,t){setTimeout((function(){var i=new X(document).querySelector(".ui-fab-container");t.darkClass&&e.classList.add(t.darkClass),t.themeClass&&e.classList.add(t.themeClass),t.transparentOverlay&&e.classList.add("transparent-overlay"),t.cardSize&&(e.querySelector("ui-card").style.maxWidth=t.cardSize+"px",e.querySelector("ui-card").style.width="100%"),!t.transparentOverlay&&i.length&&i.classList.add("hide"),t.clickOverlayToClose&&e.querySelector(".overlay").addEventListener("click",(function(){"function"==typeof t.onClose&&t.onClose(),n.hide()})),e.style.transform="",e.classList.add("open"),document.body.style.overflowY="hidden"}))},e.hide=function(){if(We){var e=new X(document).querySelector(".ui-fab-container");e.length&&e.classList.remove("hide"),We.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){We.rootNodes.forEach((function(e){e.remove?e.remove():e.parentNode.removeChild(e)})),We.destroy(),We=null}),280),document.body.style.overflowY=""}},e=n=h([t.Injectable()],e)}(),Ct=function(){function e(e,n){this.element=e,this.viewContainerRef=n,this.ngModelChange=new t.EventEmitter,this.isMobile=v.isMobile,this.options=[],this.optionsExternal=[]}var i;return i=e,e.prototype.ngOnInit=function(){this.element.nativeElement.setAttribute("tabindex",0),this.selectOption()},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnChanges=function(e){this.element.nativeElement.setAttribute("disabled",this.disabled),(e.options||e.ngModel)&&this.selectOption(),e.ngModel&&!e.ngModel.firstChange&&(this.ngModel=e.ngModel.currentValue,e.ngModel.currentValue?this.selectOption():this.onChangeSelect(e.ngModel.currentValue))},e.prototype.onFocus=function(){var e=this;this.close();var t=v.closest(this.element.nativeElement,"fieldset:disabled");this.disabled||t?this.element.nativeElement.blur():this.isMobile()?this.selectNative.nativeElement.focus():setTimeout((function(){var t=v.position(e.element.nativeElement),n={x:t.left,y:t.top};e.render(n)}))},e.prototype.onBlur=function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.closest(e.relatedTarget,".wrap-select"))||this.close()},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;setTimeout((function(){var i=t.x+e.clientWidth,o=t.y+e.clientHeight,r=window.innerWidth+(window.scrollX||window.pageXOffset),s=document.body.clientHeight+(window.scrollY||window.pageYOffset);i>r&&(t.x=r-(e.clientWidth+8)),t.x<=8&&(t.x=8),o>s&&(t.y=s-(e.clientHeight+8)),t.y<=0&&(t.y=0),n.darkClass&&e.classList.add(n.darkClass),e.style.transform="",e.style.top=t.y+"px",e.style.left=t.x+"px",e.style.left=t.x+"px",e.style.width=n.element.nativeElement.clientWidth+"px",e.querySelector(".selected").addEventListener("blur",(function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.is(e.relatedTarget,".input-select"))||n.close()})),n.chosen?(e.querySelector(".input-select").addEventListener("blur",(function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.is(e.relatedTarget,".selected"))||n.close()})),e.querySelector(".input-select").click(),e.scrollTo(0,0)):e.querySelector(".selected").focus(),e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.prototype.onChangeSelect=function(e){e?(this.model=e[this.value],this.selected=e[this.label],this.ngModelChange.emit(e[this.value])):(this.search=e,this.model=e,this.selected=e,this.ngModelChange.emit(e))},e.prototype.selectOption=function(){var e=this;this.options.forEach((function(t){t[e.value]===e.ngModel&&e.onChangeSelect(t)}))},e.prototype.writeValue=function(){},e.prototype.registerOnChange=function(){},e.prototype.registerOnTouched=function(){},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ViewContainerRef}]},h([t.Input("dark-class"),f("design:type",Object)],e.prototype,"darkClass",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"input",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"chosen",void 0),h([t.Output(),f("design:type",Object)],e.prototype,"ngModelChange",void 0),h([t.ViewChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),h([t.ViewChild("selectNative",{static:!0}),f("design:type",Object)],e.prototype,"selectNative",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"label",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"options",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.ViewChild(n.NgModel),f("design:type",n.NgModel)],e.prototype,"model",void 0),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),h([t.HostListener("blur",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onBlur",null),e=i=h([t.Component({selector:"ui-select",template:'<div class="selected">{{selected}}</div>\r\n<ng-template>\r\n <div class="wrap-select">\r\n <div class="wrap-select-inner">\r\n <div class="selected" tabindex="0" (click)="close()">{{selected}}</div>\r\n <div class="ui-divider"></div>\r\n <div *ngIf="chosen">\r\n <div class="input-select-space">\r\n <input type="text" [(ngModel)]="search" class="input-select">\r\n </div>\r\n <div class="ui-divider"></div>\r\n </div>\r\n <div class="options">\r\n <ng-content></ng-content>\r\n <ui-select-option *ngFor="let item of optionsExternal" [value]="value" [label]="label"\r\n uiRipple></ui-select-option>\r\n <ui-select-option *ngFor="let item of options | selectFilter : search : label" [value]="item[value]"\r\n [label]="item[label]" [internal]="true"\r\n uiRipple></ui-select-option>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<div [hidden]="!options || !isMobile()">\r\n <select #selectNative\r\n style="transform: scale(1); position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0"\r\n [(ngModel)]="selectedNative"\r\n (change)="onChangeSelect(selectedNative)">\r\n <option *ngFor="let option of options" [ngValue]="option">\r\n {{option ? option[label] : null}}\r\n </option>\r\n </select>\r\n</div>\r\n',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:i,multi:!0}],styles:[":host{border-radius:2px;height:36px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;display:flex;align-items:center;padding:9px;position:relative;font-size:16px}::ng-deep .wrap-select{display:block;border-radius:2px;overflow:hidden;max-height:36px;transition:max-height 280ms cubic-bezier(0,0,.2,1),box-shadow 280ms cubic-bezier(0,0,.2,1);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;z-index:5}::ng-deep .wrap-select.open{max-height:216px;box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 3px rgba(0,0,0,.12),0 4px 15px 0 rgba(0,0,0,.2)}::ng-deep .wrap-select .selected{height:36px;display:flex;align-items:center;padding:9px}::ng-deep .wrap-select .ui-divider{margin:0}::ng-deep .wrap-select .options{overflow-y:auto;max-height:140px}::ng-deep .wrap-select .input-select-space{padding:3px;height:36px}::ng-deep .wrap-select .input-select-space input{border-radius:2px;height:100%;width:100%;padding:0 5px}"]}),f("design:paramtypes",[t.ElementRef,t.ViewContainerRef])],e)}(),kt=function(){function e(e,t){this.selectComponent=e,this.element=t}return e.prototype.ngOnInit=function(){this.element.nativeElement.setAttribute("tabindex",0),this.internal||this.selectComponent.optionsExternal.push({value:this.value,title:this.label})},e.prototype.onClick=function(){this.selectComponent.ngModelChange.next(this.value),this.selectComponent.model=this.value,this.selectComponent.selected=this.label,this.element.nativeElement.blur()},e.prototype.onEnter=function(e){13===e.keyCode&&this.element.nativeElement.click()},e.prototype.onBlur=function(e){e.relatedTarget&&(v.is(e.relatedTarget,"ui-select-option")||v.is(e.relatedTarget,".selected")||v.is(e.relatedTarget,".input-select"))||this.selectComponent.close()},e.ctorParameters=function(){return[{type:Ct,decorators:[{type:t.Inject,args:[Ct]}]},{type:t.ElementRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"label",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"internal",void 0),h([t.HostListener("click"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onClick",null),h([t.HostListener("keydown",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onEnter",null),h([t.HostListener("blur",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onBlur",null),e=h([t.Component({selector:"ui-select-option",template:"{{label}}\r\n",styles:[":host{height:36px;display:flex;align-items:center;padding:9px}:host:focus{background-color:rgba(0,0,0,.1)}"]}),m(0,t.Inject(Ct)),f("design:paramtypes",[Ct,t.ElementRef])],e)}(),Rt=function(){function e(){}return e.prototype.transform=function(e,t,n){return(t=t?A(t.toLowerCase()):null)?e.filter((function(e){return-1!==A(e[n].toLowerCase()).indexOf(t)})):e},e=h([t.Pipe({name:"selectFilter",pure:!1})],e)}(),It=function(){function e(){}return e.prototype.transform=function(e,t,n){return(t=t?A(t.toLowerCase()):null)?e.filter((function(e){return-1!==A(e[n].toLowerCase()).indexOf(t)})):e},e=h([t.Pipe({name:"uiFilter",pure:!1})],e)}(),Mt=function(){function e(e){this.element=e,this.nameLength=1,this.initials=!1}return e.prototype.ngOnInit=function(){this.newImage=this.image},e.prototype.ngAfterViewInit=function(){this.setSize()},e.prototype.ngOnChanges=function(e){e.name&&!e.name.firstChange&&(this.name=e.name.currentValue),e.color&&!e.color.firstChange&&(this.color=e.color.currentValue),e.image&&!e.image.firstChange&&(e.image.currentValue||(this.showImage=!1,this.newImage=null),this.image=e.image.currentValue),e.size&&!e.size.firstChange&&(this.size=e.size.currentValue,this.setSize()),e.nameLength&&!e.nameLength.firstChange&&(this.nameLength=e.nameLength.currentValue)},e.prototype.isBright=function(e){return z.isBright(e)},e.prototype.loadedImage=function(){this.showImage=!0,this.animateImage()},e.prototype.animateImage=function(){var e=this;this.grayscale=!0,setTimeout((function(){e.grayscale=!1,e.newImage=e.image}),1120)},e.prototype.setSize=function(){if(this.size){var e=this.element.nativeElement.querySelector(".wrap"),t=this.element.nativeElement.querySelector(".empty");t&&v.css(t,"font-size",Math.round(this.size/100*36.36)+"px"),v.css(e,"width",this.size+"px"),v.css(e,"height",this.size+"px")}},e.prototype.getFontSize=function(){return Math.round(this.size/100*36.36)},e.prototype.getName=function(){if(this.name){if(this.initials){var e=this.name.trim().split(" ").map((function(e){return e.charAt(0).toUpperCase()}));return e[0]+e[e.length-1]}return this.name.trim().substr(0,this.nameLength).toUpperCase()}return""},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"name",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input(),f("design:type",String)],e.prototype,"image",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"size",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"nameLength",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"initials",void 0),e=h([t.Component({selector:"ui-avatar",template:'<img [src]="image" (load)="loadedImage()" *ngIf="image">\r\n<div class="wrap" [class.grayscale]="grayscale">\r\n <div class="empty" [ngStyle]="{\'background-color\': color, \'color\': isBright(color) ? \'#000\' : \'#FFF\', \'font-size\': getFontSize() + \'px\'}" *ngIf="!showImage">\r\n {{ getName() }}\r\n </div>\r\n <div class="profile" [style.background-image]="\'url(\' + newImage + \')\'" [@image] *ngIf="showImage"></div>\r\n <div class="profile" [style.background-image]="\'url(\' + image + \')\'" [@image] *ngIf="grayscale"></div>\r\n</div>\r\n',changeDetection:t.ChangeDetectionStrategy.OnPush,animations:[p.trigger("image",[p.transition(":enter",[p.style({opacity:0}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:1}))]),p.transition(":leave",[p.style({opacity:1}),p.animate("2800ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0}))])]),p.trigger("letter",[p.transition(":leave",[p.style({opacity:1}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({opacity:0}))])])],styles:[":host{display:block}img{display:none}.wrap{width:44px;height:44px;margin:4px;position:relative}.empty,.profile{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%}.empty{display:flex;align-items:center;justify-content:center;font-size:16px;transition:background 280ms cubic-bezier(0,0,.2,1),color 280ms cubic-bezier(0,0,.2,1)}.profile{background-size:cover;background-position:center}.grayscale{-webkit-animation:960ms cubic-bezier(0,0,.2,1) 160ms forwards grayscale;animation:960ms cubic-bezier(0,0,.2,1) 160ms forwards grayscale;filter:grayscale(100%)}@-webkit-keyframes grayscale{100%{filter:grayscale(0)}}@keyframes grayscale{100%{filter:grayscale(0)}}"]}),f("design:paramtypes",[t.ElementRef])],e)}(),St=function(){function e(){}return e.prototype.transform=function(e,t,n){if(void 0===t&&(t=null),!e&&"number"!=typeof e)return"";if(!t||isNaN(t)){var i=e.toString().split(".");t=i.length>1?i[1].length:0}"number"==typeof e&&(e=e.toFixed(t));var o=!(e.toString().match(/[+]/)||!e.toString().match(/[-]/)),r=t&&e.length===t+1&&e.replace(",","").split("").every((function(e){return"0"===e}));if(e=e.toString().replace(/[^0-9]+/g,"").replace(/^0+/g,""),!r)for(;e.length<t+1;)e="0"+e.toString();var s="";e=e.split("");for(var a=0;a<e.length;a++){t&&a===t?s=","+s:a>t&&!((a-t)%3)&&(s="."+s),s=e[e.length-1-a]+s}return n?s:o?"-"+s:s},e=h([t.Pipe({name:"uiFloat"})],e)}(),Dt=function(){function e(e,n){this.elementRef=e,this.floatPipe=n,this.uiMaskFloat=2,this.ngModelChange=new t.EventEmitter,this.decimal=this.uiMaskFloat}var i;return i=e,e.prototype.ngOnChanges=function(e){!e.ngModel||e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value=""),void 0!==e.uiMaskFloat&&(this.uiMaskFloat=e.uiMaskFloat.currentValue||2,this.decimal=this.uiMaskFloat),void 0!==e.decimal&&(this.decimal=e.decimal.currentValue||2,this.uiMaskFloat=this.decimal),void 0!==e.max&&(this.max=e.max.currentValue),void 0!==e.min&&(this.min=e.min.currentValue)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.loaded=!0}))},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.input||(this.elementRef.nativeElement.value=this.formatViewValue(this.ngModel)),this.input=!1},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.formatViewValue(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){e=this.floatPipe.transform(e,+this.decimal,this.noNegative);var t=new RegExp("[^\\d\\,-]+","g");return e=e.toString().replace(t,""),"number"!=typeof(e=parseFloat(e.replace(",",".")))||isNaN(e)?null:e},e.prototype.formatViewValue=function(e){var t="0,";return t=t.padEnd(+this.decimal+2,"0"),e=this.beforeViewValue===t&&e.length<this.beforeViewValue.length?"":e,this.floatPipe.transform(e,+this.decimal,this.noNegative)},e.prototype.validate=function(e){return this.control=e,void 0!==this.min&&e.value&&this.format(e.value)<this.min?{min:!0}:void 0!==this.max&&e.value&&this.format(e.value)>this.max?{max:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=this.elementRef.nativeElement.value;this.input=!0,this.beforeViewValue=t,this.renderViaInput(t)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:St}]},h([t.Input(),f("design:type",Number)],e.prototype,"uiMaskFloat",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"decimal",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"min",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"noNegative",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskFloat][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},St]}),f("design:paramtypes",[t.ElementRef,St])],e)}(),Ot=function(){function e(e){var t=this;this.element=e,this.onShow=function(e){t.show(e)},this.onHide=function(){t.hide()}}return e.prototype.ngOnInit=function(){this.top||this.left||this.right||(this.bottom=!0)},e.prototype.ngAfterViewInit=function(){v.on(this.element.nativeElement,"mouseenter",this.onShow),v.on(this.element.nativeElement,"mouseleave",this.onHide)},e.prototype.ngOnDestroy=function(){v.off(this.element.nativeElement,"mouseenter",this.onShow),v.off(this.element.nativeElement,"mouseleave",this.onHide),this.hide()},e.prototype.setClass=function(){this.top&&(this.class="top"),this.left&&(this.class="left"),this.right&&(this.class="right"),this.bottom&&(this.class="bottom")},e.prototype.show=function(e){var t=this;if(this.uiTooltip){this.setClass(),this.wrap=document.createElement("div"),this.wrap.classList.add("wrap-tooltip",this.class),this.wrap.innerText=this.uiTooltip,document.body.appendChild(this.wrap);var n,i,o=v.position(this.element.nativeElement);if(this.top||this.bottom){n=(n=o.left+this.element.nativeElement.clientWidth/2-this.wrap.clientWidth/2)>0?n:0,i=o.top;var r=window.innerHeight-32>=this.element.nativeElement.clientHeight+i;this.bottom&&r?i+=this.element.nativeElement.clientHeight:i-=this.wrap.clientHeight}(this.left||this.right)&&(i=o.top+this.element.nativeElement.clientHeight/2-this.wrap.clientHeight/2,n=o.left,this.left&&n>=this.wrap.clientWidth?n-=this.wrap.clientWidth:n+=this.element.nativeElement.clientWidth),v.css(this.wrap,"left",Math.round(n)+"px"),v.css(this.wrap,"top",Math.round(i)+"px"),setTimeout((function(){return t.wrap&&t.wrap.classList.add("show")}))}},e.prototype.hide=function(){this.wrap&&(this.wrap.classList.add("hide"),Array.from(document.querySelectorAll(".wrap-tooltip")).forEach((function(e){return e.remove()})))},e.ctorParameters=function(){return[{type:t.ElementRef}]},h([t.Input(),f("design:type",String)],e.prototype,"uiTooltip",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"top",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"left",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"right",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"bottom",void 0),e=h([t.Directive({selector:"[uiTooltip]"}),f("design:paramtypes",[t.ElementRef])],e)}(),Tt=function(){function e(e){this.parent=e}return e.prototype.ngAfterViewInit=function(){this.parent.loadOption(this)},e.prototype.ngOnChanges=function(e){this.active&&e.label&&!e.label.firstChange&&(this.label=e.label.currentValue,this.parent.updateOptionLabel(this.label))},e.prototype.onSelect=function(){this.disabled||this.parent.select(this)},e.prototype.setActive=function(e){this.active=e},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.forwardRef((function(){return At}))]}]}]},h([t.Input(),f("design:type",Object)],e.prototype,"label",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"value",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"disabled",void 0),e=h([t.Component({selector:"ui-chosen-option",template:'<div class="option"\r\n uiRipple\r\n (click)="onSelect()"\r\n [ngClass]="{\'active\': active, \'disabled\': disabled}"\r\n *ngIf="!hidden"\r\n [title]="label">\r\n {{label}}\r\n</div>\r\n',styles:[":host{display:block}.option{font-size:16px;padding:14px 16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"]}),m(0,t.Inject(t.forwardRef((function(){return At})))),f("design:paramtypes",[Object])],e)}(),Lt=function(){function e(){}return e.prototype.ngOnInit=function(){},h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.ContentChildren(Tt),f("design:type",t.QueryList)],e.prototype,"options",void 0),e=h([t.Component({selector:"ui-chosen-group",template:'<div class="label" *ngIf="!hidden">{{label}}</div>\r\n<div *ngIf="!hidden">\r\n <ng-content></ng-content>\r\n</div>\r\n',styles:[":host{display:block}:host ::ng-deep ui-chosen-option .option{padding-left:32px}.label{font-size:16px;padding:14px 16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:500}"]}),f("design:paramtypes",[])],e)}(),At=function(){function e(e,n,i){this.element=e,this.viewContainerRef=n,this.changeDetectorRef=i,this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.setAttribute("tabindex",this.element.nativeElement.getAttribute("tabindex")||"0"),v.on(window,"resize scroll",(function(){e.close()})),/Mobi|Android/.test(navigator.userAgent)&&(this.isMobile=!0,this.element.nativeElement.classList.add("mobile")),this.changeDetectorRef.detectChanges()},e.prototype.ngOnChanges=function(e){a.isNullOrUndefined(e.ngModel)||e.ngModel.firstChange||this.setValue(e.ngModel.currentValue),e.required&&!e.required.firstChange&&(this.required=e.required.currentValue),e.disabled&&(this.disabled=e.disabled.currentValue)},e.prototype.ngAfterContentInit=function(){var e=this;a.isNullOrUndefined(this.ngModel)||setTimeout((function(){return e.setValue(e.ngModel)}))},e.prototype.writeValue=function(){},e.prototype.registerOnChange=function(){},e.prototype.registerOnTouched=function(){},e.prototype.validate=function(e){return this.control=e,this.required&&!e.value&&0!==e.value?{required:!0}:null},e.prototype.onFocus=function(){var e=this;if(this.isMobile)this.nativeSelect.nativeElement.focus();else if(!this.focused)if(this.disabled)this.element.nativeElement.blur();else{this.clearFilter(),this.search&&setTimeout((function(){return e.inputSearch.nativeElement.focus()}),100),this.focused=!0;var t=v.position(this.element.nativeElement),n={x:t.left,y:t.top+this.element.nativeElement.clientHeight};this.render(n)}},e.prototype.render=function(e){var t=this;this.viewRef=this.viewContainerRef.createEmbeddedView(this.optionTemplate),this.viewRef.detectChanges(),this.viewRef.rootNodes.forEach((function(n){document.body.appendChild(n),n.clientWidth&&!n.classList.contains("wrap-chosen-overlay")&&t.open(n,e)}))},e.prototype.open=function(e,t){var n=this;e.style.top=0,setTimeout((function(){var i=v.position(n.element.nativeElement,!0).top+e.clientHeight,o=document.body.clientHeight;i+n.element.nativeElement.clientHeight>o&&(t.y-=i-o+n.element.nativeElement.clientHeight),t.y<=0&&(t.y=0);var r=e.querySelector("ui-card > .content"),s=r.clientHeight,a=e.querySelector("ui-card > .search"),l=a?a.clientHeight:0;r.style.maxHeight=(s>o?o-l:s)+"px",e.style.transform="",e.style.top=t.y+"px",e.style.left=t.x+"px";var c=e.querySelector("ui-card");c.style.maxHeight=window.innerHeight+"px",c.style.maxWidth=window.innerWidth-16+"px",c.style.width=n.element.nativeElement.clientWidth+"px",e.classList.add("open")}))},e.prototype.close=function(){var e=this;if(this.focused=!1,this.viewContainerRef.length){var t=this.viewRef;t.rootNodes.forEach((function(e){e.classList&&e.classList.remove("open")})),setTimeout((function(){return e.viewContainerRef.remove(e.viewContainerRef.indexOf(t))}),280)}},e.prototype.setValue=function(e){var t=this,n=!1;this.options.map((function(i){i.value==e?(n=!0,t.value=i.label,i.setActive(!0)):i.setActive(!1)})),n||(this.value=null),this.element.nativeElement.value=this.value},e.prototype.select=function(e){this.control.markAsDirty(),this.control.markAsTouched(),this.ngModelChange.emit(e.value),this.close()},e.prototype.filterList=function(){var e=this;this.options.map((function(t){t.hidden=!!e.searchText&&!A(t.label.toLowerCase()).includes(A(e.searchText.toLowerCase()))})),this.optionsGroup.map((function(e){return e.hidden=0===e.options.filter((function(e){return!e.hidden})).length}))},e.prototype.clearFilter=function(){this.searchText=null,this.filterList()},e.prototype.changeNativeSelect=function(){var e=this;setTimeout((function(){e.control.markAsDirty(),e.control.markAsTouched(),e.ngModelChange.emit(e.ngModel)}))},e.prototype.trackByValue=function(e,t){return t.value},e.prototype.updateOptionLabel=function(e){this.value=e},e.prototype.loadOption=function(e){a.isNullOrUndefined(this.ngModel)||e.value!==this.ngModel||(this.value=e.label),this.changeDetectorRef.detectChanges()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ViewContainerRef},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"search",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"required",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",String)],e.prototype,"placeholder",void 0),h([t.Input(),f("design:type",String)],e.prototype,"persistPlaceholder",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.ViewChild("optionTemplate",{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"optionTemplate",void 0),h([t.ViewChild("inputSearch"),f("design:type",t.ElementRef)],e.prototype,"inputSearch",void 0),h([t.ViewChild("nativeSelect"),f("design:type",t.ElementRef)],e.prototype,"nativeSelect",void 0),h([t.ContentChildren(Tt,{descendants:!0}),f("design:type",t.QueryList)],e.prototype,"options",void 0),h([t.ContentChildren(Tt),f("design:type",t.QueryList)],e.prototype,"onlyOptions",void 0),h([t.ContentChildren(Lt,{descendants:!0}),f("design:type",t.QueryList)],e.prototype,"optionsGroup",void 0),h([t.HostListener("focus"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onFocus",null),e=i=h([t.Component({selector:"ui-chosen",template:'<select *ngIf="isMobile"\r\n [required]="required"\r\n [(ngModel)]="ngModel"\r\n uiInput\r\n #nativeSelect\r\n [disabled]="disabled"\r\n (ngModelChange)="changeNativeSelect()">\r\n <option *ngFor="let option of onlyOptions; trackBy: trackByValue"\r\n [label]="option.label"\r\n [ngValue]="option.value"\r\n [disabled]="option.disabled">{{option.label}}</option>\r\n <optgroup *ngFor="let group of optionsGroup; trackBy: trackByValue" [label]="group.label">\r\n <option *ngFor="let option of group.options"\r\n [label]="option.label"\r\n [ngValue]="option.value"\r\n [disabled]="option.disabled"></option>\r\n </optgroup>\r\n</select>\r\n<div class="value" *ngIf="!isMobile" [class.disabled]="disabled" (click)="onFocus()">\r\n <span class="placeholder"\r\n *ngIf="placeholder && !value && ((!persistPlaceholder && focused) || persistPlaceholder)">\r\n {{placeholder}}\r\n </span>\r\n <span *ngIf="value">{{value}}</span>\r\n</div>\r\n<ng-template #optionTemplate>\r\n <div class="wrap-chosen-overlay" (click)="close()"></div>\r\n <div class="wrap-chosen">\r\n <ui-card>\r\n <div class="search" *ngIf="search">\r\n <ui-input-container class="no-space">\r\n <input type="text" uiInput [(ngModel)]="searchText" (ngModelChange)="filterList()" #inputSearch>\r\n <button type="button"\r\n class="suffix ui-button flat icon"\r\n uiRipple\r\n (click)="clearFilter()"\r\n [disabled]="!searchText"\r\n uiTooltip="Limpar busca">\r\n <i class="material-icons">{{searchText ? \'close\' : \'search\'}}</i>\r\n </button>\r\n </ui-input-container>\r\n </div>\r\n <div class="content">\r\n <ng-content></ng-content>\r\n </div>\r\n </ui-card>\r\n </div>\r\n</ng-template>\r\n',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0}],styles:[":host.mobile.ui-control{padding:0;border-width:0}:host .value{text-overflow:ellipsis;overflow:hidden}:host .value.disabled{color:rgba(0,0,0,.54);cursor:not-allowed}:host .value span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wrap-chosen-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:7}.wrap-chosen{position:absolute;transition:transform 280ms,opacity 280ms;transform-origin:top left;transform:scale(0);opacity:0;z-index:7}.wrap-chosen.open{transition:transform 280ms cubic-bezier(0,0,.2,1),opacity 280ms cubic-bezier(0,0,.2,1);transform:scale(1);opacity:1}.wrap-chosen ui-card{box-shadow:0 2px 4px 0 rgba(0,0,0,.14),0 4px 5px 0 rgba(0,0,0,.12),0 1px 10px 0 rgba(0,0,0,.2);overflow:hidden}.wrap-chosen ui-card .search{padding:8px 16px}.wrap-chosen ui-card .search input{width:100%}.wrap-chosen ui-card .content{max-height:235px;overflow-y:auto}body.ui-nav-drawer-persistent .wrap-chosen{z-index:6}"]}),f("design:paramtypes",[t.ElementRef,t.ViewContainerRef,t.ChangeDetectorRef])],e)}(),Pt=function(){function e(){}return e.prototype.transform=function(e,t){return e?((e=e.toString().replace(/[^0-9]+/g,"")).length>4&&(e=e.substring(0,4)+" "+e.substring(4)),e.length>9&&(e=e.substring(0,9)+" "+e.substring(9)),e.length>14&&(e=e.substring(0,14)+" "+e.substring(14)),e.length>19&&(e=e.substring(0,19)),e):""},e=h([t.Pipe({name:"uiCreditCard"})],e)}(),Vt=function(){function e(e,n,i){this.elementRef=e,this.creditCardPipe=n,this.changeDetector=i,this.symbolsPositions=[4,9,14],this.ngModelChange=new t.EventEmitter}var i;return i=e,e.prototype.ngOnChanges=function(e){e.ngModel.firstChange||null!==e.ngModel.currentValue&&void 0!==e.ngModel.currentValue||(this.elementRef.nativeElement.value="")},e.prototype.ngAfterViewInit=function(){this.loaded=!0,this.changeDetector.detectChanges()},e.prototype.writeValue=function(e){this.control&&this.loaded&&e&&this.control.markAsDirty(),this.elementRef.nativeElement.value=this.creditCardPipe.transform(this.ngModel)},e.prototype.renderViaInput=function(e){e&&this.control.markAsDirty(),this.ngModel=this.format(e),this.ngModelChange.emit(this.ngModel),this.elementRef.nativeElement.value=this.creditCardPipe.transform(this.elementRef.nativeElement.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.format=function(e){return(e=e.toString().replace(/[^0-9]+/g,"")).substring(0,16)},e.prototype.validate=function(e){return this.control=e,e.value&&this.format(e.value).length<16?{parse:!0}:null},e.prototype.setDisabledState=function(e){var t=e?"setAttribute":"removeAttribute";this.elementRef.nativeElement[t]("disabled","disabled")},e.prototype.onKeydown=function(){this.beforeSelIndex=v.caretPosition.get(this.elementRef.nativeElement)},e.prototype.onInput=function(e){var t=v.caretPosition.get(this.elementRef.nativeElement),n=this.elementRef.nativeElement.value;this.renderViaInput(n),v.caretPosition.set(this.elementRef.nativeElement,this.beforeSelIndex,t,this.symbolsPositions)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Pt},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Object)],e.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],e.prototype,"UiMaskCreditCard",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.HostListener("keydown"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onKeydown",null),h([t.HostListener("input",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],e.prototype,"onInput",null),e=i=h([t.Directive({selector:"[uiMaskCreditCard][ngModel]",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},{provide:n.NG_VALIDATORS,useExisting:t.forwardRef((function(){return i})),multi:!0},Pt]}),f("design:paramtypes",[t.ElementRef,Pt,t.ChangeDetectorRef])],e)}(),zt=function(){function e(){this.color="primary",this.openChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.toggle=function(){this.disabled||(this.open=!this.open,this.openChange.emit(this.open))},h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"noArrow",void 0),h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.Input(),f("design:type",String)],e.prototype,"description",void 0),h([t.Input(),f("design:type",String)],e.prototype,"color",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"open",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"openChange",void 0),e=h([t.Component({selector:"ui-expansion-panel",template:'<div class="ui-expansion-panel-wrap">\r\n\r\n <div class="ui-expansion-panel-header" \r\n (click)="toggle()" \r\n [ngStyle]="{\'opacity\': disabled ? \'.5\' : \'1\'}" \r\n uiRipple \r\n [ripple-disable]="disabled">\r\n <span class="ui-expansion-panel-title">\r\n <ui-subheader [class]="color">\r\n {{ label }}\r\n </ui-subheader>\r\n </span>\r\n <span class="ui-expansion-panel-description label secondary-text">\r\n {{ description }}\r\n </span>\r\n <span>\r\n <i [class]="\'material-icons ui-expansion-panel-arrow \' + color" \r\n [ngClass]="{\'ui-expansion-panel-collapsed\': !open}"\r\n [ngStyle]="{\r\n \'display\' : disabled || noArrow ? \'none\' : \'block\' \r\n }">\r\n keyboard_arrow_up\r\n </i>\r\n </span>\r\n </div>\r\n\r\n <div class="ui-expansion-panel-body" [@expandAnimation] *ngIf="open">\r\n <ng-content selector="ui-expansion-panel-content" >\r\n </ng-content>\r\n </div>\r\n\r\n</div>',animations:[p.trigger("expandAnimation",[p.transition(":enter",[p.style({height:"0"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"*"}))]),p.transition(":leave",[p.style({height:"*"}),p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"0"}))])])],styles:[".ui-expansion-panel-header{display:flex;flex-direction:row;justify-content:space-between;padding:4px 16px;cursor:default}.ui-expansion-panel-header span{margin:auto 0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui-expansion-panel-header span i{transition:transform .3s cubic-bezier(.4,0,1,1)}.ui-expansion-panel-body{transition:height .3s cubic-bezier(.4,0,1,1);overflow-y:hidden}.ui-expansion-panel-description{font-size:14px;font-weight:500}.ui-expansion-panel-collapsed{transform:rotateZ(180deg)}@media screen and (max-width:480px){.ui-expansion-panel-description{display:none}}"]}),f("design:paramtypes",[])],e)}(),jt=function(){function e(){}return h([t.ContentChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"template",void 0),e=h([t.Directive({selector:"[uiTabContent]"}),f("design:paramtypes",[])],e)}(),Ft=function(){function e(){}return h([t.ContentChild(t.TemplateRef),f("design:type",t.TemplateRef)],e.prototype,"template",void 0),e=h([t.Directive({selector:"[uiTabLabel]"}),f("design:paramtypes",[])],e)}(),Nt=function(){function e(e,n){this.viewContainer=e,this.changeDetectorRef=n,this.tabChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){var e=this;this.subscription=this.tabChange.subscribe((function(t){t&&(e.loaded=!0),e.isActive=t,e.changeDetectorRef.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ChangeDetectorRef}]},h([t.ViewChild("tabContent",{static:!0}),f("design:type",t.TemplateRef)],e.prototype,"tabContent",void 0),h([t.ContentChild(jt),f("design:type",jt)],e.prototype,"templateContent",void 0),h([t.ContentChild(Ft),f("design:type",Ft)],e.prototype,"templateLabel",void 0),h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.Input(),f("design:type",String)],e.prototype,"icon",void 0),h([t.Input(),f("design:type",String)],e.prototype,"disabled",void 0),e=h([t.Component({selector:"ui-tab",template:'<ng-template #tabContent>\r\n <ng-content></ng-content>\r\n <div *ngIf="templateContent && templateContent.template && loaded">\r\n <ng-container *ngTemplateOutlet="templateContent.template"></ng-container>\r\n </div>\r\n</ng-template>\r\n',styles:[""]}),f("design:paramtypes",[t.ViewContainerRef,t.ChangeDetectorRef])],e)}(),Ht=function(){function e(e,t){this.element=e,this.changeDetectorRef=t,this.increment=90}return e.prototype.ngOnInit=function(){this.tabsContainer=this.element.nativeElement.querySelector(".tabs-container"),this.inkBar=this.element.nativeElement.querySelector(".ink-bar")},e.prototype.ngAfterViewInit=function(){var e=this;this.inkBar.addEventListener("transitionend",(function(){e.showInkBar=!1}))},e.prototype.ngAfterViewChecked=function(){this.hasRightScroll=this.checkRightScroll(),this.hasLeftScroll=this.checkLeftScroll(),this.changeDetectorRef.detectChanges()},e.prototype.moveInkBarTo=function(e){var t=this;this.showInkBar=!0,this.changeDetectorRef.detectChanges(),setTimeout((function(){v.css(t.inkBar,"left",e.offsetLeft+"px"),v.css(t.inkBar,"width",e.clientWidth+"px")}))},e.prototype.checkLeftScroll=function(){return this.tabsContainer.scrollLeft>0},e.prototype.checkRightScroll=function(){return this.tabsContainer.scrollLeft+this.tabsContainer.clientWidth<this.tabsContainer.scrollWidth},e.prototype.updateScroll=function(e){var t=this,n=this.tabsContainer.scrollLeft;v.animate(this.tabsContainer,"borderSpacing",n,n+e,280,null,(function(e){t.tabsContainer.scrollLeft=e}))},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},h([t.Input(),f("design:type",Boolean)],e.prototype,"topIcon",void 0),e=h([t.Component({selector:"ui-tab-header",template:'<div class="navigation left" *ngIf="hasLeftScroll">\r\n <button type="button" class="ui-button icon flat" (click)="updateScroll(-increment)">\r\n <i class="material-icons">chevron_left</i>\r\n </button>\r\n</div>\r\n<div class="tabs-container">\r\n <div class="tabs" [class.top-icon]="topIcon">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class="ink-bar" [hidden]="!showInkBar"></div>\r\n</div>\r\n<div class="navigation right" *ngIf="hasRightScroll">\r\n <button type="button" class="ui-button icon flat" (click)="updateScroll(increment)">\r\n <i class="material-icons">chevron_right</i>\r\n </button>\r\n</div>\r\n',styles:[":host{display:flex;align-items:center;position:relative}@media only screen and (min-width:376px) and (min-width:764px){::ng-deep ui-tab-group.scrollable>ui-tab-header>.tabs-container,:host.scrollable>.tabs-container{padding-left:52px}}::ng-deep ui-tab-group.fixed>ui-tab-header .tab-wrap,::ng-deep ui-tab-group.fixed>ui-tab-header ::ng-deep>.tab-wrap,:host.fixed .tab-wrap,:host.fixed ::ng-deep>.tab-wrap{flex:1}.tabs-container{flex:1;position:relative;overflow:hidden}.tabs{display:flex;height:48px;align-items:center}.tabs.top-icon{height:72px}.tabs.top-icon .tab-wrap,.tabs.top-icon ::ng-deep .tab-wrap{height:72px}.tabs.top-icon .tab-wrap .tab,.tabs.top-icon ::ng-deep .tab-wrap .tab{flex-direction:column;height:72px}.tabs.top-icon .tab-wrap .tab>.icon,.tabs.top-icon ::ng-deep .tab-wrap .tab>.icon{padding-right:0;padding-bottom:4px}.tab-wrap .tab,::ng-deep .tab-wrap .tab{padding:0 16px;min-width:90px;max-width:360px;height:48px;font-size:14px;font-weight:500;text-align:center;text-decoration:none;text-transform:uppercase;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;cursor:default;transition:color 280ms cubic-bezier(0,0,.2,1),border-color cubic-bezier(0,0,.2,1)}.tab-wrap .tab:hover,::ng-deep .tab-wrap .tab:hover{text-decoration:none}.tab-wrap .tab>.icon,::ng-deep .tab-wrap .tab>.icon{padding-right:4px}.tab-wrap.active .tab,::ng-deep .tab-wrap.active .tab{transition:color 280ms cubic-bezier(0,0,.2,1),border-color cubic-bezier(0,0,.2,1) 280ms}.ink-bar{left:0;width:0;height:2px;position:absolute;bottom:0;transition:width 280ms cubic-bezier(0,0,.2,1),left 280ms cubic-bezier(0,0,.2,1)}.navigation{margin:0 8px;position:absolute;z-index:1}.navigation.left{left:0}.navigation.right{right:0}"]}),f("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Bt=p.trigger("tabFakeAnimation",[p.transition(":enter",p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)")),p.transition(":leave",p.animate("280ms cubic-bezier(0.0, 0.0, 0.2, 1)"))]),qt=p.trigger("tabTransform",[p.state("left",p.style({transform:"translateX(-100%)",position:"absolute"})),p.state("right",p.style({transform:"translateX(100%)",position:"absolute"})),p.state("active",p.style({transform:"translateX(0)",position:"relative"})),p.transition("left <=> right",p.animate(280)),p.transition("active <=> right",p.animate(280)),p.transition("left <=> active",p.animate(280))]),Wt=function(){function e(e,t){this.changeDetectorRef=e,this.element=t}return e.prototype.ngAfterViewInit=function(){var e=this;this.tabs=this.tabsQueryList.toArray(),this.changeDetectorRef.detectChanges(),this.generateIndexes();var t=this.getFirstTab(this.active);this.activateTab(t,this.getTabRef(t)),this.animation=!0,this.changeDetectorRef.detectChanges(),this.tabsQueryList.changes.subscribe((function(t){if(e.tabs=t.toArray(),e.generateIndexes(),!e.tabs.includes(e.activatedTab)){var n=e.tabs[e.activatedTab.index]||e.tabs[e.tabs.length-1];e.activateTab(n,e.getTabRef(n))}}))},e.prototype.generateIndexes=function(){this.tabs.map((function(e,t){return e.index=t}))},e.prototype.getFirstTab=function(e){if("number"==typeof e&&!this.tabs[e].disabled)return this.tabs[e];for(var t=0;t<this.tabs.length;t++){var n=this.tabs[t];if(!n.disabled)return n}},e.prototype.getTabRef=function(e){var t=this.element.nativeElement.querySelectorAll(".tab");return t?t[e.index]:null},e.prototype.activateTab=function(e,t){e.disabled||e===this.activatedTab||(this.activatedTab&&this.activatedTab.tabChange.emit(!1),this.tabsContentElement.nativeElement.style.height=this.tabsContentElement.nativeElement.clientHeight+"px",e.tabChange.emit(!0),this.changeDetectorRef.detectChanges(),this.activatedTab=e,this.tabHeader.moveInkBarTo(t),this.updateActivatedTab())},e.prototype.updateActivatedTab=function(){var e=this;this.tabs.map((function(t){return t.indexActivatedTab=e.activatedTab.index}))},e.prototype.startTranslateAnimation=function(e){"active"===e.toState&&(this.tabsContentElement.nativeElement.style.height=e.element.scrollHeight+"px")},e.prototype.doneTranslateAnimation=function(e){this.tabsContentElement.nativeElement.style.height=""},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},h([t.ContentChildren(Nt),f("design:type",t.QueryList)],e.prototype,"tabsQueryList",void 0),h([t.ViewChild(Ht,{static:!0}),f("design:type",Ht)],e.prototype,"tabHeader",void 0),h([t.ViewChild("tabsContentElement",{static:!0}),f("design:type",t.ElementRef)],e.prototype,"tabsContentElement",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"active",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"fillBackground",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"themeInkBar",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"accent",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"topIcon",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"lazyLoad",void 0),e=h([t.Component({selector:"ui-tab-group",template:'<ui-tab-header [ngClass]="{\r\n \'fill-background\': fillBackground,\r\n \'accent\': accent,\r\n \'theme-ink-bar\': themeInkBar}"\r\n [topIcon]="topIcon">\r\n <div class="tab-wrap"\r\n *ngFor="let tab of tabs"\r\n [ngClass]="{\'active\': tab.isActive, \'disabled\': tab.disabled}"\r\n (click)="activateTab(tab, tabRef)"\r\n #tabRef>\r\n <div *ngIf="!tab.templateLabel" class="tab" uiRipple="!tab.disabled">\r\n <i class="material-icons icon" *ngIf="tab.icon">{{tab.icon}}</i>\r\n {{tab.label}}\r\n </div>\r\n <div *ngIf="tab.templateLabel">\r\n <ng-container *ngTemplateOutlet="tab.templateLabel.template"></ng-container>\r\n </div>\r\n </div>\r\n</ui-tab-header>\r\n<div class="wrap-content" #tabsContentElement>\r\n <div *ngFor="let tab of tabs"\r\n [@tabTransform]="animation ? (tab.index < activatedTab?.index ? \'left\' : tab.index > activatedTab?.index ? \'right\' : \'active\') : \'\'"\r\n class="tab-content"\r\n (@tabTransform.start)="startTranslateAnimation($event)"\r\n (@tabTransform.done)="doneTranslateAnimation($event)">\r\n <div *ngIf="tab.isActive || !lazyLoad" [@tabFakeAnimation]>\r\n <ng-container [ngTemplateOutlet]="tab.tabContent"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n',animations:[Bt,qt],styles:[":host{overflow:hidden;position:relative;display:block}:host .wrap-content{position:relative;transition:280ms cubic-bezier(0,0,.2,1)}:host .tab-content{left:0;right:0;top:0}"]}),f("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),_t=function(){function e(){}return h([t.Input(),f("design:type",String)],e.prototype,"label",void 0),h([t.Input(),f("design:type",String)],e.prototype,"content",void 0),e=h([t.Component({selector:"ui-label-content",template:'<div class="label secondary-text">{{label}}</div>\r\n<div class="content primary-text">{{content}}</div>\r\n',styles:[":host{display:block}.label{font-size:12px}.content{font-size:14px}"]})],e)}(),Yt=function(){function e(){}return e.prototype.readFile=function(e,t){if(this.multiple||(this.max=1),!this.max||this.ngModel.length!==this.max)if(this.maxLength&&e.name.length>this.maxLength)me.show({text:'Arquivo "'+e.name+'" não pode ultrapassar '+this.maxLength+" caracteres."});else{var n={},i=!1;n[this.modelConfig.name]=e.name,n[this.modelConfig.base64]=t,this.ngModel.forEach((function(e){if(n.name===e.name)return i=!0,void me.show({text:'Já existe o arquivo "'+e.name+'".',duration:4e3})})),i||(this.ngModel.push(n),this.ngModelChange.emit(this.ngModel))}},e.prototype.errorFile=function(e,t){if(t.type){var n=this.accept.toUpperCase().split(",");me.hide(),me.show({text:"Você pode selecionar apenas arquivo"+(1==n.length?" do tipo "+n[0]:"s dos tipos "+n.join(", "))+"."})}t.maxFileSize&&(me.hide(),me.show({text:"Use arquivos menores que "+this.maxFileSize+"."}))},e.prototype.removeFile=function(e,t){this.ngModel.splice(t,1),this.ngModelChange.emit(this.ngModel),this.remove.emit({file:e,index:t})},e.prototype.filesChange=function(e){this.max&&this.ngModel.length+e.length>this.max&&(me.hide(),me.show({text:"Você pode selecionar apenas "+this.max+" arquivo"+(this.max>1?"s":"")+"."}))},e.prototype.getFileName=function(e){return e[this.modelConfig.name]},h([t.Input(),f("design:type",String)],e.prototype,"accept",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"multiple",void 0),h([t.Input(),f("design:type",Boolean)],e.prototype,"disabled",void 0),h([t.Input(),f("design:type",Number)],e.prototype,"max",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],e.prototype,"remove",void 0),e=h([t.Directive()],e)}(),Ut=p.trigger("enterLeaveViewAnimation",[p.transition(":enter",[p.style({height:"0",transform:"scale(0.8) translateY(-16px)",opacity:0}),p.animate("550ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"*",transform:"scale(1) translateY(0)",opacity:1}))]),p.transition(":leave",[p.style({height:"*",transform:"scale(1) translateY(0)",opacity:1}),p.animate("550ms cubic-bezier(0.0, 0.0, 0.2, 1)",p.style({height:"0",transform:"scale(0.8) translateY(-16px)",opacity:0}))])]),Xt=function(e){function i(){var n=e.call(this)||this;return n.ngModelChange=new t.EventEmitter,n.remove=new t.EventEmitter,n.readFile=n.readFile.bind(n),n.errorFile=n.errorFile.bind(n),n}var o;return function(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(i,e),o=i,i.prototype.ngOnInit=function(){this.modelConfig=d({name:"name",base64:"base64"},this.modelConfig)},i.prototype.ngOnChanges=function(e){e.ngModel&&(this.ngModel=e.ngModel.currentValue&&Array.isArray(e.ngModel.currentValue)?e.ngModel.currentValue:[]),e.modelConfig&&(this.modelConfig=d({name:"name",base64:"base64"},e.modelConfig.currentValue))},i.prototype.writeValue=function(e){},i.prototype.renderViaInput=function(e){},i.prototype.registerOnChange=function(e){},i.prototype.registerOnTouched=function(e){},i.prototype.onDragEnter=function(e){e.stopPropagation(),e.preventDefault(),this.isDragging=!0},i.prototype.onDragOver=function(e){e.stopPropagation(),e.preventDefault(),this.isDragging=!0,e.dataTransfer.dropEffect="copy"},i.prototype.onDragLeave=function(e){e.stopPropagation(),e.preventDefault(),this.isDragging=!1},i.prototype.onDrop=function(e){if(this.disabled)e.preventDefault();else{e.preventDefault(),e.stopPropagation(),this.isDragging=!1;var t=e.dataTransfer.files;this.inputFileRef.readFiles(t)}},h([t.ViewChild("inputFileRef"),f("design:type",Object)],i.prototype,"inputFileRef",void 0),h([t.Input(),f("design:type",Object)],i.prototype,"ngModel",void 0),h([t.Input(),f("design:type",Object)],i.prototype,"modelConfig",void 0),h([t.Input(),f("design:type",String)],i.prototype,"message",void 0),h([t.Input(),f("design:type",Number)],i.prototype,"max",void 0),h([t.Input(),f("design:type",Number)],i.prototype,"maxLength",void 0),h([t.Input(),f("design:type",String)],i.prototype,"maxSize",void 0),h([t.Input(),f("design:type",String)],i.prototype,"maxFileSize",void 0),h([t.Input(),f("design:type",Boolean)],i.prototype,"multiple",void 0),h([t.Input(),f("design:type",Boolean)],i.prototype,"disabled",void 0),h([t.Output(),f("design:type",t.EventEmitter)],i.prototype,"ngModelChange",void 0),h([t.Output(),f("design:type",t.EventEmitter)],i.prototype,"remove",void 0),h([t.HostListener("dragenter",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDragEnter",null),h([t.HostListener("dragover",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDragOver",null),h([t.HostListener("dragleave",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDragLeave",null),h([t.HostListener("drop",["$event"]),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],i.prototype,"onDrop",null),i=o=h([t.Component({selector:"ui-upload",template:'<fieldset [disabled]="disabled">\r\n <input type="file"\r\n name="input"\r\n uiInputFile\r\n [(ngModel)]="model"\r\n [read]="readFile"\r\n [error]="errorFile"\r\n #inputFile\r\n [multiple]="multiple"\r\n #inputFileRef="uiInputFile"\r\n #fieldNovaImagem="ngModel"\r\n (filesChange)="filesChange($event)"\r\n [accept]="accept"\r\n [max-size]="maxSize"\r\n [max]="max"\r\n [max-file-size]="maxFileSize"\r\n class="ui-input-file-hidden"/>\r\n <div class="border" [class.dragging]="isDragging" [ngClass]="disabled ? \'fade\' : \'\'">\r\n <div [@enterLeaveViewAnimation]="ngModel.length === 1" *ngIf="ngModel && ngModel.length">\r\n <div [@enterLeaveViewAnimation] *ngFor="let file of ngModel; let i = index">\r\n <header>\r\n <div class="file-name">\r\n {{getFileName(ngModel[i])}}\r\n </div>\r\n <button class="ui-button icon error flat" type="button" (click)="removeFile(ngModel[i], i)"\r\n uiRipple>\r\n <i class="material-icons">delete</i>\r\n </button>\r\n </header>\r\n <div class="ui-divider" *ngIf="multiple"></div>\r\n </div>\r\n </div>\r\n <section uiRipple (click)="inputFile.click()" [ripple-disable]="disabled">\r\n <i class="material-icons theme">cloud_upload</i>\r\n <div class="message text-area">\r\n Arraste e solte seu arquivo aqui <br> ou <span class=theme>encontre na sua galeria</span>\r\n </div>\r\n </section>\r\n </div>\r\n</fieldset>\r\n',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}],animations:[Ut],styles:[":host.space{margin:8px 0;display:block}fieldset:disabled{cursor:not-allowed}fieldset:disabled i{color:#afafaf}fieldset:disabled .fade{color:#afafaf;border-color:#afafaf}fieldset:disabled .fade span{color:#afafaf}.border{border-radius:4px;position:relative;transition:border 280ms cubic-bezier(0,0,.2,1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.border .file-name,.border .message{font-weight:500}.border .file-name{font-size:16px;word-break:break-all;cursor:pointer}.border .message{text-align:center;font-size:14px}.border header{display:flex;align-items:center;padding:8px 8px 8px 16px;justify-content:space-between}.border header button{cursor:pointer}.border .ui-divider{margin:0}.border section{display:flex;justify-content:center;padding:32px;align-items:center}.border section i{font-size:55px}.border section .text-area{color:#afafaf;padding:8px}"]}),f("design:paramtypes",[])],i)}(Yt),$t=[P,H,N,B,W,Y,U,$,G,K,Z,J,Q,ee,te,ne,ie,re,se,ue,fe,fe,ge,ye,ve,Q,ee,ie,Re,Ie,Me,Te,Oe,Ae,Le,Ve,Pe,je,ze,Ne,Fe,Be,He,qe,_e,Ye,He,Ue,Xe,Ge,Ze,Ke,Je,Qe,et,tt,nt,tt,it,ot,rt,st,at,ut,dt,ht,dt,mt,gt,yt,vt,bt,xt,wt,Ct,kt,Rt,It,Mt,Dt,Ot,At,Tt,Lt,Pt,Vt,zt,St,Nt,Wt,jt,Ft,Ht,_t,Xt],Gt=function(){function e(){}return e=h([t.NgModule({imports:[i.CommonModule,n.FormsModule,o.RouterModule],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],declarations:y($t),exports:y($t),providers:[z,V,v,_,me,Ce,$e,ft,Et],entryComponents:[H,N,Ke,ut,mt]})],e)}();e.SMNUIModule=Gt,e.UiCepNovoPipe=Fe,e.UiCepPipe=ze,e.UiCnpjNovoPipe=Pe,e.UiCnpjPipe=Le,e.UiColor=z,e.UiCookie=q,e.UiCpfPipe=Oe,e.UiCreditCardPipe=Pt,e.UiCurrencyPipe=wt,e.UiDatetimeService=V,e.UiDialog=Et,e.UiElement=v,e.UiElementRef=X,e.UiFilterPipe=It,e.UiFloatPipe=St,e.UiInfiniteLoadService=$e,e.UiMaskCreditCard=Vt,e.UiMaskPhoneDirective=Be,e.UiPhonePipe=He,e.UiSnackbar=me,e.UiTimePipe=vt,e.UiToolbarService=xe,e.UiWindowRef=Ce,e.debounce=M,e.unaccent=A,e.ɵa=j,e.ɵb=F,e.ɵba=ye,e.ɵbb=ve,e.ɵbc=Re,e.ɵbd=Ie,e.ɵbe=Me,e.ɵbf=Te,e.ɵbg=Ae,e.ɵbh=Ve,e.ɵbi=je,e.ɵbj=Ne,e.ɵbk=qe,e.ɵbl=_e,e.ɵbm=Ye,e.ɵbn=Ue,e.ɵbo=Xe,e.ɵbp=Ge,e.ɵbq=Ze,e.ɵbr=Ke,e.ɵbs=Je,e.ɵbt=Qe,e.ɵbu=et,e.ɵbv=tt,e.ɵbw=nt,e.ɵbx=it,e.ɵby=ot,e.ɵbz=rt,e.ɵc=Ee,e.ɵca=st,e.ɵcb=at,e.ɵcc=ut,e.ɵcd=dt,e.ɵce=ht,e.ɵcf=mt,e.ɵcg=gt,e.ɵch=ft,e.ɵci=yt,e.ɵcj=bt,e.ɵck=xt,e.ɵcl=Ct,e.ɵcm=kt,e.ɵcn=Rt,e.ɵco=Mt,e.ɵcp=Dt,e.ɵcq=Ot,e.ɵcr=At,e.ɵcs=Tt,e.ɵct=Lt,e.ɵcu=zt,e.ɵcv=Nt,e.ɵcw=jt,e.ɵcx=Ft,e.ɵcy=Wt,e.ɵcz=Bt,e.ɵd=P,e.ɵda=qt,e.ɵdb=Ht,e.ɵdc=_t,e.ɵdd=Xt,e.ɵde=Yt,e.ɵdf=Ut,e.ɵe=H,e.ɵf=N,e.ɵg=B,e.ɵh=W,e.ɵi=Y,e.ɵj=_,e.ɵk=U,e.ɵl=$,e.ɵm=G,e.ɵn=K,e.ɵo=Z,e.ɵp=J,e.ɵq=Q,e.ɵr=ee,e.ɵs=te,e.ɵt=ne,e.ɵu=ie,e.ɵv=re,e.ɵw=se,e.ɵx=ue,e.ɵy=fe,e.ɵz=ge,Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=ng-smn-ui.umd.min.js.map