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KAAK2C,EACtB,CAEAP,WACE3D,KAAKmE,KAAKC,YACZ,CAEA,cAAIC,SACF,OAAO,OAAAC,EAAAtE,KAAKuE,iBAAL,EAAAD,EAAiBE,QAAS,CACnC,WAzBWZ,yCAAe,0BAAfA,EAAelC,UAAA,gBAAA+C,UAAA,SAAAxC,EAAAC,MAAA,EAAAD,SAWfyC,IAAmB,siBDnB5B9G,MADJ,QACIA,CADuE,SAEnEA,MAAA,GACJA,QASAA,MARA,EAAA+G,EAAA,YAQA/G,CARyD,EAAAgH,EAAA,qBAQzDhH,CAP6D,EAAAiH,EAAA,WAYjEjH,QAEAA,MAAA,EAAAkH,EAAA,gCAnBKlH,MAAA,iBAAAsE,EAAA4B,eAAA,gBAAA5B,EAAA6B,YAAA,KACuBnG,cAAA,UAAAA,MAAA,EAAAmH,EAAA7C,EAAAmC,aAGkBzG,MAAA,GAAAA,MAAA,OAAAsE,EAAAkB,SACXxF,cAAA,UAAAsE,EAAAqC,YAO3B3G,cAAA,OAAAsE,EAAA8B,gBAOUpG,cAAA,OAAAsE,EAAA8B,0DCVLJ,CAAe","names":["i0","ctx_r0","iconClass","spanClasess","label","AsterialInputComponent_ng_container_3_i_2_Template","AsterialInputComponent_ng_container_3_i_3_Template","AsterialInputComponent_ng_container_3_i_4_Template","AsterialInputComponent_ng_container_3_ng_container_5_Template","alertState","option_r3","valueField","labelField","$event","_r2","inputValue","onInput","AsterialInputComponent_select_5_option_3_Template","isDisabled","undefined","selectValues","_r4","focusIn","focusOut","minimalist","_r5","picker_r6","open","minDate","_r7","type","alertMessage","AsterialInputComponent","_AsterialInputComponent","constructor","control","this","onAsterialChange","EventEmitter","inputClasses","onChange","_","onTouch","valueAccessor","i","j","hours","Date","push","ngOnInit","writeValue","obj","registerOnChange","fn","registerOnTouched","setDisabledState","disabled","errors","required","emit","ev","i1","selectors","inputs","outputs","decls","vars","consts","template","rf","ctx","AsterialInputComponent_i_1_Template","AsterialInputComponent_span_2_Template","AsterialInputComponent_ng_container_3_Template","AsterialInputComponent_select_5_Template","AsterialInputComponent_textarea_6_Template","AsterialInputComponent_ng_container_7_Template","AsterialInputComponent_input_8_Template","AsterialInputComponent_div_9_Template","HeaderPosition","fixed","static","absolute","HeaderStyle","app","left","center","right","logoURL","icon_r3","$implicit","onIconClick","HeaderComponent_ng_container_4_a_1_Template","i_r5","_r6","showMenu","HeaderComponent","_HeaderComponent","headerPosition","headerStyle","showToggleMenu","iconClick","icon","menu","toggleMenu","lengthList","_a","iconsClass","length","viewQuery","MenuToggleComponent","HeaderComponent_img_3_Template","HeaderComponent_ng_container_4_Template","HeaderComponent_a_5_Template","HeaderComponent_app_menu_toggle_6_Template","_c1"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/app/modules/shared/components/asterial-input/asterial-input.component.html","./src/app/modules/shared/components/asterial-input/asterial-input.component.ts","./src/app/modules/shared/enums/header.enum.ts","./src/app/modules/shared/components/header/header.component.html","./src/app/modules/shared/components/header/header.component.ts"],"sourcesContent":["
\n \n {{label}}\n 0\">\n \n \n \n \n ({{'keyWords.required'|translate}})\n \n \n \n\n \n\n \n \n \n \n \n \n\n \n
\n {{alertMessage}}
\n
\n","import { Component, OnInit, Input, Optional, Output, EventEmitter } from '@angular/core';\nimport { ControlValueAccessor, NgControl } from '@angular/forms'\n\n@Component({\n selector: 'asterial-input',\n templateUrl: './asterial-input.component.html',\n styleUrls: ['./asterial-input.component.scss'],\n})\nexport class AsterialInputComponent implements OnInit, ControlValueAccessor {\n\n @Input() type: string;\n @Input() iconClass: string;\n @Input() label: string;\n @Input() minimalist: boolean = false;\n @Input() selectValues: Array;\n @Input() valueField: string = 'value';\n @Input() labelField: string = 'label';\n @Input() alertMessage: string;\n @Input() minDate: Date;\n\n @Output() onAsterialChange = new EventEmitter();\n\n inputClasses = {};\n spanClasess = { 'input-style-1-active': false };\n inputValue: any;\n isDisabled: boolean;\n hours: Array\n\n constructor(@Optional() private control: NgControl) {\n this.control && (this.control.valueAccessor = this);\n this.inputClasses = {\n 'input-style': true,\n }\n\n if (this.type == 'time') {\n this.hours = []\n let i, j;\n for (i = 10; i < 22; i++) {\n for (j = 0; j < 60; j += 30) {\n new Date(20, 2,)\n this.hours.push((i < 13 ? i : i - 12) + \":\" + (j === 0 ? \"00\" : j) + ' ' + (i < 12 ? 'A.M.' : 'P.M.'));\n }\n }\n }\n }\n \n ngOnInit(): void {\n this.inputClasses['input-style-2']= !this.minimalist;\n this.inputClasses['input-style-1']= this.minimalist;\n this.inputClasses['has-icon']= Boolean(this.iconClass);\n }\n\n //#region controlValueAccessor\n writeValue(obj: any): void {\n this.inputValue = obj;\n if (Boolean(this.inputValue)) {\n this.spanClasess['input-style-1-active'] = true;\n }\n }\n\n onChange = (_: any) => { }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n onTouch = () => { }\n\n registerOnTouched(fn: any): void {\n this.onTouch = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.inputClasses['disabled']= isDisabled;\n this.isDisabled = isDisabled;\n }\n //#endregion\n\n get alertState(): number {\n if (this.type == 'select') return 4;\n if (!this.control) return 0;\n if (!this.control.errors) return 1;\n if (this.control.errors.required) return 3;\n return 2;\n }\n\n onInput() {\n this.onChange(this.inputValue);\n this.onAsterialChange.emit(this.inputValue);\n this.spanClasess['input-style-1-active'] = Boolean(this.inputValue);\n }\n\n focusIn(ev: any) {\n this.onTouch();\n this.spanClasess['input-style-1-active'] = this.minimalist ? Boolean(this.inputValue) : true;\n }\n\n focusOut(ev: any) {\n this.spanClasess['input-style-1-active'] = Boolean(this.inputValue);\n }\n}\n","export enum HeaderPosition {\n fixed = 'fixed',\n static = 'static',\n absolute = 'absolute'\n}\n\nexport enum HeaderStyle {\n app = 'app',\n left = 'left',\n center = 'center',\n right = 'right'\n}","
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n\n\n","import { Component, Input, EventEmitter, Output, ViewChild } from '@angular/core';\nimport { HeaderPosition, HeaderStyle } from '../../enums/header.enum';\nimport { MenuToggleComponent } from '../menu-toggle/menu-toggle.component';\n\n@Component({\n selector: 'headerApp',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.scss']\n})\nexport class HeaderComponent {\n\n @Input() headerPosition: HeaderPosition = HeaderPosition.absolute;\n @Input() headerStyle: HeaderStyle = HeaderStyle.app;\n @Input() logoURL: string;\n @Input() iconsClass: Array;\n @Input() changeThemeButton: number;\n @Input() showToggleMenu:boolean = true;\n\n @Output() iconClick = new EventEmitter();\n\n @ViewChild(MenuToggleComponent) menu: MenuToggleComponent;\n\n constructor() { }\n\n onIconClick(icon: string) {\n this.iconClick.emit(icon);\n }\n\n showMenu(){\n this.menu.toggleMenu();\n }\n\n get lengthList(){\n return this.iconsClass?.length > 0 ? true: false;\n }\n}\n"],"x_google_ignoreList":[]}