{"version":3,"sources":["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/EntrancePlantSwitchboards/EntrancePlantSwitchboards.vue?f02f","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/SwitchboardItem/SwitchboardItem.vue?8a0b","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/SwitchboardItem/SwitchboardItem.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/SwitchboardItem/SwitchboardItem.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/DialogAddEditSwitchboard/DialogAddEditSwitchboard.vue?5467","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/DialogAddEditSwitchboard/DialogAddEditSwitchboard.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/DialogAddEditSwitchboard/DialogAddEditSwitchboard.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/EntrancePlantSwitchboards.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSwitchboards/EntrancePlantSwitchboards.vue","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/core/services/plants.ts","webpack:///./node_modules/core-js/internals/string-trim-forced.js","webpack:///./src/assets/images/entrancePlants/icon-switchboard.svg"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","render","_ctx","_cache","$props","$setup","$data","$options","_component_InlineSvgScoped","_component_Button","_component_Dialog","visible","isDialogVisible","$event","onHide","doHideDialog","modal","showHeader","closable","default","src","dialogTitle","dialogMessage","onClick","handleHideDialog","$t","_","doConfirm","this","title","message","isVisible","$emit","name","props","type","Boolean","required","String","watch","newValue","emits","__exports__","_hoisted_6","key","_hoisted_7","_component_router_link","_component_SwitchboardItem","_component_ElScrollbar","_component_DialogAddEditSwitchboard","to","backLink","currentEntrancePlant","disabled","syncStatus","isPlantActive","noMoreScsAddresses","handleAddSwitchboard","hasSwitchboards","style","switchboards","switchboard","index","onDeleteSwitchboard","handleDeleteSwitchboard","onEditSwitchboard","handleEditSwitchboard","switchboardToEdit","isVisibleAddEditSwitchboard","onHideDialog","hideAddEditSwitchboard","onUpdateList","handleUpdateList","_component_ElDropdownItem","_component_ElDropdownMenu","_component_ElDropdown","_component_Card","_component_DialogConfirmDelete","$attrs","content","trigger","placement","dropdown","disableOptions","toggleDeleteSwitchboardConfirm","label","isVisibleDeleteSwitchboardConfirm","onConfirm","Object","components","DialogConfirmDelete","for","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_component_InputText","_component_ListItemCheck","newSwitchboard","id","isValidName","validator","modelValue","maxlength","nameMaxLength","invalidNameReason","isValidScs","min","max","scsAddr","invalidScsReason","devices","option","i","switchboardDevicesIds","device","deviceName","value","deviceId","inputId","last","length","buttonSubmitLabel","handleButtonSubmitAction","saveButtonDisabled","isEdit","checkIfSwitchboardHasDevices","scsAddressHelper","firstAvailableScsAddressSwitchboard","getSwitchboardName","deviceList","fillDeviceList","disabledForNameCheck","trim","disabledForScsCheck","undefined","gates","EPDeviceList","gatesWithLinea5000","filter","gate","some","Linea5000","push","selectedDevices","switchboardId","baseName","alreadyExist","listToCheck","switchb","nameExist","existing","toLowerCase","addrExist","Number","acceptedRange","isItAvailable","availableScsAddressSwitchboard","includes","doesNotExist","saveSwitchboard","desktopId","$store","dispatch","map","plants","switchboardPUT","switchboardPOST","$toast","add","severity","summary","life","console","log","setTimeout","computed","initSwitchboard","verifyValidityOfName","verifyValidityOfScsAddress","$route","query","addSwitchboard","params","switchboardDELETE","SwitchboardItem","DialogAddEditSwitchboard","$","$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","module","exports","prototype","init","data","property","hasOwnProperty","call","$type","plantsClient","fails","whitespaces","non","METHOD_NAME"],"mappings":"mJAEMA,EAAa,CAAEC,MAAO,wBACtBC,EAAa,CAAED,MAAO,yBACtBE,EAAa,CAAEF,MAAO,2BACtBG,EAA0B,yBAAa,KAAM,KAAM,MAAO,GAC1DC,EAAa,CAAEJ,MAAO,0BAEtB,SAAUK,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA6B,8BAAkB,mBAC/CC,EAAoB,8BAAkB,UACtCC,EAAoB,8BAAkB,UAE5C,OAAQ,yBAAc,yBAAaA,EAAmB,CACpDC,QAAST,EAAKU,gBACd,mBAAoBT,EAAO,KAAOA,EAAO,GAAK,SAACU,GAAD,OAAkBX,EAAKU,gBAAkBC,IACvFC,OAAQZ,EAAKa,aACbC,OAAO,EACPC,YAAY,EACZC,UAAU,EACVtB,MAAO,kBACN,CACDuB,QAAS,sBAAS,iBAAM,CACtB,yBAAa,OAAQxB,EAAY,CAC/B,yBAAaa,EAA4B,CACvCY,IACQ,EAAQ,QAEhB,aAAc,6BACb,KAAM,EAAG,CAAC,UAEf,yBAAa,KAAMvB,EAAY,6BAAiBK,EAAKmB,aAAc,GACnE,yBAAa,IAAKvB,EAAY,6BAAiBI,EAAKoB,eAAgB,GACpEvB,EACA,yBAAa,MAAOC,EAAY,CAC9B,yBAAaS,EAAmB,CAC9Bb,MAAO,uDACP2B,QAASrB,EAAKsB,kBACb,CACDL,QAAS,sBAAS,iBAAM,CACtB,6BAAiB,6BAAiBjB,EAAKuB,GAAG,uBAAwB,OAEpEC,EAAG,GACF,EAAG,CAAC,YACP,yBAAajB,EAAmB,CAC9Bb,MAAO,+BACP2B,QAASrB,EAAKyB,WACb,CACDR,QAAS,sBAAS,iBAAM,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GP,OAAoB+L,UAAUP,OAAS,SAAUS,GAC/C,uBACEI,MAAO,8DACJrM,OAGP,QAAa+L,UAAUP,OAAS,SAAUS,GACxC,uBACEI,MAAO,uDACJrM,OAGP,QAAe+L,UAAUP,OAAS,SAAUS,GAC1C,uBACEI,MAAO,yDACJrM,OAGP,QAAc+L,UAAUP,OAAS,SAAUS,GACzC,uBACEI,MAAO,wDACJrM,OAGP,OAAc+L,UAAUP,OAAS,SAAUS,GACzC,uBACEI,MAAO,wDACJrM,OAGP,OAAmB+L,UAAUP,OAAS,SAAUS,GAC9C,uBACEI,MAAO,6DACJrM,OAGP,QAAc+L,UAAUP,OAAS,SAAUS,GACzC,uBACEI,MAAO,wDACJrM,OAGP,QAAgB+L,UAAUP,OAAS,SAAUS,GAC3C,uBACEI,MAAO,0DACJrM,OAGP,QAAU+L,UAAUP,OAAS,SAAUS,GACrC,uBACEI,MAAO,oDACJrM,OAGP,OAAsB+L,UAAUP,OAAS,SAAUS,GACjD,uBACEI,MAAO,gEACJrM,OAGP,QAAgB+L,UAAUP,OAAS,SAAUS,GAC3C,uBACEI,MAAO,0DACJrM,OAGP,QAAgB+L,UAAUP,OAAS,SAAUS,GAC3C,uBACEI,MAAO,0DACJrM,OAIP,IAAMsM,EAAe,IAAI,OAAO,GAAI,QAErB,U,qBClKf,IAAIC,EAAQ,EAAQ,QAChBC,EAAc,EAAQ,QAEtBC,EAAM,MAIVZ,EAAOC,QAAU,SAAUY,GACzB,OAAOH,GAAM,WACX,QAASC,EAAYE,MAAkBD,EAAIC,MAAkBD,GAAOD,EAAYE,GAAarM,OAASqM,O,qBCT1Gb,EAAOC,QAAU,IAA0B","file":"js/page-entranceplant-switchboards.9cd20b60.js","sourcesContent":["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__","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: \"mb-3\" }\nconst _hoisted_2 = { class: \"d-flex align-items-start\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"i\", { class: \"pi pi-chevron-left mr-1\" }, null, -1)\nconst _hoisted_4 = { class: \"mt-2\" }\nconst _hoisted_5 = { class: \"ml-auto d-flex align-items-center\" }\nconst _hoisted_6 = {\n key: 1,\n class: \"py-5 text-center\"\n}\nconst _hoisted_7 = { class: \"fs-18 text-gray\" }\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_SwitchboardItem = _resolveComponent(\"SwitchboardItem\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_DialogAddEditSwitchboard = _resolveComponent(\"DialogAddEditSwitchboard\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\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_3,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"general.backTo\")) + \": \" + _toDisplayString(_ctx.currentEntrancePlant.name), 1)\n ]),\n _: 1\n }, 8, [\"to\"]),\n _createVNode(\"h1\", _hoisted_4, _toDisplayString(_ctx.$t(\"AppResourceEP.Switchboard\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_Button, {\n disabled: _ctx.currentEntrancePlant.syncStatus?.isPlantActive || _ctx.noMoreScsAddresses,\n class: \"p-button-rounded p-button-raised p-button--m\",\n onClick: _ctx.handleAddSwitchboard\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResourceEP.SwitchboardAddTitle\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"])\n ])\n ])\n ]),\n (_ctx.hasSwitchboards)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, {\n key: 0,\n style: {\"margin\":\"0 -20px -10%\",\"height\":\"calc(100vh - 240px)\"}\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.switchboards, (switchboard, index) => {\n return (_openBlock(), _createBlock(_component_SwitchboardItem, {\n style: {\"margin\":\"0 20px\"},\n class: \"mt-3\",\n key: index,\n switchboard: switchboard,\n onDeleteSwitchboard: ($event: any) => (_ctx.handleDeleteSwitchboard(switchboard)),\n onEditSwitchboard: _ctx.handleEditSwitchboard\n }, null, 8, [\"switchboard\", \"onDeleteSwitchboard\", \"onEditSwitchboard\"]))\n }), 128))\n ]),\n _: 1\n }))\n : (_openBlock(), _createBlock(\"div\", _hoisted_6, [\n _createVNode(\"h1\", null, _toDisplayString(_ctx.$t(\"entrancePlant.noSwitchboard\")), 1),\n _createVNode(\"span\", _hoisted_7, _toDisplayString(_ctx.$t(\"entrancePlant.hintNewSwitchboard\")), 1)\n ])),\n _createVNode(_component_DialogAddEditSwitchboard, {\n switchboardToEdit: _ctx.switchboardToEdit,\n isVisible: _ctx.isVisibleAddEditSwitchboard,\n onHideDialog: _ctx.hideAddEditSwitchboard,\n onUpdateList: _ctx.handleUpdateList\n }, null, 8, [\"switchboardToEdit\", \"isVisible\", \"onHideDialog\", \"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 align-items-center\" }\nconst _hoisted_2 = { class: \"d-flex align-items-center mb-0\" }\nconst _hoisted_3 = { class: \"bt-icon bt-icon--sm\" }\nconst _hoisted_4 = { class: \"ml-3\" }\nconst _hoisted_5 = { class: \"btn-stripped\" }\nconst _hoisted_6 = { 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, _ctx.$attrs, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"h4\", _hoisted_2, [\n _createVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/entrancePlants/icon-switchboard.svg`)\n ,\n \"aria-label\": \"icon-switchboard\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.switchboard.name), 1)\n ]),\n _createVNode(_component_ElDropdown, {\n class: \"ml-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.disableOptions,\n onClick: _ctx.handleEditSwitchboard\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_5, _toDisplayString(_ctx.$t(\"AppResource.Edit\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"]),\n _createVNode(_component_ElDropdownItem, {\n disabled: _ctx.disableOptions,\n onClick: _ctx.toggleDeleteSwitchboardConfirm\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_6, _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 }, 16),\n _createVNode(_component_DialogConfirmDelete, {\n \"is-visible\": _ctx.isVisibleDeleteSwitchboardConfirm,\n title: _ctx.$t('entrancePlant.deleteSwitchboard'),\n message: _ctx.$t('entrancePlant.deleteSwitchboardQuestion'),\n onHideDialog: _ctx.toggleDeleteSwitchboardConfirm,\n onConfirm: _ctx.handleDeleteSwitchboard\n }, null, 8, [\"is-visible\", \"title\", \"message\", \"onHideDialog\", \"onConfirm\"])\n ], 64))\n}","import { PropType } from 'vue';\nimport { Options, Vue } from 'vue-class-component';\nimport DialogConfirmDelete from '@/views/components/DialogConfirmDelete/DialogConfirmDelete.vue';\nimport { SwitchboardDTO } from 'client-generator/generated-clients/plants';\n\n@Options({\n name: 'SwitchboardItem',\n props: {\n switchboard: {\n type: Object as PropType,\n required: true,\n },\n disableOptions: {\n type:Boolean,\n required: false,\n default:false\n }\n },\n components: {\n DialogConfirmDelete,\n },\n emits: ['delete-switchboard', 'edit-switchboard'],\n})\nexport default class SwitchboardItem extends Vue {\n switchboard!: SwitchboardDTO;\n isVisibleDeleteSwitchboardConfirm = false; \n disableOptions!:boolean;\n\n toggleDeleteSwitchboardConfirm(){\n this.isVisibleDeleteSwitchboardConfirm = !this.isVisibleDeleteSwitchboardConfirm;\n }\n\n async handleDeleteSwitchboard() {\n this.$emit('delete-switchboard', this.switchboard);\n }\n\n async handleEditSwitchboard() {\n this.$emit('edit-switchboard', this.switchboard);\n }\n}\n","import { render } from \"./SwitchboardItem.vue?vue&type=template&id=84e8ed8c&ts=true\"\nimport script from \"./SwitchboardItem.ts?vue&type=script&lang=ts\"\nexport * from \"./SwitchboardItem.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, resolveComponent as _resolveComponent, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, withCtx as _withCtx, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header mb-4\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"width\":\"450px\",\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_5 = { class: \"mb-4\" }\nconst _hoisted_6 = { class: \"p-field\" }\nconst _hoisted_7 = {\n class: \"p-field-label\",\n for: \"switchboardname\"\n}\nconst _hoisted_8 = {\n for: \"switchboardname\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_9 = { class: \"p-field\" }\nconst _hoisted_10 = {\n class: \"p-field-label\",\n for: \"switchboardscs\"\n}\nconst _hoisted_11 = {\n for: \"switchboardscs\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_12 = { class: \"p-field mb-3\" }\nconst _hoisted_13 = { class: \"p-field-label my-4\" }\nconst _hoisted_14 = { 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_ListItemCheck = _resolveComponent(\"ListItemCheck\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_ctx.newSwitchboard && _ctx.newSwitchboard.switchboard)\n ? (_openBlock(), _createBlock(_component_Dialog, {\n key: 0,\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.isDialogVisible = $event)),\n onHide: _ctx.doHideDialog,\n modal: true,\n showHeader: false,\n closable: false,\n class: \"dialog-custom\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"label\", _hoisted_7, _toDisplayString(_ctx.$t(\"AppResource.NameUpper\")), 1),\n _createVNode(_component_InputText, {\n id: \"switchboardname\",\n type: \"text\",\n class: [\"w-100\", { 'input-error': !_ctx.isValidName }],\n validator: '/^(?!\\s).+(? (_ctx.newSwitchboard.switchboard.name = $event)),\n maxlength: _ctx.nameMaxLength\n }, null, 8, [\"validator\", \"modelValue\", \"maxlength\", \"class\"]),\n _createVNode(\"label\", _hoisted_8, _toDisplayString(_ctx.invalidNameReason), 1)\n ]),\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"label\", _hoisted_10, _toDisplayString(_ctx.$t(\"AppResourceEP.DeviceScsAddress\")), 1),\n _createVNode(_component_InputText, {\n id: \"switchboardscs\",\n type: \"number\",\n class: [\"w-100\", { 'input-error': !_ctx.isValidScs }],\n min: 0,\n max: 15,\n modelValue: _ctx.newSwitchboard.switchboard.scsAddr,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.newSwitchboard.switchboard.scsAddr = $event))\n }, null, 8, [\"modelValue\", \"class\"]),\n _createVNode(\"label\", _hoisted_11, _toDisplayString(_ctx.invalidScsReason), 1)\n ]),\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.$t(\"SelectDevicesInGate\")), 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.devices, (option, i) => {\n return (_openBlock(), _createBlock(_component_ListItemCheck, {\n key: i,\n modelValue: _ctx.switchboardDevicesIds,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.switchboardDevicesIds = $event)),\n label: option.device.deviceName,\n value: option.device.deviceId,\n name: \"device\",\n inputId: option.device.deviceId,\n last: i === _ctx.devices.length - 1\n }, null, 8, [\"modelValue\", \"label\", \"value\", \"inputId\", \"last\"]))\n }), 128))\n ])\n ])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(\"footer\", _hoisted_14, [\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: _ctx.buttonSubmitLabel,\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 : _createCommentVNode(\"\", true)\n}","import { PropType } from 'vue';\nimport { mapState } from 'vuex';\nimport plantsClient from '@/core/services/plants';\nimport { Options, Vue } from 'vue-class-component';\nimport {\n EPDeviceDTO,\n EPDeviceTypeEnum,\n EntrancePlantDetailDTO,\n SwitchboardConfigDTO,\n SwitchboardDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { SET_APP_LOADING } from '@/core/store/action-types';\nimport { isNumber, isString } from '@microsoft/applicationinsights-core-js';\n\n@Options({\n name: 'DialogAddEditSwitchboard',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n switchboardToEdit: {\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.invalidNameReason = '';\n this.isValidName = true;\n this.isValidScs = true;\n this.invalidScsReason = '';\n this.switchboardDevicesIds = [];\n this.initSwitchboard();\n }\n },\n 'newSwitchboard.switchboard.name': function () {\n if (this.newSwitchboard.switchboard) {\n this.verifyValidityOfName();\n }\n },\n 'newSwitchboard.switchboard.scsAddr': function () {\n if (this.newSwitchboard.switchboard) {\n this.verifyValidityOfScsAddress();\n }\n },\n },\n emits: ['hide-dialog', 'update-list'],\n})\nexport default class DialogAddEditSwitchboard extends Vue {\n newSwitchboard: SwitchboardConfigDTO = new SwitchboardConfigDTO();\n currentEntrancePlant!: EntrancePlantDetailDTO;\n switchboardToEdit!: SwitchboardDTO;\n isVisible!: boolean;\n isDialogVisible = false;\n isEdit = false;\n readonly nameMaxLength = 50;\n switchboardDevicesIds: string[] = [];\n\n // Naming validation props\n isValidName = true;\n isValidScs = true;\n invalidNameReason: string = '';\n invalidScsReason: string = '';\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n }\n\n async initSwitchboard() {\n if (this.switchboardToEdit) {\n this.isEdit = true;\n this.newSwitchboard.switchboard = new SwitchboardDTO(\n this.switchboardToEdit\n );\n this.newSwitchboard.devices = await this.checkIfSwitchboardHasDevices();\n } else {\n this.isEdit = false;\n this.newSwitchboard.switchboard = new SwitchboardDTO();\n this.newSwitchboard.switchboard.scsAddr = this.currentEntrancePlant.scsAddressHelper?.firstAvailableScsAddressSwitchboard;\n this.newSwitchboard.devices = [];\n this.newSwitchboard.switchboard.name = this.getSwitchboardName();\n }\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n get dialogTitle() {\n return this.isEdit\n ? this.$t('AppResourceEP.SwitchboardEditTitle')\n : this.$t('AppResourceEP.SwitchboardAddTitle');\n }\n\n get buttonSubmitLabel() {\n return this.$t('AppResource.Save');\n }\n\n get devices() {\n const deviceList = this.fillDeviceList();\n return deviceList;\n }\n\n get saveButtonDisabled() {\n const disabledForNameCheck =\n !this.isValidName || !this.newSwitchboard.switchboard?.name?.trim();\n const disabledForScsCheck = !this.isValidScs;\n return disabledForNameCheck || disabledForScsCheck;\n }\n\n fillDeviceList() {\n if (this.currentEntrancePlant.gates === undefined) return [];\n const EPDeviceList: {\n device: EPDeviceDTO;\n gate: string;\n }[] = [];\n const gatesWithLinea5000 = this.currentEntrancePlant.gates.filter(\n (gate) => gate.devices?.some(\n (device) => device.type === EPDeviceTypeEnum.Linea5000\n ));\n \n for (const gate of gatesWithLinea5000) {\n if (gate.devices) {\n for (const device of gate.devices) {\n EPDeviceList.push({\n device: device,\n gate: gate.name ?? '',\n });\n }\n }\n }\n return EPDeviceList;\n }\n\n async checkIfSwitchboardHasDevices() {\n if (this.currentEntrancePlant.gates === undefined) return [];\n const gates = this.currentEntrancePlant.gates;\n let selectedDevices: EPDeviceDTO[] = [];\n for (const gate of gates) {\n if (gate.devices) {\n for (const device of gate.devices) {\n if (\n device.switchboardId ===\n this.newSwitchboard.switchboard?.switchboardId\n ) {\n selectedDevices.push(device);\n this.switchboardDevicesIds.push(device.deviceId!);\n }\n }\n }\n }\n return selectedDevices;\n }\n\n getSwitchboardName() {\n let baseName = `${this.$t('AppResourceEP.Switchboard')}`\n let name ='';\n let i = 0;\n do {\n i++;\n name = `${baseName} ${(this.currentEntrancePlant.switchboards?.length ?? 0) + i}`;\n } while (this.alreadyExist(name));\n\n return name;\n }\n\n alreadyExist(value: string | number): boolean {\n let listToCheck = this.currentEntrancePlant.switchboards || [];\n if (this.isEdit) {\n listToCheck = listToCheck.filter(\n (switchb) => switchb.switchboardId !== this.switchboardToEdit.switchboardId\n );\n }\n if (isString(value)) {\n const nameExist = listToCheck.some(\n (existing) => existing.name?.toLowerCase().trim() === (value as string).toLowerCase().trim()\n );\n return nameExist;\n } else if(isNumber(value)) {\n const addrExist = listToCheck.some(\n (existing) => existing.scsAddr === value as number \n );\n return addrExist;\n }\n return true\n }\n\n verifyValidityOfName() {\n if (this.newSwitchboard.switchboard?.name === undefined) return;\n\n this.newSwitchboard.switchboard.name = this.newSwitchboard.switchboard.name.trim();\n this.isValidName = !this.alreadyExist(this.newSwitchboard.switchboard.name);\n this.invalidNameReason = this.isValidName\n ? ''\n : this.$t('general.alreadyExisting');\n }\n\n verifyValidityOfScsAddress() {\n if (this.newSwitchboard.switchboard?.scsAddr === undefined) return false;\n \n const value = Number(this.newSwitchboard.switchboard.scsAddr);\n\n if (this.isEdit && this.switchboardToEdit.scsAddr === value) {\n this.isValidScs = true;\n this.invalidScsReason = '';\n return;\n }\n const acceptedRange = value >= 0 && value <= 15;\n const isItAvailable = this.currentEntrancePlant.scsAddressHelper?.availableScsAddressSwitchboard?.includes(value) ?? false;\n const doesNotExist = !this.alreadyExist(value)\n this.isValidScs = acceptedRange && doesNotExist && isItAvailable;\n if (!acceptedRange) {\n this.invalidScsReason = this.$t('AppResourceEP.SwitchboardScsAddressOutOfRange');\n } else if (!doesNotExist) {\n this.invalidScsReason = this.$t('AppResourceEP.ScsAddressAlreadyInUse');\n } else if (!isItAvailable) {\n this.invalidScsReason = this.$t('AppResourceEP.InputNotValid');\n } else {\n this.invalidScsReason = '';\n }\n }\n\n async handleButtonSubmitAction() {\n this.isDialogVisible = false;\n\n await this.saveSwitchboard();\n\n this.$emit('update-list'); \n }\n\n async saveSwitchboard() {\n if (this.currentEntrancePlant.desktopId === undefined) return;\n this.$store.dispatch(SET_APP_LOADING, true);\n try {\n this.newSwitchboard.devices = this.devices\n .filter((device) => this.switchboardDevicesIds.includes(device.device.deviceId!))\n .map((device) => device.device);\n\n if (this.isEdit) {\n await plantsClient.switchboardPUT(\n this.currentEntrancePlant.desktopId,\n new SwitchboardConfigDTO(this.newSwitchboard)\n );\n } else {\n await plantsClient.switchboardPOST(\n this.currentEntrancePlant.desktopId,\n this.newSwitchboard\n );\n }\n\n this.$toast.add({\n severity: 'success',\n summary: this.isEdit\n ? this.$t('entrancePlant.editedSwitchboard')\n : this.$t('AppResourceEP.SwitchboardBannerCreated'),\n closable: false,\n life: 3000,\n });\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 }, 1000);\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n}\n","import { render } from \"./DialogAddEditSwitchboard.vue?vue&type=template&id=5b9c5100&ts=true\"\nimport script from \"./DialogAddEditSwitchboard.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogAddEditSwitchboard.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 { mapState } from 'vuex';\nimport plantsClient from '@/core/services/plants';\nimport { Options, Vue } from 'vue-class-component';\nimport {\n EntrancePlantDetailDTO,\n SwitchboardDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport SwitchboardItem from './SwitchboardItem/SwitchboardItem.vue';\nimport { SET_APP_LOADING } from '@/core/store/action-types';\nimport DialogAddEditSwitchboard from './DialogAddEditSwitchboard/DialogAddEditSwitchboard.vue';\n\n@Options({\n name: 'EntrancePlantSwitchboards',\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n components: {\n SwitchboardItem,\n DialogAddEditSwitchboard,\n },\n emits: ['update-list'],\n})\nexport default class EntrancePlantSwitchboards extends Vue {\n currentEntrancePlant!: EntrancePlantDetailDTO;\n switchboardToEdit: SwitchboardDTO | null = null;\n isVisibleAddEditSwitchboard = false;\n isVisibleDeleteSwitchboardConfirm = false;\n\n async mounted() {\n if (this.$route.query.addSwitchboard) {\n this.handleAddSwitchboard();\n }\n }\n\n get backLink() {\n return {\n name: 'page-entranceplant-dashboard',\n params: this.$route.params,\n };\n }\n\n get switchboards() {\n return this.currentEntrancePlant.switchboards;\n }\n\n get hasSwitchboards() {\n if (this.switchboards) {\n return this.switchboards.length > 0;\n }\n return false;\n }\n\n get noMoreScsAddresses() {\n return this.currentEntrancePlant.scsAddressHelper?.availableScsAddressSwitchboard!.length === 0;\n }\n\n async handleDeleteSwitchboard(switchboard: SwitchboardDTO) {\n this.$store.dispatch(SET_APP_LOADING, true);\n try {\n await plantsClient.switchboardDELETE(\n this.currentEntrancePlant.desktopId as number,\n switchboard\n );\n\n this.$emit('update-list');\n setTimeout(() => {\n this.$toast.add({\n severity: 'success',\n summary: this.$t('AppResourceEP.SwitchboardBannerDeleted'),\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 handleAddSwitchboard() {\n this.switchboardToEdit = null;\n this.isVisibleAddEditSwitchboard = !this.isVisibleAddEditSwitchboard;\n }\n\n handleEditSwitchboard(switchboard: SwitchboardDTO) {\n this.switchboardToEdit = switchboard;\n this.isVisibleAddEditSwitchboard = !this.isVisibleAddEditSwitchboard;\n }\n\n hideAddEditSwitchboard() {\n this.isVisibleAddEditSwitchboard = !this.isVisibleAddEditSwitchboard;\n }\n\n handleUpdateList() {\n this.$emit('update-list');\n }\n}\n","import { render } from \"./EntrancePlantSwitchboards.vue?vue&type=template&id=1e12011f&ts=true\"\nimport script from \"./EntrancePlantSwitchboards.ts?vue&type=script&lang=ts\"\nexport * from \"./EntrancePlantSwitchboards.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__","'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\";","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","module.exports = __webpack_public_path__ + \"img/icon-switchboard.8b491d14.svg\";"],"sourceRoot":""}