{"version":3,"sources":["webpack:///./src/mixins/calendarMixin.js","webpack:///./src/services/calendarService.js"],"names":["calendarMixin","mixins","translationMixin","data","calTranslations","methods","mapActions","$_getOrdinalDay","day","this","tcFirst","tcSecond","tcThird","tcFourth","tcLast","$_getDayOfWeek","item","weekdays","filter","x","value","parseInt","text","$_recurEveryXWeeksWithWeekDay","timeAmount","incomingDays","tcEvery","tcWeeks","daysOfWeek","Array","days","map","dayOfWeek","convertValForTranslation","join","trim","printDate","num","dateEpoch","Date","setUTCSeconds","Math","floor","options","year","month","weekday","toLocaleDateString","properStartEndTimes","startTime","endTime","pass","s_time_array","split","e_time_array","start_hour","end_hour","start_minute","substring","end_minute","start_ampm","end_ampm","e","console","error","combineStartEnd","startDate","endDate","timeString","indexOf","dateString","meetingExpression","recurrence","incomingTranslations","tcDay","tcDays","tcEveryDay","tcMonth","tcMonths","tcOnce","tcYears","vmrt_trn_txt","_weekdays","mtr_recurrence_specific_days_of_week","mtr_recurrence_day_of_week_or_month","mtr_recurrence_frequency","retMonthly","mtr_option","tempDay","mtr_recurrence_month_frequency","rtnYearly","mtr_recurrence_year_frequency","meetingFrequencyText","recurrenceTypeText","tcDailyMeeting","tcMonthlyMeeting","tcOnceMeeting","tcWeeklyMeeting","tcYearlyMeeting","formatForDatePicker","date","formattedDate","newDate","returnType","includes","parts","date_data","dow_abbr","mn","months","find","dm","abbrlow","stringDate","getFullYear","getMonth","getDate","toISOString","meetingDetails","color","mtg_start_date","getTime","description","location","distribution","distributionSelected","end","start_end_combine","mtg_start_date_time","mtg_end_date_time","mtg_end_date","eTime","mtg_mtt_key","meetings","stateconvention","mtg_end_time","eventname","mtg_title_month","mtg_title","hostname","id","mtg_key","label","adr_city","loc_adr_city","adr_line1","loc_adr_line1","adr_line2","loc_adr_line2","adr_line3","loc_adr_line3","adr_postal_code","loc_adr_postal_code","adr_state","loc_adr_state","org_name","locationVirtual","lvt_key","lvt_name","lvt_url","lvt_note","lvt_expiration_date","meetingtitle","mtt_description_text","meetingtype","mtgkey","mtg_coordinator_ind_key","mtg_location_org_key","mtg_mpt_key","mtrkey","mtg_mtr_key","reccurrencetype","meetingRec","scope","start","startdate","startendtime","mtg_start_time","sTime","title","vip_email","vip_formal_name","vip_phone","vmpt_trn_txt","mtg_distribution_placement_key","mtg_category_key","storePlacementKeyAndRedirect","plf_org_key","placement_meeting_types","destination","setSelectedLocationKey","setSelectedPlacementDateKey","$router","push","name","setSelectedVisitKey","result","calendarService","getMeetingSingle","mtg_host_org_key","officerToolbarSelected","camp","then","res","status","empty_guid","getMeetingRecurrence","getEvent","evt","clearSetAndGo","undefined","catch","clearSelectedEvent","setSelectedMeeting","computed","mapGetters","dd","org_key","start_date","end_date","axios","get","CALENDAR_API_CONFIG","getMeetings","request","getStateMeetings","mtr_key","mtg_user","meetingSoftDelete","event_type","getEventCalendarFormSettings","event_obj","post","AddNewEvent","AddNewStateEvent","country_key","getStates","upsertAddress","upsertVirtualLocation","meetingDeleteByRecurrence","meetingToBeSchedule","t_parent_org_key","lng_key","GetOrganisationHierarchy","delete_all","deleteStateMeeting","languageCode","campCalenderEventsDropdownList","URL","campCalendarEventTypesTranslations","axiosErrorHandler","endpoint","apiType","response"],"mappings":"04BAOO,IAAMA,EAAgB,CAC3BC,OAAQ,CAACC,QACTC,KAF2B,WAGzB,MAAO,CACLC,gBAAiB,KAGrBC,QAAS,EAAF,KACFC,eAAW,KADT,IAELC,gBAFO,SAESC,GACd,GAAIC,KAAKL,gBAAiB,OACiCK,KAAKL,gBAAtDM,EADgB,EAChBA,QAASC,EADO,EACPA,SAAUC,EADH,EACGA,QAASC,EADZ,EACYA,SAAUC,EADtB,EACsBA,OAC9C,MAAO,CAAC,GAAIJ,EAASC,EAAUC,EAASC,EAAUC,GAAQN,GAE5D,MAAO,CAAC,GAAI,QAAS,SAAU,QAAS,SAAU,QAAQA,IAE5DO,eATO,SASQC,GACb,OAAOP,KAAKQ,SAASC,QAAO,SAAAC,GAAC,OAAIA,EAAEC,QAAUC,S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xB,IAAMC,IAAIC,OAAoBuB,mBAAmBnB,EAASkB,IADpD,cACtBpB,EADsB,yBAEnBA,GAFmB,2C,wEA1IT3B,E,0FAoJqB,WAAMiD,GAAN,uGAClB1B,IAAMC,IAAIC,OAAoByB,+BAA+BD,IAD3C,cAClCtB,EADkC,yBAE/BA,GAF+B,2C,sEApJrB3B,E,iGA6J4B,WAAMiD,GAAN,gGACvCE,EAAM1B,OAAoB2B,mCAAmCH,GADtB,SAEtBI,eAAkB,CACvCC,SAAUH,EACVI,QAAS,QAJkC,cAEvCC,EAFuC,yBAMtCA,GANsC,2C","file":"js/chunk-7561007f.4f6798bc.js","sourcesContent":["/* eslint-disable */\nimport { mapActions, mapGetters } from 'vuex'\nimport calendarService from '@/services/calendarService'\nimport date_data from '@/json/date.json'\nimport { empty_guid, meetings, placement_meeting_types } from '@/json/data.json'\nimport { translationMixin } from '@/mixins/translationMixin'\n\nexport const calendarMixin = {\n mixins: [translationMixin],\n data() {\n return {\n calTranslations: {} // calendar translations, named to avoid naming collisions\n }\n },\n methods: {\n ...mapActions({}),\n $_getOrdinalDay(day) {\n if (this.calTranslations) {\n const { tcFirst, tcSecond, tcThird, tcFourth, tcLast } = this.calTranslations\n return ['', tcFirst, tcSecond, tcThird, tcFourth, tcLast][day]\n }\n return ['', 'First', 'Second', 'Third', 'Fourth', 'Last'][day]\n },\n $_getDayOfWeek(item) {\n return this.weekdays.filter(x => x.value === parseInt(item))[0].text\n },\n $_recurEveryXWeeksWithWeekDay(timeAmount, incomingDays) {\n // IE, (2, 'Monday') -or- (1, ['Saturday', 'Sunday'])\n const { tcEvery, tcWeeks } = this.calTranslations\n const daysOfWeek = incomingDays instanceof Array ? incomingDays : [incomingDays] // convert to array, if needed\n let days = daysOfWeek.map(day => {\n const dayOfWeek = this.convertValForTranslation(day)\n return this.calTranslations[dayOfWeek] ? this.calTranslations[dayOfWeek] : day\n })\n return `${tcEvery} ${timeAmount} ${tcWeeks} ${days.join(',')}`.trim() // `Every X week(s) Monday, Thursday`\n },\n printDate(num) {\n let dateEpoch = new Date(0)\n dateEpoch.setUTCSeconds(Math.floor(num / 1000))\n var options = {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n weekday: 'long'\n }\n return dateEpoch.toLocaleDateString('en-US', options)\n },\n properStartEndTimes(startTime, endTime) {\n let pass = true\n try {\n let s_time_array = startTime.split(':')\n let e_time_array = endTime.split(':')\n let start_hour = parseInt(s_time_array[0])\n let end_hour = parseInt(e_time_array[0])\n let start_minute = parseInt(s_time_array[1].substring(0, 2))\n let end_minute = parseInt(e_time_array[1].substring(0, 2))\n let start_ampm = s_time_array[1].substring(2)\n let end_ampm = e_time_array[1].substring(2)\n if (start_ampm === end_ampm) {\n pass =\n (startTime === endTime && startTime !== '12:00AM') ||\n start_hour < end_hour ||\n (start_hour === end_hour && start_minute < end_minute)\n } else {\n pass = start_ampm + end_ampm !== 'PMAM'\n }\n return pass\n } catch (e) {\n console.error(e)\n return false\n }\n },\n combineStartEnd(startDate, endDate) {\n let timeString = endDate.substring(endDate.indexOf('T') + 1)\n let dateString = startDate.substring(0, startDate.indexOf('T'))\n if (timeString == '00:00:00') {\n return dateString + 'T' + '00:30:00'\n } else {\n return dateString + 'T' + timeString\n }\n },\n meetingExpression(recurrence, incomingTranslations) {\n if (!recurrence || !incomingTranslations) return ''\n this.calTranslations = incomingTranslations\n const tcDay = this.calTranslations.tcDay // 'Day'\n const tcDays = this.calTranslations.tcDays // 'Days'\n const tcEvery = this.calTranslations.tcEvery // 'Every'\n const tcEveryDay = this.calTranslations.tcEveryDay // 'Every Day'\n const tcMonth = this.calTranslations.tcMonth // 'Month'\n const tcMonths = this.calTranslations.tcMonths // 'month(s)'\n const tcOnce = this.calTranslations.tcOnce // 'Once'\n const tcWeeks = this.calTranslations.tcWeeks // 'week(s)'\n const tcYears = this.calTranslations.tcYears // 'year(s)'\n\n switch (recurrence.vmrt_trn_txt) {\n case 'Weekly':\n let _weekdays = !!recurrence.mtr_recurrence_specific_days_of_week\n ? recurrence.mtr_recurrence_specific_days_of_week.split(',').map(item => {\n return this.$_getDayOfWeek(item)\n })\n : []\n return this.$_recurEveryXWeeksWithWeekDay(recurrence.mtr_recurrence_day_of_week_or_month, _weekdays)\n case 'Daily':\n if (recurrence.mtr_recurrence_frequency === 1) {\n return tcEveryDay\n } else {\n return `${tcEvery} ${recurrence.mtr_recurrence_frequency} ${tcDays}`\n }\n case 'Once':\n return tcOnce\n case 'Monthly':\n let retMonthly = ''\n\n if (recurrence.mtr_option === 'type_1') {\n retMonthly += `${tcDay} ${recurrence.mtr_recurrence_frequency} ` // 'Day 3'\n } else {\n retMonthly += `${this.$_getOrdinalDay(recurrence.mtr_recurrence_frequency)} ` // `Second`, `Third`, ...\n }\n if (!!recurrence.mtr_recurrence_day_of_week_or_month) {\n let dayOfWeek = this.$_getDayOfWeek(recurrence.mtr_recurrence_day_of_week_or_month) // 'Monday'\n const tempDay = this.convertValForTranslation(dayOfWeek) // 'tcMonday'\n dayOfWeek = this.calTranslations[tempDay] ? this.calTranslations[tempDay] : dayOfWeek\n retMonthly += ` ${dayOfWeek}`\n }\n retMonthly += ` - ${tcEvery} ${recurrence.mtr_recurrence_month_frequency} ${tcMonths}`\n return retMonthly\n case 'Yearly':\n let rtnYearly = ''\n rtnYearly += `${tcEvery} ${recurrence.mtr_recurrence_year_frequency} ${tcYears} `\n if (recurrence.mtr_option === 'type_1') {\n rtnYearly += `- ${tcMonth} ${recurrence.mtr_recurrence_month_frequency} `\n rtnYearly += `- ${tcDay} ${recurrence.mtr_recurrence_frequency} `\n } else {\n rtnYearly += `- ${tcEvery} ${recurrence.mtr_recurrence_month_frequency} ${tcMonths} `\n rtnYearly += `- ${tcEvery} ${recurrence.mtr_recurrence_frequency} ${tcWeeks} `\n }\n if (!!recurrence.mtr_recurrence_day_of_week_or_month) {\n rtnYearly += ` ${this.$_getDayOfWeek(recurrence.mtr_recurrence_day_of_week_or_month)}`\n }\n return rtnYearly\n }\n },\n meetingFrequencyText(recurrence, incomingTranslations) {\n this.calTranslations = incomingTranslations ? incomingTranslations : {}\n const recurrenceTypeText = !recurrence ? '' : recurrence.vmrt_trn_txt\n\n switch (recurrenceTypeText) {\n case 'Daily':\n return this.calTranslations.tcDailyMeeting\n case 'Monthly':\n return this.calTranslations.tcMonthlyMeeting\n case 'Once':\n return this.calTranslations.tcOnceMeeting\n case 'Weekly':\n return this.calTranslations.tcWeeklyMeeting\n case 'Yearly':\n return this.calTranslations.tcYearlyMeeting\n default:\n return ''\n }\n },\n formatForDatePicker(date, returnType = 'string') {\n if (!date) return false\n let formattedDate\n let newDate\n try {\n if (typeof date === 'string') {\n if (date.includes(' ') || date.includes('-')) {\n const parts = date.includes(' ') ? date.split(' ') : date.split('-')\n if (date_data.dow_abbr.includes(parts[0])) {\n const mn = parseInt(date_data.months.find(dm => dm.abbrlow === parts[1]).value, 10) - 1\n return new Date(parseInt(parts[3], 10), mn, parseInt(parts[2], 10), 1, 2, 3)\n } else {\n newDate = new Date(parseInt(parts[0], 10), parseInt(parts[1], 10) - 1, parseInt(parts[2], 10), 1, 2, 3)\n if (returnType === 'string') {\n let stringDate = `${newDate.getFullYear()}-${(newDate.getMonth() + 1 < 10 ? '0' : '') +\n (newDate.getMonth() + 1)}-${(newDate.getDate() < 10 ? '0' : '') + newDate.getDate()}`\n return stringDate\n }\n return newDate\n }\n } else {\n formattedDate = date.substring(0, 10)\n }\n } else {\n formattedDate = date.toISOString('en-US')\n }\n newDate = new Date(formattedDate.substring(0, 10) + 'T01:02:03')\n newDate = `${newDate.getFullYear()}-${(newDate.getMonth() + 1 < 10 ? '0' : '') +\n (newDate.getMonth() + 1)}-${(newDate.getDate() < 10 ? '0' : '') + newDate.getDate()}`\n } catch (error) {\n newDate = null\n console.error(error)\n }\n return newDate\n },\n meetingDetails(item) {\n return {\n color: item.color,\n date: new Date(item.mtg_start_date).getTime(),\n description: item.location,\n distribution: item.distribution,\n distributionSelected: [],\n end: !!item.start_end_combine\n ? this.combineStartEnd(item.mtg_start_date_time, item.mtg_end_date_time)\n : this.printDate(new Date(item.mtg_end_date).getTime()),\n eTime: item.mtg_mtt_key == meetings.stateconvention.value ? null : item.mtg_end_time,\n eventname:\n (item.mtg_title_month && (item.mtg_title_month.includes(' {\n if (res.status === 200) {\n result = res.data\n // If the meeting is recurring, retrieve the recurrence structure before\n // navigating to the event details.\n if (!!res.data.meetings[0].mtg_mtr_key && res.data.meetings[0].mtg_mtr_key !== empty_guid) {\n await calendarService.getMeetingRecurrence(res.data.meetings[0].mtg_mtr_key).then(res => {\n if (res.status === 200) {\n meetingRec = res.data\n events = this.getEvent(result, meetingRec).then(evt => {\n this.clearSetAndGo(evt[0])\n })\n }\n })\n } else {\n // Meeting is not recurring. No additional information is needed before\n // navigating to the event details.\n events = await this.getEvent(result, undefined).then(evt => {\n this.clearSetAndGo(evt[0])\n })\n }\n }\n })\n .catch(error => {\n console.error('error: ', error)\n })\n }\n },\n clearSetAndGo(evt) {\n this.clearSelectedEvent()\n this.setSelectedMeeting(evt)\n this.$router.push({ name: 'cal-event-detail' })\n return\n },\n async getEvent(result, meetingRec) {\n return result.meetings.map(item => {\n item.meetingRec = meetingRec\n item.color =\n item.vmpt_trn_txt === 'Gideon'\n ? 'card-Gideon'\n : item.vmpt_trn_txt === 'Auxiliary'\n ? 'card-Auxillary'\n : 'card-Both'\n return this.meetingDetails(item)\n })\n }\n },\n computed: {\n ...mapGetters({}),\n weekdays() {\n return date_data.days.map(dd => {\n return { value: dd.weekday, text: dd.text }\n })\n }\n }\n}\n","/* eslint-disable */\nimport axios from 'axios'\nimport axiosErrorHandler from './axiosErrorHandler.js'\nimport { CALENDAR_API_CONFIG } from '@/config/calendar.api.config'\n\nexport default class calendarService {\n /**\n * @param {[String]} org_key [organisation key]\n * @returns {[Object]}\n */\n static getMeetings = async (org_key, start_date = null, end_date = null) => {\n let request = await axios.get(CALENDAR_API_CONFIG.getMeetings(org_key, start_date, end_date))\n //logic can be added here\n return request\n }\n /**\n * @param {[String]} org_key [organisation key]\n * @returns {[Object]}\n */\n static getMeetingSingle = async (org_key, mtg_key) => {\n const request = await axios.get(CALENDAR_API_CONFIG.getMeetingSingle(org_key, mtg_key))\n //logic can be added here\n return request\n }\n\n /**\n * @param {[String]} org_key [organisation key]\n * @returns {[Object]}\n */\n static getStateMeetings = async (org_key, start_date = null, end_date = null) => {\n let request = await axios.get(CALENDAR_API_CONFIG.getStateMeetings(org_key, start_date, end_date))\n //logic can be added here\n return request\n }\n\n /**\n * @param {[String]} org_key [organisation key]\n * @returns {[Object]}\n */\n static getStateMeetings = async (org_key, start_date = null, end_date = null) => {\n let request = await axios.get(CALENDAR_API_CONFIG.getStateMeetings(org_key, start_date, end_date))\n //logic can be added here\n return request\n }\n\n /**\n * [getMeetingRecurrence]\n * @param {[String]} mtr_key [meeting recurrence key]\n * @returns {[Object]}\n */\n static getMeetingRecurrence = async mtr_key => {\n let request = await axios.get(CALENDAR_API_CONFIG.getMeetingRecurrence(mtr_key))\n //logic can be added here\n return request\n }\n /**\n * [meetingSoftDelete]\n * @param {[String]} mtg_key [meeting key]\n * @param {[String]} mtg_user [logon username]\n * @returns {[Object]}\n */\n static meetingSoftDelete = async (mtg_key, mtg_user) => {\n let request = await axios.get(CALENDAR_API_CONFIG.meetingSoftDelete(mtg_key, mtg_user))\n //logic can be added here\n return request\n }\n /**\n * [getEventCalenderFormSettings]\n * @param {[String]} org_key [organisation key]\n * @returns {[Array]}\n */\n static getEventCalenderFormSettings = async (org_key, event_type) => {\n let request = await axios.get(CALENDAR_API_CONFIG.getEventCalendarFormSettings(org_key, event_type))\n //logic can be added here\n return request\n }\n /**\n * [addNewEvent]\n * @param {[Object]} event_obj [event post parameters]\n * @returns {[Object]}\n */\n static addNewEvent = async event_obj => {\n let post = await axios.post(CALENDAR_API_CONFIG.AddNewEvent(), event_obj)\n return post\n }\n /**\n * [AddNewStateEvent]\n * @param {[Object]} event_obj [event post parameters]\n * @returns {[Object]}\n */\n static addNewStateEvent = async event_obj => {\n let post = await axios.post(CALENDAR_API_CONFIG.AddNewStateEvent(), event_obj)\n return post\n }\n /**\n * @returns {[Array]} [Arrays of states]\n *\n */\n static GetStates = async country_key => {\n let request = await axios.get(CALENDAR_API_CONFIG.getStates(country_key))\n return request\n }\n /**\n *\n * @param {[Object]} data [address object]\n */\n static UpsertAddress = async data => {\n let post = await axios.post(CALENDAR_API_CONFIG.upsertAddress(), data)\n return post\n }\n /**\n *\n * @param {[Object]} data [virtual location object]\n */\n static UpsertVirtualLocation = async data => {\n let post = await axios.post(CALENDAR_API_CONFIG.upsertVirtualLocation(), data)\n return post\n }\n\n static DeleteByRecurrence = async (mtr_key, mtg_user) => {\n let request = await axios.get(CALENDAR_API_CONFIG.meetingDeleteByRecurrence(mtr_key, mtg_user))\n return request\n }\n /**\n *\n * @param {[String]} org_key [Organisation key]\n */\n static MeetingToBeSchedule = async org_key => {\n let request = await axios.get(CALENDAR_API_CONFIG.meetingToBeSchedule(org_key))\n return request\n }\n /**\n * @param {[String]} t_parent_org_key [State key or IO Association Key]\n */\n static GetOrganisationHierarchy = async (t_parent_org_key, org_key, lng_key) => {\n let request = await axios.get(CALENDAR_API_CONFIG.GetOrganisationHierarchy(t_parent_org_key, org_key, lng_key))\n return request\n }\n\n /**\n *\n * @param {[String]} mtr_key [Meeting key]\n */\n static DeleteStateMeeting = async (mtr_key, delete_all) => {\n let request = await axios.get(CALENDAR_API_CONFIG.deleteStateMeeting(mtr_key, delete_all))\n return request\n }\n\n /**\n *\n * @param {[String]} languageCode [prefCulture]\n */\n\n static CampCalendarEventsDropdownList = async languageCode => {\n let request = await axios.get(CALENDAR_API_CONFIG.campCalenderEventsDropdownList(languageCode))\n return request\n }\n\n /**\n *\n * @param {[String]} languageCode [Language Code]\n */\n static getCampCalendarEventTypesTranslations = async languageCode => {\n const URL = CALENDAR_API_CONFIG.campCalendarEventTypesTranslations(languageCode)\n const response = await axiosErrorHandler({\n endpoint: URL,\n apiType: 'get'\n })\n return response\n }\n}\n"],"sourceRoot":""}