{"version":3,"sources":["webpack:///./src/utilities/get/number.js","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/index.vue?50cf","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/components/EventDetails/index.vue?b88b","webpack:///./src/utilities/Date/formatTimespan.js","webpack:///src/pages/Homeowner/communityCenter/tabs/calendar/components/EventDetails/index.vue","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/components/EventDetails/index.vue?c71c","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/components/EventDetails/index.vue","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/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/Homeowner/communityCenter/tabs/calendar/keys/methods.js","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/keys/computed.js","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/keys/watch.js","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/keys/mounted.js","webpack:///src/pages/Homeowner/communityCenter/tabs/calendar/index.vue","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/index.vue?5117","webpack:///./src/pages/Homeowner/communityCenter/tabs/calendar/index.vue","webpack:///./src/utilities/get/Array.js","webpack:///./src/utilities/Date/constants.js"],"names":["getNumber","a","b","c","variable","_get","x","console","error","NaN","render","_vm","this","_h","$createElement","_c","_self","ref","attrs","calendarUpdate","ready","dayTapped","eventTapped","events","calendarProblem","staticRenderFns","isOpen","loading","modalContent","minHeight","on","$event","scopedSlots","_u","key","fn","style","margin","_v","_s","event","name","proxy","staticClass","formatTimespan","startDate","endDate","description","startTime","endTime","time1","time2","moment","isValid","isSame","format","components","Modal","data","methods","open","component","month","year","isReady","listEvents","params","message","kms","get","result","list","Array","isArray","successful","listRecurringEvents","getCalendarEvents","_params","slice","length","post","lastDayOfMonth","m","Date","dayOfMonth","date","refresh","openEventsList","eventDetails","$refs","openRecurringEventAdder","recurringEventAdder","openEventAdder","eventAdder","parseEvents","map","from","utcOffset","toISOString","to","communityCalendarEventID","title","parseRecurringEvents","eventDates","recurringEventsKV","eventsList","push","communityCalendarRecurringEventID","Object","prototype","hasOwnProperty","call","details","filter","displayStartTime","displayEndTime","hoaID","interval","notifyProblem","getRecurringEvents","currentHoaId","recurringEvents","kv","Promise","all","resolve","monthNumerals","Number","toString","dayOfMonthStr","includes","getArray","rEvents","parsed","computed","mapGetters","watch","currentOwnerId","mounted","PageContentLayoutOnly","PleasantCalendar","EventDetails","wkDaysNums","freeze","1","2","3","4","5","6","7","monthNums","8","9","10","11","12","monthStrs","January","February","March","April","May","June","July","August","September","October","November","December"],"mappings":"4HAAA,2DAQO,SAASA,EAAUC,EAAGC,EAAGC,GAC9B,IACE,IAAMC,EAAWC,IAAKJ,EAAGC,EAAGC,GAC5B,GAAwB,kBAAbC,EACT,OAAOA,EAET,MAAOE,GACPC,QAAQC,MAAMF,GAGhB,OAAOG,M,2CClBT,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,wBAAwB,CAACA,EAAG,mBAAmB,CAACE,IAAI,WAAWC,MAAM,CAAC,2BAA2B,GAAG,WAAaP,EAAIQ,eAAe,MAAQR,EAAIS,MAAM,UAAYT,EAAIU,UAAU,YAAcV,EAAIW,YAAY,OAASX,EAAIY,OAAO,gBAAkBZ,EAAIa,mBAAmBT,EAAG,eAAe,CAACE,IAAI,kBAAkB,IACnZQ,EAAkB,GCDlB,EAAS,WAAa,IAAId,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACG,MAAM,CAAC,gBAAgB,GAAG,OAASP,EAAIe,OA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,WAAY,CACVmF,sBAAJ,OACIC,iBAAJ,OACIC,aAAJ,GAEEnF,KAAF,EACE4E,SAAF,EACE3E,QAAF,EACE6E,MAAF,EACEE,QAAF,GC3C2Y,ICOvY,EAAY,eACd,EACAhI,EACAe,GACA,EACA,KACA,KACA,MAIa,e,6CClBf,2DAQO,SAAS0G,EAASlI,EAAGC,EAAGC,GAC7B,IACE,IAAMC,EAAWC,IAAKJ,EAAGC,EAAGC,GAE5B,GAAIqE,MAAMC,QAAQrE,GAChB,OAAOA,EAET,MAAOE,GACPC,QAAQC,MAAMF,GAGhB,MAAO,K,0LCLIwI,EAAalC,OAAOmC,OAAO,CACtCC,EAAG,SACHC,EAAG,SACHC,EAAG,UACHC,EAAG,YACHC,EAAG,WACHC,EAAG,SACHC,EAAG,aAGQC,EAAY3C,OAAOmC,OAAO,CACrCC,EAAG,UACHC,EAAG,WACHC,EAAG,QACHC,EAAG,QACHC,EAAG,MACHC,EAAG,OACHC,EAAG,OACHE,EAAG,SACHC,EAAG,YACHC,GAAI,UACJC,GAAI,WACJC,GAAI,aAGO9B,EAAgBlB,OAAOmC,OAAO,CACzCC,EAAG,KACHC,EAAG,KACHC,EAAG,KACHC,EAAG,KACHC,EAAG,KACHC,EAAG,KACHC,EAAG,KACHE,EAAG,KACHC,EAAG,KACHC,GAAI,KACJC,GAAI,KACJC,GAAI,OAGOC,EAAYjD,OAAOmC,OAAO,CACrCe,QAAS,EACTC,SAAU,EACVC,MAAO,EACPC,MAAO,EACPC,IAAK,EACLC,KAAM,EACNC,KAAM,EACNC,OAAQ,EACRC,UAAW,EACXC,QAAS,GACTC,SAAU,GACVC,SAAU","file":"js/communityCenter.calendar.a451ae38.js","sourcesContent":["/*\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',[_c('PleasantCalendar',{ref:\"calendar\",attrs:{\"owner-community-calendar\":\"\",\"pageChange\":_vm.calendarUpdate,\"ready\":_vm.ready,\"dayTapped\":_vm.dayTapped,\"eventTapped\":_vm.eventTapped,\"events\":_vm.events,\"externalProblem\":_vm.calendarProblem}}),_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-details\":\"\",\"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 [_c('h4',{style:({ margin: '12px 0' })},[_vm._v(_vm._s(_vm.event.name))])]},proxy:true}])},[_c('div',[_c('div',{staticClass:\"has-text-weight-semibold pl-2\"},[_vm._v(\" \"+_vm._s(_vm.formatTimespan(_vm.event.startDate, _vm.event.endDate))+\" \")]),_c('div',{staticClass:\"pl-2 mt-4\"},[_vm._v(_vm._s(_vm.event.description))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n Example:\r\n import { formatTimespan } from '@/utilities/Date/formatTimespan'\r\n\r\n const timespanString = formatTimespan(startTime, endTime)\r\n\r\n startTime and endTime may be moment objects or parseable date/time strings\r\n*/\r\nimport moment from 'moment'\r\n\r\nexport const formatTimespan = (startTime, endTime) => {\r\n let time1 = startTime\r\n let time2 = endTime\r\n if (typeof time1 === 'string') {\r\n time1 = moment(time1)\r\n if (!time1.isValid()) return 'Invalid start time'\r\n }\r\n if (typeof time2 === 'string') {\r\n time2 = moment(time2)\r\n if (!time2.isValid()) return 'Invalid end time'\r\n }\r\n\r\n if (time1.isSame(time2, 'day')) {\r\n // Same-day format\r\n return time1.format('LL h:mm a') + ' to ' + time2.format('h:mm a')\r\n } else {\r\n return time1.format('LL h:mm a') + ' to ' + time2.format('LL h:mm a')\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=e9353806&\"\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 { 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.calendarUpdate({ month, year })\r\n\r\n this.isReady = true\r\n },\r\n async calendarUpdate({ month, year }) {\r\n this.month = month\r\n this.year = year\r\n\r\n if (this.isReady) {\r\n await this.refresh()\r\n }\r\n },\r\n\r\n openEventsList() {},\r\n dayTapped() {},\r\n\r\n eventTapped({ event }) {\r\n const eventDetails = this.$refs.eventDetails\r\n\r\n eventDetails.open({ event })\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 //\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 { list, successful, message } = await listRecurringEvents({\r\n params: {\r\n hoaID: this.currentHoaId\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return {\r\n recurringEvents: [],\r\n recurringEventsKV: {}\r\n }\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 var [a, b] = await Promise.all([\r\n new Promise(async resolve => {\r\n const { list, successful, message } = await listEvents({\r\n params: {\r\n hoaID: this.currentHoaId\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n resolve({ list, successful, message })\r\n }),\r\n new Promise(async resolve => {\r\n /*\r\n This is necessary so as to get the details of the recurring event\r\n */\r\n const { recurringEvents, recurringEventsKV } = await this.getRecurringEvents()\r\n\r\n resolve({ recurringEvents, recurringEventsKV })\r\n })\r\n ])\r\n\r\n const { list } = a\r\n const { recurringEvents, recurringEventsKV } = b\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 const { result } = await this.getCalendarEvents({\r\n hoaID: this.currentHoaId,\r\n interval: 'day',\r\n\r\n startDate: `${year}-${month}-01`,\r\n endDate: `${year}-${month}-${dayOfMonthStr}`\r\n })\r\n const eventDates = getArray(result, 'eventDates', [])\r\n\r\n var parsed = await Promise.all([\r\n new Promise(async resolve => {\r\n const { events: rEvents } = await this.parseRecurringEvents({\r\n eventDates,\r\n recurringEventsKV\r\n })\r\n\r\n resolve({ rEvents })\r\n }),\r\n new Promise(async resolve => {\r\n const { events } = await this.parseEvents({\r\n list\r\n })\r\n\r\n resolve({ events })\r\n })\r\n ])\r\n\r\n const rEvents = parsed[0].rEvents\r\n const events = parsed[1].events\r\n\r\n this.recurringEvents = recurringEvents\r\n this.events = [...rEvents, ...events]\r\n }\r\n}\r\n","import { mapGetters } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapGetters('user', ['currentHoaId', 'currentUnitId', 'currentOwnerId'])\r\n}\r\n","export const watch = {\r\n currentOwnerId() {\r\n this.refresh()\r\n },\r\n currentHoaId() {\r\n this.refresh()\r\n }\r\n}\r\n","export function mounted() {\r\n this.refresh()\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=94d13b00&\"\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 { wkDaysNums, monthNums, monthStrs, monthNumerals } from '@/utilities/Date/constants'\r\n*/\r\n\r\n/*\r\n\tconst dayOfWeek = wkDaysNums [ moment ().day () + 1 ];\r\n\r\n\t\tmoment.day () \r\n\t\t\t0 -> Sunday\r\n\t\t\t1 -> Monday\r\n\t\t\t...\r\n\t\t\t6 -> Saturday\r\n*/\r\n\r\nexport const wkDaysNums = Object.freeze({\r\n 1: 'Sunday',\r\n 2: 'Monday',\r\n 3: 'Tuesday',\r\n 4: 'Wednesday',\r\n 5: 'Thursday',\r\n 6: 'Friday',\r\n 7: 'Saturday'\r\n})\r\n\r\nexport const monthNums = Object.freeze({\r\n 1: 'January',\r\n 2: 'February',\r\n 3: 'March',\r\n 4: 'April',\r\n 5: 'May',\r\n 6: 'June',\r\n 7: 'July',\r\n 8: 'August',\r\n 9: 'September',\r\n 10: 'October',\r\n 11: 'November',\r\n 12: 'December'\r\n})\r\n\r\nexport const monthNumerals = Object.freeze({\r\n 1: '01',\r\n 2: '02',\r\n 3: '03',\r\n 4: '04',\r\n 5: '05',\r\n 6: '06',\r\n 7: '07',\r\n 8: '08',\r\n 9: '09',\r\n 10: '10',\r\n 11: '11',\r\n 12: '12'\r\n})\r\n\r\nexport const monthStrs = Object.freeze({\r\n January: 1,\r\n February: 2,\r\n March: 3,\r\n April: 4,\r\n May: 5,\r\n June: 6,\r\n July: 7,\r\n August: 8,\r\n September: 9,\r\n October: 10,\r\n November: 11,\r\n December: 12\r\n})\r\n"],"sourceRoot":""}