{"version":3,"sources":["webpack:///./src/views/vesseladmin/VesselGroups.vue?7dbf","webpack:///./src/components/knockoutWrappers/VesselGroupsWrapper.vue?697e","webpack:///./src/components/knockoutWrappers/VesselGroupsWrapper.vue","webpack:///./src/components/knockoutWrappers/VesselGroupsWrapper.vue?13f0","webpack:///./src/components/knockoutWrappers/VesselGroupsWrapper.vue?82d0","webpack:///./src/views/vesseladmin/VesselGroups.vue","webpack:///./src/views/vesseladmin/VesselGroups.vue?f54f","webpack:///./src/views/vesseladmin/VesselGroups.vue?8023"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticRenderFns","VesselGroupsWrapper","instance","koHtmlAndViewModel","viewModel","template","$el","innerHTML","ko","applyBindings","cleanNode","dispose","Vue","Component","component","VesselGroups","vesselGroupCreatedBinding","vesselGroupDeletedBinding","vesselGroupUpdatedBinding","action","vesselGroupName","text","htmlEncoder","htmlEncode","color","events","vesselGroupCreated","add","createdVesselGroup","$store","dispatch","message","name","vesselGroupUpdated","vesselGroupDeleted","detach","components","vesselGroupsWrapper"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,oBAAoB,CAACA,EAAG,0BAA0B,IACjJE,EAAkB,G,oFCDlB,EAAS,WAAa,IAAIN,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAC/F,EAAkB,G,iCCSDG,EAAmB,wDAAxC,iD,0BACE,EAAAC,SAAgB,GADlB,EAAwC,8CAGtC,WACEP,KAAKO,SAAW,IAAIC,OAAmBC,UACvC,IAAQC,EAAaF,OAAbE,SACRV,KAAKW,IAAIC,UAAYF,EACrBG,IAAGC,cAAcd,KAAKO,SAAUP,KAAKW,OAPD,2BAUtC,WACEE,IAAGE,UAAUf,KAAKW,KAClBX,KAAKO,SAASS,cAZsB,GAASC,QAA5BX,EAAmB,gBADvCY,QACoBZ,WCV2Y,I,YCO5Za,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,gCCAMC,EAAY,wDAAjC,iD,0BACE,EAAAC,0BAAiC,KACjC,EAAAC,0BAAiC,KACjC,EAAAC,0BAAiC,KAHnC,EAAiC,8CAK/B,SAAQC,EAAgBC,GACtB,IAAIC,EAAO,iBAAH,OAAoBC,OAAYC,WAAWH,GAA3C,eACR,OAAQD,GACN,IAAK,qBACHE,GAAQ,iBACR,MAEF,IAAK,qBACHA,GAAQ,iBACR,MAEF,IAAK,qBACHA,GAAQ,iBACR,MAGJ,MAAO,CACLA,KAAMA,EACNG,MAAO,aAvBoB,qBA2B/B,WAAO,WACL7B,KAAKqB,0BAA4BS,OAAOC,mBAAmBC,KAAI,SAACC,GAC9D,EAAKC,OAAOC,SAAS,wBAAyB,EAAKC,QAAQ,qBAAsBH,EAAmBI,UAGtGrC,KAAKuB,0BAA4BO,OAAOQ,mBAAmBN,KAAI,SAACC,GAC9D,EAAKC,OAAOC,SAAS,wBAAyB,EAAKC,QAAQ,qBAAsBH,EAAmBI,UAGtGrC,KAAKsB,0BAA4BQ,OAAOS,mBAAmBP,KAAI,SAACC,GAC9D,EAAKC,OAAOC,SAAS,wBAAyB,EAAKC,QAAQ,qBAAsBH,EAAmBI,YArCzE,2BAyC/B,WACErC,KAAKqB,0BAA0BmB,SAC/BxC,KAAKuB,0BAA0BiB,SAC/BxC,KAAKsB,0BAA0BkB,aA5CF,GAASvB,QAArBG,EAAY,gBALhCF,eAAU,CACTuB,WAAY,CACVC,0BAGiBtB,WClBoY,ICOrZ,EAAY,eACd,EACAtB,EACAO,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d0b5a52.f7cb7146.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('default-container',[_c('vessel-groups-wrapper')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport ko from \"knockout\";\nimport koHtmlAndViewModel from \"Components/vessel-groups/vessel-groups\";\n\n@Component\nexport default class VesselGroupsWrapper extends Vue {\n instance: any = {};\n\n mounted(): void {\n this.instance = new koHtmlAndViewModel.viewModel();\n const { template } = koHtmlAndViewModel;\n this.$el.innerHTML = template;\n ko.applyBindings(this.instance, this.$el);\n }\n\n beforeDestroy(): void {\n ko.cleanNode(this.$el);\n this.instance.dispose();\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VesselGroupsWrapper.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VesselGroupsWrapper.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VesselGroupsWrapper.vue?vue&type=template&id=6cb19a6d&scoped=true&\"\nimport script from \"./VesselGroupsWrapper.vue?vue&type=script&lang=ts&\"\nexport * from \"./VesselGroupsWrapper.vue?vue&type=script&lang=ts&\"\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 \"6cb19a6d\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport vesselGroupsWrapper from \"@/components/knockoutWrappers/VesselGroupsWrapper.vue\";\nimport events from \"App/events\";\nimport { SnackbarConfig } from \"@/types/snackbarConfig\";\nimport htmlEncoder from \"Utilities/htmlencode-helper\";\n\n@Component({\n components: {\n vesselGroupsWrapper,\n },\n})\nexport default class VesselGroups extends Vue {\n vesselGroupCreatedBinding: any = null;\n vesselGroupDeletedBinding: any = null;\n vesselGroupUpdatedBinding: any = null;\n\n message(action: string, vesselGroupName: string): Partial {\n let text = `Vessel group '${htmlEncoder.htmlEncode(vesselGroupName)}' has been `;\n switch (action) {\n case \"createdVesselGroup\":\n text += \"created\";\n break;\n\n case \"updatedVesselGroup\":\n text += \"updated\";\n break;\n\n case \"deletedVesselGroup\":\n text += \"deleted\";\n break;\n }\n\n return {\n text: text,\n color: \"success\",\n };\n }\n\n mounted(): void {\n this.vesselGroupCreatedBinding = events.vesselGroupCreated.add((createdVesselGroup: any) => {\n this.$store.dispatch(\"Snackbar/showSnackbar\", this.message(\"createdVesselGroup\", createdVesselGroup.name));\n });\n\n this.vesselGroupUpdatedBinding = events.vesselGroupUpdated.add((createdVesselGroup: any) => {\n this.$store.dispatch(\"Snackbar/showSnackbar\", this.message(\"updatedVesselGroup\", createdVesselGroup.name));\n });\n\n this.vesselGroupDeletedBinding = events.vesselGroupDeleted.add((createdVesselGroup: any) => {\n this.$store.dispatch(\"Snackbar/showSnackbar\", this.message(\"deletedVesselGroup\", createdVesselGroup.name));\n });\n }\n\n beforeDestroy(): void {\n this.vesselGroupCreatedBinding.detach();\n this.vesselGroupUpdatedBinding.detach();\n this.vesselGroupDeletedBinding.detach();\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VesselGroups.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VesselGroups.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VesselGroups.vue?vue&type=template&id=1abaedd7&\"\nimport script from \"./VesselGroups.vue?vue&type=script&lang=ts&\"\nexport * from \"./VesselGroups.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}