{"version":3,"sources":["webpack:///./src/views/components/HourPicker/HourPicker.vue?9d8f","webpack:///./src/views/components/HourPicker/HourPicker.ts","webpack:///./src/views/components/HourPicker/HourPicker.vue","webpack:///./src/assets/images/entrancePlants/icon-message.svg","webpack:///./src/views/components/DialogConfirmDelete/DialogConfirmDelete.vue?b090","webpack:///./src/views/components/DialogConfirmDelete/DialogConfirmDelete.ts","webpack:///./src/views/components/DialogConfirmDelete/DialogConfirmDelete.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/DialogAddEditMessage/DialogAddEditMessage.scss?3290","webpack:///./node_modules/core-js/modules/es.string.trim.js","webpack:///./src/core/utils/axios-instance.ts","webpack:///./src/assets/images/icons/icon-alert-medium-outline.svg","webpack:///./src/views/components/HourPicker/HourPicker.scss","webpack:///./src/core/services/plants.ts","webpack:///./node_modules/core-js/internals/string-trim-forced.js","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/EntrancePlantMessages.scss?026f","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/EntrancePlantMessages.vue?0f94","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/MessageItem/MessageItem.vue?0a00","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/MessageItem/MessageItem.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/MessageItem/MessageItem.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/DialogAddEditMessage/DialogAddEditMessage.vue?563d","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/DialogAddEditMessage/DialogAddEditMessage.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/DialogAddEditMessage/DialogAddEditMessage.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/EntrancePlantMessages.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantMessages/EntrancePlantMessages.vue"],"names":["_withId","_hoisted_1","class","style","tabindex","type","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","render","_ctx","_cache","$props","$setup","$data","$options","_component_ElPopover","disabled","reference","width","inputError","readonly","inputmode","value","textToShow","icon","default","onClick","addHour","removeHour","_","newModelValue","this","modelValue","maxHour","$emit","minHour","toString","padStart","name","props","Number","required","String","Boolean","emits","__exports__","module","exports","_component_InlineSvgScoped","_component_Button","_component_Dialog","visible","isDialogVisible","$event","onHide","doHideDialog","modal","showHeader","closable","src","dialogTitle","dialogMessage","handleHideDialog","$t","doConfirm","title","message","isVisible","watch","newValue","$","$trim","trim","forcedStringTrimMethod","target","proto","forced","a","defaults","timeout","interceptors","request","use","config","getToken","token","headers","Authorization","response","error","addError","JSON","stringify","toJSON","status","emit","Promise","reject","push","prototype","init","data","property","Object","hasOwnProperty","call","$type","plantsClient","fails","whitespaces","non","METHOD_NAME","key","_hoisted_7","_hoisted_8","_hoisted_9","_component_router_link","_component_TabPanel","_component_TabView","_component_MessageItem","_component_ElScrollbar","_component_DialogAddEditMessage","to","backLink","currentEntrancePlant","syncStatus","canEditWithPropagation","toggleAddEditMessage","onTabChange","handleTabClick","header","messagesList","length","disableActions","id","plantGates","gatesWithPE","onEditMessage","onDeleteMessage","handleDeleteMessage","expired","tabSelected","MessagesTab","active","messageToEdit","isVisibleAddEditMessage","onHideDialog","onUpdateList","handleUpdateList","_component_ElDropdownItem","_component_ElDropdownMenu","_component_ElDropdown","_component_Card","_component_DialogConfirmDelete","content","gates","getValidTime","trigger","placement","dropdown","handleEditMessage","toggleDeleteMessageConfirm","label","isVisibleDeleteMessageConfirm","onConfirm","dateFrom","getParsedDate","durationSince","dateTo","durationUntil","hourFrom","hourTo","filter","gate","gateIds","includes","gateId","map","join","toLocaleUpperCase","date","optionsDate","month","day","year","timeZone","optionsTime","hour","minute","toLocaleString","navigator","language","Array","components","DialogConfirmDelete","for","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_component_InputText","_component_Textarea","_component_Calendar","_component_HourPicker","_component_ListItemCheck","validTime","titleMaxLength","maxlength","validator","text","messageMaxLength","remainingChars","dateSince","minDate","maxDate","dateFormat","manualInput","showIcon","timeSince","updateSince","dateUntil","minDurationUntilDate","timeUntil","updateUntil","g","gateIdx","inputId","last","currentEntrancePlantGatesCount","isEdit","handleButtonSubmitAction","saveButtonDisabled","Date","devices","some","device","Linea5000","today","nextYear","setUTCFullYear","getUTCFullYear","startDate","setUTCHours","nextMonth","setUTCMonth","getUTCMonth","nextDay","selectedDurationHasOverlappings","dateToSinceCheck","createDate","dateToUntilCheck","existingMessagesForGate","gateMessages","every","m","endDate","getUTCHours","toISOString","split","saveGateMessage","undefined","desktopId","$store","dispatch","getTime","Error","gatemessagePUT","gatemessagePOST","$toast","add","severity","summary","life","console","log","setTimeout","hours","newDate","getFullYear","getMonth","setUTCDate","getDate","badTitle","badText","badTime","badGates","checkIfAnotherMessageExists","computed","initMessage","deep","handler","HourPicker","MessageTab","params","$route","messagesFilteredList","messages","event","setSelectionCriteria","index","selectionCriteria","messageId","gatemessageDELETE","DialogAddEditMessage","MessageItem"],"mappings":"+IACMA,EAAuB,yBAAa,mBAE1C,yBAAa,mBACb,IAAMC,EAAa,CACjBC,MAAO,+DACPC,MAAO,CAAC,OAAS,QACjBC,UAAW,EACXC,KAAM,UAEFC,EAAa,CAAEJ,MAAO,eACtBK,EAAa,CAAEL,MAAO,gBACtBM,EAAa,CAAEN,MAAO,iBACtBO,EAA0B,yBAAa,OAAQ,CAAEP,MAAO,oBAAsB,MAAO,GACrFQ,EAA0B,yBAAa,OAAQ,CAAER,MAAO,sBAAwB,MAAO,GAC7F,0BAEO,IAAMS,EAAsBX,GAAQ,SAACY,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GACnG,IAAMC,EAAuB,8BAAkB,aAE/C,OAAQ,yBAAc,yBAAaA,EAAsB,CACvDC,SAAUP,EAAKO,SACf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/Q,KAAK6F,qBAAqB+B,aAAjC,aAAO,EAAiCiB,QAAO,SAACC,GAAD,uBAAUA,EAAKmE,eAAf,aAAU,EAAcC,MACrE,SAACC,GAAD,OAAYA,EAAOhP,OAAS,OAAiBiP,kBAjDnD,4BAqDE,SAAe6D,GACbjR,KAAKkR,qBACa,IAAhBD,EAAME,MAAcP,GAAW5J,OAAS4J,GAAW/J,WAvDzD,kCA2DE,SAAqBuK,GACnBpR,KAAK8G,YAAcsK,IA5DvB,kCA+DE,SAAqBnK,GACnBjH,KAAKiH,cAAL,OAAqBA,QAArB,IAAqBA,IAAiB,KACtCjH,KAAKkH,yBAA2BlH,KAAKkH,0BAjEzC,8BAoEE,WACElH,KAAKG,MAAM,iBArEf,0FAwEE,WAA0BkR,GAA1B,mGACErR,KAAK8O,OAAOC,SAAS,SAAiB,GADxC,kBAGU,QAAauC,kBACjBtR,KAAK6F,qBAAqBgJ,UAC1BwC,GALN,OAQIrR,KAAKG,MAAM,eACXwP,YAAW,WACT,EAAKP,OAAOC,IAAI,CACdC,SAAU,UACVC,QAAS,EAAKvN,GAAG,0CACjBL,UAAU,EACV6N,KAAM,QAEP,MAhBP,mDAkBIxP,KAAKoP,OAAOC,IAAI,CACdC,SAAU,QACVC,QAASvP,KAAKgC,GAAG,0BACjBL,UAAU,EACV6N,KAAM,MAtBZ,yBAyBIxP,KAAK8O,OAAOC,SAAS,SAAiB,GAzB1C,4EAxEF,+DAAmD,QAA9B,GAAqB,gBARzC,eAAQ,CACPxO,KAAM,wBACNgQ,SAAU,kBACL,eAAS,CAAC,0BAEfrG,WAAY,CAAEqH,qBAAA,GAAsBC,YAAA,GACpC3Q,MAAO,CAAC,kBAEW,c,UClBrB,MAAM,GAA2B,IAAgB,GAAQ,CAAC,CAAC,SAASpC,KAErD","file":"js/page-entranceplant-messages.72c2d6b3.js","sourcesContent":["import { createVNode as _createVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-4613439d\")\n\n_pushScopeId(\"data-v-4613439d\")\nconst _hoisted_1 = {\n class: \"p-button p-component p-button-icon-only p-datepicker-trigger\",\n style: {\"height\":\"100%\"},\n tabindex: -1,\n type: \"button\"\n}\nconst _hoisted_2 = { class: \"p-component\" }\nconst _hoisted_3 = { class: \"p-timepicker\" }\nconst _hoisted_4 = { class: \"p-hour-picker\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"span\", { class: \"pi pi-chevron-up\" }, null, -1)\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"span\", { class: \"pi pi-chevron-down\" }, null, -1)\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _component_ElPopover = _resolveComponent(\"ElPopover\")\n\n return (_openBlock(), _createBlock(_component_ElPopover, {\n disabled: _ctx.disabled,\n \"popper-class\": \"el-dropdown__popper el-dropdown--context\"\n }, {\n reference: _withId(() => [\n _createVNode(\"span\", {\n class: [\"p-calendar p-component p-inputwrapper p-calendar-w-btn p-inputwrapper-filled\", _ctx.width]\n }, [\n _createVNode(\"input\", {\n class: [\"p-inputtext p-component\", {'input-error': _ctx.inputError}],\n type: \"text\",\n disabled: _ctx.disabled,\n readonly: \"\",\n inputmode: \"none\",\n value: _ctx.textToShow\n }, null, 10, [\"disabled\", \"value\"]),\n _createVNode(\"button\", _hoisted_1, [\n _createVNode(\"span\", {\n class: [\"p-button-icon\", _ctx.icon]\n }, null, 2)\n ])\n ], 2)\n ]),\n default: _withId(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"button\", {\n class: \"p-link\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.addHour && _ctx.addHour(...args)))\n }, [\n _hoisted_5\n ]),\n _createVNode(\"span\", null, _toDisplayString(_ctx.textToShow), 1),\n _createVNode(\"button\", {\n class: \"p-link\",\n onClick: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.removeHour && _ctx.removeHour(...args)))\n }, [\n _hoisted_6\n ])\n ])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"disabled\"]))\n})","import { Options, Vue } from 'vue-class-component';\n\n@Options({\n name: 'HourPicker',\n props: {\n modelValue: {\n type: Number,\n required: true,\n },\n width: {\n type: String,\n default:''\n },\n disabled: {\n type: Boolean,\n required:false,\n default:false\n },\n inputError: {\n type: Boolean,\n required: false,\n default: false,\n },\n minHour: {\n type: Number,\n required: false,\n default: 0,\n },\n maxHour: {\n type: Number,\n required: false,\n default: 23,\n },\n icon: {\n type: String,\n required: false,\n default: 'pi pi-clock',\n }\n },\n emits: ['update:modelValue'],\n})\nexport default class HourPicker extends Vue {\n disabled!: boolean;\n width!: string\n modelValue!: number;\n inputError!: boolean;\n minHour!: number;\n maxHour!: number;\n icon!: string;\n\n addHour() {\n let newModelValue = this.modelValue;\n if (this.modelValue < this.maxHour) {\n newModelValue = this.modelValue +1 \n }\n this.$emit('update:modelValue', newModelValue);\n }\n\n removeHour() {\n let newModelValue = this.modelValue\n if (this.modelValue > this.minHour) {\n newModelValue = this.modelValue -1 \n }\n this.$emit('update:modelValue', newModelValue);\n }\n\n get textToShow() {\n return `${this.modelValue.toString().padStart(2, '0')}:00`;\n }\n}\n","import { render } from \"./HourPicker.vue?vue&type=template&id=4613439d&scoped=true&ts=true\"\nimport script from \"./HourPicker.ts?vue&type=script&lang=ts\"\nexport * from \"./HourPicker.ts?vue&type=script&lang=ts\"\n\nimport \"./HourPicker.scss?vue&type=style&index=0&id=4613439d&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4613439d\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/icon-message.297290d6.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bt-icon text-primary\" }\nconst _hoisted_2 = { class: \"dialog-confirm__title\" }\nconst _hoisted_3 = { class: \"dialog-confirm__message\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"hr\", null, null, -1)\nconst _hoisted_5 = { class: \"dialog-confirm__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_component_Dialog, {\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.isDialogVisible = $event)),\n onHide: _ctx.doHideDialog,\n modal: true,\n showHeader: false,\n closable: false,\n class: \"dialog-confirm\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_1, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-alert-medium-outline.svg`)\n ,\n \"aria-label\": \"icon-alert-medium-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.dialogMessage), 1),\n _hoisted_4,\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_Button, {\n class: \"p-button-text p-button-secondary text-uppercase mr-2\",\n onClick: _ctx.handleHideDialog\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Cancel\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button--m\",\n onClick: _ctx.doConfirm\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Ok\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'DialogConfirmDelete',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n required: true,\n },\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n },\n },\n emits: ['hide-dialog', 'confirm'],\n})\nexport default class DialogConfirmDelete extends Vue {\n isVisible!: boolean;\n title!: string;\n message!: string;\n isDialogVisible = false;\n\n get dialogTitle() {\n return this.title;\n }\n\n get dialogMessage() {\n return this.message;\n }\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n doConfirm() {\n this.$emit('confirm');\n this.handleHideDialog();\n }\n}\n","import { render } from \"./DialogConfirmDelete.vue?vue&type=template&id=009d4b24&ts=true\"\nimport script from \"./DialogConfirmDelete.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogConfirmDelete.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./DialogAddEditMessage.scss?vue&type=style&index=0&lang=scss\"","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","import axios from 'axios';\nimport router from '../../core/router/index';\n\naxios.defaults.timeout = 30000;\n\nimport authService from '../services/auth.service';\nimport emitter from '@/core/config/emitter';\nimport { MANAGE_ELIOT_PARSE_EXCEPTION } from './emitter-events';\nimport globalErrors from './global-errors';\n\naxios.interceptors.request.use(async (config) => {\n const token = await authService.getToken();\n if (token) config.headers.Authorization = `Bearer ${token}`;\n else config.headers.Authorization = '';\n return config;\n});\n\naxios.interceptors.response.use(\n (response) => {\n return response;\n },\n (error) => {\n globalErrors.addError(JSON.stringify(error.toJSON()));\n if (error.response.status === 412) {\n emitter.emit(MANAGE_ELIOT_PARSE_EXCEPTION);\n } else if (error.response.status === 477) {\n // user is not in allowed list\n router.push({ name: 'page-user-not-allowed' });\n } else {\n return Promise.reject(error);\n }\n }\n);\n\nexport default axios;\n","module.exports = __webpack_public_path__ + \"img/icon-alert-medium-outline.b8add9d7.svg\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./HourPicker.scss?vue&type=style&index=0&id=4613439d&scoped=true&lang=scss\"","import {\n Client,\n ActuatorSettings,\n CommandSettings,\n GeneralCommandsAndGroupsAction,\n DefaultObjectAction,\n ObjectAction,\n WaitTimeAction,\n Action,\n Trigger,\n Condition,\n ObjectTrigger,\n ButtonTrigger,\n DateAndTimeTrigger,\n TimeCondition,\n ObjectCondition,\n ExtDevice,\n ColoredLightExtDevice,\n XmeterExtDevice,\n PlayerExtDevice,\n} from '@/../client-generator/generated-clients/plants';\nimport axiosInstance from '../utils/axios-instance';\n\nCondition.prototype.init \n= Trigger.prototype.init \n= Action.prototype.init \n= ActuatorSettings.prototype.init \n= CommandSettings.prototype.init \n= GeneralCommandsAndGroupsAction.prototype.init \n= DefaultObjectAction.prototype.init \n= ObjectAction.prototype.init \n= WaitTimeAction.prototype.init \n= ObjectTrigger.prototype.init \n= ButtonTrigger.prototype.init \n= DateAndTimeTrigger.prototype.init \n= TimeCondition.prototype.init \n= ObjectCondition.prototype.init\n= ExtDevice.prototype.init\n= ColoredLightExtDevice.prototype.init\n= XmeterExtDevice.prototype.init\n= PlayerExtDevice.prototype.init = function (\n data?: any\n) {\n if (data) {\n for (var property in data) {\n if (Object.prototype.hasOwnProperty.call(data, property))\n (this)[property] = (data)[property];\n }\n }\n};\n\nCondition.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.Condition, ProtocolManager`,\n ...this,\n };\n};\nTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.Trigger, ProtocolManager`,\n ...this,\n };\n};\nAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.Action, ProtocolManager`,\n ...this,\n };\n};\nActuatorSettings.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ActuatorSettings, ProtocolManager`,\n ...this,\n };\n};\nCommandSettings.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.CommandSettings, ProtocolManager`,\n ...this,\n };\n};\nGeneralCommandsAndGroupsAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.GeneralCommandsAndGroupsAction, ProtocolManager`,\n ...this,\n };\n};\nDefaultObjectAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.DefaultObjectAction, ProtocolManager`,\n ...this,\n };\n};\nObjectAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ObjectAction, ProtocolManager`,\n ...this,\n };\n};\nWaitTimeAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.WaitTimeAction, ProtocolManager`,\n ...this,\n };\n};\nObjectTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ObjectTrigger, ProtocolManager`,\n ...this,\n };\n};\nButtonTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ButtonTrigger, ProtocolManager`,\n ...this,\n };\n};\nDateAndTimeTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.DateAndTimeTrigger, ProtocolManager`,\n ...this,\n };\n};\nTimeCondition.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.TimeCondition, ProtocolManager`,\n ...this,\n };\n};\nObjectCondition.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ObjectCondition, ProtocolManager`,\n ...this,\n };\n};\nExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ExtDevice, ProtocolManager`,\n ...this,\n };\n};\nColoredLightExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ColoredLightExtDevice, ProtocolManager`,\n ...this,\n };\n};\nXmeterExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.XmeterExtDevice, ProtocolManager`,\n ...this,\n };\n};\nPlayerExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.PlayerExtDevice, ProtocolManager`,\n ...this,\n };\n};\n\nconst plantsClient = new Client('', axiosInstance);\n\nexport default plantsClient;\n","var fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./EntrancePlantMessages.scss?vue&type=style&index=0&lang=scss\"","import { createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex align-items-start\" }\nconst _hoisted_2 = /*#__PURE__*/_createVNode(\"i\", { class: \"pi pi-chevron-left mr-1\" }, null, -1)\nconst _hoisted_3 = { class: \"mt-2\" }\nconst _hoisted_4 = { class: \"ml-auto d-flex align-items-center\" }\nconst _hoisted_5 = { class: \"d-flex align-items-baseline justify-content-between\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = {\n key: 1,\n class: \"no-messages text-center\"\n}\nconst _hoisted_8 = { class: \"text-uppercase\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"fs-18 text-gray\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_TabPanel = _resolveComponent(\"TabPanel\")\n const _component_TabView = _resolveComponent(\"TabView\")\n const _component_MessageItem = _resolveComponent(\"MessageItem\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_DialogAddEditMessage = _resolveComponent(\"DialogAddEditMessage\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", null, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"div\", null, [\n _createVNode(_component_router_link, {\n to: _ctx.backLink,\n class: \"fs-18 text-decoration-none text-gray\"\n }, {\n default: _withCtx(() => [\n _hoisted_2,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"general.backTo\")) + \": \" + _toDisplayString(_ctx.currentEntrancePlant.name), 1)\n ]),\n _: 1\n }, 8, [\"to\"]),\n _createVNode(\"h1\", _hoisted_3, _toDisplayString(_ctx.$t(\"AppResourceEP.Messages\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_Button, {\n disabled: !_ctx.currentEntrancePlant.syncStatus?.canEditWithPropagation,\n class: \"p-button-rounded p-button-raised p-button--m\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.toggleAddEditMessage()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResourceEP.NewGateMessage\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_TabView, {\n class: \"messages-list p-tabview--custom\",\n onTabChange: _cache[2] || (_cache[2] = ($event: any) => (_ctx.handleTabClick($event)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_TabPanel, {\n header: _ctx.$t('AppResourceEP.ActiveMessage')\n }, null, 8, [\"header\"]),\n _createVNode(_component_TabPanel, {\n header: _ctx.$t('AppResourceEP.ExpiredMessages')\n }, null, 8, [\"header\"])\n ]),\n _: 1\n })\n ]),\n (_ctx.messagesList.length > 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_6, [\n _createVNode(_component_ElScrollbar, { class: \"message-card-list\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.messagesList, (message) => {\n return (_openBlock(), _createBlock(_component_MessageItem, {\n disableActions: !_ctx.currentEntrancePlant.syncStatus?.canEditWithPropagation,\n key: message.id,\n message: message,\n plantGates: _ctx.gatesWithPE,\n onEditMessage: _ctx.toggleAddEditMessage,\n onDeleteMessage: _ctx.handleDeleteMessage,\n expired: _ctx.tabSelected === _ctx.MessagesTab.expired\n }, null, 8, [\"disableActions\", \"message\", \"plantGates\", \"onEditMessage\", \"onDeleteMessage\", \"expired\"]))\n }), 128))\n ]),\n _: 1\n })\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_7, [\n _createVNode(\"h1\", _hoisted_8, _toDisplayString(_ctx.$t(\"entrancePlant.noMessages\")), 1),\n (_ctx.tabSelected === _ctx.MessagesTab.active)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(\"entrancePlant.hintNewMessage\")), 1))\n : _createCommentVNode(\"\", true)\n ])),\n _createVNode(_component_DialogAddEditMessage, {\n messageToEdit: _ctx.messageToEdit,\n isVisible: _ctx.isVisibleAddEditMessage,\n onHideDialog: _cache[3] || (_cache[3] = ($event: any) => (_ctx.toggleAddEditMessage())),\n onUpdateList: _ctx.handleUpdateList\n }, null, 8, [\"messageToEdit\", \"isVisible\", \"onUpdateList\"])\n ], 64))\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"card__head d-flex aling-items-center\" }\nconst _hoisted_2 = { class: \"d-flex aling-items-center icon-text ml-2\" }\nconst _hoisted_3 = { class: \"bt-icon my-auto bt-icon--m\" }\nconst _hoisted_4 = { class: \"ml-3\" }\nconst _hoisted_5 = { class: \"mt-1 mb-0\" }\nconst _hoisted_6 = { class: \"my-0 text-gray\" }\nconst _hoisted_7 = { class: \"btn-stripped\" }\nconst _hoisted_8 = { class: \"btn-stripped text-danger\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_ElDropdownItem = _resolveComponent(\"ElDropdownItem\")\n const _component_ElDropdownMenu = _resolveComponent(\"ElDropdownMenu\")\n const _component_ElDropdown = _resolveComponent(\"ElDropdown\")\n const _component_Card = _resolveComponent(\"Card\")\n const _component_DialogConfirmDelete = _resolveComponent(\"DialogConfirmDelete\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(_component_Card, {\n class: [\"message-card card--slim\", {'message-expired': _ctx.expired}]\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/entrancePlants/icon-message.svg`)\n ,\n \"aria-label\": \"icon-message\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"h6\", _hoisted_5, _toDisplayString(_ctx.message.title), 1),\n _createVNode(\"small\", _hoisted_6, _toDisplayString(_ctx.gates) + \": \" + _toDisplayString(_ctx.getValidTime()), 1)\n ])\n ]),\n _createVNode(_component_ElDropdown, {\n class: \"ml-auto my-auto p-button-text\",\n trigger: \"click\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_ElDropdownMenu, { style: {\"width\":\"300px\"} }, {\n default: _withCtx(() => [\n _createVNode(_component_ElDropdownItem, {\n disabled: _ctx.disableActions,\n onClick: _ctx.handleEditMessage\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_7, _toDisplayString(_ctx.$t(\"AppResource.Edit\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"]),\n _createVNode(_component_ElDropdownItem, {\n disabled: _ctx.disableActions,\n onClick: _ctx.toggleDeleteMessageConfirm\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_8, _toDisplayString(_ctx.$t(\"AppResource.Delete\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Button, {\n label: _ctx.$t('AppResource.More'),\n class: \"ml-auto p-button-text\"\n }, null, 8, [\"label\"])\n ]),\n _: 1\n })\n ])\n ]),\n _: 1\n }, 8, [\"class\"]),\n _createVNode(_component_DialogConfirmDelete, {\n \"is-visible\": _ctx.isVisibleDeleteMessageConfirm,\n title: _ctx.$t('AppResourceEP.GateMessageDeletionPopupTitle'),\n message: _ctx.$t('AppResourceEP.GateMessageDeletionPopupMessage'),\n onHideDialog: _ctx.toggleDeleteMessageConfirm,\n onConfirm: _ctx.handleDeleteMessage\n }, null, 8, [\"is-visible\", \"title\", \"message\", \"onHideDialog\", \"onConfirm\"])\n ], 64))\n}","import { PropType } from 'vue';\nimport { Options, Vue } from 'vue-class-component';\nimport { GateDTO, GateMessageDTO } from '@/../client-generator/generated-clients/plants';\nimport DialogConfirmDelete from '@/views/components/DialogConfirmDelete/DialogConfirmDelete.vue';\n\n@Options({\n name: 'messageItem',\n props: {\n message: {\n type: Object as PropType,\n required: true,\n },\n plantGates: {\n type: Array as PropType,\n required: true,\n },\n disableActions: {\n type: Boolean,\n required: false,\n default: false\n },\n expired: {\n type: Boolean,\n required: false,\n default: false\n }\n },\n components: { DialogConfirmDelete },\n emits: ['edit-message', 'delete-message'],\n})\nexport default class MessageItem extends Vue {\n message!: GateMessageDTO;\n isVisibleDeleteMessageConfirm = false;\n disableActions!: boolean;\n plantGates!: GateDTO[];\n expired!: boolean;\n\n getValidTime() {\n const dateFrom = this.getParsedDate(this.message.durationSince!, 'date');\n const dateTo = this.getParsedDate(this.message.durationUntil!, 'date');\n const hourFrom = this.getParsedDate(this.message.durationSince!, 'time');\n const hourTo = this.getParsedDate(this.message.durationUntil!, 'time');\n return `${dateFrom} h ${hourFrom} - ${dateTo} h ${hourTo}`;\n }\n\n get gates() {\n const gates = this.plantGates.filter((gate) => this.message.gateIds!.includes(gate.gateId!));\n return gates.map((gate) => gate.name).join(', ').toLocaleUpperCase();\n }\n\n getParsedDate(date: Date, type: 'date' | 'time') {\n if (!date) return '-';\n const optionsDate: any = {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n timeZone: 'Utc',\n };\n const optionsTime: any = {\n hour: '2-digit',\n minute: '2-digit',\n timeZone: 'Utc',\n };\n return date.toLocaleString(navigator.language, type === 'date' ? optionsDate : optionsTime);\n }\n\n handleEditMessage() {\n this.$emit('edit-message', this.message);\n }\n\n toggleDeleteMessageConfirm() {\n this.isVisibleDeleteMessageConfirm = !this.isVisibleDeleteMessageConfirm;\n }\n\n async handleDeleteMessage() {\n this.$emit('delete-message', this.message.id);\n }\n\n}\n","import { render } from \"./MessageItem.vue?vue&type=template&id=17155db1&ts=true\"\nimport script from \"./MessageItem.ts?vue&type=script&lang=ts\"\nexport * from \"./MessageItem.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header mb-4 d-flex align-items-start\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"form-custom invalid-time\"\n}\nconst _hoisted_4 = { class: \"p-field-label text-danger\" }\nconst _hoisted_5 = { class: \"dialog-custom__content form-custom dialog-message\" }\nconst _hoisted_6 = { class: \"dialog-message__grid\" }\nconst _hoisted_7 = { class: \"p-field\" }\nconst _hoisted_8 = {\n class: \"p-field-label\",\n for: \"messagetitle\"\n}\nconst _hoisted_9 = { class: \"p-field\" }\nconst _hoisted_10 = {\n class: \"p-field-label mb-3\",\n for: \"messagetext\"\n}\nconst _hoisted_11 = { class: \"message-text\" }\nconst _hoisted_12 = { class: \"p-field-label char-remain-count\" }\nconst _hoisted_13 = { class: \"p-field mt-3\" }\nconst _hoisted_14 = { class: \"p-field-label\" }\nconst _hoisted_15 = { class: \"p-field mt-3\" }\nconst _hoisted_16 = { class: \"p-field-label\" }\nconst _hoisted_17 = { class: \"p-field\" }\nconst _hoisted_18 = { class: \"p-field-label mb-3\" }\nconst _hoisted_19 = { class: \"mb-3\" }\nconst _hoisted_20 = { class: \"dialog-custom__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_Textarea = _resolveComponent(\"Textarea\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_Calendar = _resolveComponent(\"Calendar\")\n const _component_HourPicker = _resolveComponent(\"HourPicker\")\n const _component_ListItemCheck = _resolveComponent(\"ListItemCheck\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_component_Dialog, {\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[8] || (_cache[8] = ($event: any) => (_ctx.isDialogVisible = $event)),\n showHeader: false,\n modal: true,\n onHide: _ctx.doHideDialog,\n class: \"dialog-custom\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1),\n (!_ctx.validTime)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(\"label\", _hoisted_4, _toDisplayString(_ctx.$t(\"AppResourceEP.GateMessageWarningPopupMessage\")), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"label\", _hoisted_8, _toDisplayString(_ctx.$t(\"AppResourceEP.GateMessateTitleUpper\", \n [_ctx.titleMaxLength] )), 1),\n _createVNode(_component_InputText, {\n modelValue: _ctx.message.title,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.message.title = $event)),\n id: \"messagetitle\",\n type: \"text\",\n class: \"w-100\",\n maxlength: _ctx.titleMaxLength,\n validator: '/^(?!\\s).+(? (_ctx.message.text = $event)),\n class: \"message-text__area\",\n id: \"messagetext\",\n maxlength: _ctx.messageMaxLength\n }, null, 8, [\"modelValue\", \"maxlength\"]),\n _createVNode(\"label\", _hoisted_12, _toDisplayString(`${_ctx.remainingChars} ${_ctx.$t(\n \"AppResourceEP.HomepageMessageRemaingChar\"\n )}`), 1)\n ])\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_13, [\n _createVNode(\"label\", _hoisted_14, _toDisplayString(_ctx.$t(\"AppResource.FromTime\")), 1),\n _createVNode(_component_Calendar, {\n class: \"w-50\",\n modelValue: _ctx.dateSince,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.dateSince = $event)),\n \"min-date\": _ctx.minDate,\n \"max-date\": _ctx.maxDate,\n dateFormat: \"dd MM yy\",\n manualInput: false,\n showIcon: \"\",\n icon: \"pi pi-chevron-down\"\n }, null, 8, [\"modelValue\", \"min-date\", \"max-date\"]),\n _createVNode(_component_HourPicker, {\n modelValue: _ctx.timeSince,\n \"onUpdate:modelValue\": [\n _cache[4] || (_cache[4] = ($event: any) => (_ctx.timeSince = $event)),\n _ctx.updateSince\n ],\n icon: \"pi pi-chevron-down\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"label\", _hoisted_16, _toDisplayString(_ctx.$t(\"AppResource.ToTime\")), 1),\n _createVNode(_component_Calendar, {\n class: \"w-50\",\n modelValue: _ctx.dateUntil,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.dateUntil = $event)),\n dateFormat: \"dd MM yy\",\n showIcon: \"\",\n icon: \"pi pi-chevron-down\",\n manualInput: false,\n \"min-date\": _ctx.minDurationUntilDate,\n \"max-date\": _ctx.maxDate\n }, null, 8, [\"modelValue\", \"min-date\", \"max-date\"]),\n _createVNode(_component_HourPicker, {\n modelValue: _ctx.timeUntil,\n \"onUpdate:modelValue\": [\n _cache[6] || (_cache[6] = ($event: any) => (_ctx.timeUntil = $event)),\n _ctx.updateUntil\n ],\n minHour: _ctx.timeSince,\n icon: \"pi pi-chevron-down\"\n }, null, 8, [\"modelValue\", \"minHour\", \"onUpdate:modelValue\"])\n ]),\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"label\", _hoisted_18, _toDisplayString(_ctx.$t(\"AppResourceEP.SelectGateMessage\")), 1),\n _createVNode(\"div\", _hoisted_19, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.gates, (g, gateIdx) => {\n return (_openBlock(), _createBlock(_component_ListItemCheck, {\n key: g.gateId,\n modelValue: _ctx.message.gateIds,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => (_ctx.message.gateIds = $event)),\n label: g.name,\n value: g.gateId,\n name: \"specificGate\",\n inputId: 'specificg' + gateIdx,\n last: \n gateIdx ==\n _ctx.currentEntrancePlantGatesCount - 1\n \n }, null, 8, [\"modelValue\", \"label\", \"value\", \"inputId\", \"last\"]))\n }), 128))\n ])\n ])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(\"footer\", _hoisted_20, [\n _createVNode(_component_Button, {\n class: \"p-button-text mr-2\",\n onClick: _ctx.handleHideDialog\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Cancel\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n label: \n _ctx.isEdit ? _ctx.$t('AppResource.Save') : _ctx.$t('AppResource.Create')\n ,\n onClick: _ctx.handleButtonSubmitAction,\n class: \"p-button-rounded p-button-raised p-button--m\",\n disabled: _ctx.saveButtonDisabled\n }, null, 8, [\"label\", \"onClick\", \"disabled\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { Options, Vue } from 'vue-class-component';\nimport { mapState } from 'vuex';\nimport {\n EntrancePlantDetailDTO,\n EPDeviceTypeEnum,\n GateMessageDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { SET_APP_LOADING } from '@/core/store/action-types';\nimport plantsClient from '@/core/services/plants';\nimport { PropType } from 'vue';\nimport HourPicker from '@/views/components/HourPicker/HourPicker.vue';\n\n@Options({\n name: 'DialogAddEditMessage',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n messageToEdit: {\n type: Object as PropType,\n required: false,\n },\n },\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n if (this.isDialogVisible) {\n this.initMessage();\n }\n },\n 'dateSince': function () {\n this.checkIfAnotherMessageExists();\n },\n 'dateUntil': function () {\n this.checkIfAnotherMessageExists();\n },\n 'message.gateIds': {\n deep: true,\n handler() {\n this.checkIfAnotherMessageExists();\n }\n },\n },\n components: {HourPicker},\n emits: ['hide-dialog', 'update-list'],\n})\nexport default class DialogAddEditMessage extends Vue {\n messageToEdit!: GateMessageDTO;\n currentEntrancePlant!: EntrancePlantDetailDTO;\n\n message: GateMessageDTO = new GateMessageDTO();\n readonly titleMaxLength = 20;\n readonly messageMaxLength = 225;\n isVisible!: boolean;\n isDialogVisible = false;\n isEdit = false;\n validTime = true;\n\n dateSince = new Date();\n dateUntil = new Date();\n\n timeSince = 0;\n timeUntil = 0;\n\n get dialogTitle() {\n return this.isEdit\n ? this.$t('AppResourceEP.EditGateMessage')\n : this.$t('AppResourceEP.NewGateMessage');\n }\n\n get currentEntrancePlantGatesCount() {\n return this.gates?.length ?? 0;\n }\n\n get remainingChars() {\n if (!this.message.text) return this.messageMaxLength;\n return this.messageMaxLength - this.message.text.length;\n }\n\n get gates() {\n return this.currentEntrancePlant.gates?.filter((gate) => gate.devices?.some(\n (device) => device.type === EPDeviceTypeEnum.Linea5000\n ))\n }\n\n get today() { \n return new Date();\n }\n\n get minDate() {\n return this.today;\n }\n\n get maxDate() {\n const nextYear = new Date(this.minDate);\n nextYear.setUTCFullYear(this.minDate.getUTCFullYear() + 1);\n return nextYear;\n }\n\n get startDate() {\n const startDate = new Date();\n startDate.setUTCHours(0, 0);\n return startDate;\n }\n\n get endDate() {\n const nextMonth = new Date(this.today);\n nextMonth.setUTCMonth(this.today.getUTCMonth() + 1);\n nextMonth.setUTCHours(0, 0);\n return nextMonth;\n }\n\n get minDurationUntilDate() {\n const nextDay = new Date(this.dateSince!);\n return nextDay;\n }\n\n checkIfAnotherMessageExists() {\n this.validTime = !this.selectedDurationHasOverlappings();\n }\n\n selectedDurationHasOverlappings() {\n const dateToSinceCheck = this.createDate(this.dateSince, this.timeSince);\n const dateToUntilCheck = this.createDate(this.dateUntil, this.timeUntil);\n for (let gateId of this.message.gateIds ?? []) {\n const existingMessagesForGate = this.currentEntrancePlant.gateMessages!.filter(\n (message) =>\n message.gateIds!.includes(gateId) &&\n message.id !== this.message.id\n );\n if (!existingMessagesForGate.every(m => (m.durationSince! >= dateToUntilCheck && m.durationUntil! >= dateToUntilCheck)\n || (m.durationSince! <= dateToSinceCheck && m.durationUntil! <= dateToSinceCheck)))\n return true;\n }\n return false;\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n initMessage() {\n if (this.messageToEdit) {\n this.isEdit = true;\n this.message = new GateMessageDTO(this.messageToEdit);\n } else {\n this.isEdit = false;\n this.message = new GateMessageDTO({\n title: '',\n text: '',\n durationSince: new Date(this.startDate),\n durationUntil: new Date(this.endDate),\n gateIds: [],\n });\n }\n this.timeSince = this.message.durationSince!.getUTCHours() \n this.timeUntil = this.message.durationUntil!.getUTCHours()\n // take only date part without being affected by timezone\n this.dateSince = new Date(this.message.durationSince!.toISOString().split('Z')[0]) \n this.dateUntil = new Date(this.message.durationUntil!.toISOString().split('Z')[0])\n }\n\n async handleButtonSubmitAction() {\n this.isDialogVisible = false;\n\n await this.saveGateMessage();\n\n this.$emit('update-list');\n }\n\n async saveGateMessage() {\n if (this.currentEntrancePlant.desktopId === undefined) return;\n this.$store.dispatch(SET_APP_LOADING, true);\n try {\n this.message.durationSince = this.createDate(this.dateSince, this.timeSince);\n this.message.durationUntil = this.createDate(this.dateUntil, this.timeUntil);\n if(this.message.durationSince!.getTime() > this.message.durationUntil!.getTime()) {\n throw new Error('Invalid time range');\n }\n\n if (this.isEdit) {\n await plantsClient.gatemessagePUT(\n this.currentEntrancePlant.desktopId,\n this.message\n );\n } else {\n await plantsClient.gatemessagePOST(\n this.currentEntrancePlant.desktopId,\n this.message\n );\n }\n\n this.$toast.add({\n severity: 'success',\n summary: this.isEdit \n ? this.$t('entrancePlant.gateMessageEdited') \n : this.$t('AppResourceEP.GateMessageBannerCreated'),\n closable: false,\n life: 3000,\n });\n } catch (error) {\n console.log(error);\n setTimeout(() => {\n this.$toast.add({\n severity: 'error',\n summary: 'Error',\n closable: false,\n life: 3000,\n });\n }, 1500);\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n\n createDate(date: Date, hours: number) {\n const newDate = new Date();\n newDate.setUTCFullYear(date.getFullYear());\n newDate.setUTCMonth(date.getMonth());\n newDate.setUTCDate(date.getDate());\n newDate.setUTCHours(hours, 0, 0, 0);\n return newDate;\n }\n\n get saveButtonDisabled() {\n const badTitle = !this.message.title || this.message.title.trim().length === 0;\n const badText = !this.message.text || this.message.text?.trim().length === 0;\n const badTime = !this.validTime;\n const badGates = this.message.gateIds?.length === 0;\n return badTitle || badText || badTime || badGates;\n }\n\n updateUntil(value: number) {\n this.timeUntil = value;\n this.checkIfAnotherMessageExists();\n }\n\n updateSince(value: number) {\n this.timeSince = value;\n if(this.timeSince > this.timeUntil) {\n this.timeUntil = this.timeSince +1;\n }\n this.checkIfAnotherMessageExists();\n }\n}\n","import { render } from \"./DialogAddEditMessage.vue?vue&type=template&id=30d61848&ts=true\"\nimport script from \"./DialogAddEditMessage.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogAddEditMessage.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogAddEditMessage.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import {\n EntrancePlantDetailDTO,\n EPDeviceTypeEnum,\n GateMessageDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { mapState } from 'vuex';\nimport { Options, Vue } from 'vue-class-component';\nimport MessageItem from './MessageItem/MessageItem.vue';\nimport DialogAddEditMessage from './DialogAddEditMessage/DialogAddEditMessage.vue';\nimport plantsClient from '@/core/services/plants';\nimport { SET_APP_LOADING } from '@/core/store/action-types';\n\nenum MessageTab {\n active = 'active',\n expired = 'expired',\n}\n\n@Options({\n name: 'EntrancePlantMessages',\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n components: { DialogAddEditMessage, MessageItem },\n emits: ['update-list'],\n})\nexport default class EntrancePlantMessages extends Vue {\n MessagesTab = MessageTab;\n currentEntrancePlant!: EntrancePlantDetailDTO;\n tabSelected: MessageTab = MessageTab.active;\n isVisibleAddEditMessage = false;\n messageToEdit: GateMessageDTO | null = null;\n\n async mounted() {}\n\n get backLink() {\n return {\n name: 'page-entranceplant-dashboard',\n params: this.$route.params,\n };\n }\n\n get messages() {\n return this.currentEntrancePlant.gateMessages;\n }\n\n get messagesList() {\n let messagesFilteredList: GateMessageDTO[] = [];\n const today = new Date();\n\n if (this.messages) {\n switch (this.tabSelected) {\n case MessageTab.active:\n messagesFilteredList = this.messages.filter(\n (message) =>\n !message.durationUntil ||\n message.durationUntil.getTime() >= today.getTime()\n );\n break;\n\n case MessageTab.expired:\n messagesFilteredList = this.messages.filter(\n (message) =>\n message.durationUntil &&\n message.durationUntil.getTime() < today.getTime()\n );\n break;\n }\n }\n\n return messagesFilteredList;\n }\n\n get gatesWithPE() {\n return this.currentEntrancePlant.gates?.filter((gate) => gate.devices?.some(\n (device) => device.type === EPDeviceTypeEnum.Linea5000\n ))\n }\n\n handleTabClick(event: { index: number }) {\n this.setSelectionCriteria(\n event.index === 0 ? MessageTab.active : MessageTab.expired\n );\n }\n\n setSelectionCriteria(selectionCriteria: MessageTab) {\n this.tabSelected = selectionCriteria;\n }\n\n toggleAddEditMessage(messageToEdit?: GateMessageDTO) {\n this.messageToEdit = messageToEdit ?? null;\n this.isVisibleAddEditMessage = !this.isVisibleAddEditMessage;\n }\n\n handleUpdateList() {\n this.$emit('update-list');\n }\n\n async handleDeleteMessage(messageId: string) {\n this.$store.dispatch(SET_APP_LOADING, true);\n try {\n await plantsClient.gatemessageDELETE(\n this.currentEntrancePlant.desktopId as number,\n messageId\n );\n\n this.$emit('update-list');\n setTimeout(() => {\n this.$toast.add({\n severity: 'success',\n summary: this.$t('AppResourceEP.GateMessageBannerDeleted'),\n closable: false,\n life: 3000,\n });\n }, 1500);\n } catch {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n}\n","import { render } from \"./EntrancePlantMessages.vue?vue&type=template&id=7fbfc7e4&ts=true\"\nimport script from \"./EntrancePlantMessages.ts?vue&type=script&lang=ts\"\nexport * from \"./EntrancePlantMessages.ts?vue&type=script&lang=ts\"\n\nimport \"./EntrancePlantMessages.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}