{"version":3,"sources":["webpack:///./src/assets/img/management/stack.svg","webpack:///./src/views/community/views/calendar/calendar.vue?780f","webpack:///./src/views/community/views/calendar/components/calendar.vue?2be6","webpack:///./src/views/community/views/calendar/calendar.vue?a423","webpack:///./src/views/community/views/calendar/components/calendar.vue?6a97","webpack:///./src/views/community/views/calendar/components/calendar.vue?517f","webpack:///./src/views/community/views/calendar/components/calendar.vue","webpack:///./src/views/community/views/calendar/modals/dayEvents.vue?78d4","webpack:///./src/views/community/views/calendar/modals/dayEvents.vue?658f","webpack:///./src/views/community/views/calendar/modals/dayEvents.vue","webpack:///./src/views/community/views/calendar/calendar.vue?e95e","webpack:///./src/views/community/views/calendar/calendar.vue"],"names":["module","exports","_withId","_hoisted_1","class","_hoisted_2","_hoisted_3","src","_hoisted_4","_hoisted_5","style","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","render","_ctx","_cache","$props","$setup","$data","$options","_component_calendar","_component_router_link","onClick","$event","changeMonth","$filters","date","selectedMonth","modelValue","onDayClicked","dayClicked","replace","to","name","default","_","$store","state","community","canContent","key","newEvent","week","day","i","returnWeekClass","value","monthDays","index","returnDayClass","returnReservations","today","Date","events","calendarFilter","this","communityIdentifier","$route","params","identifier","toString","loadReservation","getByMonth","then","x","temp","forEach","push","changeCalendar","tempDate","setDate","getDay","getDate","lastDay","getMonth","getFullYear","ris","filter","dateVm","length","$emit","__exports__","_component_event_card","_component_localized_text","communityTitle","selectedDay","item","ii","event","openEvent","localizedKey","text","model","store","title","dateTime","getByDayAsEventList","$router","components","EventCard","prev","setMonth","$opModal","show","calendar"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,0B,oCCA3C,W,kFCAA,W,wHCKA,MAAMC,EAAuB,eAAa,mBAE1C,eAAa,mBACb,MAAMC,EAAa,CAAEC,MAAO,8CACtBC,EAAa,CAAED,MAAO,eACtBE,EAA0B,eAAa,MAAO,CAAEC,IAAK,KAAc,MAAO,GAC1EC,EAAa,CAAEJ,MAAO,wBACtB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9C,KAAK5B,cAAc+C,WAAa,IAErE,IAAItB,KAAKG,KAAK5B,cAAc0E,SAAS9C,KAAK5B,cAAc+C,WAAa,IAGlG,WAAW/B,GAEPY,KAAK+C,SAASC,KAAK,GAAW,CAC1B/C,oBAAqBD,KAAKE,OAAOC,OAAOC,WACxCoC,SAAU,eAA0BpD,KAI5C,WACIY,KAAK+C,SAASC,KAAK,OAAa,CAC5B/C,oBAAqBD,KAAKE,OAAOC,OAAOC,eAvB/B,GAAQ,gBAL5B,eAAQ,CACLuC,WAAY,CACRM,eAGa,c,UCLrB,MAAM,GAA2B,IAAgB,GAAQ,CAAC,CAAC,SAAS3F,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-370bfd8dcbeb76210830.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/stack.e2832869.svg\";","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./calendar.vue?vue&type=style&index=0&id=7daf5664&scoped=true&lang=css\"","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./calendar.vue?vue&type=style&index=0&id=5c77550f&scoped=true&lang=css\"","import { createVNode as _createVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/chevronLeft.svg'\nimport _imports_1 from '@/assets/img/management/stack.svg'\nimport _imports_2 from '@/assets/img/management/add.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-7daf5664\")\n\n_pushScopeId(\"data-v-7daf5664\")\nconst _hoisted_1 = { class: \"reservation_calendar hasAdminButtonsFooter\" }\nconst _hoisted_2 = { class: \"datesSlider\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = { class: \"fs_20 text-uppercase\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"img\", {\n style: {\"transform\":\"rotate(180deg)\"},\n src: _imports_0\n}, null, -1)\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"div\", { class: \"round\" }, null, -1)\nconst _hoisted_7 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_1 }, null, -1)\nconst _hoisted_8 = { class: \"adminButtonContainer\" }\nconst _hoisted_9 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_2 }, null, -1)\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _component_calendar = _resolveComponent(\"calendar\", true)!\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"button\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.changeMonth(true)))\n }, [\n _hoisted_3\n ]),\n _createVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.$filters.date(_ctx.selectedMonth, \"MMMM YYYY\")), 1),\n _createVNode(\"button\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.changeMonth(false)))\n }, [\n _hoisted_5\n ])\n ]),\n _createVNode(_component_calendar, {\n modelValue: _ctx.selectedMonth,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.selectedMonth = $event)),\n onDayClicked: _ctx.dayClicked\n }, null, 8, [\"modelValue\", \"onDayClicked\"]),\n _createVNode(_component_router_link, {\n class: \"toggleContainer fixedLeftBottom rightActive\",\n replace: true,\n to: { name: 'community_events' }\n }, {\n default: _withId(() => [\n _hoisted_6,\n _hoisted_7\n ]),\n _: 1\n }),\n _createVNode(\"div\", _hoisted_8, [\n (_ctx.$store.state.community.canContent)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 0,\n class: \"managementButton\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.newEvent()))\n }, [\n _hoisted_9\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n})","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-5c77550f\")\n\n_pushScopeId(\"data-v-5c77550f\")\nconst _hoisted_1 = { class: \"reservation_calendar\" }\nconst _hoisted_2 = { class: \"px-2\" }\nconst _hoisted_3 = { class: \"week_days\" }\nconst _hoisted_4 = { class: \"calendar_days\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"reservations_div\"\n}\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.week, (day, i) => {\n return (_openBlock(), _createBlock(\"span\", {\n class: [\"uppercase\", _ctx.returnWeekClass(day)],\n key: i\n }, _toDisplayString(day.value), 3))\n }), 128))\n ]),\n _createVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.monthDays, (day, index) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: index,\n class: \"calendar_day\"\n }, [\n _createVNode(\"div\", {\n class: [\"day\", _ctx.returnDayClass(day)],\n onClick: ($event: any) => (_ctx.dayClicked(day))\n }, [\n _createTextVNode(_toDisplayString(_ctx.$filters.date(day, \"DD\")) + \" \", 1),\n (_ctx.returnReservations(day) > 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_5, _toDisplayString(_ctx.returnReservations(day)), 1))\n : _createCommentVNode(\"\", true)\n ], 10, [\"onClick\"])\n ]))\n }), 128))\n ])\n ])\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\nimport { getOneLetterWeekDays, getUniversalDate, getUniversalISOStringDate } from '@/utils';\r\nimport { EventClient } from '@/services/Services';\r\nimport * as OM from \"@/model\";\r\n\r\n@Options({})\r\nexport default class Calendar extends Vue {\r\n\r\n @Prop({\r\n default: () => new Date()\r\n }) value: Date;\r\n\r\n week: any[] = [];\r\n monthDays: Date[] = [];\r\n today = new Date();\r\n events: OM.EventCalendarVM[] = [];\r\n calendarFilter: OM.CalendarFIlterVM = new OM.CalendarFIlterVM();\r\n\r\n created() {\r\n this.calendarFilter.communityIdentifier = this.$route.params.identifier.toString();\r\n this.week = getOneLetterWeekDays();\r\n this.loadReservation();\r\n }\r\n\r\n returnWeekClass(day){\r\n if(day.key == \"0\" || day.key == \"6\")\r\n return \"red\"\r\n \r\n return \"\";\r\n }\r\n\r\n @Watch(\"value\")\r\n loadReservation(){\r\n this.events = [];\r\n this.calendarFilter.date = getUniversalISOStringDate(this.value);\r\n EventClient.getByMonth(this.calendarFilter)\r\n .then( x => {\r\n var temp = x;\r\n\r\n temp.forEach( x => {\r\n x.date = getUniversalDate(x.date);\r\n this.events.push(x);\r\n })\r\n\r\n this.changeCalendar();\r\n })\r\n }\r\n\r\n changeCalendar(){\r\n this.monthDays = [];\r\n var tempDate = new Date(this.value);\r\n\r\n tempDate = new Date(tempDate.setDate(1));\r\n\r\n while(tempDate.getDay() != this.week[0].key)\r\n tempDate = new Date(tempDate.setDate(tempDate.getDate() - 1));\r\n\r\n var lastDay = new Date(tempDate);\r\n lastDay = new Date(lastDay.setDate(lastDay.getDate() + 42))\r\n\r\n while(tempDate.getMonth() != lastDay.getMonth() || tempDate.getDate() != lastDay.getDate()){\r\n this.monthDays.push(new Date(tempDate));\r\n tempDate = new Date(tempDate.setDate(tempDate.getDate() + 1));\r\n }\r\n }\r\n\r\n returnDayClass(day: Date){\r\n if(day.getFullYear() == this.today.getFullYear() && day.getMonth() == this.today.getMonth() \r\n && day.getDate() == this.today.getDate())\r\n return \"today\";\r\n\r\n var ris = \"\";\r\n\r\n if(day.getFullYear() == this.value.getFullYear() && day.getMonth() == this.value.getMonth())\r\n ris += \"month \";\r\n \r\n if(day.getDay() == 0 || day.getDay() == 6)\r\n ris += \"red \"\r\n\r\n if(this.returnReservations(day) > 0)\r\n ris += \"active\"\r\n\r\n return ris;\r\n }\r\n\r\n returnReservations(day: Date){\r\n return this.events.filter( x => {\r\n var dateVm = new Date(x.date);\r\n return dateVm.getFullYear() == day.getFullYear() && dateVm.getMonth() == day.getMonth() && dateVm.getDate() == day.getDate();\r\n }).length\r\n }\r\n\r\n dayClicked(day){\r\n this.$emit(\"dayClicked\", day);\r\n }\r\n}\r\n","import { render } from \"./calendar.vue?vue&type=template&id=5c77550f&scoped=true&ts=true\"\nimport script from \"./calendar.vue?vue&type=script&lang=ts\"\nexport * from \"./calendar.vue?vue&type=script&lang=ts\"\n\nimport \"./calendar.vue?vue&type=style&index=0&id=5c77550f&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c77550f\"]])\n\nexport default __exports__","import { createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, resolveComponent as _resolveComponent } from \"vue\"\nimport _imports_0 from '@/assets/img/chevronLeft.svg'\n\n\nconst _hoisted_1 = { class: \"genericPadding hasHeader bgWhite\" }\nconst _hoisted_2 = { class: \"header withShadow d-flex aling-items-center justify-content-between py-4\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = {\n key: 0,\n class: \"text-center\"\n}\nconst _hoisted_5 = { class: \"fs_12 greyBlue d-block ln_12\" }\nconst _hoisted_6 = { class: \"fs_10 grey d-block ln_12\" }\nconst _hoisted_7 = /*#__PURE__*/_createVNode(\"div\", { class: \"sideContainer\" }, null, -1)\nconst _hoisted_8 = { class: \"text-center\" }\nconst _hoisted_9 = { key: 0 }\n\nexport function render(_ctx: any,_cache: any) {\n const _component_event_card = _resolveComponent(\"event-card\")!\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: \"sideContainer\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$emit('close')))\n }, [\n _hoisted_3\n ]),\n (_ctx.communityTitle)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_4, [\n _createVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.communityTitle), 1),\n _createVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.$filters.date(_ctx.selectedDay)), 1)\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_7\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.events, (item, ii) => {\n return (_openBlock(), _createBlock(_component_event_card, {\n key: ii,\n event: item,\n onClick: ($event: any) => (_ctx.openEvent(item))\n }, null, 8, [\"event\", \"onClick\"]))\n }), 128)),\n _createVNode(\"div\", _hoisted_8, [\n (_ctx.events.length == 0)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_9, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_nessuneventotrovato',\n text: 'Nessun evento trovato'\n })\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport { getUniversalDate, getUniversalISOStringDate } from '@/utils';\r\nimport { EventClient } from '@/services/Services';\r\nimport EventCard from '../components/eventCard.vue';\r\nimport store from \"@/store\";\r\nimport * as OM from \"@/model\";\r\n\r\n@Options({\r\n components: {\r\n EventCard\r\n }\r\n})\r\nexport default class DayEvents extends Vue {\r\n\r\n selectedDay: Date = new Date(); \r\n model: OM.CalendarFIlterVM = new OM.CalendarFIlterVM();\r\n events: OM.EventVm[] = [];\r\n communityTitle: string = \"\";\r\n\r\n @Prop({\r\n default: \"\"\r\n }) communityIdentifier: string;\r\n\r\n @Prop({\r\n default: \"\"\r\n }) dateTime: string;\r\n\r\n created() {\r\n if(this.communityIdentifier == store.state.community.identifier)\r\n this.communityTitle = store.state.community.title;\r\n\r\n this.selectedDay = getUniversalISOStringDate(getUniversalDate(this.dateTime));\r\n this.model.communityIdentifier = this.communityIdentifier;\r\n this.model.date = this.selectedDay;\r\n\r\n EventClient.getByDayAsEventList(this.model)\r\n .then(x => {\r\n this.events = x;\r\n })\r\n }\r\n\r\n openEvent(item: OM.EventVm) {\r\n this.$emit('close');\r\n this.$router.push(\"/events/\" + item.identifier);\r\n }\r\n\r\n}\r\n","import { render } from \"./dayEvents.vue?vue&type=template&id=6daa0054&ts=true\"\nimport script from \"./dayEvents.vue?vue&type=script&lang=ts\"\nexport * from \"./dayEvents.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\nimport { Options, Vue, } from 'vue-class-component';\r\nimport { getUniversalISOStringDate } from '@/utils';\r\nimport calendar from './components/calendar.vue';\r\nimport CreateEvent from './modals/createEvent.vue';\r\nimport DayEvents from './modals/dayEvents.vue';\r\n\r\n@Options({\r\n components: {\r\n calendar\r\n }\r\n})\r\nexport default class Calendar extends Vue {\r\n\r\n selectedMonth: Date = new Date();\r\n\r\n created() {}\r\n\r\n changeMonth(prev: boolean) {\r\n if(prev)\r\n this.selectedMonth = new Date(this.selectedMonth.setMonth(this.selectedMonth.getMonth() - 1));\r\n else\r\n this.selectedMonth = new Date(this.selectedMonth.setMonth(this.selectedMonth.getMonth() + 1)); \r\n }\r\n\r\n dayClicked(day: Date) {\r\n // this.$router.push(\"/communities/\" + this.$route.params.identifier + \"/calendar/\" + getUniversalISOStringDate(day));\r\n this.$opModal.show(DayEvents, {\r\n communityIdentifier: this.$route.params.identifier,\r\n dateTime: getUniversalISOStringDate(day)\r\n })\r\n }\r\n\r\n newEvent() {\r\n this.$opModal.show(CreateEvent, {\r\n communityIdentifier: this.$route.params.identifier\r\n });\r\n }\r\n\r\n}\r\n","import { render } from \"./calendar.vue?vue&type=template&id=7daf5664&scoped=true&ts=true\"\nimport script from \"./calendar.vue?vue&type=script&lang=ts\"\nexport * from \"./calendar.vue?vue&type=script&lang=ts\"\n\nimport \"./calendar.vue?vue&type=style&index=0&id=7daf5664&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7daf5664\"]])\n\nexport default __exports__"],"sourceRoot":""}