{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.array.push.js","webpack:///./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack:///./node_modules/core-js/internals/array-set-length.js","webpack:///./src/views/dashboard/applications/show/Advanced.vue?430d","webpack:///./src/views/dashboard/applications/show/Advanced.vue","webpack:///./src/views/dashboard/applications/show/Advanced.vue?4224","webpack:///./src/views/dashboard/applications/show/Advanced.vue?5363","webpack:///./node_modules/core-js/internals/is-array.js"],"names":["$","toObject","lengthOfArrayLike","setArrayLength","doesNotExceedSafeInteger","fails","INCORRECT_TO_LENGTH","push","call","length","properErrorOnNonWritableLength","Object","defineProperty","writable","error","TypeError","FORCED","target","proto","arity","forced","item","O","this","len","argCount","arguments","i","$TypeError","MAX_SAFE_INTEGER","module","exports","it","DESCRIPTORS","isArray","getOwnPropertyDescriptor","SILENT_ON_NON_WRITABLE_LENGTH_SET","undefined","_hoisted_1","class","_hoisted_2","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","$t","type","onClick","args","deleteHmacAuthApplication","isDeletingApplication","defineComponent","data","methods","_this$$store$state$ap","metadata","CompanySSOID","$store","state","application","hmacAuthApplication","companyId","dataEvent","Remarks","Reason","_this$$store$state$ap2","_this$$store$state$ap3","dispatch","APPLICATION_DELETE_HMAC_AUTH","uuid","id","pageName","mixpanelInstance","setMetadata","emit","event","DeleteApplication","handleSuccess","name","err","response","message","handleError","$router","SHOW_TOAST","ToastType","ERROR","msg","SUCCESS","__exports__","classof","Array","argument"],"mappings":"6HACA,IAAIA,EAAI,EAAQ,QACZC,EAAW,EAAQ,QACnBC,EAAoB,EAAQ,QAC5BC,EAAiB,EAAQ,QACzBC,EAA2B,EAAQ,QACnCC,EAAQ,EAAQ,QAEhBC,EAAsBD,GAAM,WAC9B,OAAoD,aAA7C,GAAGE,KAAKC,KAAK,CAAEC,OAAQ,YAAe,MAK3CC,EAAiC,WACnC,IAEEC,OAAOC,eAA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ACVhE,KAAK0C,OAAOU,SAASiB,OAAY,CAC/BH,QAASF,EAAIE,QACbnC,KAAMuC,OAAUC,SAGpBT,cAAcU,GACZxE,KAAK0C,OAAOU,SAASiB,OAAY,CAC/BH,QAASM,EACTzC,KAAMuC,OAAUG,c,iCC7DxB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASvD,GAAQ,CAAC,YAAY,qBAE1E,gB,oCCTf,W,kCCCA,IAAIwD,EAAU,EAAQ,QAKtBpE,EAAOC,QAAUoE,MAAMjE,SAAW,SAAiBkE,GACjD,MAA6B,UAAtBF,EAAQE","file":"js/application-show-advanced.8406c5f3.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw new $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"form\" }\nconst _hoisted_2 = { class: \"form-group\" }\nconst _hoisted_3 = { class: \"warning\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"label\", null, _toDisplayString(_ctx.$t(\"pages.applications.advanced.form.delete\")), 1),\n _createElementVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"pages.applications.advanced.form.warning\")), 1),\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"btn btn-danger field-submit\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.deleteHmacAuthApplication && _ctx.deleteHmacAuthApplication(...args)))\n }, _toDisplayString(_ctx.isDeletingApplication\n ? _ctx.$t(\"pages.delete_hmac_auth_application.form.button.deleting\")\n : _ctx.$t(\"pages.delete_hmac_auth_application.form.button.delete\")), 1)\n ])\n ]))\n}","\nimport { defineComponent } from \"vue\";\nimport { APPLICATION_DELETE_HMAC_AUTH } from \"@/store-types\";\nimport { SHOW_TOAST } from \"@/store-types\";\nimport { TYPE as ToastType } from \"vue-toastification\";\nimport { emit } from \"@/utils/event\";\nimport { event, evenType } from \"@/events/mixpanel/enums/applications\";\nimport { mixpanelInstance } from \"@/utils/mixpanel\";\n\ninterface Data {\n isDeletingApplication: boolean;\n}\n\nexport default defineComponent({\n data(): Data {\n return {\n isDeletingApplication: false,\n };\n },\n methods: {\n async deleteHmacAuthApplication() {\n if (this.isDeletingApplication) {\n return;\n }\n\n this.isDeletingApplication = true;\n\n const metadata = {\n CompanySSOID:\n this.$store.state.application.hmacAuthApplication?.companyId,\n };\n const dataEvent = {\n Remarks: \"Success\",\n Reason: \"Success delete application\",\n };\n\n try {\n await this.$store.dispatch(APPLICATION_DELETE_HMAC_AUTH, {\n uuid: this.$store.state.application.hmacAuthApplication?.id,\n pageName: \"Applications\",\n });\n mixpanelInstance.setMetadata(metadata);\n emit(event.DeleteApplication, dataEvent);\n this.handleSuccess(\n `${dataEvent.Reason} \"${this.$store.state.application.hmacAuthApplication?.name}\"`\n );\n } catch (err) {\n dataEvent.Remarks = \"Failed\";\n dataEvent.Reason = (err as any).response\n ? (err as any).response.data.message\n : \"Something went wrong. Try again\";\n mixpanelInstance.setMetadata(metadata);\n emit(event.DeleteApplication, dataEvent);\n this.handleError(err);\n } finally {\n this.$router.push(\"/dashboard/applications\");\n this.isDeletingApplication = false;\n }\n },\n handleError(err: Error | any) {\n this.$store.dispatch(SHOW_TOAST, {\n message: err.message,\n type: ToastType.ERROR,\n });\n },\n handleSuccess(msg: string | any) {\n this.$store.dispatch(SHOW_TOAST, {\n message: msg,\n type: ToastType.SUCCESS,\n });\n },\n },\n});\n","import { render } from \"./Advanced.vue?vue&type=template&id=3aa08c2e&scoped=true&ts=true\"\nimport script from \"./Advanced.vue?vue&type=script&lang=ts\"\nexport * from \"./Advanced.vue?vue&type=script&lang=ts\"\n\nimport \"./Advanced.vue?vue&type=style&index=0&id=3aa08c2e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3aa08c2e\"]])\n\nexport default __exports__","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Advanced.vue?vue&type=style&index=0&id=3aa08c2e&lang=scss&scoped=true\"","'use strict';\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) === 'Array';\n};\n"],"sourceRoot":""}