{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.regexp.test.js","webpack:///./src/components/spoc-details-component/spoc-details.scss?8639","webpack:///./src/shared/models/spoc-model.ts","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack:///./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack:///./node_modules/core-js/modules/es.number.is-integer.js","webpack:///./src/components/spoc-details-component/spoc-details.html","webpack:///./src/components/spoc-details-component/spoc-details.ts","webpack:///./src/components/spoc-details-component/spoc-details.ts?2d31","webpack:///./src/components/spoc-details-component/spoc-details.vue","webpack:///./node_modules/core-js/internals/is-integral-number.js"],"names":["$","call","isCallable","anObject","toString","DELEGATES_TO_EXEC","execCalled","re","exec","apply","this","arguments","test","nativeTest","target","proto","forced","S","R","string","result","Spoc","_createClass","fields","_classCallCheck","id","name","shortName","address","postCode","city","country","email","phoneNumber","faxNumber","webPage","additionalNotes","Object","assign","_arrayWithHoles","r","Array","isArray","_iterableToArrayLimit","l","t","Symbol","iterator","e","n","i","u","a","f","o","next","done","push","value","length","_nonIterableRest","TypeError","_slicedToArray","unsupportedIterableToArray","isIntegralNumber","stat","isInteger","render","_vm","_h","$createElement","_c","_self","attrs","staticClass","on","$event","gotoBack","_v","_s","$t","getCommonDetails","getAdditionalNotesValue","columnsHeadersunits","units","scopedSlots","_u","key","fn","props","params","item","gotoUpdate","confirmDeleteSpoc","model","callback","$$v","dialogDelete","expression","dialogDeleteMessage","deleteSpoc","dialogDeleteError","staticRenderFns","SpocDetailsComponent","_Vue","_this","_callSuper","dialog","countryConverted","dialogResult","valid","dialogMessage","restService","Vue","prototype","$restService","spoc","numberRules","v","phoneNumberRules","faxNumberRules","webPageRules","requiredRule","nameRules","emailRules","countries","_step","_iterator","_createForOfIteratorHelper","CountriesLabelConverter","getCountriesNamesIsoMap","s","_step$value","text","html","err","_inherits","origin","applicationStore","commit","get","i18n","sortable","align","_this2","parseInt","$route","undefined","getSpocById","then","data","catch","error","console","setSpocUnits","spocId","_this3","Number","getListUnitsBySpocId","fetchSpocData","oldValue","getCountryName","personaldetails","router","_this4","status","state","navigation","unitCount","__decorate","Prop","Watch","Component","components","InformationsComponent","SecondHeader","component","isObject","floor","Math","module","exports","it","isFinite"],"mappings":"kHAEA,EAAQ,QACR,IAAIA,EAAI,EAAQ,QACZC,EAAO,EAAQ,QACfC,EAAa,EAAQ,QACrBC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QAEnBC,EAAoB,WACtB,IAAIC,GAAa,EACbC,EAAK,OAKT,OAJAA,EAAGC,KAAO,WAER,OADAF,GAAa,EACN,IAAIE,KAAKC,MAAMC,KAAMC,aAEJ,IAAnBJ,EAAGK,KAAK,QAAmBN,EAPZ,GAUpBO,EAAa,IAAID,KAIrBZ,EAAE,CAAEc,OAAQ,SAAUC,OAAO,EAAMC,QAASX,GAAqB,CAC/DO,KAAM,SAAUK,GACd,IAAIC,EAAIf,EAASO,MACbS,EAASf,EAASa,GAClBT,EAAOU,EAAEV,KACb,IAAKN,EAAWM,GAAO,OAAOP,EAAKY,EAAYK,EAAGC,GAClD,IAAIC,EAASnB,EAAKO,EAAMU,EAAGC,GAC3B,OAAe,OAAXC,IACJjB,EAASiB,IACF,O,oCChCX,W,kGCAaC,G,UAAIC,gBAeb,SAAAD,EAAYE,GAAsBC,eAAA,KAAAH,GAb3B,KAAAI,GAAa,EACb,KAAAC,KAAe,GACf,KAAAC,UAAoB,GACpB,KAAAC,QAAkB,GAClB,KAAAC,SAAmB,GACnB,KAAAC,KAAe,GACf,KAAAC,QAAkB,GAClB,KAAAC,MAAgB,GAChB,KAAAC,YAAsB,GACtB,KAAAC,UAAoB,GACpB,KAAAC,QAAkB,GAClB,KAAAC,gBAA0B,GAGzBb,GACAc,OAAOC,OAAO5B,KAAMa,Q,yDCjBhC,SAASgB,EAAgBC,GACvB,GA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,OAAO,sBACxByB,EAAKvF,eAEV0E,OAAM,SAACC,GAENC,QAAQD,MAAMA,QAGrB,CAAAjE,IAAA,WAAA7B,MAEO,WACJyG,OAAO1G,KAAK,CAAE/B,KAAMgH,OAAiB4B,MAAMC,WAAW9B,WACzD,CAAAlD,IAAA,oBAAA7B,MAEO,WACAhD,KAAK0E,MAAMzB,OAAS,GACpBjD,KAAKyF,oBAAsBzF,KAAKyF,oBAAsB0C,UAAKhG,EAAE,4DAA6D,CAAE2H,UAAW9J,KAAK0E,MAAMzB,SAAUvD,WAC5JM,KAAK2F,mBAAoB,IAEzB3F,KAAKyF,oBAAsB0C,UAAKhG,EAAE,4CAA4CzC,WAC9EM,KAAKuF,cAAe,OA9OS,CAASgB,QAG9CwD,eAAA,CADCC,kB,yBAGDD,eAAA,CADCC,kB,6BAmJDD,eAAA,CADCE,eAAM,O,gCAtJUpE,EAAoBkE,eAAA,CAJxCG,eAAU,CACPC,WAAY,CAAEC,6BAAuBvE,uBAAsBwE,wBAG1CxE,WCd0U,I,wBCQ3VyE,EAAY,eACd,EACA7G,EACAmC,GACA,EACA,KACA,WACA,MAIa,aAAA0E,E,2CClBf,IAAIC,EAAW,EAAQ,QAEnBC,EAAQC,KAAKD,MAKjBE,EAAOC,QAAUxB,OAAO3F,WAAa,SAAmBoH,GACtD,OAAQL,EAASK,IAAOC,SAASD,IAAOJ,EAAMI,KAAQA","file":"js/chunk-534cb91a.7f7b8639.js","sourcesContent":["'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar anObject = require('../internals/an-object');\nvar toString = require('../internals/to-string');\n\nvar DELEGATES_TO_EXEC = function () {\n var execCalled = false;\n var re = /[ac]/;\n re.exec = function () {\n execCalled = true;\n return /./.exec.apply(this, arguments);\n };\n return re.test('abc') === true && execCalled;\n}();\n\nvar nativeTest = /./.test;\n\n// `RegExp.prototype.test` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.test\n$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {\n test: function (S) {\n var R = anObject(this);\n var string = toString(S);\n var exec = R.exec;\n if (!isCallable(exec)) return call(nativeTest, R, string);\n var result = call(exec, R, string);\n if (result === null) return false;\n anObject(result);\n return true;\n }\n});\n","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!./spoc-details.scss?vue&type=style&index=0&id=67d2f607&prod&scoped=true&lang=scss&external\"","export class Spoc {\n\n public id: number = 0;\n public name: string = \"\";\n public shortName: string = \"\";\n public address: string = \"\";\n public postCode: string = \"\";\n public city: string = \"\";\n public country: string = \"\";\n public email: string = \"\";\n public phoneNumber: string = \"\";\n public faxNumber: string = \"\";\n public webPage: string = \"\";\n public additionalNotes: string = \"\";\n\n constructor(fields?: Partial) {\n if (fields) {\n Object.assign(this, fields);\n }\n }\n}\n","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","'use strict';\nvar $ = require('../internals/export');\nvar isIntegralNumber = require('../internals/is-integral-number');\n\n// `Number.isInteger` method\n// https://tc39.es/ecma262/#sec-number.isinteger\n$({ target: 'Number', stat: true }, {\n isInteger: isIntegralNumber\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"ml-3\":\"\",\"id\":\"spoc-details\",\"fluid\":\"\",\"mt-4\":\"\"}},[_c('br'),_c('v-layout',{attrs:{\"ml-5\":\"\",\"id\":\"trail\",\"align-center\":\"\",\"justify-start\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{staticClass:\"title\",attrs:{\"xs12\":\"\",\"ml-2\":\"\"}},[_c('a',{on:{\"click\":function($event){return _vm.gotoBack()}}},[_vm._v(\"← Back\")])])],1),_c('br'),_c('v-layout',{attrs:{\"id\":\"detail-titles\",\"text-xs-left\":\"\",\"text-md-left\":\"\",\"mt-2\":\"\",\"wrap\":\"\",\"row\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"md4\":\"\",\"ml-2\":\"\",\"id\":\"operational-domain-title\"}},[_c('h2',{staticClass:\"light-blue--text text--darken-4\",attrs:{\"text-xs-center\":\"\",\"mt-2\":\"\"}},[_vm._v(_vm._s(_vm.$t(\"spoc.spocDetailsTitle\"))+\"\\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(\"spoc.spocDetailsTitle\")))]),_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-flex',{attrs:{\"xs12\":\"\"}},[_c('h4',[_vm._v(_vm._s(_vm.$t(\"spoc.remarks\")))])])],1),_c('v-layout',{attrs:{\"row\":\"\",\"pa-1\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"pa-2\":\"\"}},[_c('v-textarea',{attrs:{\"box\":\"\",\"name\":\"input-7-1\",\"value\":this.getAdditionalNotesValue,\"hint\":\"Additional notes on this spoc\",\"readonly\":\"\"}})],1)],1),_c('br')],1)],1),_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(\"spoc.spocunitsTitle\")))]),_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('v-data-table',{attrs:{\"headers\":_vm.columnsHeadersunits,\"items\":_vm.units,\"hide-actions\":_vm.units.length < 5},scopedSlots:_vm._u([{key:\"items\",fn:function(props){return [_c('td',{staticClass:\"text-xs-center column-value\"},[_c('router-link',{staticClass:\"notunderline black--text\",attrs:{\"to\":{ name: 'unit', params: { id: props.item.id } }}},[_vm._v(\"\\n \"+_vm._s(props.item.shortName)+\"\\n \")])],1),_c('td',{staticClass:\"text-xs-center\"},[_vm._v(\"\\n \"+_vm._s(props.item.name))]),_c('td',{staticClass:\"text-xs-center\"},[_vm._v(\"\\n \"+_vm._s(props.item.city)+\"\\n \")])]}}])}),_c('br')],1)],1)],1)],1)],1)],1),_c('v-layout',{attrs:{\"row\":\"\"}},[_c('v-flex',{staticClass:\"text-xs-center\",attrs:{\"xs12\":\"\"}},[_c('div',{attrs:{\"id\":\"action-container\"}},[_c('div',{staticClass:\"row mx-auto\"},[_c('v-btn',{staticClass:\"btn-navy\",attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.gotoUpdate()}}},[_vm._v(_vm._s(_vm.$t(\"spoc.actions.update\")))]),_c('v-btn',{staticClass:\"btn-pink\",attrs:{\"small\":\"\"},on:{\"click\":function($event){return _vm.confirmDeleteSpoc()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"spoc.actions.delete\"))+\"\\n \")])],1)])])],1),_c('v-dialog',{attrs:{\"max-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-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":function($event){return _vm.deleteSpoc()}}},[_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)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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 { Spoc } from \"@/shared/models/spoc-model\";\nimport { TranslateResult } from \"vue-i18n\";\nimport CountriesLabelConverter from \"@/utils/countriesLabelConverter\";\nimport applicationStore from \"@/shared/stores/applicationStore\";\nimport router from \"@/router\";\n@Component({\n components: { InformationsComponent, SpocDetailsComponent, SecondHeader }\n})\n\nexport default class SpocDetailsComponent extends Vue {\n\n @Prop()\n private id;\n @Prop()\n private origin;\n private countryConverted: string;\n private restService: RestService;\n private spoc: Spoc;\n private units: Array<{}>;\n private valid: boolean;\n private dialog: boolean;\n private country: string;\n private countries: Array<{}>;\n private numberRules: Array;\n private phoneNumberRules: Array;\n private faxNumberRules: Array;\n private webPageRules: Array;\n private nameRules: Array;\n private requiredRule: Array;\n private emailRules: Array;\n private dialogMessage: string;\n private dialogResult: boolean;\n private dialogDelete: boolean;\n private dialogDeleteMessage: string;\n private dialogDeleteError: boolean;\n constructor() {\n super();\n this.dialog = false;\n this.dialogDeleteError = false;\n this.countryConverted = \"\";\n this.dialogDelete = false;\n this.dialogResult = false;\n this.valid = false;\n this.dialogMessage = \"\";\n this.dialogDeleteMessage = \"\";\n this.restService = Vue.prototype.$restService;\n this.spoc = new Spoc();\n this.units = new Array();\n this.country = \"\";\n this.numberRules = new Array();\n this.numberRules = [\n (v) => !!v || \"Value is required\",\n (v) => /^[0-9]*$/.test(v) || \"Number must be valid\"];\n this.phoneNumberRules = new Array();\n this.phoneNumberRules = [\n // tslint:disable-next-line: max-line-length\n (v) => /(([+][(]?[0-9]{1,3}[)]?)|([(]?[0-9]{4}[)]?))\\s*[)]?[-\\s\\.]?[(]?[0-9]{1,3}[)]?([-\\s\\.]?[0-9]{3})([-\\s\\.]?[0-9]{3,4})/g.test(v) || \"Phone number must be valid, recommanded format +99 9999999999\"\n ];\n this.faxNumberRules = new Array();\n this.faxNumberRules = [\n // tslint:disable-next-line: max-line-length\n (v) => /(([+][(]?[0-9]{1,3}[)]?)|([(]?[0-9]{4}[)]?))\\s*[)]?[-\\s\\.]?[(]?[0-9]{1,3}[)]?([-\\s\\.]?[0-9]{3})([-\\s\\.]?[0-9]{3,4})/g.test(v) || \"Fax number must be valid, recommanded format +99 9999999999\"\n ];\n this.webPageRules = new Array();\n this.webPageRules = [\n (v) => !!v || \"Value is required\",\n (v) => /(http?:\\\\[^\\s]+)/g.test(v) || \"Web page link must be valid\"];\n this.requiredRule = new Array();\n this.requiredRule = [\n (v) => !!v || \"Value is required\" || \"This field is requird\"];\n this.nameRules = new Array();\n this.nameRules = [\n (v) => !!v || \"This field is required\",\n (v) => v.length >= 3 || \"Minmum 3 characters\",\n (v) => (v && v.length <= 255) || \"Name must be less than 256 characters\"\n ];\n this.emailRules = new Array();\n this.emailRules = [\n (v) => !!v || \"E-mail is required\",\n (v) => /.+@.+\\..+/.test(v) || \"E-mail must be valid\"\n ];\n /**\n *\n * Countries adding\n */\n this.countries = new Array();\n for (const [key, value] of CountriesLabelConverter.getCountriesNamesIsoMap()) {\n this.countries.push({\n text: key, html: value\n });\n }\n }\n\n private mounted() {\n // Save the orignin page to return to the started list.\n if (!!this.origin) {\n applicationStore.commit(\"setOrigin\", this.origin);\n }\n }\n\n get columnsHeadersunits() {\n return [\n {\n value: \"shortName\",\n text: i18n.t(\"spoc.shortName\"),\n sortable: false,\n align: \"center\"\n\n },\n {\n value: \"name\",\n text: i18n.t(\"spoc.name\"),\n sortable: false,\n align: \"center\"\n\n },\n {\n value: \"city\",\n text: i18n.t(\"spoc.city\"),\n sortable: false,\n align: \"center\"\n }\n\n ];\n }\n \n public fetchSpocData() {\n this.id = parseInt(this.$route.params.id, undefined);\n this.restService\n .getSpocById(this.id)\n .then((result: { data: any; }) => {\n this.spoc = new Spoc(result.data);\n })\n .catch((error: string) =>\n // tslint:disable-next-line:no-console\n console.error(error)\n );\n this.setSpocUnits(this.id);\n }\n\n public setSpocUnits(spocId: number) {\n if (!Number.isInteger(spocId)) {\n return;\n }\n this.restService\n .getListUnitsBySpocId(spocId)\n .then((result: { data: any; }) => {\n this.units = result.data;\n })\n .catch((error: string) =>\n // tslint:disable-next-line:no-console\n console.error(error)\n );\n }\n\n public created() {\n this.fetchSpocData();\n }\n\n @Watch(\"id\")\n private onIdChanged(value: string, oldValue: string) {\n this.fetchSpocData();\n }\n\n\n get getAdditionalNotesValue(): string | TranslateResult {\n if (this.spoc.additionalNotes) {\n return this.spoc.additionalNotes;\n }\n return this.$t(\"control.fields.additionalNotes.default\");\n }\n get getCommonDetails(): Array {\n this.countryConverted = \"[\" + this.spoc.country + \"] \" +\n CountriesLabelConverter.getCountryName(this.spoc.country);\n const personaldetails: Array = new Array();\n personaldetails.push({\n key: i18n.t(\"spoc.name\"),\n value: this.spoc.name\n });\n personaldetails.push({\n key: i18n.t(\"spoc.email\"),\n value: this.spoc.email\n });\n personaldetails.push({\n key: i18n.t(\"spoc.shortName\"),\n value: this.spoc.shortName\n });\n personaldetails.push({\n key: i18n.t(\"spoc.address\"),\n value: this.spoc.address\n });\n personaldetails.push({\n key: i18n.t(\"spoc.postCode\"),\n value: this.spoc.postCode\n });\n personaldetails.push({\n key: i18n.t(\"spoc.city\"),\n value: this.spoc.city\n });\n personaldetails.push({\n key: i18n.t(\"spoc.country\"),\n value: this.countryConverted\n });\n personaldetails.push({\n key: i18n.t(\"spoc.phoneNumber\"),\n value: this.spoc.phoneNumber\n });\n personaldetails.push({\n key: i18n.t(\"spoc.faxNumber\"),\n value: this.spoc.faxNumber\n });\n personaldetails.push({\n key: i18n.t(\"spoc.webPage\"),\n value: this.spoc.webPage\n });\n return personaldetails;\n\n }\n\n private gotoUpdate() {\n router.push({ name: \"add-update-spoc\", params: { spocId: this.id } });\n }\n\n private deleteSpoc() {\n this.dialogDelete = false;\n this.restService.deleteSpoc(this.spoc.id).then((result) => {\n if (200 === result.status) {\n applicationStore.commit(\"showToasterSuccess\");\n this.gotoBack();\n }\n }).catch((error) => {\n // tslint:disable-next-line: no-console\n console.error(error);\n });\n\n }\n\n private gotoBack() {\n router.push({ name: applicationStore.state.navigation.origin });\n }\n\n private confirmDeleteSpoc() {\n if (this.units.length > 0) {\n this.dialogDeleteMessage = this.dialogDeleteMessage = i18n.t(\"spoc.actions.messages.deleteSpocFailedSpocRelatedToNUnits\", { unitCount: this.units.length }).toString();\n this.dialogDeleteError = true;\n } else {\n this.dialogDeleteMessage = i18n.t(\"spoc.actions.messages.deleteConfirmation\").toString();\n this.dialogDelete = true;\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!./spoc-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!./spoc-details.ts?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./spoc-details.html?vue&type=template&id=67d2f607&scoped=true&external\"\nimport script from \"./spoc-details.ts?vue&type=script&lang=js&external\"\nexport * from \"./spoc-details.ts?vue&type=script&lang=js&external\"\nimport style0 from \"./spoc-details.scss?vue&type=style&index=0&id=67d2f607&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 \"67d2f607\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar floor = Math.floor;\n\n// `IsIntegralNumber` abstract operation\n// https://tc39.es/ecma262/#sec-isintegralnumber\n// eslint-disable-next-line es/no-number-isinteger -- safe\nmodule.exports = Number.isInteger || function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n"],"sourceRoot":""}