{"version":3,"names":["TrHelper","values","addTd","addTr","ar","i","length","push","h","TrStrategy","TrHelperStrategy","strategy","VALUE_AND_TD","VALUE_AND_TR","timePickerCss","TimePickerStyle0","TimePicker","VALUE_ONLY","render","getComponentsValues","this","label","startValue","onChange","tr","Host","value","required","style","color","type","event","LocalTime","target"],"sources":["src/components/generic/functional-components/tr-helper.tsx","src/components/generic/time-picker/time-picker.css?tag=time-picker&encapsulation=shadow","src/components/generic/time-picker/time-picker.tsx"],"sourcesContent":["import {FunctionalComponent, h} from \"@stencil/core\";\n\nexport interface TrHelperProps {\n values: any[]\n addTd: boolean\n addTr: boolean\n}\n\nexport const TrHelper: FunctionalComponent = ({ values, addTd = true, addTr = true}) => {\n var ar = []\n\n for (let i = 0; i < values.length; i++) {\n if (addTd)\n ar.push({values[i]})\n else\n ar.push(values[i])\n }\n if (addTr) {\n return {ar}\n }\n return ar;\n};\n\nexport enum TrStrategy {\n VALUE_ONLY,\n VALUE_AND_TD,\n VALUE_AND_TR\n}\n\nexport interface TrHelperStrategyProps {\n values: any[]\n strategy: TrStrategy\n}\nexport const TrHelperStrategy: FunctionalComponent = ({ values, strategy}) => {\n return \n};\n",":host {\n display: block;\n}\n","import {Component, h, Host, Prop} from '@stencil/core';\nimport {LocalTime} from \"../../../utils/timeUtils\";\nimport {TrHelperStrategy, TrStrategy} from \"../functional-components/tr-helper\";\n\n@Component({\n tag: 'time-picker',\n styleUrl: 'time-picker.css',\n shadow: true,\n})\nexport class TimePicker {\n @Prop()\n onChange: (time:LocalTime) => void;\n @Prop()\n label: string\n @Prop()\n startValue: string\n @Prop()\n tr: TrStrategy = TrStrategy.VALUE_ONLY\n\n render() {\n let values = TimePicker.getComponentsValues(this.label, this.startValue, false, this.onChange);\n\n if (this.tr == TrStrategy.VALUE_ONLY)\n return (\n \n \n \n );\n\n return \n }\n\n public static getComponentsValues(label: string, value: string, required: boolean, onChange: (time: LocalTime) => void) {\n return [label ? : \"\", {\n if (onChange) onChange(new LocalTime(event.target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