{"version":3,"sources":["webpack:///src/components/Apis/ModalDeleteApplication.vue","webpack:///./src/components/Apis/ModalDeleteApplication.vue","webpack:///./src/components/Apis/ModalDeleteApplication.vue?83d5","webpack:///./src/components/Apis/ModalDeleteApplication.vue?0e8c","webpack:///./src/components/Apis/ModalDeleteApplication.vue?457d"],"names":["components","props","showModal","type","Boolean","default","onClickCancel","Function","required","application","Object","data","isDeleting","isDeletingSuccess","isDeletingError","computed","created","methods","deleteApplication","_this","self","applicationProvider","Id","then","response","status","$emit","render","_vm","_c","_self","attrs","modalTitle","buttonLabelConfirm","$t","isSaving","isSavingSuccess","isSavingError","hideFooterButtons","onClickSave","on","closeModal","scopedSlots","_u","key","fn","undefined","proxy","slot","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;AAmBA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAEe;EACfA,UAAA;EAEAC,KAAA;IACAC,SAAA;MACAC,IAAA,EAAAC,OAAA;MACAC,OAAA;IACA;IAEAC,aAAA;MACAH,IAAA,EAAAI,QAAA;MACAC,QAAA;IACA;IAEAC,WAAA;MACAN,IAAA,EAAAO,MAAA;MACAL,OAAA;IACA;EACA;EAEAM,IAAA,WAAAA,KAAA;IACA;MACAC,UAAA;MACAC,iBAAA;MACAC,eAAA;IACA;EACA;EAEAC,QAAA;EAEAC,OAAA,WAAAA,QAAA;EAEAC,OAAA;IACAC,iBAAA,WAAAA,kBAAA;MAAA,IAAAC,KAAA;MACA,IAAAC,IAAA;MAEA,KAAAA,IAAA,CAAAR,UAAA;QACAQ,IAAA,CAAAR,UAAA;QAEAS,sEAAA,CAAAJ,OAAA,CACAC,iBAAA,MAAAT,WAAA,CAAAa,EAAA,EACAC,IAAA,WAAAC,QAAA;UACA,IAAAA,QAAA,CAAAC,MAAA;YACAN,KAAA,CAAAO,KAAA,uBAAAP,KAAA,CAAAV,WAAA;YAEAW,IAAA,CAAAd,aAAA;UACA;QACA;MACA;IACA;EACA;AACA,CAAC,E;;;;;;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A;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAA8S,CAAgB,wVAAG,EAAC,C;;;;;;;;;;;;;ACAlU;AAAA;AAAA;AAAA;AAAA","file":"js/336.js?id=c38e7b19376afea8ee68","sourcesContent":["<template>\n  <ui-component-modal\n    modalTitle=\"\"\n    :buttonLabelConfirm=\"$t('Form.Control.Delete')\"\n    :isSaving=\"isDeleting\"\n    :isSavingSuccess=\"isDeletingSuccess\"\n    :isSavingError=\"isDeletingError\"\n    :hideFooterButtons=\"isDeletingError || isDeletingSuccess\"\n    :onClickCancel=\"onClickCancel\"\n    :onClickSave=\"deleteApplication\"\n    :showModal=\"showModal\"\n    @closeModal=\"onClickCancel\"\n  >\n    <template slot=\"modalTitle\"></template>\n    <template v-slot:content> </template>\n  </ui-component-modal>\n</template>\n\n<script>\nimport Vue from 'vue'\nimport { mapState, mapMutations } from 'vuex'\nimport { EventBus } from '@/eventbus/event-bus'\nimport applicationProvider from '@/providers/application'\n\nexport default {\n  components: {},\n\n  props: {\n    showModal: {\n      type: Boolean,\n      default: false,\n    },\n\n    onClickCancel: {\n      type: Function,\n      required: true,\n    },\n\n    application: {\n      type: Object,\n      default: null,\n    },\n  },\n\n  data() {\n    return {\n      isDeleting: false,\n      isDeletingSuccess: false,\n      isDeletingError: false,\n    }\n  },\n\n  computed: {},\n\n  created() {},\n\n  methods: {\n    deleteApplication() {\n      let self = this\n\n      if (!self.isDeleting) {\n        self.isDeleting = true\n\n        applicationProvider.methods\n          .deleteApplication(this.application.Id)\n          .then((response) => {\n            if (response.status === 204) {\n              this.$emit('applicationDeleted', this.application)\n\n              self.onClickCancel()\n            }\n          })\n      }\n    },\n  },\n}\n</script>\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\n    \"ui-component-modal\",\n    {\n      attrs: {\n        modalTitle: \"\",\n        buttonLabelConfirm: _vm.$t(\"Form.Control.Delete\"),\n        isSaving: _vm.isDeleting,\n        isSavingSuccess: _vm.isDeletingSuccess,\n        isSavingError: _vm.isDeletingError,\n        hideFooterButtons: _vm.isDeletingError || _vm.isDeletingSuccess,\n        onClickCancel: _vm.onClickCancel,\n        onClickSave: _vm.deleteApplication,\n        showModal: _vm.showModal,\n      },\n      on: { closeModal: _vm.onClickCancel },\n      scopedSlots: _vm._u([\n        {\n          key: \"content\",\n          fn: function () {\n            return undefined\n          },\n          proxy: true,\n        },\n      ]),\n    },\n    [_c(\"template\", { slot: \"modalTitle\" })],\n    2\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ModalDeleteApplication.vue?vue&type=template&id=6fe373ce\"\nimport script from \"./ModalDeleteApplication.vue?vue&type=script&lang=js\"\nexport * from \"./ModalDeleteApplication.vue?vue&type=script&lang=js\"\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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('6fe373ce')) {\n      api.createRecord('6fe373ce', component.options)\n    } else {\n      api.reload('6fe373ce', component.options)\n    }\n    module.hot.accept(\"./ModalDeleteApplication.vue?vue&type=template&id=6fe373ce\", function () {\n      api.rerender('6fe373ce', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Apis/ModalDeleteApplication.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalDeleteApplication.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalDeleteApplication.vue?vue&type=script&lang=js\"","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"381a4baa-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalDeleteApplication.vue?vue&type=template&id=6fe373ce\""],"sourceRoot":""}