window.tec=window.tec||{},tec.classicEditorEvents=tec.classicEditorEvents||{},tec.classicEditorEvents.eventDate=tec.classicEditorEvents.eventDate||{},dayjs.extend(window.dayjs_plugin_isoWeek),dayjs.extend(window.dayjs_plugin_customParseFormat),function(t,e){"use strict";const n=t(document);e.selectors={eventStartDate:"#EventStartDate"},e.el={$eventStart:null},e.cardinalToOrdinalMap={1:"First",2:"Second",3:"Third",4:"Fourth",5:"Fifth"},e.isoWeekdayToDayNameMap={1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday",7:"Sunday"},e.eventStart={moment:null,prevMoment:null},e.getEventStartWeekdayName=function(){const t=e.eventStart.moment.isoWeekday();return e.isoWeekdayToDayNameMap[t]},e.getEventStartWeekdayOrdinalValue=function(){const t=e.eventStart.moment.date(),n=Math.floor((t-1)/7)+1;return e.cardinalToOrdinalMap[n]},e.isEventStartWeekdayLast=function(){return e.eventStart.moment.daysInMonth()-e.eventStart.moment.date()<7},e.isEventStartDateLastOfMonth=function(){return e.eventStart.moment.daysInMonth()===e.eventStart.moment.date()},e.didEventStartMonthChange=function(){return!!e.eventStart.prevMoment&&e.eventStart.moment.month()!==e.eventStart.prevMoment.month()},e.setCurrentEventDate=function(){e.el.eventStart||(e.el.$eventStart=n.find(e.selectors.eventStartDate)),e.eventStart.moment=dayjs(e.el.$eventStart.val(),window.tribe_events_pro_admin.recurrence.date_format)},e.setPreviousEventDate=function(){e.eventStart.prevMoment=e.eventStart.moment}}(jQuery,tec.classicEditorEvents.eventDate),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.customTablesV1=window.tec.eventsPro.customTablesV1||{},window.tec.eventsPro.customTablesV1.classicEditorEventsEventDate={};