{"version":3,"sources":["webpack:///./src/views/Settings/YieldList.vue","webpack:///src/views/Settings/YieldList.vue","webpack:///./src/views/Settings/YieldList.vue?bf3e","webpack:///./src/views/Settings/YieldList.vue?4770","webpack:///./src/views/Settings/Yield.vue","webpack:///src/views/Settings/Yield.vue","webpack:///./src/views/Settings/Yield.vue?e1b7","webpack:///./src/views/Settings/Yield.vue?8260"],"names":["render","_vm","this","_c","_self","staticClass","attrs","$t","slot","_v","_s","on","$event","startupTutorial","meetingtypeId","priceRights","staticRenderFns","YieldList","props","default","type","Number","components","data","locationId","$route","params","yieldSettings","computed","_objectSpread","mapGetters","mapState","created","mounted","methods","mapActions","mapMutations","restartedByUser","arguments","length","undefined","screen","width","setTutorialPage","name","setTutorialItems","ref","title","message","tutorialItemRelativePos","isWelcome","restartTutorial","setShowTutorial","component","yieldSettingsState","showYieldPlayground","closeEditModal","_e","$router","go","subTitle","YieldDetail","ModalYieldPlayground","yieldId","VoucherId","concat","MeetingtypeId","ChannelName","SpaceId","SpaceName","VoucherName","getYieldSettings","beforeDestroy","setYieldSettingsState","_this","yieldProvider","getYieldSettingsById","then","response","status","isSaving","isSavingSuccess","isSavingError","setShowYieldPlayground","JSON","parse","stringify","setYieldSettingsPlayground"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,eAAe,CAACG,MAAM,CAAC,GAAK,qBAAqB,MAAQL,EAAIM,GAAG,oDAAoD,CAACJ,EAAG,WAAW,CAACK,KAAK,gBAAgB,CAACL,EAAG,IAAI,CAACE,YAAY,4BAA4BC,MAAM,CAAC,GAAK,kBAAkB,KAAOL,EAAIM,GAAG,kDAAkD,OAAS,WAAW,CAACJ,EAAG,OAAO,CAACE,YAAY,QAAQ,CAACF,EAAG,oBAAoB,CAACG,MAAM,CAAC,KAAO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js?id=7b36a99f0493a25df1e1","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('ui-page-hero',{attrs:{\"id\":\"id_title_yieldlist\",\"title\":_vm.$t('Components.Settings.Yield.YieldList.Main_Title')}},[_c('template',{slot:\"quickActions\"},[_c('a',{staticClass:\"has-icon is-hidden-mobile\",attrs:{\"id\":\"id_button_guide\",\"href\":_vm.$t('Components.Settings.Yield.YieldList.Guide_Link'),\"target\":\"_blank\"}},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'info-circle']}})],1),_c('span',{staticClass:\"text\"},[_vm._v(_vm._s(_vm.$t('General.Guide')))])]),_c('a',{staticClass:\"has-icon is-hidden-touch is-hidden-desktop-only ml-3\",attrs:{\"id\":\"id_button_restart\"},on:{\"click\":function($event){return _vm.startupTutorial(true)}}},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'redo']}})],1),_c('span',{staticClass:\"text\"},[_vm._v(_vm._s(_vm.$t('General.RestartTutorial')))])])])],2),_c('YieldList',{attrs:{\"meetingtypeId\":_vm.meetingtypeId,\"userRights\":_vm.priceRights}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"section\">\n    <div class=\"container\">\n      <ui-page-hero\n        id=\"id_title_yieldlist\"\n        :title=\"$t('Components.Settings.Yield.YieldList.Main_Title')\"\n      >\n        <template slot=\"quickActions\">\n          <a\n            class=\"has-icon is-hidden-mobile\"\n            id=\"id_button_guide\"\n            :href=\"$t('Components.Settings.Yield.YieldList.Guide_Link')\"\n            target=\"_blank\"\n          >\n            <span class=\"icon\">\n              <font-awesome-icon :icon=\"['fas', 'info-circle']\" />\n            </span>\n            <span class=\"text\">{{ $t('General.Guide') }}</span>\n          </a>\n          <a\n            @click=\"startupTutorial(true)\"\n            class=\"has-icon is-hidden-touch is-hidden-desktop-only ml-3\"\n            id=\"id_button_restart\"\n          >\n            <span class=\"icon\">\n              <font-awesome-icon :icon=\"['fas', 'redo']\" />\n            </span>\n            <span class=\"text\">{{ $t('General.RestartTutorial') }}</span>\n          </a>\n        </template>\n      </ui-page-hero>\n\n      <YieldList\n        :meetingtypeId=\"meetingtypeId\"\n        :userRights=\"priceRights\"\n      />\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapActions, mapGetters, mapMutations, mapState } from 'vuex'\n\nconst YieldList = () => import('@/components/Settings/Yield/YieldList')\n\nexport default {\n  props: {\n    meetingtypeId: {\n      default: 0,\n      type: Number,\n    },\n  },\n\n  components: {\n    YieldList,\n  },\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      yieldSettings: [],\n    }\n  },\n\n  computed: {\n    ...mapGetters('locationStore', ['priceRights']),\n    ...mapState('tutorialStore', ['showTutorial']),\n  },\n\n  created() { },\n\n  mounted() {\n    this.startupTutorial()\n  },\n\n  methods: {\n    ...mapActions('tutorialStore', ['restartTutorial']),\n    ...mapMutations('tutorialStore', [\n      'setTutorialPage',\n      'setTutorialItems',\n      'setShowTutorial',\n    ]),\n\n    startupTutorial(restartedByUser = false) {\n      if (screen.width > 1120) {\n        this.setTutorialPage('tutorial-' + this.$route.name)\n\n        // set tutorial items\n        this.setTutorialItems([\n          // Update 1\n          [\n            {\n              ref: 'id_title_yieldlist',\n              title: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Title1'\n              ),\n              message: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Message1'\n              ),\n              tutorialItemRelativePos: 'welcome',\n              isWelcome: true,\n            },\n            {\n              ref: 'id_tabs_yieldlist',\n              title: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Title2'\n              ),\n              message: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Message2'\n              ),\n              tutorialItemRelativePos: 'bottom',\n            },\n            {\n              ref: 'id_button_add',\n              title: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Title3'\n              ),\n              message: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Message3'\n              ),\n              tutorialItemRelativePos: 'left',\n            },\n            {\n              ref: 'id_button_guide',\n              title: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Title4'\n              ),\n              message: this.$t(\n                'Components.Settings.Yield.YieldList.Tutorial_1_Message4'\n              ),\n              tutorialItemRelativePos: 'bottom',\n            },\n          ],\n        ])\n\n        if (restartedByUser) {\n          this.restartTutorial()\n        } else {\n          this.setShowTutorial(true)\n        }\n      }\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!./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=3178f69e\"\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","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.yieldSettingsState)?_c('div',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[(_vm.showYieldPlayground)?_c('modal-yield-playgrounds',{attrs:{\"showModal\":_vm.showYieldPlayground,\"yieldSettings\":_vm.yieldSettingsState.yieldSettings,\"onClickCancel\":_vm.closeEditModal}}):_vm._e(),_c('div',{staticClass:\"mb-6\"},[_c('div',{staticClass:\"buttons\"},[_c('a',{staticClass:\"button\",on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_c('span',{staticClass:\"icon is-small\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'chevron-left']}})],1),_c('span',[_vm._v(_vm._s(_vm.$t(`Components.Settings.Yield.YieldList.Button_Back`)))])])])]),_c('layout-page-menu',{staticClass:\"has-margin-bottom\",attrs:{\"heroTitle\":_vm.$t(`Components.Settings.Yield.YieldList.Main_Title`),\"heroSubTitle\":_vm.subTitle}}),_c('YieldDetail')],1)]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div\n    v-if=\"yieldSettingsState\"\n    class=\"section\"\n  >\n    <div class=\"container\">\n      <modal-yield-playgrounds\n        v-if=\"showYieldPlayground\"\n        :showModal=\"showYieldPlayground\"\n        :yieldSettings=\"yieldSettingsState.yieldSettings\"\n        :onClickCancel=\"closeEditModal\"\n      />\n\n      <div class=\"mb-6\">\n        <div class=\"buttons\">\n          <a\n            @click=\"$router.go(-1)\"\n            class=\"button\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon :icon=\"['fas', 'chevron-left']\" />\n            </span>\n            <span>{{ $t(`Components.Settings.Yield.YieldList.Button_Back`) }}</span>\n          </a>\n        </div>\n      </div>\n\n      <layout-page-menu\n        :heroTitle=\"$t(`Components.Settings.Yield.YieldList.Main_Title`)\"\n        :heroSubTitle=\"subTitle\"\n        class=\"has-margin-bottom\"\n      />\n\n      <YieldDetail />\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapMutations, mapState } from 'vuex'\nimport yieldProvider from '@/providers/yield'\n\nconst YieldDetail = () => import('@/components/Settings/Yield/YieldDetail')\n\nconst ModalYieldPlayground = () =>\n  import('@/components/Settings/Yield/Playground/ModalYieldPlaygrounds')\n\nexport default {\n  components: {\n    YieldDetail,\n    'modal-yield-playgrounds': ModalYieldPlayground,\n  },\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      showYieldPlayground: false,\n      yieldId: Number(this.$route.params.yieldId),\n    }\n  },\n\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n    ...mapState('yieldStore', ['yieldSettingsState']),\n\n    subTitle() {\n      let subTitle = ''\n\n      if (\n        this.yieldSettingsState &&\n        this.yieldSettingsState.yieldSettings &&\n        this.yieldSettingsState.yieldSettings.VoucherId === 0\n      ) {\n        if (this.yieldSettingsState && this.yieldSettingsState.yieldSettings) {\n          subTitle = this.$t(\n            `General.MeetingType${this.yieldSettingsState.yieldSettings.MeetingtypeId}_Name`\n          )\n\n          subTitle += ' - ' + this.yieldSettingsState.yieldSettings.ChannelName\n\n          if (this.yieldSettingsState.yieldSettings.SpaceId > 0) {\n            subTitle =\n              'Space ' +\n              this.yieldSettingsState.yieldSettings.SpaceName +\n              ' - ' +\n              subTitle\n          }\n        }\n      } else {\n        if (\n          this.yieldSettingsState &&\n          this.yieldSettingsState.yieldSettings &&\n          this.yieldSettingsState.yieldSettings.VoucherId > 0 &&\n          this.yieldSettingsState.yieldSettings.VoucherName\n        ) {\n          subTitle = this.yieldSettingsState.yieldSettings.VoucherName\n        }\n      }\n\n      return subTitle\n    },\n  },\n\n  created() {\n    if (!this.yieldSettingsState.yieldSettings) {\n      this.getYieldSettings()\n    }\n  },\n\n  beforeDestroy() {\n    this.setYieldSettingsState({\n      yieldSettings: null,\n    })\n  },\n\n  methods: {\n    ...mapMutations('yieldStore', ['setYieldSettingsPlayground']),\n    ...mapMutations('yieldStore', ['setYieldSettingsState']),\n\n    getYieldSettings() {\n      let self = this\n\n      yieldProvider.methods\n        .getYieldSettingsById(this.yieldId)\n        .then((response) => {\n          if (response.status === 200) {\n            this.setYieldSettingsState({\n              isSaving: false,\n              isSavingSuccess: false,\n              isSavingError: false,\n              yieldSettings: response.data,\n            })\n          }\n        })\n    },\n\n    setShowYieldPlayground() {\n      this.showYieldPlayground = true\n\n      let yieldSettings = JSON.parse(\n        JSON.stringify(this.yieldSettingsState.yieldSettings)\n      )\n      this.setYieldSettingsPlayground(yieldSettings)\n    },\n\n    closeEditModal() {\n      this.showYieldPlayground = 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!./Yield.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!./Yield.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Yield.vue?vue&type=template&id=e6d3abf2\"\nimport script from \"./Yield.vue?vue&type=script&lang=js\"\nexport * from \"./Yield.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}