{"version":3,"sources":["webpack:///src/components/Settings/Templates/ReservationTemplates.vue","webpack:///./src/components/Settings/Templates/ReservationTemplates.vue","webpack:///./src/components/Settings/Templates/ReservationTemplates.vue?66f8","webpack:///./src/components/Settings/Templates/ReservationTemplates.vue?ef33","webpack:///./src/components/Settings/Templates/ReservationTemplates.vue?c8c7"],"names":["components","data","locationId","Number","$route","params","templates","created","getTemplates","methods","_this","reservationProvider","getLocationReservationTemplates","then","response","catch","error","render","_vm","_c","_self","_m","_l","template","index","key","_v","_s","TemplateName","TemplateDescription","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;AAsBA;AACA;AAEe;EACfA,UAAA,GACA;EAEAC,IAAA,WAAAA,KAAA;IACA;MACAC,UAAA,EAAAC,MAAA,MAAAC,MAAA,CAAAC,MAAA,CAAAH,UAAA;MACAI,SAAA;IACA;EACA;EAEAC,OAAA,WAAAA,QAAA;IACA,KAAAC,YAAA;EACA;EAEAC,OAAA;IACAD,YAAA,WAAAA,aAAA;MAAA,IAAAE,KAAA;MACAC,sEAAA,CAAAF,OAAA,CAAAG,+BAAA,MAAAV,UAAA,EACAW,IAAA,WAAAC,QAAA;QACAJ,KAAA,CAAAJ,SAAA,GAAAQ,QAAA,CAAAb,IAAA;MACA,GACAc,KAAA,WAAAC,KAAA;QACA;MAAA,CACA;IACA;EACA;AACA,CAAC,E;;;;;;;;;;;;;ACnDD;AAAA;AAAA,IAAIC,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAG;EAC7B,IAAIC,GAAG,GAAG,IAAI;IACZC,EAAE,GAAGD,GAAG,CAACE,KAAK,CAACD,EAAE;EACnB,OAAOA,EAAE,CAAC,KAAK,EAAE,CACfA,EAAE,CAAC,OAAO,EAAE,CACVD,GAAG,CAACG,EAAE,CAAC,CAAC,CAAC,EACTF,EAAE,CACA,OAAO,EACPD,GAAG,CAACI,EAAE,CAACJ,GAAG,CAACZ,SAAS,EAAE,UAAUiB,QAAQ,EAAEC,KAAK,EAAE;I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,CAAgB,sVAAG,EAAC,C;;;;;;;;;;;;;ACA5U;AAAA;AAAA;AAAA;AAAA","file":"js/settings-templates-reservation.js?id=d2413a364e12c47e833f","sourcesContent":["<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>","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"div\", [\n    _c(\"table\", [\n      _vm._m(0),\n      _c(\n        \"tbody\",\n        _vm._l(_vm.templates, function (template, index) {\n          return _c(\"tr\", { key: index }, [\n            _c(\"td\", [_vm._v(_vm._s(template.TemplateName))]),\n            _c(\"td\", [_vm._v(_vm._s(template.TemplateDescription))]),\n            _c(\"td\"),\n          ])\n        }),\n        0\n      ),\n    ]),\n  ])\n}\nvar staticRenderFns = [\n  function () {\n    var _vm = this,\n      _c = _vm._self._c\n    return _c(\"thead\", [\n      _c(\"tr\", [\n        _c(\"th\", [_vm._v(\"Name\")]),\n        _c(\"th\", [_vm._v(\"Description\")]),\n        _c(\"th\", [_vm._v(\" \")]),\n      ]),\n    ])\n  },\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ReservationTemplates.vue?vue&type=template&id=e6c1cfe2\"\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\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('e6c1cfe2')) {\n      api.createRecord('e6c1cfe2', component.options)\n    } else {\n      api.reload('e6c1cfe2', component.options)\n    }\n    module.hot.accept(\"./ReservationTemplates.vue?vue&type=template&id=e6c1cfe2\", function () {\n      api.rerender('e6c1cfe2', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Settings/Templates/ReservationTemplates.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!./ReservationTemplates.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!./ReservationTemplates.vue?vue&type=script&lang=js\"","export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"d2a26fb4-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!./ReservationTemplates.vue?vue&type=template&id=e6c1cfe2\""],"sourceRoot":""}