{"version":3,"sources":["webpack:///./src/views/pages/PlantDetail/MenuSharing/MenuSharing.scss?e4b0","webpack:///./src/views/pages/PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.vue?ee77","webpack:///./src/views/pages/PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.ts","webpack:///./src/views/pages/PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.vue","webpack:///./src/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.vue?672d","webpack:///./src/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.ts","webpack:///./src/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.vue","webpack:///./src/views/pages/PlantDetail/MenuSharing/MenuSharing.vue?7d26","webpack:///./src/views/pages/PlantDetail/MenuSharing/UserItem/UserItem.vue?31ac","webpack:///./src/views/pages/PlantDetail/MenuSharing/UserItem/UserItem.ts","webpack:///./src/views/pages/PlantDetail/MenuSharing/UserItem/UserItem.vue","webpack:///./src/views/pages/PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.vue?5561","webpack:///./src/views/pages/PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.ts","webpack:///./src/views/pages/PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.vue","webpack:///./src/views/pages/PlantDetail/MenuSharing/MenuSharing.ts","webpack:///./src/views/pages/PlantDetail/MenuSharing/MenuSharing.vue"],"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","$t","onClick","handleHideDialog","_","this","isVisible","$emit","name","props","type","Boolean","required","watch","newValue","emits","__exports__","_hoisted_6","_component_InputText","plantName","onSubmit","modelValue","password","doConfirm","disabled","isConfirmDisabled","$nextTick","String","_hoisted_7","for","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","key","_component_UserItem","_component_ProgressSpinner","_component_ElPopover","_component_ConfirmDeleteUser","_component_DialogConfirmTransferOwnership","plant","sharedWith","user","userIndex","getUserInitials","isPopperVisible","trigger","placement","width","reference","togglePopper","invitePerson","id","placeholder","newUserToShare","owner","isMeTheOwner","onDeleteUser","handleDeleteUser","onTransferOwnership","handleTransferOwnership","isLoading","isConfirmDeleteUserVisible","onHideDialog","toggleConfirmDeleteUser","onConfirm","deleteUser","isVisibleTransferOwnershipConfirm","toggleTransferOwnershipConfirm","transferOwnership","_component_ElDropdownItem","_component_ElDropdownMenu","_component_ElDropdown","style","opacity","invitedEmail","userInitials","email","isOwner","isConfirmed","dropdown","handleDeleteSharingUser","userId","account","localAccountId","confirmed","displayName","surname","Object","computed","doShow","tempUser","plants","sharingPOST","desktopId","console","log","$toast","add","severity","summary","life","sharingDELETE","$router","push","shouldCurrentUserRightsBeRemoved","message","status","components","UserItem","ConfirmDeleteUser","DialogConfirmTransferOwnership"],"mappings":"6IAAA,W,oDCEMA,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,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AM,oBAd9B,mDAgBQsG,EAAUzG,KAAKJ,GAAG,0BAhB1B,KAiBY,KAAM8G,OAjBlB,OAkBW,MAlBX,gCAmBQD,EAAUzG,KAAKJ,GAAG,2BAnB1B,6BAsBII,KAAKgG,OAAOC,IAAI,CACdC,SAAU,QACVC,QAASM,EACThH,UAAU,EACV2G,KAAM,MA1BZ,yBA6BIpG,KAAK4D,WAAY,EACjB5D,KAAK0F,SAAW,KA9BpB,4EA1GF,+DAAyC,QAApB,GAAW,gBAlB/B,eAAQ,CACPvF,KAAM,cACNC,MAAO,CACLmC,MAAO,CACLlC,KAAMkF,OACNhF,UAAU,IAGdoG,WAAY,CACVC,SAAA,EACAC,kBAAA,GACAC,kCAAA,MAEFpG,MAAO,CAAC,mBAAoB,uBAC5B8E,SAAU,kBACL,eAAS,CAAC,gBAGI,c,UC1BrB,MAAM,GAA2B,IAAgB,GAAQ,CAAC,CAAC,SAAShH,KAErD","file":"js/page-entranceplant-detail~page-plant-detail.2d5a1b6e.js","sourcesContent":["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!./MenuSharing.scss?vue&type=style&index=0&lang=scss\"","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.$t(\"plantDetail.newUpdates\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"plantDetail.willRefreshToReflectChanges\")), 1),\n _hoisted_4,\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button--m\",\n onClick: _ctx.handleHideDialog\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: 'ConfirmPlantUpdated',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n },\n },\n emits: ['hide-dialog'],\n})\nexport default class ConfirmPlantUpdated extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\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","import { render } from \"./ConfirmPlantUpdated.vue?vue&type=template&id=94c1768c&ts=true\"\nimport script from \"./ConfirmPlantUpdated.ts?vue&type=script&lang=ts\"\nexport * from \"./ConfirmPlantUpdated.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 { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers, 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 = { class: \"p-field\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"hr\", null, null, -1)\nconst _hoisted_6 = { 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_InputText = _resolveComponent(\"InputText\")\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[3] || (_cache[3] = ($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.$t(\"AppResource.TransferOwnership\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"AppResource.TransferOwnershipPasswordRequest\", {\n plantName: _ctx.plantName,\n })), 1),\n _createVNode(\"form\", {\n class: \"w-100 mb-4\",\n onSubmit: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_InputText, {\n type: \"password\",\n class: \"w-100\",\n modelValue: _ctx.password,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.password = $event))\n }, null, 8, [\"modelValue\"])\n ])\n ], 32),\n _hoisted_5,\n _createVNode(\"div\", _hoisted_6, [\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 disabled: _ctx.isConfirmDisabled\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Confirm\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'DialogConfirmTransferOwnership',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n plantName: {\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 DialogConfirmTransferOwnership extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\n password = '';\n\n get isConfirmDisabled() {\n return !this.password;\n }\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n\n this.$nextTick(() => {\n this.password = '';\n });\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n doConfirm() {\n this.$emit('confirm', this.password);\n this.handleHideDialog();\n }\n}\n","import { render } from \"./DialogConfirmTransferOwnership.vue?vue&type=template&id=486a7d3d&ts=true\"\nimport script from \"./DialogConfirmTransferOwnership.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogConfirmTransferOwnership.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, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"list-bubbles mr-4\" }\nconst _hoisted_2 = { class: \"list-bubbles__label fs-14 text-gray\" }\nconst _hoisted_3 = { class: \"bt-icon\" }\nconst _hoisted_4 = { class: \"p-4 mb-3\" }\nconst _hoisted_5 = { class: \"fs-20 text-dark\" }\nconst _hoisted_6 = { class: \"p-field p-field-with-button\" }\nconst _hoisted_7 = {\n class: \"p-field-label\",\n for: \"person-name\"\n}\nconst _hoisted_8 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_9 = { class: \"ml-2\" }\nconst _hoisted_10 = { class: \"form-custom mt-5\" }\nconst _hoisted_11 = {\n class: \"p-field-label\",\n for: \"person-name\"\n}\nconst _hoisted_12 = { class: \"list-users-collab mt-3\" }\nconst _hoisted_13 = /*#__PURE__*/_createVNode(\"hr\", { class: \"my-0\" }, null, -1)\nconst _hoisted_14 = { class: \"d-flex justify-content-end p-4 py-3\" }\nconst _hoisted_15 = {\n key: 0,\n class: \"app-loader app-loader--contextual\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_UserItem = _resolveComponent(\"UserItem\")\n const _component_ProgressSpinner = _resolveComponent(\"ProgressSpinner\")\n const _component_ElPopover = _resolveComponent(\"ElPopover\")\n const _component_ConfirmDeleteUser = _resolveComponent(\"ConfirmDeleteUser\")\n const _component_DialogConfirmTransferOwnership = _resolveComponent(\"DialogConfirmTransferOwnership\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResource.PlantSharing\")), 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.plant.sharedWith, (user, userIndex) => {\n return (_openBlock(), _createBlock(_component_Button, {\n key: `user-${userIndex}`,\n class: \"p-button-secondary p-button-rounded p-button-sm no-click\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.getUserInitials(user)), 1)\n ]),\n _: 2\n }, 1024))\n }), 128)),\n _createVNode(_component_ElPopover, {\n visible: _ctx.isPopperVisible,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.isPopperVisible = $event)),\n trigger: \"manual\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context p-0\",\n width: \"500px\"\n }, {\n reference: _withCtx(() => [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-icon-only p-button-text\",\n onClick: _ctx.togglePopper\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-plus-outline.svg')\n ,\n \"aria-label\": \"icon-plus-outline\"\n }, null, 8, [\"src\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"h4\", _hoisted_5, _toDisplayString(_ctx.$t(\"AppResource.PlantSharing\")), 1),\n _createVNode(\"form\", {\n class: \"form-custom mt-5\",\n onSubmit: _cache[2] || (_cache[2] = _withModifiers(\n//@ts-ignore\n(...args) => (_ctx.invitePerson && _ctx.invitePerson(...args)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"label\", _hoisted_7, _toDisplayString(_ctx.$t(\"AppResource.InviteNewUser\")), 1),\n _createVNode(_component_InputText, {\n id: \"person-name\",\n type: \"email\",\n required: \"true\",\n class: \"w-100\",\n placeholder: _ctx.$t('AppResource.InviteUserDescription'),\n modelValue: _ctx.newUserToShare,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.newUserToShare = $event))\n }, null, 8, [\"placeholder\", \"modelValue\"]),\n _createVNode(_component_Button, {\n class: \"p-button-outlined p-button-rounded p-button-field\",\n type: \"submit\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_8, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-add-circle-outline.svg')\n ,\n \"aria-label\": \"icon-add-circle-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(\"AppResource.Invite\")), 1)\n ]),\n _: 1\n })\n ])\n ], 32),\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"label\", _hoisted_11, _toDisplayString(_ctx.$t(\"AppResource.UsersUpper\")), 1),\n _createVNode(\"ul\", _hoisted_12, [\n _createVNode(_component_UserItem, {\n user: _ctx.plant.owner,\n \"is-owner\": true\n }, null, 8, [\"user\"]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.plant.sharedWith, (user, userIndex) => {\n return (_openBlock(), _createBlock(_component_UserItem, {\n user: user,\n key: `user-item-${userIndex}`,\n \"is-me-the-owner\": _ctx.isMeTheOwner,\n onDeleteUser: _ctx.handleDeleteUser,\n onTransferOwnership: _ctx.handleTransferOwnership\n }, null, 8, [\"user\", \"is-me-the-owner\", \"onDeleteUser\", \"onTransferOwnership\"]))\n }), 128))\n ])\n ])\n ]),\n _hoisted_13,\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-raised p-button--m\",\n onClick: _ctx.togglePopper\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.DoneUpper\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_15, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]),\n _createVNode(_component_ConfirmDeleteUser, {\n \"is-visible\": _ctx.isConfirmDeleteUserVisible,\n onHideDialog: _ctx.toggleConfirmDeleteUser,\n onConfirm: _ctx.deleteUser\n }, null, 8, [\"is-visible\", \"onHideDialog\", \"onConfirm\"]),\n _createVNode(_component_DialogConfirmTransferOwnership, {\n \"plant-name\": _ctx.plantName,\n \"is-visible\": _ctx.isVisibleTransferOwnershipConfirm,\n onHideDialog: _ctx.toggleTransferOwnershipConfirm,\n onConfirm: _ctx.transferOwnership\n }, null, 8, [\"plant-name\", \"is-visible\", \"onHideDialog\", \"onConfirm\"])\n ], 64))\n}","import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex align-items-center\" }\nconst _hoisted_2 = { class: \"fs-14 text-dark\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"fs-14 pr-2\"\n}\nconst _hoisted_4 = { class: \"btn-stripped d-flex align-items-center\" }\nconst _hoisted_5 = { class: \"btn-stripped d-flex align-items-center text-danger\" }\nconst _hoisted_6 = { class: \"btn-stripped d-flex align-items-center text-danger\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\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\n return (_openBlock(), _createBlock(\"li\", _hoisted_1, [\n _createVNode(\"span\", {\n class: \"list-bubbles mr-2\",\n style: { opacity: _ctx.user.invitedEmail ? '.5' : '1' }\n }, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-sm p-button-secondary no-click\",\n style: {\"--size-bubble\":\"40px\"}\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.userInitials), 1)\n ]),\n _: 1\n })\n ], 4),\n _createVNode(\"div\", {\n style: { opacity: _ctx.user.invitedEmail ? '.5' : '1' },\n class: \"d-flex flex-column align-items-center justify-content-between mr-auto\"\n }, [\n _createVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.user.email ?? _ctx.user.invitedEmail), 1)\n ], 4),\n (_ctx.isOwner)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_3, _toDisplayString(_ctx.$t(\"AppResource.Owner\")), 1))\n : (_ctx.isConfirmed)\n ? (_openBlock(), _createBlock(_component_ElDropdown, {\n key: 1,\n trigger: \"hover\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_ElDropdownMenu, { style: {\"width\":\"240px\"} }, {\n default: _withCtx(() => [\n (_ctx.isMeTheOwner)\n ? (_openBlock(), _createBlock(_component_ElDropdownItem, {\n key: 0,\n onClick: _withModifiers(_ctx.handleTransferOwnership, [\"prevent\",\"stop\"])\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_4, _toDisplayString(_ctx.$t(\"AppResource.MakeOwner\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_ElDropdownItem, {\n onClick: _withModifiers(_ctx.handleDeleteSharingUser, [\"prevent\",\"stop\"])\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_5, _toDisplayString(_ctx.$t(\"AppResource.Remove\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Button, { class: \"p-button-text p-button-sm\" }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Collaborator\")), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }))\n : (_openBlock(), _createBlock(_component_ElDropdown, {\n key: 2,\n trigger: \"hover\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_ElDropdownMenu, { style: {\"width\":\"240px\"} }, {\n default: _withCtx(() => [\n _createVNode(_component_ElDropdownItem, {\n onClick: _withModifiers(_ctx.handleDeleteSharingUser, [\"prevent\",\"stop\"])\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_6, _toDisplayString(_ctx.$t(\"AppResource.Remove\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Button, { class: \"p-button-text p-button-sm\" }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.InvitePending\")), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }))\n ]))\n}","import { Vue, Options } from 'vue-class-component';\nimport { PropType } from 'vue';\n\nimport {\n PlantSharingDTO,\n UserDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { getUserInitialsForBubble } from '@/core/utils/utils';\nimport { mapState } from 'vuex';\nimport { AccountInfo } from '@azure/msal-browser';\n\n@Options({\n name: 'UserItem',\n props: {\n user: {\n required: true,\n type: Object as PropType,\n },\n isOwner: {\n type: Boolean,\n },\n isMeTheOwner: {\n type: Boolean,\n },\n },\n emits: ['delete-user', 'transfer-ownership'],\n computed: {\n ...mapState(['account']),\n },\n})\nexport default class UserItem extends Vue {\n user!: PlantSharingDTO | UserDTO;\n isOwner!: boolean;\n isMeTheOwner!: boolean;\n account!: AccountInfo;\n\n get isUserMe() {\n return (\n ((this.user as PlantSharingDTO).userId || (this.user as UserDTO).id) ===\n this.account.localAccountId\n );\n }\n\n get isConfirmed() {\n if ('confirmed' in this.user) {\n return !!this.user.confirmed;\n }\n return false;\n }\n\n get userInitials() {\n return getUserInitialsForBubble(this.user);\n }\n\n get userDisplayName() {\n let displayName = '';\n\n if (this.user.name) {\n displayName += this.user.name;\n }\n\n if (this.user.surname) {\n displayName += ` ${this.user.surname}`;\n }\n\n return displayName;\n }\n\n handleDeleteSharingUser() {\n this.$emit('delete-user', this.user);\n }\n\n handleTransferOwnership() {\n this.$emit('transfer-ownership', this.user);\n }\n}\n","import { render } from \"./UserItem.vue?vue&type=template&id=6b908cae&ts=true\"\nimport script from \"./UserItem.ts?vue&type=script&lang=ts\"\nexport * from \"./UserItem.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 { 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.$t(\"AppResource.AreYouSureToRemoveUser\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"AppResource.AreYouSureToRemoveUserDescription\")), 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.No\")), 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.Yes\")), 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: 'ConfirmDeleteUser',\n props: {\n isVisible: {\n type: Boolean,\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 ConfirmDeleteUser extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\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 \"./ConfirmDeleteUser.vue?vue&type=template&id=bddcd266&ts=true\"\nimport script from \"./ConfirmDeleteUser.ts?vue&type=script&lang=ts\"\nexport * from \"./ConfirmDeleteUser.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 { PropType } from 'vue';\nimport { mapState } from 'vuex';\nimport UserItem from './UserItem/UserItem.vue';\nimport { AccountInfo } from '@azure/msal-browser';\nimport plantsClient from '@/core/services/plants';\nimport { Vue, Options } from 'vue-class-component';\nimport {\n PlantDetailDTO,\n PlantSharingDTO,\n TransferOwnershipDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { getUserInitialsForBubble } from '@/core/utils/utils';\nimport ConfirmDeleteUser from './ConfirmDeleteUser/ConfirmDeleteUser.vue';\nimport DialogConfirmTransferOwnership from '@/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.vue';\n\n@Options({\n name: 'MenuSharing',\n props: {\n plant: {\n type: Object as PropType,\n required: true,\n },\n },\n components: {\n UserItem,\n ConfirmDeleteUser,\n DialogConfirmTransferOwnership,\n },\n emits: ['add-invited-user', 'remove-sharing-user'],\n computed: {\n ...mapState(['account']),\n },\n})\nexport default class MenuSharing extends Vue {\n plant!: PlantDetailDTO;\n getUserInitials = getUserInitialsForBubble;\n\n isLoading = false;\n isPopperVisible = false;\n isConfirmDeleteUserVisible = false;\n isVisibleTransferOwnershipConfirm = false;\n\n doShow = false;\n newUserToShare: string | null = null;\n\n tempUser: PlantSharingDTO | null = null;\n account!: AccountInfo;\n\n get isMeTheOwner() {\n return this.plant.owner?.id === this.account?.localAccountId;\n }\n\n get plantName() {\n if (this.plant) {\n return this.plant.name;\n }\n\n return '';\n }\n\n togglePopper() {\n this.isPopperVisible = !this.isPopperVisible;\n }\n\n async invitePerson() {\n this.isLoading = true;\n\n try {\n await plantsClient.sharingPOST(\n this.plant.desktopId ?? -1,\n this.newUserToShare ?? ''\n );\n\n this.$emit('add-invited-user', this.newUserToShare);\n this.newUserToShare = '';\n } catch (error) {\n console.log(error);\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.isLoading = false;\n }\n }\n\n async handleDeleteUser(user: PlantSharingDTO) {\n this.toggleConfirmDeleteUser();\n this.tempUser = user;\n }\n\n async handleTransferOwnership(user: PlantSharingDTO) {\n this.toggleTransferOwnershipConfirm();\n this.tempUser = user;\n }\n\n toggleConfirmDeleteUser() {\n this.isConfirmDeleteUserVisible = !this.isConfirmDeleteUserVisible;\n this.isPopperVisible = !this.isPopperVisible;\n }\n\n toggleTransferOwnershipConfirm() {\n this.isVisibleTransferOwnershipConfirm = !this\n .isVisibleTransferOwnershipConfirm;\n this.isPopperVisible = !this.isPopperVisible;\n }\n\n async deleteUser() {\n this.isLoading = true;\n\n try {\n await plantsClient.sharingDELETE(\n this.plant.desktopId ?? -1,\n this.tempUser?.confirmed\n ? this.tempUser?.email\n : this.tempUser?.invitedEmail\n );\n if (this.tempUser?.userId === this.account.localAccountId) {\n this.$router.push({\n name: 'page-plants-hub',\n });\n } else {\n this.$emit('remove-sharing-user', this.tempUser);\n }\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.isLoading = false;\n this.tempUser = null;\n }\n }\n\n async transferOwnership(password: string) {\n this.isLoading = true;\n\n try {\n await plantsClient.transferOwnership(\n this.plant.desktopId ?? -1,\n this.tempUser?.confirmed\n ? this.tempUser?.email\n : this.tempUser?.invitedEmail,\n new TransferOwnershipDTO({\n shouldCurrentUserRightsBeRemoved: false,\n password,\n })\n );\n this.$router.push({ name: 'page-plants-hub' });\n } catch (error) {\n let message = this.$t('general.operationError');\n switch (error.status) {\n case 400:\n message = this.$t('general.invalidPassword');\n break;\n }\n this.$toast.add({\n severity: 'error',\n summary: message,\n closable: true,\n life: 3000,\n });\n } finally {\n this.isLoading = false;\n this.tempUser = null;\n }\n }\n}\n","import { render } from \"./MenuSharing.vue?vue&type=template&id=1af167c6&ts=true\"\nimport script from \"./MenuSharing.ts?vue&type=script&lang=ts\"\nexport * from \"./MenuSharing.ts?vue&type=script&lang=ts\"\n\nimport \"./MenuSharing.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":""}