{"version":3,"sources":["webpack:///./src/components/unit-details-component/unit-details.html","webpack:///./src/shared/models/unit-model.ts","webpack:///./src/components/unit-details-component/unit-details.ts","webpack:///./src/components/unit-details-component/unit-details.ts?c81d","webpack:///./src/components/unit-details-component/unit-details.vue","webpack:///./src/components/unit-details-component/unit-details.scss?f46b","webpack:///./src/shared/models/user-model.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","on","$event","$router","go","_v","_s","$t","unit","name","getCommonDetails","model","value","callback","$$v","$set","expression","staticStyle","operationalDomain","ibis","_e","marpol","marsec","columnsHeadersusers","users","length","scopedSlots","_u","key","fn","props","item","username","lastLogin","params","id","gotoUpdate","confirmDeleteUnit","dialogDelete","dialogDeleteMessage","deleteUnit","dialogDeleteError","staticRenderFns","Unit","_createClass","fields","_classCallCheck","shortName","groupId","countryCode","spocId","spocName","visibleMap","managerId","managerName","Object","assign","UnitDetailsComponent","_Vue","_this","_callSuper","restService","Vue","prototype","$restService","manager","User","Array","unitName","_inherits","get","text","i18n","t","sortable","align","_this2","parseInt","$route","undefined","getUnitById","then","result","data","setUnitUsers","setUnitOperationDomain","setmanagerName","catch","error","console","getManagerNameById","_this3","getUnitusersById","fetchUnitData","_this4","getGroupOperationDomain","oldValue","personaldetails","push","CountriesLabelConverter","getCountryName","router","unitId","_this5","deleteUnitAndGroup","__decorate","Watch","Component","components","InformationsComponent","SecondHeader","component","expirationDate","status","firstName","lastName","hasIbisRights","hasMarsecRights","hasMarpolRights","userName","email","registeredAt","password","phoneNumber","country","expirationDatestatus"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,OAAO,GAAG,GAAK,eAAe,MAAQ,GAAG,OAAO,GAAG,IAAM,KAAK,CAACF,EAAG,MAAMA,EAAG,WAAW,CAACE,MAAM,CAAC,OAAO,GAAG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,WCb0U,I,wBCQ3VsD,EAAY,eACd,EACAvH,EACAkD,GACA,EACA,KACA,WACA,MAIa,aAAAqE,E,6CCnBf,W,gGCEa7C,G,UAAItB,gBA2Bb,SAAAsB,EAAYrB,GAAsBC,eAAA,KAAAoB,GAzB3B,KAAA/B,GAAa,GACb,KAAAF,UAAoB,GACpB,KAAA+E,eAAyB,GACzB,KAAAC,OAAiB,GACjB,KAAAxG,KAAe,GACf,KAAA6F,OAAiB,EACjB,KAAAlC,SAAmB,GACnB,KAAA8C,UAAoB,GACpB,KAAAC,SAAmB,GACnB,KAAA9D,UAAoB,GACpB,KAAAC,YAAsB,GACtB,KAAAJ,OAAiB,GACjB,KAAAC,SAAmB,GACnB,KAAAiE,eAAyB,EACzB,KAAAC,iBAA2B,EAC3B,KAAAC,iBAA2B,EAC3B,KAAAvE,UAAoB,GACpB,KAAAwE,SAAmB,GACnB,KAAAC,MAAgB,GAChB,KAAAC,aAAuB,GACvB,KAAAC,SAAmB,GACnB,KAAAC,YAAsB,GACtB,KAAAC,QAAkB,GAClB,KAAA5F,SAAmB,GACnB,KAAA6F,qBAA+B,GAE9BhF,GACAU,OAAOC,OAAO9D,KAAMmD,Q","file":"js/chunk-f23e5e48.d20551c2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"ml-5\":\"\",\"id\":\"unit-details\",\"fluid\":\"\",\"mt-4\":\"\",\"mb5\":\"\"}},[_c('br'),_c('v-layout',{attrs:{\"ml-2\":\"\",\"id\":\"trail\",\"mt-4\":\"\",\"align-center\":\"\",\"justify-start\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{staticClass:\"title\",attrs:{\"xs12\":\"\",\"ml-2\":\"\"}},[_c('a',{on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_vm._v(\"← \"+_vm._s(_vm.$t('common.back')))])])],1),_c('br'),_c('v-layout',{attrs:{\"id\":\"detail-titles\",\"ml-2\":\"\",\"text-xs-left\":\"\",\"text-md-left\":\"\",\"mt-2\":\"\",\"wrap\":\"\",\"row\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"md4\":\"\",\"id\":\"operational-domain-title\"}},[_c('h2',{staticClass:\"light-blue--text text--darken-4\",attrs:{\"text-xs-center\":\"\",\"mt-2\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('title.unitDetails'))+\"\\n \")])])],1),_c('v-layout',{attrs:{\"id\":\"detail-container\",\"wrap\":\"\",\"row\":\"\",\"xs12\":\"\",\"pa-2\":\"\",\"justify-center\":\"\"}},[_c('v-flex',{staticClass:\"text-xs-center\",attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md4\":\"\",\"lg4\":\"\",\"ma-3\":\"\"}},[_c('v-card',[_c('br'),_c('h2',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('title.unitDetails'))+\" \"+_vm._s(this.unit.name)+\" \")]),_c('v-layout',{attrs:{\"row\":\"\",\"mt-3\":\"\",\"pa-1\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('informations-component',{attrs:{\"informations\":this.getCommonDetails}})],1)],1),_c('v-layout',{attrs:{\"row\":\"\",\"pa-1\":\"\"}}),_c('v-layout',{attrs:{\"row\":\"\",\"pa-1\":\"\"}}),_c('v-layout',{attrs:{\"row\":\"\",\"pa-1\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('table',{staticClass:\"tableForm\"},[_c('tbody',[_c('tr',[_c('td',{staticClass:\"column-visibleMap black--text\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('unitDetails.unitVisibleMap'))+\"\\n \")]),_c('td',{staticClass:\"text-xs-center\"},[_c('v-checkbox',{attrs:{\"disabled\":\"\"},model:{value:(_vm.unit.visibleMap),callback:function ($$v) {_vm.$set(_vm.unit, \"visibleMap\", $$v)},expression:\"unit.visibleMap\"}})],1)])])])])],1),_c('br')],1)],1),_c('v-flex',{staticClass:\"text-xs-center\",attrs:{\"xs12\":\"\",\"sm12\":\"\",\"lg4\":\"\",\"ma-3\":\"\"}},[_c('v-card',[_c('br'),_c('h2',{staticClass:\"font-weight-bold\"},[_vm._v(\" \"+_vm._s(_vm.$t('title.managerInfos')))]),_c('v-layout',{attrs:{\"row\":\"\",\"text-xs-center\":\"\",\"mt-4\":\"\",\"pa-1\":\"\"}},[_c('v-flex',{attrs:{\"x12\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"text-xs-center\":\"\"}},[_c('table',{staticClass:\"tableForm\"},[_c('tbody',[_c('tr',[_c('td',{staticClass:\"column-key text-xs-center\"}),_c('td',{staticClass:\"text-xs-center font-weight-bold\",staticStyle:{\"color\":\"#2b5c9b\"}},[_vm._v(\"Ibis\")]),_c('td',{staticClass:\"text-xs-center font-weight-bold\",staticStyle:{\"color\":\"#2b5c9b\"}},[_vm._v(\"Marpol\")]),_c('td',{staticClass:\"text-xs-center font-weight-bold\",staticStyle:{\"color\":\"#2b5c9b\"}},[_vm._v(\"Marsec\")])]),_c('tr',[_c('td',{staticClass:\"column-key text-xs-center black--text\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('unitDetails.unitPrivileges'))+\"\\n \")]),_c('td',{staticClass:\"text-xs-center\"},[(_vm.operationalDomain.ibis === true)?_c('font-awesome-icon',{staticClass:\"greyControl\",attrs:{\"icon\":\"check-circle\"}}):_vm._e()],1),_c('td',{staticClass:\"text-xs-center\"},[(_vm.operationalDomain.marpol === true)?_c('font-awesome-icon',{staticClass:\"greyControl\",attrs:{\"icon\":\"check-circle\"}}):_vm._e()],1),_c('td',{staticClass:\"text-xs-center\"},[(_vm.operationalDomain.marsec === true)?_c('font-awesome-icon',{staticClass:\"greyControl\",attrs:{\"icon\":\"check-circle\"}}):_vm._e()],1)])])]),_c('h2',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.$t('unitDetails.assignedUsers')))]),_c('v-layout',{attrs:{\"row\":\"\",\"text-xs-center\":\"\",\"mt-4\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"text-xs-center\":\"\"}},[_c('v-data-table',{attrs:{\"headers\":_vm.columnsHeadersusers,\"items\":_vm.users,\"hide-actions\":_vm.users.length < 5},scopedSlots:_vm._u([{key:\"items\",fn:function(props){return [_c('td',{staticClass:\"text-xs-center column-value\"},[_vm._v(\"\\n \"+_vm._s(props.item.name)+\" \")]),_c('td',{staticClass:\"text-xs-center\"},[_vm._v(\"\\n \"+_vm._s(props.item.username))]),_c('td',{staticClass:\"text-xs-center\"},[_vm._v(\"\\n \"+_vm._s(props.item.lastLogin)+\"\\n \")]),_c('td',{staticClass:\"text-xs-center\"},[_c('v-btn',{attrs:{\"small\":\"\",\"color\":\"primary\",\"to\":{ name: 'user', params: { id: props.item.id } }}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('common.details')))])],1)]}}])}),_c('br')],1)],1)],1)],1)],1)],1)],1),_c('v-flex',{staticClass:\"text-xs-center\",attrs:{\"xs12\":\"\",\"mb5\":\"\"}},[_c('div',{attrs:{\"id\":\"action-container\",\"mb5\":\"\"}},[_c('div',{staticClass:\"row mx-auto\",attrs:{\"mb5\":\"\"}},[_c('v-btn',{staticClass:\"white--text\",attrs:{\"small\":\"\",\"color\":\"#072b4f\"},on:{\"click\":function($event){return _vm.gotoUpdate()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"control.actions.update\")))]),_c('v-btn',{staticClass:\"white--text\",attrs:{\"small\":\"\",\"color\":\"#ff6c5f\"},on:{\"click\":function($event){return _vm.confirmDeleteUnit()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"control.actions.delete\")))])],1)])])],1),_c('v-dialog',{attrs:{\"width\":\"500\"},model:{value:(_vm.dialogDelete),callback:function ($$v) {_vm.dialogDelete=$$v},expression:\"dialogDelete\"}},[_c('v-card',[_c('v-card-text',[_vm._v(\"\\n \"+_vm._s(_vm.dialogDeleteMessage)+\"\\n \")]),_c('v-divider'),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":function($event){return _vm.deleteUnit()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"spoc.actions.delete\"))+\"\\n \")]),_c('v-btn',{attrs:{\"color\":\"grey\",\"text\":\"\"},on:{\"click\":function($event){_vm.dialogDelete = false}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"spoc.actions.cancel\"))+\"\\n \")])],1)],1)],1),_c('v-dialog',{attrs:{\"max-width\":\"500\"},model:{value:(_vm.dialogDeleteError),callback:function ($$v) {_vm.dialogDeleteError=$$v},expression:\"dialogDeleteError\"}},[_c('v-card',[_c('v-card-text',[_vm._v(\"\\n \"+_vm._s(_vm.dialogDeleteMessage)+\"\\n \")]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"grey\",\"text\":\"\"},on:{\"click\":function($event){_vm.dialogDeleteError = false}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"spoc.actions.cancel\"))+\"\\n \")])],1)],1)],1),_c('br'),_c('br')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Spoc } from \"./spoc-model\";\n\n\nexport class Unit {\n\n public id: number = 0;\n public name: string = \"\";\n public shortName: string = \"\";\n public groupId: string = \"\";\n public countryCode: string = \"\";\n public spocId: number = 0;\n public spocName: string = \"\";\n public visibleMap: boolean = false;\n\n //public manager: User = new User();\n public managerId: string = \"\";\n public managerName: string = \"\";\n\n constructor(fields?: Partial) {\n if (fields) {\n Object.assign(this, fields);\n }\n }\n}\n","import { RestService } from \"@/services/rest-service\";\nimport { i18n } from \"@/main\";\nimport { Vue, Component, Prop, Watch } from \"vue-property-decorator\";\nimport SecondHeader from \"@/components/navigation-second-header-component/navigation-second-header\";\nimport InformationsComponent from \"../informations-component/informations\";\nimport { Unit } from \"@/shared/models/unit-model\";\nimport { User } from \"@/shared/models/user-model\";\nimport CountriesLabelConverter from \"@/utils/countriesLabelConverter\";\nimport router from \"@/router\";\n@Component({\n components: { InformationsComponent, UnitDetailsComponent, SecondHeader }\n})\n\nexport default class UnitDetailsComponent extends Vue {\n\n private id;\n private managerId;\n private spocName: any;\n private countryCode: string;\n private unitName: string;\n private restService: RestService;\n private unit: any;\n private users: Array<{}>;\n private manager: User;\n private operationalDomain: Array;\n private dialogDeleteMessage: any;\n private dialogDelete: boolean;\n private dialogDeleteError: boolean;\n constructor() {\n super();\n this.dialogDeleteMessage = \"\";\n this.dialogDelete = false;\n this.dialogDeleteError = false;\n this.restService = Vue.prototype.$restService;\n this.unit = new Unit();\n this.manager = new User();\n this.users = new Array();\n this.unitName = \"\";\n this.countryCode = \"\";\n this.operationalDomain = new Array();\n }\n\n get columnsHeadersusers() {\n return [\n {\n value: \"name\",\n text: i18n.t(\"users.name\"),\n sortable: false,\n align: \"center\"\n\n },\n {\n value: \"username\",\n text: i18n.t(\"userDetails.userName\"),\n sortable: false,\n align: \"center\"\n\n },\n {\n value: \"lastLogin\",\n text: i18n.t(\"userDetails.lastLogin\"),\n sortable: false,\n align: \"center\"\n },\n {\n\n text: i18n.t(\"details.details\"),\n sortable: false,\n align: \"center\"\n }\n\n ];\n }\n\n public fetchUnitData() {\n this.id = parseInt(this.$route.params.id, undefined);\n\n this.restService\n .getUnitById(this.id)\n .then((result: { data: any; }) => {\n this.unit = new Unit(result.data);\n this.countryCode = this.unit.countryCode;\n this.unitName = this.unit.name;\n this.managerId = this.unit.managerId;\n this.spocName = this.unit.spocId;\n this.setUnitUsers(this.unit.groupId);\n this.setUnitOperationDomain(this.unit.groupId);\n this.setmanagerName(this.unit.managerId, this.unit);\n })\n .catch((error: string) =>\n // tslint:disable-next-line:no-console\n console.error(\"Can't connect to Aquatrack server. \" + error)\n );\n }\n public setmanagerName(managerId: string, unit: any | undefined) {\n this.restService\n .getManagerNameById(managerId)\n .then((result) => {\n unit.managerName = result.data;\n })\n .catch((error) => {\n // tslint:disable-next-line:no-console\n console.error(\"Can't connect to Aquatrack server. \" + error);\n });\n }\n public setUnitUsers(groupId: any) {\n this.restService\n .getUnitusersById(groupId)\n .then((result) => {\n this.users = result.data;\n\n })\n .catch((error) => {\n // tslint:disable-next-line:no-console\n console.error(\"Can't connect to Aquatrack server. \" + error);\n });\n }\n public created() {\n this.fetchUnitData();\n }\n public setUnitOperationDomain(groupId: any) {\n this.restService\n .getGroupOperationDomain(groupId)\n .then((result) => {\n this.operationalDomain = result.data;\n })\n .catch((error) => {\n // tslint:disable-next-line:no-console\n console.error(\"Can't connect to Aquatrack server. \" + error);\n });\n }\n @Watch(\"id\")\n private onIdChanged(value: string, oldValue: string) {\n this.fetchUnitData();\n }\n get getCommonDetails(): Array {\n const personaldetails: Array = new Array();\n personaldetails.push({\n key: \"id\",\n value: this.id\n });\n personaldetails.push({\n key: i18n.t(\"unitDetails.unitName\"),\n value: this.unit.name\n });\n personaldetails.push({\n key: i18n.t(\"unitDetails.shortName\"),\n value: this.unit.shortName\n });\n personaldetails.push({\n key: i18n.t(\"unitDetails.country\"),\n value: CountriesLabelConverter.getCountryName(this.unit.countryCode)\n });\n personaldetails.push({\n key: i18n.t(\"unitDetails.manager\"),\n value: this.unit.managerName\n });\n personaldetails.push({\n key: i18n.t(\"unitDetails.spoc\"),\n value: this.unit.spocName\n });\n return personaldetails;\n }\n private gotoUpdate() {\n router.push({ name: \"add-update-unit\", params: { unitId: this.id } });\n }\n private confirmDeleteUnit() {\n if (this.users.length > 0) {\n this.dialogDeleteMessage = \"ERROR : This Unit has \" + this.users.length + \" member(s).\";\n this.dialogDeleteError = true;\n\n } else {\n this.dialogDeleteMessage = i18n.t(\"unit.message.deleteUnit\");\n this.dialogDelete = true;\n }\n }\n private deleteUnit() {\n this.restService.deleteUnitAndGroup(this.unit.id, this.unit.groupId).then((result) => {\n this.dialogDelete = false;\n router.go(-1);\n }).catch((error) => {\n // tslint:disable-next-line: no-console\n console.error(\"Can't connect to Aquatrack server. \" + error);\n });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/ts-loader/index.js??ref--13-3!./unit-details.ts?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/ts-loader/index.js??ref--13-3!./unit-details.ts?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./unit-details.html?vue&type=template&id=844db958&scoped=true&external\"\nimport script from \"./unit-details.ts?vue&type=script&lang=js&external\"\nexport * from \"./unit-details.ts?vue&type=script&lang=js&external\"\nimport style0 from \"./unit-details.scss?vue&type=style&index=0&id=844db958&prod&scoped=true&lang=scss&external\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"844db958\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/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!./unit-details.scss?vue&type=style&index=0&id=844db958&prod&scoped=true&lang=scss&external\"","\n\nexport class User {\n\n public id: string = \"\";\n public lastLogin: string = \"\";\n public expirationDate: string = \"\";\n public status: string = \"\";\n public name: string = \"\";\n public unitId: number = 0;\n public unitName: string = \"\";\n public firstName: string = \"\";\n public lastName: string = \"\";\n public managerId: string = \"\";\n public managerName: string = \"\";\n public spocId: string = \"\";\n public spocName: string = \"\";\n public hasIbisRights: boolean = false;\n public hasMarsecRights: boolean = false;\n public hasMarpolRights: boolean = false;\n public shortName: string = \"\";\n public userName: string = \"\";\n public email: string = \"\";\n public registeredAt: string = \"\";\n public password: string = \"\";\n public phoneNumber: string = \"\";\n public country: string = \"\";\n public username: string = \"\";\n public expirationDatestatus: string = \"\";\n constructor(fields?: Partial) {\n if (fields) {\n Object.assign(this, fields);\n }\n }\n}\n"],"sourceRoot":""}