{"version":3,"sources":["webpack:///src/components/UI/TransitionExpand.vue","webpack:///./src/components/UI/TransitionExpand.vue","webpack:///./src/components/UI/TransitionExpand.vue?7c9b","webpack:///./src/components/Vouchers/SpacePriceDiscountSettings.vue","webpack:///./src/components/Vouchers/ModalEditSpacePriceTypeSettings.vue","webpack:///src/components/Vouchers/ModalEditSpacePriceTypeSettings.vue","webpack:///./src/components/Vouchers/ModalEditSpacePriceTypeSettings.vue?8065","webpack:///./src/components/Vouchers/ModalEditSpacePriceTypeSettings.vue?6f02","webpack:///./src/components/Vouchers/SpacePercentage.vue","webpack:///src/components/Vouchers/SpacePercentage.vue","webpack:///./src/components/Vouchers/SpacePercentage.vue?2bdf","webpack:///./src/components/Vouchers/SpacePercentage.vue?3b30","webpack:///./src/components/Vouchers/SpacePrice.vue","webpack:///src/components/Vouchers/SpacePrice.vue","webpack:///./src/components/Vouchers/SpacePrice.vue?abbc","webpack:///./src/components/Vouchers/SpacePrice.vue?23c8","webpack:///src/components/Vouchers/SpacePriceDiscountSettings.vue","webpack:///./src/components/Vouchers/SpacePriceDiscountSettings.vue?d6ef","webpack:///./src/components/Vouchers/SpacePriceDiscountSettings.vue?19df","webpack:///./src/components/Settings/Yield/YieldList.vue","webpack:///src/components/Settings/Yield/YieldList.vue","webpack:///./src/components/Settings/Yield/YieldList.vue?beeb","webpack:///./src/components/Settings/Yield/YieldList.vue?bd68","webpack:///./src/components/Vouchers/ModalEditSpacePriceTypeSettings.vue?52d4","webpack:///./src/components/Vouchers/ModalDeactivateSeatRebate.vue","webpack:///src/components/Vouchers/ModalDeactivateSeatRebate.vue","webpack:///./src/components/Vouchers/ModalDeactivateSeatRebate.vue?20a8","webpack:///./src/components/Vouchers/ModalDeactivateSeatRebate.vue?3f36","webpack:///./src/components/UI/TransitionExpand.vue?08db","webpack:///./src/components/Vouchers/SpacePrice.vue?e075","webpack:///./src/components/UI/Form/BaseCheckbox.vue?2b39","webpack:///./src/components/UI/Form/BaseCheckbox.vue","webpack:///src/components/UI/Form/BaseCheckbox.vue","webpack:///./src/components/UI/Form/BaseCheckbox.vue?6365","webpack:///./src/components/UI/Form/BaseCheckbox.vue?1cd8","webpack:///./src/components/UI/TransitionExpand.vue?cdc1","webpack:///./src/components/UI/Message.vue","webpack:///src/components/UI/Message.vue","webpack:///./src/components/UI/Message.vue?5d20","webpack:///./src/components/UI/Message.vue?fb09"],"names":["render","staticRenderFns","name","functional","createElement","context","data","props","on","afterEnter","element","style","height","enter","_getComputedStyle","getComputedStyle","width","position","visibility","_getComputedStyle2","setTimeout","leave","_getComputedStyle3","children","component","_vm","this","_c","_self","voucher","showModalSettings","attrs","hideModal","setVoucher","_e","showDeactivateSeatRebate","SeatRebateDeactivated","Type","locationCanEdit","showModal","ApplySeatRebate","labelChangeSeatType","$t","setShowDeactivateSeatRebate","scopedSlots","_u","key","fn","_v","_s","textSectionHeader","proxy","staticClass","domProps","textPriceMethodHeader","SpaceDiscountType","Id","priceRights","setVoucherSpaceDiscountType","onClickCancel","isSaving","isSavingSuccess","isSavingError","agreedWithChanges","_l","discountTypes","discountType","index","class","mVoucher","$event","setDiscountType","hasChanges","model","value","callback","$$v","expression","components","Message","BaseCheckbox","TransitionExpand","type","Object","default","Boolean","Function","required","_objectSpread","locationId","Number","$route","params","YieldSetting","Percentage","computed","hash","watch","handler","val","methods","mapMutations","saveVoucher","_this","_asyncToGenerator","_regenerator","m","_callee","w","_context","n","LocationId","voucherProvider","then","response","status","$emit","t","clearTimeout","catch","error","finally","a","_this2","criteria","VoucherId","DiscountType","saveVoucherDiscountType","showEditSpacePercentage","voucherEdited","SpacePercentage","IgnoreSpacePriceLimits","setShowEditSpacePercentage","textPercentageType","mSpacePercentage","ModalEditSpacePercentage","ModalDeactivateSeatRebate","mapState","canEdit","locationIndex","Locations","findIndex","l","LocationCreated","strong","endStrong","created","setupSpacePercentage","Location","locationState","showModalSpacePrice","yieldSettings","setShowModalSpacePrice","taxPercentage","_f","price","ModalSetSpacePrice","settings","Prices","length","PriceParts","Price","TaxPercentage","ModalEditSpacePriceTypeSettings","SpacePrice","YieldList","mapGetters","showCreateYieldSetting","spaceId","yieldSettingsList","selectedChannelId","voucherId","selectedMeetingtypeId","yieldSettingCreated","channels","channel","ChannelId","showVouchers","showYieldSettings","ChannelName","meetingtypeId","meetingtypeIds","mId","concat","isLoading","getYieldSettingsFilteredByMeetingtype","userRights","showAddYieldLink","setShowCreateYieldSetting","getVoucherYieldSettings","ModalCreateYieldSetting","YieldTable","channelId","showTutorialTips","hideListTitle","selectedYieldSetting","hasEditRights","defaultChannelId","Settings","Channels","push","find","c","filter","Meetingtypes","map","MeetingtypeId","yieldSettingsFilteredByChannel","self","ysList","ys","setYieldSettingsList","getLocationYieldSettings","mounted","startupTutorial","mapActions","yieldProvider","goToYieldSettings","setYieldSettingsState","$router","yieldId","slot","classes","disabled","checked","checkValue","onChange","label","cssClassLabel","String","Array","get","isArray","indexOf","set","evt","splice","target","combindedClass","message","_t","size"],"mappings":"0OACe,ICDXA,EAAQC,EDCG,GACfC,KAAA,mBACAC,YAAA,EACAH,OAAA,SAAAI,EAAAC,GACA,IAAAC,EAAA,CACAC,MAAA,CACAL,KAAA,UAEAM,GAAA,CACAC,WAAA,SAAAC,GAEAA,EAAAC,MAAAC,OAAA,QAEAC,MAAA,SAAAH,GACA,IAAAI,EAAAC,iBAAAL,GAAAM,EAAAF,EAAAE,MAEAN,EAAAC,MAAAK,QACAN,EAAAC,MAAAM,SAAA,WACAP,EAAAC,MAAAO,WAAA,SACAR,EAAAC,MAAAC,OAAA,OAEA,IAAAO,EAAAJ,iBAAAL,GAAAE,EAAAO,EAAAP,OAEAF,EAAAC,MAAAK,MAAA,KACAN,EAAAC,MAAAM,SAAA,KACAP,EAAAC,MAAAO,WAAA,KACAR,EAAAC,MAAAC,OAAA,EAKAG,iBAAAL,GAAAE,OACAQ,YAAA,WAEAV,EAAAC,MAAAC,aAGAS,MAAA,SAAAX,GACA,IAAAY,EAAAP,iBAAAL,GAAAE,EAAAU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AAvJ,OAEAgK,IAAA,SAAAvI,OAKAC,QAAA,CACA8H,SAAA,SAAAS,GACAL,MAAAE,QAAA,KAAA9J,SACA,SAAAA,MAAA+J,QAAA,KAAAR,YACA,KAAAvJ,MAAAkK,OAAA,KAAAlK,MAAA+J,QAAA,KAAAR,YAAA,GAEA,KAAAvJ,MAAA8H,KAAA,KAAAyB,YAEA,KAAA7G,MAAA,aAAA1C,QAEA,KAAA0C,MAAA,QAAAuH,EAAAE,OAAAb,aClFmX,I,wBCQ/WxM,EAAY,eACd,EACAxB,EACAC,GACA,EACA,KACA,WACA,MAIa,aAAAuB,E,kECnBf,W,yCCAA,IAAIxB,EAAS,WAAkB,IAAIyB,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACyB,YAAY,UAAUgB,MAAM3C,EAAIqN,gBAAgB,CAACnN,EAAG,MAAM,CAACyB,YAAY,gBAAgB,CAAE3B,EAAIsN,QAAS,CAACtN,EAAIuB,GAAG,IAAIvB,EAAIwB,GAAGxB,EAAIsN,SAAS,MAAMtN,EAAIS,KAAKT,EAAIuN,GAAG,YAAY,MAErP/O,EAAkB,GCaP,GACfM,MAAA,CAIAwO,QAAA,CACA7J,KAAAmJ,OACAjJ,QAAA,IAGA6J,KAAA,CACA/J,KAAAmJ,OACAjJ,QAAA,IAOAF,KAAA,CACAA,KAAAmJ,OACAjJ,QAAA,YAGA9E,KAAA,WACA,UAGAyF,SAAA,CACA+I,eAAA,WACA,IAAApC,EAAA,KAAAxH,KAMA,OAJA,KAAA+J,KAAAlF,OAAA,IACA2C,IAAA,SAAAuC,MAGAvC,KCnD+V,I,YCO3VlL,EAAY,eACd,EACAxB,EACAC,GACA,EACA,KACA,WACA,MAIa,aAAAuB,E","file":"js/chunk-69af679a.js?id=34c144fae50346fb37b3","sourcesContent":["<script>\nexport default {\n  name: `TransitionExpand`,\n  functional: true,\n  render(createElement, context) {\n    const data = {\n      props: {\n        name: `expand`\n      },\n      on: {\n        afterEnter(element) {\n          // eslint-disable-next-line no-param-reassign\n          element.style.height = `auto`\n        },\n        enter(element) {\n          const { width } = getComputedStyle(element)\n          /* eslint-disable no-param-reassign */\n          element.style.width = width\n          element.style.position = `absolute`\n          element.style.visibility = `hidden`\n          element.style.height = `auto`\n          /* eslint-enable */\n          const { height } = getComputedStyle(element)\n          /* eslint-disable no-param-reassign */\n          element.style.width = null\n          element.style.position = null\n          element.style.visibility = null\n          element.style.height = 0\n          /* eslint-enable */\n          // Force repaint to make sure the\n          // animation is triggered correctly.\n          // eslint-disable-next-line no-unused-expressions\n          getComputedStyle(element).height\n          setTimeout(() => {\n            // eslint-disable-next-line no-param-reassign\n            element.style.height = height\n          })\n        },\n        leave(element) {\n          const { height } = getComputedStyle(element)\n          // eslint-disable-next-line no-param-reassign\n          element.style.height = height\n          // Force repaint to make sure the\n          // animation is triggered correctly.\n          // eslint-disable-next-line no-unused-expressions\n          getComputedStyle(element).height\n          setTimeout(() => {\n            // eslint-disable-next-line no-param-reassign\n            element.style.height = 0\n          })\n        }\n      }\n    }\n    return createElement(`transition`, data, context.children)\n  }\n}\n</script>\n\n<style scoped>\n* {\n  will-change: height;\n  transform: translateZ(0);\n  backface-visibility: hidden;\n  perspective: 1000px;\n}\n</style>\n\n<style>\n.expand-enter-active,\n.expand-leave-active {\n  transition: height 0.3s ease-in-out;\n  overflow: hidden;\n}\n.expand-enter,\n.expand-leave-to {\n  height: 0;\n}\n</style>\n","var render, staticRenderFns\nimport script from \"./TransitionExpand.vue?vue&type=script&lang=js\"\nexport * from \"./TransitionExpand.vue?vue&type=script&lang=js\"\nimport style0 from \"./TransitionExpand.vue?vue&type=style&index=0&id=3deb10ec&prod&scoped=true&lang=css\"\nimport style1 from \"./TransitionExpand.vue?vue&type=style&index=1&id=3deb10ec&prod&lang=css\"\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  \"3deb10ec\",\n  null\n  \n)\n\nexport default component.exports","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!./TransitionExpand.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!./TransitionExpand.vue?vue&type=script&lang=js\"","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.voucher)?_c('div',[(_vm.showModalSettings)?_c('ModalEditSpacePriceTypeSettings',{attrs:{\"voucher\":_vm.voucher,\"showModal\":_vm.showModalSettings,\"onClickCancel\":_vm.hideModal},on:{\"voucherEdited\":_vm.setVoucher}}):_vm._e(),(_vm.showDeactivateSeatRebate)?_c('ModalDeactivateSeatRebate',{attrs:{\"showModal\":_vm.showDeactivateSeatRebate,\"onClickCancel\":_vm.hideModal,\"voucher\":_vm.voucher},on:{\"SeatRebateDeactivated\":_vm.SeatRebateDeactivated}}):_vm._e(),(_vm.voucher.Type !== 'Package')?_c('ui-section-header',{attrs:{\"showEdit\":_vm.voucher.Type !== 'Package' && _vm.locationCanEdit,\"editFunction\":_vm.showModal,\"showDelete\":_vm.voucher.ApplySeatRebate && _vm.locationCanEdit,\"editLabel\":_vm.labelChangeSeatType,\"deleteLabel\":_vm.$t(\n        'Components.Vouchers.SpacePriceDiscountSettings.Button_RemoveSetting'\n      ),\"deleteFunction\":_vm.setShowDeactivateSeatRebate},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(_vm._s(_vm.textSectionHeader))]},proxy:true}],null,false,3011627003)}):_vm._e(),(!_vm.voucher.ApplySeatRebate && _vm.voucher.Type !== 'Package')?_c('div',[_c('Message',{attrs:{\"type\":\"is-info\"},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('span',{staticClass:\"level\"},[_c('span',{staticClass:\"is-pulled-left\"},[_vm._v(\" \"+_vm._s(_vm.$t( 'Components.Vouchers.SpacePriceDiscountSettings.Message_NoSettings' ))+\" \")])])]},proxy:true}],null,false,4424651)})],1):_c('div',[(_vm.voucher.Type === 'Package')?_c('div',[_c('SpacePrice')],1):_vm._e(),(_vm.voucher.Type !== 'Package')?_c('div',[_c('div',[_c('div',{staticClass:\"subtitle is-4\",domProps:{\"innerHTML\":_vm._s(_vm.textPriceMethodHeader)}}),(_vm.voucher.SpaceDiscountType === 'Percentage')?_c('div',[_c('SpacePercentage')],1):_vm._e(),(_vm.voucher.SpaceDiscountType === 'YieldSetting')?_c('YieldList',{attrs:{\"voucherId\":_vm.voucher.Id,\"userRights\":_vm.priceRights}}):_vm._e()],1)]):_vm._e()])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('ui-component-modal',{attrs:{\"modalTitle\":_vm.$t(\n      'Components.Vouchers.SpacePriceDiscountSettings.ModalTitle_EditSpaceDiscountSetting'\n    ),\"showModal\":_vm.showModal,\"onClickSave\":_vm.setVoucherSpaceDiscountType,\"onClickCancel\":_vm.onClickCancel,\"isSaving\":_vm.isSaving,\"isSavingSuccess\":_vm.isSavingSuccess,\"isSavingError\":_vm.isSavingError,\"hideFooterButtons\":_vm.isSavingError || _vm.isSavingSuccess,\"disableSaveButton\":!_vm.agreedWithChanges || _vm.isSaving},on:{\"closeModal\":_vm.onClickCancel},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',[_c('div',{staticClass:\"has-text-weight-bold mb-6\",domProps:{\"textContent\":_vm._s(_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.Label_DiscountMethod'))}}),_c('div',{staticClass:\"columns has-text-centered\"},_vm._l((_vm.discountTypes),function(discountType,index){return _c('div',{key:index,staticClass:\"column is-half\"},[_c('div',{staticClass:\"box-priceType box is-clickable\",class:{'is-active has-background-success-light': (_vm.mVoucher.ApplySeatRebate === true && _vm.mVoucher.SpaceDiscountType === discountType)},on:{\"click\":function($event){return _vm.setDiscountType(discountType)}}},[_c('div',{staticClass:\"has-text-centered has-text-weight-bold\"},[(discountType === 'YieldSetting')?_c('span',[_c('span',{staticClass:\"icon is-small has-margin-right\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'coins']}})],1),_c('span',[_vm._v(_vm._s(discountType))])]):_vm._e(),(discountType === 'Percentage')?_c('span',[_c('span',{staticClass:\"icon is-small has-margin-right\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'percent']}})],1),_c('span',[_vm._v(_vm._s(discountType))])]):_vm._e()]),_c('Message',{staticClass:\"has-margin-top is-info is-small\",scopedSlots:_vm._u([{key:\"content\",fn:function(){return [(discountType === 'YieldSetting')?_c('div',{staticClass:\"has-text-centered infoText\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.InfoText_YieldSetting'))+\" \")]):_vm._e(),(discountType === 'Percentage')?_c('div',{staticClass:\"has-text-centered infoText\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.InfoText_Percentage'))+\" \")]):_vm._e()]},proxy:true}],null,true)})],1)])}),0),(_vm.hasChanges)?_c('TransitionExpand',[_c('div',{staticClass:\"has-margin-top\"},[_c('div',{staticClass:\"has-margin-bottom has-text-centered has-text-weight-bold\",domProps:{\"innerHTML\":_vm._s(_vm.$t(`Components.Vouchers.SpacePriceDiscountSettings.Message_AgreedWithChanges`))}}),_c('div',{staticClass:\"has-text-centered\"},[_c('BaseCheckbox',{staticClass:\"has-text-left has-text-weight-bold\",attrs:{\"label\":_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.Text_YesSure')},model:{value:(_vm.agreedWithChanges),callback:function ($$v) {_vm.agreedWithChanges=$$v},expression:\"agreedWithChanges\"}})],1)])]):_vm._e()],1)]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <ui-component-modal\n    :modalTitle=\"\n      $t(\n        'Components.Vouchers.SpacePriceDiscountSettings.ModalTitle_EditSpaceDiscountSetting'\n      )\n    \"\n    :showModal=\"showModal\"\n    :onClickSave=\"setVoucherSpaceDiscountType\"\n    :onClickCancel=\"onClickCancel\"\n    :isSaving=\"isSaving\"\n    :isSavingSuccess=\"isSavingSuccess\"\n    :isSavingError=\"isSavingError\"\n    :hideFooterButtons=\"isSavingError || isSavingSuccess\"\n    :disableSaveButton=\"!agreedWithChanges || isSaving\"\n    @closeModal=\"onClickCancel\"\n  >\n    <template v-slot:content>\n      <div>\n        <div\n          class=\"has-text-weight-bold mb-6\"\n          v-text=\"$t('Components.Vouchers.SpacePriceDiscountSettings.Label_DiscountMethod')\"\n        ></div>\n        <div class=\"columns has-text-centered\">\n          <div\n            class=\"column is-half\"\n            v-for=\"(discountType, index) in discountTypes\"\n            :key=\"index\"\n          >\n            <div\n              @click=\"setDiscountType(discountType)\"\n              class=\"box-priceType box is-clickable\"\n              :class=\"{'is-active has-background-success-light': (mVoucher.ApplySeatRebate === true && mVoucher.SpaceDiscountType === discountType)}\"\n            >\n              <div class=\"has-text-centered has-text-weight-bold\">\n\n                <span v-if=\"discountType === 'YieldSetting'\">\n                  <span class=\"icon is-small has-margin-right\">\n                    <font-awesome-icon :icon=\"['fas', 'coins']\" />\n                  </span>\n                  <span>{{discountType}}</span>\n                </span>\n\n                <span v-if=\"discountType === 'Percentage'\">\n                  <span class=\"icon is-small has-margin-right\">\n                    <font-awesome-icon :icon=\"['fas', 'percent']\" />\n                  </span>\n                  <span>{{discountType}}</span>\n                </span>\n\n              </div>\n              <Message class=\"has-margin-top is-info is-small\">\n                <template v-slot:content>\n                  <div\n                    v-if=\"discountType === 'YieldSetting'\"\n                    class=\"has-text-centered infoText\"\n                  >\n                    {{ $t('Components.Vouchers.SpacePriceDiscountSettings.InfoText_YieldSetting') }}\n                  </div>\n\n                  <div\n                    v-if=\"discountType === 'Percentage'\"\n                    class=\"has-text-centered infoText\"\n                  >\n                    {{ $t('Components.Vouchers.SpacePriceDiscountSettings.InfoText_Percentage') }}\n                  </div>\n                </template>\n              </Message>\n            </div>\n          </div>\n        </div>\n        <TransitionExpand v-if=\"hasChanges\">\n          <div class=\"has-margin-top\">\n            <div\n              class=\"has-margin-bottom has-text-centered has-text-weight-bold\"\n              v-html=\"$t(`Components.Vouchers.SpacePriceDiscountSettings.Message_AgreedWithChanges`)\"\n            ></div>\n            <div class=\"has-text-centered\">\n              <BaseCheckbox\n                v-model=\"agreedWithChanges\"\n                class=\"has-text-left has-text-weight-bold\"\n                :label=\"$t('Components.Vouchers.SpacePriceDiscountSettings.Text_YesSure')\"\n              />\n            </div>\n          </div>\n        </TransitionExpand>\n      </div>\n    </template>\n  </ui-component-modal>\n</template>\n\n<script>\nimport hash from 'object-hash'\nimport Message from '@/components/UI/Message'\nimport voucherProvider from '../../providers/voucher'\nimport BaseCheckbox from '@/components/UI/Form/BaseCheckbox'\nimport TransitionExpand from '../UI/TransitionExpand.vue'\nimport { mapMutations } from 'vuex'\nexport default {\n  components: {\n    Message,\n    BaseCheckbox,\n    TransitionExpand,\n  },\n\n  props: {\n    voucher: {\n      type: Object,\n      default: null,\n    },\n\n    showModal: {\n      type: Boolean,\n      default: false,\n    },\n    onClickCancel: {\n      type: Function,\n      required: true,\n    },\n  },\n\n  data() {\n    return {\n      mVoucher: { ...this.voucher },\n      locationId: Number(this.$route.params.locationId),\n      isSavingError: false,\n      isSavingSuccess: false,\n      isSaving: false,\n      discountTypes: {\n        YieldSetting: 'YieldSetting',\n        Percentage: 'Percentage',\n      },\n      agreedWithChanges: false,\n    }\n  },\n\n  computed: {\n    hasChanges() {\n      return hash(this.voucher) !== hash(this.mVoucher)\n    },\n  },\n\n  watch: {\n    'mVoucher.ApplySeatRebate': {\n      handler: function(val) {\n        this.agreedWithChanges = false\n        if (!val) {\n          this.mVoucher.SpaceDiscountType = this.voucher.SpaceDiscountType\n        }\n      },\n    },\n  },\n\n  methods: {\n    ...mapMutations('voucherStore', ['setVoucher']),\n\n    setDiscountType(discountType) {\n      this.mVoucher.SpaceDiscountType = discountType\n      this.mVoucher.ApplySeatRebate = true\n    },\n\n    async saveVoucher() {\n      if (!this.isSaving) {\n        this.isSaving = true\n        this.mVoucher.LocationId = this.locationId\n\n        await this.setVoucherSpaceDiscountType()\n        voucherProvider.methods\n          .saveVoucher(this.mVoucher)\n          .then((response) => {\n            if (response.status === 200) {\n              this.isSavingSuccess = true\n              this.setVoucher(response.data)\n              this.$emit('voucherEdited', response.data)\n\n              let t = setTimeout(() => {\n                this.onClickCancel()\n                clearTimeout(t)\n              }, 1500)\n            }\n          })\n          .catch((error) => {\n            this.isSavingError = true\n          })\n          .finally(() => {\n            this.isSaving = false\n          })\n      }\n    },\n\n    setVoucherSpaceDiscountType() {\n      if (!this.isSaving) {\n        this.isSaving = true\n\n        let criteria = {\n          VoucherId: this.voucher.Id,\n          LocationId: this.locationId,\n          DiscountType: this.mVoucher.ApplySeatRebate\n            ? this.mVoucher.SpaceDiscountType\n            : 'NoDiscount',\n        }\n\n        voucherProvider.methods\n          .saveVoucherDiscountType(criteria)\n          .then((response) => {\n            if (response.status === 200) {\n              this.isSavingSuccess = true\n              this.setVoucher(response.data)\n              this.$emit('voucherEdited', response.data)\n\n              let t = setTimeout(() => {\n                this.onClickCancel()\n                clearTimeout(t)\n              }, 1500)\n            }\n          })\n          .catch((error) => {\n            this.isSavingError = true\n          })\n          .finally(() => {\n            this.isSaving = false\n          })\n      }\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.box-priceType {\n  border: 1px solid transparent;\n  &.is-active {\n    border-color: $green;\n  }\n}\n.infoText {\n  min-height: 40px !important;\n  height: 40px !important;\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!./ModalEditSpacePriceTypeSettings.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!./ModalEditSpacePriceTypeSettings.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ModalEditSpacePriceTypeSettings.vue?vue&type=template&id=609671be&scoped=true\"\nimport script from \"./ModalEditSpacePriceTypeSettings.vue?vue&type=script&lang=js\"\nexport * from \"./ModalEditSpacePriceTypeSettings.vue?vue&type=script&lang=js\"\nimport style0 from \"./ModalEditSpacePriceTypeSettings.vue?vue&type=style&index=0&id=609671be&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  \"609671be\",\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.voucher)?_c('div',[(_vm.showEditSpacePercentage)?_c('ModalEditSpacePercentage',{attrs:{\"showModal\":_vm.showEditSpacePercentage,\"onClickCancel\":_vm.hideModal},on:{\"voucherEdited\":_vm.voucherEdited}}):_vm._e(),(_vm.showDeactivateSeatRebate)?_c('ModalDeactivateSeatRebate',{attrs:{\"showModal\":_vm.showDeactivateSeatRebate,\"onClickCancel\":_vm.hideModal,\"voucher\":_vm.voucher},on:{\"SeatRebateDeactivated\":_vm.SeatRebateDeactivated}}):_vm._e(),(_vm.voucher.SpacePercentage && !_vm.voucher.SpacePercentage.IgnoreSpacePriceLimits)?_c('Message',{attrs:{\"type\":\"is-danger\",\"message\":_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.Warning_SpaceSettings')}}):_vm._e(),_c('table',{staticClass:\"table is-fullwidth\"},[_c('thead',[(_vm.voucher.ApplySeatRebate)?_c('tr',[_c('th',{domProps:{\"textContent\":_vm._s(\n            this.$t(\n              `Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_PercentageDescription`\n            )\n          )}}),_c('th',{staticClass:\"has-text-right\",domProps:{\"innerHTML\":_vm._s(\n            this.$t(\n              `Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_Percentage`\n            )\n          )}}),_c('th',[_vm._v(\" \")])]):_vm._e()]),_c('tbody',[(!_vm.voucher.ApplySeatRebate)?_c('tr',{staticClass:\"is-fullwidth\"},[_c('td',{attrs:{\"colspan\":\"3\"}},[_c('Message',{scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',[_c('span',{staticClass:\"level\"},[_c('span',{staticClass:\"is-pulled-left\"},[_vm._v(\" \"+_vm._s(_vm.$t( 'Components.Vouchers.SpacePriceDiscountSettings.Text_NoPercentageSet' ))+\" \")]),_c('span',[_c('a',{staticClass:\"button is-primary\",domProps:{\"textContent\":_vm._s(\n                        _vm.$t(\n                          'Components.Vouchers.SpacePriceDiscountSettings.Button_SetAPercentage'\n                        )\n                      )},on:{\"click\":_vm.setShowEditSpacePercentage}})])])])]},proxy:true}],null,false,408076754)})],1)]):_vm._e(),(_vm.voucher.ApplySeatRebate)?_c('tr',[_c('td',{domProps:{\"innerHTML\":_vm._s(_vm.textPercentageType)}}),_c('td',{staticClass:\"has-text-right\"},[_vm._v(\" \"+_vm._s(_vm.mSpacePercentage.SpacePercentage)+\"% \")]),_c('td',[(_vm.locationCanEdit)?_c('div',{staticClass:\"field is-grouped is-grouped-right\"},[_c('p',{staticClass:\"control\"},[_c('a',{on:{\"click\":function($event){return _vm.setShowEditSpacePercentage()}}},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'edit']}})],1)])]),_c('p',{staticClass:\"control\"},[_c('a',{on:{\"click\":function($event){return _vm.setShowDeactivateSeatRebate()}}},[_c('span',{staticClass:\"icon has-text-danger\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'trash-alt']}})],1)])])]):_vm._e()])]):_vm._e()])])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div v-if=\"voucher\">\n    <ModalEditSpacePercentage\n      v-if=\"showEditSpacePercentage\"\n      :showModal=\"showEditSpacePercentage\"\n      :onClickCancel=\"hideModal\"\n      @voucherEdited=\"voucherEdited\"\n    />\n\n    <ModalDeactivateSeatRebate\n      v-if=\"showDeactivateSeatRebate\"\n      :showModal=\"showDeactivateSeatRebate\"\n      :onClickCancel=\"hideModal\"\n      :voucher=\"voucher\"\n      @SeatRebateDeactivated=\"SeatRebateDeactivated\"\n    />\n    \n    <Message type=\"is-danger\" v-if=\"voucher.SpacePercentage && !voucher.SpacePercentage.IgnoreSpacePriceLimits\" :message=\"$t('Components.Vouchers.SpacePriceDiscountSettings.Warning_SpaceSettings')\" />\n\n    <table class=\"table is-fullwidth\">\n      <thead>\n        <tr v-if=\"voucher.ApplySeatRebate\">\n          <th\n            v-text=\"\n              this.$t(\n                `Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_PercentageDescription`\n              )\n            \"\n          ></th>\n          <th\n            v-html=\"\n              this.$t(\n                `Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_Percentage`\n              )\n            \"\n            class=\"has-text-right\"\n          ></th>\n          <th>&nbsp;</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr v-if=\"!voucher.ApplySeatRebate\" class=\"is-fullwidth\">\n          <td colspan=\"3\">\n            <Message>\n              <template v-slot:content>\n                <div>\n                  <span class=\"level\">\n                    <span class=\"is-pulled-left\">\n                      {{\n                        $t(\n                          'Components.Vouchers.SpacePriceDiscountSettings.Text_NoPercentageSet'\n                        )\n                      }}\n                    </span>\n                    <span>\n                      <a\n                        @click=\"setShowEditSpacePercentage\"\n                        class=\"button is-primary\"\n                        v-text=\"\n                          $t(\n                            'Components.Vouchers.SpacePriceDiscountSettings.Button_SetAPercentage'\n                          )\n                        \"\n                      ></a>\n                    </span>\n                  </span>\n                </div>\n              </template>\n            </Message>\n          </td>\n        </tr>\n        <tr v-if=\"voucher.ApplySeatRebate\">\n          <td v-html=\"textPercentageType\"></td>\n          <td class=\"has-text-right\">\n            {{ mSpacePercentage.SpacePercentage }}%\n          </td>\n          <td>\n            <div\n              v-if=\"locationCanEdit\"\n              class=\"field is-grouped is-grouped-right\"\n            >\n              <p class=\"control\">\n                <a @click=\"setShowEditSpacePercentage()\">\n                  <span class=\"icon\">\n                    <font-awesome-icon :icon=\"['fas', 'edit']\" />\n                  </span>\n                </a>\n              </p>\n              <p class=\"control\">\n                <a @click=\"setShowDeactivateSeatRebate()\">\n                  <span class=\"icon has-text-danger\">\n                    <font-awesome-icon :icon=\"['fas', 'trash-alt']\" />\n                  </span>\n                </a>\n              </p>\n            </div>\n          </td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\n\nexport default {\n  components: {\n    ModalEditSpacePercentage: () =>\n      import('@/components/Vouchers/ModalEditSpacePercentage'),\n    ModalDeactivateSeatRebate: () =>\n      import('@/components/Vouchers/ModalDeactivateSeatRebate.vue'),\n    Message: () => import('@/components/UI/Message'),\n  },\n\n  props: {},\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      mSpacePercentage: null,\n      showEditSpacePercentage: false,\n      showDeactivateSeatRebate: false,\n    }\n  },\n\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n    ...mapState('voucherStore', ['voucher']),\n\n    locationCanEdit() {\n      let canEdit = false\n\n      if (this.voucher) {\n        let locationIndex = this.voucher.Locations.findIndex(\n          (l) => l.LocationId === this.locationId\n        )\n        if (locationIndex > -1) {\n          canEdit = this.voucher.Locations[locationIndex].LocationCreated\n        }\n      }\n\n      return canEdit\n    },\n\n    textPercentageType() {\n      if (this.mSpacePercentage.SpacePercentage === 0) {\n        return this.$t(\n          `Components.Vouchers.SpacePriceDiscountSettings.Text_NoDiscountSet`,\n          { strong: '<strong>', endStrong: '</strong>' }\n        )\n      }\n      if (this.mSpacePercentage.SpacePercentage < 0) {\n        return this.$t(\n          `Components.Vouchers.SpacePriceDiscountSettings.Text_DiscountSet`,\n          { strong: '<strong>', endStrong: '</strong>' }\n        )\n      }\n      if (this.mSpacePercentage.SpacePercentage > 0) {\n        return this.$t(\n          `Components.Vouchers.SpacePriceDiscountSettings.Text_SurchargeSet`,\n          { strong: '<strong>', endStrong: '</strong>' }\n        )\n      }\n      return ''\n    },\n  },\n\n  created() {\n    this.setupSpacePercentage()\n  },\n\n  methods: {\n    voucherEdited(voucher) {\n      this.mSpacePercentage = {\n        VoucherId: voucher.Id,\n        Location: this.locationState.Id,\n        SpacePercentage: voucher.SpacePercentage\n          ? voucher.SpacePercentage.SpacePercentage\n          : 0,\n        IgnoreSpacePriceLimits: voucher.SpacePercentage ? voucher.SpacePercentage.IgnoreSpacePriceLimits : false\n      }\n    },\n\n    SeatRebateDeactivated(voucher) {\n      //Make new modal to deactivate rebate, copy from original modal. (split it)\n      ///set show modal to deacivate seatRebate\n      //@rebateDeleted, call this function.\n\n      this.voucher.ApplySeatRebate = false\n      // console.log(voucher)\n    },\n\n    setupSpacePercentage() {\n      this.mSpacePercentage = {\n        VoucherId: this.voucher.Id,\n        Location: this.locationState.Id,\n        SpacePercentage: this.voucher.SpacePercentage\n          ? this.voucher.SpacePercentage.SpacePercentage\n          : 0,\n          IgnoreSpacePriceLimits: this.voucher.SpacePercentage ? this.voucher.SpacePercentage.IgnoreSpacePriceLimits : false\n      }\n    },\n\n    setShowEditSpacePercentage() {\n      this.showEditSpacePercentage = true\n    },\n\n    setShowDeactivateSeatRebate() {\n      this.showDeactivateSeatRebate = true\n    },\n\n    hideModal() {\n      this.showEditSpacePercentage = false\n      this.showDeactivateSeatRebate = false\n    },\n  },\n}\n</script>\n\n<style></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!./SpacePercentage.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!./SpacePercentage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SpacePercentage.vue?vue&type=template&id=3a9df496\"\nimport script from \"./SpacePercentage.vue?vue&type=script&lang=js\"\nexport * from \"./SpacePercentage.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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.showModalSpacePrice)?_c('ModalSetSpacePrice',{attrs:{\"showModal\":_vm.showModalSpacePrice,\"onClickCancel\":_vm.hideModal}}):_vm._e(),_c('ui-section-header',{attrs:{\"showAdd\":_vm.yieldSettings === null,\"addFunction\":_vm.setShowModalSpacePrice,\"showEdit\":_vm.yieldSettings !== null,\"editFunction\":_vm.setShowModalSpacePrice},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(_vm._s(_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.ModalTitle_SpacePrice')))]},proxy:true}])}),(_vm.yieldSettings)?_c('table',{staticClass:\"table is-fullwidth is-striped\"},[_c('thead',[_c('tr',[_c('th',[_vm._v(\" \")]),_c('th',{staticClass:\"has-text-right\",domProps:{\"textContent\":_vm._s(_vm.$t('General.VAT'))}}),_c('th',{staticClass:\"has-text-right\",domProps:{\"textContent\":_vm._s(_vm.$t('General.Price'))}})])]),_c('tbody',[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Vouchers.SpacePriceDiscountSettings.Text_SpacePrice')))]),_c('td',{staticClass:\"has-text-right\",attrs:{\"width\":\"100px\"}},[_vm._v(_vm._s(_vm.taxPercentage)+\"%\")]),_c('td',{staticClass:\"has-text-right\",attrs:{\"width\":\"100px\"}},[_vm._v(_vm._s(_vm._f(\"toCurrency\")(_vm.price)))])])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <ModalSetSpacePrice\n      v-if=\"showModalSpacePrice\"\n      :showModal=\"showModalSpacePrice\"\n      :onClickCancel=\"hideModal\"\n    />\n\n    <ui-section-header\n      :showAdd=\"yieldSettings === null\"\n      :addFunction=\"setShowModalSpacePrice\"\n      :showEdit=\"yieldSettings !== null\"\n      :editFunction=\"setShowModalSpacePrice\"\n    >\n      <template v-slot:title>{{ $t('Components.Vouchers.SpacePriceDiscountSettings.ModalTitle_SpacePrice') }}</template>\n    </ui-section-header>\n\n    <table\n      v-if=\"yieldSettings\"\n      class=\"table is-fullwidth is-striped\"\n    >\n      <thead>\n        <tr>\n          <th>&nbsp;</th>\n          <th v-text=\"$t('General.VAT')\" class=\"has-text-right\"></th>\n          <th v-text=\"$t('General.Price')\" class=\"has-text-right\"></th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr>\n          <td>{{ $t('Components.Vouchers.SpacePriceDiscountSettings.Text_SpacePrice') }}</td>\n          <td width=\"100px\" class=\"has-text-right\">{{ taxPercentage }}%</td>\n          <td width=\"100px\" class=\"has-text-right\">{{ price | toCurrency }}</td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\n\nconst ModalSetSpacePrice = () =>\n  import('@/components/Vouchers/ModalSetSpacePrice')\n\nexport default {\n  components: {\n    ModalSetSpacePrice,\n  },\n\n  props: {},\n\n  data() {\n    return {\n      showModalSpacePrice: false,\n    }\n  },\n\n  computed: {\n    ...mapState('voucherStore', ['voucher']),\n\n    yieldSettings() {\n      let settings = null\n\n      if (\n        this.voucher &&\n        this.voucher.Prices &&\n        this.voucher.Prices.length > 0\n      ) {\n        settings = this.voucher.Prices[0]\n      }\n\n      return settings\n    },\n\n    price() {\n      let price = 0\n\n      if (this.yieldSettings && this.yieldSettings.PriceParts) {\n        price = this.yieldSettings.PriceParts[0].Price\n      }\n\n      return price\n    },\n\n    taxPercentage() {\n      let taxPercentage = 0\n\n      if (this.yieldSettings) {\n        taxPercentage = this.yieldSettings.TaxPercentage\n      }\n\n      return taxPercentage\n    },\n  },\n\n  created() { },\n\n  methods: {\n    setShowModalSpacePrice() {\n      this.showModalSpacePrice = true\n    },\n\n    hideModal() {\n      this.showModalSpacePrice = false\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.table {\n  tr {\n    td:first-child {\n      width: 71%;\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!./SpacePrice.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!./SpacePrice.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SpacePrice.vue?vue&type=template&id=59de79be&scoped=true\"\nimport script from \"./SpacePrice.vue?vue&type=script&lang=js\"\nexport * from \"./SpacePrice.vue?vue&type=script&lang=js\"\nimport style0 from \"./SpacePrice.vue?vue&type=style&index=0&id=59de79be&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  \"59de79be\",\n  null\n  \n)\n\nexport default component.exports","<template>\n  <div v-if=\"voucher\">\n    <ModalEditSpacePriceTypeSettings\n      v-if=\"showModalSettings\"\n      :voucher=\"voucher\"\n      :showModal=\"showModalSettings\"\n      :onClickCancel=\"hideModal\"\n      @voucherEdited=\"setVoucher\"\n    />\n\n    <ModalDeactivateSeatRebate\n      v-if=\"showDeactivateSeatRebate\"\n      :showModal=\"showDeactivateSeatRebate\"\n      :onClickCancel=\"hideModal\"\n      :voucher=\"voucher\"\n      @SeatRebateDeactivated=\"SeatRebateDeactivated\"\n    />\n\n    <ui-section-header\n      v-if=\"voucher.Type !== 'Package'\"\n      :showEdit=\"voucher.Type !== 'Package' && locationCanEdit\"\n      :editFunction=\"showModal\"\n      :showDelete=\"voucher.ApplySeatRebate && locationCanEdit\"\n      :editLabel=\"labelChangeSeatType\"\n      :deleteLabel=\"\n        $t(\n          'Components.Vouchers.SpacePriceDiscountSettings.Button_RemoveSetting'\n        )\n      \"\n      :deleteFunction=\"setShowDeactivateSeatRebate\"\n    >\n      <template v-slot:title>{{ textSectionHeader }}</template>\n    </ui-section-header>\n\n    <div v-if=\"!voucher.ApplySeatRebate && voucher.Type !== 'Package'\">\n      <Message type=\"is-info\">\n        <template v-slot:content>\n          <span class=\"level\">\n            <span class=\"is-pulled-left\">\n              {{\n                $t(\n                  'Components.Vouchers.SpacePriceDiscountSettings.Message_NoSettings'\n                )\n              }}\n            </span>\n          </span>\n        </template>\n      </Message>\n    </div>\n\n    <div v-else>\n      <div v-if=\"voucher.Type === 'Package'\">\n        <SpacePrice />\n      </div>\n\n      <div v-if=\"voucher.Type !== 'Package'\">\n        <div>\n          <div\n            class=\"subtitle is-4\"\n            v-html=\"textPriceMethodHeader\"\n          ></div>\n\n          <div v-if=\"voucher.SpaceDiscountType === 'Percentage'\">\n            <SpacePercentage />\n          </div>\n\n          <YieldList\n            v-if=\"voucher.SpaceDiscountType === 'YieldSetting'\"\n            :voucherId=\"voucher.Id\"\n            :userRights=\"priceRights\"\n          />\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapGetters, mapMutations, mapState } from 'vuex';\nimport Message from '@/components/UI/Message';\nimport ModalEditSpacePriceTypeSettings from './ModalEditSpacePriceTypeSettings.vue';\nimport ModalDeactivateSeatRebate from '@/components/Vouchers/ModalDeactivateSeatRebate.vue';\nimport SpacePercentage from '@/components/Vouchers/SpacePercentage';\nimport SpacePrice from '@/components/Vouchers/SpacePrice';\nimport YieldList from '@/components/Settings/Yield/YieldList';\n\nexport default {\n  props: {},\n\n  components: {\n    Message,\n    ModalEditSpacePriceTypeSettings,\n    ModalDeactivateSeatRebate,\n    SpacePercentage,\n    SpacePrice,\n    YieldList,\n  },\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      showModalSettings: false,\n      showDeactivateSeatRebate: false,\n    };\n  },\n\n  computed: {\n    ...mapGetters('locationStore', ['voucherRights', 'priceRights']),\n    ...mapState('voucherStore', ['voucher']),\n\n    locationCanEdit() {\n      let canEdit = false;\n\n      if (this.voucher) {\n        let locationIndex = this.voucher.Locations.findIndex(\n          (l) => l.LocationId === this.locationId\n        );\n        if (locationIndex > -1) {\n          canEdit = this.voucher.Locations[locationIndex].LocationCreated;\n        }\n      }\n\n      return canEdit;\n    },\n\n    labelChangeSeatType() {\n      return !this.voucher.ApplySeatRebate && this.voucher.Type !== 'Package'\n        ? this.$t(\n            'Components.Vouchers.SpacePriceDiscountSettings.Button_EnablePriceSetting'\n          )\n        : this.$t(\n            'Components.Vouchers.SpacePriceDiscountSettings.Button_ChangePriceSetting'\n          );\n    },\n\n    textSectionHeader() {\n      return this.voucher.Type === 'Package'\n        ? this.$t(\n            'Components.Vouchers.SpacePriceDiscountSettings.Title_Package'\n          )\n        : this.$t(\n            'Components.Vouchers.SpacePriceDiscountSettings.Title_SpacePrice'\n          );\n    },\n    textPriceMethodHeader() {\n      return this.voucher.SpaceDiscountType === 'Percentage'\n        ? this.$t(\n            'Components.Vouchers.SpacePriceDiscountSettings.Title_SeatPriceDiscount'\n          )\n        : this.$t(\n            'Components.Vouchers.SpacePriceDiscountSettings.Title_SeatPriceType'\n          );\n    },\n  },\n\n  created() {},\n\n  methods: {\n    ...mapMutations('voucherStore', ['setVoucher']),\n\n    SeatRebateDeactivated(voucher) {\n      this.voucher.ApplySeatRebate = false;\n    },\n\n    showModal() {\n      this.showModalSettings = true;\n    },\n\n    setShowDeactivateSeatRebate() {\n      this.showDeactivateSeatRebate = true;\n    },\n\n    hideModal() {\n      this.showDeactivateSeatRebate = false;\n      this.showModalSettings = false;\n    },\n  },\n};\n</script>\n\n<style lang=\"scss\" scoped></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!./SpacePriceDiscountSettings.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!./SpacePriceDiscountSettings.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SpacePriceDiscountSettings.vue?vue&type=template&id=360dc8f6&scoped=true\"\nimport script from \"./SpacePriceDiscountSettings.vue?vue&type=script&lang=js\"\nexport * from \"./SpacePriceDiscountSettings.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  \"360dc8f6\",\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"page-content\"},[(_vm.showCreateYieldSetting)?_c('ModalCreateYieldSetting',{attrs:{\"showModal\":_vm.showCreateYieldSetting,\"spaceId\":_vm.spaceId,\"channelId\":_vm.yieldSettingsList.selectedChannelId,\"voucherId\":_vm.voucherId,\"meetingtypeId\":_vm.selectedMeetingtypeId,\"onClickCancel\":_vm.hideModal},on:{\"yieldSettingCreated\":_vm.yieldSettingCreated}}):_vm._e(),(_vm.voucherId === 0)?_c('div',{staticClass:\"tabs is-boxed\"},[_c('ul',[_vm._l((_vm.channels),function(channel,index){return _c('li',{key:index,class:{\n          'is-active':\n            channel.ChannelId === _vm.yieldSettingsList.selectedChannelId &&\n            !_vm.yieldSettingsList.showVouchers,\n        },attrs:{\"id\":\"id_tabs_yieldlist\"}},[_c('a',{on:{\"click\":function($event){return _vm.showYieldSettings(channel.ChannelId, false)}}},[_vm._v(_vm._s(channel.ChannelName))])])}),(_vm.meetingtypeId === 0)?_c('li',{class:{\n          'is-active':\n            _vm.yieldSettingsList.selectedChannelId === 0 &&\n            _vm.yieldSettingsList.showVouchers,\n        }},[_c('a',{on:{\"click\":function($event){return _vm.showYieldSettings(0, true)}}},[_vm._v(\"Vouchers\")])]):_vm._e()],2)]):_vm._e(),_c('div',[(\n        _vm.yieldSettingsList.selectedChannelId > 0 &&\n        !_vm.yieldSettingsList.showVouchers\n      )?_c('div',_vm._l((_vm.meetingtypeIds),function(mId,index){return _c('div',{key:mId,class:{ 'mt-6': index !== 0 }},[(_vm.meetingtypeId === 0)?_c('ui-section-header',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(_vm._s(_vm.$t(`General.MeetingType${mId}_Name`)))]},proxy:true}],null,true)}):_vm._e(),(_vm.isLoading)?_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(_vm.isLoading)?_c('div',[_c('ui-loader')],1):_vm._e()]):_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('YieldTable',{attrs:{\"showChannelColumn\":false,\"showMeetingtypeColumn\":false,\"showVoucherColumn\":false,\"showCalcTypeColumn\":false,\"yieldSettings\":_vm.getYieldSettingsFilteredByMeetingtype(mId),\"userRights\":_vm.userRights},scopedSlots:_vm._u([{key:\"contentAction\",fn:function(){return [(_vm.showAddYieldLink)?_c('div',{staticClass:\"has-text-right mb-4\"},[_c('a',{staticClass:\"icon-text has-text-link\",attrs:{\"id\":\"id_button_add\"},on:{\"click\":function($event){return _vm.setShowCreateYieldSetting(_vm.meetingtypeId)}}},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'plus']}})],1),_c('span',[_vm._v(_vm._s(_vm.$t('Form.Control.Add')))])])]):_vm._e()]},proxy:true}],null,true)})],1)],1)}),0):_vm._e(),(\n        _vm.yieldSettingsList.selectedChannelId === 0 &&\n        _vm.yieldSettingsList.showVouchers\n      )?_c('div',[_c('div',{},[(_vm.voucherId === 0)?_c('ui-section-header',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\"Vouchers\")]},proxy:true}],null,false,2669716414)}):_vm._e(),(_vm.isLoading)?_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(_vm.isLoading)?_c('div',[_c('ui-loader')],1):_vm._e()]):_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('YieldTable',{attrs:{\"showChannelColumn\":false,\"showSpaceColumn\":false,\"showVoucherColumn\":_vm.voucherId === 0,\"showMeetingtypeColumn\":false,\"showValidFromColumn\":false,\"showCalcTypeColumn\":true,\"yieldSettings\":_vm.getVoucherYieldSettings(),\"userRights\":_vm.userRights},on:{\"addYieldSetting\":function($event){return _vm.setShowCreateYieldSetting(_vm.meetingtypeId)}},scopedSlots:_vm._u([{key:\"contentAction\",fn:function(){return [(_vm.showAddYieldLink)?_c('div',{staticClass:\"has-text-right mb-4\"},[_c('a',{staticClass:\"icon-text has-text-link\",attrs:{\"id\":\"id_button_add\"},on:{\"click\":function($event){return _vm.setShowCreateYieldSetting(_vm.meetingtypeId)}}},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'plus']}})],1),_c('span',[_vm._v(_vm._s(_vm.$t('Form.Control.Add')))])])]):_vm._e()]},proxy:true}],null,false,1592495075)})],1)],1)]):_vm._e()])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"page-content\">\n    <ModalCreateYieldSetting\n      v-if=\"showCreateYieldSetting\"\n      :showModal=\"showCreateYieldSetting\"\n      :spaceId=\"spaceId\"\n      :channelId=\"yieldSettingsList.selectedChannelId\"\n      :voucherId=\"voucherId\"\n      :meetingtypeId=\"selectedMeetingtypeId\"\n      :onClickCancel=\"hideModal\"\n      @yieldSettingCreated=\"yieldSettingCreated\"\n    />\n\n    <div\n      v-if=\"voucherId === 0\"\n      class=\"tabs is-boxed\"\n    >\n      <ul>\n        <li\n          id=\"id_tabs_yieldlist\"\n          v-for=\"(channel, index) in channels\"\n          :key=\"index\"\n          :class=\"{\n            'is-active':\n              channel.ChannelId === yieldSettingsList.selectedChannelId &&\n              !yieldSettingsList.showVouchers,\n          }\"\n        >\n          <a @click=\"showYieldSettings(channel.ChannelId, false)\">{{\n            channel.ChannelName\n          }}</a>\n        </li>\n        <li\n          v-if=\"meetingtypeId === 0\"\n          :class=\"{\n            'is-active':\n              yieldSettingsList.selectedChannelId === 0 &&\n              yieldSettingsList.showVouchers,\n          }\"\n        >\n          <a @click=\"showYieldSettings(0, true)\">Vouchers</a>\n        </li>\n      </ul>\n    </div>\n\n    <div>\n      <div v-if=\"\n          yieldSettingsList.selectedChannelId > 0 &&\n          !yieldSettingsList.showVouchers\n        \">\n        <div\n          v-for=\"(mId, index) in meetingtypeIds\"\n          :key=\"mId\"\n          :class=\"{ 'mt-6': index !== 0 }\"\n        >\n          <ui-section-header v-if=\"meetingtypeId === 0\">\n            <template v-slot:title>{{\n              $t(`General.MeetingType${mId}_Name`)\n            }}</template>\n          </ui-section-header>\n\n          <transition\n            v-if=\"isLoading\"\n            name=\"fade\"\n            mode=\"out-in\"\n          >\n            <div v-if=\"isLoading\">\n              <ui-loader />\n            </div>\n          </transition>\n          <transition\n            v-else\n            name=\"fade\"\n            mode=\"out-in\"\n          >\n            <YieldTable\n              :showChannelColumn=\"false\"\n              :showMeetingtypeColumn=\"false\"\n              :showVoucherColumn=\"false\"\n              :showCalcTypeColumn=\"false\"\n              :yieldSettings=\"getYieldSettingsFilteredByMeetingtype(mId)\"\n              :userRights=\"userRights\"\n            >\n              <template #contentAction>\n                <div\n                  v-if=\"showAddYieldLink\"\n                  class=\"has-text-right mb-4\"\n                >\n                  <a\n                    @click=\"setShowCreateYieldSetting(meetingtypeId)\"\n                    class=\"icon-text has-text-link\"\n                    id=\"id_button_add\"\n                  >\n                    <span class=\"icon\">\n                      <font-awesome-icon :icon=\"['fa', 'plus']\" />\n                    </span>\n                    <span>{{ $t('Form.Control.Add') }}</span>\n                  </a>\n                </div>\n              </template>\n            </YieldTable>\n          </transition>\n        </div>\n      </div>\n\n      <div v-if=\"\n          yieldSettingsList.selectedChannelId === 0 &&\n          yieldSettingsList.showVouchers\n        \">\n        <div class=\"\">\n          <ui-section-header v-if=\"voucherId === 0\">\n            <template v-slot:title>Vouchers</template>\n          </ui-section-header>\n\n          <transition\n            v-if=\"isLoading\"\n            name=\"fade\"\n            mode=\"out-in\"\n          >\n            <div v-if=\"isLoading\">\n              <ui-loader />\n            </div>\n          </transition>\n\n          <transition\n            v-else\n            name=\"fade\"\n            mode=\"out-in\"\n          >\n            <YieldTable\n              :showChannelColumn=\"false\"\n              :showSpaceColumn=\"false\"\n              :showVoucherColumn=\"voucherId === 0\"\n              :showMeetingtypeColumn=\"false\"\n              :showValidFromColumn=\"false\"\n              :showCalcTypeColumn=\"true\"\n              :yieldSettings=\"getVoucherYieldSettings()\"\n              :userRights=\"userRights\"\n              @addYieldSetting=\"setShowCreateYieldSetting(meetingtypeId)\"\n            >\n              <template #contentAction>\n                <div\n                  v-if=\"showAddYieldLink\"\n                  class=\"has-text-right mb-4\"\n                >\n                  <a\n                    @click=\"setShowCreateYieldSetting(meetingtypeId)\"\n                    class=\"icon-text has-text-link\"\n                    id=\"id_button_add\"\n                  >\n                    <span class=\"icon\">\n                      <font-awesome-icon :icon=\"['fa', 'plus']\" />\n                    </span>\n                    <span>{{ $t('Form.Control.Add') }}</span>\n                  </a>\n                </div>\n              </template>\n            </YieldTable>\n          </transition>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapState, mapMutations, mapActions } from 'vuex'\nimport yieldProvider from '@/providers/yield'\nimport { TimeScale } from 'chart.js'\n\nconst ModalCreateYieldSetting = () =>\n  import('@/components/Settings/Yield/ModalCreateYieldSetting')\nconst YieldTable = () => import('@/components/Settings/Yield/YieldTable')\n\nexport default {\n  components: {\n    ModalCreateYieldSetting,\n    YieldTable,\n  },\n\n  props: {\n    channelId: {\n      Type: Number,\n      default: 0,\n    },\n\n    meetingtypeId: {\n      Type: Number,\n      default: 0,\n    },\n\n    spaceId: {\n      Type: Number,\n      default: 0,\n    },\n\n    userRights: {\n      type: Object,\n      required: true,\n    },\n\n    voucherId: {\n      Type: Number,\n      default: 0,\n    },\n\n    showTutorialTips: {\n      Type: Boolean,\n      default: false,\n    },\n\n    hideListTitle: {\n      Type: Boolean,\n      default: false,\n    },\n  },\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      selectedMeetingtypeId: this.meetingtypeId,\n      selectedYieldSetting: null,\n      showCreateYieldSetting: false,\n      isLoading: false,\n    }\n  },\n\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n    ...mapState('yieldStore', ['yieldSettingsList']),\n    ...mapState('tutorialStore', ['showTutorial']),\n\n    showAddYieldLink() {\n      return (\n        this.userRights.hasEditRights &&\n        ((this.voucherId === 0 && !this.yieldSettingsList.showVouchers) ||\n          (this.voucherId !== 0 &&\n            this.yieldSettingsList.yieldSettings.length === 0))\n      )\n    },\n\n    defaultChannelId() {\n      if (\n        this.locationState &&\n        this.locationState.Settings &&\n        this.locationState.Settings.ChannelId\n      ) {\n        return this.locationState.Settings.ChannelId\n      }\n\n      return 0\n    },\n\n    channels() {\n      let channels = [];\n\n      if (this.locationState && this.locationState.Channels) {\n        channels.push(this.locationState.Channels.find(c => c.ChannelId === this.defaultChannelId));\n\n        channels = channels.concat(this.locationState.Channels.filter(c => c.ChannelId !== this.defaultChannelId));\n      }\n\n      return channels;\n    },\n\n    meetingtypeIds() {\n      let meetingtypeIds = []\n\n      if (this.meetingtypeId > 0) {\n        meetingtypeIds.push(this.meetingtypeId)\n      } else {\n        meetingtypeIds = this.locationState.Meetingtypes.map(\n          (m) => m.MeetingtypeId\n        )\n      }\n\n      return meetingtypeIds\n    },\n\n    yieldSettingsFilteredByChannel() {\n      let self = this\n      let ysList = []\n\n      if (self.yieldSettingsList.yieldSettings) {\n        ysList = self.yieldSettingsList.yieldSettings\n\n        if (self.yieldSettingsList.selectedChannelId > 0) {\n          ysList = ysList.filter(\n            (ys) => ys.ChannelId === self.yieldSettingsList.selectedChannelId\n          )\n        }\n      }\n\n      return ysList\n    },\n  },\n\n  created() {\n    if (\n      this.locationState &&\n      this.voucherId === 0 &&\n      this.yieldSettingsList.selectedChannelId === 0\n    ) {\n      this.yieldSettingsList.selectedChannelId = this.defaultChannelId\n    }\n\n    if (this.voucherId > 0) {\n      this.yieldSettingsList.showVouchers = true\n      this.setYieldSettingsList(this.yieldSettingsList)\n    }\n\n    this.getLocationYieldSettings()\n\n    if (this.voucherId === 0) {\n      this.showYieldSettings(this.defaultChannelId, false)\n    }\n  },\n\n  mounted() {\n    if (this.showTutorialTips) {\n      this.startupTutorial()\n    }\n  },\n\n  methods: {\n    ...mapMutations('yieldStore', [\n      'setYieldSettingsState',\n      'setYieldSettingsList',\n    ]),\n    ...mapMutations('tutorialStore', [\n      'setTutorialPage',\n      'setTutorialItems',\n      'setShowTutorial',\n    ]),\n    ...mapActions('tutorialStore', ['clearTutorialItems', 'restartTutorial']),\n\n    getLocationYieldSettings() {\n      let self = this\n      self.isLoading = true\n\n      yieldProvider.methods\n        .getLocationYieldSettings(\n          self.locationId,\n          self.channelId,\n          self.spaceId,\n          self.voucherId,\n          self.meetingtypeId\n        )\n        .then((response) => {\n          if (response.status === 200) {\n            self.yieldSettingsList.yieldSettings = response.data\n            if (self.voucherId > 0) {\n              self.yieldSettingsList.showVouchers = true\n            }\n\n            self.setYieldSettingsList(self.yieldSettingsList)\n            self.isLoading = false\n          }\n        })\n    },\n\n    getYieldSettingsFilteredByMeetingtype(meetingtypeId) {\n      let self = this\n      let yieldSettings = self.yieldSettingsFilteredByChannel\n\n      if (meetingtypeId > 0) {\n        yieldSettings = yieldSettings.filter(\n          (ys) => ys.MeetingtypeId === meetingtypeId && ys.VoucherId === 0\n        )\n      }\n\n      return yieldSettings\n    },\n\n    getVoucherYieldSettings() {\n      let self = this\n\n      return self.yieldSettingsList.yieldSettings.filter(\n        (ys) => ys.VoucherId > 0\n      )\n    },\n\n    yieldSettingCreated(yieldSettings) {\n      this.yieldSettingsList.yieldSettings.push(yieldSettings)\n      this.goToYieldSettings(yieldSettings)\n    },\n\n    goToYieldSettings(yieldSettings) {\n      //console.log('Dezemottewehebbe', yieldSettings)\n      this.setYieldSettingsState({\n        isSaving: false,\n        isSavingSuccess: false,\n        isSavingError: false,\n        yieldSettings: yieldSettings,\n      })\n\n      this.$router.push({\n        name: `settings-yield-detail`,\n        params: { yieldId: yieldSettings.Id },\n      })\n    },\n\n    showYieldSettings(channelId, showVouchers) {\n      this.yieldSettingsList.selectedChannelId = channelId\n      this.yieldSettingsList.showVouchers = showVouchers\n\n      this.setYieldSettingsList(this.yieldSettingsList)\n    },\n\n    setShowCreateYieldSetting(meetingtypeId) {\n      this.selectedMeetingtypeId = meetingtypeId\n      this.showCreateYieldSetting = true\n    },\n\n    hideModal() {\n      this.selectedMeetingtypeId = 0\n      this.selectedYieldSetting = null\n      this.showCreateYieldSetting = false\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!./YieldList.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!./YieldList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./YieldList.vue?vue&type=template&id=1c71b419\"\nimport script from \"./YieldList.vue?vue&type=script&lang=js\"\nexport * from \"./YieldList.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","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!./ModalEditSpacePriceTypeSettings.vue?vue&type=style&index=0&id=609671be&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('ui-component-modal',{attrs:{\"modalTitle\":_vm.$t('Components.Vouchers.ModalDeactivateSeatRebate.Main_Title'),\"showModal\":_vm.showModal,\"onClickSave\":_vm.saveVoucher,\"onClickCancel\":_vm.onClickCancel,\"isSaving\":_vm.isSaving,\"isSavingSuccess\":_vm.isSavingSuccess,\"isSavingError\":_vm.isSavingError,\"hideFooterButtons\":_vm.isSavingError || _vm.isSavingSuccess,\"disableSaveButton\":!_vm.agreedWithChanges || _vm.isSaving,\"confirmButtonCssClass\":\"is-danger\",\"buttonLabelConfirm\":_vm.$t('Components.Vouchers.ModalDeactivateSeatRebate.Button_RemovePriceSetting'),\"savingSuccessMessage\":_vm.$t('Components.Vouchers.ModalDeactivateSeatRebate.Message_Success'),\"savingErrorMessage\":_vm.$t('Components.Vouchers.ModalDeactivateSeatRebate.Message_Error')},on:{\"closeModal\":_vm.onClickCancel},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',{staticClass:\"has-margin-bottom is-size-5 has-text-centered\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Vouchers.ModalDeactivateSeatRebate.Message_AreYouSure'))+\" \")]),_c('div',{staticClass:\"has-text-centered\"},[_c('BaseCheckbox',{staticClass:\"has-text-left\",attrs:{\"label\":_vm.$t('Components.BlockRules.ModalDeleteBlockRule.Text_YesImSure')},model:{value:(_vm.agreedWithChanges),callback:function ($$v) {_vm.agreedWithChanges=$$v},expression:\"agreedWithChanges\"}})],1)]},proxy:true}])},[_c('template',{slot:\"modalTitle\"})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n    <ui-component-modal\n    :modalTitle=\"$t('Components.Vouchers.ModalDeactivateSeatRebate.Main_Title')\"\n    :showModal=\"showModal\"\n    :onClickSave=\"saveVoucher\"\n    :onClickCancel=\"onClickCancel\"\n    :isSaving=\"isSaving\"\n    :isSavingSuccess=\"isSavingSuccess\"\n    :isSavingError=\"isSavingError\"\n    :hideFooterButtons=\"isSavingError || isSavingSuccess\"\n    :disableSaveButton=\"!agreedWithChanges || isSaving\"\n    @closeModal=\"onClickCancel\"\n    confirmButtonCssClass=\"is-danger\"\n    :buttonLabelConfirm=\"$t('Components.Vouchers.ModalDeactivateSeatRebate.Button_RemovePriceSetting')\"\n    :savingSuccessMessage=\"$t('Components.Vouchers.ModalDeactivateSeatRebate.Message_Success')\"\n    :savingErrorMessage=\"$t('Components.Vouchers.ModalDeactivateSeatRebate.Message_Error')\"\n\n  >\n    <template slot=\"modalTitle\"></template>\n    <template v-slot:content>\n      <div class=\"has-margin-bottom is-size-5 has-text-centered\">\n        {{ $t('Components.Vouchers.ModalDeactivateSeatRebate.Message_AreYouSure') }}\n      </div>\n      <div class=\"has-text-centered\">\n        <BaseCheckbox\n          v-model=\"agreedWithChanges\"\n          class=\"has-text-left\"\n          :label=\"\n            $t('Components.BlockRules.ModalDeleteBlockRule.Text_YesImSure')\n          \"\n        />\n      </div>\n    </template>\n  </ui-component-modal>\n</template>\n\n<script>\nimport hash from 'object-hash'\nimport voucherProvider from '../../providers/voucher'\nimport BaseCheckbox from '@/components/UI/Form/BaseCheckbox'\nimport { mapMutations } from 'vuex'\nexport default {\n  components: {\n    BaseCheckbox\n  },\n\n  props: {\n    voucher: {\n      type: Object,\n      default: null,\n    },\n\n    showModal: {\n      type: Boolean,\n      default: false,\n    },\n    onClickCancel: {\n      type: Function,\n      required: true,\n    },\n  },\n\n  data() {\n    return {\n      mVoucher: { ...this.voucher },\n      locationId: Number(this.$route.params.locationId),\n      isSavingError: false,\n      isSavingSuccess: false,\n      isSaving: false,\n      discountTypes: {\n        YieldSetting: 'YieldSetting',\n        Percentage: 'Percentage'\n      },\n      agreedWithChanges: false\n    }\n  },\n\n  computed: {\n    hasChanges() {\n      return hash(this.voucher) !== hash(this.mVoucher)\n    }\n  },\n\n  methods: {\n    ...mapMutations('voucherStore', ['setVoucher']),\n\n    async saveVoucher() {\n      if (!this.isSaving) {\n        this.isSaving = true\n        this.mVoucher.LocationId = this.locationId\n        this.mVoucher.ApplySeatRebate = false\n\n        await this.setVoucherSpaceDiscountType()\n        voucherProvider.methods\n          .saveVoucher(this.mVoucher)\n          .then((response) => {\n            if (response.status === 200) {\n              this.isSavingSuccess = true\n              this.setVoucher(response.data)\n              this.$emit('SeatRebateDeactivated', response.data)\n\n              let t = setTimeout(() => {\n                this.onClickCancel()\n                clearTimeout(t)\n              }, 1500)\n            }\n          })\n          .catch((error) => {\n            this.isSavingError = true\n          })\n          .finally(() => {\n            this.isSaving = false\n          })\n      }\n    },\n\n    setVoucherSpaceDiscountType() {\n      let criteria = {\n        VoucherId: this.voucher.Id,\n        LocationId: this.locationId,\n        DiscountType: this.mVoucher.SpaceDiscountType\n      }\n\n      voucherProvider.methods\n        .saveVoucherDiscountType(criteria)\n        .catch(() => { })\n    },\n  }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n</style>","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!./ModalDeactivateSeatRebate.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!./ModalDeactivateSeatRebate.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ModalDeactivateSeatRebate.vue?vue&type=template&id=1cbb6686&scoped=true\"\nimport script from \"./ModalDeactivateSeatRebate.vue?vue&type=script&lang=js\"\nexport * from \"./ModalDeactivateSeatRebate.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  \"1cbb6686\",\n  null\n  \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransitionExpand.vue?vue&type=style&index=1&id=3deb10ec&prod&lang=css\"","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!./SpacePrice.vue?vue&type=style&index=0&id=59de79be&prod&lang=scss&scoped=true\"","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!./BaseCheckbox.vue?vue&type=style&index=0&id=7ad9cd4a&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('label',{staticClass:\"is-unselectable\",class:_vm.classes},[_c('input',{attrs:{\"type\":\"checkbox\",\"name\":_vm.name,\"disabled\":_vm.disabled},domProps:{\"checked\":_vm.checked,\"value\":_vm.checkValue},on:{\"input\":_vm.onChange}}),(_vm.label)?_c('span',{class:_vm.cssClassLabel},[_vm._v(_vm._s(_vm.label))]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <label\n    class=\"is-unselectable\"\n    :class=\"classes\"\n  >\n    <input\n      type=\"checkbox\"\n      :name=\"name\"\n      :checked=\"checked\"\n      :value=\"checkValue\"\n      @input=\"onChange\"\n      :disabled=\"disabled\"\n    ><span\n      v-if=\"label\"\n      :class=\"cssClassLabel\"\n    >{{ label }}</span>\n  </label>\n</template>\n\n<script>\nexport default {\n  name: 'base-checkbox',\n\n  props: {\n    label: {\n      type: String,\n      default: ''\n    },\n    cssClassLabel: {\n      type: [Object, Array, String],\n      default: ''\n    },\n    name: {\n      type: String,\n      default: null\n    },\n    value: {\n      type: [String, Number, Boolean, Object, Array],\n      required: true\n    },\n    checkValue: {\n      type: [Number, String, Boolean],\n      default: null\n    },\n    classes: {\n      type: String,\n      default: ''\n    },\n    disabled: {\n      type: Boolean,\n      default: false\n    }\n  },\n\n  data() {\n    return {\n    }\n  },\n\n  computed: {\n    checked: {\n      get() {\n        if (Array.isArray(this.value)) {\n          return this.value.indexOf(this.checkValue) !== -1\n        }\n        return this.value\n      },\n      set(val) {\n      }\n    }\n  },\n\n  methods: {\n    onChange(evt) {\n      if (Array.isArray(this.value)) {\n        if (this.value.indexOf(this.checkValue) !== -1) {\n          this.value.splice(this.value.indexOf(this.checkValue), 1)\n        } else {\n          this.value.push(this.checkValue)\n        }\n        this.$emit('input', this.value)\n      } else {\n        this.$emit('input', evt.target.checked)\n      }\n    }\n  }\n}\n</script>\n\n<style lang=\"scss\" scoped>\nlabel {\n  display: inline-flex;\n  align-items: center;\n  &.has-input-right {\n    span {\n      order: -1;\n      margin-right: 5px;\n    }\n  }\n  &:not(.has-input-right) {\n    span {\n      margin-left: 5px;\n    }\n  }\n}\n</style>","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!./BaseCheckbox.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!./BaseCheckbox.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BaseCheckbox.vue?vue&type=template&id=7ad9cd4a&scoped=true\"\nimport script from \"./BaseCheckbox.vue?vue&type=script&lang=js\"\nexport * from \"./BaseCheckbox.vue?vue&type=script&lang=js\"\nimport style0 from \"./BaseCheckbox.vue?vue&type=style&index=0&id=7ad9cd4a&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  \"7ad9cd4a\",\n  null\n  \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TransitionExpand.vue?vue&type=style&index=0&id=3deb10ec&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('article',{staticClass:\"message\",class:_vm.combindedClass},[_c('div',{staticClass:\"message-body\"},[(_vm.message)?[_vm._v(\" \"+_vm._s(_vm.message)+\" \")]:_vm._e(),_vm._t(\"content\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <article\n    class=\"message\"\n    :class=\"combindedClass\"\n  >\n    <div class=\"message-body\">\n      <template v-if=\"message\">\n        {{ message }}\n      </template>\n      <slot name=\"content\"></slot>\n    </div>\n  </article>\n</template>\n\n<script>\nexport default {\n  props: {\n    /**\n     * For what'll be shown inside of the message box.\n     */\n    message: {\n      type: String,\n      default: ''\n    },\n\n    size: {\n      type: String,\n      default: ''\n    },\n\n    /**\n     * type bepaalt het type weergave\n     * eq. is-info = for information style. It defines the style of the message\n     */\n    type: {\n      type: String,\n      default: 'is-info'\n    }\n  },\n  data() {\n    return {};\n  },\n\n  computed: {\n    combindedClass() {\n      let c = this.type;\n\n      if (this.size.length > 0) {\n        c = c + ' ' + this.size;\n      }\n\n      return c;\n    }\n  }\n};\n</script>\n\n<style lang=\"scss\" scoped></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!./Message.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!./Message.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Message.vue?vue&type=template&id=509443f1&scoped=true\"\nimport script from \"./Message.vue?vue&type=script&lang=js\"\nexport * from \"./Message.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  \"509443f1\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}