{"version":3,"sources":["webpack:///./src/utilities/Date/parse.js","webpack:///./src/utilities/get/number.js","webpack:///./src/components/inputs/TimePickerFifteen/index.vue?0a21","webpack:///./src/components/inputs/MonthAndDay/index.vue?f3e5","webpack:///./src/components/inputs/Months/index.vue?68db","webpack:///src/components/inputs/Months/index.vue","webpack:///./src/components/inputs/Months/index.vue?2768","webpack:///./src/components/inputs/Months/index.vue","webpack:///src/components/inputs/MonthAndDay/index.vue","webpack:///./src/components/inputs/MonthAndDay/index.vue?ac22","webpack:///./src/components/inputs/MonthAndDay/index.vue","webpack:///./src/utilities/get/Array.js","webpack:///./src/utilities/Date/addSuffix.js","webpack:///./src/components/inputs/DayOfMonth/index.vue?fad5","webpack:///./src/components/inputs/DayOfMonth/keys/data.js","webpack:///./src/components/inputs/DayOfMonth/keys/methods.js","webpack:///src/components/inputs/DayOfMonth/index.vue","webpack:///./src/components/inputs/DayOfMonth/index.vue?b6de","webpack:///./src/components/inputs/DayOfMonth/index.vue","webpack:///./src/utilities/Date/constantsMonths.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/Main/index.vue?d531","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventAdder/index.vue?fe48","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventAdder/keys/data.js","webpack:///./src/services/CalendarEvent/CommunityCalendarEvent/Post.js","webpack:///./src/services/CalendarEvent/store.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventAdder/keys/methods.js","webpack:///src/pages/Management/communityCenter/tabs/calendar/EventAdder/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventAdder/index.vue?18c9","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventAdder/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventDetails/index.vue?dd49","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventDetails/keys/data.js","webpack:///./src/services/CalendarEvent/CommunityCalendarEvent/Delete.js","webpack:///./src/services/CalendarEvent/CommunityCalendarEvent/Put.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventDetails/keys/methods.js","webpack:///src/pages/Management/communityCenter/tabs/calendar/EventDetails/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventDetails/index.vue?d6ea","webpack:///./src/pages/Management/communityCenter/tabs/calendar/EventDetails/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/index.vue?0be6","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/Confirmation/index.vue?08d6","webpack:///./src/utilities/String/orList.js","webpack:///./src/utilities/events/recurringEventConditions.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/Confirmation/keys/watch.js","webpack:///src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/Confirmation/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/Confirmation/index.vue?3c52","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/Confirmation/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/index.vue?0f67","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/keys/data.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/keys/methods.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/keys/props.js","webpack:///./src/components/inputs/OccasionOfDayOfWeek/index.vue?61d3","webpack:///src/components/inputs/OccasionOfDayOfWeek/index.vue","webpack:///./src/components/inputs/OccasionOfDayOfWeek/index.vue?030c","webpack:///./src/components/inputs/OccasionOfDayOfWeek/index.vue","webpack:///./src/components/inputs/DayOfWeek/index.vue?39ac","webpack:///./src/utilities/Date/constantsDaysOfWeek.js","webpack:///src/components/inputs/DayOfWeek/index.vue","webpack:///./src/components/inputs/DayOfWeek/index.vue?8d63","webpack:///./src/components/inputs/DayOfWeek/index.vue","webpack:///src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/index.vue?9370","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/components/VariableRanges/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/keys/presets.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/keys/data.js","webpack:///./src/services/CalendarEvent/CommunityCalendarRecurringEvent/Post.js","webpack:///./src/services/CalendarEvent/CommunityCalendarRecurringEvent/Delete.js","webpack:///./src/services/CalendarEvent/CommunityCalendarRecurringEvent/Put.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/keys/methods.js","webpack:///src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/index.vue?16fc","webpack:///./src/pages/Management/communityCenter/tabs/calendar/RecurringEventAdder/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/Main/keys/data.js","webpack:///./src/services/CalendarEvent/CommunityCalendarEvent/List.js","webpack:///./src/services/CalendarEvent/CommunityCalendarRecurringEvent/List.js","webpack:///./src/services/CalendarEvent/Calendaring/GetCalendarEvents.js","webpack:///./src/utilities/Date/lastDayOfMonth.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/Main/keys/methods.js","webpack:///./src/pages/Management/communityCenter/tabs/calendar/Main/keys/mounted.js","webpack:///src/pages/Management/communityCenter/tabs/calendar/Main/index.vue","webpack:///./src/pages/Management/communityCenter/tabs/calendar/Main/index.vue?6bb1","webpack:///./src/pages/Management/communityCenter/tabs/calendar/Main/index.vue","webpack:///./src/components/inputs/TimePickerFifteen/index.vue?5dfd","webpack:///src/components/inputs/TimePickerFifteen/index.vue","webpack:///./src/components/inputs/TimePickerFifteen/index.vue?0ed0","webpack:///./src/components/inputs/TimePickerFifteen/index.vue","webpack:///./src/utilities/Date/allDatesInMonth.js"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","getNumber","a","b","c","variable","_get","x","NaN","render","_vm","this","_h","$createElement","_c","_self","style","display","ref","attrs","onMonthChange","staticRenderFns","margin","model","value","callback","$$v","monthSelection","expression","_l","option","key","domProps","_v","_s","data","months","props","onChange","type","Function","default","watch","month","methods","getMonth","setMonth","component","components","Months","DayOfMonth","monthAndDay","String","parseMonthAndDay","$refs","dayOfMonth","monthNum","year","getValues","getValueWithoutSuffix","dayOfMonth__","day","mounted","getArray","Array","isArray","addSuffix","strDate","parseInt","toString","len","length","secondToLast","last","alignItems","daySelection","datesWithoutSuffix","daysOfMonth","getDaysOfMonth","includeEvery","_year","m","allDatesInMonth","suffix","dates","includeLast","slice","getValue","log","Boolean","Object","freeze","marginBottom","on","openEventAdder","marginLeft","openRecurringEventAdder","calendarUpdate","ready","dayTapped","eventTapped","events","calendarProblem","isOpen","loading","$event","scopedSlots","_u","fn","proxy","justifyContent","add","fields","$set","paddingRight","title","description","url","addEventPath","addEvent","json","kms","post","result","successful","Vue","use","Vuex","calendarEventStore","Store","state","mutations","updateMain","actions","getters","getDate","time","utcOffset","sTime","set","hour","get","minute","second","toISOString","open","onUpdate","refreshFields","hoaID","startDate","allValid","utcFormat","notifyProblem","startTime","endDate","endAllValid","endUTCFormat","endTime","commit","Modal","TimePicker","DatePicker","page","showDeletionConfirmation","showUpdatePanel","_e","back","updateEvent","deleteEvent","minHeight","eventStart","eventEnd","eraseEvent","communityCalendarEventID","delete","put","event","JSON","stringify","romanceStart","split","romanceEnd","name","notifyMessage","dateTimePicker1","dateTimePicker2","DateTimePicker","modalContent","mode","float","marginRight","prevStep","nextStep","staticClass","openConfirmErase","padding","updatePrevented","update","setUpdate","addPrevented","flexDirection","maxWidth","paddingTop","step","variableRangesPresets","width","marginTop","beforeTimeSelected","confirmationData","condition","index","orList","arr","recurringEventConditions","recurrenceDefinition","monthInclusiveBetween","dayOfMonthInclusiveBetween","dayOfWeek","durationMinutes","conditions","push","from","to","fromDayOfMonth","toDayOfMonth","str","_dayOfWeek","map","entry","indexOf","overflow","border","checked","color","position","optionSelected","filteredMonths","getFilteredMonths","monthsSelected","top","left","height","opacity","background","filteredDaysOfMonth","getFilteredDaysOfTheMonth","daysOfMonthSelected","dayOfMonth1Value","dayOfMonth2Value","paddingLeft","onOccasionOfDayOfWeekChange","onDayOfWeekChange","addDayOfWeek","verticalAlign","occasion","eraseDayOfWeek","transition","minutes","occasionOfDayOfWeek","0","options","getAllPossibleDaysOfMonth","weeksOfYearSelected","filteredWeeksOfYear","getWeeksOfYear","daysOfWeekSelected","radio","monthType","dayOfMonthType","dayOfWeekType","results","monthAndDay1","monthAndDay2","toLowerCase","dayOfMonth1","dayOfMonth2","strand","setValue","params","setValues","recurringEvent","text","filter","getFilteredWeeksOfYear","possibilities","added","list","place","splice","sendChange","values","includeTime","includeYear","includeTimeRange","presets","occasionSelection","occasions","dayOfWeekSelection","daysOfWeek","MonthAndDay","OccasionOfDayOfWeek","DayOfWeek","durationTypeSelection","durationType","_presets","_cloneDeep","addRecurringEvent","eraseRecurringEvent","communityCalendarRecurringEventID","updateRecurringEvent","openUpdate","recurringEvents","reset","original","evt","formattedDateStart","formattedDateEnd","RecurrenceJSON","onOnChange","recurrenceJSON","checkStep","forward","proceed","variableRanges","datePickerAfter","datePickerBefore","afterUTCFormat","after","before","trace","Confirmation","VariableRanges","isReady","listEvents","listRecurringEvents","getCalendarEvents","_params","lastDayOfMonth","Date","refresh","openEventsList","isRecurring","recurringEventAdder","eventDetails","eventAdder","parseEvents","parseRecurringEvents","eventDates","recurringEventsKV","eventsList","prototype","hasOwnProperty","call","details","displayStartTime","displayEndTime","interval","getRecurringEvents","kv","monthNumerals","Number","dayOfMonthStr","includes","rEvents","unsubCalendarEventStore","subscribe","mutation","mType","EventAdder","RecurringEventAdder","EventDetails","PageContentLayoutOnly","PleasantCalendar","meridian","hours","min","parse24","merid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AAOiB,KACnBjI,KAAK0W,SAAW1P,EAAO0P,SAASM,gBAGpCpS,SAbJ,WAcM,IAAN,YACA,cACA,gBAEA,KAKM,OAJK5E,KAAK2W,MAAMZ,SAAS9N,KACvB/I,GAAU,GAGL,CACLA,QAAR,EACQ+X,GAAIJ,EAAQ,CACV5O,KAAV,EACUE,OAAV,EACUuO,SAAV,IAEQzO,KAAMjI,KAAKiI,KACXE,OAAQnI,KAAKmI,OACbuO,SAAU1W,KAAK0W,WAGnB/U,SAnCJ,WAoCM3B,KAAKuI,SAASvI,KAAK4E,cAGvBzB,QA/DF,WAgEInD,KAAK0Q,aCxOoW,I,wBCQzWtO,EAAY,eACd,EACAtC,EACAY,GACA,EACA,KACA,KACA,MAIa,OAAA0B,E,sICKR,SAASmC,EAAT,GAA4E,IAAjDzB,EAAiD,EAAjDA,KAAMd,EAA2C,EAA3CA,MAA2C,IAApC8K,iBAAoC,MAAxB,KAAwB,MAAlBtI,cAAkB,SAC3E0S,EAAYjY,IAAO,GAAD,OAAI6D,EAAJ,YAAYd,GAAS,WAAWmV,cAExDnV,GAAgB,EAES,kBAAd8K,IACTA,GAAwB,GAI1B,IADA,IAAMrI,EAAQ,GACLlF,EAAI,EAAGA,GAAK2X,EAAW3X,IAAK,CACnC,IAAMX,EAAO,IAAI2V,KAAKzR,EAAMd,EAAOzC,GAC7B2D,EAAMtE,EAAKwY,SAEQ,kBAAdtK,EACL5J,IAAQ4J,GACVrI,EAAMwI,KAAKrO,GAGb6F,EAAMwI,KAAKrO,GAIf,OAAI4F,EACK,CACLC,MAAOA,EAAM+I,KAAI,SAAA5O,GACf,IAAMyY,EAASpY,IAAOL,GAAMA,OAE5B,OAAO2E,eAAU8T,OAKhB,CACL5S","file":"js/communityCenter.calendar.2c1d2be4.js","sourcesContent":["/*\r\n Example:\r\n import { parseDate } from '@/utilities/Date/parse'\r\n\r\n const parsedDate = parseDate (date, 'LL');\r\n*/\r\nimport moment from 'moment'\r\n\r\nexport const parseDate = (date, format = 'LL') => {\r\n if (typeof date !== 'string') {\r\n console.debug(`parseDate can only parse a date string. got:`, { date })\r\n return date\r\n }\r\n\r\n try {\r\n const parsed = moment(date)\r\n if (parsed.isValid()) {\r\n date = moment(date).format(format)\r\n }\r\n } catch (exception) {\r\n if (exception && exception.message) {\r\n console.error(exception.message)\r\n } else {\r\n console.error(exception)\r\n }\r\n }\r\n\r\n return date\r\n}\r\n","/*\r\n import { getNumber } from '@/utilities/get/number'\r\n\r\n const num = getNumber ()\r\n */\r\n\r\nimport _get from 'lodash/get'\r\n\r\nexport function getNumber(a, b, c) {\r\n try {\r\n const variable = _get(a, b, c)\r\n if (typeof variable === 'number') {\r\n return variable\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return NaN\r\n}\r\n","import mod 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!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; 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!./index.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{style:({ display: 'flex' })},[_c('Months',{ref:\"months\",attrs:{\"onChange\":_vm.onMonthChange}}),_c('DayOfMonth',{ref:\"dayOfMonth\",attrs:{\"includeLast\":true}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-field',{style:({ margin: 0 }),attrs:{\"months-field\":\"\"}},[_c('b-select',{model:{value:(_vm.monthSelection),callback:function ($$v) {_vm.monthSelection=$$v},expression:\"monthSelection\"}},_vm._l((_vm.months),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(\" \"+_vm._s(option)+\" \")])}),0)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=663ab296&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=2d880b8d&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","/*\r\n import { getArray } from '@/utilities/get/Array'\r\n\r\n const array = getArray ()\r\n */\r\n\r\nimport _get from 'lodash/get'\r\n\r\nexport function getArray(a, b, c) {\r\n try {\r\n const variable = _get(a, b, c)\r\n\r\n if (Array.isArray(variable)) {\r\n return variable\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return []\r\n}\r\n","/*\r\n\timport { addSuffix } from '@/utilities/Date/addSuffix'\r\n\taddSuffix (date);\r\n*/\r\n\r\n/*\r\n\t1st\r\n\t2nd\r\n\t3rd\r\n\t\r\n\tif two digits & second to last digit is 1 then all \"th\"\r\n*/\r\n\r\nexport function addSuffix(date) {\r\n try {\r\n const strDate = parseInt(date).toString()\r\n const len = strDate.length\r\n\r\n if (strDate.length === 1) {\r\n if (strDate === '1') {\r\n return strDate + 'st'\r\n }\r\n if (strDate === '2') {\r\n return strDate + 'nd'\r\n }\r\n if (strDate === '3') {\r\n return strDate + 'rd'\r\n }\r\n }\r\n\r\n if (len >= 2) {\r\n const secondToLast = strDate[len - 2]\r\n\r\n if (secondToLast !== '1') {\r\n const last = strDate[len - 1]\r\n\r\n if (last === '1') {\r\n return strDate + 'st'\r\n }\r\n if (last === '2') {\r\n return strDate + 'nd'\r\n }\r\n if (last === '3') {\r\n return strDate + 'rd'\r\n }\r\n }\r\n }\r\n\r\n return strDate + 'th'\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return date\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{style:({ display: 'flex', alignItems: 'center' }),attrs:{\"day-of-month-field\":\"\"}},[_c('b-field',{style:({ margin: 0 })},[_c('b-select',{model:{value:(_vm.daySelection),callback:function ($$v) {_vm.daySelection=$$v},expression:\"daySelection\"}},_vm._l((_vm.daysOfMonth),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(\" \"+_vm._s(option)+\" \")])}),0)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { months } from '@/utilities/Date/constantsMonths'\r\n\r\nexport function data() {\r\n return {\r\n months,\r\n monthSelection: 'January',\r\n\r\n datesWithoutSuffix: [],\r\n\r\n daysOfMonth: this.getDaysOfMonth(),\r\n daySelection: this.includeEvery ? 'Any Day' : '1st'\r\n }\r\n}\r\n","import { allDatesInMonth } from '@/utilities/Date/allDatesInMonth'\r\nimport moment from 'moment'\r\n\r\nexport const methods = {\r\n getDaysOfMonth({ monthNum = null, year = null } = {}) {\r\n const m = moment()\r\n\r\n let month\r\n if (typeof monthNum === 'number') {\r\n month = monthNum\r\n } else {\r\n month = 1\r\n }\r\n\r\n let _year\r\n if (typeof year === 'number') {\r\n _year = year\r\n } else {\r\n _year = m.year()\r\n }\r\n\r\n const { dates } = allDatesInMonth({\r\n year: _year,\r\n month,\r\n suffix: true\r\n })\r\n\r\n const { dates: datesWithoutSuffix } = allDatesInMonth({\r\n year: _year,\r\n month,\r\n suffix: true\r\n })\r\n\r\n this.datesWithoutSuffix = datesWithoutSuffix\r\n\r\n return [\r\n ...(this.includeEvery ? ['Any Day'] : []),\r\n ...dates,\r\n ...(this.includeLast ? ['Last'] : [])\r\n ]\r\n },\r\n\r\n getValueWithoutSuffix() {\r\n let daySelection = this.daySelection\r\n\r\n if (daySelection !== 'Any Day' && daySelection !== 'Last') {\r\n daySelection = daySelection.slice(0, -2)\r\n\r\n if (daySelection.length === 1) {\r\n daySelection = '0' + daySelection\r\n }\r\n }\r\n\r\n return daySelection\r\n },\r\n\r\n getValue() {\r\n return this.daySelection\r\n },\r\n\r\n /*\r\n\t\t1 to 12\r\n\r\n\t\tsetMonth ({\r\n\t\t\tmonthNum: 1, // January\r\n\t\t\tyear: 2487\r\n\t\t})\r\n\t*/\r\n setMonth({ monthNum, year, dayOfMonth = null }) {\r\n console.log('setMonth', { monthNum, year, dayOfMonth })\r\n\r\n this.daysOfMonth = this.getDaysOfMonth({\r\n monthNum,\r\n year\r\n })\r\n\r\n if (dayOfMonth) {\r\n this.daySelection = dayOfMonth\r\n }\r\n }\r\n}\r\n\r\n//\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4db4280a&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","/*\r\n\timport { months } from '@/utilities/Date/constantsMonths'\r\n*/\r\n\r\nexport const months = Object.freeze([\r\n 'January',\r\n 'February',\r\n 'March',\r\n 'April',\r\n 'May',\r\n 'June',\r\n 'July',\r\n 'August',\r\n 'September',\r\n 'October',\r\n 'November',\r\n 'December'\r\n])\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',[_c('div',{style:({ marginBottom: '20px' })},[_c('b-button',{attrs:{\"rounded\":\"\",\"type\":\"is-primary\",\"add-event\":\"\"},on:{\"click\":_vm.openEventAdder}},[_vm._v(\"Add Event\")]),_c('b-button',{style:({ marginLeft: '12px' }),attrs:{\"rounded\":\"\",\"type\":\"is-primary\",\"add-recurring-event\":\"\"},on:{\"click\":_vm.openRecurringEventAdder}},[_vm._v(\"Add Recurring Event\")])],1),_c('PleasantCalendar',{ref:\"calendar\",attrs:{\"pageChange\":_vm.calendarUpdate,\"ready\":_vm.ready,\"dayTapped\":_vm.dayTapped,\"eventTapped\":_vm.eventTapped,\"events\":_vm.events,\"externalProblem\":_vm.calendarProblem}}),_c('EventAdder',{ref:\"eventAdder\"}),_c('RecurringEventAdder',{ref:\"recurringEventAdder\"}),_c('EventDetails',{ref:\"eventDetails\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"event-adder\":\"\",\"toggle\":_vm.isOpen,\"loading\":_vm.loading},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',[_vm._v(\"Event Adder\")])]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ display: 'flex', justifyContent: 'space-between' })},[_c('div'),_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":_vm.add}},[_vm._v(\"Add\")])],1)]},proxy:true}])},[_c('b-field',{attrs:{\"label\":\"Title\"}},[_c('b-input',{model:{value:(_vm.fields.title),callback:function ($$v) {_vm.$set(_vm.fields, \"title\", $$v)},expression:\"fields.title\"}})],1),_c('b-field',{attrs:{\"label\":\"Description\"}},[_c('b-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.fields.description),callback:function ($$v) {_vm.$set(_vm.fields, \"description\", $$v)},expression:\"fields.description\"}})],1),_c('b-field',{attrs:{\"label\":\"URL\"}},[_c('b-input',{model:{value:(_vm.fields.url),callback:function ($$v) {_vm.$set(_vm.fields, \"url\", $$v)},expression:\"fields.url\"}})],1),_c('b-field',{attrs:{\"label\":\"From\"}}),_c('div',{style:({ display: 'flex', alignItems: 'center' })},[_c('DatePicker',{ref:\"startDate\",style:({ paddingRight: '10px', marginBottom: 0 }),attrs:{\"ariaLabel\":\"filter from date\",\"ariaPrefix\":\"from\"}}),_c('TimePicker',{ref:\"startTime\"})],1),_c('br'),_c('b-field',{attrs:{\"label\":\"To\"}}),_c('div',{style:({ display: 'flex', alignItems: 'center' })},[_c('DatePicker',{ref:\"endDate\",style:({ paddingRight: '10px', marginBottom: 0 }),attrs:{\"ariaLabel\":\"filter from date\",\"ariaPrefix\":\"from\"}}),_c('TimePicker',{ref:\"endTime\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function data() {\r\n return {\r\n loading: true,\r\n isOpen: false,\r\n fields: {\r\n title: '',\r\n description: '',\r\n url: ''\r\n }\r\n }\r\n}\r\n","/*\r\n\timport { addEvent } from '@/services/CalendarEvent/CommunityCalendarEvent/Post';\r\n\r\n const { result, successful, message } = await addEvent ({\r\n json: {\r\n hoaID,\r\n title,\r\n description,\r\n startTime,\r\n endTime\r\n }\r\n });\r\n if (!successful) {\r\n notifyProblem (message);\r\n return;\r\n }\r\n*/\r\n\r\n/*\r\n import { addEventPath } from '@/services/CalendarEvent/CommunityCalendarEvent/Post';\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport const addEventPath = `/CalendarEvent/CommunityCalendarEvent`\r\n\r\nexport async function addEvent({ json }) {\r\n let message = 'The community calendar events list could not be retrieved.'\r\n\r\n try {\r\n const result = await kms.post(addEventPath, json)\r\n\r\n return {\r\n successful: true,\r\n message,\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","/*\r\n import { calendarEventStore } from '@/services/CalendarEvent/store'\r\n\r\n this.unsubCalendarEventStore = calendarEventStore.subscribe((mutation, state) => {\r\n const mType = mutation.type;\r\n\r\n\r\n })\r\n\r\n this.unsubCalendarEventStore();\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nVue.use(Vuex)\r\nexport const calendarEventStore = new Vuex.Store({\r\n state: {},\r\n mutations: {\r\n /*\r\n import { calendarEventStore } from '@/services/CalendarEvent/store'\r\n\t\t\tawait calendarEventStore.commit ('updateMain');\r\n */\r\n async updateMain() {}\r\n },\r\n /* eslint-disable no-empty-pattern */\r\n actions: {},\r\n /* eslint-enable no-empty-pattern */\r\n getters: {}\r\n})\r\n\r\n//\r\n","import _get from 'lodash/get'\r\nimport moment from 'moment'\r\n\r\nimport { addEvent } from '@/services/CalendarEvent/CommunityCalendarEvent/Post'\r\nimport { notifyProblem } from '@/services/notify'\r\nimport { calendarEventStore } from '@/services/CalendarEvent/store'\r\n\r\nfunction getDate({ time, date }) {\r\n try {\r\n const result = moment(date).utcOffset(0, true)\r\n const sTime = moment(time, 'HH:mm:ss')\r\n\r\n result.set({\r\n hour: sTime.get('hour'),\r\n minute: sTime.get('minute'),\r\n second: sTime.get('second')\r\n })\r\n\r\n return result.toISOString()\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return ''\r\n}\r\n\r\nexport const methods = {\r\n open() {\r\n this.isOpen = true\r\n this.loading = false\r\n },\r\n\r\n onUpdate() {},\r\n\r\n refreshFields() {\r\n console.debug('refreshFields...')\r\n this.fields.title = ''\r\n this.fields.description = ''\r\n this.fields.url = ''\r\n },\r\n\r\n async add() {\r\n this.loading = true\r\n\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n const { title, description, url } = this.fields\r\n\r\n const { allValid, utcFormat } = this.$refs.startDate.getValue()\r\n if (!allValid) {\r\n notifyProblem(`A valid start date has not been selected.`)\r\n return\r\n }\r\n const startTime = getDate({\r\n time: this.$refs.startTime.getValue()[24],\r\n date: utcFormat\r\n })\r\n\r\n const { allValid: endAllValid, utcFormat: endUTCFormat } = this.$refs.endDate.getValue()\r\n if (!endAllValid) {\r\n notifyProblem(`A valid start date has not been selected.`)\r\n return\r\n }\r\n const endTime = getDate({\r\n time: this.$refs.endTime.getValue()[24],\r\n date: endUTCFormat\r\n })\r\n\r\n const { successful, message } = await addEvent({\r\n json: {\r\n hoaID,\r\n title,\r\n url,\r\n description,\r\n startTime,\r\n endTime\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n\r\n this.loading = false\r\n this.isOpen = false\r\n\r\n return\r\n }\r\n\r\n this.refreshFields()\r\n\r\n await calendarEventStore.commit('updateMain')\r\n\r\n this.loading = false\r\n this.isOpen = false\r\n }\r\n}\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b103d3e2&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"event-adder\":\"\",\"toggle\":_vm.isOpen,\"loading\":_vm.loading},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',{style:({ margin: '12px 0' })},[_c('h4',{style:({ margin: 0 })},[_vm._v(_vm._s(_vm.title))]),_c('div',[_vm._v(_vm._s(_vm.dates))])])]},proxy:true},{key:\"footer\",fn:function(){return [(_vm.page === 0)?_c('div',{style:({ display: 'flex', justifyContent: 'space-between' })},[_c('b-button',{attrs:{\"type\":\"is-danger\"},on:{\"click\":_vm.showDeletionConfirmation}},[_vm._v(\"Delete\")]),_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":_vm.showUpdatePanel}},[_vm._v(\"Update\")])],1):_vm._e(),(_vm.page === 1)?_c('div',{style:({ display: 'flex', justifyContent: 'space-between' })},[_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":_vm.back}},[_vm._v(\"Back\")]),_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":_vm.updateEvent}},[_vm._v(\"Update Event\")])],1):_vm._e(),(_vm.page === 2)?_c('div',{style:({ display: 'flex', justifyContent: 'space-between' })},[_c('b-button',{on:{\"click\":_vm.back}},[_vm._v(\"Back\")]),_c('b-button',{attrs:{\"type\":\"is-danger\"},on:{\"click\":_vm.deleteEvent}},[_vm._v(\"Delete\")])],1):_vm._e()]},proxy:true}])},[_c('div',{style:({ minHeight: '300px' })},[(_vm.page === 0)?_c('div',[_c('div',[_vm._v(_vm._s((\"Description: \" + _vm.description)))]),(_vm.url)?_c('div',[_vm._v(\" \"+_vm._s(\"URL:\")+\" \"),_c('a',{attrs:{\"href\":(\"http://\" + _vm.url),\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.url))])]):_vm._e()]):_vm._e(),(_vm.page === 1)?_c('div',[_c('b-field',{attrs:{\"label\":\"Title\"}},[_c('b-input',{model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}})],1),_c('b-field',{attrs:{\"label\":\"Description\"}},[_c('b-input',{attrs:{\"type\":\"textarea\"},model:{value:(_vm.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}})],1),_c('b-field',{attrs:{\"label\":\"URL\"}},[_c('b-input',{model:{value:(_vm.url),callback:function ($$v) {_vm.url=$$v},expression:\"url\"}})],1),_c('b-field',{attrs:{\"label\":\"From\"}}),_c('div',{style:({ display: 'flex', alignItems: 'center' })},[_c('DateTimePicker',{ref:\"dateTimePicker1\",attrs:{\"point\":_vm.eventStart}})],1),_c('br'),_c('b-field',{attrs:{\"label\":\"To\"}}),_c('div',{style:({ display: 'flex', alignItems: 'center' })},[_c('DateTimePicker',{ref:\"dateTimePicker2\",attrs:{\"point\":_vm.eventEnd}})],1)],1):_vm._e(),(_vm.page === 2)?_c('div',[_c('p',[_vm._v(\"To delete the event, press the delete button.\")])]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function data() {\r\n return {\r\n loading: false,\r\n isOpen: false,\r\n title: '',\r\n description: '',\r\n url: '',\r\n dates: '',\r\n page: 0,\r\n\r\n eventStart: '',\r\n eventEnd: ''\r\n }\r\n}\r\n","/*\r\n\timport { eraseEvent } from '@/services/CalendarEvent/CommunityCalendarEvent/Delete';\r\n\r\n const { list, successful, message } = await eraseEvent ({\r\n communityCalendarEventID\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function eraseEvent({ communityCalendarEventID }) {\r\n let message = 'The community calendar event could not be erased.'\r\n\r\n try {\r\n const result = await kms.delete(\r\n `/CalendarEvent/CommunityCalendarEvent/${communityCalendarEventID}?forceDelete=true`\r\n )\r\n\r\n return {\r\n successful: true,\r\n message,\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","/*\r\n\timport { updateEvent } from '@/services/CalendarEvent/CommunityCalendarEvent/Put';\r\n\r\n const { result, successful, message } = await updateEvent ({\r\n json: {}\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function updateEvent({ json }) {\r\n let message = 'The event could not be updated successfully.'\r\n\r\n try {\r\n const result = await kms.put(`/CalendarEvent/CommunityCalendarEvent`, json)\r\n\r\n return {\r\n successful: true,\r\n message,\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\nimport moment from 'moment'\r\n\r\nimport { notifyMessage, notifyProblem } from '@/services/notify'\r\n\r\nimport { eraseEvent } from '@/services/CalendarEvent/CommunityCalendarEvent/Delete'\r\nimport { updateEvent } from '@/services/CalendarEvent/CommunityCalendarEvent/Put'\r\n\r\nimport { calendarEventStore } from '@/services/CalendarEvent/store'\r\n\r\nexport const methods = {\r\n open({ event }) {\r\n console.debug('event=' + JSON.stringify(event))\r\n\r\n const { startDate, endDate } = event\r\n\r\n const romanceStart = moment(startDate.split('Z')[0]).format('LL hh:mm A')\r\n const romanceEnd = moment(endDate.split('Z')[0]).format('LL hh:mm A')\r\n\r\n this.eventStart = startDate\r\n this.eventEnd = endDate\r\n\r\n /*\r\n\t\t\tFor Example:\r\n\t\t\t\t10:00am January 1st, 2022 to 4:00pm January 5th, 2022\r\n\t\t*/\r\n\r\n this.loading = false\r\n this.isOpen = true\r\n\r\n this.title = event.name\r\n this.description = event.description\r\n this.url = event.url\r\n\r\n this.dates = romanceStart + ' to ' + romanceEnd\r\n\r\n this.communityCalendarEventID = event.communityCalendarEventID\r\n },\r\n\r\n showUpdatePanel() {\r\n this.page = 1\r\n },\r\n\r\n showDeletionConfirmation() {\r\n this.page = 2\r\n },\r\n\r\n back() {\r\n this.page = 0\r\n },\r\n\r\n async deleteEvent() {\r\n this.loading = false\r\n\r\n const communityCalendarEventID = this.communityCalendarEventID\r\n\r\n const { successful, message } = await eraseEvent({\r\n communityCalendarEventID\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n notifyMessage('The event has been deleted.')\r\n\r\n await calendarEventStore.commit('updateMain')\r\n\r\n this.loading = true\r\n this.isOpen = false\r\n },\r\n\r\n async updateEvent() {\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n const communityCalendarEventID = this.communityCalendarEventID\r\n\r\n const dateTimePicker1 = this.$refs.dateTimePicker1.getValue()\r\n const dateTimePicker2 = this.$refs.dateTimePicker2.getValue()\r\n\r\n const { successful, message } = await updateEvent({\r\n json: {\r\n hoaID,\r\n communityCalendarEventID,\r\n\r\n title: this.title,\r\n description: this.description,\r\n url: this.url,\r\n startTime: dateTimePicker1.value,\r\n endTime: dateTimePicker2.value\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n notifyMessage('The event has been updated.')\r\n\r\n await calendarEventStore.commit('updateMain')\r\n\r\n this.loading = true\r\n this.isOpen = false\r\n }\r\n}\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3751782e&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"event-adder\":\"\",\"toggle\":_vm.isOpen,\"loading\":_vm.loading,\"styles\":{ modalContent: { minHeight: '400px' } },\"recurring-event-adder\":\"\"},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [(_vm.mode === 'add')?_c('div',[_vm._v(\"Add Recurring Event\")]):_vm._e(),(_vm.mode === 'view')?_c('div',[_c('div',{style:({ margin: '12px 0' })},[_c('h4',{style:({ margin: 0 })},[_vm._v(_vm._s(_vm.title))]),_c('div',[_vm._v(_vm._s(_vm.dates))])])]):_vm._e(),(_vm.mode === 'update')?_c('div',[_vm._v(\"Update (or Delete) Recurring Event\")]):_vm._e()]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ display: 'flex', justifyContent: 'space-between' })},[(_vm.mode !== 'view' && _vm.mode !== 'delete')?_c('div',{style:({ float: 'right' })},[_c('b-button',{style:({ marginRight: '8px' }),attrs:{\"vio-reporter-prev-button\":\"\",\"icon-left\":\"chevron-left\",\"size\":\"is-medium\",\"recurring-event-adder-prev-step\":\"\"},on:{\"click\":_vm.prevStep}}),_c('b-button',{attrs:{\"vio-reporter-next-button\":\"\",\"icon-left\":\"chevron-right\",\"size\":\"is-medium\",\"recurring-event-adder-next-step\":\"\"},on:{\"click\":_vm.nextStep}})],1):_vm._e(),_c('div',[_c('span',{staticClass:\"pl-2\"},[(_vm.mode === 'update')?_c('b-button',{attrs:{\"type\":\"is-danger\"},on:{\"click\":_vm.openConfirmErase}},[_vm._v(\"Delete\")]):_vm._e()],1),_c('span',{style:({ padding: '0 30px' })}),_c('span',{staticClass:\"pl-2\"},[(_vm.mode === 'update')?_c('b-button',{attrs:{\"type\":\"is-primary\",\"disabled\":_vm.updatePrevented},on:{\"click\":_vm.update}},[_vm._v(\"Update\")]):_vm._e()],1),_c('span',{staticClass:\"pl-2\"},[(_vm.mode === 'view')?_c('b-button',{staticClass:\"float-left\",attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){return _vm.setUpdate()}}},[_vm._v(\"Edit\")]):_vm._e()],1)]),(_vm.mode === 'add')?_c('b-button',{attrs:{\"type\":\"is-primary\",\"disabled\":_vm.addPrevented,\"recurring-event-adder-add\":\"\"},on:{\"click\":_vm.add}},[_vm._v(\"Add\")]):_vm._e()],1)]},proxy:true}])},[(_vm.mode === 'delete')?_c('div',{style:({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n padding: '100px 0'\n })},[_c('div',{style:({\n maxWidth: '400px'\n })},[_vm._v(\" To confirm deletion of event \"+_vm._s(this.json.title)+\", please press \\\"Delete\\\". \")]),_c('div',{style:({ paddingTop: '40px' })},[_c('b-button',{attrs:{\"type\":\"is-danger\"},on:{\"click\":_vm.eraseEvent}},[_vm._v(\"Delete\")])],1)]):_vm._e(),(_vm.mode === 'view')?_c('div',[_c('div',[_c('div',[_vm._v(_vm._s((\"Description: \" + _vm.description)))]),(_vm.url)?_c('div',[_vm._v(\" \"+_vm._s(\"URL:\")+\" \"),_c('a',{attrs:{\"href\":(\"http://\" + _vm.url),\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.url))])]):_vm._e()])]):_vm._e(),(_vm.mode !== 'delete' && _vm.mode !== 'view')?_c('b-steps',{attrs:{\"size\":\"is-small\",\"has-navigation\":false},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},[_c('b-step-item',{attrs:{\"label\":\"Details\",\"details-tab\":\"\"}},[_c('b-field',{attrs:{\"label\":\"Title\"}},[_c('b-input',{attrs:{\"recurring-event-title\":\"\"},model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}})],1),_c('b-field',{attrs:{\"label\":\"Description\"}},[_c('b-input',{attrs:{\"type\":\"textarea\",\"recurring-event-description\":\"\"},model:{value:(_vm.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}})],1),_c('b-field',{attrs:{\"label\":\"URL\"}},[_c('b-input',{attrs:{\"recurring-event-url\":\"\"},model:{value:(_vm.url),callback:function ($$v) {_vm.url=$$v},expression:\"url\"}})],1)],1),_c('b-step-item',{attrs:{\"label\":\"Pattern\"}},[_c('h4',[_vm._v(\"The event occurs while\")]),_c('VariableRanges',{ref:\"variableRanges\",attrs:{\"presets\":_vm.variableRangesPresets}})],1),_c('b-step-item',{attrs:{\"label\":\"Filter\"}},[_c('h4',[_vm._v(\"The event occurs\")]),_c('div',{style:({ display: 'flex' })},[_c('b-field',{style:({ margin: 0, width: '300px' })},[_c('h4',[_vm._v(\"after (required)\")])]),_c('DatePicker',{ref:\"datePickerAfter\",attrs:{\"date-picker-after\":\"\"}})],1),_c('div',{style:({ display: 'flex', marginTop: '12px' })},[_c('b-field',{style:({ margin: 0, width: '300px' })},[_c('b-checkbox',{model:{value:(_vm.beforeTimeSelected),callback:function ($$v) {_vm.beforeTimeSelected=$$v},expression:\"beforeTimeSelected\"}},[_c('h4',[_vm._v(\"before (optional)\")])])],1),_c('DatePicker',{ref:\"datePickerBefore\",attrs:{\"date-picker-before\":\"\"}})],1)]),_c('b-step-item',{attrs:{\"label\":\"Confirm\"}},[_c('Confirmation',{attrs:{\"confirmationData\":_vm.confirmationData}})],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h4',[_vm._v(\"The event occurs while these conditions are met\")]),_c('div',_vm._l((_vm.conditions),function(condition,index){return _c('div',{key:index},[_vm._v(_vm._s(condition))])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n\timport { orList } from '@/utilities/String/orList'\r\n*/\r\n\r\nexport function orList(arr) {\r\n const len = arr.length\r\n\r\n let result = ''\r\n\r\n if (len === 1) {\r\n result += ' ' + arr[0]\r\n } else if (arr.length === 2) {\r\n result += ' either'\r\n result += ' ' + arr[0] + ' or ' + arr[1]\r\n } else {\r\n result += ' either'\r\n for (let a = 0; a <= len - 2; a++) {\r\n result += ' ' + arr[a] + ','\r\n }\r\n result += ' or ' + arr[len - 1]\r\n }\r\n\r\n return result\r\n}\r\n","/*\r\n\timport { recurringEventConditions } from '@/utilities/events/recurringEventConditions'\r\n\r\n const { conditions } = recurringEventConditions ({\r\n recurrenceDefinition\r\n })\r\n*/\r\n\r\nimport { addSuffix } from '@/utilities/Date/addSuffix'\r\nimport { orList } from '@/utilities/String/orList'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport _get from 'lodash/get'\r\n\r\nexport function recurringEventConditions({ recurrenceDefinition }) {\r\n const month = _get(recurrenceDefinition, 'month', [])\r\n const monthInclusiveBetween = _get(recurrenceDefinition, 'monthInclusiveBetween', [])\r\n const dayOfMonth = _get(recurrenceDefinition, 'dayOfMonth', [])\r\n const dayOfMonthInclusiveBetween = _get(recurrenceDefinition, 'dayOfMonthInclusiveBetween', [])\r\n const dayOfWeek = _get(recurrenceDefinition, 'dayOfWeek', [])\r\n\r\n const startTime = _get(recurrenceDefinition, 'startTime', null)\r\n const durationMinutes = _get(recurrenceDefinition, 'durationMinutes', null)\r\n\r\n const startDate = _get(recurrenceDefinition, 'startDate', null)\r\n const endDate = _get(recurrenceDefinition, 'endDate', null)\r\n\r\n const conditions = []\r\n\r\n /*****************************************************\r\n\t\t\tBox 1\r\n\t\t*/\r\n if (Array.isArray(month) && month.length >= 1) {\r\n conditions.push(`The month is` + orList(month))\r\n }\r\n if (Array.isArray(monthInclusiveBetween) && monthInclusiveBetween.length == 2) {\r\n /*\r\n\t\t\t\tThe date is between January 1st and February 8th\r\n\t\t\t*/\r\n try {\r\n const from = monthInclusiveBetween[0].split('-')\r\n const to = monthInclusiveBetween[1].split('-')\r\n\r\n const fromDayOfMonth = parseInt(from[1])\r\n const toDayOfMonth = parseInt(to[1])\r\n\r\n const str =\r\n 'The date is between ' +\r\n from[0] +\r\n ' ' +\r\n addSuffix(fromDayOfMonth) +\r\n ' to ' +\r\n to[0] +\r\n ' ' +\r\n addSuffix(toDayOfMonth)\r\n\r\n conditions.push(str)\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n }\r\n //*********************************************************\r\n\r\n /*****************************************************\r\n\t\t\tBox 2\r\n\t\t*/\r\n if (Array.isArray(dayOfMonth) && dayOfMonth.length >= 1) {\r\n conditions.push(`The day of the month is ` + orList(dayOfMonth))\r\n }\r\n if (Array.isArray(dayOfMonthInclusiveBetween) && dayOfMonthInclusiveBetween.length >= 1) {\r\n let from = dayOfMonthInclusiveBetween[0]\r\n let to = dayOfMonthInclusiveBetween[1]\r\n\r\n if (from[0] === '0') {\r\n from = from[1]\r\n }\r\n if (to[0] === '0') {\r\n to = to[1]\r\n }\r\n\r\n conditions.push(`The day of the month is between the ${addSuffix(from)} and ${addSuffix(to)}`)\r\n }\r\n //*********************************************************\r\n\r\n /*****************************************************\r\n\t\t\tBox 3\r\n\t\t*/\r\n if (Array.isArray(dayOfWeek) && dayOfWeek.length >= 1) {\r\n const _dayOfWeek = dayOfWeek.map(entry => {\r\n if (entry.indexOf('-') >= 1) {\r\n const split = entry.split('-')\r\n\r\n return addSuffix(split[1]) + ' ' + split[0]\r\n }\r\n\r\n return entry\r\n })\r\n\r\n conditions.push(`The day of the week is ` + orList(_dayOfWeek))\r\n }\r\n //*********************************************************\r\n\r\n /*****************************************************\r\n\t\t\tBox 4\r\n\t\t*/\r\n if (typeof startTime === 'string' && startTime.length === 8) {\r\n conditions.push(\r\n `The time is between ` + startTime + ` and before ` + durationMinutes + ` minutes after that`\r\n )\r\n }\r\n //*********************************************************\r\n\r\n /**********************************************************\r\n\t\t\tFilters\r\n\t\t*/\r\n //*********************************************************\r\n conditions.push(`The date is after ` + startDate)\r\n\r\n if (typeof endDate === 'string' && endDate.length >= 1) {\r\n conditions.push(`The date is before ` + endDate)\r\n }\r\n\r\n return {\r\n conditions\r\n }\r\n}\r\n\r\nexport function recurrenceTimeSpan({ event }) {\r\n const dateFormat = 'LL hh:mm a'\r\n\r\n const conditions = []\r\n\r\n const eventStartDate = parseDate(_get(event, 'startDate', null), dateFormat)\r\n const eventEndDate = parseDate(_get(event, 'endDate', null), dateFormat)\r\n conditions.push(`The event is scheduled for ${eventStartDate} to ${eventEndDate}`)\r\n\r\n return {\r\n conditions\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\n\r\nimport { recurringEventConditions } from '@/utilities/events/recurringEventConditions'\r\n\r\nexport const watch = {\r\n /*\r\n\t\tThe event occurs while these conditions are met:\r\n\r\n\t\t\t{\r\n\t\t\t\t\"communityCalendarRecurringEventID\": 0,\r\n\t\t\t\t\"hoaID\": 15,\r\n\t\t\t\t\"recurrenceJSON\": \"\",\r\n\r\n\t\t\t\t\"title\": \"Test Event 5\",\r\n\t\t\t\t\"description\": \"Test event description\",\r\n\t\t\t\t\"url\": \"\",\r\n\r\n\t\t\t\t\"createdDate\": \"2022-02-11T04:58:05.116Z\",\r\n\t\t\t\t\"modifiedDate\": \"2022-02-11T04:58:05.116Z\",\r\n\r\n\t\t\t\t\"recurrenceDefinition\": {\r\n\t month: [],\r\n\t \t// month: [ \"January\", \"February\" ]\r\n\r\n\t monthInclusiveBetween: [],\r\n\t \t// monthInclusiveBetween: [ \"January-01\", \"February-03\" ]\r\n\r\n\t\t\t\t\tdayOfMonth: [],\r\n\t\t\t\t\t\t// dayOfMonth: [ \"1\", \"4\", \"23\" ]\r\n\r\n\t\t\t\t\tdayOfMonthInclusiveBetween: [],\r\n\t\t\t\t\t\t// \r\n\r\n\t\t\t\t\tdayOfWeek: [ 'Tuesday' ],\r\n\r\n\r\n\t startTime: null,\r\n\t durationMinutes: null,\r\n\r\n\r\n\t startDate: '2022-01-01',\r\n\t endDate: null\r\n\t }\r\n\t\t\t}\r\n\r\n\t*/\r\n confirmationData({ json }) {\r\n const recurrenceDefinition = _get(json, 'recurrenceDefinition', {})\r\n const { conditions } = recurringEventConditions({\r\n recurrenceDefinition\r\n })\r\n\r\n this.conditions = conditions\r\n }\r\n}\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a6fbbf08&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('main',[_c('section',{staticClass:\"card\",style:({\n padding: '12px',\n marginBottom: '12px',\n overflow: 'visible',\n border: _vm.checked.month ? (\"3px solid \" + (_vm.color[0])) : '3px solid transparent'\n })},[_c('div',{style:({ display: 'flex', alignItems: 'center', justifyContent: 'space-between' })},[_c('b-field',{style:({ margin: 0 })},[_c('b-checkbox',{attrs:{\"month-check-box\":\"\"},model:{value:(_vm.checked.month),callback:function ($$v) {_vm.$set(_vm.checked, \"month\", $$v)},expression:\"checked.month\"}},[_vm._v(\"the month\")]),_c('b-select',{attrs:{\"month-design-select\":\"\"},model:{value:(_vm.month.optionSelected),callback:function ($$v) {_vm.$set(_vm.month, \"optionSelected\", $$v)},expression:\"month.optionSelected\"}},_vm._l((_vm.month.options),function(option){return _c('option',{key:option[1],domProps:{\"value\":option[0]}},[_vm._v(\" \"+_vm._s(option[1])+\" \")])}),0)],1)],1),_c('div',{style:({\n position: 'relative',\n padding: '20px 0 40px 40px'\n })},[(_vm.month.optionSelected === 1)?_c('div',{style:({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n }),attrs:{\"month-selector-container\":\"\"}},[_c('b-taginput',{style:({\n float: 'right'\n }),attrs:{\"autocomplete\":\"\",\"months-selected\":\"\",\"data\":_vm.filteredMonths,\"open-on-focus\":true,\"allow-new\":false,\"placeholder\":\"month(s) chooser\",\"type\":\"is-primary\"},on:{\"typing\":_vm.getFilteredMonths},model:{value:(_vm.monthsSelected),callback:function ($$v) {_vm.monthsSelected=$$v},expression:\"monthsSelected\"}})],1):_vm._e(),(_vm.month.optionSelected === 2)?_c('div',{style:({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n }),attrs:{\"month-range-selector-container\":\"\"}},[_c('div',{style:({ display: 'flex' }),attrs:{\"from-location\":\"\"}},[_c('MonthAndDay',{ref:\"monthAndDay1\",attrs:{\"monthAndDay\":_vm.monthInclusiveBetween[0]}})],1),_c('span',{style:({ width: '12px' })}),_c('div',{style:({ display: 'flex' }),attrs:{\"to-location\":\"\"}},[_c('MonthAndDay',{ref:\"monthAndDay2\",attrs:{\"monthAndDay\":_vm.monthInclusiveBetween[1]}})],1)]):_vm._e(),(!_vm.checked.month)?_c('div',{style:({\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n opacity: 0.8,\n background: '#fff'\n })}):_vm._e()])]),_c('section',{staticClass:\"card\",style:({\n padding: '12px',\n marginBottom: '12px',\n overflow: 'visible',\n border: _vm.checked.dayOfMonth ? (\"3px solid \" + (_vm.color[0])) : '3px solid transparent'\n })},[_c('div',{style:({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n })},[_c('b-field',{style:({ margin: 0 })},[_c('b-checkbox',{attrs:{\"day-of-month-check-box\":\"\"},model:{value:(_vm.checked.dayOfMonth),callback:function ($$v) {_vm.$set(_vm.checked, \"dayOfMonth\", $$v)},expression:\"checked.dayOfMonth\"}},[_vm._v(\"the day of the month\")]),_c('b-select',{model:{value:(_vm.dayOfMonth.optionSelected),callback:function ($$v) {_vm.$set(_vm.dayOfMonth, \"optionSelected\", $$v)},expression:\"dayOfMonth.optionSelected\"}},_vm._l((_vm.dayOfMonth.options),function(option){return _c('option',{key:option[1],domProps:{\"value\":option[0]}},[_vm._v(\" \"+_vm._s(option[1])+\" \")])}),0)],1)],1),_c('div',{style:({\n position: 'relative',\n padding: '20px 0 20px 40px'\n })},[(_vm.dayOfMonth.optionSelected === 1)?_c('div',{style:({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n })},[_c('b-taginput',{style:({\n float: 'right'\n }),attrs:{\"autocomplete\":\"\",\"data\":_vm.filteredDaysOfMonth,\"open-on-focus\":true,\"allow-new\":false,\"placeholder\":\"Day(s) of month chooser\",\"type\":\"is-primary\"},on:{\"typing\":_vm.getFilteredDaysOfTheMonth},model:{value:(_vm.daysOfMonthSelected),callback:function ($$v) {_vm.daysOfMonthSelected=$$v},expression:\"daysOfMonthSelected\"}})],1):_vm._e(),(_vm.dayOfMonth.optionSelected === 2)?_c('div',{style:({\n display: 'flex',\n alignItems: 'center'\n })},[_c('DayOfMonth',{ref:\"dayOfMonth1\",attrs:{\"includeLast\":true,\"value\":_vm.dayOfMonth1Value}}),_c('span',{style:({ padding: '0 6px' })},[_vm._v(\"and the\")]),_c('DayOfMonth',{ref:\"dayOfMonth2\",attrs:{\"includeLast\":true,\"value\":_vm.dayOfMonth2Value}})],1):_vm._e(),(!_vm.checked.dayOfMonth)?_c('div',{style:({\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n opacity: 0.8,\n background: '#fff'\n })}):_vm._e()])]),_c('section',{staticClass:\"card\",style:({\n padding: '12px',\n marginBottom: '12px',\n overflow: 'visible',\n border: _vm.checked.dayOfWeek ? (\"3px solid \" + (_vm.color[0])) : '3px solid transparent'\n })},[_c('div',{style:({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n })},[_c('b-field',{style:({ margin: 0 })},[_c('b-checkbox',{attrs:{\"day-of-week-check-box\":\"\"},model:{value:(_vm.checked.dayOfWeek),callback:function ($$v) {_vm.$set(_vm.checked, \"dayOfWeek\", $$v)},expression:\"checked.dayOfWeek\"}},[_vm._v(\"The day of the week is the\")])],1)],1),_c('div',{style:({\n paddingLeft: '40px'\n })},[_c('div',[_c('div',{style:({ display: 'flex', alignItems: 'center' })},[_c('OccasionOfDayOfWeek',{ref:\"occasionOfDayOfWeek\",attrs:{\"onChange\":_vm.onOccasionOfDayOfWeekChange}}),_c('DayOfWeek',{ref:\"dayOfWeek\",attrs:{\"onChange\":_vm.onDayOfWeekChange}}),_c('div',{style:({ padding: '0 12px' })},[_vm._v(\"of the month\")]),_c('b-button',{style:({ marginLeft: '12px' }),attrs:{\"type\":\"is-primary\"},on:{\"click\":_vm.addDayOfWeek}},[_vm._v(\"add\")])],1)]),_c('div',{style:({\n display: 'flex'\n })},_vm._l((_vm.daysOfWeekSelected),function(dayOfWeek,index){return _c('div',{key:index,style:({\n verticalAlign: 'center',\n margin: '4px'\n })},[_c('b-taglist',{attrs:{\"attached\":\"\"}},[(dayOfWeek.occasion !== 'Any')?_c('b-tag',{attrs:{\"type\":\"is-dark\"}},[_vm._v(_vm._s(dayOfWeek.occasion))]):_vm._e(),_c('b-tag',{attrs:{\"type\":\"is-primary\",\"closable\":\"\"},on:{\"close\":function($event){return _vm.eraseDayOfWeek({ dayOfWeek: dayOfWeek })}}},[_vm._v(_vm._s(dayOfWeek.dayOfWeek))])],1)],1)}),0)])]),_c('section',{staticClass:\"card\",style:({\n padding: '12px',\n marginBottom: '12px',\n overflow: 'visible',\n border: _vm.checked.time ? (\"3px solid \" + (_vm.color[0])) : '3px solid transparent'\n })},[_c('b-field',{style:({ margin: 0 })},[_c('b-checkbox',{attrs:{\"time-check-box\":\"\"},model:{value:(_vm.checked.time),callback:function ($$v) {_vm.$set(_vm.checked, \"time\", $$v)},expression:\"checked.time\"}},[_vm._v(\"The event starts at\")])],1),_c('b-field',{style:({\n margin: 0,\n opacity: _vm.checked.time ? 1 : 0.3,\n transition: 'opacity .3s'\n })},[_c('div',[_c('TimePicker',{ref:\"time\",model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:\"time\"}}),_c('div',{style:({ padding: '10px 0' })},[_vm._v(\"and lasts for\")]),_c('div',{style:({ display: 'flex' })},[_c('b-field',{attrs:{\"label\":\"Minutes\"}},[_c('b-input',{style:({ width: '100px' }),model:{value:(_vm.minutes),callback:function ($$v) {_vm.minutes=$$v},expression:\"minutes\"}})],1)],1)],1)])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import moment from 'moment'\r\nimport { months } from '@/utilities/Date/constantsMonths'\r\n\r\nexport function data() {\r\n return {\r\n json: {},\r\n\r\n year: moment().year(),\r\n //\r\n checked: {\r\n month: false,\r\n dayOfMonth: false,\r\n dayOfWeek: false,\r\n occasionOfDayOfWeek: false,\r\n time: false\r\n },\r\n\r\n color: {\r\n 0: 'purple'\r\n },\r\n\r\n month: {\r\n options: [\r\n [1, 'is (either)'],\r\n [2, '(and day) is on or between']\r\n ],\r\n optionSelected: 1\r\n },\r\n months,\r\n filteredMonths: months,\r\n monthsSelected: [],\r\n\r\n //\r\n //\r\n monthInclusiveBetween: [],\r\n\r\n //\r\n //\tdays of month\r\n //\r\n\r\n dayOfMonth: {\r\n options: [\r\n [1, 'is (either) the'],\r\n [2, 'is on or between the']\r\n ],\r\n optionSelected: 1\r\n },\r\n daysOfMonthSelected: [],\r\n filteredDaysOfMonth: this.getAllPossibleDaysOfMonth(),\r\n dayOfMonth1Value: '2nd',\r\n dayOfMonth2Value: '3rd',\r\n\r\n //\r\n //\r\n //\r\n\r\n weeksOfYearSelected: [],\r\n filteredWeeksOfYear: this.getWeeksOfYear(),\r\n\r\n //\r\n //\r\n //\r\n\r\n dayOfWeek: {\r\n options: [\r\n [1, 'is on the'],\r\n [2, 'is']\r\n ],\r\n optionSelected: 1\r\n },\r\n daysOfWeekSelected: [],\r\n\r\n //\r\n //\r\n //\r\n\r\n time: '24:00:00', // start time\r\n minutes: 0, // duration\r\n\r\n //\r\n\r\n radio: {\r\n monthType: '1',\r\n dayOfMonthType: '1',\r\n dayOfWeekType: 'is'\r\n }\r\n }\r\n}\r\n","import { allDatesInMonth } from '@/utilities/Date/allDatesInMonth'\r\nimport { addSuffix } from '@/utilities/Date/addSuffix'\r\n\r\n/*\r\n\trecurrenceDefinition: {\r\n\t\tmonth: [],\r\n\t\tmonthInclusiveBetween: [],\r\n\t\t\r\n\t\tdayOfMonth: [],\r\n\t\t\r\n\t\tdayOfMonthInclusiveBetween: [],\r\n\t\tdayOfWeek: [ 'Tuesday' ],\r\n\r\n\t\tstartTime: null,\r\n\t\tdurationMinutes: null,\r\n\t\t\r\n\t\tstartDate: '2022-01-01',\r\n\t\tendDate: null\r\n\t}\r\n*/\r\n\r\nexport const methods = {\r\n getValues() {\r\n const checked = this.checked\r\n\r\n var results = {}\r\n if (checked.month) {\r\n if (this.month.optionSelected === 1) {\r\n const monthsSelected = this.monthsSelected\r\n results.month = monthsSelected\r\n } else if (this.month.optionSelected === 2) {\r\n const monthAndDay1 = this.$refs.monthAndDay1.getValues()\r\n const monthAndDay2 = this.$refs.monthAndDay2.getValues()\r\n\r\n results.monthInclusiveBetween = [\r\n monthAndDay1.month + '-' + monthAndDay1.dayOfMonth,\r\n monthAndDay2.month + '-' + monthAndDay2.dayOfMonth\r\n ]\r\n }\r\n }\r\n if (checked.dayOfMonth) {\r\n if (this.dayOfMonth.optionSelected === 1) {\r\n const daysOfMonthSelected = this.daysOfMonthSelected\r\n\r\n const dayOfMonth = []\r\n for (let a = 0; a < daysOfMonthSelected.length; a++) {\r\n if (daysOfMonthSelected[a].toLowerCase() === 'last') {\r\n dayOfMonth.push(daysOfMonthSelected[a])\r\n continue\r\n }\r\n\r\n dayOfMonth.push(daysOfMonthSelected[a].slice(0, -2))\r\n }\r\n\r\n results.dayOfMonth = dayOfMonth\r\n } else if (this.dayOfMonth.optionSelected === 2) {\r\n const dayOfMonth1 = this.$refs.dayOfMonth1.getValueWithoutSuffix()\r\n const dayOfMonth2 = this.$refs.dayOfMonth2.getValueWithoutSuffix()\r\n\r\n results.dayOfMonthInclusiveBetween = [dayOfMonth1, dayOfMonth2]\r\n }\r\n }\r\n if (checked.dayOfWeek) {\r\n const daysOfWeekSelected = this.daysOfWeekSelected\r\n\r\n const _dayOfWeek = []\r\n for (let a = 0; a < daysOfWeekSelected.length; a++) {\r\n const { dayOfWeek, occasion } = daysOfWeekSelected[a]\r\n\r\n let strand = dayOfWeek\r\n\r\n if (occasion !== 'Any') {\r\n strand += '-'\r\n strand += occasion.slice(0, -2)\r\n }\r\n\r\n _dayOfWeek.push(strand)\r\n }\r\n\r\n results.dayOfWeek = _dayOfWeek\r\n }\r\n if (checked.time) {\r\n const time = this.$refs.time.getValue()[24]\r\n const minutes = this.minutes\r\n\r\n results.startTime = time\r\n results.durationMinutes = parseInt(minutes)\r\n }\r\n\r\n this.recurrenceDefinition = results\r\n this.json = {\r\n recurrenceDefinition: results\r\n }\r\n\r\n return results\r\n },\r\n\r\n // for testing purposes\r\n /*\t\r\n\t\tsetValue ({ monthsSelected: [] })\r\n\t*/\r\n setValue(params) {\r\n for (const key in params) {\r\n this[key] = params[key]\r\n }\r\n },\r\n\r\n setValues({ recurringEvent }) {\r\n const { recurrenceDefinition } = recurringEvent\r\n const {\r\n // first box\r\n month,\r\n monthInclusiveBetween,\r\n\r\n // second box\r\n dayOfMonth,\r\n dayOfMonthInclusiveBetween,\r\n\r\n // third box\r\n dayOfWeek,\r\n\r\n // fourth box\r\n startTime,\r\n durationMinutes\r\n } = recurrenceDefinition\r\n\r\n this.checked.month = false\r\n this.checked.dayOfMonth = false\r\n this.checked.dayOfWeek = false\r\n this.checked.time = false\r\n\r\n // first box\r\n if (Array.isArray(month) && month.length >= 1) {\r\n this.checked.month = true\r\n this.month.optionSelected = 1\r\n this.monthsSelected = month\r\n }\r\n if (Array.isArray(monthInclusiveBetween) && monthInclusiveBetween.length >= 1) {\r\n this.checked.month = true\r\n this.month.optionSelected = 2\r\n this.monthInclusiveBetween = monthInclusiveBetween\r\n }\r\n\r\n // second box\r\n if (Array.isArray(dayOfMonth) && dayOfMonth.length >= 1) {\r\n this.checked.dayOfMonth = true\r\n this.dayOfMonth.optionSelected = 1\r\n\r\n this.daysOfMonthSelected = dayOfMonth.map(day => {\r\n return addSuffix(day)\r\n })\r\n }\r\n if (Array.isArray(dayOfMonthInclusiveBetween) && dayOfMonthInclusiveBetween.length >= 1) {\r\n this.checked.dayOfMonth = true\r\n this.dayOfMonth.optionSelected = 2\r\n\r\n this.dayOfMonth1Value = addSuffix(dayOfMonthInclusiveBetween[0])\r\n this.dayOfMonth2Value = addSuffix(dayOfMonthInclusiveBetween[1])\r\n }\r\n\r\n // third box\r\n if (Array.isArray(dayOfWeek) && dayOfWeek.length >= 1) {\r\n this.checked.dayOfWeek = true\r\n this.daysOfWeekSelected = dayOfWeek.map(entry => {\r\n if (entry.indexOf('-') === -1) {\r\n return {\r\n dayOfWeek: entry,\r\n occasion: 'Any'\r\n }\r\n }\r\n\r\n const split = entry.split('-')\r\n\r\n let occasion = split[1]\r\n if (occasion == 1) {\r\n occasion += 'st'\r\n } else if (occasion == 2) {\r\n occasion += 'nd'\r\n } else if (occasion == 3) {\r\n occasion += 'rd'\r\n } else if (occasion == 4) {\r\n occasion += 'th'\r\n } else if (occasion == 5) {\r\n occasion += 'th'\r\n }\r\n\r\n return {\r\n dayOfWeek: split[0],\r\n occasion\r\n }\r\n })\r\n }\r\n\r\n // fourth box\r\n if (typeof startTime === 'string' && startTime.length === 8) {\r\n this.checked.time = true\r\n //\r\n this.time = startTime\r\n this.minutes = durationMinutes\r\n //\r\n }\r\n },\r\n\r\n getFilteredMonths(text) {\r\n this.filteredMonths = this.months.filter(option => {\r\n if (option.toLowerCase().indexOf(text.toLowerCase()) >= 0) {\r\n return true\r\n }\r\n\r\n return false\r\n })\r\n },\r\n getFilteredDaysOfTheMonth(text) {\r\n this.filteredDaysOfMonth = this.getAllPossibleDaysOfMonth().filter(option => {\r\n if (option.toLowerCase().indexOf(text.toLowerCase()) >= 0) {\r\n return true\r\n }\r\n\r\n return false\r\n })\r\n\r\n return []\r\n },\r\n getFilteredWeeksOfYear(text) {\r\n this.filteredWeeksOfYear = this.getWeeksOfYear().filter(option => {\r\n if (option.toLowerCase().indexOf(text.toLowerCase()) >= 0) {\r\n return true\r\n }\r\n\r\n return false\r\n })\r\n\r\n return []\r\n },\r\n getAllPossibleDaysOfMonth() {\r\n const { dates } = allDatesInMonth({\r\n year: 2000,\r\n month: 1,\r\n suffix: true\r\n })\r\n\r\n return ['last', ...dates]\r\n },\r\n\r\n getWeeksOfYear() {\r\n const possibilities = ['odd', 'even']\r\n for (let a = 1; a <= 52; a++) {\r\n possibilities.push(a.toString())\r\n }\r\n\r\n return possibilities\r\n },\r\n addDayOfWeek() {\r\n const occasion = this.$refs.occasionOfDayOfWeek.getValue()\r\n const dayOfWeek = this.$refs.dayOfWeek.getValue()\r\n\r\n let added = false\r\n const list = this.daysOfWeekSelected\r\n for (let a = 0; a < list.length; a++) {\r\n const place = list[a]\r\n\r\n if (place.occasion === occasion && place.dayOfWeek === dayOfWeek) {\r\n added = true\r\n break\r\n }\r\n }\r\n\r\n if (!added) {\r\n this.daysOfWeekSelected.push({\r\n occasion,\r\n dayOfWeek\r\n })\r\n }\r\n },\r\n eraseDayOfWeek({ dayOfWeek }) {\r\n const daysOfWeekSelected = this.daysOfWeekSelected\r\n\r\n for (let a = 0; a < daysOfWeekSelected.length; a++) {\r\n const { occasion, dayOfWeek: _dayOfWeek } = daysOfWeekSelected[a]\r\n\r\n if (occasion === dayOfWeek.occasion && _dayOfWeek === dayOfWeek.dayOfWeek) {\r\n this.daysOfWeekSelected.splice(a, 1)\r\n break\r\n }\r\n }\r\n },\r\n\r\n //\r\n //\r\n //\r\n\r\n onMonthChange() {},\r\n onOccasionOfDayOfWeekChange() {},\r\n onDayOfWeekChange() {},\r\n\r\n sendChange() {\r\n const values = this.getValues()\r\n\r\n this.onChange(values)\r\n }\r\n}\r\n\r\n///\r\n","export const props = {\r\n onChange: {\r\n default() {},\r\n type: Function\r\n },\r\n includeTime: {\r\n default: true,\r\n type: Boolean\r\n },\r\n includeYear: {\r\n default: true,\r\n type: Boolean\r\n },\r\n includeTimeRange: {\r\n default: false,\r\n type: Boolean\r\n },\r\n presets: {}\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-select',{model:{value:(_vm.occasionSelection),callback:function ($$v) {_vm.occasionSelection=$$v},expression:\"occasionSelection\"}},_vm._l((_vm.occasions),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(\" \"+_vm._s(option)+\" \")])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=317200c4&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-select',{model:{value:(_vm.dayOfWeekSelection),callback:function ($$v) {_vm.dayOfWeekSelection=$$v},expression:\"dayOfWeekSelection\"}},_vm._l((_vm.daysOfWeek),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(\" \"+_vm._s(option)+\" \")])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n\timport { daysOfWeek } from '@/utilities/Date/constantsDaysOfWeek'\r\n*/\r\n\r\nexport const daysOfWeek = Object.freeze([\r\n 'Monday',\r\n 'Tuesday',\r\n 'Wednesday',\r\n 'Thursday',\r\n 'Friday',\r\n 'Saturday',\r\n 'Sunday'\r\n])\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=724c7e86&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","\r\n\r\n\r\n","import mod from \"-!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=1c67c2c8&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","export const presets = Object.freeze({\r\n variableRangesPresets: {},\r\n\r\n json: {\r\n recurrenceDefinition: {}\r\n },\r\n isOpen: false,\r\n loading: false,\r\n durationTypeSelection: 1,\r\n durationType: Object.freeze([\r\n [1, 'On'],\r\n [2, 'From ~ To']\r\n ]),\r\n title: '',\r\n description: '',\r\n url: '',\r\n year: 0,\r\n from: '',\r\n step: 0,\r\n beforeTimeSelected: false,\r\n addPrevented: true,\r\n updatePrevented: true,\r\n confirmationData: {},\r\n mode: 'add',\r\n dates: ''\r\n})\r\n","import { presets } from './presets'\r\nimport _cloneDeep from 'lodash/cloneDeep'\r\n\r\nexport function data() {\r\n const _presets = _cloneDeep(presets)\r\n\r\n const data = {}\r\n for (let key in _presets) {\r\n data[key] = _presets[key]\r\n }\r\n\r\n return data\r\n}\r\n","/*\r\n\timport { addRecurringEvent } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/Post';\r\n\r\n const { result, successful, message } = await addRecurringEvent ({\r\n json: {}\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function addRecurringEvent({ json }) {\r\n let message = 'The event could not be added.'\r\n\r\n try {\r\n const result = await kms.post(`/CalendarEvent/CommunityCalendarRecurringEvent`, json)\r\n\r\n return {\r\n successful: true,\r\n message,\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","/*\r\n\timport { eraseRecurringEvent } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/Delete';\r\n\r\n const { result, successful, message } = await eraseRecurringEvent ({\r\n communityCalendarRecurringEventID\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function eraseRecurringEvent({ communityCalendarRecurringEventID }) {\r\n let message = 'The community calendar event could not be erased.'\r\n\r\n try {\r\n const result = await kms.delete(\r\n `/CalendarEvent/CommunityCalendarRecurringEvent/${communityCalendarRecurringEventID}?forceDelete=true`\r\n )\r\n\r\n return {\r\n successful: true,\r\n message,\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","/*\r\n\timport { updateRecurringEvent } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/Put';\r\n\r\n const { result, successful, message } = await updateRecurringEvent ({\r\n json: {}\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function updateRecurringEvent({ json }) {\r\n let message = 'The event could not be updated successfully.'\r\n\r\n try {\r\n const result = await kms.put(`/CalendarEvent/CommunityCalendarRecurringEvent`, json)\r\n\r\n return {\r\n successful: true,\r\n message,\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","import { notifyMessage, notifyProblem } from '@/services/notify'\r\n\r\nimport { allDatesInMonth } from '@/utilities/Date/allDatesInMonth'\r\nimport moment from 'moment'\r\nimport { addRecurringEvent } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/Post'\r\n\r\nimport _get from 'lodash/get'\r\nimport _cloneDeep from 'lodash/cloneDeep'\r\n\r\nimport { calendarEventStore } from '@/services/CalendarEvent/store'\r\n\r\nimport { eraseRecurringEvent } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/Delete'\r\nimport { updateRecurringEvent } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/Put'\r\n\r\nimport { presets } from './presets'\r\n\r\nexport const methods = {\r\n setUpdate() {\r\n this.mode = 'update'\r\n },\r\n\r\n openUpdate({ event, recurringEvents, recurringEvent }) {\r\n this.reset()\r\n\r\n this.mode = 'view'\r\n this.original = _cloneDeep(event.event)\r\n this.recurringEvent = _cloneDeep(recurringEvent)\r\n\r\n const evt = event.event\r\n\r\n this.title = _get(evt, 'title', '')\r\n this.json.title = this.title\r\n\r\n this.description = _get(evt, 'description', '')\r\n this.json.description = this.description\r\n\r\n // filters\r\n const startDate = _get(evt, 'recurrenceDefinition.startDate', '')\r\n const endDate = _get(evt, 'recurrenceDefinition.endDate', '')\r\n const formattedDateStart = moment(startDate).format('LL hh:mm A')\r\n const recurrenceDefinition = _get(recurringEvent, 'recurrenceDefinition', {})\r\n const formattedDateEnd = endDate ? moment(endDate).format('LL hh:mm A') : `Recurring`\r\n this.dates = formattedDateStart + ' to ' + formattedDateEnd\r\n\r\n this.url = _get(evt, 'url', '')\r\n this.json.url = this.url\r\n\r\n this.json.communityCalendarRecurringEventID = recurringEvent.communityCalendarRecurringEventID\r\n\r\n // filters\r\n this.startDate = _get(recurrenceDefinition, 'startDate', '')\r\n this.endDate = _get(recurrenceDefinition, 'endDate', '')\r\n\r\n this.json.recurrenceDefinition = {}\r\n for (let key in recurrenceDefinition) {\r\n this.json.recurrenceDefinition[key] = recurringEvents[key]\r\n }\r\n\r\n this.isOpen = true\r\n this.loading = false\r\n },\r\n async update() {\r\n this.loading = true\r\n\r\n const json = _cloneDeep(this.json)\r\n\r\n json.RecurrenceJSON = ''\r\n json.hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const { successful, message } = await updateRecurringEvent({\r\n json\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n await calendarEventStore.commit('updateMain')\r\n\r\n this.isOpen = false\r\n this.loading = false\r\n },\r\n\r\n async openConfirmErase() {\r\n this.mode = 'delete'\r\n },\r\n\r\n async eraseEvent() {\r\n this.loading = true\r\n\r\n const { communityCalendarRecurringEventID, title } = this.json\r\n\r\n const { successful, message } = await eraseRecurringEvent({\r\n communityCalendarRecurringEventID\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n await calendarEventStore.commit('updateMain')\r\n\r\n notifyMessage(`Event \"${title}\" has been deleted.`)\r\n\r\n this.isOpen = false\r\n this.loading = false\r\n },\r\n\r\n onOnChange() {},\r\n\r\n open() {\r\n this.reset()\r\n\r\n this.isOpen = true\r\n this.loading = false\r\n },\r\n\r\n reset() {\r\n const _presets = _cloneDeep(presets)\r\n for (let key in _presets) {\r\n this[key] = _presets[key]\r\n }\r\n },\r\n\r\n async add() {\r\n this.loading = true\r\n\r\n this.json.recurrenceJSON = ''\r\n\r\n this.json.hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const { successful, message } = await addRecurringEvent({\r\n json: this.json\r\n })\r\n if (!successful) {\r\n console.error(message)\r\n return\r\n }\r\n\r\n await calendarEventStore.commit('updateMain')\r\n\r\n this.isOpen = false\r\n this.loading = false\r\n },\r\n\r\n getDaysOfMonth() {\r\n const m = moment()\r\n\r\n const month = m.month() + 1\r\n const year = m.year()\r\n\r\n const { dates } = allDatesInMonth({\r\n year,\r\n month,\r\n suffix: true\r\n })\r\n\r\n return dates\r\n },\r\n\r\n async checkStep({ forward }) {\r\n const step = this.step\r\n\r\n console.log({ step })\r\n\r\n if (step === 0) {\r\n this.loading = true\r\n\r\n const title = this.title\r\n const description = this.description\r\n const url = this.url\r\n\r\n if (typeof title !== 'string') {\r\n notifyProblem(`There was a problem while parsing the \"title\".`)\r\n\r\n return { proceed: false }\r\n }\r\n if (title.length === 0) {\r\n notifyProblem(`A \"title\" is required.`)\r\n\r\n return { proceed: false }\r\n }\r\n\r\n if (typeof description !== 'string') {\r\n notifyProblem(`There was a problem while parsing the \"description\".`)\r\n\r\n return { proceed: false }\r\n }\r\n if (description.length === 0) {\r\n notifyProblem(`A \"description\" is required.`)\r\n\r\n return { proceed: false }\r\n }\r\n\r\n this.json.title = title\r\n this.json.description = description\r\n this.json.url = url\r\n\r\n if (this.mode === 'update') {\r\n this.variableRangesPresets = this.recurrenceDefinition\r\n await this.$refs.variableRanges.setValues({\r\n recurringEvent: this.recurringEvent\r\n })\r\n }\r\n\r\n return { proceed: true }\r\n } else if (step === 1) {\r\n const startDate = this.startDate\r\n const endDate = this.endDate\r\n\r\n if (this.mode === 'update') {\r\n if (typeof startDate === 'string' && startDate.length >= 1) {\r\n this.$refs.datePickerAfter.setValue(startDate)\r\n }\r\n if (typeof endDate === 'string' && endDate.length >= 1) {\r\n this.$refs.datePickerBefore.setValue(endDate)\r\n this.beforeTimeSelected = true\r\n }\r\n }\r\n\r\n this.loading = true\r\n\r\n const variableRanges = this.$refs.variableRanges.getValues()\r\n\r\n /*\r\n\t\t\t\trecurrenceDefinition: {\r\n\t month: [],\r\n\t monthInclusiveBetween: [],\r\n\t dayOfMonth: [],\r\n\t dayOfMonthInclusiveBetween: [],\r\n\t dayOfWeek: [ 'Tuesday' ],\r\n\t startTime: null,\r\n\t durationMinutes: null,\r\n\t startDate: '2022-01-01',\r\n\t endDate: null\r\n\t }\r\n\t\t\t*/\r\n\r\n this.json.recurrenceDefinition = {}\r\n for (let key in variableRanges) {\r\n this.json.recurrenceDefinition[key] = variableRanges[key]\r\n }\r\n\r\n return { proceed: true }\r\n } else if (step === 2) {\r\n const datePickerAfter = this.$refs.datePickerAfter.getValue()\r\n\r\n const afterUTCFormat = _get(datePickerAfter, 'utcFormat', null)\r\n if (typeof afterUTCFormat !== 'string' || afterUTCFormat.length === 0) {\r\n notifyProblem('Choosing an after date is required.')\r\n return { proceed: false }\r\n }\r\n\r\n let after = ''\r\n try {\r\n after = datePickerAfter.utcFormat.split('T')[0]\r\n\r\n if (typeof after === 'string' && after.length >= 10) {\r\n this.json.recurrenceDefinition.startDate = after\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n const beforeTimeSelected = this.beforeTimeSelected\r\n\r\n let before = ''\r\n if (beforeTimeSelected) {\r\n const datePickerBefore = this.$refs.datePickerBefore.getValue()\r\n\r\n try {\r\n before = datePickerBefore.utcFormat.split('T')[0]\r\n\r\n if (typeof before === 'string' && before.length >= 10) {\r\n this.json.recurrenceDefinition.endDate = before\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n }\r\n\r\n return { proceed: true }\r\n } else if (step === 3) {\r\n if (forward === false) {\r\n return { proceed: true }\r\n }\r\n }\r\n\r\n return { proceed: false }\r\n },\r\n async nextStep() {\r\n const { proceed } = await this.checkStep({\r\n forward: true\r\n })\r\n\r\n this.loading = false\r\n\r\n if (proceed) {\r\n this.step++\r\n }\r\n\r\n if (this.step === 3) {\r\n console.trace('nextStep', {\r\n json: this.json\r\n })\r\n this.confirmationData = {\r\n json: this.json\r\n }\r\n\r\n this.addPrevented = false\r\n this.updatePrevented = false\r\n } else {\r\n this.addPrevented = true\r\n this.updatePrevented = true\r\n }\r\n },\r\n async prevStep() {\r\n const { proceed } = await this.checkStep({\r\n forward: false\r\n })\r\n\r\n this.loading = false\r\n\r\n this.addPrevented = true\r\n this.updatePrevented = true\r\n\r\n if (proceed) {\r\n this.step--\r\n }\r\n }\r\n}\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=ce03e710&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","export function data() {\r\n return {\r\n month: null,\r\n year: null,\r\n events: [],\r\n //\r\n isReady: false,\r\n //\r\n calendarProblem: ''\r\n }\r\n}\r\n","/*\r\n\timport { listEvents } from '@/services/CalendarEvent/CommunityCalendarEvent/List';\r\n\r\n const { list, successful, message } = await listEvents ({\r\n params: {\r\n\t\t\thoaID\r\n }\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\nimport _get from 'lodash/get'\r\n\r\nexport async function listEvents({ params }) {\r\n let message = 'The community calendar events list could not be retrieved.'\r\n\r\n try {\r\n const result = await kms.get(`/CalendarEvent/CommunityCalendarEvent/List`, {\r\n params\r\n })\r\n\r\n let list = _get(result, 'results', [])\r\n if (!Array.isArray(list)) {\r\n list = []\r\n }\r\n\r\n return {\r\n successful: true,\r\n message,\r\n list\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n list: []\r\n }\r\n}\r\n","/*\r\n\timport { listRecurringEvents } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/List';\r\n\r\n const { list, successful, message } = await listRecurringEvents ({\r\n params: {\r\n\t\t\thoaID\r\n }\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport _get from 'lodash/get'\r\nimport kms from '@/services/kms'\r\n\r\nexport async function listRecurringEvents({ params }) {\r\n let message = 'The community calendar recurring events list could not be retrieved.'\r\n\r\n try {\r\n const result = await kms.get(`/CalendarEvent/CommunityCalendarRecurringEvent/List`, {\r\n params\r\n })\r\n\r\n let list = _get(result, 'results', [])\r\n if (!Array.isArray(list)) {\r\n list = []\r\n }\r\n\r\n return {\r\n successful: true,\r\n message,\r\n list\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n list: []\r\n }\r\n}\r\n","/*\r\n\timport { getCalendarEvents } from '@/services/CalendarEvent/Calendaring/GetCalendarEvents';\r\n\r\n const { result, successful, message } = await getCalendarEvents ({\r\n params: {\r\n\t\t\thoaID,\r\n startDate,\r\n endDate,\r\n interval\r\n }\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function getCalendarEvents({ params }) {\r\n let message = 'The community calendar events list could not be retrieved.'\r\n\r\n let _params = '?'\r\n for (let key in params) {\r\n _params += key + '=' + params[key] + '&'\r\n }\r\n\r\n _params.slice(0, _params.length - 1)\r\n\r\n try {\r\n const result = await kms.post(`/CalendarEvent/Calendaring/GetCalendarEvents${_params}`)\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: {}\r\n }\r\n}\r\n","/*\r\n\timport { lastDayOfMonth } from '@/utilities/Date/lastDayOfMonth'\r\n\r\n\tconst { m, dayOfMonth } = lastDayOfMonth ({ year, month });\r\n\r\n\t// month (number): 1 to 12\r\n\t// year (number)\r\n*/\r\n\r\nimport moment from 'moment'\r\n\r\nexport function lastDayOfMonth({ year, month }) {\r\n const m = moment(new Date(year, month, 0, 23, 59, 59))\r\n\r\n return {\r\n m,\r\n dayOfMonth: m.date()\r\n }\r\n}\r\n","import { notifyProblem } from '@/services/notify'\r\n\r\nimport { listEvents } from '@/services/CalendarEvent/CommunityCalendarEvent/List'\r\nimport { listRecurringEvents } from '@/services/CalendarEvent/CommunityCalendarRecurringEvent/List'\r\nimport { getCalendarEvents } from '@/services/CalendarEvent/Calendaring/GetCalendarEvents'\r\nimport { lastDayOfMonth } from '@/utilities/Date/lastDayOfMonth'\r\n\r\nimport { monthNumerals } from '@/utilities/Date/constants'\r\n\r\nimport moment from 'moment'\r\nimport _get from 'lodash/get'\r\nimport _cloneDeep from 'lodash/cloneDeep'\r\nimport { getArray } from '@/utilities/get/Array'\r\nimport { getNumber } from '@/utilities/get/number'\r\n\r\nexport const methods = {\r\n ready({ month, year }) {\r\n this.isReady = true\r\n\r\n this.calendarUpdate({ month, year })\r\n },\r\n async calendarUpdate({ month, year }) {\r\n this.month = month\r\n this.year = year\r\n\r\n await this.refresh()\r\n },\r\n\r\n openEventsList() {\r\n // console.log ('openEventsList')\r\n },\r\n\r\n dayTapped() {},\r\n\r\n eventTapped({ event }) {\r\n const communityCalendarRecurringEventID = _get(\r\n event,\r\n ['communityCalendarRecurringEventID'],\r\n null\r\n )\r\n\r\n let isRecurring = false\r\n if (typeof communityCalendarRecurringEventID === 'number') {\r\n isRecurring = true\r\n }\r\n\r\n let recurringEvent = null\r\n const recurringEvents = this.recurringEvents\r\n for (let a = 0; a < recurringEvents.length; a++) {\r\n if (\r\n recurringEvents[a].communityCalendarRecurringEventID === communityCalendarRecurringEventID\r\n ) {\r\n recurringEvent = _cloneDeep(recurringEvents[a])\r\n }\r\n }\r\n\r\n if (isRecurring) {\r\n this.$refs.recurringEventAdder.openUpdate({\r\n event,\r\n recurringEvents: this.recurringEvents,\r\n recurringEvent\r\n })\r\n return\r\n }\r\n\r\n this.$refs.eventDetails.open({\r\n event\r\n })\r\n },\r\n\r\n openRecurringEventAdder() {\r\n this.$refs.recurringEventAdder.open()\r\n },\r\n openEventAdder() {\r\n this.$refs.eventAdder.open()\r\n },\r\n\r\n async parseEvents({ list }) {\r\n if (!Array.isArray(list)) {\r\n this.events = []\r\n return\r\n }\r\n\r\n const events = list.map(event => {\r\n const from = moment(event.startTime)\r\n .utcOffset(0, true)\r\n .toISOString()\r\n const to = moment(event.endTime)\r\n .utcOffset(0, true)\r\n .toISOString()\r\n\r\n return {\r\n startDate: from,\r\n endDate: to,\r\n //\r\n communityCalendarEventID: event.communityCalendarEventID,\r\n //\r\n name: event.title,\r\n description: event.description,\r\n url: event.url,\r\n //\r\n event\r\n }\r\n })\r\n\r\n return {\r\n events\r\n }\r\n },\r\n async parseRecurringEvents({ eventDates, recurringEventsKV }) {\r\n const eventsList = []\r\n for (let a = 0; a < eventDates.length; a++) {\r\n const { events } = eventDates[a]\r\n\r\n for (let b = 0; b < events.length; b++) {\r\n const event = events[b]\r\n eventsList.push(event)\r\n }\r\n }\r\n\r\n for (let a = 0; a < eventsList.length; a++) {\r\n const event = eventsList[a]\r\n const communityCalendarRecurringEventID = getNumber(\r\n event,\r\n 'communityCalendarRecurringEventID',\r\n -1\r\n )\r\n\r\n if (\r\n Object.prototype.hasOwnProperty.call(recurringEventsKV, communityCalendarRecurringEventID)\r\n ) {\r\n event.details = recurringEventsKV[communityCalendarRecurringEventID]\r\n } else {\r\n event.details = {}\r\n }\r\n }\r\n\r\n /*\r\n\t\t\tcommunityCalendarEventID: null\r\n\t\t\tcommunityCalendarRecurringEventID: 53\r\n\r\n\t\t\tdisplayEndTime: \"2022-03-14T23:59:59\"\r\n\t\t\tdisplayStartTime: \"2022-03-14T00:00:00\"\r\n\t\t\t\r\n\t\t\teventEndTime: \"2022-03-14T23:59:59\"\r\n\t\t\teventStartTime: \"2022-03-14T00:00:00\"\r\n\t\t\t\r\n\t\t\teventType: \"RecurringEvent\"\r\n\t\t*/\r\n const events = eventsList\r\n .filter(event => {\r\n if (_get(event, 'eventType', '') !== 'RecurringEvent') {\r\n return false\r\n }\r\n\r\n return true\r\n })\r\n .map(event => {\r\n const from = moment(event.displayStartTime)\r\n .utcOffset(0, true)\r\n .toISOString()\r\n const to = moment(event.displayEndTime)\r\n .utcOffset(0, true)\r\n .toISOString()\r\n const communityCalendarRecurringEventID = getNumber(\r\n event,\r\n 'communityCalendarRecurringEventID',\r\n -1\r\n )\r\n\r\n const name = _get(event, ['details', 'title'], '')\r\n const description = _get(event, ['details', 'description'], '')\r\n\r\n return {\r\n name,\r\n description,\r\n //\r\n communityCalendarRecurringEventID,\r\n //\r\n startDate: from,\r\n endDate: to,\r\n //\r\n event: _get(event, ['details'], {})\r\n }\r\n })\r\n\r\n return { events }\r\n },\r\n\r\n async getCalendarEvents({ hoaID, interval, startDate, endDate }) {\r\n const { result, successful, message } = await getCalendarEvents({\r\n params: {\r\n hoaID,\r\n interval,\r\n\r\n startDate,\r\n endDate\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n\r\n this.calendarProblem = `The events for the month and year selected could not be retrieved.`\r\n\r\n return {\r\n result: {}\r\n }\r\n }\r\n\r\n this.calendarProblem = ``\r\n\r\n return {\r\n result\r\n }\r\n },\r\n async getRecurringEvents() {\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const { list, successful, message } = await listRecurringEvents({\r\n params: {\r\n hoaID\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n const kv = {}\r\n\r\n if (Array.isArray(list) && list.length >= 1) {\r\n for (let a = 0; a < list.length; a++) {\r\n const details = list[a]\r\n const communityCalendarRecurringEventID = getNumber(\r\n details,\r\n 'communityCalendarRecurringEventID',\r\n -1\r\n )\r\n\r\n kv[communityCalendarRecurringEventID] = details\r\n }\r\n }\r\n\r\n return {\r\n recurringEvents: list,\r\n recurringEventsKV: kv\r\n }\r\n },\r\n\r\n //\r\n async refresh() {\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const { list, successful, message } = await listEvents({\r\n params: {\r\n hoaID\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n const month = monthNumerals[this.month]\r\n let year = Number.prototype.toString.call(this.year)\r\n const { dayOfMonth } = lastDayOfMonth({ year, month })\r\n\r\n let dayOfMonthStr = Number.prototype.toString.call(dayOfMonth)\r\n if (dayOfMonthStr.length === 1) {\r\n dayOfMonthStr = '0' + dayOfMonthStr\r\n }\r\n\r\n if (typeof this.year === 'number' && this.year >= 1 && [1, 2, 3].includes(year.length)) {\r\n if (year.length === 1) {\r\n year = '000' + year\r\n }\r\n if (year.length === 2) {\r\n year = '00' + year\r\n }\r\n if (year.length === 3) {\r\n year = '0' + year\r\n }\r\n }\r\n\r\n /*\r\n\t\t\tThis is necessary so as to get the details of the recurring event\r\n\t\t*/\r\n const { recurringEvents, recurringEventsKV } = await this.getRecurringEvents()\r\n const { result } = await this.getCalendarEvents({\r\n hoaID,\r\n interval: 'day',\r\n\r\n startDate: `${year}-${month}-01`,\r\n endDate: `${year}-${month}-${dayOfMonthStr}`\r\n })\r\n\r\n const eventDates = getArray(result, 'eventDates', [])\r\n\r\n const { events: rEvents } = await this.parseRecurringEvents({\r\n eventDates,\r\n recurringEventsKV\r\n })\r\n const { events } = await this.parseEvents({\r\n list\r\n })\r\n\r\n console.log({\r\n rEvents,\r\n events\r\n })\r\n\r\n this.recurringEvents = recurringEvents\r\n this.events = [...rEvents, ...events]\r\n }\r\n}\r\n","import { calendarEventStore } from '@/services/CalendarEvent/store'\r\n\r\nexport function mounted() {\r\n this.unsubCalendarEventStore = calendarEventStore.subscribe(mutation => {\r\n const mType = mutation.type\r\n\r\n if (mType === 'updateMain') {\r\n this.refresh()\r\n }\r\n })\r\n}\r\n","\r\n\r\n\r\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=7552d19c&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"time-picker--foundation\",style:({ display: 'flex', alignItems: 'center' })},[_c('b-select',{style:({ width: '100px' }),attrs:{\"hour-select\":\"\",\"placeholder\":\"hour\"},on:{\"input\":_vm.onChange},model:{value:(_vm.hour),callback:function ($$v) {_vm.hour=$$v},expression:\"hour\"}},_vm._l((_vm.hours),function(hour){return _c('option',{key:hour,domProps:{\"value\":hour}},[_vm._v(\" \"+_vm._s(hour)+\" \")])}),0),_c('b-select',{style:({ width: '120px' }),attrs:{\"minute-select\":\"\",\"placeholder\":\"minute\"},on:{\"input\":_vm.onChange},model:{value:(_vm.minute),callback:function ($$v) {_vm.minute=$$v},expression:\"minute\"}},_vm._l((_vm.minutes),function(minute){return _c('option',{key:minute,domProps:{\"value\":minute}},[_vm._v(\" \"+_vm._s(minute)+\" \")])}),0),_c('b-select',{style:({ width: '100px', marginLeft: '8px' }),attrs:{\"meridian-select\":\"\",\"placeholder\":\"meridian\"},on:{\"input\":_vm.onChange},model:{value:(_vm.meridian),callback:function ($$v) {_vm.meridian=$$v},expression:\"meridian\"}},_vm._l((_vm.meridians),function(meridian){return _c('option',{key:meridian,domProps:{\"value\":meridian}},[_vm._v(\" \"+_vm._s(meridian)+\" \")])}),0)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=41b8e565&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\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","/*\r\n\tGet days in month\r\n\t\tfor example: \r\n\t\t\tall saturdays in the november 5932?\r\n*/\r\n\r\n/*\r\n\timport { allDatesInMonth } from '@/utilities/Date/allDatesInMonth'\r\n\r\n allDatesInMonth ({\r\n year: 2022,\r\n month: 1\r\n }) \r\n*/\r\n\r\nimport { addSuffix } from '@/utilities/Date/addSuffix'\r\n\r\nimport moment from 'moment'\r\n\r\n/*\r\n\tyear: 2022 (UTC)\r\n\tmonth: 1 to 12\r\n\tdayOfWeek: 1 to 7\r\n*/\r\nexport function allDatesInMonth({ year, month, dayOfWeek = null, suffix = false }) {\r\n const totalDays = moment(`${year}-${month}`, 'YYYY-MM').daysInMonth()\r\n\r\n month = month - 1\r\n\r\n if (typeof dayOfWeek === 'number') {\r\n dayOfWeek = dayOfWeek - 1\r\n }\r\n\r\n const dates = []\r\n for (let a = 1; a <= totalDays; a++) {\r\n const date = new Date(year, month, a)\r\n const day = date.getDay()\r\n\r\n if (typeof dayOfWeek === 'number') {\r\n if (day === dayOfWeek) {\r\n dates.push(date)\r\n }\r\n } else {\r\n dates.push(date)\r\n }\r\n }\r\n\r\n if (suffix) {\r\n return {\r\n dates: dates.map(date => {\r\n const number = moment(date).date()\r\n\r\n return addSuffix(number)\r\n })\r\n }\r\n }\r\n\r\n return {\r\n dates\r\n }\r\n}\r\n"],"sourceRoot":""}