{"version":3,"sources":["webpack:///./src/components/modules/CalendarPager.vue?b4bb","webpack:///./src/components/modules/CalendarPager.vue?b849","webpack:///./src/components/modules/CalendarPager.vue","webpack:///./src/components/modules/CalendarPager.vue?c686","webpack:///./src/components/modules/CalendarPager.vue?7cfd"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","$event","stepTo","format","_v","_s","weekToDisplay","_e","staticRenderFns","calendarHelper","CalendarHelper","extend","props","appointments","getAppointmentsPropValidator","data","daysTurn","currentDay","getFirstAppointment","computed","monthToDisplay","getMomentWithFormat","setDaysTurn","dayMoment","startOfWeek","clone","endOfWeek","add","getFormattedDateForDisplay","methods","n","getFormattedDate","$emit","changeFormat","days","calendarPagerDaysTurn","getOverlappingTimes","component"],"mappings":"kHAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAACF,EAAG,MAAM,CAACE,YAAY,0BAA0BF,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,MAAM,CAACG,MAAM,CAAC,MAAQ,6BAA6B,MAAQ,KAAK,OAAS,KAAK,QAAU,YAAY,UAAY,aAAa,aAAa,GAAG,KAAO,eAAe,UAAY,QAAQ,SAAW,MAAMC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOT,EAAIU,QAAQ,MAAM,CAACN,EAAG,OAAO,CAACG,MAAM,CAAC,EAAI,gEAAgF,WAAfP,EAAIW,OAAqBP,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACN,EAAIY,GAAG,IAAIZ,EAAIa,GAAGb,EAAIc,eAAe,OAAOd,EAAIe,KAAKX,EAAG,MAAM,CAACG,MAAM,CAAC,MAAQ,6BAA6B,MAAQ,KAAK,OAAS,KAAK,QAAU,YAAY,UAAY,aAA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["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!../../../node_modules/vue-svg-inline-loader/dist/index.min.js!./CalendarPager.vue?vue&type=style&index=0&id=46fb254a&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"calendar-pager\"},[_c('div',{staticClass:\"calendar-pager-container\"},[_c('div',{staticClass:\"calendar-pager-format\"}),_c('div',{staticClass:\"calendar-pager-control\"},[_c('svg',{attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"30\",\"height\":\"30\",\"viewBox\":\"0 0 25 25\",\"transform\":\"scale(1.5)\",\"svg-inline\":'',\"role\":'presentation',\"focusable\":'false',\"tabindex\":'-1'},on:{\"click\":function($event){return _vm.stepTo(-1)}}},[_c('path',{attrs:{\"d\":\"M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42z\"}})]),(_vm.format === 'weekly')?_c('div',{staticClass:\"calendar-pager-currentspan\"},[_vm._v(\" \"+_vm._s(_vm.weekToDisplay)+\" \")]):_vm._e(),_c('svg',{attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"30\",\"height\":\"30\",\"viewBox\":\"0 0 25 25\",\"transform\":\"scale(1.5)\",\"svg-inline\":'',\"role\":'presentation',\"focusable\":'false',\"tabindex\":'-1'},on:{\"click\":function($event){return _vm.stepTo(+1)}}},[_c('path',{attrs:{\"d\":\"M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z\"}})])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from \"vue\";\nimport { mapGetters } from \"vuex\";\nimport CalendarHelper from \"@/helpers/CalendarHelper\";\nconst calendarHelper = new CalendarHelper();\n\nexport default Vue.extend({\n props: {\n appointments: calendarHelper.getAppointmentsPropValidator(),\n },\n data() {\n return {\n format: \"weekly\",\n daysTurn: 7,\n currentDay: calendarHelper.getFirstAppointment(this.appointments),\n };\n },\n computed: {\n ...mapGetters([\"getOverlappingTimes\"]),\n monthToDisplay(): string {\n return calendarHelper.getMomentWithFormat(this.currentDay).format(\"MMMM YYYY\");\n },\n weekToDisplay(): string {\n this.setDaysTurn();\n const dayMoment = calendarHelper.getMomentWithFormat(this.currentDay);\n const startOfWeek = dayMoment.clone();\n const endOfWeek = dayMoment.clone().add(this.daysTurn, \"days\");\n if (this.daysTurn === 0) {\n return calendarHelper.getFormattedDateForDisplay(startOfWeek);\n }\n return (\n startOfWeek.format(\"DD.MM.\") + \" - \" + calendarHelper.getFormattedDateForDisplay(endOfWeek)\n );\n },\n },\n methods: {\n stepTo(n: number) {\n const dayMoment = calendarHelper.getMomentWithFormat(this.currentDay);\n this.currentDay = calendarHelper.getFormattedDate(dayMoment\n .add(n * this.daysTurn + 1 * n, \"days\"));\n this.$emit(\"changeDate\", this.currentDay);\n },\n changeFormat(format: \"weekly\" | \"monthly\") {\n this.format = format;\n\n this.$emit(\"changeFormat\", this.format);\n },\n setDaysTurn: function (days?: number) {\n if (days) {\n this.daysTurn = days;\n return;\n }\n this.daysTurn = calendarHelper.calendarPagerDaysTurn(\n this.getOverlappingTimes\n );\n },\n },\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!../../../node_modules/vue-svg-inline-loader/dist/index.min.js!./CalendarPager.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!../../../node_modules/vue-svg-inline-loader/dist/index.min.js!./CalendarPager.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CalendarPager.vue?vue&type=template&id=46fb254a&scoped=true&\"\nimport script from \"./CalendarPager.vue?vue&type=script&lang=ts&\"\nexport * from \"./CalendarPager.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CalendarPager.vue?vue&type=style&index=0&id=46fb254a&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 \"46fb254a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}