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AAA1B,KAAA,EAED,SAAAK,OAAA,EAAS;MAAA,IAAA8F,MAAA;MAEL7D,CAAC,CAAC,MAAM,CAAC,CAAC8D,EAAE,CAAC,mCAAmC,EAAE,GAAG,GAAC,IAAI,CAACxF,gBAAgB,EAAE,UAACyF,KAAK,EAAG;QAElF;QACAF,MAAI,CAACxC,eAAe,CAAC,WAAW,CAAC;MAErC,CAAC,CAAC;MAEFrB,CAAC,CAAC,MAAM,CAAC,CAAC8D,EAAE,CAAC,mCAAmC,EAAE,GAAG,GAAC,IAAI,CAACnF,cAAc,EAAE,UAACoF,KAAK,EAAG;QAEhF;QACAF,MAAI,CAACxC,eAAe,CAAC,SAAS,CAAC;MAEnC,CAAC,CAAC;IAEN;EAAC;EAAA,OAAAnE,kBAAA;AAAA;AAEJ","sources":["webpack://smetio/./developement/js/classes/smetioBusinessHour/v1.0.0/SmetioBusinessHour.js"],"sourcesContent":["//import {test_function} from \"./../functions/test_function.js\";\n\n\n\nimport { getId } from \"../../universal_methods/getId.js\";\nimport { setId } from \"../../universal_methods/setId.js\";\nimport { generateId } from \"../../universal_methods/generateId.js\";\nimport { isEmpty } from \"../../universal_methods/isEmpty.js\";\nimport { getAttributes } from \"../../universal_methods/getAttributes.js\";\nimport { toggleDisplay } from \"../../universal_methods/toggleDisplay.js\";\nimport { setTxt } from \"../../universal_methods/setTxt.js\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//import \"./styles/_main.scss\";\nimport { SmetioOnOffSwitch } from \"../../smetioOnOffSwitch/SmetioOnOffSwitch.js\";\nimport { isValidSmetioBusinessHour } from \"@schaniag/private\";\n\n\n\nexport class SmetioBusinessHour {\n\n constructor(inputObj) {\n\n\n this.getId = getId;\n this.setId = setId;\n this.generateId = generateId;\n this.isEmpty = isEmpty;\n this.getAttributes = getAttributes;\n this.toggleDisplay = toggleDisplay;\n this.setTxt = setTxt;\n\n this.onStartTimeChange = null;\n this.onEndTimeChange = null;\n\n this.setId();\n\n\n \n\n this.mainObj = inputObj; // SEE SmetioObjectToInput ON WHAT CAN BE CONTAINED IN THE inputObj OBJECT \n\n\n\n this.status = this.mainObj.attributes.value ? this.mainObj.attributes.value.status || \"open\" : \"open\";\n this.startTime = this.mainObj.attributes.value ? this.mainObj.attributes.value.startTime : \"00:00\";\n this.endTime = this.mainObj.attributes.value ? this.mainObj.attributes.value.endTime : \"00:00\";\n this.statusText = \"\";\n this.value = \"\";\n this.onChange = this.mainObj.events ? this.mainObj.events.onChange : null;\n\n\n\n this.mainClass = \"smetio-multi-input-div\" + this.id;\n this.mainAttributes = {\n \"data-smetio-is-visible\": this.isHidden ? false : true,\n class: [\n\n \"smetio-multi-input-div\",\n\n this.mainClass\n ],\n };\n\n this.inputsDivClass = \"smetio-multi-input-inputs-div-\" + this.id;\n this.inputsDivAttributes = {\n // disabled: this.status == \"closed\" ? true : false,\n class: [\n\n \"smetio-multi-input-inputs-div\",\n\n this.inputsDivClass\n ],\n };\n\n this.startsInputClass = \"smetio-multi-input-starts-input-\" + this.id;\n this.startsInputAttributes = {\n type: \"time\",\n value: this.startTime,\n disabled: this.status === \"closed\" ? true : false,\n title: \"txt418\",\n class: [\n \"smetio-multi-input-starts-input\",\n this.startsInputClass\n ],\n };\n\n this.endsInputClass = \"smetio-multi-input-ends-input-\" + this.id;\n this.endsInputAttributes = {\n type: \"time\",\n value: this.endTime,\n disabled: this.status === \"closed\" ? true : false,\n title: \"txt415\",\n class: [\n \"smetio-multi-input-ends-input\",\n this.endsInputClass\n ],\n };\n\n this.onOffHolderClass = \"smetio-multi-input-on-off-btn-holder-\" + this.id;\n this.onOffHolderAttributes = {\n class: [\n \"smetio-multi-input-on-off-btn-holder\",\n this.onOffHolderClass\n ],\n };\n\n this.onOffLabelClass = \"smetio-multi-input-on-off-label-\" + this.id;\n this.onOffLabelAttributes = {\n class: [\n \"smetio-multi-input-on-off-label\",\n this.onOffLabelClass\n ],\n };\n\n this.readOnlyModeDivClass = \"smetio-multi-input-read-only-mode-div-\" + this.id;\n this.readOnlyModeDivAttributes = {\n class: [\n \"smetio-multi-input-read-only-mode-div\",\n this.readOnlyModeDivClass\n ],\n };\n\n };\n\n setStatusText(){\n this.statusText = this.status === \"open\" ? this.changeOnOffLabel(\"txt416\") : this.statusText = this.changeOnOffLabel(\"txt417\"); \n };\n\n changeReadOnlyModeDiv(isClosed = false){\n\n let times = !isClosed ? `${this.getStartTime()} - ${this.getEndTime()}` : \"\";\n\n $(\".\"+this.readOnlyModeDivClass).html(`${this.statusText} ${times}`);\n };\n\n async valueHasChanged(whatChaged){\n\n if(whatChaged === \"startTime\" && this.onStartTimeChange) this.onStartTimeChange();\n\n if(whatChaged === \"endTime\" && this.onEndTimeChange) this.onEndTimeChange();\n\n this.changeReadOnlyModeDiv();\n\n this.value = this.getValue();\n this.mainObj.attributes.value = this.value;\n\n if (!this.onChange) return false;\n\n if (typeof this.onChange === \"function\") return this.onChange(this.value);\n\n if (typeof this.onChange === \"object\") {\n\n const {getAndCallFallbackFunction} = (await import(/* webpackPrefetch: true */ \"../../../functions/get/getAndCallFallbackFunction.js\"));\n const fallbackFunctionDetails = this.onChange;\n\n if (!fallbackFunctionDetails[\"functionParameters\"]) return false;\n\n fallbackFunctionDetails[\"functionParameters\"][\"value\"] = this.value;\n fallbackFunctionDetails[\"functionParameters\"][\"changedInputClass\"] = this;\n\n return getAndCallFallbackFunction(fallbackFunctionDetails);\n\n };\n\n };\n\n isClosed(){\n this.status = \"closed\";\n this.statusText = this.changeOnOffLabel(\"txt417\");\n $(\".\"+this.inputsDivClass+\" input\").attr(\"disabled\", true);\n\n this.changeReadOnlyModeDiv(true);\n this.valueHasChanged();\n };\n\n isOpen(){\n this.status = \"open\";\n this.statusText = this.changeOnOffLabel(\"txt416\");\n $(\".\"+this.inputsDivClass+\" input\").attr(\"disabled\", false);\n \n this.changeReadOnlyModeDiv();\n this.valueHasChanged();\n };\n\n isValidInput(){\n\n return isValidSmetioBusinessHour(this.getValue());\n\n };\n\n getSmetioOnOffSwitch() {\n const onOffLabel = this.getOnOffLabel();\n\n this.smetioOnOffSwitch = new SmetioOnOffSwitch({\n attributes: {\n checked: this.status === \"open\" ? true : false,\n },\n changeEvents: {\n onChecked: (value) => { \n this.isOpen();\n if(this.onStatusChanged) this.onStatusChanged();\n },\n onUnChecked: (value) => { \n this.isClosed();\n if(this.onStatusChanged) this.onStatusChanged();\n },\n }\n });\n\n return `\n