{"version":3,"sources":["webpack:///./src/components/Schedule/ReservationSpaceCard.vue","webpack:///src/components/Schedule/ReservationSpaceCard.vue","webpack:///./src/components/Schedule/ReservationSpaceCard.vue?e756","webpack:///./src/components/Schedule/ReservationSpaceCard.vue?5b33"],"names":["render","_vm","this","_c","_self","reservationSpace","staticClass","showSideDrawer","attrs","drawerTitle","hideDrawer","drawerSize","scopedSlots","_u","key","fn","showYieldSummary","itemId","_e","proxy","SpaceImage","_f","LocationId","_v","_s","SpaceName","StartDate","$i18n","locale","StartMinutes","EndMinutes","$tc","Seats","showSpacePrice","PricePerSeat","CurrencyIso","priceChecked","SpacePrice","YieldSettingId","on","$event","setShowYieldSummary","$t","staticRenderFns","components","YieldSummary","props","type","Object","default","Boolean","data","initalPricePerSeat","computed","_objectSpread","mapState","created","methods","yieldsettingId","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,iBAAkBF,EAAG,MAAM,CAACG,YAAY,QAAQ,CAAEL,EAAIM,eAAgBJ,EAAG,sBAAsB,CAACK,MAAM,CAAC,YAAcP,EAAIQ,YAAY,WAAaR,EAAIM,eAAe,aAAeN,EAAIS,WAAW,WAAaT,EAAIU,WAAW,SAAW,SAASC,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,WAAW,MAAO,CAAEd,EAAIe,iBAAkBb,EAAG,eAAe,CAACK,MAAM,CAAC,eAAiBP,EAAIgB,UAAUhB,EAAIiB,OAAOC,OAAM,IAAO,MAAK,EAAM,cAAclB,EAAIiB,KAAKf,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,SAAS,CAACG,YAAY,sCAAsC,CAAEL,EAAII,iBAAiBe,WAAYjB,EAAG,MAAM,CAACK,MAAM,CAAC,IAAMP,EAAIoB,GAAG,mBAAPpB,CAA2BA,EAAII,iBAAiBe,WAAWnB,EAAII,iBAAiBiB,WAAY,UAAU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IwC,oBAAoBxC,EAAII,iBAAiBgC,WAAWC,mBAAmB,CAACnC,EAAG,OAAO,CAACG,YAAY,sBAAsB,CAACH,EAAG,oBAAoB,CAACK,MAAM,CAAC,KAAO,CAAC,MAAO,mBAAmB,KAAKP,EAAIiB,QAAQjB,EAAImC,cAAkBnC,EAAII,iBAAiBgC,YAAiE,IAAnDpC,EAAII,iBAAiBgC,WAAWC,eAAsRrC,EAAIiB,KAAnQf,EAAG,OAAO,CAACG,YAAY,kEAAkE,CAACH,EAAG,OAAO,CAACG,YAAY,QAAQ,CAACH,EAAG,oBAAoB,CAACK,MAAM,CAAC,KAAO,CAAC,MAAO,4BAA4B,GAAGL,EAAG,OAAO,CAACF,EAAIsB,GAAGtB,EAAIuB,GAAGvB,EAAIyC,GAAG,0BAAmCzC,EAAIiB,QAAQ,MAAM,GAAGjB,EAAIiB,MAE19EyB,EAAkB,G,wDCiEP,GACfC,WAAA,CACAC,aAAA,oEAGAC,MAAA,CACAzC,iBAAA,CACA0C,KAAAC,OACAC,QAAA,MAGAhB,eAAA,CACAc,KAAAG,QACAD,SAAA,GAGAb,aAAA,CACAW,KAAAG,QACAD,SAAA,IAIAE,KAAA,WACA,OACAC,mBAAA,KACA7C,gBAAA,EACAS,kBAAA,EACAC,OAAA,EACAR,YAAA,GACAE,WAAA,UAIA0C,SAAAC,eAAA,GACAC,eAAA,oCAGAC,QAAA,aAEAC,QAAA,CACAhB,oBAAA,SAAAiB,GACA,KAAAzC,OAAAyC,EACA,KAAAnD,gBAAA,EACA,KAAAS,kBAAA,GAIAN,WAAA,WACA,KAAAO,OAAA,EACA,KAAAV,gBAAA,EACA,KAAAS,kBAAA,KCrH4W,I,YCOxW2C,EAAY,eACd,EACA3D,EACA2C,GACA,EACA,KACA,KACA,MAIa,aAAAgB,E","file":"js/chunk-2d21b2b6.js?id=a402ed1a6df6bc2f8aef","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.reservationSpace)?_c('div',{staticClass:\"card\"},[(_vm.showSideDrawer)?_c('ui-component-drawer',{attrs:{\"drawerTitle\":_vm.drawerTitle,\"showDrawer\":_vm.showSideDrawer,\"onClickClose\":_vm.hideDrawer,\"drawerSize\":_vm.drawerSize,\"position\":\"right\"},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [(_vm.showYieldSummary)?_c('YieldSummary',{attrs:{\"yieldsettingId\":_vm.itemId}}):_vm._e()]},proxy:true}],null,false,1079457487)}):_vm._e(),_c('div',{staticClass:\"card-image\"},[_c('figure',{staticClass:\"image is-4by3 has-background-light\"},[(_vm.reservationSpace.SpaceImage)?_c('img',{attrs:{\"src\":_vm._f(\"getLocationImage\")(_vm.reservationSpace.SpaceImage,_vm.reservationSpace.LocationId, '640')}}):_vm._e()])]),_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"title is-4 mb-2\"},[_vm._v(\" \"+_vm._s(_vm.reservationSpace.SpaceName)+\" \")]),_c('div',{staticClass:\"mb-2\"},[_c('div',[_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateFormat\")(_vm.reservationSpace.StartDate,_vm.$i18n.locale, 'longDateFormat'))+\" \")])]),_c('div',[_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"minutesToTime\")(_vm.reservationSpace.StartMinutes))+\" - \"+_vm._s(_vm._f(\"minutesToTime\")(_vm.reservationSpace.EndMinutes))+\" \")])]),_c('div',[_vm._v(\" \"+_vm._s(_vm.$tc('Components.Reservation.ModalChangeDate.Text_Seats', _vm.reservationSpace.Seats))+\" \")])]),_c('div',[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(_vm.showSpacePrice)?_c('div',{key:_vm.reservationSpace.PricePerSeat},[_c('span',{staticClass:\"icon-text\"},[_c('span',{staticClass:\"has-text-weight-bold\"},[_vm._v(_vm._s(_vm._f(\"toCurrency\")(_vm.reservationSpace.PricePerSeat,_vm.$i18n.locale, _vm.reservationSpace.CurrencyIso)))]),(_vm.priceChecked && (_vm.reservationSpace.SpacePrice && _vm.reservationSpace.SpacePrice.YieldSettingId > 0))?_c('a',{staticClass:\"is-link\",on:{\"click\":function($event){return _vm.setShowYieldSummary(_vm.reservationSpace.SpacePrice.YieldSettingId)}}},[_c('span',{staticClass:\"icon has-text-link\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'info-circle']}})],1)]):_vm._e()]),(_vm.priceChecked && (!_vm.reservationSpace.SpacePrice || _vm.reservationSpace.SpacePrice.YieldSettingId === 0))?_c('span',{staticClass:\"icon-text is-inline-block has-text-danger has-text-weight-bold\"},[_c('span',{staticClass:\"icon\"},[_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'exclamation-triangle']}})],1),_c('span',[_vm._v(_vm._s(_vm.$t('Prices.NoPrice')))])]):_vm._e()]):_vm._e()])],1)])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div v-if=\"reservationSpace\" class=\"card\">\n    <ui-component-drawer v-if=\"showSideDrawer\" :drawerTitle=\"drawerTitle\" :showDrawer=\"showSideDrawer\" :onClickClose=\"hideDrawer\" :drawerSize=\"drawerSize\" position=\"right\">\n      <template v-slot:content>\n        <YieldSummary v-if=\"showYieldSummary\" :yieldsettingId=\"itemId\" />\n      </template>\n    </ui-component-drawer>\n\n    <div class=\"card-image\">\n      <figure class=\"image is-4by3 has-background-light\">\n        <img v-if=\"reservationSpace.SpaceImage\" :src=\"reservationSpace.SpaceImage\n          | getLocationImage(reservationSpace.LocationId, '640')\n          \" />\n      </figure>\n    </div>\n    <div class=\"card-content\">\n      <div class=\"title is-4 mb-2\">\n        {{ reservationSpace.SpaceName }}\n      </div>\n      <div class=\"mb-2\">\n        <div>\n          <span>\n            {{ reservationSpace.StartDate | dateFormat($i18n.locale, 'longDateFormat') }}\n          </span>\n        </div>\n        <div>\n          <span>\n            {{ reservationSpace.StartMinutes | minutesToTime }} -\n            {{ reservationSpace.EndMinutes | minutesToTime }}\n          </span>\n        </div>\n        <div>\n          {{ $tc('Components.Reservation.ModalChangeDate.Text_Seats', reservationSpace.Seats) }}\n        </div>\n      </div>\n      <div>\n\n\n        <transition name=\"fade\" mode=\"out-in\">\n          <div :key=\"reservationSpace.PricePerSeat\" v-if=\"showSpacePrice\">\n\n            <span class=\"icon-text\">\n              <span class=\"has-text-weight-bold\">{{ reservationSpace.PricePerSeat | toCurrency($i18n.locale, reservationSpace.CurrencyIso) }}</span>\n              <a v-if=\"priceChecked && (reservationSpace.SpacePrice && reservationSpace.SpacePrice.YieldSettingId > 0)\" @click=\"setShowYieldSummary(reservationSpace.SpacePrice.YieldSettingId)\" class=\"is-link\">\n                <span class=\"icon has-text-link\">\n                  <font-awesome-icon :icon=\"['fas', 'info-circle']\" />\n                </span>\n              </a>\n            </span>\n\n            <span v-if=\"priceChecked && (!reservationSpace.SpacePrice || reservationSpace.SpacePrice.YieldSettingId === 0)\" class=\"icon-text is-inline-block has-text-danger has-text-weight-bold\">\n              <span class=\"icon\">\n                <font-awesome-icon :icon=\"['fas', 'exclamation-triangle']\" />\n\n              </span>\n              <span>{{ $t('Prices.NoPrice') }}</span>\n            </span>\n          </div>\n        </transition>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\n\nexport default {\n  components: {\n    YieldSummary: () => import('@/components/Settings/Yield/YieldSummary')\n  },\n\n  props: {\n    reservationSpace: {\n      type: Object,\n      default: null,\n    },\n\n    showSpacePrice: {\n      type: Boolean,\n      default: true,\n    },\n\n    priceChecked: {\n      type: Boolean,\n      default: false,\n    }\n  },\n\n  data() {\n    return {\n      initalPricePerSeat: null,\n      showSideDrawer: false,\n      showYieldSummary: false,\n      itemId: 0,\n      drawerTitle: '',\n      drawerSize: 'large'\n    }\n  },\n\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n  },\n\n  created() { },\n\n  methods: {\n    setShowYieldSummary(yieldsettingId) {\n      this.itemId = yieldsettingId\n      this.showSideDrawer = true\n      this.showYieldSummary = true\n\n    },\n\n    hideDrawer() {\n      this.itemId = 0\n      this.showSideDrawer = false\n      this.showYieldSummary = 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!./ReservationSpaceCard.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!./ReservationSpaceCard.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ReservationSpaceCard.vue?vue&type=template&id=6302050c\"\nimport script from \"./ReservationSpaceCard.vue?vue&type=script&lang=js\"\nexport * from \"./ReservationSpaceCard.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":""}