{"version":3,"sources":["webpack:///./src/views/SecretCreated.vue","webpack:///./src/views/SecretCreated.vue?677e","webpack:///./src/views/SecretCreated.vue?8e50","webpack:///./src/views/SecretCreated.vue?9c88","webpack:///./src/views/SecretCreated.vue?2819","webpack:///./src/views/SecretCreated.vue?1146"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","_v","_s","$t","showSecret","ref","on","showCopiedToast","secret","click","$event","copy","shortUrl","showConfirmModal","model","value","showErrorAlert","callback","$$v","expression","close","confirm","burn","_e","staticRenderFns","SecretCreated","_Vue","_inherits","_super","_createSuper","_this","_classCallCheck","_createClass","key","get","window","location","protocol","host","url","$store","state","_burn","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_callee$","_context","prev","next","Secret","delete","$router","push","name","t0","stop","apply","arguments","copyRef","$refs","e","$anxToast","show","String","verticalAlign","horizontalAlign","Vue","__decorate","Prop","default","Component","component","module","exports"],"mappings":"yHAAA,IAAIA,EAAS,SAASA,SAAS,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,kBAAkB,CAACH,EAAG,cAAc,CAACI,MAAM,CAAC,QAAU,GAAG,MAAQ,KAAK,CAACJ,EAAG,gBAAgB,CAACF,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,4BAA4B,QAAQ,GAAIR,KAAKS,WAAYR,EAAG,cAAc,CAACI,MAAM,CAAC,MAAQN,EAAIS,GAAG,+BAA+B,KAAO,OAAO,CAACP,EAAG,gBAAgB,CAACI,MAAM,CAAC,KAAO,OAAO,CAACN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,4BAA4B,OAAOP,EAAG,eAAe,CAACS,IAAI,wBAAwBL,MAAM,CAAC,GAAK,iBAAiB,KAAO,0BAA0B,KAAO,GAAG,gBAAgB,IAAIM,GAAG,CAAC,OAASZ,EAAIa,kBAAkB,C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,EAAAiB,MAAA,KAAAC,WAAA,OAAAtC,KATD,IAWA,CAAAW,IAAA,OAAAlB,MACQ,SAAAJ,KAAMkD,GACZ,IACE,GAAIlE,KAAKmE,MAAMD,GACb,OAAQlE,KAAKmE,MAAMD,GAAiClD,OAEtD,MAAOoD,GACP,OAAO,KAIX,CAAA9B,IAAA,kBAAAlB,MACQ,SAAAR,kBACNZ,KAAKqE,UAAUC,KAAKC,OAAOvE,KAAKQ,GAAG,kCAAmC,CAAEgE,cAAe,SAAUC,gBAAiB,eACnH3C,cA5C+B,CAAS4C,QAElBC,eAAA,CAAtBC,eAAK,CAAEC,QAAS,M,0BAEQF,eAAA,CAAxBC,eAAK,CAAEC,QAAS,Q,iCAJE/C,EAAa6C,eAAA,CADjCG,eAAU,KACUhD,WCXkX,I,wBCQnYiD,EAAY,eACd,EACAjF,EACA+B,GACA,EACA,KACA,KACA,MAIa,aAAAkD,E,8BClBfC,EAAOC,QAAU,CAAC,mBAAqB,yBAAyB,2BAA6B,kCAAkC,aAAe,6B,kCCD9I","file":"js/chunk-db205eb8.b50dc34a.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"secret-created\"},[_c('anx-content',{attrs:{\"inverse\":\"\",\"first\":\"\"}},[_c('anx-paragraph',[_vm._v(\" \"+_vm._s(_vm.$t('labels.c_copy_head_text'))+\" \")])],1),(this.showSecret)?_c('anx-content',{attrs:{\"title\":_vm.$t('labels.c_copy_head_password'),\"size\":\"h2\"}},[_c('anx-paragraph',{attrs:{\"size\":\"h3\"}},[_vm._v(\" \"+_vm._s(_vm.$t('hints.c_secret_password'))+\" \")]),_c('anx-readonly',{ref:\"createdSecretPassword\",attrs:{\"id\":\"secret-preview\",\"name\":\"created-secret-password\",\"bold\":\"\",\"copy-on-click\":\"\"},on:{\"copied\":_vm.showCopiedToast}},[_vm._v(\" \"+_vm._s(this.secret)+\" \")]),_c('anx-button',{attrs:{\"text\":_vm.$t('btn.c_copy_passsword')},on:{\"click\":function($event){return _vm.copy('createdSecretPassword')}}}),_c('anx-hr-line'),_c('anx-paragraph',{attrs:{\"size\":\"h2\",\"title\":_vm.$t('labels.c_copy_head_link'),\"element\":\"div\"}},[_c('anx-readonly',{ref:\"secretLink\",attrs:{\"name\":\"secret-link\",\"bold\":\"\",\"copy-on-click\":\"\"},on:{\"copied\":_vm.showCopiedToast}},[_vm._v(_vm._s(this.shortUrl))]),_c('div',{staticClass:\"inline-buttons\"},[_c('anx-button',{attrs:{\"width\":\"195px\",\"text\":_vm.$t('btn.c_copy'),\"inline\":\"true\"},on:{\"click\":function($event){return _vm.copy('secretLink')}}}),_c('anx-button',{attrs:{\"width\":\"195px\",\"text\":_vm.$t('btn.c_delete'),\"class-name\":\"anx-button btn-outline\"},on:{\"click\":function($event){_vm.showConfirmModal = true}}})],1)],1),_c('anx-alert',{attrs:{\"type\":\"error\"},model:{value:(_vm.showErrorAlert),callback:function ($$v) {_vm.showErrorAlert=$$v},expression:\"showErrorAlert\"}},[_vm._v(\" \"+_vm._s(_vm.$t('message.c_404_delete'))+\" \")]),_c('anx-paragraph',{attrs:{\"hint\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('hints.c_delete_secret'))+\" \"),_c('br'),_c('strong',[_vm._v(_vm._s(_vm.$t('hints.c_attention')))]),_vm._v(_vm._s(_vm.$t('hints.c_automatic_deletion'))+\" \")])],1):_c('anx-content',{attrs:{\"title\":_vm.$t('labels.c_copy_head_link'),\"size\":\"h2\"}},[_c('anx-readonly',{ref:\"secretLink2\",attrs:{\"name\":\"secret-link\",\"bold\":\"\",\"copy-on-click\":\"\"},on:{\"copied\":_vm.showCopiedToast}},[_vm._v(_vm._s(this.shortUrl))]),_c('anx-paragraph',{staticClass:\"inline-buttons\",attrs:{\"element\":\"div\"}},[_c('anx-button',{attrs:{\"width\":\"195px\",\"text\":_vm.$t('btn.c_copy'),\"inline\":\"true\"},on:{\"click\":function($event){return _vm.copy('secretLink2')}}}),_c('anx-button',{attrs:{\"width\":\"195px\",\"text\":_vm.$t('btn.c_delete'),\"class-name\":\"anx-button btn-outline\"},on:{\"click\":function($event){_vm.showConfirmModal = true}}})],1),_c('anx-alert',{attrs:{\"type\":\"error\"},model:{value:(_vm.showErrorAlert),callback:function ($$v) {_vm.showErrorAlert=$$v},expression:\"showErrorAlert\"}},[_vm._v(\" \"+_vm._s(_vm.$t('message.c_404_delete'))+\" \")]),_c('anx-paragraph',{attrs:{\"hint\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('hints.c_delete_secret'))+\" \"),_c('br'),_c('strong',[_vm._v(_vm._s(_vm.$t('hints.c_attention')))]),_vm._v(_vm._s(_vm.$t('hints.c_automatic_deletion'))+\" \")])],1),(_vm.showConfirmModal)?_c('anx-modal',{attrs:{\"confirm\":\"true\",\"title\":_vm.$t('labels.c_delete_title'),\"close-button-text\":_vm.$t('btn.c_abort'),\"confirm-button-text\":_vm.$t('btn.c_destroy_secrect_confirm')},on:{\"close\":function($event){_vm.showConfirmModal = false},\"confirm\":function($event){return _vm.burn()}}},[_vm._v(\" \"+_vm._s(_vm.$t('message.c_burn_link_message'))+\" \")]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Vue, Component, Prop } from 'vue-property-decorator'\nimport { Secret } from '../models/Secret'\nimport { AnxToastPlugin } from '@anexia/vue-ui-components'\n\n/** Interface for a HTMLElement with copy function */\nexport interface CopyableHtmlElement extends HTMLElement {\n copy: () => boolean\n}\n\n@Component({})\nexport default class SecretCreated extends Vue {\n /** This is the url for the secret (only the last part of it) */\n @Prop({ default: '' }) url!: string;\n /** Show the secret above the link */\n @Prop({ default: null }) showSecret!: boolean;\n\n private showErrorAlert = false\n private showConfirmModal = false\n\n /** This is the url where the secret can be viewed */\n private get shortUrl () {\n return window.location.protocol + '//' + window.location.host + '/secret/' + this.url\n }\n\n /** This is the secret */\n private get secret () {\n return this.$store.state.secret.secret\n }\n\n /** Delete the secret */\n private async burn () {\n this.showConfirmModal = false\n try {\n await Secret.delete(this.url)\n this.$router.push({ name: 'secretDeleted' })\n } catch (e) {\n this.showErrorAlert = true\n }\n }\n\n /** Select and copy the text of the area with the specific id */\n private copy (copyRef: string) {\n try {\n if (this.$refs[copyRef]) {\n return (this.$refs[copyRef] as CopyableHtmlElement).copy()\n }\n } catch (e) {\n return false\n }\n }\n\n /** Shows a toast that says that the text has been copied to the clipboard */\n private showCopiedToast () {\n this.$anxToast.show(String(this.$t('message.c_copied_to_clipboard')), { verticalAlign: 'bottom', horizontalAlign: 'center' })\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!./SecretCreated.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!./SecretCreated.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SecretCreated.vue?vue&type=template&id=0935c84e\"\nimport script from \"./SecretCreated.vue?vue&type=script&lang=ts\"\nexport * from \"./SecretCreated.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SecretCreated.vue?vue&type=style&index=0&id=0935c84e&prod&lang=scss\"\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","// extracted by mini-css-extract-plugin\nmodule.exports = {\"defaultButtonColor\":\"var(--secondary-color)\",\"defaultButtonColorDisabled\":\"var(--secondary-color-lightest)\",\"titleSpacing\":\"var(--anx-title-spacing)\"};","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-loader/lib/loaders/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-loader/lib/index.js??vue-loader-options!./SecretCreated.vue?vue&type=style&index=0&id=0935c84e&prod&lang=scss\""],"sourceRoot":""}