{"version":3,"sources":["webpack:///src/components/Vouchers/ModalEditSpacePercentage.vue","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue?d55d","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue?64fe","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue?cfbf","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue?7414","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue?e044","webpack:///./src/components/Vouchers/ModalEditSpacePercentage.vue?eab8"],"names":["components","VueSlider","Message","props","showModal","type","Boolean","default","onClickCancel","Function","required","data","isSaving","isSavingSuccess","isSavingError","formatter","v","concat","mSpacePercentage","computed","_objectSpread","mapState","textPercentageType","SpacePercentage","$t","n","bold","endBold","created","setupSpacePercentage","methods","mapMutations","saveVoucherSpacePercentage","_this","_asyncToGenerator","_regenerator","m","_callee","self","w","_context","voucher","ApplySeatRebate","setApplySeatRebate","voucherProvider","then","response","status","setVoucher","setTimeout","$emit","catch","error","finally","a","VoucherId","Id","LocationId","locationState","IgnoreSpacePriceLimits","mVoucher","saveVoucher","render","_vm","_c","_self","attrs","modalTitle","hideFooterButtons","onClickSave","on","closeModal","scopedSlots","_u","key","fn","message","staticClass","domProps","textContent","_s","innerHTML","min","max","interval","model","value","callback","$$v","$set","expression","_v","directives","name","rawName","_defineProperty","checked","Array","isArray","_i","change","$event","$$a","$$el","target","$$c","$$i","slice","_e","proxy","slot","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA;AACA;AACA;AACA;AACA;AAEe;EACfA,UAAA;IACAC,SAAA,EAAAA,2DAAA;IACAC,OAAA,EAAAA;EACA;EAEAC,KAAA;IACAC,SAAA;MACAC,IAAA,EAAAC,OAAA;MACAC,OAAA;IACA;IAEAC,aAAA;MACAH,IAAA,EAAAI,QAAA;MACAC,QAAA;IACA;EACA;EAEAC,IAAA,WAAAA,KAAA;IACA;MAC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"js/278.js?id=5125cec32938e2353d48","sourcesContent":["<template>\n  <ui-component-modal\n    :modalTitle=\"$t(`Components.Vouchers.SpacePriceDiscountSettings.Title_SeatPriceDiscount`)\"\n    :isSaving=\"isSaving\"\n    :isSavingSuccess=\"isSavingSuccess\"\n    :isSavingError=\"isSavingError\"\n    :hideFooterButtons=\"isSavingError || isSavingSuccess\"\n    :onClickCancel=\"onClickCancel\"\n    :onClickSave=\"saveVoucherSpacePercentage\"\n    :showModal=\"showModal\"\n    @closeModal=\"onClickCancel\"\n  >\n    <template slot=\"modalTitle\"></template>\n    <template v-slot:content>\n      <div v-if=\"voucher\">\n        <Message :message=\"$t(`Components.Vouchers.SpacePriceDiscountSettings.Message_EditSeatDiscount`)\" />\n        <table class=\"table is-fullwidth\">\n          <thead>\n            <tr>\n              <th v-text=\"$t(`Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_PercentageDescription`)\"></th>\n              <th v-text=\"$t(`Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_Percentage`)\"></th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr class=\"has-text-vertical-middle\">\n              <td v-html=\"textPercentageType\"></td>\n              <td>\n                <VueSlider\n                  v-model=\"mSpacePercentage.SpacePercentage\"\n                  :min=\"-100\"\n                  :max=\"100\"\n                  :interval=\"1\"\n                  :tooltip-formatter=\"formatter\"\n                />\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t(`Components.Vouchers.SpacePriceDiscountSettings.Label_IgnoreSpacePricelimits`) }}</td>\n              <td>\n                <label class=\"checkbox\">\n                  <input\n                    v-model=\"mSpacePercentage.IgnoreSpacePriceLimits\"\n                    type=\"checkbox\"\n                    :checked=\"mSpacePercentage.IgnoreSpacePriceLimits\"\n                  >\n\n                </label>\n              </td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </template>\n  </ui-component-modal>\n</template>\n\n<script>\nimport { mapState, mapMutations } from 'vuex'\nimport VueSlider from 'vue-slider-component'\nimport 'vue-slider-component/theme/default.css'\nimport voucherProvider from '@/providers/voucher'\nimport Message from '../UI/Message.vue'\n\nexport default {\n  components: {\n    VueSlider,\n    Message,\n  },\n\n  props: {\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      isSaving: false,\n      isSavingSuccess: false,\n      isSavingError: false,\n      formatter: (v) => `${v}%`,\n      mSpacePercentage: null,\n    }\n  },\n\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n    ...mapState('voucherStore', ['voucher']),\n\n    textPercentageType() {\n      if (this.mSpacePercentage.SpacePercentage === 0) {\n        return this.$t('Components.Vouchers.SpacePriceDiscountSettings.Text_NoDiscountSet', { n: this.mSpacePercentage.SpacePercentage, bold: '<b>', endBold: '</b>' })\n      }\n      if (this.mSpacePercentage.SpacePercentage < 0) {\n        return this.$t('Components.Vouchers.SpacePriceDiscountSettings.Text_SeatPriceDiscount', { n: this.mSpacePercentage.SpacePercentage, bold: '<b>', endBold: '</b>' })\n      }\n      if (this.mSpacePercentage.SpacePercentage > 0) {\n        return this.$t('Components.Vouchers.SpacePriceDiscountSettings.Text_SeatPriceSurcharge', { n: this.mSpacePercentage.SpacePercentage, bold: '<b>', endBold: '</b>' })\n      }\n      return ''\n    }\n  },\n\n  created() {\n    this.setupSpacePercentage()\n  },\n\n  methods: {\n    ...mapMutations('voucherStore', ['setVoucher']),\n\n    async saveVoucherSpacePercentage() {\n      let self = this\n\n      if (!self.isSaving) {\n        self.isSaving = true\n\n        if (!this.voucher.ApplySeatRebate) {\n          await this.setApplySeatRebate()\n        }\n\n        voucherProvider.methods\n          .saveVoucherSpacePercentage(this.mSpacePercentage)\n          .then((response) => {\n            if (response.status === 200) {\n              this.setVoucher(response.data)\n              this.isSavingSuccess = true\n\n              setTimeout(() => {\n                this.$emit('voucherEdited', response.data)\n                this.onClickCancel()\n              }, 1500)\n            }\n          })\n          .catch((error) => {\n            this.isSavingError = true\n          })\n          .finally(() => {\n            this.isSaving = false\n          })\n      }\n    },\n\n    setupSpacePercentage() {\n      this.mSpacePercentage = {\n        VoucherId: this.voucher.Id,\n        LocationId: 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    setApplySeatRebate() {\n      //Checking if ApplySeatRebate is not turned off (by clicking 'trash' icon in table view), if it's turned off it will be turned on again.\n      let mVoucher = { ...this.voucher }\n\n      if (!mVoucher.ApplySeatRebate) {\n        mVoucher.ApplySeatRebate = true\n      }\n\n      voucherProvider.methods\n        .saveVoucher(mVoucher)\n        .catch(() => { })\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.table {\n  tr {\n    td:nth-child(2) {\n      width: 240px;\n    }\n  }\n}\n</style>","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\n    \"ui-component-modal\",\n    {\n      attrs: {\n        modalTitle: _vm.$t(\n          `Components.Vouchers.SpacePriceDiscountSettings.Title_SeatPriceDiscount`\n        ),\n        isSaving: _vm.isSaving,\n        isSavingSuccess: _vm.isSavingSuccess,\n        isSavingError: _vm.isSavingError,\n        hideFooterButtons: _vm.isSavingError || _vm.isSavingSuccess,\n        onClickCancel: _vm.onClickCancel,\n        onClickSave: _vm.saveVoucherSpacePercentage,\n        showModal: _vm.showModal,\n      },\n      on: { closeModal: _vm.onClickCancel },\n      scopedSlots: _vm._u([\n        {\n          key: \"content\",\n          fn: function () {\n            return [\n              _vm.voucher\n                ? _c(\n                    \"div\",\n                    [\n                      _c(\"Message\", {\n                        attrs: {\n                          message: _vm.$t(\n                            `Components.Vouchers.SpacePriceDiscountSettings.Message_EditSeatDiscount`\n                          ),\n                        },\n                      }),\n                      _c(\"table\", { staticClass: \"table is-fullwidth\" }, [\n                        _c(\"thead\", [\n                          _c(\"tr\", [\n                            _c(\"th\", {\n                              domProps: {\n                                textContent: _vm._s(\n                                  _vm.$t(\n                                    `Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_PercentageDescription`\n                                  )\n                                ),\n                              },\n                            }),\n                            _c(\"th\", {\n                              domProps: {\n                                textContent: _vm._s(\n                                  _vm.$t(\n                                    `Components.Vouchers.SpacePriceDiscountSettings.TabeHeader_Percentage`\n                                  )\n                                ),\n                              },\n                            }),\n                          ]),\n                        ]),\n                        _c(\"tbody\", [\n                          _c(\n                            \"tr\",\n                            { staticClass: \"has-text-vertical-middle\" },\n                            [\n                              _c(\"td\", {\n                                domProps: {\n                                  innerHTML: _vm._s(_vm.textPercentageType),\n                                },\n                              }),\n                              _c(\n                                \"td\",\n                                [\n                                  _c(\"VueSlider\", {\n                                    attrs: {\n                                      min: -100,\n                                      max: 100,\n                                      interval: 1,\n                                      \"tooltip-formatter\": _vm.formatter,\n                                    },\n                                    model: {\n                                      value:\n                                        _vm.mSpacePercentage.SpacePercentage,\n                                      callback: function ($$v) {\n                                        _vm.$set(\n                                          _vm.mSpacePercentage,\n                                          \"SpacePercentage\",\n                                          $$v\n                                        )\n                                      },\n                                      expression:\n                                        \"mSpacePercentage.SpacePercentage\",\n                                    },\n                                  }),\n                                ],\n                                1\n                              ),\n                            ]\n                          ),\n                          _c(\"tr\", [\n                            _c(\"td\", [\n                              _vm._v(\n                                _vm._s(\n                                  _vm.$t(\n                                    `Components.Vouchers.SpacePriceDiscountSettings.Label_IgnoreSpacePricelimits`\n                                  )\n                                )\n                              ),\n                            ]),\n                            _c(\"td\", [\n                              _c(\"label\", { staticClass: \"checkbox\" }, [\n                                _c(\"input\", {\n                                  directives: [\n                                    {\n                                      name: \"model\",\n                                      rawName: \"v-model\",\n                                      value:\n                                        _vm.mSpacePercentage\n                                          .IgnoreSpacePriceLimits,\n                                      expression:\n                                        \"mSpacePercentage.IgnoreSpacePriceLimits\",\n                                    },\n                                  ],\n                                  attrs: { type: \"checkbox\" },\n                                  domProps: {\n                                    checked:\n                                      _vm.mSpacePercentage\n                                        .IgnoreSpacePriceLimits,\n                                    checked: Array.isArray(\n                                      _vm.mSpacePercentage\n                                        .IgnoreSpacePriceLimits\n                                    )\n                                      ? _vm._i(\n                                          _vm.mSpacePercentage\n                                            .IgnoreSpacePriceLimits,\n                                          null\n                                        ) > -1\n                                      : _vm.mSpacePercentage\n                                          .IgnoreSpacePriceLimits,\n                                  },\n                                  on: {\n                                    change: function ($event) {\n                                      var $$a =\n                                          _vm.mSpacePercentage\n                                            .IgnoreSpacePriceLimits,\n                                        $$el = $event.target,\n                                        $$c = $$el.checked ? true : false\n                                      if (Array.isArray($$a)) {\n                                        var $$v = null,\n                                          $$i = _vm._i($$a, $$v)\n                                        if ($$el.checked) {\n                                          $$i < 0 &&\n                                            _vm.$set(\n                                              _vm.mSpacePercentage,\n                                              \"IgnoreSpacePriceLimits\",\n                                              $$a.concat([$$v])\n                                            )\n                                        } else {\n                                          $$i > -1 &&\n                                            _vm.$set(\n                                              _vm.mSpacePercentage,\n                                              \"IgnoreSpacePriceLimits\",\n                                              $$a\n                                                .slice(0, $$i)\n                                                .concat($$a.slice($$i + 1))\n                                            )\n                                        }\n                                      } else {\n                                        _vm.$set(\n                                          _vm.mSpacePercentage,\n                                          \"IgnoreSpacePriceLimits\",\n                                          $$c\n                                        )\n                                      }\n                                    },\n                                  },\n                                }),\n                              ]),\n                            ]),\n                          ]),\n                        ]),\n                      ]),\n                    ],\n                    1\n                  )\n                : _vm._e(),\n            ]\n          },\n          proxy: true,\n        },\n      ]),\n    },\n    [_c(\"template\", { slot: \"modalTitle\" })],\n    2\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"/**\\n* Colors\\n*/\\n/**\\n* Text sizes\\n*/\\n/**\\n* Column settings\\n*/\\n/**\\n* Font properties\\n*/\\n.table tr td[data-v-2ced3ed3]:nth-child(2) {\\n  width: 240px;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../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!./ModalEditSpacePercentage.vue?vue&type=style&index=0&id=2ced3ed3&lang=scss&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"811be044\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(module.hot) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n   module.hot.accept(\"!!../../../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!./ModalEditSpacePercentage.vue?vue&type=style&index=0&id=2ced3ed3&lang=scss&scoped=true\", function() {\n     var newContent = require(\"!!../../../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!./ModalEditSpacePercentage.vue?vue&type=style&index=0&id=2ced3ed3&lang=scss&scoped=true\");\n     if(newContent.__esModule) newContent = newContent.default;\n     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n     update(newContent);\n   });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}","import { render, staticRenderFns } from \"./ModalEditSpacePercentage.vue?vue&type=template&id=2ced3ed3&scoped=true\"\nimport script from \"./ModalEditSpacePercentage.vue?vue&type=script&lang=js\"\nexport * from \"./ModalEditSpacePercentage.vue?vue&type=script&lang=js\"\nimport style0 from \"./ModalEditSpacePercentage.vue?vue&type=style&index=0&id=2ced3ed3&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  \"2ced3ed3\",\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('2ced3ed3')) {\n      api.createRecord('2ced3ed3', component.options)\n    } else {\n      api.reload('2ced3ed3', component.options)\n    }\n    module.hot.accept(\"./ModalEditSpacePercentage.vue?vue&type=template&id=2ced3ed3&scoped=true\", function () {\n      api.rerender('2ced3ed3', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Vouchers/ModalEditSpacePercentage.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalEditSpacePercentage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalEditSpacePercentage.vue?vue&type=script&lang=js\"","export * from \"-!../../../node_modules/vue-style-loader/index.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!./ModalEditSpacePercentage.vue?vue&type=style&index=0&id=2ced3ed3&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"381a4baa-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalEditSpacePercentage.vue?vue&type=template&id=2ced3ed3&scoped=true\""],"sourceRoot":""}