{"version":3,"sources":["webpack:///./src/components/UI/Form/Checkbox.vue?55f9","webpack:///./src/components/UI/Form/Checkbox.vue","webpack:///src/components/UI/Form/Checkbox.vue","webpack:///./src/components/UI/Form/Checkbox.vue?d49f","webpack:///./src/components/UI/Form/Checkbox.vue?e588","webpack:///./src/components/Articles/ModalDeleteArticleSource.vue","webpack:///src/components/Articles/ModalDeleteArticleSource.vue","webpack:///./src/components/Articles/ModalDeleteArticleSource.vue?96b3","webpack:///./src/components/Articles/ModalDeleteArticleSource.vue?e697"],"names":["render","_vm","this","_c","_self","checkboxVertical","_e","staticClass","attrs","name","disabled","domProps","value","on","onChange","class","inputAdditionClass","inputCheckedClass","iconAdditionClass","staticStyle","_t","_v","_s","label","staticRenderFns","props","type","Boolean","default","note","i18n","t","String","methods","e","$emit","target","checked","component","$t","isDeleting","isDeletingSuccess","isDeletingError","isDeleteConfirmed","onClickCancel","deleteLink","showModal","scopedSlots","_u","key","fn","source","Text","$event","indexOf","_k","keyCode","ctrlKey","button","shiftKey","altKey","metaKey","apply","arguments","model","callback","$$v","expression","proxy","components","Modal","Checkbox","articleId","Number","required","Object","Function","data","computed","_objectSpread","mapState","created","mapMutations","_this","_asyncToGenerator","_regenerator","m","_callee","w","_context","p","n","a","articleProvider","deleteArticleLink","Id","setTimeout","clearTimeout","v"],"mappings":"kHAAA,W,yDCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAGF,EAAII,iBAAwtCJ,EAAIK,KAA1sCH,EAAG,QAAQ,CAACI,YAAY,4BAA4B,CAACJ,EAAG,QAAQ,CAACI,YAAY,SAASC,MAAM,CAAC,KAAOP,EAAIQ,KAAK,KAAO,WAAW,SAAWR,EAAIS,UAAUC,SAAS,CAAC,QAAUV,EAAIW,OAAOC,GAAG,CAAC,MAAQZ,EAAIa,YAAYX,EAAG,OAAO,CAACI,YAAY,QAAQQ,MAAM,CAACd,EAAIe,mBAAoB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A,eAAAF,EAAAG,EAAA,UACA,OAAAT,EAAA3C,YAAA,EAAAiD,EAAAC,EAAA,EAAAD,EAAAE,EAAA,EAGAE,OAAA5D,QAAA6D,kBAAAX,EAAAX,UAAAW,EAAAhC,OAAA4C,IAAA,OACAZ,EAAA1C,mBAAA,EACA0C,EAAAhD,MAAA,UAAAgD,EAAAhC,OAAA4C,IACAhE,EAAAiE,YAAA,WACAb,EAAAvC,gBACAqD,aAAAlE,KACA,MAAA0D,EAAAE,EAAA,eAAAF,EAAAC,EAAA,EAAAD,EAAAS,EAEAf,EAAA3C,YAAA,EACA2C,EAAAzC,iBAAA,gBAAA+C,EAAAG,EAAA,MAAAL,EAAA,iBAdAH,OC5FgX,I,YCO5W9C,EAAY,eACd,EACAtC,EACAwB,GACA,EACA,KACA,KACA,MAIa,aAAAc,E","file":"js/chunk-86098a6a.js?id=70b6d1c37d253cdfb0ac","sourcesContent":["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!./Checkbox.vue?vue&type=style&index=0&id=8b531ccc&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(!_vm.checkboxVertical)?_c('label',{staticClass:\"checkbox is-unselectable\"},[_c('input',{staticClass:\"hidden\",attrs:{\"name\":_vm.name,\"type\":\"checkbox\",\"disabled\":_vm.disabled},domProps:{\"checked\":_vm.value},on:{\"input\":_vm.onChange}}),_c('span',{staticClass:\"input\",class:[_vm.inputAdditionClass, _vm.value ? _vm.inputCheckedClass : '']},[_c('span',{staticClass:\"icon\",class:_vm.iconAdditionClass},[_c('svg',{staticStyle:{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",\"stroke-linejoin\":\"round\",\"stroke-miterlimit\":\"1.41421\"},attrs:{\"width\":\"100%\",\"height\":\"100%\",\"viewBox\":\"0 0 24 24\",\"version\":\"1.1\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",\"xml:space\":\"preserve\",\"xmlns:serif\":\"http://www.serif.com/\"}},[_c('path',{staticStyle:{\"fill-rule\":\"nonzero\"},attrs:{\"fill\":\"currentColor\",\"d\":\"M0.252,12.214c-0.341,-0.44 -0.219,-0.816 0.025,-1.219l1.824,-2.333c0.37,-0.369 0.85,-0.381 1.219,-0.012l6.59,6.199c0.185,0.185 0.462,0.185 0.646,0l9.812,-10.435c0.369,-0.369 0.923,-0.369 1.292,0l2.046,2.135c0.37,0.37 0.32,0.973 0,1.293l-12.889,13.189c-0.185,0.184 -0.37,0.277 -0.647,0.277c-0.276,0 -0.461,-0.093 -0.646,-0.277l-9.272,-8.817Z\"}})])])]),_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.label))]})],2):_vm._e(),(_vm.checkboxVertical)?_c('label',{staticClass:\"label-top has-margin-bottom\"},[_c('span',{staticClass:\"has-margin-bottom\"},[_vm._v(_vm._s(_vm.label))]),_c('input',{staticClass:\"hidden\",attrs:{\"name\":_vm.name,\"type\":\"checkbox\",\"disabled\":_vm.disabled},domProps:{\"checked\":_vm.value},on:{\"input\":_vm.onChange}}),_c('span',{staticClass:\"input\",class:[_vm.inputAdditionClass, _vm.value ? _vm.inputCheckedClass : '']},[_c('span',{staticClass:\"icon\",class:_vm.iconAdditionClass},[_c('svg',{staticStyle:{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",\"stroke-linejoin\":\"round\",\"stroke-miterlimit\":\"1.41421\"},attrs:{\"width\":\"100%\",\"height\":\"100%\",\"viewBox\":\"0 0 24 24\",\"version\":\"1.1\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",\"xml:space\":\"preserve\",\"xmlns:serif\":\"http://www.serif.com/\"}},[_c('path',{staticStyle:{\"fill-rule\":\"nonzero\"},attrs:{\"fill\":\"currentColor\",\"d\":\"M0.252,12.214c-0.341,-0.44 -0.219,-0.816 0.025,-1.219l1.824,-2.333c0.37,-0.369 0.85,-0.381 1.219,-0.012l6.59,6.199c0.185,0.185 0.462,0.185 0.646,0l9.812,-10.435c0.369,-0.369 0.923,-0.369 1.292,0l2.046,2.135c0.37,0.37 0.32,0.973 0,1.293l-12.889,13.189c-0.185,0.184 -0.37,0.277 -0.647,0.277c-0.276,0 -0.461,-0.093 -0.646,-0.277l-9.272,-8.817Z\"}})])])])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <label\n      v-if=\"!checkboxVertical\"\n      class=\"checkbox is-unselectable\"\n    >\n      <input\n        :name=\"name\"\n        type=\"checkbox\"\n        :checked=\"value\"\n        class=\"hidden\"\n        @input=\"onChange\"\n        :disabled=\"disabled\"\n      />\n      <span\n        class=\"input\"\n        :class=\"[inputAdditionClass, value ? inputCheckedClass : '']\"\n      >\n\n        <span\n          class=\"icon\"\n          :class=\"iconAdditionClass\"\n        >\n          <svg\n            width=\"100%\"\n            height=\"100%\"\n            viewBox=\"0 0 24 24\"\n            version=\"1.1\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n            xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n            xml:space=\"preserve\"\n            xmlns:serif=\"http://www.serif.com/\"\n            style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;\"\n          >\n            <path\n              fill=\"currentColor\"\n              d=\"M0.252,12.214c-0.341,-0.44 -0.219,-0.816 0.025,-1.219l1.824,-2.333c0.37,-0.369 0.85,-0.381 1.219,-0.012l6.59,6.199c0.185,0.185 0.462,0.185 0.646,0l9.812,-10.435c0.369,-0.369 0.923,-0.369 1.292,0l2.046,2.135c0.37,0.37 0.32,0.973 0,1.293l-12.889,13.189c-0.185,0.184 -0.37,0.277 -0.647,0.277c-0.276,0 -0.461,-0.093 -0.646,-0.277l-9.272,-8.817Z\"\n              style=\"fill-rule:nonzero;\"\n            />\n          </svg>\n        </span>\n      </span>\n      <slot>{{ label }}</slot>\n    </label>\n\n    <!-- Vertical checkbox -->\n    <label\n      v-if=\"checkboxVertical\"\n      class=\"label-top has-margin-bottom\"\n    >\n      <span class=\"has-margin-bottom\">{{label}}</span>\n      <input\n        :name=\"name\"\n        type=\"checkbox\"\n        :checked=\"value\"\n        class=\"hidden\"\n        @input=\"onChange\"\n        :disabled=\"disabled\"\n      />\n      <span\n        class=\"input\"\n        :class=\"[inputAdditionClass, value ? inputCheckedClass : '']\"\n      >\n\n        <span\n          class=\"icon\"\n          :class=\"iconAdditionClass\"\n        >\n          <svg\n            width=\"100%\"\n            height=\"100%\"\n            viewBox=\"0 0 24 24\"\n            version=\"1.1\"\n            xmlns=\"http://www.w3.org/2000/svg\"\n            xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n            xml:space=\"preserve\"\n            xmlns:serif=\"http://www.serif.com/\"\n            style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;\"\n          >\n            <path\n              fill=\"currentColor\"\n              d=\"M0.252,12.214c-0.341,-0.44 -0.219,-0.816 0.025,-1.219l1.824,-2.333c0.37,-0.369 0.85,-0.381 1.219,-0.012l6.59,6.199c0.185,0.185 0.462,0.185 0.646,0l9.812,-10.435c0.369,-0.369 0.923,-0.369 1.292,0l2.046,2.135c0.37,0.37 0.32,0.973 0,1.293l-12.889,13.189c-0.185,0.184 -0.37,0.277 -0.647,0.277c-0.276,0 -0.461,-0.093 -0.646,-0.277l-9.272,-8.817Z\"\n              style=\"fill-rule:nonzero;\"\n            />\n          </svg>\n        </span>\n      </span>\n    </label>\n  </div>\n</template>\n\n<script>\nimport { i18n } from \"@/main.js\";\nexport default {\n  props: {\n    disabled: {\n      type: Boolean,\n      default: false,\n      // note: 'Whether the input field is disabled'\n      note: i18n.t('Components.UI.Form.BaseInputFieldController.Disabled_Note')\n    },\n    inputAdditionClass: {\n      type: String,\n      default: ''\n    },\n    inputCheckedClass: {\n      type: String,\n      default: 'is-success'\n    },\n    iconAdditionClass: {\n      type: String,\n      default: 'has-text-white'\n    },\n    label: {\n      type: String,\n      default: ''\n    },\n    name: {\n      type: String,\n      default: ''\n    },\n    value: {\n      type: Boolean,\n      default: false\n    },\n    checkboxVertical: {\n      type: Boolean,\n      default: false\n\n    }\n  },\n\n  methods: {\n    onChange(e) {\n      this.$emit('input', e.target.checked)\n    }\n  }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.label-top {\n  color: #363636;\n  font-size: 1rem;\n  font-weight: 600;\n  display: flex;\n  flex-direction: column;\n  .input {\n    width: auto;\n    padding: 0px;\n    margin-right: 5px;\n    height: auto;\n    align-self: flex-start;\n    .icon {\n      padding: 2px;\n    }\n  }\n  input[type=\"radio\"],\n  input[type=\"checkbox\"] {\n    outline: 0;\n    user-select: none;\n    display: inline-block;\n    position: absolute;\n    opacity: 0;\n    &:checked ~ .input {\n      &.is-danger {\n        border-color: $red;\n        background-color: $red;\n      }\n      &.is-success {\n        border-color: $green;\n        background-color: $green;\n      }\n      &.is-warning {\n        border-color: $yellow;\n        background-color: $yellow;\n      }\n    }\n  }\n}\n\nlabel {\n  display: inline-flex;\n  align-items: center;\n\n  .input {\n    width: auto;\n    padding: 0px;\n    margin-right: 5px;\n    height: auto;\n    .icon {\n      padding: 2px;\n    }\n  }\n  input[type=\"radio\"],\n  input[type=\"checkbox\"] {\n    outline: 0;\n    user-select: none;\n    display: inline-block;\n    position: absolute;\n    opacity: 0;\n    &:checked ~ .input {\n      &.is-danger {\n        border-color: $red;\n        background-color: $red;\n      }\n      &.is-success {\n        border-color: $green;\n        background-color: $green;\n      }\n      &.is-warning {\n        border-color: $yellow;\n        background-color: $yellow;\n      }\n    }\n  }\n}\n</style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../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!./Checkbox.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../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!./Checkbox.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Checkbox.vue?vue&type=template&id=8b531ccc&scoped=true\"\nimport script from \"./Checkbox.vue?vue&type=script&lang=js\"\nexport * from \"./Checkbox.vue?vue&type=script&lang=js\"\nimport style0 from \"./Checkbox.vue?vue&type=style&index=0&id=8b531ccc&prod&lang=scss&scoped=true\"\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  \"8b531ccc\",\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('Modal',{attrs:{\"modalTitle\":_vm.$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Modal_Title'),\"confirmButtonCssClass\":\"is-danger\",\"buttonLabelConfirm\":_vm.$t('Form.Control.Delete'),\"successMessage\":_vm.$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Message_succesDeleting'),\"errorMessage\":_vm.$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Message_ErrorDeleting'),\"isSaving\":_vm.isDeleting,\"isSavingSuccess\":_vm.isDeletingSuccess,\"isSavingError\":_vm.isDeletingError,\"hideFooterButtons\":_vm.isDeletingSuccess,\"disableSaveButton\":!_vm.isDeleteConfirmed,\"onClickCancel\":_vm.onClickCancel,\"onClickSave\":_vm.deleteLink,\"showModal\":_vm.showModal},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',{staticClass:\"delete-content-container\"},[_c('div',{staticClass:\"mb-4 is-size-5 has-text-centered\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Message_AreYouSure', { name: _vm.source.Text, }))+\" \")]),_c('div',{staticClass:\"has-text-centered\"},[_c('Checkbox',{staticClass:\"is-inline-block\",attrs:{\"label\":_vm.$t('General.Text_YesSure')},on:{\"click\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"left\",37,$event.key,[\"Left\",\"ArrowLeft\"]))return null;if(!$event.ctrlKey)return null;if('button' in $event && $event.button !== 0)return null;if($event.shiftKey||$event.altKey||$event.metaKey)return null;return _vm.deleteLink.apply(null, arguments)}},model:{value:(_vm.isDeleteConfirmed),callback:function ($$v) {_vm.isDeleteConfirmed=$$v},expression:\"isDeleteConfirmed\"}})],1)])]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <Modal\n    :modalTitle=\"$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Modal_Title')\"\n    confirmButtonCssClass=\"is-danger\"\n    :buttonLabelConfirm=\"$t('Form.Control.Delete')\"\n    :successMessage=\"$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Message_succesDeleting')\"\n    :errorMessage=\"$t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Message_ErrorDeleting')\"\n    :isSaving=\"isDeleting\"\n    :isSavingSuccess=\"isDeletingSuccess\"\n    :isSavingError=\"isDeletingError\"\n    :hideFooterButtons=\"isDeletingSuccess\"\n    :disableSaveButton=\"!isDeleteConfirmed\"\n    :onClickCancel=\"onClickCancel\"\n    :onClickSave=\"deleteLink\"\n    :showModal=\"showModal\"\n  >\n    <template v-slot:content>\n      <div class=\"delete-content-container\">\n        <div class=\"mb-4 is-size-5 has-text-centered\">\n          {{\n          $t('Components.Article.ArticleDetail.ModalDeleteArticleSource.Message_AreYouSure', {\n            name: source.Text,\n          })\n        }}\n        </div>\n\n        <div class=\"has-text-centered\">\n          <Checkbox\n            v-model=\"isDeleteConfirmed\"\n            :label=\"$t('General.Text_YesSure')\"\n            @click.ctrl.left.exact=\"deleteLink\"\n            class=\"is-inline-block\"\n          />\n        </div>\n\n      </div>\n    </template>\n  </Modal>\n</template>\n\n<script>\nimport { mapState, mapMutations } from 'vuex'\nimport Modal from '@/components/UI/Components/Modal.vue'\nimport Checkbox from '@/components/UI/Form/Checkbox.vue'\nimport articleProvider from '../../providers/article'\n\nexport default {\n  name: 'ModalDeleteArticleSource',\n  components: {\n    Modal,\n    Checkbox\n  },\n\n  props: {\n    articleId: {\n      type: Number,\n      required: true\n    },\n    source: {\n      type: Object,\n      required: true,\n    },\n\n    showModal: {\n      type: Boolean,\n      default: false,\n    },\n\n    onClickCancel: {\n      type: Function,\n      required: true,\n    },\n  },\n\n  data() {\n    return {\n      isDeleteConfirmed: false,\n      isDeleting: false,\n      isDeletingSuccess: false,\n      isDeletingError: false,\n    }\n  },\n\n  computed: {\n    ...mapState('articleStore', ['article']),\n  },\n\n  created() { },\n\n  methods: {\n    ...mapMutations('articleStore', ['setArticle']),\n\n    async deleteLink() {\n      if (this.isDeleting) { return }\n      this.isDeleting = true\n\n      try {\n        await articleProvider.methods.deleteArticleLink(this.articleId, this.source.Id)\n        this.isDeletingSuccess = true\n        this.$emit('updated', this.source.Id)\n        let t = setTimeout(() => {\n          this.onClickCancel()\n          clearTimeout(t)\n        }, 1500);\n      } catch {\n        this.isDeleting = false\n        this.isDeletingError = true\n      }\n    },\n  },\n}\n</script>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../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!./ModalDeleteArticleSource.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../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!./ModalDeleteArticleSource.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ModalDeleteArticleSource.vue?vue&type=template&id=6b3c5c95\"\nimport script from \"./ModalDeleteArticleSource.vue?vue&type=script&lang=js\"\nexport * from \"./ModalDeleteArticleSource.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\nexport default component.exports"],"sourceRoot":""}