{"version":3,"sources":["webpack:///./src/components/Settings/Templates/ReservationTemplates.vue","webpack:///src/components/Settings/Templates/ReservationTemplates.vue","webpack:///./src/components/Settings/Templates/ReservationTemplates.vue?388a","webpack:///./src/components/Settings/Templates/ReservationTemplates.vue?66f8"],"names":["render","_vm","this","_c","_self","_m","_l","templates","template","index","key","_v","_s","TemplateName","TemplateDescription","staticRenderFns","components","data","locationId","Number","$route","params","created","getTemplates","methods","_this","reservationProvider","getLocationReservationTemplates","then","response","catch","error","component"],"mappings":"uIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACF,EAAII,GAAG,GAAGF,EAAG,QAAQF,EAAIK,GAAIL,EAAIM,WAAW,SAASC,EAASC,GAAO,OAAON,EAAG,KAAK,CAACO,IAAID,GAAO,CAACN,EAAG,KAAK,CAACF,EAAIU,GAAGV,EAAIW,GAAGJ,EAASK,iBAAiBV,EAAG,KAAK,CAACF,EAAIU,GAAGV,EAAIW,GAAGJ,EAASM,wBAAwBX,EAAG,WAAU,QAE5SY,EAAkB,CAAC,WAAY,IAAId,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,KAAK,CAACF,EAAIU,GAAG,UAAUR,EAAG,KAAK,CAACF,EAAIU,GAAG,iBAAiBR,EAAG,KAAK,CAACF,EAAIU,GAAG,a,wBCuBxJ,GACfK,WAAA,GAGAC,KAAA,WACA,OACAC,WAAAC,OAAA,KAAAC,OAAAC,OAAAH,YACAX,UAAA,KAIAe,QAAA,WACA,KAAAC,gBAGAC,QAAA,CACAD,aAAA,eAAAE,EAAA,KACAC,OAAAF,QAAAG,gCAAA,KAAAT,YACAU,MAAA,SAAAC,GACAJ,EAAAlB,UAAAsB,EAAAZ,QAEAa,OAAA,SAAAC,UC9C2X,I,YCOvXC,EAAY,eACd,EACAhC,EACAe,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E","file":"js/settings-templates-reservation.js?id=ba543eb715661d594424","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('table',[_vm._m(0),_c('tbody',_vm._l((_vm.templates),function(template,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(template.TemplateName))]),_c('td',[_vm._v(_vm._s(template.TemplateDescription))]),_c('td')])}),0)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Name\")]),_c('th',[_vm._v(\"Description\")]),_c('th',[_vm._v(\" \")])])])\n}]\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <table>\n      <thead>\n        <tr>\n          <th>Name</th>\n          <th>Description</th>\n          <th>&nbsp;</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr v-for=\"(template, index) in templates\" :key=\"index\">\n          <td>{{ template.TemplateName }}</td>\n          <td>{{ template.TemplateDescription }}</td>\n          <td></td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapActions, mapState } from 'vuex'\nimport reservationProvider from '@/providers/reservation'\n\nexport default {\n  components: {\n  },\n\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      templates: [],\n    }\n  },\n\n  created() {\n    this.getTemplates()\n  },\n\n  methods: {\n    getTemplates() {\n      reservationProvider.methods.getLocationReservationTemplates(this.locationId)\n        .then((response) => {\n          this.templates = response.data\n        })\n        .catch((error) => {\n          //console.error('Error fetching templates:', error)\n        })\n    },\n  },\n}\n</script>","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!./ReservationTemplates.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!./ReservationTemplates.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ReservationTemplates.vue?vue&type=template&id=2790b822\"\nimport script from \"./ReservationTemplates.vue?vue&type=script&lang=js\"\nexport * from \"./ReservationTemplates.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":""}