{"version":3,"file":"discourse-calendar.js","names":["define","_exports","_rest","Object","defineProperty","value","default","extend","basePath","_string","_discoursePostEventAdapter","pathFor","store","type","findArgs","path","this","underscore","pluralize","apiNameFor","appendQueryParams","_discoursePostEventNestedAdapter","_ajax","destroyRecord","record","ajax","post_id","id","update","attrs","data","typeField","getPayload","then","json","Result","createRecord","_deprecationsHelper","_templateFactory","createTemplateFactory","block","moduleName","scope","isStrictMode","resource","map","route","_component","_object","_ajaxError","__COLOCATED_TEMPLATE__","setComponentTemplate","dt7948","p","tagName","classNameBindings","loading","isHolidayDisabled","disableHoliday","holiday","region_code","set","url","disabled_holiday","holiday_name","name","catch","popupAjaxError","finally","enableHoliday","action","_templateOnly","downloadSampleCsv","csv","forEach","row","join","btn","document","createElement","href","encodeURI","target","rel","download","click","_service","_uppyUpload","_decorators","_I18n","_thisFallbackHelper","_tryLookupHelper","_isComponent","dialog","inject","uploadUrl","i18nPrefix","autoStartUploads","validateUploadedFilesOptions","csvOnly","uploadButtonText","uploading","t","uploadButtonDisabled","processing","uploadDone","alert","_uppyReady","_uppyInstance","on","confirm","message","didConfirm","_startUpload","didCancel","_reset","_discourseI18n","_guessBestDateFormat","_component2","EventDate","static","g","prototype","siteSettings","i","shouldRender","discourse_post_event_enabled","args","topic","event_starts_at","eventStartedAt","_parsedDate","eventEndedAt","event_ends_at","dateRange","_formattedDate","localDateContent","relativeDateType","isWithinDateRange","isAfter","moment","isBefore","relativeDateContent","future","from","past","timeRemainingContent","duration","date1","utc","tz","guess","_guessedDateFormat","format","_i18n","_notEq","EventField","_tracking","_text","_group","_rawEventHelper","PostEventBuilder","tracked","flash","model","event","starts_at","timezone","startsAt","ends_at","endsAt","reminderTypes","reminderUnits","reminderPeriods","availableRecurrences","allowedCustomFields","discourse_post_event_allowed_custom_fields","split","filter","Boolean","addReminderDisabled","reminders","length","groupFinder","term","findAll","ignore_automatic","n","setCustomField","field","e","updateCustomField","onChangeDates","dates","to","onChangeStatus","newStatus","updateEventRawInvitees","updateEventStatus","setRawInvitees","_","newInvitees","setNewTimezone","newTz","updateTimezone","destroyPostEvent","yesNoConfirm","post","find","raw","newRaw","_removeRawEvent","props","edit_reason","cooked","cook","string","save","closeModal","extractError","createEvent","eventParams","buildParams","markdownParams","keys","key","push","toolbarEvent","addText","updateEvent","replaceRaw","eventRegex","RegExp","replace","_utils","_trackedBuiltIns","PostEventBulkInvite","TrackedArray","create","identifier","attendance","bulkInvites","bulkInviteDisabled","bulkInviteStatuses","label","setBulkInviteDisabled","x","isPresent","sendBulkInvites","dataType","contentType","JSON","stringify","invitees","success","removeBulkInvite","bulkInvite","removeObject","pushObject","addBulkInvite","updateInviteIdentifier","selected","updateBulkGroupInviteIdentifier","groupNames","PostEventInviteUserOrGroup","invitedNames","invite","invites","PostEventInvitees","isLoading","constructor","super","arguments","_fetchInvitees","title","toggleType","onFilterChanged","debounce","removeInvitee","invitee","_comboBox","_regions","pluginApiIdentifiers","classNames","allowNoneRegion","selectKitOptions","filterable","allowAny","content","computed","localeNames","regions","parse","available_locales","locale","concat","HOLIDAY_REGIONS","region","sort","a","b","localeCompare","_runloop","_rsvp","_loadScript","_category","_getUrl","_formatEventName","_calendarLocale","_popover","events","init","_super","_calendar","willDestroyElement","destroy","didInsertElement","_renderCalendar","addRecurrentEvents","upcoming_dates","upcomingDate","assign","site","calendarNode","getElementById","innerHTML","_loadCalendar","fullCalendar","window","FullCalendar","Calendar","getCurrentBcp47Locale","buttonText","getCalendarButtonsText","eventClick","destroyPopover","eventPositioned","info","events_max_rows","fcContent","el","querySelector","computedStyle","getComputedStyle","lineHeight","parseInt","maxHeight","style","fcTitle","overflow","whiteSpace","updateSize","eventMouseEnter","_ref","jsEvent","htmlContent","buildPopover","eventMouseLeave","tagsColorsMap","map_events_to_color","category_id","backgroundColor","tags","tagColorEntry","entry","includes","slug","color","categoryColorEntry","category_slug","categoryColor","findById","addEvent","formatEventName","start","end","allDay","isNotFullDayEvent","post_number","render","Promise","resolve","schedule","isDestroying","isDestroyed","_routing","_conditionalLoadingSpinner","_dButton","_or","DEFAULT_TIME_FORMAT","DEFAULT_MONTH_FORMAT","DEFAULT_DATE_FORMAT","UpcomingEventsList","appEvents","router","hasError","eventsByMonth","monthFormat","params","dateFormat","timeFormat","count","upcomingDays","emptyMessage","allDayLabel","errorMessage","viewAllLabel","updateEventsList","categoryId","events_calendar_categories","toString","currentRoute","attributes","category","hasEmptyResponse","events1","limit","before","add","toISOString","groupByMonthAndDay","formatMonth","month1","formatDate","day1","formatTime","starts_at1","ends_at1","data1","reduce","result1","item1","Date","year1","getFullYear","getMonth","getDate","monthKey1","LinkTo","context","calendar_enabled","users_on_holiday","user","username","setupComponent","component","holidayEmojiName","get","setProperties","holidayEmoji","emojiUrlFor","CategoryCalendar","_1","ctx1","calendar_categories_outlet","CategoryEventsCalendar","_eventDate","EventDateContainer","onChange","useCurrentRegion","TIME_ZONE_TO_REGION","_controller","selectedRegion","getHolidays","response","holidays","_helpers","htmlHelper","date","_template","_userAvatar","_url","_utilities","template","userPath","renderAvatar","imageSize","formatUsername","htmlSafe","_pluginApi","_postEventBuilder","_discoursePostEvent","initializeEventBuilder","api","currentUser","getCurrentUser","container","lookup","modal","addComposerToolbarPopupMenuOption","eventModel","status","custom_fields","show","rawInvitees","removeReminder","reminder","addReminder","changes","group","icon","condition","composer","can_create_discourse_post_event","composerModel","replyingToTopic","topicFirstPost","creatingPrivateMessage","editingPost","initialize","withPluginApi","sidebar_show_upcoming_events","addCommunitySectionLink","baseSectionLink","text","modifyClass","pluginId","sortable","disable_resorting_on_categories_enabled","disableSort","changeSort","_jquery","_iconLibrary","_colors","loadFullCalendar","initializeDiscourseCalendar","login_required","_topicController","enableTimezoneOffset","default_timezone_offset_user_option","outletName","isMobileView","mobileView","selector","$calendar","defaultTimezone","attr","zone","_getTimeZone","empty","calendar","timeZone","$calendarTitle","defaultView","escapeExpression","showAddToCalendar","timeZoneImpl","nextDayThreshold","displayEventEnd","height","firstDay","views","listNextYear","days","listDayFormat","month","year","day","weekday","header","left","center","right","eventOrder","_orderByTz","datesRender","_insertAddToCalendarLinks","innerText","view","enable_timezone_offset_for_calendar_events","timezoneOffset","extendedProps","segmentDuration","parentNode","colSpan","basePctOffset","basePxOffset","isStart","leftK","Math","abs","pctOffset","pxOffset","marginLeft","isEnd","rightK","marginRight","_setTimezoneOffset","_buildCalendar","isStatic","fullDay","html","trim","line","parseHTML","htmlDates","h","hasClass","_buildEventObject","_convertHtmlToDate","textContent","_setStaticCalendarEvents","_setDynamicCalendarEvents","skipWeekends","hiddenDays","setOption","d","_ref2","postNumber","postUrl","routeTo","send","_ref3","_setDynamicCalendarOptions","resetDynamicEvents","selectedTimezone","getOption","getEvents","remove","tzPicker","addEventListener","names","startsWith","appendChild","Option","_setupTimezonePicker","timezoneWrapper","timezoneButton","classList","iconHTML","blur","_setupTimezoneOffsetButton","offsetA","offsetB","time","dateTime","weeklyRecurring","hasTimeSpecified","hours","minutes","seconds","hasTime","startTime","daysOfWeek","_buildEvent","detail","recurring","post_url","_addStandaloneEvent","holidayCalendarTopicId","holiday_calendar_topic_id","topic_id","description","slice","stringToColor","colorToHex","textColor","contrastColor","popupText","_addGroupedEvent","calendarTz","groupedEventData","calendarUtcOffset","utcOffset","timezonesOffsets","splittedEvents","values","localEvents","users","userUtcOffset","Set","offset","filteredLocalEvents","eventTimezones","threshold","split_grouped_events_by_timezone_threshold","filtered","u","splice","findIndex","eventTimezone","totalOffsets","sum","averageOffset","closest","_findAverageTimezone","_modifyDatesForTimezoneOffset","_splitGroupEventByTimezone","eventData","localEventNames","localEvent","groupedEvents","calendar_details","eventDetail","eventUtcOffset","formattedGroupedEvents","groupedEvent","minDate","startOf","maxDate","endOf","apply","formattedGroupedEvent","isValid","clone","subtract","eventSegments","eventRenderer","segs","eventSegmentDefMap","_instance","defId","_eventSegmentDefMap","_insertAddToCalendarLinkForEvent","eventTitle","eventRange","def","startDate","endDate","_formatDateForGoogleApi","unit","toDate","_endDateForAllDayEvent","link","createTextNode","encodeURIComponent","undefined","onPageChange","categoryCalendarNode","categoryEventNode","browsedCategory","findBySlugPathWithID","categorySetting","calendar_categories","stringSetting","s","parts","findBy","postId","options","optional","rawCalendar","cookRaw","loadPost","all","results","k","include_subcategories","include_expired_events_on_calendar","include_expired","loadEvents","categoryColorFromMap","decorateCooked","$elem","helper","getModel","attachCalendar","onlyStream","registerCustomPostMessageCallback","topicController","stream","findLoadedPost","first","registerNotificationTypeRenderer","NotificationTypeBase","linkTitle","notification","topic_title","_glue","_getOwner","_glued","_attachGroupTimezones","$groupTimezones","each","idx","groupTimezone","getAttribute","members","glue","getRegister","appendTo","_attachWidget","usersOnHoliday","size","preventCloak","cleanupStream","cleanUp","_localDates","_decorateEvent","eventContainer","urlHeight","widgetHeight","should_display_invitees","minimal","can_update_attendance","glueContainer","discourse_local_dates_enabled","result","localDates","applyLocalDates","querySelectorAll","loadedEventContainer","_decorateEventPreview","index","_invalidEventPreview","statusLocaleKey","dataset","statusContainer","datesContainer","datesString","_validEventPreview","initializeDiscoursePostEventDecorator","decorateCookedElement","contains","replaceIcon","subscribe","messageBus","msg","postNode","unsubscribe","_environment","_later","_eventRelativeDate","computeRelativeEventDates","dateContainer","isTesting","_tick","teardown","_interval","cancel","today","week","list","currentLocale","match","DATE_TIME_REGEX","DATE_SEPARATOR","hex","round","str","hash","charCodeAt","setup","allowList","registerOptions","opts","features","registerPlugin","md","discourse","bbcode","ruler","calendarRule","groupTimezoneRule","tag","state","timezoneSelectToken","_renderTimezonePicker","mainCalendarDivToken","weekends","after","discourse_post_event","rule","wrap","token","input","char","toLowerCase","setAttribute","_computeFutureEvent","indicator","_computeCurrentEvent","_computePastEvent","_core","eventPopper","node","EVENT_POPOVER_ID","arrow","popperArrow","body","createPopper","placement","modifiers","eventTz","closed","recurrence","allowedGroups","raw_invitees","r","period","setting","param","group1","toUpperCase","eventMatches","STEP","fn","precision","direction","maxValue","_this","methods","milliseconds","mm","Milliseconds","Seconds","m","Minutes","H","Hours","rounded","subRatio","Error","_d","min","ceil","floor","ATTRIBUTES","transform","STATUSES","standalone","public","private","Event","__type","updateProperties","attributesKeys","getProperties","createProperties","_transformProps","attribute","beforeUpdate","beforeCreate","_rawHandlebars","_rawTemplates","depth0","helpers","partials","stack1","lookupProperty","parent","propertyName","hasOwnProperty","call","nullContext","hashTypes","hashContexts","program","inverse","noop","types","contexts","loc","column","hooks","helperMissing","compiler","main","useData","addRawTemplate","core","_rawRenderGlimmer","_default","_evented","_route","enforcePostEventEnabled","redirectTo","_widget","createWidget","__h1","__widget_helpers","iconNode","_r","_a0","groupedTimezone","beforeDate","virtualDom","className","_a1","afterDate","buildClasses","classes","closeToWorkingHours","inWorkingHours","formatedTime","nowWithOffset","rawHtml","transformed","_a2","_a3","member","attach","changeFilterThrottler","throttle","sendWidgetAction","buildAttributes","placeholder","localTimeOffset","_virtualDom","_post","on_holiday","avatar_template","class","avatarImg","onResetOffset","slider","isDisabled","disabled","_handleSliderEvent","change","changeOffsetThrottler","step","max","_roundTime","localTimeWithOffset","buildKey","defaultState","onChangeCurrentUserTimeOffset","newDayIndex","groupedTimezones","filterBy","_shouldAddMemberToGroup","now","_roundMoment","workingDays","_workingDays","_closeToWorkingHours","_inWorkingHours","_utcOffset","sortBy","onChangeFilter","indexOf","startHour","working_day_start_hour","endHour","working_day_end_hour","extension","close_to_working_day_hours_extension","isoWeekday","sign","enMoment","working_days","getIsoWeekday","localeData","_weekdays","_rawHtml","showAllParticipatingInvitees","extraClass","is_expired","is_closed","is_standalone","participants","stats","going","actionParam","contents","statusIcon","avatarContent","flair_name","flair_url","isPrivateEvent","I18n","interested","_a4","not_going","_a5","invited","_a6","sample_invitees","watchingInvitee","_application","_exportCsv","_postEventBulkInvite","_postEventInviteUserOrGroup","_postEventInvitees","_cleanTitle","DEFAULT_REMINDER","services","inviteUserOrGroup","showAllInvitees","editPostEvent","closeEvent","openEvent","changeWatchingInviteeStatus","watching_invitee","trigger","exportPostEvent","exportEntity","sendPMToCreator","creator","addToCalendar","downloadCalendar","recurrenceRule","recurrence_rule","location","details","getAbsoluteURL","upcomingEvents","register","_router","transitionTo","leaveEvent","inv","eventStatusLabel","eventStatusDescription","startsAtMonth","startsAtDay","eventName","emojiUnescape","_cleanTopicTitle","statusClass","isPublicEvent","isStandaloneEvent","canActOnEvent","can_act_on_discourse_post_event","_a7","_a8","_a9","_a10","_a11","_a12","_a13","topicTitle","cleaned","replaceTimezone","val","newTimezone","_buildContent","item","translatedLabel","expiredOrClosed"],"sources":["discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-adapter.js","discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-event.js","discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-invitee.js","discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-nested-adapter.js","discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-reminder.js","discourse/plugins/discourse-calendar/discourse/adapters/templates/connectors/category-custom-settings/show-event-category-sorting-settings.js","discourse/plugins/discourse-calendar/discourse/admin-calendar-route-map.js","discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.js","discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list.js","discourse/plugins/discourse-calendar/discourse/components/bulk-invite-sample-csv-file.js","discourse/plugins/discourse-calendar/discourse/components/csv-uploader.js","discourse/plugins/discourse-calendar/discourse/components/event-date.js","discourse/plugins/discourse-calendar/discourse/components/event-field.js","discourse/plugins/discourse-calendar/discourse/components/modal/post-event-builder.js","discourse/plugins/discourse-calendar/discourse/components/modal/post-event-bulk-invite.js","discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invite-user-or-group.js","discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invitees.js","discourse/plugins/discourse-calendar/discourse/components/region-input.js","discourse/plugins/discourse-calendar/discourse/components/toggle-invitees.js","discourse/plugins/discourse-calendar/discourse/components/upcoming-events-calendar.js","discourse/plugins/discourse-calendar/discourse/components/upcoming-events-list.js","discourse/plugins/discourse-calendar/discourse/connectors/after-user-name/holiday-flair.js","discourse/plugins/discourse-calendar/discourse/connectors/before-topic-list-body/category-calendar.js","discourse/plugins/discourse-calendar/discourse/connectors/discovery-list-container-top/category-events-calendar.js","discourse/plugins/discourse-calendar/discourse/connectors/header-topic-title-suffix/event-date-container.js","discourse/plugins/discourse-calendar/discourse/connectors/user-custom-preferences/region.js","discourse/plugins/discourse-calendar/discourse/controllers/admin-plugins-calendar.js","discourse/plugins/discourse-calendar/discourse/controllers/discourse-post-event-upcoming-events-index.js","discourse/plugins/discourse-calendar/discourse/discourse-event-upcoming-events-route-map.js","discourse/plugins/discourse-calendar/discourse/helpers/format-event-name.js","discourse/plugins/discourse-calendar/discourse/helpers/format-future-date.js","discourse/plugins/discourse-calendar/discourse/helpers/render-invitee.js","discourse/plugins/discourse-calendar/discourse/initializers/add-event-ui-builder.js","discourse/plugins/discourse-calendar/discourse/initializers/add-upcoming-events-to-sidebar.js","discourse/plugins/discourse-calendar/discourse/initializers/disable-sort.js","discourse/plugins/discourse-calendar/discourse/initializers/discourse-calendar.js","discourse/plugins/discourse-calendar/discourse/initializers/discourse-group-timezones.js","discourse/plugins/discourse-calendar/discourse/initializers/discourse-post-event-decorator.js","discourse/plugins/discourse-calendar/discourse/initializers/event-relative-date.js","discourse/plugins/discourse-calendar/discourse/lib/calendar-locale.js","discourse/plugins/discourse-calendar/discourse/lib/clean-title.js","discourse/plugins/discourse-calendar/discourse/lib/colors.js","discourse/plugins/discourse-calendar/discourse/lib/discourse-markdown/discourse-calendar.js","discourse/plugins/discourse-calendar/discourse/lib/discourse-markdown/discourse-post-event-block.js","discourse/plugins/discourse-calendar/discourse/lib/event-relative-date.js","discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format.js","discourse/plugins/discourse-calendar/discourse/lib/popover.js","discourse/plugins/discourse-calendar/discourse/lib/raw-event-helper.js","discourse/plugins/discourse-calendar/discourse/lib/regions.js","discourse/plugins/discourse-calendar/discourse/lib/round-time.js","discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-event.js","discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-invitee.js","discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-reminder.js","discourse/plugins/discourse-calendar/discourse/raw-templates/connectors/topic-list-after-title/event-date.js","discourse/plugins/discourse-calendar/discourse/raw-templates/event-date-container.js","discourse/plugins/discourse-calendar/discourse/raw-views/event-date-container.js","discourse/plugins/discourse-calendar/discourse/routes/discourse-post-event-upcoming-events-index.js","discourse/plugins/discourse-calendar/discourse/templates/admin-plugins-calendar.js","discourse/plugins/discourse-calendar/discourse/templates/connectors/after-user-name/holiday-flair.js","discourse/plugins/discourse-calendar/discourse/templates/connectors/user-custom-preferences/region.js","discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events-index.js","discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezone-new-day.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezone.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-filter.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-header.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-member.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-reset.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-slider.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-time-traveler.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-dates.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-host.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-invitee.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-invitees.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-status.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-url.js","discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event.js","discourse/plugins/discourse-calendar/discourse/widgets/going-button.js","discourse/plugins/discourse-calendar/discourse/widgets/interested-button.js","discourse/plugins/discourse-calendar/discourse/widgets/more-dropdown.js","discourse/plugins/discourse-calendar/discourse/widgets/not-going-button.js"],"sourcesContent":["define(\"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-adapter\", [\"exports\", \"discourse/adapters/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _rest.default.extend({\n    basePath() {\n      return \"/discourse-post-event/\";\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-event\", [\"exports\", \"@ember/string\", \"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-adapter\"], function (_exports, _string, _discoursePostEventAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _discoursePostEventAdapter.default.extend({\n    pathFor(store, type, findArgs) {\n      const path = this.basePath(store, type, findArgs) + (0, _string.underscore)(store.pluralize(this.apiNameFor(type)));\n      return this.appendQueryParams(path, findArgs);\n    },\n    apiNameFor() {\n      return \"event\";\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-invitee\", [\"exports\", \"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-nested-adapter\"], function (_exports, _discoursePostEventNestedAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _discoursePostEventNestedAdapter.default.extend({\n    apiNameFor() {\n      return \"invitee\";\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-nested-adapter\", [\"exports\", \"@ember/string\", \"discourse/adapters/rest\", \"discourse/lib/ajax\", \"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-adapter\"], function (_exports, _string, _rest, _ajax, _discoursePostEventAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _discoursePostEventAdapter.default.extend({\n    // TODO: destroy/update/create should be improved in core to allow for nested models\n    destroyRecord(store, type, record) {\n      return (0, _ajax.ajax)(this.pathFor(store, type, {\n        post_id: record.post_id,\n        id: record.id\n      }), {\n        type: \"DELETE\"\n      });\n    },\n    update(store, type, id, attrs) {\n      const data = {};\n      const typeField = (0, _string.underscore)(this.apiNameFor(type));\n      data[typeField] = attrs;\n      return (0, _ajax.ajax)(this.pathFor(store, type, {\n        id,\n        post_id: attrs.post_id\n      }), this.getPayload(\"PUT\", data)).then(function (json) {\n        return new _rest.Result(json[typeField], json);\n      });\n    },\n    createRecord(store, type, attrs) {\n      const data = {};\n      const typeField = (0, _string.underscore)(this.apiNameFor(type));\n      data[typeField] = attrs;\n      return (0, _ajax.ajax)(this.pathFor(store, type, attrs), this.getPayload(\"POST\", data)).then(function (json) {\n        return new _rest.Result(json[typeField], json);\n      });\n    },\n    pathFor(store, type, findArgs) {\n      const post_id = findArgs[\"post_id\"];\n      delete findArgs[\"post_id\"];\n      const id = findArgs[\"id\"];\n      delete findArgs[\"id\"];\n      let path = this.basePath(store, type, {}) + \"events/\" + post_id + \"/\" + (0, _string.underscore)(store.pluralize(this.apiNameFor()));\n      if (id) {\n        path += `/${id}`;\n      }\n      return this.appendQueryParams(path, findArgs);\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-reminder\", [\"exports\", \"discourse/plugins/discourse-calendar/discourse/adapters/discourse-post-event-nested-adapter\"], function (_exports, _discoursePostEventNestedAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _discoursePostEventNestedAdapter.default.extend({\n    apiNameFor() {\n      return \"reminder\";\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/adapters/templates/connectors/category-custom-settings/show-event-category-sorting-settings\", [\"exports\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _deprecationsHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <section>\n    <h3>{{i18n \"category.settings_sections.event_sorting\"}}</h3>\n  \n    {{#if siteSettings.sort_categories_by_event_start_date_enabled}}\n      <section class=\"field show-subcategory-list-field\">\n        <label>\n          <Input\n            @type=\"checkbox\"\n            @checked={{this.category.custom_fields.sort_topics_by_event_start_date}}\n          />\n          {{i18n \"category.sort_topics_by_event_start_date\"}}\n        </label>\n      </section>\n    {{/if}}\n  \n    {{#if siteSettings.disable_resorting_on_categories_enabled}}\n      <section class=\"field show-subcategory-list-field\">\n        <label>\n          <Input\n            @type=\"checkbox\"\n            @checked={{this.category.custom_fields.disable_topic_resorting}}\n          />\n          {{i18n \"category.disable_topic_resorting\"}}\n        </label>\n      </section>\n    {{/if}}\n  </section>\n  */\n  {\n    \"id\": \"fg7N9D6Z\",\n    \"block\": \"[[[10,\\\"section\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,0],[\\\"category.settings_sections.event_sorting\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"siteSettings\\\",\\\"sort_categories_by_event_start_date_enabled\\\"]],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"field show-subcategory-list-field\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"category\\\",\\\"custom_fields\\\",\\\"sort_topics_by_event_start_date\\\"]]]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,0],[\\\"category.sort_topics_by_event_start_date\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"siteSettings\\\",\\\"disable_resorting_on_categories_enabled\\\"]],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"field show-subcategory-list-field\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"category\\\",\\\"custom_fields\\\",\\\"disable_topic_resorting\\\"]]]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,0],[\\\"category.disable_topic_resorting\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,[28,[32,0],[\\\"[[\\\\\\\"The `siteSettings` property path was used in the `discourse/plugins/discourse-calendar/discourse/adapters/templates/connectors/category-custom-settings/show-event-category-sorting-settings.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.siteSettings}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `siteSettings` property path was used in the `discourse/plugins/discourse-calendar/discourse/adapters/templates/connectors/category-custom-settings/show-event-category-sorting-settings.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.siteSettings}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[],false,[\\\"i18n\\\",\\\"if\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/adapters/templates/connectors/category-custom-settings/show-event-category-sorting-settings.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/admin-calendar-route-map\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    resource: \"admin.adminPlugins\",\n    path: \"/plugins\",\n    map() {\n      this.route(\"calendar\");\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _component, _object, _ajax, _ajaxError, _deprecationsHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td>{{holiday.date}}</td>\n  <td>{{holiday.name}}</td>\n  <td>\n    {{#if isHolidayDisabled}}\n      <DButton\n        @action={{action \"enableHoliday\" holiday region_code}}\n        @label=\"discourse_calendar.enable_holiday\"\n      />\n    {{else}}\n      <DButton\n        @action={{action \"disableHoliday\" holiday region_code}}\n        @label=\"discourse_calendar.disable_holiday\"\n      />\n    {{/if}}\n  </td>\n  */\n  {\n    \"id\": \"rYv6zHVZ\",\n    \"block\": \"[[[10,\\\"td\\\"],[12],[1,[30,0,[\\\"holiday\\\",\\\"date\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[30,0,[\\\"holiday\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isHolidayDisabled\\\"]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@action\\\",\\\"@label\\\"],[[28,[37,2],[[30,0],\\\"enableHoliday\\\",[30,0,[\\\"holiday\\\"]],[30,0,[\\\"region_code\\\"]]],null],\\\"discourse_calendar.enable_holiday\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@action\\\",\\\"@label\\\"],[[28,[37,2],[[30,0],\\\"disableHoliday\\\",[30,0,[\\\"holiday\\\"]],[30,0,[\\\"region_code\\\"]]],null],\\\"discourse_calendar.disable_holiday\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[13],[1,[28,[32,0],[\\\"[[\\\\\\\"The `holiday` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.holiday}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `holiday` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.holiday}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `isHolidayDisabled` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.isHolidayDisabled}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `holiday` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.holiday}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `region_code` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.region_code}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `holiday` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.holiday}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `region_code` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.region_code}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[],false,[\\\"if\\\",\\\"d-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list-item.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(dt7948.p({\n    tagName: \"tr\",\n    classNameBindings: [\"isHolidayDisabled:disabled\"],\n    loading: false,\n    isHolidayDisabled: false,\n    disableHoliday(holiday, region_code) {\n      if (this.loading) {\n        return;\n      }\n      this.set(\"loading\", true);\n      return (0, _ajax.ajax)({\n        url: `/admin/discourse-calendar/holidays/disable`,\n        type: \"POST\",\n        data: {\n          disabled_holiday: {\n            holiday_name: holiday.name,\n            region_code\n          }\n        }\n      }).then(() => this.set(\"isHolidayDisabled\", true)).catch(_ajaxError.popupAjaxError).finally(() => this.set(\"loading\", false));\n    },\n    enableHoliday(holiday, region_code) {\n      if (this.loading) {\n        return;\n      }\n      this.set(\"loading\", true);\n      return (0, _ajax.ajax)({\n        url: `/admin/discourse-calendar/holidays/enable`,\n        type: \"DELETE\",\n        data: {\n          disabled_holiday: {\n            holiday_name: holiday.name,\n            region_code\n          }\n        }\n      }).then(() => this.set(\"isHolidayDisabled\", false)).catch(_ajaxError.popupAjaxError).finally(() => this.set(\"loading\", false));\n    }\n  }, [[\"method\", \"disableHoliday\", [_object.action]], [\"method\", \"enableHoliday\", [_object.action]]])));\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <table class=\"holidays-list\">\n    <thead>\n      <tr>\n        <td>{{i18n \"discourse_calendar.date\"}}</td>\n        <td colspan=\"2\">{{i18n \"discourse_calendar.holiday\"}}</td>\n      </tr>\n    </thead>\n  \n    <tbody>\n      {{#each @holidays as |holiday|}}\n        <AdminHolidaysListItem\n          @holiday={{holiday}}\n          @isHolidayDisabled={{holiday.disabled}}\n          @region_code={{@region_code}}\n        />\n      {{/each}}\n    </tbody>\n  </table>\n  */\n  {\n    \"id\": \"4wGqTLXi\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"holidays-list\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,0],[\\\"discourse_calendar.date\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,0],[\\\"discourse_calendar.holiday\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@holiday\\\",\\\"@isHolidayDisabled\\\",\\\"@region_code\\\"],[[30,2],[30,2,[\\\"disabled\\\"]],[30,3]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@holidays\\\",\\\"holiday\\\",\\\"@region_code\\\"],false,[\\\"i18n\\\",\\\"each\\\",\\\"-track-array\\\",\\\"admin-holidays-list-item\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/admin-holidays-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/bulk-invite-sample-csv-file\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DButton\n    @label=\"discourse_calendar.discourse_post_event.bulk_invite_modal.download_sample_csv\"\n    @action={{action \"downloadSampleCsv\"}}\n  />\n  */\n  {\n    \"id\": \"/3bi2HOZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@label\\\",\\\"@action\\\"],[\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.download_sample_csv\\\",[28,[37,1],[[30,0],\\\"downloadSampleCsv\\\"],null]]],null]],[],false,[\\\"d-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/bulk-invite-sample-csv-file.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(dt7948.p({\n    downloadSampleCsv() {\n      const sampleData = [[\"my_awesome_group\", \"going\"], [\"lucy\", \"interested\"], [\"mark\", \"not_going\"], [\"sam\", \"unknown\"]];\n      let csv = \"\";\n      sampleData.forEach(row => {\n        csv += row.join(\",\");\n        csv += \"\\n\";\n      });\n      const btn = document.createElement(\"a\");\n      btn.href = `data:text/csv;charset=utf-8,${encodeURI(csv)}`;\n      btn.target = \"_blank\";\n      btn.rel = \"noopener noreferrer\";\n      btn.download = \"bulk-invite-sample.csv\";\n      btn.click();\n    }\n  }, [[\"method\", \"downloadSampleCsv\", [_object.action]]])));\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/csv-uploader\", [\"exports\", \"@ember/component\", \"@ember/service\", \"discourse/mixins/uppy-upload\", \"discourse-common/utils/decorators\", \"I18n\", \"ember-this-fallback/this-fallback-helper\", \"ember-this-fallback/try-lookup-helper\", \"ember-this-fallback/is-component\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _component, _service, _uppyUpload, _decorators, _I18n, _thisFallbackHelper, _tryLookupHelper, _isComponent, _deprecationsHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <label class=\"btn\" disabled={{uploadButtonDisabled}}>\n    {{d-icon \"upload\"}}&nbsp;{{uploadButtonText}}\n    <input\n      class=\"hidden-upload-field\"\n      disabled={{uploading}}\n      type=\"file\"\n      accept=\".csv\"\n    />\n  </label>\n  {{#if (or uploading processing)}}\n    <span>{{i18n \"upload_selector.uploading\"}} {{uploadProgress}}%</span>\n  {{/if}}\n  */\n  {\n    \"id\": \"j5moXdOD\",\n    \"block\": \"[[[44,[[28,[37,1],null,[[\\\"uploadButtonDisabled\\\"],[[28,[32,0],[\\\"uploadButtonDisabled\\\"],null]]]]],[[[10,\\\"label\\\"],[14,0,\\\"btn\\\"],[15,\\\"disabled\\\",[52,[30,1,[\\\"uploadButtonDisabled\\\"]],[28,[30,1,[\\\"uploadButtonDisabled\\\"]],null,null],[28,[32,1],[[30,0],\\\"uploadButtonDisabled\\\",\\\"[\\\\\\\"The `uploadButtonDisabled` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.uploadButtonDisabled}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,3],[\\\"upload\\\"],null]],[1,\\\" \\\"],[41,[28,[32,2],[\\\"uploadButtonText\\\"],null],[[[8,[39,4],null,null,null]],[]],[[[44,[[28,[37,1],null,[[\\\"uploadButtonText\\\"],[[28,[32,0],[\\\"uploadButtonText\\\"],null]]]]],[[[1,[52,[30,2,[\\\"uploadButtonText\\\"]],[28,[30,2,[\\\"uploadButtonText\\\"]],null,null],[28,[32,1],[[30,0],\\\"uploadButtonText\\\",\\\"[\\\\\\\"The `uploadButtonText` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.uploadButtonText}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]]],[2]]]],[]]],[1,\\\"\\\\n  \\\"],[44,[[28,[37,1],null,[[\\\"uploading\\\"],[[28,[32,0],[\\\"uploading\\\"],null]]]]],[[[10,\\\"input\\\"],[14,0,\\\"hidden-upload-field\\\"],[15,\\\"disabled\\\",[52,[30,3,[\\\"uploading\\\"]],[28,[30,3,[\\\"uploading\\\"]],null,null],[28,[32,1],[[30,0],\\\"uploading\\\",\\\"[\\\\\\\"The `uploading` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.uploading}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]],[14,\\\"accept\\\",\\\".csv\\\"],[14,4,\\\"file\\\"],[12],[13]],[3]]],[1,\\\"\\\\n\\\"],[13]],[1]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"uploading\\\"]],[30,0,[\\\"processing\\\"]]],null],[[[1,\\\"  \\\"],[10,1],[12],[1,[28,[35,6],[\\\"upload_selector.uploading\\\"],null]],[1,\\\" \\\"],[41,[28,[32,2],[\\\"uploadProgress\\\"],null],[[[8,[39,7],null,null,null]],[]],[[[44,[[28,[37,1],null,[[\\\"uploadProgress\\\"],[[28,[32,0],[\\\"uploadProgress\\\"],null]]]]],[[[1,[52,[30,4,[\\\"uploadProgress\\\"]],[28,[30,4,[\\\"uploadProgress\\\"]],null,null],[28,[32,1],[[30,0],\\\"uploadProgress\\\",\\\"[\\\\\\\"The `uploadProgress` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.uploadProgress}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]]],[4]]]],[]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,[28,[32,3],[\\\"[[\\\\\\\"The `uploading` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.uploading}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `processing` property path was used in the `discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.processing}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[\\\"maybeHelpers\\\",\\\"maybeHelpers0\\\",\\\"maybeHelpers0\\\",\\\"maybeHelpers\\\"],false,[\\\"let\\\",\\\"hash\\\",\\\"if\\\",\\\"d-icon\\\",\\\"upload-button-text\\\",\\\"or\\\",\\\"i18n\\\",\\\"upload-progress\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/csv-uploader.hbs\",\n    \"scope\": () => [_tryLookupHelper.default, _thisFallbackHelper.default, _isComponent.default, _deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_uppyUpload.default, dt7948.p({\n    type: \"csv\",\n    tagName: \"span\",\n    dialog: (0, _service.inject)(),\n    uploadUrl: null,\n    i18nPrefix: null,\n    autoStartUploads: false,\n    validateUploadedFilesOptions() {\n      return {\n        csvOnly: true\n      };\n    },\n    uploadButtonText(uploading) {\n      return uploading ? _I18n.default.t(\"uploading\") : _I18n.default.t(`${this.i18nPrefix}.text`);\n    },\n    uploadButtonDisabled(uploading, processing) {\n      // https://github.com/emberjs/ember.js/issues/10976#issuecomment-132417731\n      return uploading || processing ? true : null;\n    },\n    uploadDone() {\n      this.dialog.alert(_I18n.default.t(`${this.i18nPrefix}.success`));\n    },\n    _uppyReady() {\n      this._uppyInstance.on(\"file-added\", () => {\n        this.dialog.confirm({\n          message: _I18n.default.t(`${this.i18nPrefix}.confirmation_message`),\n          didConfirm: () => this._startUpload(),\n          didCancel: () => this._reset()\n        });\n      });\n    }\n  }, [[\"method\", \"uploadButtonText\", [(0, _decorators.default)(\"uploading\")]], [\"method\", \"uploadButtonDisabled\", [(0, _decorators.default)(\"uploading\", \"processing\")]]])));\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/event-date\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"discourse-i18n\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _discourseI18n, _guessBestDateFormat, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class EventDate extends _component.default {\n    static #_ = (() => dt7948.g(this.prototype, \"siteSettings\", [_service.inject]))();\n    #siteSettings = (() => (dt7948.i(this, \"siteSettings\"), void 0))();\n    static #_2 = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        {{~#if this.shouldRender~}}\n          <span class=\"header-topic-title-suffix-outlet event-date-container\">\n            {{~#if this.siteSettings.use_local_event_date~}}\n              <span\n                class=\"event-date event-local-date past\"\n                title={{this.dateRange}}\n                data-starts-at={{this.eventStartedAt}}\n                data-ends-at={{this.eventEndedAt}}\n              >\n                {{this.localDateContent}}\n              </span>\n            {{else}}\n              <span\n                class=\"event-date event-relative-date {{this.relativeDateType}}\"\n                title={{this.dateRange}}\n                data-starts-at={{this.eventStartedAt}}\n                data-ends-at={{this.eventEndedAt}}\n              >\n                {{~#if this.isWithinDateRange~}}\n                  <span class=\"indicator\"></span>\n                  <span class=\"text\">{{this.timeRemainingContent}}</span>\n                {{else}}\n                  {{this.relativeDateContent}}\n                {{~/if~}}\n              </span>\n            {{~/if~}}\n          </span>\n        {{~/if~}}\n      \n    */\n    {\n      \"id\": \"4mKJ6Alk\",\n      \"block\": \"[[[41,[30,0,[\\\"shouldRender\\\"]],[[[10,1],[14,0,\\\"header-topic-title-suffix-outlet event-date-container\\\"],[12],[41,[30,0,[\\\"siteSettings\\\",\\\"use_local_event_date\\\"]],[[[10,1],[14,0,\\\"event-date event-local-date past\\\"],[15,\\\"title\\\",[30,0,[\\\"dateRange\\\"]]],[15,\\\"data-starts-at\\\",[30,0,[\\\"eventStartedAt\\\"]]],[15,\\\"data-ends-at\\\",[30,0,[\\\"eventEndedAt\\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"localDateContent\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[15,0,[29,[\\\"event-date event-relative-date \\\",[30,0,[\\\"relativeDateType\\\"]]]]],[15,\\\"title\\\",[30,0,[\\\"dateRange\\\"]]],[15,\\\"data-starts-at\\\",[30,0,[\\\"eventStartedAt\\\"]]],[15,\\\"data-ends-at\\\",[30,0,[\\\"eventEndedAt\\\"]]],[12],[41,[30,0,[\\\"isWithinDateRange\\\"]],[[[10,1],[14,0,\\\"indicator\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"text\\\"],[12],[1,[30,0,[\\\"timeRemainingContent\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"relativeDateContent\\\"]]]],[]]],[13]],[]]],[13]],[]],null]],[],false,[\\\"if\\\"]]\",\n      \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/components/event-date.js\",\n      \"isStrictMode\": true\n    }), this))();\n    get shouldRender() {\n      return this.siteSettings.discourse_post_event_enabled && this.args.topic.event_starts_at;\n    }\n    get eventStartedAt() {\n      return this._parsedDate(this.args.topic.event_starts_at);\n    }\n    get eventEndedAt() {\n      return this.args.topic.event_ends_at ? this._parsedDate(this.args.topic.event_ends_at) : this.eventStartedAt;\n    }\n    get dateRange() {\n      return this.args.topic.event_ends_at ? `${this._formattedDate(this.eventStartedAt)} → ${this._formattedDate(this.eventEndedAt)}` : this._formattedDate(this.eventStartedAt);\n    }\n    get localDateContent() {\n      return this._formattedDate(this.eventStartedAt);\n    }\n    get relativeDateType() {\n      if (this.isWithinDateRange) {\n        return \"current\";\n      }\n      if (this.eventStartedAt.isAfter(moment())) {\n        return \"future\";\n      }\n      return \"past\";\n    }\n    get isWithinDateRange() {\n      return this.eventStartedAt.isBefore(moment()) && this.eventEndedAt.isAfter(moment());\n    }\n    get relativeDateContent() {\n      // dateType \"current\" uses a different implementation\n      const relativeDates1 = {\n        future: this.eventStartedAt.from(moment()),\n        past: this.eventEndedAt.from(moment())\n      };\n      return relativeDates1[this.relativeDateType];\n    }\n    get timeRemainingContent() {\n      return _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.topic_title.ends_in_duration\", {\n        duration: this.eventEndedAt.from(moment())\n      });\n    }\n    _parsedDate(date1) {\n      return moment.utc(date1).tz(moment.tz.guess());\n    }\n    _guessedDateFormat() {\n      return (0, _guessBestDateFormat.default)(this.eventStartedAt);\n    }\n    _formattedDate(date1) {\n      return date1.format(this._guessedDateFormat());\n    }\n  }\n  _exports.default = EventDate;\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/event-field\", [\"exports\", \"discourse-common/helpers/i18n\", \"truth-helpers/helpers/not-eq\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _i18n, _notEq, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const EventField = (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n  /*\n    \n    {{#if (notEq @enabled false)}}\n      <div class=\"event-field\" ...attributes>\n        {{#if @label}}\n          <div class=\"event-field-label\">\n            <span class=\"label\">{{i18n @label}}</span>\n          </div>\n        {{/if}}\n  \n        <div class=\"event-field-control\">\n          {{yield}}\n        </div>\n      </div>\n    {{/if}}\n  \n  */\n  {\n    \"id\": \"htlJPzKR\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[28,[32,0],[[30,1],false],null],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"event-field\\\"],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,3],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"event-field-label\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"label\\\"],[12],[1,[28,[32,1],[[30,3]],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"event-field-control\\\"],[12],[1,\\\"\\\\n        \\\"],[18,4,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@enabled\\\",\\\"&attrs\\\",\\\"@label\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/components/event-field.js\",\n    \"scope\": () => [_notEq.default, _i18n.default],\n    \"isStrictMode\": true\n  }), (0, _templateOnly.default)());\n  var _default = _exports.default = EventField;\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-builder\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"discourse/lib/ajax-error\", \"discourse/lib/text\", \"discourse/models/group\", \"discourse/plugins/discourse-calendar/discourse/lib/raw-event-helper\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _ajaxError, _text, _group, _rawEventHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DModal\n    @title={{i18n\n      (concat\n        \"discourse_calendar.discourse_post_event.builder_modal.\"\n        (if @model.event.isNew \"create_event_title\" \"update_event_title\")\n      )\n    }}\n    class=\"post-event-builder-modal\"\n    @closeModal={{@closeModal}}\n    @flash={{this.flash}}\n  >\n    <:body>\n      <ConditionalLoadingSection @isLoading={{@model.event.isSaving}}>\n        <form>\n          <DateTimeInputRange\n            @from={{this.startsAt}}\n            @to={{this.endsAt}}\n            @toTimeFirst={{true}}\n            @clearable={{true}}\n            @timezone={{@model.event.timezone}}\n            @onChange={{this.onChangeDates}}\n          />\n  \n          <EventField\n            class=\"name\"\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.name.label\"\n          >\n            <Input\n              @value={{@model.event.name}}\n              placeholder={{i18n\n                \"discourse_calendar.discourse_post_event.builder_modal.name.placeholder\"\n              }}\n            />\n          </EventField>\n  \n          <EventField\n            class=\"url\"\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.url.label\"\n          >\n            <Input\n              @value={{@model.event.url}}\n              placeholder={{i18n\n                \"discourse_calendar.discourse_post_event.builder_modal.url.placeholder\"\n              }}\n            />\n          </EventField>\n  \n          <EventField\n            class=\"timezone\"\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.timezone.label\"\n          >\n            <TimezoneInput\n              @value={{@model.event.timezone}}\n              @onChange={{this.setNewTimezone}}\n              class=\"input-xxlarge\"\n              @none=\"discourse_calendar.discourse_post_event.builder_modal.timezone.remove_timezone\"\n            />\n          </EventField>\n  \n          <EventField\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.status.label\"\n          >\n            <label class=\"radio-label\">\n              <RadioButton\n                @name=\"status\"\n                @value=\"public\"\n                @selection={{@model.event.status}}\n                @onChange={{this.onChangeStatus}}\n              />\n              <span class=\"message\">\n                <span class=\"title\">\n                  {{i18n\n                    \"discourse_calendar.discourse_post_event.models.event.status.public.title\"\n                  }}\n                </span>\n                <span class=\"description\">\n                  {{i18n\n                    \"discourse_calendar.discourse_post_event.models.event.status.public.description\"\n                  }}\n                </span>\n              </span>\n            </label>\n            <label class=\"radio-label\">\n              <RadioButton\n                @name=\"status\"\n                @value=\"private\"\n                @selection={{@model.event.status}}\n                @onChange={{this.onChangeStatus}}\n              />\n              <span class=\"message\">\n                <span class=\"title\">\n                  {{i18n\n                    \"discourse_calendar.discourse_post_event.models.event.status.private.title\"\n                  }}\n                </span>\n                <span class=\"description\">\n                  {{i18n\n                    \"discourse_calendar.discourse_post_event.models.event.status.private.description\"\n                  }}\n                </span>\n              </span>\n            </label>\n            <label class=\"radio-label\">\n              <RadioButton\n                @name=\"status\"\n                @value=\"standalone\"\n                @selection={{@model.event.status}}\n                @onChange={{this.onChangeStatus}}\n              />\n              <span class=\"message\">\n                <span class=\"title\">\n                  {{i18n\n                    \"discourse_calendar.discourse_post_event.models.event.status.standalone.title\"\n                  }}\n                </span>\n                <span class=\"description\">\n                  {{i18n\n                    \"discourse_calendar.discourse_post_event.models.event.status.standalone.description\"\n                  }}\n                </span>\n              </span>\n            </label>\n          </EventField>\n  \n          <EventField\n            @enabled={{eq @model.event.status \"private\"}}\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.invitees.label\"\n          >\n            <GroupSelector\n              @fullWidthWrap={{true}}\n              @groupFinder={{this.groupFinder}}\n              @groupNames={{@model.event.raw_invitees}}\n              @onChangeCallback={{this.setRawInvitees}}\n              @placeholderKey=\"topic.invite_private.group_name\"\n            />\n          </EventField>\n  \n          <EventField\n            class=\"reminders\"\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.reminders.label\"\n          >\n            <div class=\"reminders-list\">\n              {{#each @model.event.reminders as |reminder|}}\n                <div class=\"reminder-item\">\n                  <ComboBox\n                    class=\"reminder-type\"\n                    @value={{reminder.type}}\n                    @nameProperty=\"name\"\n                    @valueProperty=\"value\"\n                    @content={{this.reminderTypes}}\n                  />\n  \n                  <Input\n                    class=\"reminder-value\"\n                    min={{0}}\n                    @value={{reminder.value}}\n                    placeholder={{i18n\n                      \"discourse_calendar.discourse_post_event.builder_modal.name.placeholder\"\n                    }}\n                  />\n  \n                  <ComboBox\n                    class=\"reminder-unit\"\n                    @value={{reminder.unit}}\n                    @nameProperty=\"name\"\n                    @valueProperty=\"value\"\n                    @content={{this.reminderUnits}}\n                  />\n  \n                  <ComboBox\n                    class=\"reminder-period\"\n                    @value={{reminder.period}}\n                    @nameProperty=\"name\"\n                    @valueProperty=\"value\"\n                    @content={{this.reminderPeriods}}\n                  />\n  \n                  <DButton\n                    class=\"remove-reminder\"\n                    @icon=\"times\"\n                    @action={{fn @model.removeReminder reminder}}\n                  />\n  \n                </div>\n              {{/each}}\n            </div>\n  \n            <DButton\n              class=\"add-reminder\"\n              @disabled={{this.addReminderDisabled}}\n              @icon=\"plus\"\n              @label=\"discourse_calendar.discourse_post_event.builder_modal.add_reminder\"\n              @action={{@model.addReminder}}\n            />\n          </EventField>\n  \n          <EventField\n            class=\"recurrence\"\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.recurrence.label\"\n          >\n            <ComboBox\n              class=\"available-recurrences\"\n              @value={{@model.event.recurrence}}\n              @content={{this.availableRecurrences}}\n              @options={{hash\n                none=\"discourse_calendar.discourse_post_event.builder_modal.recurrence.none\"\n              }}\n            />\n          </EventField>\n  \n          <EventField\n            class=\"minimal-event\"\n            @label=\"discourse_calendar.discourse_post_event.builder_modal.minimal.label\"\n          >\n            <label class=\"checkbox-label\">\n              <Input @type=\"checkbox\" @checked={{@model.event.minimal}} />\n              <span class=\"message\">\n                {{i18n\n                  \"discourse_calendar.discourse_post_event.builder_modal.minimal.checkbox_label\"\n                }}\n              </span>\n            </label>\n          </EventField>\n  \n          {{#if this.allowedCustomFields.length}}\n            <EventField\n              @label=\"discourse_calendar.discourse_post_event.builder_modal.custom_fields.label\"\n            >\n              <p class=\"event-field-description\">\n                {{i18n\n                  \"discourse_calendar.discourse_post_event.builder_modal.custom_fields.description\"\n                }}\n              </p>\n              {{#each this.allowedCustomFields as |allowedCustomField|}}\n                <span class=\"label custom-field-label\">\n                  {{allowedCustomField}}\n                </span>\n                <Input\n                  class=\"custom-field-input\"\n                  @value={{readonly\n                    (get @model.event.custom_fields allowedCustomField)\n                  }}\n                  placeholder={{i18n\n                    \"discourse_calendar.discourse_post_event.builder_modal.custom_fields.placeholder\"\n                  }}\n                  {{on \"input\" (fn this.setCustomField allowedCustomField)}}\n                />\n              {{/each}}\n            </EventField>\n          {{/if}}\n        </form>\n      </ConditionalLoadingSection>\n    </:body>\n    <:footer>\n      {{#if @model.event.isNew}}\n        <DButton\n          @type=\"button\"\n          class=\"btn-primary\"\n          @label=\"discourse_calendar.discourse_post_event.builder_modal.create\"\n          @icon=\"calendar-day\"\n          @action={{this.createEvent}}\n        />\n      {{else}}\n        <DButton\n          @type=\"button\"\n          class=\"btn-primary\"\n          @label=\"discourse_calendar.discourse_post_event.builder_modal.update\"\n          @icon=\"calendar-day\"\n          @action={{this.updateEvent}}\n        />\n  \n        <DButton\n          @icon=\"trash-alt\"\n          class=\"btn-danger\"\n          @action={{this.destroyPostEvent}}\n        />\n      {{/if}}\n    </:footer>\n  </DModal>\n  */\n  {\n    \"id\": \"R4Mwn+Tg\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"post-event-builder-modal\\\"]],[[\\\"@title\\\",\\\"@closeModal\\\",\\\"@flash\\\"],[[28,[37,1],[[28,[37,2],[\\\"discourse_calendar.discourse_post_event.builder_modal.\\\",[52,[30,1,[\\\"event\\\",\\\"isNew\\\"]],\\\"create_event_title\\\",\\\"update_event_title\\\"]],null]],null],[30,2],[30,0,[\\\"flash\\\"]]]],[[\\\"body\\\",\\\"footer\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@isLoading\\\"],[[30,1,[\\\"event\\\",\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@from\\\",\\\"@to\\\",\\\"@toTimeFirst\\\",\\\"@clearable\\\",\\\"@timezone\\\",\\\"@onChange\\\"],[[30,0,[\\\"startsAt\\\"]],[30,0,[\\\"endsAt\\\"]],true,true,[30,1,[\\\"event\\\",\\\"timezone\\\"]],[30,0,[\\\"onChangeDates\\\"]]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[24,0,\\\"name\\\"]],[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.name.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,7],[[16,\\\"placeholder\\\",[28,[37,1],[\\\"discourse_calendar.discourse_post_event.builder_modal.name.placeholder\\\"],null]]],[[\\\"@value\\\"],[[30,1,[\\\"event\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[24,0,\\\"url\\\"]],[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.url.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,7],[[16,\\\"placeholder\\\",[28,[37,1],[\\\"discourse_calendar.discourse_post_event.builder_modal.url.placeholder\\\"],null]]],[[\\\"@value\\\"],[[30,1,[\\\"event\\\",\\\"url\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[24,0,\\\"timezone\\\"]],[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.timezone.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],[[24,0,\\\"input-xxlarge\\\"]],[[\\\"@value\\\",\\\"@onChange\\\",\\\"@none\\\"],[[30,1,[\\\"event\\\",\\\"timezone\\\"]],[30,0,[\\\"setNewTimezone\\\"]],\\\"discourse_calendar.discourse_post_event.builder_modal.timezone.remove_timezone\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],null,[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.status.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"radio-label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@name\\\",\\\"@value\\\",\\\"@selection\\\",\\\"@onChange\\\"],[\\\"status\\\",\\\"public\\\",[30,1,[\\\"event\\\",\\\"status\\\"]],[30,0,[\\\"onChangeStatus\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"message\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"title\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.models.event.status.public.title\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"description\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.models.event.status.public.description\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"radio-label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@name\\\",\\\"@value\\\",\\\"@selection\\\",\\\"@onChange\\\"],[\\\"status\\\",\\\"private\\\",[30,1,[\\\"event\\\",\\\"status\\\"]],[30,0,[\\\"onChangeStatus\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"message\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"title\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.models.event.status.private.title\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"description\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.models.event.status.private.description\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"radio-label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@name\\\",\\\"@value\\\",\\\"@selection\\\",\\\"@onChange\\\"],[\\\"status\\\",\\\"standalone\\\",[30,1,[\\\"event\\\",\\\"status\\\"]],[30,0,[\\\"onChangeStatus\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"message\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"title\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.models.event.status.standalone.title\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"description\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.models.event.status.standalone.description\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],null,[[\\\"@enabled\\\",\\\"@label\\\"],[[28,[37,10],[[30,1,[\\\"event\\\",\\\"status\\\"]],\\\"private\\\"],null],\\\"discourse_calendar.discourse_post_event.builder_modal.invitees.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@fullWidthWrap\\\",\\\"@groupFinder\\\",\\\"@groupNames\\\",\\\"@onChangeCallback\\\",\\\"@placeholderKey\\\"],[true,[30,0,[\\\"groupFinder\\\"]],[30,1,[\\\"event\\\",\\\"raw_invitees\\\"]],[30,0,[\\\"setRawInvitees\\\"]],\\\"topic.invite_private.group_name\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[24,0,\\\"reminders\\\"]],[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.reminders.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"reminders-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,1,[\\\"event\\\",\\\"reminders\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"reminder-item\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],[[24,0,\\\"reminder-type\\\"]],[[\\\"@value\\\",\\\"@nameProperty\\\",\\\"@valueProperty\\\",\\\"@content\\\"],[[30,3,[\\\"type\\\"]],\\\"name\\\",\\\"value\\\",[30,0,[\\\"reminderTypes\\\"]]]],null],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,7],[[24,0,\\\"reminder-value\\\"],[16,\\\"min\\\",0],[16,\\\"placeholder\\\",[28,[37,1],[\\\"discourse_calendar.discourse_post_event.builder_modal.name.placeholder\\\"],null]]],[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,14],[[24,0,\\\"reminder-unit\\\"]],[[\\\"@value\\\",\\\"@nameProperty\\\",\\\"@valueProperty\\\",\\\"@content\\\"],[[30,3,[\\\"unit\\\"]],\\\"name\\\",\\\"value\\\",[30,0,[\\\"reminderUnits\\\"]]]],null],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,14],[[24,0,\\\"reminder-period\\\"]],[[\\\"@value\\\",\\\"@nameProperty\\\",\\\"@valueProperty\\\",\\\"@content\\\"],[[30,3,[\\\"period\\\"]],\\\"name\\\",\\\"value\\\",[30,0,[\\\"reminderPeriods\\\"]]]],null],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,15],[[24,0,\\\"remove-reminder\\\"]],[[\\\"@icon\\\",\\\"@action\\\"],[\\\"times\\\",[28,[37,16],[[30,1,[\\\"removeReminder\\\"]],[30,3]],null]]],null],[1,\\\"\\\\n\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],[[24,0,\\\"add-reminder\\\"]],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@action\\\"],[[30,0,[\\\"addReminderDisabled\\\"]],\\\"plus\\\",\\\"discourse_calendar.discourse_post_event.builder_modal.add_reminder\\\",[30,1,[\\\"addReminder\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[24,0,\\\"recurrence\\\"]],[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.recurrence.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,14],[[24,0,\\\"available-recurrences\\\"]],[[\\\"@value\\\",\\\"@content\\\",\\\"@options\\\"],[[30,1,[\\\"event\\\",\\\"recurrence\\\"]],[30,0,[\\\"availableRecurrences\\\"]],[28,[37,17],null,[[\\\"none\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.recurrence.none\\\"]]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[24,0,\\\"minimal-event\\\"]],[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.minimal.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"checkbox-label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"event\\\",\\\"minimal\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"message\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.builder_modal.minimal.checkbox_label\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allowedCustomFields\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@label\\\"],[\\\"discourse_calendar.discourse_post_event.builder_modal.custom_fields.label\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"event-field-description\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.builder_modal.custom_fields.description\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"allowedCustomFields\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,1],[14,0,\\\"label custom-field-label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,7],[[24,0,\\\"custom-field-input\\\"],[16,\\\"placeholder\\\",[28,[37,1],[\\\"discourse_calendar.discourse_post_event.builder_modal.custom_fields.placeholder\\\"],null]],[4,[38,20],[\\\"input\\\",[28,[37,16],[[30,0,[\\\"setCustomField\\\"]],[30,4]],null]],null]],[[\\\"@value\\\"],[[28,[37,18],[[28,[37,19],[[30,1,[\\\"event\\\",\\\"custom_fields\\\"]],[30,4]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"event\\\",\\\"isNew\\\"]],[[[1,\\\"      \\\"],[8,[39,15],[[24,0,\\\"btn-primary\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@action\\\"],[\\\"button\\\",\\\"discourse_calendar.discourse_post_event.builder_modal.create\\\",\\\"calendar-day\\\",[30,0,[\\\"createEvent\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,15],[[24,0,\\\"btn-primary\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@action\\\"],[\\\"button\\\",\\\"discourse_calendar.discourse_post_event.builder_modal.update\\\",\\\"calendar-day\\\",[30,0,[\\\"updateEvent\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,15],[[24,0,\\\"btn-danger\\\"]],[[\\\"@icon\\\",\\\"@action\\\"],[\\\"trash-alt\\\",[30,0,[\\\"destroyPostEvent\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]]],[\\\"@model\\\",\\\"@closeModal\\\",\\\"reminder\\\",\\\"allowedCustomField\\\"],false,[\\\"d-modal\\\",\\\"i18n\\\",\\\"concat\\\",\\\"if\\\",\\\"conditional-loading-section\\\",\\\"date-time-input-range\\\",\\\"event-field\\\",\\\"input\\\",\\\"timezone-input\\\",\\\"radio-button\\\",\\\"eq\\\",\\\"group-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"combo-box\\\",\\\"d-button\\\",\\\"fn\\\",\\\"hash\\\",\\\"readonly\\\",\\\"get\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-builder.hbs\",\n    \"isStrictMode\": false\n  });\n  class PostEventBuilder extends _component2.default {\n    static #_ = (() => dt7948.g(this.prototype, \"dialog\", [_service.inject]))();\n    #dialog = (() => (dt7948.i(this, \"dialog\"), void 0))();\n    static #_2 = (() => dt7948.g(this.prototype, \"siteSettings\", [_service.inject]))();\n    #siteSettings = (() => (dt7948.i(this, \"siteSettings\"), void 0))();\n    static #_3 = (() => dt7948.g(this.prototype, \"store\", [_service.inject]))();\n    #store = (() => (dt7948.i(this, \"store\"), void 0))();\n    static #_4 = (() => dt7948.g(this.prototype, \"flash\", [_tracking.tracked], function () {\n      return null;\n    }))();\n    #flash = (() => (dt7948.i(this, \"flash\"), void 0))();\n    static #_5 = (() => dt7948.g(this.prototype, \"startsAt\", [_tracking.tracked], function () {\n      return moment(this.args.model.event.starts_at).tz(this.args.model.event.timezone || \"UTC\");\n    }))();\n    #startsAt = (() => (dt7948.i(this, \"startsAt\"), void 0))();\n    static #_6 = (() => dt7948.g(this.prototype, \"endsAt\", [_tracking.tracked], function () {\n      return this.args.model.event.ends_at && moment(this.args.model.event.ends_at).tz(this.args.model.event.timezone || \"UTC\");\n    }))();\n    #endsAt = (() => (dt7948.i(this, \"endsAt\"), void 0))();\n    get reminderTypes() {\n      return [{\n        value: \"notification\",\n        name: \"Notification\"\n      }, {\n        value: \"bumpTopic\",\n        name: \"Bump Topic\"\n      }];\n    }\n    get reminderUnits() {\n      return [{\n        value: \"minutes\",\n        name: \"Minutes\"\n      }, {\n        value: \"hours\",\n        name: \"Hours\"\n      }, {\n        value: \"days\",\n        name: \"Days\"\n      }, {\n        value: \"weeks\",\n        name: \"Weeks\"\n      }];\n    }\n    get reminderPeriods() {\n      return [{\n        value: \"before\",\n        name: \"Before\"\n      }, {\n        value: \"after\",\n        name: \"After\"\n      }];\n    }\n    get availableRecurrences() {\n      return [{\n        id: \"every_day\",\n        name: \"Every Day\"\n      }, {\n        id: \"every_month\",\n        name: \"Every Month\"\n      }, {\n        id: \"every_weekday\",\n        name: \"Every Weekday\"\n      }, {\n        id: \"every_week\",\n        name: \"Every Week\"\n      }, {\n        id: \"every_two_weeks\",\n        name: \"Every Two Weeks\"\n      }, {\n        id: \"every_four_weeks\",\n        name: \"Every Four Weeks\"\n      }];\n    }\n    get allowedCustomFields() {\n      return this.siteSettings.discourse_post_event_allowed_custom_fields.split(\"|\").filter(Boolean);\n    }\n    get addReminderDisabled() {\n      return this.args.model.event.reminders?.length >= 5;\n    }\n    groupFinder(term) {\n      return _group.default.findAll({\n        term,\n        ignore_automatic: true\n      });\n    }\n    static #_7 = (() => dt7948.n(this.prototype, \"groupFinder\", [_object.action]))();\n    setCustomField(field, e) {\n      this.args.model.updateCustomField(field, e.target.value);\n    }\n    static #_8 = (() => dt7948.n(this.prototype, \"setCustomField\", [_object.action]))();\n    onChangeDates(dates) {\n      this.args.model.onChangeDates(dates);\n      this.startsAt = dates.from;\n      this.endsAt = dates.to;\n    }\n    static #_9 = (() => dt7948.n(this.prototype, \"onChangeDates\", [_object.action]))();\n    onChangeStatus(newStatus) {\n      this.args.model.updateEventRawInvitees([]);\n      this.args.model.updateEventStatus(newStatus);\n    }\n    static #_10 = (() => dt7948.n(this.prototype, \"onChangeStatus\", [_object.action]))();\n    setRawInvitees(_, newInvitees) {\n      this.args.model.updateEventRawInvitees(newInvitees);\n    }\n    static #_11 = (() => dt7948.n(this.prototype, \"setRawInvitees\", [_object.action]))();\n    setNewTimezone(newTz) {\n      this.args.model.updateTimezone(newTz, this.startsAt, this.endsAt);\n      this.startsAt = moment(this.args.model.event.starts_at).tz(newTz);\n      this.endsAt = moment(this.args.model.event.ends_at).tz(this.args.model.event.timezone);\n    }\n    static #_12 = (() => dt7948.n(this.prototype, \"setNewTimezone\", [_object.action]))();\n    async destroyPostEvent() {\n      try {\n        const confirmResult = await this.dialog.yesNoConfirm({\n          message: \"Confirm delete\"\n        });\n        if (confirmResult) {\n          const post = await this.store.find(\"post\", this.args.model.event.id);\n          const raw = post.raw;\n          const newRaw = this._removeRawEvent(raw);\n          const props = {\n            raw: newRaw,\n            edit_reason: \"Destroy event\"\n          };\n          const cooked = await (0, _text.cook)(newRaw);\n          props.cooked = cooked.string;\n          const result = await post.save(props);\n          if (result) {\n            this.args.closeModal();\n          }\n        }\n      } catch (e) {\n        this.flash = (0, _ajaxError.extractError)(e);\n      }\n    }\n    static #_13 = (() => dt7948.n(this.prototype, \"destroyPostEvent\", [_object.action]))();\n    createEvent() {\n      if (!this.startsAt) {\n        this.args.closeModal();\n        return;\n      }\n      const eventParams = (0, _rawEventHelper.buildParams)(this.startsAt, this.endsAt, this.args.model.event, this.siteSettings);\n      const markdownParams = [];\n      Object.keys(eventParams).forEach(key => {\n        let value = eventParams[key];\n        markdownParams.push(`${key}=\"${value}\"`);\n      });\n      this.args.model.toolbarEvent.addText(`[event ${markdownParams.join(\" \")}]\\n[/event]`);\n      this.args.closeModal();\n    }\n    static #_14 = (() => dt7948.n(this.prototype, \"createEvent\", [_object.action]))();\n    async updateEvent() {\n      try {\n        const post = await this.store.find(\"post\", this.args.model.event.id);\n        const raw = post.raw;\n        const eventParams = (0, _rawEventHelper.buildParams)(this.startsAt, this.endsAt, this.args.model.event, this.siteSettings);\n        const newRaw = (0, _rawEventHelper.replaceRaw)(eventParams, raw);\n        if (newRaw) {\n          const props = {\n            raw: newRaw,\n            edit_reason: \"Edit reason\"\n          };\n          const cooked = await (0, _text.cook)(newRaw);\n          props.cooked = cooked.string;\n          const result = await post.save(props);\n          if (result) {\n            this.args.closeModal();\n          }\n        }\n      } catch (e) {\n        this.flash = (0, _ajaxError.extractError)(e);\n      }\n    }\n    static #_15 = (() => dt7948.n(this.prototype, \"updateEvent\", [_object.action]))();\n    _removeRawEvent(raw) {\n      const eventRegex = new RegExp(`\\\\[event\\\\s(.*?)\\\\]\\\\n\\\\[\\\\/event\\\\]`, \"m\");\n      return raw.replace(eventRegex, \"\");\n    }\n  }\n  _exports.default = PostEventBuilder;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PostEventBuilder);\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-bulk-invite\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/utils\", \"@ember-compat/tracked-built-ins\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\", \"discourse/models/group\", \"discourse-i18n\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _utils, _trackedBuiltIns, _ajax, _ajaxError, _group, _discourseI18n, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DModal\n    @closeModal={{@closeModal}}\n    @title={{i18n\n      \"discourse_calendar.discourse_post_event.bulk_invite_modal.title\"\n    }}\n    class=\"post-event-bulk-invite\"\n    @flash={{this.flash}}\n  >\n    <:body>\n      <div class=\"bulk-invites\">\n        <p class=\"bulk-event-help\">\n          {{i18n\n            (concat\n              \"discourse_calendar.discourse_post_event.bulk_invite_modal.description_\"\n              @model.event.status\n            )\n          }}\n        </p>\n        <h3>{{i18n\n            \"discourse_calendar.discourse_post_event.bulk_invite_modal.inline_title\"\n          }}</h3>\n  \n        <div class=\"bulk-invite-rows\">\n          {{#each this.bulkInvites as |bulkInvite|}}\n            <div class=\"bulk-invite-row\">\n              {{#if @model.event.is_private}}\n                <GroupSelector\n                  class=\"bulk-invite-identifier\"\n                  @single={{true}}\n                  @groupFinder={{this.groupFinder}}\n                  @groupNames={{bulkInvite.identifier}}\n                  @placeholderKey=\"discourse_calendar.discourse_post_event.bulk_invite_modal.group_selector_placeholder\"\n                  @onChangeCallback={{fn\n                    this.updateBulkGroupInviteIdentifier\n                    bulkInvite\n                  }}\n                />\n              {{/if}}\n              {{#if @model.event.is_public}}\n                <EmailGroupUserChooser\n                  class=\"bulk-invite-identifier\"\n                  @value={{bulkInvite.identifier}}\n                  @onChange={{fn this.updateInviteIdentifier bulkInvite}}\n                  @options={{hash\n                    maximum=1\n                    filterPlaceholder=\"discourse_calendar.discourse_post_event.bulk_invite_modal.user_selector_placeholder\"\n                  }}\n                />\n              {{/if}}\n  \n              <ComboBox\n                class=\"bulk-invite-attendance\"\n                @value={{bulkInvite.attendance}}\n                @content={{this.bulkInviteStatuses}}\n                @nameProperty=\"name\"\n                @valueProperty=\"name\"\n                @onChange={{fn (mut bulkInvite.attendance)}}\n              />\n  \n              <DButton\n                @icon=\"trash-alt\"\n                @action={{fn this.removeBulkInvite bulkInvite}}\n                class=\"remove-bulk-invite\"\n              />\n            </div>\n          {{/each}}\n        </div>\n  \n        <div class=\"bulk-invite-actions\">\n          <DButton\n            class=\"send-bulk-invites btn-primary\"\n            @label=\"discourse_calendar.discourse_post_event.bulk_invite_modal.send_bulk_invites\"\n            @action={{this.sendBulkInvites}}\n            @disabled={{this.bulkInviteDisabled}}\n          />\n          <DButton\n            class=\"add-bulk-invite\"\n            @icon=\"plus\"\n            @action={{this.addBulkInvite}}\n          />\n        </div>\n      </div>\n  \n      <div class=\"csv-bulk-invites\">\n        <h3>{{i18n\n            \"discourse_calendar.discourse_post_event.bulk_invite_modal.csv_title\"\n          }}</h3>\n  \n        <div class=\"bulk-invite-actions\">\n          <BulkInviteSampleCsvFile />\n  \n          <CsvUploader\n            @id=\"discourse-post-event-csv-uploader\"\n            @uploadUrl={{concat\n              \"/discourse-post-event/events/\"\n              @model.event.id\n              \"/csv-bulk-invite\"\n            }}\n            @i18nPrefix=\"discourse_calendar.discourse_post_event.bulk_invite_modal\"\n            @uploadDone={{this.uploadDone}}\n          />\n        </div>\n      </div>\n    </:body>\n  </DModal>\n  */\n  {\n    \"id\": \"Kefc5gRQ\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"post-event-bulk-invite\\\"]],[[\\\"@closeModal\\\",\\\"@title\\\",\\\"@flash\\\"],[[30,1],[28,[37,1],[\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.title\\\"],null],[30,0,[\\\"flash\\\"]]]],[[\\\"body\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bulk-invites\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"bulk-event-help\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[[28,[37,2],[\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.description_\\\",[30,2,[\\\"event\\\",\\\"status\\\"]]],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.inline_title\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"bulk-invite-rows\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"bulkInvites\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"bulk-invite-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"event\\\",\\\"is_private\\\"]],[[[1,\\\"              \\\"],[8,[39,6],[[24,0,\\\"bulk-invite-identifier\\\"]],[[\\\"@single\\\",\\\"@groupFinder\\\",\\\"@groupNames\\\",\\\"@placeholderKey\\\",\\\"@onChangeCallback\\\"],[true,[30,0,[\\\"groupFinder\\\"]],[30,3,[\\\"identifier\\\"]],\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.group_selector_placeholder\\\",[28,[37,7],[[30,0,[\\\"updateBulkGroupInviteIdentifier\\\"]],[30,3]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"event\\\",\\\"is_public\\\"]],[[[1,\\\"              \\\"],[8,[39,8],[[24,0,\\\"bulk-invite-identifier\\\"]],[[\\\"@value\\\",\\\"@onChange\\\",\\\"@options\\\"],[[30,3,[\\\"identifier\\\"]],[28,[37,7],[[30,0,[\\\"updateInviteIdentifier\\\"]],[30,3]],null],[28,[37,9],null,[[\\\"maximum\\\",\\\"filterPlaceholder\\\"],[1,\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.user_selector_placeholder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,10],[[24,0,\\\"bulk-invite-attendance\\\"]],[[\\\"@value\\\",\\\"@content\\\",\\\"@nameProperty\\\",\\\"@valueProperty\\\",\\\"@onChange\\\"],[[30,3,[\\\"attendance\\\"]],[30,0,[\\\"bulkInviteStatuses\\\"]],\\\"name\\\",\\\"name\\\",[28,[37,7],[[28,[37,11],[[30,3,[\\\"attendance\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,12],[[24,0,\\\"remove-bulk-invite\\\"]],[[\\\"@icon\\\",\\\"@action\\\"],[\\\"trash-alt\\\",[28,[37,7],[[30,0,[\\\"removeBulkInvite\\\"]],[30,3]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"bulk-invite-actions\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],[[24,0,\\\"send-bulk-invites btn-primary\\\"]],[[\\\"@label\\\",\\\"@action\\\",\\\"@disabled\\\"],[\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.send_bulk_invites\\\",[30,0,[\\\"sendBulkInvites\\\"]],[30,0,[\\\"bulkInviteDisabled\\\"]]]],null],[1,\\\"\\\\n        \\\"],[8,[39,12],[[24,0,\\\"add-bulk-invite\\\"]],[[\\\"@icon\\\",\\\"@action\\\"],[\\\"plus\\\",[30,0,[\\\"addBulkInvite\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"csv-bulk-invites\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,1],[\\\"discourse_calendar.discourse_post_event.bulk_invite_modal.csv_title\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"bulk-invite-actions\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],null,null,null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,14],null,[[\\\"@id\\\",\\\"@uploadUrl\\\",\\\"@i18nPrefix\\\",\\\"@uploadDone\\\"],[\\\"discourse-post-event-csv-uploader\\\",[28,[37,2],[\\\"/discourse-post-event/events/\\\",[30,2,[\\\"event\\\",\\\"id\\\"]],\\\"/csv-bulk-invite\\\"],null],\\\"discourse_calendar.discourse_post_event.bulk_invite_modal\\\",[30,0,[\\\"uploadDone\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]]],[\\\"@closeModal\\\",\\\"@model\\\",\\\"bulkInvite\\\"],false,[\\\"d-modal\\\",\\\"i18n\\\",\\\"concat\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"group-selector\\\",\\\"fn\\\",\\\"email-group-user-chooser\\\",\\\"hash\\\",\\\"combo-box\\\",\\\"mut\\\",\\\"d-button\\\",\\\"bulk-invite-sample-csv-file\\\",\\\"csv-uploader\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-bulk-invite.hbs\",\n    \"isStrictMode\": false\n  });\n  class PostEventBulkInvite extends _component2.default {\n    static #_ = (() => dt7948.g(this.prototype, \"dialog\", [_service.inject]))();\n    #dialog = (() => (dt7948.i(this, \"dialog\"), void 0))();\n    static #_2 = (() => dt7948.g(this.prototype, \"bulkInvites\", [_tracking.tracked], function () {\n      return new _trackedBuiltIns.TrackedArray([_object.default.create({\n        identifier: null,\n        attendance: \"unknown\"\n      })]);\n    }))();\n    #bulkInvites = (() => (dt7948.i(this, \"bulkInvites\"), void 0))();\n    static #_3 = (() => dt7948.g(this.prototype, \"bulkInviteDisabled\", [_tracking.tracked], function () {\n      return true;\n    }))();\n    #bulkInviteDisabled = (() => (dt7948.i(this, \"bulkInviteDisabled\"), void 0))();\n    static #_4 = (() => dt7948.g(this.prototype, \"flash\", [_tracking.tracked], function () {\n      return null;\n    }))();\n    #flash = (() => (dt7948.i(this, \"flash\"), void 0))();\n    get bulkInviteStatuses() {\n      return [{\n        label: _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.models.invitee.status.unknown\"),\n        name: \"unknown\"\n      }, {\n        label: _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.models.invitee.status.going\"),\n        name: \"going\"\n      }, {\n        label: _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.models.invitee.status.not_going\"),\n        name: \"not_going\"\n      }, {\n        label: _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.models.invitee.status.interested\"),\n        name: \"interested\"\n      }];\n    }\n    groupFinder(term) {\n      return _group.default.findAll({\n        term,\n        ignore_automatic: true\n      });\n    }\n    static #_5 = (() => dt7948.n(this.prototype, \"groupFinder\", [_object.action]))();\n    setBulkInviteDisabled() {\n      this.bulkInviteDisabled = this.bulkInvites.filter(x => (0, _utils.isPresent)(x.identifier)).length === 0;\n    }\n    static #_6 = (() => dt7948.n(this.prototype, \"setBulkInviteDisabled\", [_object.action]))();\n    async sendBulkInvites() {\n      try {\n        const response = await (0, _ajax.ajax)(`/discourse-post-event/events/${this.args.model.event.id}/bulk-invite.json`, {\n          type: \"POST\",\n          dataType: \"json\",\n          contentType: \"application/json\",\n          data: JSON.stringify({\n            invitees: this.bulkInvites.filter(x => (0, _utils.isPresent)(x.identifier))\n          })\n        });\n        if (response.success) {\n          this.args.closeModal();\n        }\n      } catch (e) {\n        this.flash = (0, _ajaxError.extractError)(e);\n      }\n    }\n    static #_7 = (() => dt7948.n(this.prototype, \"sendBulkInvites\", [_object.action]))();\n    removeBulkInvite(bulkInvite) {\n      this.bulkInvites.removeObject(bulkInvite);\n      if (!this.bulkInvites.length) {\n        this.bulkInvites.pushObject(_object.default.create({\n          identifier: null,\n          attendance: \"unknown\"\n        }));\n      }\n    }\n    static #_8 = (() => dt7948.n(this.prototype, \"removeBulkInvite\", [_object.action]))();\n    addBulkInvite() {\n      const attendance = this.bulkInvites[this.bulkInvites.length - 1]?.attendance || \"unknown\";\n      this.bulkInvites.pushObject(_object.default.create({\n        identifier: null,\n        attendance\n      }));\n    }\n    static #_9 = (() => dt7948.n(this.prototype, \"addBulkInvite\", [_object.action]))();\n    async uploadDone() {\n      await this.dialog.alert(_discourseI18n.default.t(\"discourse_calendar.discourse_post_event.bulk_invite_modal.success\"));\n      this.args.closeModal();\n    }\n    static #_10 = (() => dt7948.n(this.prototype, \"uploadDone\", [_object.action]))();\n    updateInviteIdentifier(bulkInvite, selected) {\n      bulkInvite.identifier = selected[0];\n      this.setBulkInviteDisabled();\n    }\n    static #_11 = (() => dt7948.n(this.prototype, \"updateInviteIdentifier\", [_object.action]))();\n    updateBulkGroupInviteIdentifier(bulkInvite, _, groupNames) {\n      bulkInvite.identifier = groupNames[0];\n      this.setBulkInviteDisabled();\n    }\n    static #_12 = (() => dt7948.n(this.prototype, \"updateBulkGroupInviteIdentifier\", [_object.action]))();\n  }\n  _exports.default = PostEventBulkInvite;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PostEventBulkInvite);\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invite-user-or-group\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _ajax, _ajaxError, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DModal\n    @title={{i18n\n      \"discourse_calendar.discourse_post_event.invite_user_or_group.title\"\n    }}\n    @closeModal={{@closeModal}}\n    @flash={{this.flash}}\n  >\n    <:body>\n      <form>\n        <EventField>\n          <EmailGroupUserChooser\n            @value={{this.invitedNames}}\n            @options={{hash\n              fullWidthWrap=true\n              includeMessageableGroups=true\n              filterPlaceholder=\"composer.users_placeholder\"\n              excludeCurrentUser=true\n            }}\n          />\n        </EventField>\n      </form>\n    </:body>\n    <:footer>\n      <DButton\n        @type=\"button\"\n        class=\"btn-primary\"\n        @label=\"discourse_calendar.discourse_post_event.invite_user_or_group.invite\"\n        @action={{this.invite}}\n      />\n    </:footer>\n  </DModal>\n  */\n  {\n    \"id\": \"IcCdkHp2\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@closeModal\\\",\\\"@flash\\\"],[[28,[37,1],[\\\"discourse_calendar.discourse_post_event.invite_user_or_group.title\\\"],null],[30,1],[30,0,[\\\"flash\\\"]]]],[[\\\"body\\\",\\\"footer\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@value\\\",\\\"@options\\\"],[[30,0,[\\\"invitedNames\\\"]],[28,[37,4],null,[[\\\"fullWidthWrap\\\",\\\"includeMessageableGroups\\\",\\\"filterPlaceholder\\\",\\\"excludeCurrentUser\\\"],[true,true,\\\"composer.users_placeholder\\\",true]]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]],[[[1,\\\"\\\\n    \\\"],[8,[39,5],[[24,0,\\\"btn-primary\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@action\\\"],[\\\"button\\\",\\\"discourse_calendar.discourse_post_event.invite_user_or_group.invite\\\",[30,0,[\\\"invite\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]]],[\\\"@closeModal\\\"],false,[\\\"d-modal\\\",\\\"i18n\\\",\\\"event-field\\\",\\\"email-group-user-chooser\\\",\\\"hash\\\",\\\"d-button\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invite-user-or-group.hbs\",\n    \"isStrictMode\": false\n  });\n  class PostEventInviteUserOrGroup extends _component2.default {\n    static #_ = (() => dt7948.g(this.prototype, \"invitedNames\", [_tracking.tracked], function () {\n      return [];\n    }))();\n    #invitedNames = (() => (dt7948.i(this, \"invitedNames\"), void 0))();\n    static #_2 = (() => dt7948.g(this.prototype, \"flash\", [_tracking.tracked], function () {\n      return null;\n    }))();\n    #flash = (() => (dt7948.i(this, \"flash\"), void 0))();\n    async invite() {\n      try {\n        await (0, _ajax.ajax)(`/discourse-post-event/events/${this.args.model.event.id}/invite.json`, {\n          data: {\n            invites: this.invitedNames\n          },\n          type: \"POST\"\n        });\n        this.args.closeModal();\n      } catch (e) {\n        this.flash = (0, _ajaxError.extractError)(e);\n      }\n    }\n    static #_3 = (() => dt7948.n(this.prototype, \"invite\", [_object.action]))();\n  }\n  _exports.default = PostEventInviteUserOrGroup;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PostEventInviteUserOrGroup);\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invitees\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"discourse-common/utils/decorators\", \"discourse-i18n\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _decorators, _discourseI18n, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DModal\n    @title={{this.title}}\n    @closeModal={{@closeModal}}\n    class={{concat-class\n      (or @model.extraClass \"invited\")\n      \"post-event-invitees-modal\"\n    }}\n  >\n    <:body>\n      <Input\n        @value={{this.filter}}\n        {{on \"input\" this.onFilterChanged}}\n        class=\"filter\"\n        placeholder={{i18n\n          \"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder\"\n        }}\n      />\n      <ToggleInvitees @viewType={{this.type}} @toggle={{this.toggleType}} />\n      <ConditionalLoadingSpinner @condition={{this.isLoading}}>\n        {{#if this.invitees}}\n          <ul class=\"invitees\">\n            {{#each this.invitees as |invitee|}}\n              <li class=\"invitee\">\n                {{render-invitee invitee}}\n                {{#if @model.event.can_act_on_discourse_post_event}}\n                  <DButton\n                    @icon=\"trash-alt\"\n                    @action={{fn this.removeInvitee invitee}}\n                  />\n                {{/if}}\n              </li>\n            {{/each}}\n          </ul>\n        {{else}}\n          <p class=\"no-users\">\n            {{i18n\n              \"discourse_calendar.discourse_post_event.models.invitee.no_users\"\n            }}\n          </p>\n        {{/if}}\n      </ConditionalLoadingSpinner>\n    </:body>\n  </DModal>\n  */\n  {\n    \"id\": \"jVk6Dk0N\",\n    \"block\": \"[[[8,[39,0],[[16,0,[28,[37,1],[[28,[37,2],[[30,1,[\\\"extraClass\\\"]],\\\"invited\\\"],null],\\\"post-event-invitees-modal\\\"],null]]],[[\\\"@title\\\",\\\"@closeModal\\\"],[[30,0,[\\\"title\\\"]],[30,2]]],[[\\\"body\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],[[24,0,\\\"filter\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder\\\"],null]],[4,[38,5],[\\\"input\\\",[30,0,[\\\"onFilterChanged\\\"]]],null]],[[\\\"@value\\\"],[[30,0,[\\\"filter\\\"]]]],null],[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@viewType\\\",\\\"@toggle\\\"],[[30,0,[\\\"type\\\"]],[30,0,[\\\"toggleType\\\"]]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@condition\\\"],[[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invitees\\\"]],[[[1,\\\"        \\\"],[10,\\\"ul\\\"],[14,0,\\\"invitees\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"invitees\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"li\\\"],[14,0,\\\"invitee\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[[30,3]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"event\\\",\\\"can_act_on_discourse_post_event\\\"]],[[[1,\\\"                \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@action\\\"],[\\\"trash-alt\\\",[28,[37,13],[[30,0,[\\\"removeInvitee\\\"]],[30,3]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"no-users\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"discourse_calendar.discourse_post_event.models.invitee.no_users\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]]],[\\\"@model\\\",\\\"@closeModal\\\",\\\"invitee\\\"],false,[\\\"d-modal\\\",\\\"concat-class\\\",\\\"or\\\",\\\"input\\\",\\\"i18n\\\",\\\"on\\\",\\\"toggle-invitees\\\",\\\"conditional-loading-spinner\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"render-invitee\\\",\\\"d-button\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invitees.hbs\",\n    \"isStrictMode\": false\n  });\n  class PostEventInvitees extends _component2.default {\n    static #_ = (() => dt7948.g(this.prototype, \"store\", [_service.inject]))();\n    #store = (() => (dt7948.i(this, \"store\"), void 0))();\n    static #_2 = (() => dt7948.g(this.prototype, \"invitees\", [_tracking.tracked]))();\n    #invitees = (() => (dt7948.i(this, \"invitees\"), void 0))();\n    static #_3 = (() => dt7948.g(this.prototype, \"filter\", [_tracking.tracked]))();\n    #filter = (() => (dt7948.i(this, \"filter\"), void 0))();\n    static #_4 = (() => dt7948.g(this.prototype, \"isLoading\", [_tracking.tracked], function () {\n      return false;\n    }))();\n    #isLoading = (() => (dt7948.i(this, \"isLoading\"), void 0))();\n    static #_5 = (() => dt7948.g(this.prototype, \"type\", [_tracking.tracked], function () {\n      return \"going\";\n    }))();\n    #type = (() => (dt7948.i(this, \"type\"), void 0))();\n    constructor() {\n      super(...arguments);\n      this._fetchInvitees();\n    }\n    get title() {\n      return _discourseI18n.default.t(`discourse_calendar.discourse_post_event.invitees_modal.${this.args.model.title || \"title_invited\"}`);\n    }\n    toggleType(type) {\n      this.type = type;\n      this._fetchInvitees(this.filter);\n    }\n    static #_6 = (() => dt7948.n(this.prototype, \"toggleType\", [_object.action]))();\n    onFilterChanged() {\n      this._fetchInvitees(this.filter);\n    }\n    static #_7 = (() => dt7948.n(this.prototype, \"onFilterChanged\", [(0, _decorators.debounce)(250)]))();\n    async removeInvitee(invitee) {\n      await invitee.destroyRecord();\n      this._fetchInvitees();\n    }\n    static #_8 = (() => dt7948.n(this.prototype, \"removeInvitee\", [_object.action]))();\n    async _fetchInvitees(filter) {\n      try {\n        this.isLoading = true;\n        const invitees = await this.store.findAll(\"discourse-post-event-invitee\", {\n          filter,\n          post_id: this.args.model.event.id,\n          type: this.type\n        });\n        this.invitees = invitees;\n      } finally {\n        this.isLoading = false;\n      }\n    }\n  }\n  _exports.default = PostEventInvitees;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PostEventInvitees);\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/region-input\", [\"exports\", \"@ember/object\", \"I18n\", \"select-kit/components/combo-box\", \"discourse/plugins/discourse-calendar/discourse/lib/regions\"], function (_exports, _object, _I18n, _comboBox, _regions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _comboBox.default.extend({\n    pluginApiIdentifiers: [\"timezone-input\"],\n    classNames: [\"timezone-input\", \"region-input\"],\n    allowNoneRegion: false,\n    selectKitOptions: {\n      filterable: true,\n      allowAny: false\n    },\n    content: (0, _object.computed)(function () {\n      const localeNames = {};\n      let regions = [];\n      JSON.parse(this.siteSettings.available_locales).forEach(locale => {\n        localeNames[locale.value] = locale.name;\n      });\n      if (this.allowNoneRegion === true) {\n        regions.push({\n          name: _I18n.default.t(\"discourse_calendar.region.none\"),\n          id: null\n        });\n      }\n      regions = regions.concat(_regions.HOLIDAY_REGIONS.map(region => ({\n        name: _I18n.default.t(`discourse_calendar.region.names.${region}`),\n        id: region\n      })).sort((a, b) => a.name.localeCompare(b.name)));\n      return regions;\n    })\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/toggle-invitees\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"invitees-type-filter\">\n    <DButton\n      @label=\"discourse_calendar.discourse_post_event.models.invitee.status.going\"\n      class={{concat-class\n        \"btn toggle-going\"\n        (if (eq @viewType \"going\") \"btn-danger\" \"btn-default\")\n      }}\n      @action={{fn @toggle \"going\"}}\n    />\n  \n    <DButton\n      @label=\"discourse_calendar.discourse_post_event.models.invitee.status.interested\"\n      class={{concat-class\n        \"btn toggle-interested\"\n        (if (eq @viewType \"interested\") \"btn-danger\" \"btn-default\")\n      }}\n      @action={{fn @toggle \"interested\"}}\n    />\n  \n    <DButton\n      @label=\"discourse_calendar.discourse_post_event.models.invitee.status.not_going\"\n      class={{concat-class\n        \"btn toggle-not-going\"\n        (if (eq @viewType \"not_going\") \"btn-danger\" \"btn-default\")\n      }}\n      @action={{fn @toggle \"not_going\"}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"b3Sw/XJY\",\n    \"block\": \"[[[10,0],[14,0,\\\"invitees-type-filter\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],[[16,0,[28,[37,1],[\\\"btn toggle-going\\\",[52,[28,[37,3],[[30,1],\\\"going\\\"],null],\\\"btn-danger\\\",\\\"btn-default\\\"]],null]]],[[\\\"@label\\\",\\\"@action\\\"],[\\\"discourse_calendar.discourse_post_event.models.invitee.status.going\\\",[28,[37,4],[[30,2],\\\"going\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,0],[[16,0,[28,[37,1],[\\\"btn toggle-interested\\\",[52,[28,[37,3],[[30,1],\\\"interested\\\"],null],\\\"btn-danger\\\",\\\"btn-default\\\"]],null]]],[[\\\"@label\\\",\\\"@action\\\"],[\\\"discourse_calendar.discourse_post_event.models.invitee.status.interested\\\",[28,[37,4],[[30,2],\\\"interested\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,0],[[16,0,[28,[37,1],[\\\"btn toggle-not-going\\\",[52,[28,[37,3],[[30,1],\\\"not_going\\\"],null],\\\"btn-danger\\\",\\\"btn-default\\\"]],null]]],[[\\\"@label\\\",\\\"@action\\\"],[\\\"discourse_calendar.discourse_post_event.models.invitee.status.not_going\\\",[28,[37,4],[[30,2],\\\"not_going\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"@viewType\\\",\\\"@toggle\\\"],false,[\\\"d-button\\\",\\\"concat-class\\\",\\\"if\\\",\\\"eq\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/toggle-invitees.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/upcoming-events-calendar\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"rsvp\", \"discourse/lib/load-script\", \"discourse/models/category\", \"discourse-common/lib/get-url\", \"discourse/plugins/discourse-calendar/discourse/helpers/format-event-name\", \"discourse/plugins/discourse-calendar/discourse/lib/calendar-locale\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\", \"discourse/plugins/discourse-calendar/discourse/lib/popover\", \"@ember/template-factory\"], function (_exports, _component, _runloop, _rsvp, _loadScript, _category, _getUrl, _formatEventName, _calendarLocale, _guessBestDateFormat, _popover, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div id=\"upcoming-events-calendar\"></div>\n  */\n  {\n    \"id\": \"unERWDqE\",\n    \"block\": \"[[[10,0],[14,1,\\\"upcoming-events-calendar\\\"],[12],[13]],[],false,[]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/components/upcoming-events-calendar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: \"\",\n    events: null,\n    init() {\n      this._super(...arguments);\n      this._calendar = null;\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      this._calendar && this._calendar.destroy();\n      this._calendar = null;\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this._renderCalendar();\n    },\n    addRecurrentEvents(events) {\n      events.forEach(event => {\n        event.upcoming_dates?.forEach(upcomingDate => {\n          events.push(Object.assign({}, event, {\n            starts_at: upcomingDate.starts_at,\n            ends_at: upcomingDate.ends_at,\n            upcoming_dates: []\n          }));\n        });\n      });\n      return events;\n    },\n    _renderCalendar() {\n      const siteSettings = this.site.siteSettings;\n      const calendarNode = document.getElementById(\"upcoming-events-calendar\");\n      if (!calendarNode) {\n        return;\n      }\n      calendarNode.innerHTML = \"\";\n      this._loadCalendar().then(() => {\n        const fullCalendar = new window.FullCalendar.Calendar(calendarNode, {\n          locale: (0, _calendarLocale.getCurrentBcp47Locale)(),\n          buttonText: (0, _calendarLocale.getCalendarButtonsText)(),\n          eventClick: function () {\n            (0, _popover.destroyPopover)();\n          },\n          eventPositioned: info => {\n            if (siteSettings.events_max_rows === 0) {\n              return;\n            }\n            let fcContent = info.el.querySelector(\".fc-content\");\n            let computedStyle = window.getComputedStyle(fcContent);\n            let lineHeight = parseInt(computedStyle.lineHeight, 10);\n            if (lineHeight === 0) {\n              lineHeight = 20;\n            }\n            let maxHeight = lineHeight * siteSettings.events_max_rows;\n            if (fcContent) {\n              fcContent.style.maxHeight = `${maxHeight}px`;\n            }\n            let fcTitle = info.el.querySelector(\".fc-title\");\n            if (fcTitle) {\n              fcTitle.style.overflow = \"hidden\";\n              fcTitle.style.whiteSpace = \"pre-wrap\";\n            }\n            fullCalendar.updateSize();\n          },\n          eventMouseEnter: function (_ref) {\n            let {\n              event,\n              jsEvent\n            } = _ref;\n            (0, _popover.destroyPopover)();\n            const htmlContent = event.title;\n            (0, _popover.buildPopover)(jsEvent, htmlContent);\n          },\n          eventMouseLeave: function () {\n            (0, _popover.destroyPopover)();\n          }\n        });\n        this._calendar = fullCalendar;\n        const tagsColorsMap = JSON.parse(siteSettings.map_events_to_color);\n        const originalEventAndRecurrents = this.addRecurrentEvents(this.events.content);\n        (originalEventAndRecurrents || []).forEach(event => {\n          const {\n            starts_at,\n            ends_at,\n            post,\n            category_id\n          } = event;\n          let backgroundColor;\n          if (post.topic.tags) {\n            const tagColorEntry = tagsColorsMap.find(entry => entry.type === \"tag\" && post.topic.tags.includes(entry.slug));\n            backgroundColor = tagColorEntry?.color;\n          }\n          if (!backgroundColor) {\n            const categoryColorEntry = tagsColorsMap.find(entry => entry.type === \"category\" && entry.slug === post.topic.category_slug);\n            backgroundColor = categoryColorEntry?.color;\n          }\n          const categoryColor = _category.default.findById(category_id)?.color;\n          if (!backgroundColor && categoryColor) {\n            backgroundColor = `#${categoryColor}`;\n          }\n          let classNames;\n          if (moment(ends_at || starts_at).isBefore(moment())) {\n            classNames = \"fc-past-event\";\n          }\n          this._calendar.addEvent({\n            title: (0, _formatEventName.formatEventName)(event),\n            start: starts_at,\n            end: ends_at || starts_at,\n            allDay: !(0, _guessBestDateFormat.isNotFullDayEvent)(moment(starts_at), moment(ends_at)),\n            url: (0, _getUrl.default)(`/t/-/${post.topic.id}/${post.post_number}`),\n            backgroundColor,\n            classNames\n          });\n        });\n        this._calendar.render();\n      });\n    },\n    _loadCalendar() {\n      return new _rsvp.Promise(resolve => {\n        (0, _loadScript.default)(\"/plugins/discourse-calendar/javascripts/fullcalendar-with-moment-timezone.min.js\").then(() => {\n          (0, _runloop.schedule)(\"afterRender\", () => {\n            if (this.isDestroying || this.isDestroyed) {\n              return;\n            }\n            resolve();\n          });\n        });\n      });\n    }\n  }));\n});","define(\"discourse/plugins/discourse-calendar/discourse/components/upcoming-events-list\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/routing\", \"@ember/service\", \"discourse/components/conditional-loading-spinner\", \"discourse/components/d-button\", \"discourse/lib/ajax\", \"discourse-i18n\", \"truth-helpers/helpers/or\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _routing, _service, _conditionalLoadingSpinner, _dButton, _ajax, _discourseI18n, _or, _guessBestDateFormat, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.DEFAULT_TIME_FORMAT = _exports.DEFAULT_MONTH_FORMAT = _exports.DEFAULT_DATE_FORMAT = void 0;\n  const DEFAULT_MONTH_FORMAT = _exports.DEFAULT_MONTH_FORMAT = \"MMMM YYYY\";\n  const DEFAULT_DATE_FORMAT = _exports.DEFAULT_DATE_FORMAT = \"dddd, MMM D\";\n  const DEFAULT_TIME_FORMAT = _exports.DEFAULT_TIME_FORMAT = \"LT\";\n  const DEFAULT_UPCOMING_DAYS = 180;\n  const DEFAULT_COUNT = 8;\n  class UpcomingEventsList extends _component.default {\n    static #_ = (() => dt7948.g(this.prototype, \"appEvents\", [_service.inject]))();\n    #appEvents = (() => (dt7948.i(this, \"appEvents\"), void 0))();\n    static #_2 = (() => dt7948.g(this.prototype, \"siteSettings\", [_service.inject]))();\n    #siteSettings = (() => (dt7948.i(this, \"siteSettings\"), void 0))();\n    static #_3 = (() => dt7948.g(this.prototype, \"router\", [_service.inject]))();\n    #router = (() => (dt7948.i(this, \"router\"), void 0))();\n    static #_4 = (() => dt7948.g(this.prototype, \"isLoading\", [_tracking.tracked], function () {\n      return true;\n    }))();\n    #isLoading = (() => (dt7948.i(this, \"isLoading\"), void 0))();\n    static #_5 = (() => dt7948.g(this.prototype, \"hasError\", [_tracking.tracked], function () {\n      return false;\n    }))();\n    #hasError = (() => (dt7948.i(this, \"hasError\"), void 0))();\n    static #_6 = (() => dt7948.g(this.prototype, \"eventsByMonth\", [_tracking.tracked], function () {\n      return {};\n    }))();\n    #eventsByMonth = (() => (dt7948.i(this, \"eventsByMonth\"), void 0))();\n    monthFormat = (() => this.args.params?.monthFormat ?? DEFAULT_MONTH_FORMAT)();\n    dateFormat = (() => this.args.params?.dateFormat ?? DEFAULT_DATE_FORMAT)();\n    timeFormat = (() => this.args.params?.timeFormat ?? DEFAULT_TIME_FORMAT)();\n    count = (() => this.args.params?.count ?? DEFAULT_COUNT)();\n    upcomingDays = (() => this.args.params?.upcomingDays ?? DEFAULT_UPCOMING_DAYS)();\n    title = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events_list.title\"))();\n    emptyMessage = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events_list.empty\"))();\n    allDayLabel = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events_list.all_day\"))();\n    errorMessage = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events_list.error\"))();\n    viewAllLabel = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events_list.view_all\"))();\n    constructor() {\n      super(...arguments);\n      this.appEvents.on(\"page:changed\", this, this.updateEventsList);\n    }\n    get shouldRender() {\n      if (!this.categoryId) {\n        return false;\n      }\n      const eventSettings1 = this.siteSettings.events_calendar_categories.split(\"|\");\n      return eventSettings1.includes(this.categoryId.toString());\n    }\n    get categoryId() {\n      return this.router.currentRoute.attributes?.category?.id;\n    }\n    get hasEmptyResponse() {\n      return !this.isLoading && !this.hasError && Object.keys(this.eventsByMonth).length === 0;\n    }\n    async updateEventsList() {\n      this.isLoading = true;\n      this.hasError = false;\n      try {\n        const {\n          events: events1\n        } = await (0, _ajax.ajax)(\"/discourse-post-event/events\", {\n          data: {\n            category_id: this.categoryId,\n            limit: this.count,\n            before: moment().add(this.upcomingDays, \"days\").toISOString()\n          }\n        });\n        this.eventsByMonth = this.groupByMonthAndDay(events1);\n      } catch {\n        this.hasError = true;\n      } finally {\n        this.isLoading = false;\n      }\n    }\n    static #_7 = (() => dt7948.n(this.prototype, \"updateEventsList\", [_object.action]))();\n    formatMonth(month1) {\n      return moment(month1, \"YYYY-MM\").format(this.monthFormat);\n    }\n    static #_8 = (() => dt7948.n(this.prototype, \"formatMonth\", [_object.action]))();\n    formatDate(month1, day1) {\n      return moment(`${month1}-${day1}`, \"YYYY-MM-DD\").format(this.dateFormat);\n    }\n    static #_9 = (() => dt7948.n(this.prototype, \"formatDate\", [_object.action]))();\n    formatTime(_ref) {\n      let {\n        starts_at: starts_at1,\n        ends_at: ends_at1\n      } = _ref;\n      return (0, _guessBestDateFormat.isNotFullDayEvent)(moment(starts_at1), moment(ends_at1)) ? moment(starts_at1).format(this.timeFormat) : this.allDayLabel;\n    }\n    static #_10 = (() => dt7948.n(this.prototype, \"formatTime\", [_object.action]))();\n    groupByMonthAndDay(data1) {\n      return data1.reduce((result1, item1) => {\n        const date1 = new Date(item1.starts_at);\n        const year1 = date1.getFullYear();\n        const month1 = date1.getMonth() + 1;\n        const day1 = date1.getDate();\n        const monthKey1 = `${year1}-${month1}`;\n        result1[monthKey1] = result1[monthKey1] ?? {};\n        result1[monthKey1][day1] = result1[monthKey1][day1] ?? [];\n        result1[monthKey1][day1].push(item1);\n        return result1;\n      }, {});\n    }\n    static #_11 = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        {{#if this.shouldRender}}\n          <div class=\"upcoming-events-list\">\n            <h3 class=\"upcoming-events-list__heading\">\n              {{this.title}}\n            </h3>\n    \n            <div class=\"upcoming-events-list__container\">\n              <ConditionalLoadingSpinner @condition={{this.isLoading}} />\n    \n              {{#if this.hasEmptyResponse}}\n                <div class=\"upcoming-events-list__empty-message\">\n                  {{this.emptyMessage}}\n                </div>\n              {{/if}}\n    \n              {{#if this.hasError}}\n                <div class=\"upcoming-events-list__error-message\">\n                  {{this.errorMessage}}\n                </div>\n                <DButton\n                  @action={{this.updateEventsList}}\n                  @label=\"discourse_calendar.discourse_post_event.upcoming_events_list.try_again\"\n                  class=\"btn-link upcoming-events-list__try-again\"\n                />\n              {{/if}}\n    \n              {{#unless this.isLoading}}\n                {{#each-in this.eventsByMonth as |month monthData|}}\n                  {{#if this.monthFormat}}\n                    <h4 class=\"upcoming-events-list__formatted-month\">\n                      {{this.formatMonth month}}\n                    </h4>\n                  {{/if}}\n    \n                  {{#each-in monthData as |day events|}}\n                    <div class=\"upcoming-events-list__day-section\">\n                      <div class=\"upcoming-events-list__formatted-day\">\n                        {{this.formatDate month day}}\n                      </div>\n    \n                      {{#each events as |event|}}\n                        <a\n                          class=\"upcoming-events-list__event\"\n                          href={{event.post.url}}\n                        >\n                          <div class=\"upcoming-events-list__event-time\">\n                            {{this.formatTime event}}\n                          </div>\n                          <div class=\"upcoming-events-list__event-name\">\n                            {{or event.name event.post.topic.title}}\n                          </div>\n                        </a>\n                      {{/each}}\n                    </div>\n                  {{/each-in}}\n                {{/each-in}}\n              {{/unless}}\n            </div>\n    \n            <div class=\"upcoming-events-list__footer\">\n              <LinkTo\n                @route=\"discourse-post-event-upcoming-events\"\n                class=\"upcoming-events-list__view-all\"\n              >\n                {{this.viewAllLabel}}\n              </LinkTo>\n            </div>\n          </div>\n        {{/if}}\n      \n    */\n    {\n      \"id\": \"DSV9o1dE\",\n      \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"shouldRender\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"upcoming-events-list\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"upcoming-events-list__heading\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"upcoming-events-list__container\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[32,0],null,[[\\\"@condition\\\"],[[30,0,[\\\"isLoading\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasEmptyResponse\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"upcoming-events-list__empty-message\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"emptyMessage\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasError\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"upcoming-events-list__error-message\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"errorMessage\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[32,1],[[24,0,\\\"btn-link upcoming-events-list__try-again\\\"]],[[\\\"@action\\\",\\\"@label\\\"],[[30,0,[\\\"updateEventsList\\\"]],\\\"discourse_calendar.discourse_post_event.upcoming_events_list.try_again\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[42,[28,[31,3],[[30,0,[\\\"eventsByMonth\\\"]]],null],null,[[[41,[30,0,[\\\"monthFormat\\\"]],[[[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"upcoming-events-list__formatted-month\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[30,0,[\\\"formatMonth\\\"]],[[30,2]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[31,3],[[30,1]],null],null,[[[1,\\\"                \\\"],[10,0],[14,0,\\\"upcoming-events-list__day-section\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"upcoming-events-list__formatted-day\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[30,0,[\\\"formatDate\\\"]],[[30,2],[30,4]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[31,4],[[28,[31,4],[[30,3]],null]],null],null,[[[1,\\\"                    \\\"],[10,3],[14,0,\\\"upcoming-events-list__event\\\"],[15,6,[30,5,[\\\"post\\\",\\\"url\\\"]]],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"upcoming-events-list__event-time\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[30,0,[\\\"formatTime\\\"]],[[30,5]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"upcoming-events-list__event-name\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[32,2],[[30,5,[\\\"name\\\"]],[30,5,[\\\"post\\\",\\\"topic\\\",\\\"title\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null]],[1,2]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"upcoming-events-list__footer\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[32,3],[[24,0,\\\"upcoming-events-list__view-all\\\"]],[[\\\"@route\\\"],[\\\"discourse-post-event-upcoming-events\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"viewAllLabel\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[\\\"monthData\\\",\\\"month\\\",\\\"events\\\",\\\"day\\\",\\\"event\\\"],false,[\\\"if\\\",\\\"unless\\\",\\\"each\\\",\\\"-each-in\\\",\\\"-track-array\\\"]]\",\n      \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/components/upcoming-events-list.js\",\n      \"scope\": () => [_conditionalLoadingSpinner.default, _dButton.default, _or.default, _routing.LinkTo],\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = UpcomingEventsList;\n});","define(\"discourse/plugins/discourse-calendar/discourse/connectors/after-user-name/holiday-flair\", [\"exports\", \"discourse/lib/text\"], function (_exports, _text) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    shouldRender(args, context) {\n      return context.siteSettings.calendar_enabled && context.site.users_on_holiday && context.site.users_on_holiday.includes(args.user.username);\n    },\n    setupComponent(args, component) {\n      const holidayEmojiName = this.get(\"siteSettings.holiday_status_emoji\") || \"date\";\n      component.setProperties({\n        holidayEmojiName: `:${holidayEmojiName}:`,\n        holidayEmoji: (0, _text.emojiUrlFor)(holidayEmojiName)\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/connectors/before-topic-list-body/category-calendar\", [\"exports\", \"@glimmer/component\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class CategoryCalendar extends _component.default {\n    static shouldRender(_1, ctx1) {\n      return ctx1.siteSettings.calendar_categories_outlet === \"before-topic-list-body\";\n    }\n    static #_ = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        <div class=\"before-topic-list-body-outlet category-calendar\"></div>\n      \n    */\n    {\n      \"id\": \"6I8HXBEG\",\n      \"block\": \"[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"before-topic-list-body-outlet category-calendar\\\"],[12],[13],[1,\\\"\\\\n  \\\"]],[],false,[]]\",\n      \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/connectors/before-topic-list-body/category-calendar.js\",\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = CategoryCalendar;\n});","define(\"discourse/plugins/discourse-calendar/discourse/connectors/discovery-list-container-top/category-events-calendar\", [\"exports\", \"@glimmer/component\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class CategoryEventsCalendar extends _component.default {\n    static shouldRender(_1, ctx1) {\n      return ctx1.siteSettings.calendar_categories_outlet === \"discovery-list-container-top\";\n    }\n    static #_ = (() => (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n    /*\n      \n        <div id=\"category-events-calendar\"></div>\n      \n    */\n    {\n      \"id\": \"8lMjrHx6\",\n      \"block\": \"[[[1,\\\"\\\\n    \\\"],[10,0],[14,1,\\\"category-events-calendar\\\"],[12],[13],[1,\\\"\\\\n  \\\"]],[],false,[]]\",\n      \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/connectors/discovery-list-container-top/category-events-calendar.js\",\n      \"isStrictMode\": true\n    }), this))();\n  }\n  _exports.default = CategoryEventsCalendar;\n});","define(\"discourse/plugins/discourse-calendar/discourse/connectors/header-topic-title-suffix/event-date-container\", [\"exports\", \"discourse/plugins/discourse-calendar/discourse/components/event-date\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _eventDate, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const EventDateContainer = (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n  /*\n    \n    <EventDate @topic={{@outletArgs.topic}} />\n  \n  */\n  {\n    \"id\": \"vrer3ucl\",\n    \"block\": \"[[[1,\\\"\\\\n  \\\"],[8,[32,0],null,[[\\\"@topic\\\"],[[30,1,[\\\"topic\\\"]]]],null],[1,\\\"\\\\n\\\"]],[\\\"@outletArgs\\\"],false,[]]\",\n    \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/connectors/header-topic-title-suffix/event-date-container.js\",\n    \"scope\": () => [_eventDate.default],\n    \"isStrictMode\": true\n  }), (0, _templateOnly.default)());\n  var _default = _exports.default = EventDateContainer;\n});","define(\"discourse/plugins/discourse-calendar/discourse/connectors/user-custom-preferences/region\", [\"exports\", \"@ember/object\", \"discourse/plugins/discourse-calendar/discourse/lib/regions\"], function (_exports, _object, _regions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    setupComponent(args, component) {\n      component.setProperties(dt7948.p({\n        onChange(value) {\n          this.model.set(\"custom_fields.holidays-region\", value);\n        },\n        useCurrentRegion() {\n          this.model.set(\"custom_fields.holidays-region\", _regions.TIME_ZONE_TO_REGION[moment.tz.guess()] || \"us\");\n        }\n      }, [[\"method\", \"onChange\", [_object.action]], [\"method\", \"useCurrentRegion\", [_object.action]]]));\n    },\n    shouldRender(args, component) {\n      return component.siteSettings.calendar_enabled;\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/controllers/admin-plugins-calendar\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"discourse/lib/ajax\", \"discourse/lib/ajax-error\"], function (_exports, _controller, _object, _ajax, _ajaxError) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _controller.default.extend(dt7948.p({\n    selectedRegion: null,\n    loading: false,\n    async getHolidays(region_code) {\n      if (this.loading) {\n        return;\n      }\n      this.set(\"selectedRegion\", region_code);\n      this.set(\"loading\", true);\n      return (0, _ajax.ajax)(`/admin/discourse-calendar/holiday-regions/${region_code}/holidays`).then(response => {\n        this.model.set(\"holidays\", response.holidays);\n      }).catch(_ajaxError.popupAjaxError).finally(() => this.set(\"loading\", false));\n    }\n  }, [[\"method\", \"getHolidays\", [_object.action]]]));\n});","define(\"discourse/plugins/discourse-calendar/discourse/controllers/discourse-post-event-upcoming-events-index\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _controller.default.extend({});\n});","define(\"discourse/plugins/discourse-calendar/discourse/discourse-event-upcoming-events-route-map\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default() {\n    this.route(\"discourse-post-event-upcoming-events\", {\n      path: \"/upcoming-events\"\n    }, function () {\n      this.route(\"index\", {\n        path: \"/\"\n      });\n    });\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/helpers/format-event-name\", [\"exports\", \"discourse-common/lib/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatEventName = formatEventName;\n  function formatEventName(event) {\n    return event.name || event.post.topic.title;\n  }\n  var _default = _exports.default = (0, _helpers.htmlHelper)(event => formatEventName(event));\n});","define(\"discourse/plugins/discourse-calendar/discourse/helpers/format-future-date\", [\"exports\", \"discourse-common/lib/helpers\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\"], function (_exports, _helpers, _guessBestDateFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _helpers.htmlHelper)(date => {\n    date = moment.utc(date).tz(moment.tz.guess());\n    const format = (0, _guessBestDateFormat.default)(date);\n    return date.format(format);\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/helpers/render-invitee\", [\"exports\", \"@ember/template\", \"discourse/helpers/user-avatar\", \"discourse/lib/url\", \"discourse/lib/utilities\", \"discourse-common/lib/helpers\"], function (_exports, _template, _userAvatar, _url, _utilities, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _helpers.htmlHelper)(invitee => {\n    const path = (0, _url.userPath)(invitee.user.username);\n    const template = `\n    <a href=\"${path}\" data-user-card=\"${invitee.user.username}\">\n      <span class=\"user\">\n        ${(0, _userAvatar.renderAvatar)(invitee.user, {\n      imageSize: \"medium\"\n    })}\n        <span class=\"username\">\n         ${(0, _utilities.formatUsername)(invitee.user.username)}\n        </span>\n      </span>\n    </a>\n  `;\n    return (0, _template.htmlSafe)(template);\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/add-event-ui-builder\", [\"exports\", \"@ember/object\", \"discourse/lib/plugin-api\", \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-builder\", \"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event\"], function (_exports, _object, _pluginApi, _postEventBuilder, _discoursePostEvent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function initializeEventBuilder(api) {\n    const currentUser = api.getCurrentUser();\n    const store = api.container.lookup(\"service:store\");\n    const modal = api.container.lookup(\"service:modal\");\n    api.addComposerToolbarPopupMenuOption({\n      action: toolbarEvent => {\n        const eventModel = store.createRecord(\"discourse-post-event-event\");\n        eventModel.setProperties({\n          status: \"public\",\n          custom_fields: _object.default.create({}),\n          starts_at: moment(),\n          timezone: moment.tz.guess()\n        });\n        modal.show(_postEventBuilder.default, {\n          model: {\n            event: eventModel,\n            toolbarEvent,\n            updateCustomField: (field, value) => (0, _discoursePostEvent.updateCustomField)(eventModel, field, value),\n            updateEventStatus: status => (0, _discoursePostEvent.updateEventStatus)(eventModel, status),\n            updateEventRawInvitees: rawInvitees => (0, _discoursePostEvent.updateEventRawInvitees)(eventModel, rawInvitees),\n            removeReminder: reminder => (0, _discoursePostEvent.removeReminder)(eventModel, reminder),\n            addReminder: () => (0, _discoursePostEvent.addReminder)(eventModel),\n            onChangeDates: changes => (0, _discoursePostEvent.onChangeDates)(eventModel, changes),\n            updateTimezone: (newTz, startsAt, endsAt) => (0, _discoursePostEvent.updateTimezone)(eventModel, newTz, startsAt, endsAt)\n          }\n        });\n      },\n      group: \"insertions\",\n      icon: \"calendar-day\",\n      label: \"discourse_calendar.discourse_post_event.builder_modal.attach\",\n      condition: composer => {\n        if (!currentUser || !currentUser.can_create_discourse_post_event) {\n          return false;\n        }\n        const composerModel = composer.model;\n        return composerModel && !composerModel.replyingToTopic && (composerModel.topicFirstPost || composerModel.creatingPrivateMessage || composerModel.editingPost && composerModel.post && composerModel.post.post_number === 1);\n      }\n    });\n  }\n  var _default = _exports.default = {\n    name: \"add-post-event-builder\",\n    initialize(container) {\n      const siteSettings = container.lookup(\"service:site-settings\");\n      if (siteSettings.discourse_post_event_enabled) {\n        (0, _pluginApi.withPluginApi)(\"0.8.7\", initializeEventBuilder);\n      }\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/add-upcoming-events-to-sidebar\", [\"exports\", \"discourse/lib/plugin-api\", \"discourse-i18n\"], function (_exports, _pluginApi, _discourseI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: \"add-upcoming-events-to-sidebar\",\n    initialize(container) {\n      const siteSettings = container.lookup(\"service:site-settings\");\n      if (siteSettings.discourse_post_event_enabled && siteSettings.sidebar_show_upcoming_events) {\n        (0, _pluginApi.withPluginApi)(\"0.8.7\", api => {\n          api.addCommunitySectionLink(baseSectionLink => {\n            return class UpcomingEventsSectionLink extends baseSectionLink {\n              name = \"upcoming-events\";\n              route = \"discourse-post-event-upcoming-events\";\n              text = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events.title\"))();\n              title = (() => _discourseI18n.default.t(\"discourse_calendar.discourse_post_event.upcoming_events.title\"))();\n            };\n          });\n        });\n      }\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/disable-sort\", [\"exports\", \"discourse/lib/plugin-api\", \"discourse-common/utils/decorators\"], function (_exports, _pluginApi, _decorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: \"disable-sort\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        api.modifyClass(\"component:topic-list\", dt7948.p({\n          pluginId: \"discourse-calendar\",\n          sortable(category, disable_resorting_on_categories_enabled) {\n            let disableSort = false;\n            if (disable_resorting_on_categories_enabled && category?.custom_fields) {\n              disableSort = !!category.custom_fields[\"disable_topic_resorting\"];\n            }\n            return !!this.changeSort && !disableSort;\n          }\n        }, [[\"method\", \"sortable\", [(0, _decorators.default)(\"category\", \"siteSettings.disable_resorting_on_categories_enabled\")]]]));\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/discourse-calendar\", [\"exports\", \"@ember/utils\", \"jquery\", \"rsvp\", \"discourse/lib/ajax\", \"discourse/lib/load-script\", \"discourse/lib/plugin-api\", \"discourse/lib/text\", \"discourse/lib/url\", \"discourse/lib/utilities\", \"discourse/models/category\", \"discourse-common/lib/get-url\", \"discourse-common/lib/icon-library\", \"I18n\", \"discourse/plugins/discourse-calendar/discourse/helpers/format-event-name\", \"discourse/plugins/discourse-calendar/discourse/lib/calendar-locale\", \"discourse/plugins/discourse-calendar/discourse/lib/colors\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\", \"discourse/plugins/discourse-calendar/discourse/lib/popover\"], function (_exports, _utils, _jquery, _rsvp, _ajax, _loadScript, _pluginApi, _text, _url, _utilities, _category, _getUrl, _iconLibrary, _I18n, _formatEventName, _calendarLocale, _colors, _guessBestDateFormat, _popover) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function loadFullCalendar() {\n    return (0, _loadScript.default)(\"/plugins/discourse-calendar/javascripts/fullcalendar-with-moment-timezone.min.js\");\n  }\n  function initializeDiscourseCalendar(api) {\n    const siteSettings = api.container.lookup(\"service:site-settings\");\n    if (siteSettings.login_required && !api.getCurrentUser()) {\n      return;\n    }\n    let enableTimezoneOffset = siteSettings.default_timezone_offset_user_option;\n    let _topicController;\n    const outletName = siteSettings.calendar_categories_outlet;\n    const site = api.container.lookup(\"service:site\");\n    const isMobileView = site && site.mobileView;\n    let selector = `.${outletName}-outlet`;\n    if (outletName === \"before-topic-list-body\") {\n      selector = `.topic-list:not(.shared-drafts) .${outletName}-outlet`;\n    }\n    api.onPageChange(url => {\n      const categoryCalendarNode = document.querySelector(`${selector}.category-calendar`);\n      if (categoryCalendarNode) {\n        categoryCalendarNode.innerHTML = \"\";\n      }\n      const categoryEventNode = document.getElementById(\"category-events-calendar\");\n      if (categoryEventNode) {\n        categoryEventNode.innerHTML = \"\";\n      }\n      const browsedCategory = _category.default.findBySlugPathWithID(url.split(\"?\")[0]);\n      if (!browsedCategory) {\n        return;\n      }\n      const settings = siteSettings.calendar_categories.split(\"|\").filter(Boolean).map(stringSetting => {\n        const data = {};\n        stringSetting.split(\";\").filter(Boolean).forEach(s => {\n          const parts = s.split(\"=\");\n          data[parts[0]] = parts[1];\n        });\n        return data;\n      });\n      const categorySetting = settings.findBy(\"categoryId\", browsedCategory.id.toString());\n      if (categoryCalendarNode && categorySetting && categorySetting.postId) {\n        const postId = categorySetting.postId;\n        categoryCalendarNode.innerHTML = '<div class=\"calendar\"><div class=\"spinner medium\"></div></div>';\n        loadFullCalendar().then(() => {\n          const options = [`postId=${postId}`];\n          const optionals = [\"weekends\", \"tzPicker\", \"defaultView\"];\n          optionals.forEach(optional => {\n            if ((0, _utils.isPresent)(categorySetting[optional])) {\n              options.push(`${optional}=${(0, _utilities.escapeExpression)(categorySetting[optional])}`);\n            }\n          });\n          const rawCalendar = `[calendar ${options.join(\" \")}]\\n[/calendar]`;\n          const cookRaw = (0, _text.cook)(rawCalendar);\n          const loadPost = (0, _ajax.ajax)(`/posts/${postId}.json`);\n          _rsvp.Promise.all([cookRaw, loadPost]).then(results => {\n            const cooked = results[0];\n            const post = results[1];\n            categoryCalendarNode.innerHTML = cooked.toString();\n            render((0, _jquery.default)(\".calendar\"), post);\n          });\n        });\n      } else {\n        if (!categoryEventNode) {\n          return;\n        }\n        const eventSettings = siteSettings.events_calendar_categories.split(\"|\");\n        const foundCategory = eventSettings.find(k => k === browsedCategory.id.toString());\n        if (foundCategory) {\n          loadFullCalendar().then(() => {\n            let fullCalendar = new window.FullCalendar.Calendar(categoryEventNode, {\n              eventClick: function () {\n                (0, _popover.destroyPopover)();\n              },\n              locale: (0, _calendarLocale.getCurrentBcp47Locale)(),\n              buttonText: (0, _calendarLocale.getCalendarButtonsText)(),\n              eventPositioned: info => {\n                if (siteSettings.events_max_rows === 0) {\n                  return;\n                }\n                let fcContent = info.el.querySelector(\".fc-content\");\n                let computedStyle = window.getComputedStyle(fcContent);\n                let lineHeight = parseInt(computedStyle.lineHeight, 10);\n                if (lineHeight === 0) {\n                  lineHeight = 20;\n                }\n                let maxHeight = lineHeight * siteSettings.events_max_rows;\n                if (fcContent) {\n                  fcContent.style.maxHeight = `${maxHeight}px`;\n                }\n                let fcTitle = info.el.querySelector(\".fc-title\");\n                if (fcTitle) {\n                  fcTitle.style.overflow = \"hidden\";\n                  fcTitle.style.whiteSpace = \"pre-wrap\";\n                }\n                fullCalendar.updateSize();\n              },\n              eventMouseEnter: function (_ref) {\n                let {\n                  event,\n                  jsEvent\n                } = _ref;\n                (0, _popover.destroyPopover)();\n                const htmlContent = event.title;\n                (0, _popover.buildPopover)(jsEvent, htmlContent);\n              },\n              eventMouseLeave: function () {\n                (0, _popover.destroyPopover)();\n              }\n            });\n            const params = {\n              category_id: browsedCategory.id,\n              include_subcategories: true\n            };\n            if (siteSettings.include_expired_events_on_calendar) {\n              params.include_expired = true;\n            }\n            const loadEvents = (0, _ajax.ajax)(`/discourse-post-event/events`, {\n              data: params\n            });\n            _rsvp.Promise.all([loadEvents]).then(results => {\n              const events = results[0];\n              const tagsColorsMap = JSON.parse(siteSettings.map_events_to_color);\n              events[Object.keys(events)[0]].forEach(event => {\n                const {\n                  starts_at,\n                  ends_at,\n                  post,\n                  category_id\n                } = event;\n                let backgroundColor;\n                if (post.topic.tags) {\n                  const tagColorEntry = tagsColorsMap.find(entry => entry.type === \"tag\" && post.topic.tags.includes(entry.slug));\n                  backgroundColor = tagColorEntry ? tagColorEntry.color : null;\n                }\n                if (!backgroundColor) {\n                  const categoryColorFromMap = tagsColorsMap.find(entry => entry.type === \"category\" && entry.slug === post.topic.category_slug)?.color;\n                  backgroundColor = categoryColorFromMap || `#${_category.default.findById(category_id)?.color}`;\n                }\n                let classNames;\n                if (moment(ends_at || starts_at).isBefore(moment())) {\n                  classNames = \"fc-past-event\";\n                }\n                fullCalendar.addEvent({\n                  title: (0, _formatEventName.formatEventName)(event),\n                  start: starts_at,\n                  end: ends_at || starts_at,\n                  allDay: !(0, _guessBestDateFormat.isNotFullDayEvent)(moment(starts_at), moment(ends_at)),\n                  url: (0, _getUrl.default)(`/t/-/${post.topic.id}/${post.post_number}`),\n                  backgroundColor,\n                  classNames\n                });\n              });\n              fullCalendar.render();\n            });\n          });\n        }\n      }\n    });\n    api.decorateCooked(($elem, helper) => attachCalendar($elem, helper), {\n      onlyStream: true,\n      id: \"discourse-calendar\"\n    });\n    api.registerCustomPostMessageCallback(\"calendar_change\", topicController => {\n      const stream = topicController.get(\"model.postStream\");\n      const post = stream.findLoadedPost(stream.get(\"firstPostId\"));\n      const $op = (0, _jquery.default)(\".topic-post article#post_1\");\n      const $calendar = $op.find(\".calendar\").first();\n      if (post && $calendar.length > 0) {\n        (0, _ajax.ajax)(`/posts/${post.id}.json`).then(() => loadFullCalendar().then(() => render($calendar, post)));\n      }\n    });\n    if (api.registerNotificationTypeRenderer) {\n      api.registerNotificationTypeRenderer(\"event_reminder\", NotificationTypeBase => {\n        return class extends NotificationTypeBase {\n          get linkTitle() {\n            if (this.notification.data.title) {\n              return _I18n.default.t(this.notification.data.title);\n            } else {\n              return super.linkTitle;\n            }\n          }\n          get icon() {\n            return \"calendar-day\";\n          }\n          get label() {\n            return _I18n.default.t(this.notification.data.message);\n          }\n          get description() {\n            return this.notification.data.topic_title;\n          }\n        };\n      });\n      api.registerNotificationTypeRenderer(\"event_invitation\", NotificationTypeBase => {\n        return class extends NotificationTypeBase {\n          get icon() {\n            return \"calendar-day\";\n          }\n          get label() {\n            if (this.notification.data.message === \"discourse_calendar.discourse_post_event.notifications.invite_user_predefined_attendance_notification\") {\n              return _I18n.default.t(this.notification.data.message, {\n                username: this.username\n              });\n            }\n            return super.label;\n          }\n          get description() {\n            return this.notification.data.topic_title;\n          }\n        };\n      });\n    }\n    function render($calendar, post) {\n      $calendar = $calendar.empty();\n      const timezone = _getTimeZone($calendar, api.getCurrentUser());\n      const calendar = _buildCalendar($calendar, timezone);\n      const isStatic = $calendar.attr(\"data-calendar-type\") === \"static\";\n      const fullDay = $calendar.attr(\"data-calendar-full-day\") === \"true\";\n      if (isStatic) {\n        calendar.render();\n        _setStaticCalendarEvents(calendar, $calendar, post);\n      } else {\n        _setDynamicCalendarEvents(calendar, post, fullDay, timezone);\n        calendar.render();\n        _setDynamicCalendarOptions(calendar, $calendar);\n      }\n      const resetDynamicEvents = () => {\n        const selectedTimezone = calendar.getOption(\"timeZone\");\n        calendar.getEvents().forEach(event => event.remove());\n        _setDynamicCalendarEvents(calendar, post, fullDay, selectedTimezone);\n      };\n      _setupTimezonePicker(calendar, timezone, resetDynamicEvents);\n      if (siteSettings.enable_timezone_offset_for_calendar_events) {\n        _setupTimezoneOffsetButton(resetDynamicEvents);\n      }\n    }\n    function attachCalendar($elem, helper) {\n      const $calendar = (0, _jquery.default)(\".calendar\", $elem);\n      if ($calendar.length === 0) {\n        return;\n      }\n      loadFullCalendar().then(() => render($calendar, helper.getModel()));\n    }\n    function _buildCalendar($calendar, timeZone) {\n      let $calendarTitle = document.querySelector(\".discourse-calendar-header > .discourse-calendar-title\");\n      const defaultView = (0, _utilities.escapeExpression)($calendar.attr(\"data-calendar-default-view\") || (isMobileView ? \"listNextYear\" : \"month\"));\n      const showAddToCalendar = $calendar.attr(\"data-calendar-show-add-to-calendar\") !== \"false\";\n      return new window.FullCalendar.Calendar($calendar[0], {\n        timeZone,\n        timeZoneImpl: \"moment-timezone\",\n        locale: (0, _calendarLocale.getCurrentBcp47Locale)(),\n        buttonText: (0, _calendarLocale.getCalendarButtonsText)(),\n        nextDayThreshold: \"06:00:00\",\n        displayEventEnd: true,\n        height: 650,\n        firstDay: 1,\n        defaultView,\n        views: {\n          listNextYear: {\n            type: \"list\",\n            duration: {\n              days: 365\n            },\n            buttonText: \"list\",\n            listDayFormat: {\n              month: \"long\",\n              year: \"numeric\",\n              day: \"numeric\",\n              weekday: \"long\"\n            }\n          }\n        },\n        header: {\n          left: \"prev,next today\",\n          center: \"title\",\n          right: \"month,basicWeek,listNextYear\"\n        },\n        eventOrder: [\"start\", _orderByTz, \"-duration\", \"allDay\", \"title\"],\n        datesRender: info => {\n          if (showAddToCalendar) {\n            _insertAddToCalendarLinks(info);\n          }\n          $calendarTitle.innerText = info.view.title;\n        },\n        eventPositioned: info => {\n          _setTimezoneOffset(info);\n        }\n      });\n    }\n    function _orderByTz(a, b) {\n      if (!siteSettings.enable_timezone_offset_for_calendar_events && !enableTimezoneOffset) {\n        return 0;\n      }\n      const offsetA = a.extendedProps.timezoneOffset;\n      const offsetB = b.extendedProps.timezoneOffset;\n      return offsetA === offsetB ? 0 : offsetA < offsetB ? -1 : 1;\n    }\n    function _convertHtmlToDate(html) {\n      const date = html.attr(\"data-date\");\n      if (!date) {\n        return null;\n      }\n      const time = html.attr(\"data-time\");\n      const timezone = html.attr(\"data-timezone\");\n      let dateTime = date;\n      if (time) {\n        dateTime = `${dateTime} ${time}`;\n      }\n      return {\n        weeklyRecurring: html.attr(\"data-recurring\") === \"1.weeks\",\n        dateTime: moment.tz(dateTime, timezone || \"Etc/UTC\")\n      };\n    }\n    function _buildEventObject(from, to) {\n      const hasTimeSpecified = d => {\n        if (!d) {\n          return false;\n        }\n        return d.hours() !== 0 || d.minutes() !== 0 || d.seconds() !== 0;\n      };\n      const hasTime = hasTimeSpecified(to?.dateTime) || hasTimeSpecified(from?.dateTime);\n      const dateFormat = hasTime ? \"YYYY-MM-DD HH:mm:ssZ\" : \"YYYY-MM-DD\";\n      let event = {\n        start: from.dateTime.format(dateFormat),\n        allDay: false\n      };\n      if (to) {\n        if (hasTime) {\n          event.end = to.dateTime.format(dateFormat);\n        } else {\n          event.end = to.dateTime.add(1, \"days\").format(dateFormat);\n          event.allDay = true;\n        }\n      } else {\n        event.allDay = true;\n      }\n      if (from.weeklyRecurring) {\n        event.startTime = {\n          hours: from.dateTime.hours(),\n          minutes: from.dateTime.minutes(),\n          seconds: from.dateTime.seconds()\n        };\n        event.daysOfWeek = [from.dateTime.day()];\n      }\n      return event;\n    }\n    function _setStaticCalendarEvents(calendar, $calendar, post) {\n      (0, _jquery.default)(`<div>${post.cooked}</div>`).find('.calendar[data-calendar-type=\"static\"] p').html().trim().split(\"<br>\").forEach(line => {\n        const html = _jquery.default.parseHTML(line);\n        const htmlDates = html.filter(h => (0, _jquery.default)(h).hasClass(\"discourse-local-date\"));\n        const from = _convertHtmlToDate((0, _jquery.default)(htmlDates[0]));\n        const to = _convertHtmlToDate((0, _jquery.default)(htmlDates[1]));\n        let event = _buildEventObject(from, to);\n        event.title = html[0].textContent.trim();\n        calendar.addEvent(event);\n      });\n    }\n    function _setDynamicCalendarOptions(calendar, $calendar) {\n      const skipWeekends = $calendar.attr(\"data-weekends\") === \"false\";\n      const hiddenDays = $calendar.attr(\"data-hidden-days\");\n      if (skipWeekends) {\n        calendar.setOption(\"weekends\", false);\n      }\n      if (hiddenDays) {\n        calendar.setOption(\"hiddenDays\", hiddenDays.split(\",\").map(d => parseInt(d, 10)));\n      }\n      calendar.setOption(\"eventClick\", _ref2 => {\n        let {\n          event,\n          jsEvent\n        } = _ref2;\n        (0, _popover.destroyPopover)();\n        const {\n          htmlContent,\n          postNumber,\n          postUrl\n        } = event.extendedProps;\n        if (postUrl) {\n          _url.default.routeTo(postUrl);\n        } else if (postNumber) {\n          _topicController = _topicController || api.container.lookup(\"controller:topic\");\n          _topicController.send(\"jumpToPost\", postNumber);\n        } else if (isMobileView && htmlContent) {\n          (0, _popover.buildPopover)(jsEvent, htmlContent);\n        }\n      });\n      calendar.setOption(\"eventMouseEnter\", _ref3 => {\n        let {\n          event,\n          jsEvent\n        } = _ref3;\n        (0, _popover.destroyPopover)();\n        const {\n          htmlContent\n        } = event.extendedProps;\n        (0, _popover.buildPopover)(jsEvent, htmlContent);\n      });\n      calendar.setOption(\"eventMouseLeave\", () => {\n        (0, _popover.destroyPopover)();\n      });\n    }\n    function _buildEvent(detail) {\n      const event = _buildEventObject(detail.from ? {\n        dateTime: moment(detail.from),\n        weeklyRecurring: detail.recurring === \"1.weeks\"\n      } : null, detail.to ? {\n        dateTime: moment(detail.to),\n        weeklyRecurring: detail.recurring === \"1.weeks\"\n      } : null);\n      event.extendedProps = {};\n      if (detail.post_url) {\n        event.extendedProps.postUrl = detail.post_url;\n      } else if (detail.post_number) {\n        event.extendedProps.postNumber = detail.post_number;\n      } else {\n        event.classNames = [\"holiday\"];\n      }\n      if (detail.timezoneOffset) {\n        event.extendedProps.timezoneOffset = detail.timezoneOffset;\n      }\n      return event;\n    }\n    function _addStandaloneEvent(calendar, post, detail) {\n      const event = _buildEvent(detail);\n      const holidayCalendarTopicId = parseInt(siteSettings.holiday_calendar_topic_id, 10);\n      const text = detail.message.split(\"\\n\").filter(e => e);\n      if (text.length && post.topic_id && holidayCalendarTopicId !== post.topic_id) {\n        event.title = text[0];\n        event.extendedProps.description = text.slice(1).join(\" \");\n      } else {\n        const color = (0, _colors.stringToColor)(detail.username);\n        event.title = detail.username;\n        event.backgroundColor = (0, _colors.colorToHex)(color);\n        event.textColor = (0, _colors.contrastColor)(color);\n      }\n      let popupText = detail.message.slice(0, 100);\n      if (detail.message.length > 100) {\n        popupText += \"…\";\n      }\n      event.extendedProps.htmlContent = popupText;\n      event.title = event.title.replace(/<img[^>]*>/g, \"\");\n      calendar.addEvent(event);\n    }\n    function _addGroupedEvent(calendar, post, detail, fullDay, calendarTz) {\n      const groupedEventData = siteSettings.enable_timezone_offset_for_calendar_events && enableTimezoneOffset && fullDay ? _splitGroupEventByTimezone(detail, calendarTz) : [detail];\n      groupedEventData.forEach(eventData => {\n        let htmlContent = \"\";\n        let users = [];\n        let localEventNames = [];\n        Object.keys(eventData.localEvents).sort().forEach(key => {\n          const localEvent = eventData.localEvents[key];\n          htmlContent += `<b>${key}</b>: ${localEvent.users.map(u => u.username).sort().join(\", \")}<br>`;\n          users = users.concat(localEvent.users);\n          localEventNames.push(key);\n        });\n        const event = _buildEvent(eventData);\n        event.classNames = [\"grouped-event\"];\n        if (users.length > 2) {\n          event.title = `(${users.length}) ${localEventNames[0]}`;\n        } else if (users.length === 1) {\n          event.title = users[0].username;\n        } else {\n          event.title = isMobileView ? `(${users.length}) ${localEventNames[0]}` : `(${users.length}) ` + users.map(u => u.username).join(\", \");\n        }\n        if (localEventNames.length > 1) {\n          event.extendedProps.htmlContent = htmlContent;\n        } else {\n          if (users.length > 1) {\n            event.extendedProps.htmlContent = htmlContent;\n          } else {\n            event.extendedProps.htmlContent = localEventNames[0];\n          }\n        }\n        calendar.addEvent(event);\n      });\n    }\n    function _splitGroupEventByTimezone(detail, calendarTz) {\n      const calendarUtcOffset = moment.tz(calendarTz).utcOffset();\n      let timezonesOffsets = [];\n      let splittedEvents = [];\n      Object.values(detail.localEvents).forEach(event => {\n        event.users.forEach(user => {\n          const userUtcOffset = moment.tz(user.timezone).utcOffset();\n          const timezoneOffset = (calendarUtcOffset - userUtcOffset) / 60;\n          user.timezoneOffset = timezoneOffset;\n          timezonesOffsets.push(timezoneOffset);\n        });\n      });\n      [...new Set(timezonesOffsets)].forEach((offset, i) => {\n        let filteredLocalEvents = {};\n        let eventTimezones = [];\n        Object.keys(detail.localEvents).forEach(key => {\n          const threshold = siteSettings.split_grouped_events_by_timezone_threshold;\n          const filtered = detail.localEvents[key].users.filter(u => Math.abs(u.timezoneOffset - (offset + threshold * i)) <= threshold);\n          if (filtered.length > 0) {\n            filteredLocalEvents[key] = {\n              users: filtered\n            };\n            filtered.forEach(u => {\n              detail.localEvents[key].users.splice(detail.localEvents[key].users.findIndex(e => e.username === u.username), 1);\n              if (!eventTimezones.find(t => t.timezoneOffset === u.timezoneOffset)) {\n                eventTimezones.push({\n                  timezone: u.timezone,\n                  timezoneOffset: u.timezoneOffset\n                });\n              }\n            });\n          }\n        });\n        if (Object.keys(filteredLocalEvents).length > 0) {\n          const eventTimezone = _findAverageTimezone(eventTimezones);\n          let from = moment.tz(detail.from, eventTimezone.timezone);\n          let to = moment.tz(detail.to, eventTimezone.timezone);\n          _modifyDatesForTimezoneOffset(from, to, eventTimezone.timezoneOffset);\n          splittedEvents.push({\n            timezoneOffset: eventTimezone.timezoneOffset,\n            localEvents: filteredLocalEvents,\n            from: from.format(\"YYYY-MM-DD\"),\n            to: to.format(\"YYYY-MM-DD\")\n          });\n        }\n      });\n      return splittedEvents;\n    }\n    function _findAverageTimezone(eventTimezones) {\n      const totalOffsets = eventTimezones.reduce((sum, timezone) => sum + timezone.timezoneOffset, 0);\n      const averageOffset = totalOffsets / eventTimezones.length;\n      return eventTimezones.reduce((closest, timezone) => {\n        const difference = Math.abs(timezone.timezoneOffset - averageOffset);\n        return difference < Math.abs(closest.timezoneOffset - averageOffset) ? timezone : closest;\n      });\n    }\n    function _setDynamicCalendarEvents(calendar, post, fullDay, calendarTz) {\n      const groupedEvents = [];\n      const calendarUtcOffset = moment.tz(calendarTz).utcOffset();\n      (post.calendar_details || []).forEach(detail => {\n        switch (detail.type) {\n          case \"grouped\":\n            if (fullDay && detail.timezone) {\n              detail.from = moment.tz(detail.from, detail.timezone).format(\"YYYY-MM-DD\");\n            }\n            groupedEvents.push(detail);\n            break;\n          case \"standalone\":\n            if (fullDay && detail.timezone) {\n              const eventDetail = {\n                ...detail\n              };\n              let from = moment.tz(detail.from, detail.timezone);\n              let to = moment.tz(detail.to, detail.timezone);\n              if (siteSettings.enable_timezone_offset_for_calendar_events && enableTimezoneOffset) {\n                const eventUtcOffset = moment.tz(detail.timezone).utcOffset();\n                const timezoneOffset = (calendarUtcOffset - eventUtcOffset) / 60;\n                eventDetail.timezoneOffset = timezoneOffset;\n                _modifyDatesForTimezoneOffset(from, to, timezoneOffset);\n              }\n              eventDetail.from = from.format(\"YYYY-MM-DD\");\n              eventDetail.to = to.format(\"YYYY-MM-DD\");\n              _addStandaloneEvent(calendar, post, eventDetail);\n            } else {\n              _addStandaloneEvent(calendar, post, detail);\n            }\n            break;\n        }\n      });\n      const formattedGroupedEvents = {};\n      groupedEvents.forEach(groupedEvent => {\n        const minDate = fullDay ? moment(groupedEvent.from).format(\"YYYY-MM-DD\") : moment(groupedEvent.from).utc().startOf(\"day\").toISOString();\n        const maxDate = fullDay ? moment(groupedEvent.to || groupedEvent.from).format(\"YYYY-MM-DD\") : moment(groupedEvent.to || groupedEvent.from).utc().endOf(\"day\").toISOString();\n        const identifier = `${minDate}-${maxDate}`;\n        formattedGroupedEvents[identifier] = formattedGroupedEvents[identifier] || {\n          from: minDate,\n          to: maxDate || minDate,\n          localEvents: {}\n        };\n        formattedGroupedEvents[identifier].localEvents[groupedEvent.name] = formattedGroupedEvents[identifier].localEvents[groupedEvent.name] || {\n          users: []\n        };\n        formattedGroupedEvents[identifier].localEvents[groupedEvent.name].users.push.apply(formattedGroupedEvents[identifier].localEvents[groupedEvent.name].users, groupedEvent.users);\n      });\n      Object.keys(formattedGroupedEvents).forEach(key => {\n        const formattedGroupedEvent = formattedGroupedEvents[key];\n        _addGroupedEvent(calendar, post, formattedGroupedEvent, fullDay, calendarTz);\n      });\n    }\n    function _modifyDatesForTimezoneOffset(from, to, timezoneOffset) {\n      if (timezoneOffset > 0) {\n        if (to.isValid()) {\n          to.add(1, \"day\");\n        } else {\n          to = from.clone().add(1, \"day\");\n        }\n      } else if (timezoneOffset < 0) {\n        if (!to.isValid()) {\n          to = from.clone();\n        }\n        from.subtract(1, \"day\");\n      }\n    }\n    function _getTimeZone($calendar, currentUser) {\n      let defaultTimezone = $calendar.attr(\"data-calendar-default-timezone\");\n      const isValidDefaultTimezone = !!moment.tz.zone(defaultTimezone);\n      if (!isValidDefaultTimezone) {\n        defaultTimezone = null;\n      }\n      return defaultTimezone || currentUser?.timezone || moment.tz.guess();\n    }\n    function _setupTimezonePicker(calendar, timezone, resetDynamicEvents) {\n      const tzPicker = document.querySelector(\".discourse-calendar-timezone-picker\");\n      if (tzPicker) {\n        tzPicker.addEventListener(\"change\", function (event) {\n          calendar.setOption(\"timeZone\", event.target.value);\n          if (enableTimezoneOffset) {\n            resetDynamicEvents();\n            _insertAddToCalendarLinks(calendar);\n          }\n        });\n        moment.tz.names().filter(t => !t.startsWith(\"Etc/GMT\")).forEach(tz => {\n          tzPicker.appendChild(new Option(tz, tz));\n        });\n        tzPicker.value = timezone;\n      } else {\n        document.querySelector(\".discourse-calendar-timezone-wrap\").innerText = timezone;\n      }\n    }\n    function _setupTimezoneOffsetButton(resetDynamicEvents) {\n      const timezoneWrapper = document.querySelector(\".discourse-calendar-timezone-wrap\");\n      const timezoneButton = document.createElement(\"button\");\n      timezoneButton.title = _I18n.default.t(\"discourse_calendar.toggle_timezone_offset_title\");\n      timezoneButton.classList.add(\"timezone-offset-button\", \"btn\", \"btn-default\", \"btn-icon\", \"no-text\");\n      timezoneButton.innerHTML = (0, _iconLibrary.iconHTML)(\"globe\");\n      timezoneWrapper.appendChild(timezoneButton);\n      timezoneButton.addEventListener(\"click\", () => {\n        enableTimezoneOffset = !enableTimezoneOffset;\n        resetDynamicEvents();\n        timezoneButton.blur();\n      });\n    }\n    function _insertAddToCalendarLinks(info) {\n      if (info.view.type !== \"listNextYear\") {\n        return;\n      }\n      const eventSegments = info.view.eventRenderer.segs;\n      const eventSegmentDefMap = _eventSegmentDefMap(info);\n      for (const event of eventSegments) {\n        _insertAddToCalendarLinkForEvent(event, eventSegmentDefMap);\n      }\n    }\n    function _setTimezoneOffset(info) {\n      if (!siteSettings.enable_timezone_offset_for_calendar_events || !enableTimezoneOffset || info.view.type === \"listNextYear\") {\n        return;\n      }\n\n      // The timezone offset works by calculating the hour difference\n      // between a target event and the calendar event. This is used to\n      // determine whether to add an extra day before or after the event.\n      // Then, it applies inline styling to resize the event to its\n      // original size while adjusting it to the respective timezone.\n\n      const timezoneOffset = info.event.extendedProps.timezoneOffset;\n      const segmentDuration = info.el.parentNode?.colSpan;\n      const basePctOffset = 100 / segmentDuration;\n      // Base margin required to shrink down the event by one day\n      const basePxOffset = 5.5 - segmentDuration;\n      // Default space between two consecutive events\n      // 5.5px = ( ( ( 2px margin + 3px padding ) * 2 ) + 1px border ) / 2\n\n      // K factors are used to adjust each side of the event based on the hour difference\n      // A '2' is added to the pxOffset to account for the default margin\n\n      if (timezoneOffset > 0) {\n        // When the event extends into the next day\n        if (info.isStart) {\n          const leftK = Math.abs(timezoneOffset) / 24;\n          const pctOffset = `${basePctOffset * leftK}%`;\n          const pxOffset = `${basePxOffset * leftK + 2}px`;\n          info.el.style.marginLeft = `calc(${pctOffset} + ${pxOffset})`;\n        }\n        if (info.isEnd) {\n          const rightK = (24 - Math.abs(timezoneOffset)) / 24;\n          const pctOffset = `${basePctOffset * rightK}%`;\n          const pxOffset = `${basePxOffset * rightK + 2}px`;\n          info.el.style.marginRight = `calc(${pctOffset} + ${pxOffset})`;\n        }\n      } else if (timezoneOffset < 0) {\n        // When the event starts on the previous day\n        if (info.isStart) {\n          const leftK = (24 - Math.abs(timezoneOffset)) / 24;\n          const pctOffset = `${basePctOffset * leftK}%`;\n          const pxOffset = `${basePxOffset * leftK + 2}px`;\n          info.el.style.marginLeft = `calc(${pctOffset} + ${pxOffset})`;\n        }\n        if (info.isEnd) {\n          const rightK = Math.abs(timezoneOffset) / 24;\n          const pctOffset = `${basePctOffset * rightK}%`;\n          const pxOffset = `${basePxOffset * rightK + 2}px`;\n          info.el.style.marginRight = `calc(${pctOffset} + ${pxOffset})`;\n        }\n      }\n    }\n    function _insertAddToCalendarLinkForEvent(event, eventSegmentDefMap) {\n      const eventTitle = event.eventRange.def.title;\n      let map = eventSegmentDefMap[event.eventRange.def.defId];\n      let startDate = map.start;\n      let endDate = map.end;\n      endDate = endDate ? _formatDateForGoogleApi(endDate, event.eventRange.def.allDay) : _endDateForAllDayEvent(startDate, event.eventRange.def.allDay);\n      startDate = _formatDateForGoogleApi(startDate, event.eventRange.def.allDay);\n      const link = document.createElement(\"a\");\n      const title = _I18n.default.t(\"discourse_calendar.add_to_calendar\");\n      link.title = title;\n      link.appendChild(document.createTextNode(title));\n      link.href = `\n      http://www.google.com/calendar/event?action=TEMPLATE&text=${encodeURIComponent(eventTitle)}&dates=${startDate}/${endDate}&details=${encodeURIComponent(event.eventRange.def.extendedProps.description)}`;\n      link.target = \"_blank\";\n      link.classList.add(\"fc-list-item-add-to-calendar\");\n      event.el.querySelector(\".fc-list-item-title\").appendChild(link);\n    }\n    function _formatDateForGoogleApi(date) {\n      let allDay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n      if (!allDay) {\n        return date.toISOString().replace(/-|:|\\.\\d\\d\\d/g, \"\");\n      }\n      return moment(date).utc().format(\"YYYYMMDD\");\n    }\n    function _endDateForAllDayEvent(startDate, allDay) {\n      const unit = allDay ? \"days\" : \"hours\";\n      return _formatDateForGoogleApi(moment(startDate).add(1, unit).toDate(), allDay);\n    }\n    function _eventSegmentDefMap(info) {\n      let map = {};\n      for (let event of info.view.calendar.getEvents()) {\n        map[event._instance.defId] = {\n          start: event.start,\n          end: event.end\n        };\n      }\n      return map;\n    }\n  }\n  var _default = _exports.default = {\n    name: \"discourse-calendar\",\n    initialize(container) {\n      const siteSettings = container.lookup(\"service:site-settings\");\n      if (siteSettings.calendar_enabled) {\n        (0, _pluginApi.withPluginApi)(\"0.8.22\", initializeDiscourseCalendar);\n      }\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/discourse-group-timezones\", [\"exports\", \"jquery\", \"discourse/lib/plugin-api\", \"discourse/widgets/glue\", \"discourse-common/lib/get-owner\"], function (_exports, _jquery, _pluginApi, _glue, _getOwner) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: \"discourse-group-timezones\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8.7\", api => {\n        let _glued = [];\n        function cleanUp() {\n          _glued.forEach(g => g.cleanUp());\n          _glued = [];\n        }\n        function _attachWidget(container, options) {\n          const glue = new _glue.default(\"discourse-group-timezones\", (0, _getOwner.getRegister)(api), options);\n          glue.appendTo(container);\n          _glued.push(glue);\n        }\n        function _attachGroupTimezones($elem, post) {\n          const $groupTimezones = (0, _jquery.default)(\".group-timezones\", $elem);\n          if (!$groupTimezones.length) {\n            return;\n          }\n          $groupTimezones.each((idx, groupTimezone) => {\n            const group = groupTimezone.getAttribute(\"data-group\");\n            if (!group) {\n              throw \"[group] attribute is necessary when using timezones.\";\n            }\n            const members = (post.get(\"group_timezones\") || {})[group] || [];\n            _attachWidget(groupTimezone, {\n              id: `${post.id}-${idx}`,\n              members,\n              group,\n              usersOnHoliday: api.container.lookup(\"service:site\").users_on_holiday || [],\n              size: groupTimezone.getAttribute(\"data-size\") || \"medium\"\n            });\n          });\n        }\n        function _attachPostWithGroupTimezones($elem, helper) {\n          if (helper) {\n            const post = helper.getModel();\n            if (post) {\n              api.preventCloak(post.id);\n              _attachGroupTimezones($elem, post);\n            }\n          }\n        }\n        api.decorateCooked(_attachPostWithGroupTimezones, {\n          id: \"discourse-group-timezones\"\n        });\n        api.cleanupStream(cleanUp);\n      });\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/discourse-post-event-decorator\", [\"exports\", \"@ember/runloop\", \"jquery\", \"discourse/lib/local-dates\", \"discourse/lib/plugin-api\", \"discourse/lib/text\", \"discourse/widgets/glue\", \"discourse-common/lib/get-owner\", \"I18n\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\"], function (_exports, _runloop, _jquery, _localDates, _pluginApi, _text, _glue, _getOwner, _I18n, _guessBestDateFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _decorateEvent(api, cooked, post) {\n    _attachWidget(api, cooked, post);\n  }\n  function _validEventPreview(eventContainer) {\n    eventContainer.innerHTML = \"\";\n    eventContainer.classList.add(\"discourse-post-event-preview\");\n    const statusLocaleKey = `discourse_calendar.discourse_post_event.models.event.status.${eventContainer.dataset.status || \"public\"}.title`;\n    if (_I18n.default.lookup(statusLocaleKey, {\n      locale: \"en\"\n    })) {\n      const statusContainer = document.createElement(\"div\");\n      statusContainer.classList.add(\"event-preview-status\");\n      statusContainer.innerText = _I18n.default.t(statusLocaleKey);\n      eventContainer.appendChild(statusContainer);\n    }\n    const datesContainer = document.createElement(\"div\");\n    datesContainer.classList.add(\"event-preview-dates\");\n    const startsAt = moment.tz(eventContainer.dataset.start, eventContainer.dataset.timezone || \"UTC\");\n    const endsAt = eventContainer.dataset.end && moment.tz(eventContainer.dataset.end, eventContainer.dataset.timezone || \"UTC\");\n    const format = (0, _guessBestDateFormat.default)(startsAt, endsAt);\n    let datesString = `<span class='start'>${startsAt.tz(moment.tz.guess()).format(format)}</span>`;\n    if (endsAt) {\n      datesString += ` → <span class='end'>${endsAt.tz(moment.tz.guess()).format(format)}</span>`;\n    }\n    datesContainer.innerHTML = datesString;\n    eventContainer.appendChild(datesContainer);\n  }\n  function _invalidEventPreview(eventContainer) {\n    eventContainer.classList.add(\"discourse-post-event-preview\", \"alert\", \"alert-error\");\n    eventContainer.classList.remove(\"discourse-post-event\");\n    eventContainer.innerText = _I18n.default.t(\"discourse_calendar.discourse_post_event.preview.more_than_one_event\");\n  }\n  function _decorateEventPreview(api, cooked) {\n    const eventContainers = cooked.querySelectorAll(\".discourse-post-event\");\n    eventContainers.forEach((eventContainer, index) => {\n      if (index > 0) {\n        _invalidEventPreview(eventContainer);\n      } else {\n        _validEventPreview(eventContainer);\n      }\n    });\n  }\n  let _glued = [];\n  function cleanUp() {\n    _glued.forEach(g => g.cleanUp());\n    _glued = [];\n  }\n  function _attachWidget(api, cooked, eventModel) {\n    const eventContainer = cooked.querySelector(\".discourse-post-event\");\n    if (eventModel && eventContainer) {\n      eventContainer.innerHTML = \"\";\n      const datesHeight = 50;\n      const urlHeight = 50;\n      const headerHeight = 75;\n      const bordersHeight = 10;\n      const separatorsHeight = 4;\n      const margins = 10;\n      let widgetHeight = datesHeight + headerHeight + bordersHeight + separatorsHeight + margins;\n      if (eventModel.should_display_invitees && !eventModel.minimal) {\n        widgetHeight += 110;\n      }\n      if (eventModel.can_update_attendance) {\n        widgetHeight += 60;\n      }\n      if (eventModel.url) {\n        widgetHeight += urlHeight;\n      }\n      eventContainer.classList.add(\"is-loading\");\n      eventContainer.style.height = `${widgetHeight}px`;\n      const glueContainer = document.createElement(\"div\");\n      glueContainer.innerHTML = '<div class=\"spinner medium\"></div>';\n      eventContainer.appendChild(glueContainer);\n      const timezone = eventModel.timezone || \"UTC\";\n      const startsAt = moment(eventModel.starts_at).tz(timezone);\n      const endsAt = eventModel.ends_at && moment(eventModel.ends_at).tz(timezone);\n      const format = (0, _guessBestDateFormat.default)(startsAt, endsAt);\n      const siteSettings = api.container.lookup(\"service:site-settings\");\n      if (siteSettings.discourse_local_dates_enabled) {\n        const dates = [];\n        dates.push(`[date=${startsAt.format(\"YYYY-MM-DD\")} time=${startsAt.format(\"HH:mm\")} format=${format} timezone=${timezone}]`);\n        if (endsAt) {\n          dates.push(`[date=${endsAt.format(\"YYYY-MM-DD\")} time=${endsAt.format(\"HH:mm\")} format=${format} timezone=${timezone}]`);\n        }\n        (0, _text.cook)(dates.join(\"<span> → </span>\")).then(result => {\n          eventContainer.classList.remove(\"is-loading\");\n          eventContainer.classList.add(\"is-loaded\");\n          const glue = new _glue.default(\"discourse-post-event\", (0, _getOwner.getRegister)(api), {\n            eventModel,\n            widgetHeight,\n            localDates: (0, _jquery.default)(result.toString()).html(),\n            api\n          });\n          glue.appendTo(glueContainer);\n          _glued.push(glue);\n          (0, _runloop.schedule)(\"afterRender\", () => (0, _localDates.applyLocalDates)(document.querySelectorAll(`[data-post-id=\"${eventModel.id}\"] .discourse-local-date`), siteSettings));\n        });\n      } else {\n        let localDates = `${startsAt.format(format)}`;\n        if (eventModel.ends_at) {\n          localDates += ` → ${moment(eventModel.ends_at).format(format)}`;\n        }\n        const glue = new _glue.default(\"discourse-post-event\", (0, _getOwner.getRegister)(api), {\n          eventModel,\n          widgetHeight,\n          localDates,\n          api\n        });\n        glue.appendTo(glueContainer);\n        _glued.push(glue);\n      }\n    } else if (!eventModel) {\n      const loadedEventContainer = cooked.querySelector(\".discourse-post-event\");\n      loadedEventContainer && loadedEventContainer.remove();\n    }\n  }\n  function initializeDiscoursePostEventDecorator(api) {\n    api.cleanupStream(cleanUp);\n    api.decorateCookedElement((cooked, helper) => {\n      if (cooked.classList.contains(\"d-editor-preview\")) {\n        _decorateEventPreview(api, cooked);\n        return;\n      }\n      if (helper) {\n        const post = helper.getModel();\n        if (post && post.event) {\n          _decorateEvent(api, cooked, post.event);\n        }\n      }\n    }, {\n      id: \"discourse-post-event-decorator\"\n    });\n    api.replaceIcon(\"notification.discourse_post_event.notifications.invite_user_notification\", \"calendar-day\");\n    api.replaceIcon(\"notification.discourse_post_event.notifications.invite_user_auto_notification\", \"calendar-day\");\n    api.replaceIcon(\"notification.discourse_calendar.invite_user_notification\", \"calendar-day\");\n    api.replaceIcon(\"notification.discourse_post_event.notifications.invite_user_predefined_attendance_notification\", \"calendar-day\");\n    api.replaceIcon(\"notification.discourse_post_event.notifications.before_event_reminder\", \"calendar-day\");\n    api.replaceIcon(\"notification.discourse_post_event.notifications.after_event_reminder\", \"calendar-day\");\n    api.replaceIcon(\"notification.discourse_post_event.notifications.ongoing_event_reminder\", \"calendar-day\");\n    api.modifyClass(\"controller:topic\", {\n      pluginId: \"discourse-calendar\",\n      subscribe() {\n        this._super(...arguments);\n        this.messageBus.subscribe(\"/discourse-post-event/\" + this.get(\"model.id\"), msg => {\n          const postNode = document.querySelector(`.onscreen-post[data-post-id=\"${msg.id}\"] .cooked`);\n          if (postNode) {\n            this.store.find(\"discourse-post-event-event\", msg.id).then(eventModel => _decorateEvent(api, postNode, eventModel)).catch(() => _decorateEvent(api, postNode));\n          }\n        });\n      },\n      unsubscribe() {\n        this.messageBus.unsubscribe(\"/discourse-post-event/*\");\n        this._super(...arguments);\n      }\n    });\n  }\n  var _default = _exports.default = {\n    name: \"discourse-post-event-decorator\",\n    initialize(container) {\n      const siteSettings = container.lookup(\"service:site-settings\");\n      if (siteSettings.discourse_post_event_enabled) {\n        (0, _pluginApi.withPluginApi)(\"0.8.7\", initializeDiscoursePostEventDecorator);\n      }\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/initializers/event-relative-date\", [\"exports\", \"@ember/runloop\", \"discourse-common/config/environment\", \"discourse-common/lib/later\", \"discourse/plugins/discourse-calendar/discourse/lib/event-relative-date\"], function (_exports, _runloop, _environment, _later, _eventRelativeDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function computeRelativeEventDates() {\n    document.querySelectorAll(\".event-relative-date.topic-list\").forEach(dateContainer => (0, _eventRelativeDate.default)(dateContainer));\n  }\n  var _default = _exports.default = {\n    name: \"event-future-date\",\n    initialize() {\n      computeRelativeEventDates();\n      if (!(0, _environment.isTesting)()) {\n        this._tick();\n      }\n    },\n    teardown() {\n      if (this._interval) {\n        (0, _runloop.cancel)(this._interval);\n        this._interval = null;\n      }\n    },\n    _tick() {\n      this._interval && (0, _runloop.cancel)(this._interval);\n      this._interval = (0, _later.default)(() => {\n        computeRelativeEventDates();\n        this._tick();\n      }, 60 * 1000);\n    }\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/calendar-locale\", [\"exports\", \"I18n\"], function (_exports, _I18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getCalendarButtonsText = getCalendarButtonsText;\n  _exports.getCurrentBcp47Locale = getCurrentBcp47Locale;\n  function getCurrentBcp47Locale() {\n    return _I18n.default.currentLocale().replace(\"_\", \"-\");\n  }\n  function getCalendarButtonsText() {\n    return {\n      today: _I18n.default.t(\"discourse_calendar.toolbar_button.today\"),\n      month: _I18n.default.t(\"discourse_calendar.toolbar_button.month\"),\n      week: _I18n.default.t(\"discourse_calendar.toolbar_button.week\"),\n      day: _I18n.default.t(\"discourse_calendar.toolbar_button.day\"),\n      list: _I18n.default.t(\"discourse_calendar.toolbar_button.list\")\n    };\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/clean-title\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = cleanTitle;\n  const DATE_SEPARATOR = `[-\\/]`;\n  const DATE_TIME_REGEX = new RegExp(`[^|\\\\s](\\\\d{1,2}${DATE_SEPARATOR}\\\\d{1,2}${DATE_SEPARATOR}\\\\d{2,4}(?:\\\\s\\\\d{1,2}:\\\\d{2})?)$`, \"g\");\n  function cleanTitle(title, startsAt) {\n    if (!title || !startsAt) {\n      return;\n    }\n    const match = title.trim().match(DATE_TIME_REGEX);\n    return match && match[0];\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/colors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.colorToHex = colorToHex;\n  _exports.contrastColor = contrastColor;\n  _exports.stringToColor = stringToColor;\n  // https://stackoverflow.com/a/16348977\n  function stringToColor(str) {\n    let hash = 0;\n    for (let i = 0; i < str.length; i++) {\n      // eslint-disable-next-line no-bitwise\n      hash = str.charCodeAt(i) + ((hash << 5) - hash);\n    }\n    let color = [];\n    for (let i = 0; i < 3; i++) {\n      // eslint-disable-next-line no-bitwise\n      let value = hash >> i * 8 & 0xff;\n      color.push(value);\n    }\n    return color;\n  }\n  function colorToHex(color) {\n    let hex = \"#\";\n    for (let i = 0; i < 3; i++) {\n      hex += (\"00\" + Math.round(color[i]).toString(16)).slice(-2);\n    }\n    return hex;\n  }\n  function contrastColor(color) {\n    const luminance = 0.2126 * color[0] + 0.7152 * color[1] + 0.0722 * color[2];\n    return luminance / 255 >= 0.5 ? \"#000d\" : \"#fffd\";\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/discourse-markdown/discourse-calendar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.setup = setup;\n  const calendarRule = {\n    tag: \"calendar\",\n    before: function (state, info) {\n      let wrapperDivToken = state.push(\"div_calendar_wrap\", \"div\", 1);\n      wrapperDivToken.attrs = [[\"class\", \"discourse-calendar-wrap\"]];\n      let headerDivToken = state.push(\"div_calendar_header\", \"div\", 1);\n      headerDivToken.attrs = [[\"class\", \"discourse-calendar-header\"]];\n      let titleH2Token = state.push(\"h2_open\", \"h2\", 1);\n      titleH2Token.attrs = [[\"class\", \"discourse-calendar-title\"]];\n      state.push(\"h2_close\", \"h2\", -1);\n      let timezoneWrapToken = state.push(\"span_open\", \"span\", 1);\n      timezoneWrapToken.attrs = [[\"class\", \"discourse-calendar-timezone-wrap\"]];\n      if (info.attrs.tzPicker === \"true\") {\n        _renderTimezonePicker(state);\n      }\n      state.push(\"span_close\", \"span\", -1);\n      state.push(\"div_calendar_header\", \"div\", -1);\n      let mainCalendarDivToken = state.push(\"div_calendar\", \"div\", 1);\n      mainCalendarDivToken.attrs = [[\"class\", \"calendar\"], [\"data-calendar-type\", info.attrs.type || \"dynamic\"], [\"data-calendar-default-timezone\", info.attrs.defaultTimezone]];\n      if (info.attrs.defaultView) {\n        mainCalendarDivToken.attrs.push([\"data-calendar-default-view\", info.attrs.defaultView]);\n      }\n      if (info.attrs.weekends) {\n        mainCalendarDivToken.attrs.push([\"data-weekends\", info.attrs.weekends]);\n      }\n      if (info.attrs.showAddToCalendar) {\n        mainCalendarDivToken.attrs.push([\"data-calendar-show-add-to-calendar\", info.attrs.showAddToCalendar === \"true\"]);\n      }\n      if (info.attrs.fullDay) {\n        mainCalendarDivToken.attrs.push([\"data-calendar-full-day\", info.attrs.fullDay === \"true\"]);\n      }\n      if (info.attrs.hiddenDays) {\n        mainCalendarDivToken.attrs.push([\"data-hidden-days\", info.attrs.hiddenDays]);\n      }\n    },\n    after: function (state) {\n      state.push(\"div_calendar\", \"div\", -1);\n      state.push(\"div_calendar_wrap\", \"div\", -1);\n    }\n  };\n  const groupTimezoneRule = {\n    tag: \"timezones\",\n    before: function (state, info) {\n      const wrapperDivToken = state.push(\"div_group_timezones\", \"div\", 1);\n      wrapperDivToken.attrs = [[\"class\", \"group-timezones\"], [\"data-group\", info.attrs.group], [\"data-size\", info.attrs.size || \"medium\"]];\n    },\n    after: function (state) {\n      state.push(\"div_group_timezones\", \"div\", -1);\n    }\n  };\n  function _renderTimezonePicker(state) {\n    const timezoneSelectToken = state.push(\"select_open\", \"select\", 1);\n    timezoneSelectToken.attrs = [[\"class\", \"discourse-calendar-timezone-picker\"]];\n    state.push(\"select_close\", \"select\", -1);\n  }\n  function setup(helper) {\n    helper.allowList([\"div.calendar\", \"div.discourse-calendar-header\", \"div.discourse-calendar-wrap\", \"select.discourse-calendar-timezone-picker\", \"span.discourse-calendar-timezone-wrap\", \"h2.discourse-calendar-title\", \"div[data-calendar-type]\", \"div[data-calendar-default-view]\", \"div[data-calendar-default-timezone]\", \"div[data-weekends]\", \"div[data-hidden-days]\", \"div.group-timezones\", \"div[data-group]\", \"div[data-size]\"]);\n    helper.registerOptions((opts, siteSettings) => {\n      opts.features[\"discourse-calendar-enabled\"] = !!siteSettings.calendar_enabled;\n    });\n    helper.registerPlugin(md => {\n      const features = md.options.discourse.features;\n      if (features[\"discourse-calendar-enabled\"]) {\n        md.block.bbcode.ruler.push(\"discourse-calendar\", calendarRule);\n        md.block.bbcode.ruler.push(\"discourse-group-timezones\", groupTimezoneRule);\n      }\n    });\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/discourse-markdown/discourse-post-event-block\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.setup = setup;\n  const rule = {\n    tag: \"event\",\n    wrap(token, info) {\n      if (!info.attrs.start) {\n        return false;\n      }\n      token.attrs = [[\"class\", \"discourse-post-event\"]];\n      Object.keys(info.attrs).forEach(key => {\n        const value = info.attrs[key];\n        if (typeof value !== \"undefined\") {\n          token.attrs.push([`data-${dasherize(key)}`, value]);\n        }\n      });\n      return true;\n    }\n  };\n  function dasherize(input) {\n    return input.replace(/[A-Z]/g, function (char, index) {\n      return (index !== 0 ? \"-\" : \"\") + char.toLowerCase();\n    });\n  }\n  function setup(helper) {\n    helper.allowList([\"div.discourse-post-event\"]);\n    helper.registerOptions((opts, siteSettings) => {\n      opts.features.discourse_post_event = siteSettings.calendar_enabled && siteSettings.discourse_post_event_enabled;\n    });\n    helper.registerPlugin(md => md.block.bbcode.ruler.push(\"discourse-post-event\", rule));\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/event-relative-date\", [\"exports\", \"I18n\", \"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\"], function (_exports, _I18n, _guessBestDateFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = eventRelativeDate;\n  function _computeCurrentEvent(container, endsAt) {\n    const indicator = document.createElement(\"div\");\n    indicator.classList.add(\"indicator\");\n    container.appendChild(indicator);\n    const text = document.createElement(\"span\");\n    text.classList.add(\"text\");\n    text.innerText = _I18n.default.t(\"discourse_calendar.discourse_post_event.topic_title.ends_in_duration\", {\n      duration: endsAt.from(moment())\n    });\n    container.appendChild(text);\n  }\n  function _computePastEvent(container, endsAt) {\n    container.innerText = endsAt.from(moment());\n  }\n  function _computeFutureEvent(container, startsAt) {\n    container.innerText = startsAt.from(moment());\n  }\n  function eventRelativeDate(container) {\n    container.classList.remove(\"past\", \"current\", \"future\");\n    container.innerHTML = \"\";\n    const startsAt = moment.utc(container.dataset.starts_at).tz(moment.tz.guess());\n    const endsAt = moment.utc(container.dataset.ends_at).tz(moment.tz.guess());\n    const format = (0, _guessBestDateFormat.default)(startsAt);\n    let title = startsAt.format(format);\n    if (endsAt) {\n      title += ` → ${endsAt.format(format)}`;\n    }\n    container.setAttribute(\"title\", title);\n    if (startsAt.isAfter(moment()) && endsAt.isAfter(moment())) {\n      container.classList.add(\"future\");\n      _computeFutureEvent(container, startsAt);\n      return;\n    }\n    if (startsAt.isBefore(moment()) && endsAt.isAfter(moment())) {\n      container.classList.add(\"current\");\n      _computeCurrentEvent(container, endsAt);\n      return;\n    }\n    if (startsAt.isBefore(moment()) && endsAt.isBefore(moment())) {\n      container.classList.add(\"past\");\n      _computePastEvent(container, endsAt);\n      return;\n    }\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/guess-best-date-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = guessDateFormat;\n  _exports.isNotFullDayEvent = isNotFullDayEvent;\n  function isNotFullDayEvent(startsAt, endsAt) {\n    return startsAt.hours() > 0 || startsAt.minutes() > 0 || endsAt && (moment(endsAt).hours() > 0 || moment(endsAt).minutes() > 0);\n  }\n  function guessDateFormat(startsAt, endsAt) {\n    let format;\n    if (!isNotFullDayEvent(startsAt, endsAt)) {\n      format = \"LL\";\n    } else {\n      format = \"LLL\";\n    }\n    return format;\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/popover\", [\"exports\", \"@popperjs/core\"], function (_exports, _core) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.buildPopover = buildPopover;\n  _exports.destroyPopover = destroyPopover;\n  let eventPopper;\n  const EVENT_POPOVER_ID = \"event-popover\";\n  function buildPopover(jsEvent, htmlContent) {\n    const node = document.createElement(\"div\");\n    node.setAttribute(\"id\", EVENT_POPOVER_ID);\n    node.innerHTML = htmlContent;\n    const arrow = document.createElement(\"span\");\n    arrow.dataset.popperArrow = true;\n    node.appendChild(arrow);\n    document.body.appendChild(node);\n    eventPopper = (0, _core.createPopper)(jsEvent.target, document.getElementById(EVENT_POPOVER_ID), {\n      placement: \"bottom\",\n      modifiers: [{\n        name: \"arrow\"\n      }, {\n        name: \"offset\",\n        options: {\n          offset: [20, 10]\n        }\n      }]\n    });\n  }\n  function destroyPopover() {\n    eventPopper?.destroy();\n    document.getElementById(EVENT_POPOVER_ID)?.remove();\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/raw-event-helper\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.buildParams = buildParams;\n  _exports.replaceRaw = replaceRaw;\n  function buildParams(startsAt, endsAt, eventModel, siteSettings) {\n    const params = {};\n    const eventTz = eventModel.timezone || \"UTC\";\n    params.start = moment(startsAt).tz(eventTz).format(\"YYYY-MM-DD HH:mm\");\n    if (eventModel.closed) {\n      params.closed = \"true\";\n    }\n    if (eventModel.status) {\n      params.status = eventModel.status;\n    }\n    if (eventModel.name) {\n      params.name = eventModel.name;\n    }\n    if (eventModel.url) {\n      params.url = eventModel.url;\n    }\n    if (eventModel.timezone) {\n      params.timezone = eventModel.timezone;\n    }\n    if (eventModel.recurrence) {\n      params.recurrence = eventModel.recurrence;\n    }\n    if (eventModel.minimal) {\n      params.minimal = \"true\";\n    }\n    if (endsAt) {\n      params.end = moment(endsAt).tz(eventTz).format(\"YYYY-MM-DD HH:mm\");\n    }\n    if (eventModel.status === \"private\") {\n      params.allowedGroups = (eventModel.raw_invitees || []).join(\",\");\n    }\n    if (eventModel.status === \"public\") {\n      params.allowedGroups = \"trust_level_0\";\n    }\n    if (eventModel.reminders && eventModel.reminders.length) {\n      params.reminders = eventModel.reminders.map(r => {\n        // we create a new intermediate object to avoid changes in the UI while\n        // we prepare the values for request\n        const reminder = Object.assign({}, r);\n        if (reminder.period === \"after\") {\n          reminder.value = `-${Math.abs(parseInt(reminder.value, 10))}`;\n        }\n        if (reminder.period === \"before\") {\n          reminder.value = Math.abs(parseInt(`${reminder.value}`, 10));\n        }\n        return `${reminder.type}.${reminder.value}.${reminder.unit}`;\n      }).join(\",\");\n    }\n    siteSettings.discourse_post_event_allowed_custom_fields.split(\"|\").filter(Boolean).forEach(setting => {\n      const param = camelCase(setting);\n      if (typeof eventModel.custom_fields[setting] !== \"undefined\") {\n        params[param] = eventModel.custom_fields[setting];\n      }\n    });\n    return params;\n  }\n  function replaceRaw(params, raw) {\n    const eventRegex = new RegExp(`\\\\[event\\\\s(.*?)\\\\]`, \"m\");\n    const eventMatches = raw.match(eventRegex);\n    if (eventMatches && eventMatches[1]) {\n      const markdownParams = [];\n      Object.keys(params).forEach(param => {\n        const value = params[param];\n        if (value && value.length) {\n          markdownParams.push(`${param}=\"${params[param]}\"`);\n        }\n      });\n      return raw.replace(eventRegex, `[event ${markdownParams.join(\" \")}]`);\n    }\n    return false;\n  }\n  function camelCase(input) {\n    return input.toLowerCase().replace(/-/g, \"_\").replace(/_(.)/g, function (match, group1) {\n      return group1.toUpperCase();\n    });\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/regions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TIME_ZONE_TO_REGION = _exports.HOLIDAY_REGIONS = void 0;\n  // DO NOT EDIT THIS FILE!!!\n  // Update it by running `rake javascript:update_constants`\n\n  const HOLIDAY_REGIONS = _exports.HOLIDAY_REGIONS = [\"ae\", \"ar\", \"at\", \"au\", \"au_nsw\", \"au_vic\", \"au_qld\", \"au_nt\", \"au_act\", \"au_sa\", \"au_wa\", \"au_tas\", \"au_tas_south\", \"au_qld_cairns\", \"au_qld_brisbane\", \"au_tas_north\", \"au_vic_melbourne\", \"be_fr\", \"be_nl\", \"br\", \"br_spcapital\", \"br_sp\", \"bg_en\", \"bg_bg\", \"ca\", \"ca_qc\", \"ca_ab\", \"ca_sk\", \"ca_on\", \"ca_bc\", \"ca_nb\", \"ca_mb\", \"ca_ns\", \"ca_pe\", \"ca_nl\", \"ca_nt\", \"ca_nu\", \"ca_yt\", \"us\", \"ch_zh\", \"ch_be\", \"ch_lu\", \"ch_ur\", \"ch_sz\", \"ch_ow\", \"ch_nw\", \"ch_gl\", \"ch_zg\", \"ch_fr\", \"ch_so\", \"ch_bs\", \"ch_bl\", \"ch_sh\", \"ch_ar\", \"ch_ai\", \"ch_sg\", \"ch_gr\", \"ch_ag\", \"ch_tg\", \"ch_ti\", \"ch_vd\", \"ch_ne\", \"ch_ge\", \"ch_ju\", \"ch_vs\", \"ch\", \"cl\", \"co\", \"cr\", \"cz\", \"dk\", \"de\", \"de_bw\", \"de_by\", \"de_he\", \"de_nw\", \"de_rp\", \"de_sl\", \"de_sn_sorbian\", \"de_th_cath\", \"de_sn\", \"de_st\", \"de_be\", \"de_by_cath\", \"de_by_augsburg\", \"de_bb\", \"de_mv\", \"de_th\", \"de_hb\", \"de_hh\", \"de_ni\", \"de_sh\", \"ee\", \"el\", \"es_pv\", \"es_na\", \"es_an\", \"es_ib\", \"es_cm\", \"es_mu\", \"es_m\", \"es_ar\", \"es_cl\", \"es_cn\", \"es_lo\", \"es_ga\", \"es_ce\", \"es_o\", \"es_ex\", \"es\", \"es_ct\", \"es_v\", \"es_vc\", \"fi\", \"fr_a\", \"fr_m\", \"fr\", \"gb\", \"gb_eng\", \"gb_wls\", \"gb_eaw\", \"gb_nir\", \"je\", \"gb_jsy\", \"gg\", \"gb_gsy\", \"gb_sct\", \"gb_con\", \"im\", \"gb_iom\", \"ge\", \"gh\", \"hr\", \"hk\", \"hu\", \"id\", \"ie\", \"in\", \"in_gj\", \"in_tn\", \"in_ka\", \"in_mh\", \"in_rj\", \"is\", \"it\", \"it_ve\", \"it_tv\", \"it_vr\", \"it_pd\", \"it_fi\", \"it_ge\", \"it_to\", \"it_rm\", \"it_vi\", \"it_bl\", \"it_ro\", \"kr\", \"kz\", \"li\", \"lt\", \"lv\", \"ma\", \"mt_mt\", \"mt_en\", \"mx\", \"mx_pue\", \"nl\", \"lu\", \"no\", \"nz\", \"nz_sl\", \"nz_we\", \"nz_ak\", \"nz_nl\", \"nz_ne\", \"nz_ot\", \"nz_ta\", \"nz_sc\", \"nz_hb\", \"nz_mb\", \"nz_ca\", \"nz_ch\", \"nz_wl\", \"pe\", \"ph\", \"pl\", \"pt\", \"pt_li\", \"pt_po\", \"ro\", \"rs_cyrl\", \"rs_la\", \"ru\", \"se\", \"sa\", \"tn\", \"tr\", \"ua\", \"us_fl\", \"us_la\", \"us_ct\", \"us_de\", \"us_gu\", \"us_hi\", \"us_in\", \"us_ky\", \"us_nj\", \"us_nc\", \"us_nd\", \"us_pr\", \"us_tn\", \"us_ms\", \"us_id\", \"us_ar\", \"us_tx\", \"us_dc\", \"us_md\", \"us_va\", \"us_vt\", \"us_ak\", \"us_ca\", \"us_me\", \"us_ma\", \"us_al\", \"us_ga\", \"us_ne\", \"us_mo\", \"us_sc\", \"us_wv\", \"us_vi\", \"us_ut\", \"us_ri\", \"us_az\", \"us_co\", \"us_oh\", \"us_or\", \"us_sd\", \"us_wy\", \"us_nv\", \"us_mt\", \"us_ny\", \"us_pa\", \"us_nm\", \"us_ia\", \"us_il\", \"us_ks\", \"us_mi\", \"us_mn\", \"us_nh\", \"us_ok\", \"us_wa\", \"us_wi\", \"za\", \"ve\", \"sk\", \"si\", \"jp\", \"vi\", \"sg\", \"my\", \"th\", \"ng\", \"ke\"];\n  const TIME_ZONE_TO_REGION = _exports.TIME_ZONE_TO_REGION = {\n    \"Africa/Accra\": \"gh\",\n    \"Africa/Casablanca\": \"ma\",\n    \"Africa/Ceuta\": \"es\",\n    \"Africa/Johannesburg\": \"za\",\n    \"Africa/Lagos\": \"ng\",\n    \"Africa/Nairobi\": \"ke\",\n    \"Africa/Tunis\": \"tn\",\n    \"America/Adak\": \"us\",\n    \"America/Anchorage\": \"us\",\n    \"America/Araguaina\": \"br\",\n    \"America/Argentina/Buenos_Aires\": \"ar\",\n    \"America/Argentina/Catamarca\": \"ar\",\n    \"America/Argentina/Cordoba\": \"ar\",\n    \"America/Argentina/Jujuy\": \"ar\",\n    \"America/Argentina/La_Rioja\": \"ar\",\n    \"America/Argentina/Mendoza\": \"ar\",\n    \"America/Argentina/Rio_Gallegos\": \"ar\",\n    \"America/Argentina/Salta\": \"ar\",\n    \"America/Argentina/San_Juan\": \"ar\",\n    \"America/Argentina/San_Luis\": \"ar\",\n    \"America/Argentina/Tucuman\": \"ar\",\n    \"America/Argentina/Ushuaia\": \"ar\",\n    \"America/Atikokan\": \"ca\",\n    \"America/Bahia\": \"br\",\n    \"America/Bahia_Banderas\": \"mx\",\n    \"America/Belem\": \"br\",\n    \"America/Blanc-Sablon\": \"ca\",\n    \"America/Boa_Vista\": \"br\",\n    \"America/Bogota\": \"co\",\n    \"America/Boise\": \"us\",\n    \"America/Cambridge_Bay\": \"ca\",\n    \"America/Campo_Grande\": \"br\",\n    \"America/Cancun\": \"mx\",\n    \"America/Caracas\": \"ve\",\n    \"America/Chicago\": \"us\",\n    \"America/Chihuahua\": \"mx\",\n    \"America/Ciudad_Juarez\": \"mx\",\n    \"America/Costa_Rica\": \"cr\",\n    \"America/Creston\": \"ca\",\n    \"America/Cuiaba\": \"br\",\n    \"America/Dawson\": \"ca\",\n    \"America/Dawson_Creek\": \"ca\",\n    \"America/Denver\": \"us\",\n    \"America/Detroit\": \"us\",\n    \"America/Edmonton\": \"ca\",\n    \"America/Eirunepe\": \"br\",\n    \"America/Fort_Nelson\": \"ca\",\n    \"America/Fortaleza\": \"br\",\n    \"America/Glace_Bay\": \"ca\",\n    \"America/Goose_Bay\": \"ca\",\n    \"America/Halifax\": \"ca\",\n    \"America/Hermosillo\": \"mx\",\n    \"America/Indiana/Indianapolis\": \"us\",\n    \"America/Indiana/Knox\": \"us\",\n    \"America/Indiana/Marengo\": \"us\",\n    \"America/Indiana/Petersburg\": \"us\",\n    \"America/Indiana/Tell_City\": \"us\",\n    \"America/Indiana/Vevay\": \"us\",\n    \"America/Indiana/Vincennes\": \"us\",\n    \"America/Indiana/Winamac\": \"us\",\n    \"America/Inuvik\": \"ca\",\n    \"America/Iqaluit\": \"ca\",\n    \"America/Juneau\": \"us\",\n    \"America/Kentucky/Louisville\": \"us\",\n    \"America/Kentucky/Monticello\": \"us\",\n    \"America/Lima\": \"pe\",\n    \"America/Los_Angeles\": \"us\",\n    \"America/Maceio\": \"br\",\n    \"America/Manaus\": \"br\",\n    \"America/Matamoros\": \"mx\",\n    \"America/Mazatlan\": \"mx\",\n    \"America/Menominee\": \"us\",\n    \"America/Merida\": \"mx\",\n    \"America/Metlakatla\": \"us\",\n    \"America/Mexico_City\": \"mx\",\n    \"America/Moncton\": \"ca\",\n    \"America/Monterrey\": \"mx\",\n    \"America/New_York\": \"us\",\n    \"America/Nome\": \"us\",\n    \"America/Noronha\": \"br\",\n    \"America/North_Dakota/Beulah\": \"us\",\n    \"America/North_Dakota/Center\": \"us\",\n    \"America/North_Dakota/New_Salem\": \"us\",\n    \"America/Ojinaga\": \"mx\",\n    \"America/Phoenix\": \"us\",\n    \"America/Porto_Velho\": \"br\",\n    \"America/Punta_Arenas\": \"cl\",\n    \"America/Rankin_Inlet\": \"ca\",\n    \"America/Recife\": \"br\",\n    \"America/Regina\": \"ca\",\n    \"America/Resolute\": \"ca\",\n    \"America/Rio_Branco\": \"br\",\n    \"America/Santarem\": \"br\",\n    \"America/Santiago\": \"cl\",\n    \"America/Sao_Paulo\": \"br\",\n    \"America/Sitka\": \"us\",\n    \"America/St_Johns\": \"ca\",\n    \"America/St_Thomas\": \"vi\",\n    \"America/Swift_Current\": \"ca\",\n    \"America/Tijuana\": \"mx\",\n    \"America/Toronto\": \"ca\",\n    \"America/Vancouver\": \"ca\",\n    \"America/Whitehorse\": \"ca\",\n    \"America/Winnipeg\": \"ca\",\n    \"America/Yakutat\": \"us\",\n    \"Antarctica/Macquarie\": \"au\",\n    \"Asia/Almaty\": \"kz\",\n    \"Asia/Anadyr\": \"ru\",\n    \"Asia/Aqtau\": \"kz\",\n    \"Asia/Aqtobe\": \"kz\",\n    \"Asia/Atyrau\": \"kz\",\n    \"Asia/Bangkok\": \"th\",\n    \"Asia/Barnaul\": \"ru\",\n    \"Asia/Chita\": \"ru\",\n    \"Asia/Dubai\": \"ae\",\n    \"Asia/Hong_Kong\": \"hk\",\n    \"Asia/Irkutsk\": \"ru\",\n    \"Asia/Jakarta\": \"id\",\n    \"Asia/Jayapura\": \"id\",\n    \"Asia/Kamchatka\": \"ru\",\n    \"Asia/Khandyga\": \"ru\",\n    \"Asia/Kolkata\": \"in\",\n    \"Asia/Krasnoyarsk\": \"ru\",\n    \"Asia/Kuala_Lumpur\": \"my\",\n    \"Asia/Kuching\": \"my\",\n    \"Asia/Magadan\": \"ru\",\n    \"Asia/Makassar\": \"id\",\n    \"Asia/Manila\": \"ph\",\n    \"Asia/Novokuznetsk\": \"ru\",\n    \"Asia/Novosibirsk\": \"ru\",\n    \"Asia/Omsk\": \"ru\",\n    \"Asia/Oral\": \"kz\",\n    \"Asia/Pontianak\": \"id\",\n    \"Asia/Qostanay\": \"kz\",\n    \"Asia/Qyzylorda\": \"kz\",\n    \"Asia/Riyadh\": \"sa\",\n    \"Asia/Sakhalin\": \"ru\",\n    \"Asia/Seoul\": \"kr\",\n    \"Asia/Singapore\": \"sg\",\n    \"Asia/Srednekolymsk\": \"ru\",\n    \"Asia/Tbilisi\": \"ge\",\n    \"Asia/Tokyo\": \"jp\",\n    \"Asia/Tomsk\": \"ru\",\n    \"Asia/Ust-Nera\": \"ru\",\n    \"Asia/Vladivostok\": \"ru\",\n    \"Asia/Yakutsk\": \"ru\",\n    \"Asia/Yekaterinburg\": \"ru\",\n    \"Atlantic/Azores\": \"pt\",\n    \"Atlantic/Canary\": \"es\",\n    \"Atlantic/Madeira\": \"pt\",\n    \"Atlantic/Reykjavik\": \"is\",\n    \"Australia/Adelaide\": \"au\",\n    \"Australia/Brisbane\": \"au\",\n    \"Australia/Broken_Hill\": \"au\",\n    \"Australia/Darwin\": \"au\",\n    \"Australia/Eucla\": \"au\",\n    \"Australia/Hobart\": \"au\",\n    \"Australia/Lindeman\": \"au\",\n    \"Australia/Lord_Howe\": \"au\",\n    \"Australia/Melbourne\": \"au\",\n    \"Australia/Perth\": \"au\",\n    \"Australia/Sydney\": \"au\",\n    \"Europe/Amsterdam\": \"nl\",\n    \"Europe/Astrakhan\": \"ru\",\n    \"Europe/Athens\": \"el\",\n    \"Europe/Berlin\": \"de\",\n    \"Europe/Bratislava\": \"sk\",\n    \"Europe/Bucharest\": \"ro\",\n    \"Europe/Budapest\": \"hu\",\n    \"Europe/Busingen\": \"de\",\n    \"Europe/Copenhagen\": \"dk\",\n    \"Europe/Dublin\": \"ie\",\n    \"Europe/Guernsey\": \"gg\",\n    \"Europe/Helsinki\": \"fi\",\n    \"Europe/Isle_of_Man\": \"im\",\n    \"Europe/Istanbul\": \"tr\",\n    \"Europe/Jersey\": \"je\",\n    \"Europe/Kaliningrad\": \"ru\",\n    \"Europe/Kirov\": \"ru\",\n    \"Europe/Kyiv\": \"ua\",\n    \"Europe/Lisbon\": \"pt\",\n    \"Europe/Ljubljana\": \"si\",\n    \"Europe/London\": \"gb\",\n    \"Europe/Luxembourg\": \"lu\",\n    \"Europe/Madrid\": \"es\",\n    \"Europe/Moscow\": \"ru\",\n    \"Europe/Oslo\": \"no\",\n    \"Europe/Paris\": \"fr\",\n    \"Europe/Prague\": \"cz\",\n    \"Europe/Riga\": \"lv\",\n    \"Europe/Rome\": \"it\",\n    \"Europe/Samara\": \"ru\",\n    \"Europe/Saratov\": \"ru\",\n    \"Europe/Simferopol\": \"ru\",\n    \"Europe/Stockholm\": \"se\",\n    \"Europe/Tallinn\": \"ee\",\n    \"Europe/Ulyanovsk\": \"ru\",\n    \"Europe/Vaduz\": \"li\",\n    \"Europe/Vienna\": \"at\",\n    \"Europe/Vilnius\": \"lt\",\n    \"Europe/Volgograd\": \"ru\",\n    \"Europe/Warsaw\": \"pl\",\n    \"Europe/Zagreb\": \"hr\",\n    \"Europe/Zurich\": \"ch\",\n    \"Pacific/Auckland\": \"nz\",\n    \"Pacific/Chatham\": \"nz\",\n    \"Pacific/Easter\": \"cl\",\n    \"Pacific/Honolulu\": \"us\"\n  };\n});","define(\"discourse/plugins/discourse-calendar/discourse/lib/round-time\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = roundTime;\n  // https://github.com/WebDevTmas/moment-round\n  if (typeof moment.fn.round !== \"function\") {\n    moment.fn.round = function (precision, key, direction) {\n      direction = direction || \"round\";\n      let _this = this; //cache of this\n      let methods = {\n        hours: {\n          name: \"Hours\",\n          maxValue: 24\n        },\n        minutes: {\n          name: \"Minutes\",\n          maxValue: 60\n        },\n        seconds: {\n          name: \"Seconds\",\n          maxValue: 60\n        },\n        milliseconds: {\n          name: \"Milliseconds\",\n          maxValue: 1000\n        }\n      };\n      let keys = {\n        mm: methods.milliseconds.name,\n        milliseconds: methods.milliseconds.name,\n        Milliseconds: methods.milliseconds.name,\n        s: methods.seconds.name,\n        seconds: methods.seconds.name,\n        Seconds: methods.seconds.name,\n        m: methods.minutes.name,\n        minutes: methods.minutes.name,\n        Minutes: methods.minutes.name,\n        H: methods.hours.name,\n        h: methods.hours.name,\n        hours: methods.hours.name,\n        Hours: methods.hours.name\n      };\n      let value = 0;\n      let rounded = false;\n      let subRatio = 1;\n      let maxValue;\n\n      // make sure key is plural\n      if (key.length > 1 && key !== \"mm\" && key.slice(-1) !== \"s\") {\n        key += \"s\";\n      }\n      key = keys[key].toLowerCase();\n\n      //control\n      if (!methods[key]) {\n        throw new Error('The value to round is not valid. Possibles [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"]');\n      }\n      let get = \"get\" + methods[key].name;\n      let set = \"set\" + methods[key].name;\n      for (let k in methods) {\n        if (k === key) {\n          value = _this._d[get]();\n          maxValue = methods[k].maxValue;\n          rounded = true;\n        } else if (rounded) {\n          subRatio *= methods[k].maxValue;\n          value += _this._d[\"get\" + methods[k].name]() / subRatio;\n          _this._d[\"set\" + methods[k].name](0);\n        }\n      }\n      value = Math[direction](value / precision) * precision;\n      value = Math.min(value, maxValue);\n      _this._d[set](value);\n      return _this;\n    };\n  }\n  if (typeof moment.fn.ceil !== \"function\") {\n    moment.fn.ceil = function (precision, key) {\n      return this.round(precision, key, \"ceil\");\n    };\n  }\n  if (typeof moment.fn.floor !== \"function\") {\n    moment.fn.floor = function (precision, key) {\n      return this.round(precision, key, \"floor\");\n    };\n  }\n  const STEP = 15;\n  function roundTime(date) {\n    return date.round(STEP, \"minutes\");\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-event\", [\"exports\", \"discourse/lib/ajax\", \"discourse/models/rest\"], function (_exports, _ajax, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const ATTRIBUTES = {\n    id: null,\n    name: null,\n    starts_at: null,\n    ends_at: null,\n    raw_invitees: null,\n    url: null,\n    timezone: null,\n    status: {\n      transform(value) {\n        return STATUSES[value];\n      }\n    }\n  };\n  const STATUSES = {\n    standalone: 0,\n    public: 1,\n    private: 2\n  };\n  const Event = _rest.default.extend({\n    init() {\n      this._super(...arguments);\n      this.__type = \"discourse-post-event-event\";\n    },\n    update(data) {\n      return (0, _ajax.ajax)(`/discourse-post-event/events/${this.id}.json`, {\n        type: \"PUT\",\n        dataType: \"json\",\n        contentType: \"application/json\",\n        data: JSON.stringify({\n          event: data\n        })\n      });\n    },\n    updateProperties() {\n      const attributesKeys = Object.keys(ATTRIBUTES);\n      return this.getProperties(attributesKeys);\n    },\n    createProperties() {\n      const attributesKeys = Object.keys(ATTRIBUTES);\n      return this.getProperties(attributesKeys);\n    },\n    _transformProps(props) {\n      const attributesKeys = Object.keys(ATTRIBUTES);\n      attributesKeys.forEach(key => {\n        const attribute = ATTRIBUTES[key];\n        if (attribute?.transform) {\n          props[key] = attribute.transform(props[key]);\n        }\n      });\n    },\n    beforeUpdate(props) {\n      this._transformProps(props);\n    },\n    beforeCreate(props) {\n      this._transformProps(props);\n    }\n  });\n  var _default = _exports.default = Event;\n});","define(\"discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-invitee\", [\"exports\", \"discourse/models/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _rest.default.extend({\n    init() {\n      this._super(...arguments);\n      this.__type = \"discourse-post-event-invitee\";\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-reminder\", [\"exports\", \"discourse/models/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _rest.default.extend({\n    init() {\n      this._super(...arguments);\n      this.__type = \"discourse-post-event-reminder\";\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/raw-templates/connectors/topic-list-after-title/event-date\", [\"exports\", \"discourse-common/lib/raw-handlebars\", \"discourse-common/lib/raw-templates\"], function (_exports, _rawHandlebars, _rawTemplates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let template = (0, _rawHandlebars.template)({\n    \"1\": function (container, depth0, helpers, partials, data) {\n      var stack1,\n        lookupProperty = container.lookupProperty || function (parent, propertyName) {\n          if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n            return parent[propertyName];\n          }\n          return undefined;\n        };\n      return (stack1 = lookupProperty(helpers, \"if\").call(depth0 != null ? depth0 : container.nullContext || {}, \"context.topic.event_starts_at\", {\n        \"name\": \"if\",\n        \"hash\": {},\n        \"hashTypes\": {},\n        \"hashContexts\": {},\n        \"fn\": container.program(2, data, 0),\n        \"inverse\": container.noop,\n        \"types\": [\"PathExpression\"],\n        \"contexts\": [depth0],\n        \"data\": data,\n        \"loc\": {\n          \"start\": {\n            \"line\": 2,\n            \"column\": 4\n          },\n          \"end\": {\n            \"line\": 4,\n            \"column\": 13\n          }\n        }\n      })) != null ? stack1 : \"\";\n    },\n    \"2\": function (container, depth0, helpers, partials, data) {\n      var lookupProperty = container.lookupProperty || function (parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined;\n      };\n      return container.escapeExpression((lookupProperty(helpers, \"raw\") || depth0 && lookupProperty(depth0, \"raw\") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, \"event-date-container\", {\n        \"name\": \"raw\",\n        \"hash\": {\n          \"topic\": \"context.topic\"\n        },\n        \"hashTypes\": {\n          \"topic\": \"PathExpression\"\n        },\n        \"hashContexts\": {\n          \"topic\": depth0\n        },\n        \"types\": [\"StringLiteral\"],\n        \"contexts\": [depth0],\n        \"data\": data,\n        \"loc\": {\n          \"start\": {\n            \"line\": 3,\n            \"column\": 8\n          },\n          \"end\": {\n            \"line\": 3,\n            \"column\": 60\n          }\n        }\n      }));\n    },\n    \"compiler\": [8, \">= 4.3.0\"],\n    \"main\": function (container, depth0, helpers, partials, data) {\n      var stack1,\n        lookupProperty = container.lookupProperty || function (parent, propertyName) {\n          if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n            return parent[propertyName];\n          }\n          return undefined;\n        };\n      return (stack1 = lookupProperty(helpers, \"if\").call(depth0 != null ? depth0 : container.nullContext || {}, \"context.siteSettings.discourse_post_event_enabled\", {\n        \"name\": \"if\",\n        \"hash\": {},\n        \"hashTypes\": {},\n        \"hashContexts\": {},\n        \"fn\": container.program(1, data, 0),\n        \"inverse\": container.noop,\n        \"types\": [\"PathExpression\"],\n        \"contexts\": [depth0],\n        \"data\": data,\n        \"loc\": {\n          \"start\": {\n            \"line\": 1,\n            \"column\": 0\n          },\n          \"end\": {\n            \"line\": 5,\n            \"column\": 9\n          }\n        }\n      })) != null ? stack1 : \"\";\n    },\n    \"useData\": true\n  });\n  (0, _rawTemplates.addRawTemplate)(\"javascripts/connectors/topic-list-after-title/event-date\", template, {\n    core: true\n  });\n  var _default = _exports.default = template;\n});","define(\"discourse/plugins/discourse-calendar/discourse/raw-templates/event-date-container\", [\"exports\", \"discourse-common/lib/raw-handlebars\", \"discourse-common/lib/raw-templates\"], function (_exports, _rawHandlebars, _rawTemplates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let template = (0, _rawHandlebars.template)({\n    \"compiler\": [8, \">= 4.3.0\"],\n    \"main\": function (container, depth0, helpers, partials, data) {\n      var lookupProperty = container.lookupProperty || function (parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined;\n      };\n      return container.escapeExpression((lookupProperty(helpers, \"html-safe\") || depth0 && lookupProperty(depth0, \"html-safe\") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, \"view.html\", {\n        \"name\": \"html-safe\",\n        \"hash\": {},\n        \"hashTypes\": {},\n        \"hashContexts\": {},\n        \"types\": [\"PathExpression\"],\n        \"contexts\": [depth0],\n        \"data\": data,\n        \"loc\": {\n          \"start\": {\n            \"line\": 1,\n            \"column\": 0\n          },\n          \"end\": {\n            \"line\": 1,\n            \"column\": 23\n          }\n        }\n      }));\n    },\n    \"useData\": true\n  });\n  (0, _rawTemplates.addRawTemplate)(\"javascripts/event-date-container\", template, {\n    core: true\n  });\n  var _default = _exports.default = template;\n});","define(\"discourse/plugins/discourse-calendar/discourse/raw-views/event-date-container\", [\"exports\", \"@ember/object\", \"discourse/lib/raw-render-glimmer\", \"discourse/plugins/discourse-calendar/discourse/components/event-date\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _object, _rawRenderGlimmer, _eventDate, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class _default extends _object.default {\n    get html() {\n      return (0, _rawRenderGlimmer.default)(this, \"span.event-date-container-wrapper\", (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n      /*\n        <EventDate @topic={{@data.topic}} />\n      */\n      {\n        \"id\": \"1pWgjw3L\",\n        \"block\": \"[[[8,[32,0],null,[[\\\"@topic\\\"],[[30,1,[\\\"topic\\\"]]]],null]],[\\\"@data\\\"],false,[]]\",\n        \"moduleName\": \"/srv/discourse/app/app/assets/javascripts/discourse/discourse/plugins/discourse-calendar/discourse/raw-views/event-date-container.js\",\n        \"scope\": () => [_eventDate.default],\n        \"isStrictMode\": true\n      }), (0, _templateOnly.default)()), {\n        topic: this.topic\n      });\n    }\n  }\n  _exports.default = _default;\n});","define(\"discourse/plugins/discourse-calendar/discourse/routes/discourse-post-event-upcoming-events-index\", [\"exports\", \"@ember/object/evented\", \"@ember/routing/route\", \"discourse/lib/url\"], function (_exports, _evented, _route, _url) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    enforcePostEventEnabled: (0, _evented.on)(\"activate\", function () {\n      if (!this.siteSettings.discourse_post_event_enabled) {\n        _url.default.redirectTo(\"/404\");\n      }\n    }),\n    model(params) {\n      if (this.siteSettings.include_expired_events_on_calendar) {\n        params.include_expired = true;\n      }\n      return this.store.findAll(\"discourse-post-event-event\", params);\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/templates/admin-plugins-calendar\", [\"exports\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _deprecationsHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h3>\n    {{i18n \"discourse_calendar.holidays.header_title\"}}\n  </h3>\n  \n  <RegionInput\n    @value={{this.selectedRegion}}\n    @onChange={{action \"getHolidays\"}}\n  />\n  \n  <p class=\"desc\">\n    {{i18n \"discourse_calendar.holidays.pick_region_description\"}}\n    <br /><br />\n    {{i18n \"discourse_calendar.holidays.disabled_holidays_description\"}}\n  </p>\n  \n  <ConditionalLoadingSpinner @condition={{loading}} />\n  \n  {{#if model.holidays}}\n    <AdminHolidaysList\n      @holidays={{model.holidays}}\n      @region_code={{this.selectedRegion}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"BFa8FIqv\",\n    \"block\": \"[[[10,\\\"h3\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"discourse_calendar.holidays.header_title\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,1],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"selectedRegion\\\"]],[28,[37,2],[[30,0],\\\"getHolidays\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[10,2],[14,0,\\\"desc\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"discourse_calendar.holidays.pick_region_description\\\"],null]],[1,\\\"\\\\n  \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"discourse_calendar.holidays.disabled_holidays_description\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,3],null,[[\\\"@condition\\\"],[[30,0,[\\\"loading\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"holidays\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@holidays\\\",\\\"@region_code\\\"],[[30,0,[\\\"model\\\",\\\"holidays\\\"]],[30,0,[\\\"selectedRegion\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,[28,[32,0],[\\\"[[\\\\\\\"The `loading` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/admin-plugins-calendar.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.loading}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/admin-plugins-calendar.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}],[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/admin-plugins-calendar.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[],false,[\\\"i18n\\\",\\\"region-input\\\",\\\"action\\\",\\\"conditional-loading-spinner\\\",\\\"if\\\",\\\"admin-holidays-list\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/templates/admin-plugins-calendar.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/templates/connectors/after-user-name/holiday-flair\", [\"exports\", \"ember-this-fallback/this-fallback-helper\", \"ember-this-fallback/try-lookup-helper\", \"@ember/template-factory\"], function (_exports, _thisFallbackHelper, _tryLookupHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <img src={{holidayEmoji}} class=\"emoji\" alt={{holidayEmojiName}} />\n  */\n  {\n    \"id\": \"aV7MmsJe\",\n    \"block\": \"[[[44,[[28,[37,1],null,[[\\\"holidayEmoji\\\",\\\"holidayEmojiName\\\"],[[28,[32,0],[\\\"holidayEmoji\\\"],null],[28,[32,0],[\\\"holidayEmojiName\\\"],null]]]]],[[[10,\\\"img\\\"],[15,\\\"src\\\",[52,[30,1,[\\\"holidayEmoji\\\"]],[28,[30,1,[\\\"holidayEmoji\\\"]],null,null],[28,[32,1],[[30,0],\\\"holidayEmoji\\\",\\\"[\\\\\\\"The `holidayEmoji` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/connectors/after-user-name/holiday-flair.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.holidayEmoji}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]],[14,0,\\\"emoji\\\"],[15,\\\"alt\\\",[52,[30,1,[\\\"holidayEmojiName\\\"]],[28,[30,1,[\\\"holidayEmojiName\\\"]],null,null],[28,[32,1],[[30,0],\\\"holidayEmojiName\\\",\\\"[\\\\\\\"The `holidayEmojiName` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/connectors/after-user-name/holiday-flair.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.holidayEmojiName}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]\\\"],null]]],[12],[13]],[1]]]],[\\\"maybeHelpers\\\"],false,[\\\"let\\\",\\\"hash\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/templates/connectors/after-user-name/holiday-flair.hbs\",\n    \"scope\": () => [_tryLookupHelper.default, _thisFallbackHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/templates/connectors/user-custom-preferences/region\", [\"exports\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _deprecationsHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"control-group\">\n    <label class=\"control-label\">{{i18n\n        \"discourse_calendar.region.title\"\n      }}</label>\n    <div class=\"controls\">\n      <RegionInput\n        @value={{model.custom_fields.holidays-region}}\n        @allowNoneRegion={{true}}\n        @onChange={{action \"onChange\"}}\n      />\n    </div>\n    <DButton\n      @icon=\"globe\"\n      @label=\"discourse_calendar.region.use_current_region\"\n      @action={{action \"useCurrentRegion\"}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"cl64Lapn\",\n    \"block\": \"[[[10,0],[14,0,\\\"control-group\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[1,[28,[35,0],[\\\"discourse_calendar.region.title\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"controls\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@value\\\",\\\"@allowNoneRegion\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"custom_fields\\\",\\\"holidays-region\\\"]],true,[28,[37,2],[[30,0],\\\"onChange\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@action\\\"],[\\\"globe\\\",\\\"discourse_calendar.region.use_current_region\\\",[28,[37,2],[[30,0],\\\"useCurrentRegion\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13],[1,[28,[32,0],[\\\"[[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/connectors/user-custom-preferences/region.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[],false,[\\\"i18n\\\",\\\"region-input\\\",\\\"action\\\",\\\"d-button\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/templates/connectors/user-custom-preferences/region.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events-index\", [\"exports\", \"ember-this-fallback/deprecations-helper\", \"@ember/template-factory\"], function (_exports, _deprecationsHelper, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"discourse-post-event-upcoming-events\">\n    <UpcomingEventsCalendar @events={{model}} />\n  </div>\n  */\n  {\n    \"id\": \"Qwi+trV1\",\n    \"block\": \"[[[10,0],[14,0,\\\"discourse-post-event-upcoming-events\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@events\\\"],[[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"],[13],[1,[28,[32,0],[\\\"[[\\\\\\\"The `model` property path was used in the `discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events-index.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.model}}\\\\\\\",false,{\\\\\\\"id\\\\\\\":\\\\\\\"ember-this-fallback.this-property-fallback\\\\\\\",\\\\\\\"until\\\\\\\":\\\\\\\"n/a\\\\\\\",\\\\\\\"for\\\\\\\":\\\\\\\"ember-this-fallback\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"https://deprecations.emberjs.com/v3.x#toc_this-property-fallback\\\\\\\",\\\\\\\"since\\\\\\\":{\\\\\\\"available\\\\\\\":\\\\\\\"0.2.0\\\\\\\"}}]]\\\"],null]]],[],false,[\\\"upcoming-events-calendar\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events-index.hbs\",\n    \"scope\": () => [_deprecationsHelper.default],\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"+Rik5RgH\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"discourse/plugins/discourse-calendar/discourse/templates/discourse-post-event-upcoming-events.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezone-new-day\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezone-new-day\", {\n    tagName: \"div.group-timezone-new-day\",\n    template: function (attrs, state) {\n      var __h1 = __widget_helpers.iconNode;\n      var _r = [];\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      _a0.push(__h1(\"chevron-left\"));\n      _a0.push(\"\\n      \");\n      _a0.push(this.attrs.groupedTimezone.beforeDate);\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"before\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n    \");\n      var _a1 = [];\n      _a1.push(\"\\n      \");\n      _a1.push(this.attrs.groupedTimezone.afterDate);\n      _a1.push(\"\\n      \");\n      _a1.push(__h1(\"chevron-right\"));\n      _a1.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"after\",\n        \"attributes\": {}\n      }, _a1));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezone\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezone\", {\n    tagName: \"div.group-timezone\",\n    buildClasses(attrs) {\n      const classes = [];\n      if (attrs.groupedTimezone.closeToWorkingHours) {\n        classes.push(\"close-to-working-hours\");\n      }\n      if (attrs.groupedTimezone.inWorkingHours) {\n        classes.push(\"in-working-hours\");\n      }\n      return classes.join(\" \");\n    },\n    transform(attrs) {\n      return {\n        formatedTime: attrs.groupedTimezone.nowWithOffset.format(\"LT\")\n      };\n    },\n    template: function (attrs, state) {\n      var __h1 = __widget_helpers.rawHtml;\n      var _r = [];\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      var _a1 = [];\n      _a1.push(\"\\n        \");\n      _a1.push(this.transformed.formatedTime);\n      _a1.push(\"\\n      \");\n      _a0.push(virtualDom.h('span', {\n        \"className\": \"time\",\n        \"attributes\": {}\n      }, _a1));\n      _a0.push(\"\\n      \");\n      var _a2 = [];\n      _a2.push(\"\\n        \");\n      _a2.push(new __h1({\n        html: '<span>' + attrs.groupedTimezone.utcOffset + '</span>'\n      }));\n      _a2.push(\"\\n      \");\n      _a0.push(virtualDom.h('span', {\n        \"className\": \"offset\",\n        \"attributes\": {\n          \"title\": \"UTC offset\"\n        }\n      }, _a2));\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('div', {\n        \"className\": \"info\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n    \");\n      var _a3 = [];\n      _a3.push(\"\\n\");\n      if (attrs.groupedTimezone.members && attrs.groupedTimezone.members.length) {\n        attrs.groupedTimezone.members.forEach(member => {\n          _a3.push(\"        \");\n          _a3.push(this.attach(\"discourse-group-timezones-member\", {\n            \"usersOnHoliday\": attrs.usersOnHoliday,\n            \"member\": member\n          }, undefined, undefined));\n          _a3.push(\"\\n\");\n        });\n      }\n      _a3.push(\"    \");\n      _r.push(virtualDom.h('ul', {\n        \"className\": \"group-timezones-members\",\n        \"attributes\": {}\n      }, _a3));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-filter\", [\"exports\", \"@ember/runloop\", \"discourse/widgets/widget\", \"I18n\"], function (_exports, _runloop, _widget, _I18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones-filter\", {\n    tagName: \"input.group-timezones-filter\",\n    input(event) {\n      this.changeFilterThrottler(event.target.value);\n    },\n    changeFilterThrottler(filter) {\n      (0, _runloop.throttle)(this, function () {\n        this.sendWidgetAction(\"onChangeFilter\", filter);\n      }, 100);\n    },\n    buildAttributes() {\n      return {\n        type: \"text\",\n        placeholder: _I18n.default.t(\"group_timezones.search\")\n      };\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-header\", [\"exports\", \"discourse/widgets/widget\", \"I18n\"], function (_exports, _widget, _I18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones-header\", {\n    tagName: \"div.group-timezones-header\",\n    transform(attrs) {\n      return {\n        title: _I18n.default.t(\"group_timezones.group_availability\", {\n          group: attrs.group\n        })\n      };\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(this.attach(\"discourse-group-timezones-time-traveler\", {\n        \"id\": attrs.id,\n        \"localTimeOffset\": attrs.localTimeOffset\n      }, undefined, undefined));\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      _a0.push(this.transformed.title);\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"title\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n    \");\n      _r.push(this.attach(\"discourse-group-timezones-filter\", undefined, undefined, undefined));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-member\", [\"exports\", \"virtual-dom\", \"discourse/lib/utilities\", \"discourse/widgets/post\", \"discourse/widgets/widget\"], function (_exports, _virtualDom, _utilities, _post, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones-member\", {\n    tagName: \"li.group-timezones-member\",\n    buildClasses(attrs) {\n      return attrs.member.on_holiday ? \"on-holiday\" : \"not-on-holiday\";\n    },\n    html(attrs) {\n      const {\n        name,\n        username,\n        avatar_template\n      } = attrs.member;\n      return (0, _virtualDom.h)(\"a\", {\n        attributes: {\n          class: \"group-timezones-member-avatar\",\n          \"data-user-card\": username\n        }\n      }, (0, _post.avatarImg)(\"small\", {\n        template: avatar_template,\n        username: name || (0, _utilities.formatUsername)(username)\n      }));\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-reset\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones-reset\", {\n    tagName: \"div.group-timezones-reset\",\n    onResetOffset() {\n      this.sendWidgetAction(\"onChangeCurrentUserTimeOffset\", 0);\n      const container = document.getElementById(this.attrs.id);\n      const slider = container.querySelector(\"input[type=range].group-timezones-slider\");\n      if (slider) {\n        slider.value = 0;\n      }\n    },\n    transform(attrs) {\n      return {\n        isDisabled: attrs.localTimeOffset === 0\n      };\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(this.attach(\"button\", {\n        \"disabled\": this.transformed.isDisabled,\n        \"action\": \"onResetOffset\",\n        \"icon\": \"undo\"\n      }, undefined, undefined));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-slider\", [\"exports\", \"@ember/runloop\", \"discourse/widgets/widget\"], function (_exports, _runloop, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones-slider\", {\n    tagName: \"input.group-timezones-slider\",\n    input(event) {\n      this._handleSliderEvent(event);\n    },\n    change(event) {\n      this._handleSliderEvent(event);\n    },\n    changeOffsetThrottler(offset) {\n      (0, _runloop.throttle)(this, function () {\n        this.sendWidgetAction(\"onChangeCurrentUserTimeOffset\", offset);\n      }, 75);\n    },\n    buildAttributes() {\n      return {\n        step: 1,\n        value: 0,\n        min: -48,\n        max: 48,\n        type: \"range\"\n      };\n    },\n    _handleSliderEvent(event) {\n      const value = parseInt(event.target.value, 10);\n      const offset = value * 15;\n      this.changeOffsetThrottler(offset);\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones-time-traveler\", [\"exports\", \"discourse/widgets/widget\", \"discourse/plugins/discourse-calendar/discourse/lib/round-time\"], function (_exports, _widget, _roundTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones-time-traveler\", {\n    tagName: \"div.group-timezones-time-traveler\",\n    transform(attrs) {\n      let date = moment().add(attrs.localTimeOffset, \"minutes\");\n      if (attrs.localTimeOffset) {\n        date = (0, _roundTime.default)(date);\n      }\n      return {\n        localTimeWithOffset: date.format(\"HH:mm\")\n      };\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      _a0.push(this.transformed.localTimeWithOffset);\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"time\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n    \");\n      var _a1 = [];\n      _a1.push(\"\\n      \");\n      _a1.push(this.attach(\"discourse-group-timezones-slider\", undefined, undefined, undefined));\n      _a1.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"discourse-group-timezones-slider-wrapper\",\n        \"attributes\": {}\n      }, _a1));\n      _r.push(\"\\n    \");\n      _r.push(this.attach(\"discourse-group-timezones-reset\", {\n        \"id\": attrs.id,\n        \"localTimeOffset\": attrs.localTimeOffset\n      }, undefined, undefined));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-group-timezones\", [\"exports\", \"discourse/widgets/widget\", \"discourse/plugins/discourse-calendar/discourse/lib/round-time\"], function (_exports, _widget, _roundTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-group-timezones\", {\n    tagName: \"div.group-timezones\",\n    buildKey: attrs => `group-timezones-${attrs.id}`,\n    buildClasses(attrs) {\n      return attrs.size;\n    },\n    buildAttributes(attrs) {\n      return {\n        id: attrs.id\n      };\n    },\n    defaultState() {\n      return {\n        localTimeOffset: 0\n      };\n    },\n    onChangeCurrentUserTimeOffset(offset) {\n      this.state.localTimeOffset = offset;\n    },\n    transform(attrs, state) {\n      const members = attrs.members || [];\n      let groupedTimezones = [];\n      members.filterBy(\"timezone\").forEach(member => {\n        if (this._shouldAddMemberToGroup(this.state.filter, member)) {\n          const timezone = member.timezone;\n          const identifier = parseInt(moment.tz(timezone).format(\"YYYYMDHm\"), 10);\n          let groupedTimezone = groupedTimezones.findBy(\"identifier\", identifier);\n          if (groupedTimezone) {\n            groupedTimezone.members.push(member);\n          } else {\n            const now = this._roundMoment(moment.tz(timezone));\n            const workingDays = this._workingDays();\n            const offset = moment.tz(moment.utc(), timezone).utcOffset();\n            groupedTimezone = {\n              identifier,\n              offset,\n              type: \"discourse-group-timezone\",\n              nowWithOffset: now.add(state.localTimeOffset, \"minutes\"),\n              closeToWorkingHours: this._closeToWorkingHours(now, workingDays),\n              inWorkingHours: this._inWorkingHours(now, workingDays),\n              utcOffset: this._utcOffset(offset),\n              members: [member]\n            };\n            groupedTimezones.push(groupedTimezone);\n          }\n        }\n      });\n      groupedTimezones = groupedTimezones.sortBy(\"offset\").filter(g => g.members.length);\n      let newDayIndex;\n      groupedTimezones.forEach((groupedTimezone, index) => {\n        if (index > 0) {\n          if (groupedTimezones[index - 1].nowWithOffset.format(\"dddd\") !== groupedTimezone.nowWithOffset.format(\"dddd\")) {\n            newDayIndex = index;\n          }\n        }\n      });\n      if (newDayIndex) {\n        groupedTimezones.splice(newDayIndex, 0, {\n          type: \"discourse-group-timezone-new-day\",\n          beforeDate: groupedTimezones[newDayIndex - 1].nowWithOffset.format(\"dddd\"),\n          afterDate: groupedTimezones[newDayIndex].nowWithOffset.format(\"dddd\")\n        });\n      }\n      return {\n        groupedTimezones\n      };\n    },\n    onChangeFilter(filter) {\n      this.state.filter = filter && filter.length ? filter : null;\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(this.attach(\"discourse-group-timezones-header\", {\n        \"id\": attrs.id,\n        \"group\": attrs.group,\n        \"localTimeOffset\": state.localTimeOffset\n      }, undefined, undefined));\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n\");\n      if (this.transformed.groupedTimezones && this.transformed.groupedTimezones.length) {\n        this.transformed.groupedTimezones.forEach(groupedTimezone => {\n          _a0.push(\"        \");\n          _a0.push(this.attach(groupedTimezone.type, {\n            \"usersOnHoliday\": attrs.usersOnHoliday,\n            \"groupedTimezone\": groupedTimezone\n          }, undefined, undefined));\n          _a0.push(\"\\n\");\n        });\n      }\n      _a0.push(\"    \");\n      _r.push(virtualDom.h('div', {\n        \"className\": \"group-timezones-body\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n  \");\n      return _r;\n    },\n    _shouldAddMemberToGroup(filter, member) {\n      if (filter) {\n        filter = filter.toLowerCase();\n        if (member.username.toLowerCase().indexOf(filter) > -1 || member.name && member.name.toLowerCase().indexOf(filter) > -1) {\n          return true;\n        }\n      } else {\n        return true;\n      }\n      return false;\n    },\n    _roundMoment(date) {\n      if (this.state.localTimeOffset) {\n        date = (0, _roundTime.default)(date);\n      }\n      return date;\n    },\n    _closeToWorkingHours(moment, workingDays) {\n      const hours = moment.hours();\n      const startHour = this.siteSettings.working_day_start_hour;\n      const endHour = this.siteSettings.working_day_end_hour;\n      const extension = this.siteSettings.close_to_working_day_hours_extension;\n      return (hours >= Math.max(startHour - extension, 0) && hours <= startHour || hours <= Math.min(endHour + extension, 23) && hours >= endHour) && workingDays.includes(moment.isoWeekday());\n    },\n    _inWorkingHours(moment, workingDays) {\n      const hours = moment.hours();\n      return hours > this.siteSettings.working_day_start_hour && hours < this.siteSettings.working_day_end_hour && workingDays.includes(moment.isoWeekday());\n    },\n    _utcOffset(offset) {\n      const sign = Math.sign(offset) === 1 ? \"+\" : \"-\";\n      offset = Math.abs(offset);\n      let hours = Math.floor(offset / 60).toString();\n      hours = hours.length === 1 ? `0${hours}` : hours;\n      let minutes = (offset % 60).toString();\n      minutes = minutes.length === 1 ? `:${minutes}0` : `:${minutes}`;\n      return `${sign}${hours.replace(/^0(\\d)/, \"$1\")}${minutes.replace(/:00$/, \"\")}`.replace(/-0/, \"&nbsp;\");\n    },\n    _workingDays() {\n      const enMoment = moment().locale(\"en\");\n      const getIsoWeekday = day => enMoment.localeData()._weekdays.indexOf(day) || 7;\n      return this.siteSettings.working_days.split(\"|\").filter(Boolean).map(x => getIsoWeekday(x));\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-dates\", [\"exports\", \"virtual-dom\", \"discourse/widgets/raw-html\", \"discourse/widgets/widget\", \"discourse-common/lib/icon-library\", \"I18n\"], function (_exports, _virtualDom, _rawHtml, _widget, _iconLibrary, _I18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event-dates\", {\n    tagName: \"section.event-dates\",\n    showAllParticipatingInvitees(postId) {\n      this.sendWidgetAction(\"showAllInvitees\", {\n        postId,\n        title: \"title_participated\",\n        extraClass: \"participated\"\n      });\n    },\n    html(_ref) {\n      let {\n        localDates,\n        eventModel\n      } = _ref;\n      const content = [(0, _iconLibrary.iconNode)(\"clock\"), (0, _virtualDom.h)(\"span.date\", new _rawHtml.default({\n        html: `<span>${localDates}</span>`\n      }))];\n      if (eventModel.is_expired && !eventModel.is_closed && !eventModel.is_standalone) {\n        let participants;\n        const label = _I18n.default.t(\"discourse_calendar.discourse_post_event.event_ui.participants\", {\n          count: eventModel.stats.going\n        });\n        if (eventModel.stats.going > 0) {\n          participants = this.attach(\"link\", {\n            action: \"showAllParticipatingInvitees\",\n            actionParam: eventModel.id,\n            contents: () => label\n          });\n        } else {\n          participants = label;\n        }\n        content.push((0, _virtualDom.h)(\"span.participants\", [(0, _virtualDom.h)(\"span\", \" - \"), participants]));\n      }\n      return content;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-host\", [\"exports\", \"virtual-dom\", \"discourse/lib/utilities\", \"discourse/widgets/post\", \"discourse/widgets/widget\"], function (_exports, _virtualDom, _utilities, _post, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event-creator\", {\n    tagName: \"span.event-creator\",\n    html(attrs) {\n      const {\n        name,\n        username,\n        avatar_template\n      } = attrs.user;\n      return (0, _virtualDom.h)(\"a\", {\n        attributes: {\n          class: \"topic-invitee-avatar\",\n          \"data-user-card\": username\n        }\n      }, [(0, _post.avatarImg)(\"tiny\", {\n        template: avatar_template,\n        username: name || (0, _utilities.formatUsername)(username)\n      }), (0, _virtualDom.h)(\"span\", {\n        attributes: {\n          class: \"username\"\n        }\n      }, name || (0, _utilities.formatUsername)(username))]);\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-invitee\", [\"exports\", \"@ember/utils\", \"virtual-dom\", \"discourse/lib/utilities\", \"discourse/widgets/post\", \"discourse/widgets/widget\", \"I18n\"], function (_exports, _utils, _virtualDom, _utilities, _post, _widget, _I18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event-invitee\", {\n    tagName: \"li.event-invitee\",\n    buildClasses(attrs) {\n      const classes = [];\n      if ((0, _utils.isPresent)(attrs.invitee.status)) {\n        classes.push(`status-${attrs.invitee.status}`);\n      }\n      if (this.currentUser && this.currentUser.username === attrs.invitee.user.username) {\n        classes.push(\"is-current-user\");\n      }\n      return classes;\n    },\n    html(attrs) {\n      const {\n        name,\n        username,\n        avatar_template\n      } = attrs.invitee.user;\n      let statusIcon;\n      switch (attrs.invitee.status) {\n        case \"going\":\n          statusIcon = \"fa-check\";\n          break;\n        case \"interested\":\n          statusIcon = \"fa-star\";\n          break;\n        case \"not_going\":\n          statusIcon = \"fa-times\";\n          break;\n      }\n      const avatarContent = [(0, _post.avatarImg)(this.site.mobileView ? \"tiny\" : \"large\", {\n        template: avatar_template,\n        username: name || (0, _utilities.formatUsername)(username)\n      })];\n      if (statusIcon) {\n        avatarContent.push(this.attach(\"avatar-flair\", {\n          flair_name: _I18n.default.t(`discourse_calendar.discourse_post_event.models.invitee.status.${attrs.invitee.status}`),\n          flair_url: statusIcon\n        }));\n      }\n      return (0, _virtualDom.h)(\"a\", {\n        attributes: {\n          class: \"topic-invitee-avatar\",\n          \"data-user-card\": username\n        }\n      }, avatarContent);\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-invitees\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event-invitees\", {\n    tagName: \"section.event-invitees\",\n    transform(attrs) {\n      return {\n        isPrivateEvent: attrs.eventModel.status === \"private\"\n      };\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      var _a1 = [];\n      _a1.push(\"\\n        \");\n      var _a2 = [];\n      _a2.push(attrs.eventModel.stats.going);\n      _a2.push(\" \");\n      _a2.push(I18n.t(\"discourse_calendar.discourse_post_event.models.invitee.status.going\"));\n      _a2.push(\" -\");\n      _a1.push(virtualDom.h('span', _a2));\n      _a1.push(\"\\n        \");\n      var _a3 = [];\n      _a3.push(attrs.eventModel.stats.interested);\n      _a3.push(\" \");\n      _a3.push(I18n.t(\"discourse_calendar.discourse_post_event.models.invitee.status.interested\"));\n      _a3.push(\" -\");\n      _a1.push(virtualDom.h('span', _a3));\n      _a1.push(\"\\n        \");\n      var _a4 = [];\n      _a4.push(attrs.eventModel.stats.not_going);\n      _a4.push(\" \");\n      _a4.push(I18n.t(\"discourse_calendar.discourse_post_event.models.invitee.status.not_going\"));\n      _a1.push(virtualDom.h('span', _a4));\n      _a1.push(\"\\n\");\n      if (this.transformed.isPrivateEvent) {\n        _a1.push(\"          \");\n        var _a5 = [];\n        _a5.push(\"- on \");\n        _a5.push(attrs.eventModel.stats.invited);\n        _a5.push(\" users invited\");\n        _a1.push(virtualDom.h('span', {\n          \"className\": \"invited\",\n          \"attributes\": {}\n        }, _a5));\n        _a1.push(\"\\n\");\n      }\n      _a1.push(\"      \");\n      _a0.push(virtualDom.h('div', {\n        \"className\": \"event-invitees-status\",\n        \"attributes\": {}\n      }, _a1));\n      _a0.push(\"\\n\\n      \");\n      _a0.push(this.attach(\"button\", {\n        \"className\": \"show-all btn-small\",\n        \"label\": \"discourse_calendar.discourse_post_event.event_ui.show_all\",\n        \"action\": \"showAllInvitees\",\n        \"actionParam\": {\n          \"postId\": attrs.eventModel.id\n        }\n      }, undefined, undefined));\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('div', {\n        \"className\": \"header\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n    \");\n      var _a6 = [];\n      _a6.push(\"\\n\");\n      if (attrs.eventModel.sample_invitees && attrs.eventModel.sample_invitees.length) {\n        attrs.eventModel.sample_invitees.forEach(invitee => {\n          _a6.push(\"        \");\n          _a6.push(this.attach(\"discourse-post-event-invitee\", {\n            \"invitee\": invitee\n          }, undefined, undefined));\n          _a6.push(\"\\n\");\n        });\n      }\n      _a6.push(\"    \");\n      _r.push(virtualDom.h('ul', {\n        \"className\": \"event-invitees-avatars\",\n        \"attributes\": {}\n      }, _a6));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-status\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event-status\", {\n    tagName: \"div.event-status\",\n    buildKey: attrs => `discourse-post-event-status-${attrs.id}`,\n    buildClasses(attrs) {\n      if (attrs.watchingInvitee) {\n        return `status-${attrs.watchingInvitee.status}`;\n      }\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n\");\n      if (!attrs.minimal) {\n        _r.push(\"      \");\n        _r.push(this.attach(\"going-button\", undefined, undefined, undefined));\n        _r.push(\"\\n\");\n      }\n      _r.push(\"    \");\n      _r.push(this.attach(\"interested-button\", undefined, undefined, undefined));\n      _r.push(\"\\n\");\n      if (!attrs.minimal) {\n        _r.push(\"      \");\n        _r.push(this.attach(\"not-going-button\", undefined, undefined, undefined));\n        _r.push(\"\\n\");\n      }\n      _r.push(\"  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event-url\", [\"exports\", \"virtual-dom\", \"discourse/widgets/widget\", \"discourse-common/lib/icon-library\"], function (_exports, _virtualDom, _widget, _iconLibrary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function prefixProtocol(url) {\n    return url.indexOf(\"://\") === -1 && url.indexOf(\"mailto:\") === -1 ? \"https://\" + url : url;\n  }\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event-url\", {\n    tagName: \"section.event-url\",\n    html(attrs) {\n      return [(0, _iconLibrary.iconNode)(\"link\"), (0, _virtualDom.h)(\"a.url\", {\n        attributes: {\n          href: prefixProtocol(attrs.url),\n          target: \"_blank\",\n          rel: \"noopener noreferrer\"\n        }\n      }, attrs.url)];\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/discourse-post-event\", [\"exports\", \"@ember/application\", \"@ember/object\", \"discourse/lib/export-csv\", \"discourse/lib/text\", \"discourse/lib/utilities\", \"discourse/widgets/widget\", \"discourse-common/lib/get-url\", \"I18n\", \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-builder\", \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-bulk-invite\", \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invite-user-or-group\", \"discourse/plugins/discourse-calendar/discourse/components/modal/post-event-invitees\", \"discourse/plugins/discourse-calendar/discourse/lib/clean-title\", \"discourse/plugins/discourse-calendar/discourse/lib/raw-event-helper\"], function (_exports, _application, _object, _exportCsv, _text, _utilities, _widget, _getUrl, _I18n, _postEventBuilder, _postEventBulkInvite, _postEventInviteUserOrGroup, _postEventInvitees, _cleanTitle, _rawEventHelper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addReminder = addReminder;\n  _exports.default = void 0;\n  _exports.onChangeDates = onChangeDates;\n  _exports.removeReminder = removeReminder;\n  _exports.updateCustomField = updateCustomField;\n  _exports.updateEventRawInvitees = updateEventRawInvitees;\n  _exports.updateEventStatus = updateEventStatus;\n  _exports.updateTimezone = updateTimezone;\n  const DEFAULT_REMINDER = {\n    type: \"notification\",\n    value: 15,\n    unit: \"minutes\",\n    period: \"before\"\n  };\n  var _default = _exports.default = (0, _widget.createWidget)(\"discourse-post-event\", {\n    tagName: \"div.discourse-post-event-widget\",\n    services: [\"dialog\", \"store\", \"modal\", \"currentUser\", \"siteSettings\"],\n    buildKey: attrs => `discourse-post-event-${attrs.id}`,\n    buildClasses() {\n      if (this.state.event) {\n        return [\"has-discourse-post-event\"];\n      }\n    },\n    inviteUserOrGroup(postId) {\n      this.store.find(\"discourse-post-event-event\", postId).then(eventModel => {\n        this.modal.show(_postEventInviteUserOrGroup.default, {\n          model: {\n            event: eventModel\n          }\n        });\n      });\n    },\n    showAllInvitees(params) {\n      this.store.find(\"discourse-post-event-event\", params.postId).then(eventModel => {\n        this.modal.show(_postEventInvitees.default, {\n          model: {\n            event: eventModel,\n            title: params.title,\n            extraClass: params.extraClass\n          }\n        });\n      });\n    },\n    editPostEvent(postId) {\n      this.store.find(\"discourse-post-event-event\", postId).then(eventModel => {\n        this.modal.show(_postEventBuilder.default, {\n          model: {\n            event: eventModel,\n            updateCustomField: (field, value) => updateCustomField(eventModel, field, value),\n            updateEventStatus: status => updateEventStatus(eventModel, status),\n            updateEventRawInvitees: rawInvitees => updateEventRawInvitees(eventModel, rawInvitees),\n            removeReminder: reminder => removeReminder(eventModel, reminder),\n            addReminder: () => addReminder(eventModel),\n            onChangeDates: changes => onChangeDates(eventModel, changes),\n            updateTimezone: (newTz, startsAt, endsAt) => updateTimezone(eventModel, newTz, startsAt, endsAt)\n          }\n        });\n      });\n    },\n    closeEvent(eventModel) {\n      this.dialog.yesNoConfirm({\n        message: _I18n.default.t(\"discourse_calendar.discourse_post_event.builder_modal.confirm_close\"),\n        didConfirm: () => {\n          return this.store.find(\"post\", eventModel.id).then(post => {\n            eventModel.closed = true;\n            const eventParams = (0, _rawEventHelper.buildParams)(eventModel.starts_at, eventModel.ends_at, eventModel, this.siteSettings);\n            const newRaw = (0, _rawEventHelper.replaceRaw)(eventParams, post.raw);\n            if (newRaw) {\n              const props = {\n                raw: newRaw,\n                edit_reason: _I18n.default.t(\"discourse_calendar.discourse_post_event.edit_reason_closed\")\n              };\n              return (0, _text.cook)(newRaw).then(cooked => {\n                props.cooked = cooked.string;\n                return post.save(props);\n              });\n            }\n          });\n        }\n      });\n    },\n    openEvent(eventModel) {\n      this.dialog.yesNoConfirm({\n        message: _I18n.default.t(\"discourse_calendar.discourse_post_event.builder_modal.confirm_open\"),\n        didConfirm: () => {\n          return this.store.find(\"post\", eventModel.id).then(post => {\n            eventModel.closed = false;\n            const eventParams = (0, _rawEventHelper.buildParams)(eventModel.starts_at, eventModel.ends_at, eventModel, this.siteSettings);\n            const newRaw = (0, _rawEventHelper.replaceRaw)(eventParams, post.raw);\n            if (newRaw) {\n              const props = {\n                raw: newRaw,\n                edit_reason: _I18n.default.t(\"discourse_calendar.discourse_post_event.edit_reason_opened\")\n              };\n              return (0, _text.cook)(newRaw).then(cooked => {\n                props.cooked = cooked.string;\n                return post.save(props);\n              });\n            }\n          });\n        }\n      });\n    },\n    changeWatchingInviteeStatus(status) {\n      if (this.state.eventModel.watching_invitee) {\n        const currentStatus = this.state.eventModel.watching_invitee.status;\n        let newStatus = status;\n        if (status === currentStatus && status === \"interested\") {\n          newStatus = null;\n        }\n        this.store.update(\"discourse-post-event-invitee\", this.state.eventModel.watching_invitee.id, {\n          status: newStatus,\n          post_id: this.state.eventModel.id\n        });\n        this.appEvents.trigger(\"calendar:update-invitee-status\", {\n          status: newStatus,\n          postId: this.state.eventModel.id\n        });\n      } else {\n        this.store.createRecord(\"discourse-post-event-invitee\").save({\n          post_id: this.state.eventModel.id,\n          status\n        });\n        this.appEvents.trigger(\"calendar:create-invitee-status\", {\n          status,\n          postId: this.state.eventModel.id\n        });\n      }\n    },\n    defaultState(attrs) {\n      return {\n        eventModel: attrs.eventModel\n      };\n    },\n    exportPostEvent(postId) {\n      (0, _exportCsv.exportEntity)(\"post_event\", {\n        name: \"post_event\",\n        id: postId\n      });\n    },\n    bulkInvite(eventModel) {\n      this.modal.show(_postEventBulkInvite.default, {\n        model: {\n          event: eventModel\n        }\n      });\n    },\n    sendPMToCreator() {\n      (0, _application.default)(this).lookup(\"route:application\").send(\"composePrivateMessage\", _object.default.create(this.state.eventModel.creator), _object.default.create(this.state.eventModel.post));\n    },\n    addToCalendar() {\n      const event = this.state.eventModel;\n      this.attrs.api.downloadCalendar(event.name || event.post.topic.title, [{\n        startsAt: event.starts_at,\n        endsAt: event.ends_at\n      }], {\n        recurrenceRule: event.recurrence_rule,\n        location: event.url,\n        details: (0, _getUrl.getAbsoluteURL)(event.post.url)\n      });\n    },\n    upcomingEvents() {\n      const router = this.register.lookup(\"service:router\")._router;\n      router.transitionTo(\"discourse-post-event-upcoming-events\");\n    },\n    leaveEvent(postId) {\n      this.store.findAll(\"discourse-post-event-invitee\", {\n        post_id: postId\n      }).then(invitees => {\n        let invitee = invitees.find(inv => inv.id === this.state.eventModel.watching_invitee.id);\n        this.appEvents.trigger(\"calendar:invitee-left-event\", {\n          invitee,\n          postId\n        });\n        invitee.destroyRecord();\n      });\n    },\n    transform() {\n      const eventModel = this.state.eventModel;\n      return {\n        eventStatusLabel: _I18n.default.t(`discourse_calendar.discourse_post_event.models.event.status.${eventModel.status}.title`),\n        eventStatusDescription: _I18n.default.t(`discourse_calendar.discourse_post_event.models.event.status.${eventModel.status}.description`),\n        startsAtMonth: moment(eventModel.starts_at).format(\"MMM\"),\n        startsAtDay: moment(eventModel.starts_at).format(\"D\"),\n        eventName: (0, _text.emojiUnescape)((0, _utilities.escapeExpression)(eventModel.name) || this._cleanTopicTitle(eventModel.post.topic.title, eventModel.starts_at)),\n        statusClass: `status ${eventModel.status}`,\n        isPublicEvent: eventModel.status === \"public\",\n        isStandaloneEvent: eventModel.status === \"standalone\",\n        canActOnEvent: this.currentUser && this.state.eventModel.can_act_on_discourse_post_event\n      };\n    },\n    template: function (attrs, state) {\n      var __h1 = __widget_helpers.rawHtml;\n      var _r = [];\n      _r.push(\"\\n\");\n      if (state.eventModel) {\n        _r.push(\"      \");\n        var _a0 = [];\n        _a0.push(\"\\n        \");\n        var _a1 = [];\n        _a1.push(\"\\n          \");\n        var _a2 = [];\n        _a2.push(this.transformed.startsAtMonth);\n        _a1.push(virtualDom.h('div', {\n          \"className\": \"month\",\n          \"attributes\": {}\n        }, _a2));\n        _a1.push(\"\\n          \");\n        var _a3 = [];\n        _a3.push(this.transformed.startsAtDay);\n        _a1.push(virtualDom.h('div', {\n          \"className\": \"day\",\n          \"attributes\": {}\n        }, _a3));\n        _a1.push(\"\\n        \");\n        _a0.push(virtualDom.h('div', {\n          \"className\": \"event-date\",\n          \"attributes\": {}\n        }, _a1));\n        _a0.push(\"\\n        \");\n        var _a4 = [];\n        _a4.push(\"\\n          \");\n        var _a5 = [];\n        _a5.push(\"\\n            \");\n        _a5.push(new __h1({\n          html: '<span>' + this.transformed.eventName + '</span>'\n        }));\n        _a5.push(\"\\n          \");\n        _a4.push(virtualDom.h('span', {\n          \"className\": \"name\",\n          \"attributes\": {}\n        }, _a5));\n        _a4.push(\"\\n          \");\n        var _a6 = [];\n        _a6.push(\"\\n\");\n        if (state.eventModel.is_expired) {\n          _a6.push(\"              \");\n          var _a7 = [];\n          _a7.push(\"\\n                \");\n          _a7.push(_I18n.default.t(\"discourse_calendar.discourse_post_event.models.event.expired\"));\n          _a7.push(\"\\n              \");\n          _a6.push(virtualDom.h('span', {\n            \"className\": \"status expired\",\n            \"attributes\": {}\n          }, _a7));\n          _a6.push(\"\\n\");\n        } else {\n          if (state.eventModel.is_closed) {\n            _a6.push(\"              \");\n            var _a8 = [];\n            _a8.push(\"\\n                \");\n            _a8.push(_I18n.default.t(\"discourse_calendar.discourse_post_event.models.event.closed\"));\n            _a8.push(\"\\n              \");\n            _a6.push(virtualDom.h('span', {\n              \"className\": \"status closed\",\n              \"attributes\": {}\n            }, _a8));\n            _a6.push(\"\\n\");\n          } else {\n            _a6.push(\"              \");\n            var _a9 = [];\n            _a9.push(\"\\n                \");\n            _a9.push(this.transformed.eventStatusLabel);\n            _a9.push(\"\\n              \");\n            _a6.push(virtualDom.h('span', {\n              \"className\": this.transformed.statusClass,\n              \"attributes\": {\n                \"title\": this.transformed.eventStatusDescription\n              }\n            }, _a9));\n            _a6.push(\"\\n            \");\n          }\n        }\n        _a6.push(\"            \");\n        var _a10 = [];\n        _a10.push(\"·\");\n        _a6.push(virtualDom.h('span', {\n          \"className\": \"separator\",\n          \"attributes\": {}\n        }, _a10));\n        _a6.push(\"\\n            \");\n        var _a11 = [];\n        _a11.push(\"\\n              \");\n        var _a12 = [];\n        _a12.push(_I18n.default.t(\"discourse_calendar.discourse_post_event.event_ui.created_by\"));\n        _a11.push(virtualDom.h('span', {\n          \"className\": \"created-by\",\n          \"attributes\": {}\n        }, _a12));\n        _a11.push(\"\\n              \");\n        _a11.push(this.attach(\"discourse-post-event-creator\", {\n          \"user\": state.eventModel.creator\n        }, undefined, undefined));\n        _a11.push(\"\\n            \");\n        _a6.push(virtualDom.h('span', {\n          \"className\": \"creators\",\n          \"attributes\": {}\n        }, _a11));\n        _a6.push(\"\\n          \");\n        _a4.push(virtualDom.h('div', {\n          \"className\": \"status-and-creators\",\n          \"attributes\": {}\n        }, _a6));\n        _a4.push(\"\\n        \");\n        _a0.push(virtualDom.h('div', {\n          \"className\": \"event-info\",\n          \"attributes\": {}\n        }, _a4));\n        _a0.push(\"\\n\\n        \");\n        _a0.push(this.attach(\"more-dropdown\", {\n          \"canActOnEvent\": this.transformed.canActOnEvent,\n          \"isPublicEvent\": this.transformed.isPublicEvent,\n          \"eventModel\": state.eventModel\n        }, undefined, undefined));\n        _a0.push(\"\\n      \");\n        _r.push(virtualDom.h('header', {\n          \"className\": \"event-header\",\n          \"attributes\": {}\n        }, _a0));\n        _r.push(\"\\n\\n\");\n        if (state.eventModel.can_update_attendance) {\n          _r.push(\"        \");\n          var _a13 = [];\n          _a13.push(\"\\n          \");\n          _a13.push(this.attach(\"discourse-post-event-status\", {\n            \"watchingInvitee\": this.state.eventModel.watching_invitee,\n            \"minimal\": this.state.eventModel.minimal\n          }, undefined, undefined));\n          _a13.push(\"\\n        \");\n          _r.push(virtualDom.h('section', {\n            \"className\": \"event-actions\",\n            \"attributes\": {}\n          }, _a13));\n          _r.push(\"\\n\");\n        }\n        _r.push(\"\\n\");\n        if (this.state.eventModel.url) {\n          _r.push(\"        \");\n          var _a14 = [];\n          _r.push(virtualDom.h('hr', _a14));\n          _r.push(\"\\n\\n        \");\n          _r.push(this.attach(\"discourse-post-event-url\", {\n            \"url\": this.state.eventModel.url\n          }, undefined, undefined));\n          _r.push(\"\\n\");\n        }\n        _r.push(\"\\n      \");\n        var _a15 = [];\n        _r.push(virtualDom.h('hr', _a15));\n        _r.push(\"\\n\\n      \");\n        _r.push(this.attach(\"discourse-post-event-dates\", {\n          \"localDates\": attrs.localDates,\n          \"eventModel\": state.eventModel\n        }, undefined, undefined));\n        _r.push(\"\\n\\n\");\n        if (!state.eventModel.minimal) {\n          if (state.eventModel.should_display_invitees) {\n            _r.push(\"          \");\n            var _a16 = [];\n            _r.push(virtualDom.h('hr', _a16));\n            _r.push(\"\\n\\n          \");\n            _r.push(this.attach(\"discourse-post-event-invitees\", {\n              \"eventModel\": state.eventModel\n            }, undefined, undefined));\n            _r.push(\"\\n\");\n          }\n        }\n      }\n      _r.push(\"  \");\n      return _r;\n    },\n    _cleanTopicTitle(topicTitle, startsAt) {\n      topicTitle = (0, _utilities.escapeExpression)(topicTitle);\n      const cleaned = (0, _cleanTitle.default)(topicTitle, startsAt);\n      if (cleaned) {\n        return topicTitle.replace(cleaned, \"\");\n      }\n      return topicTitle;\n    }\n  });\n  function replaceTimezone(val, newTimezone) {\n    return moment.tz(val.format(\"YYYY-MM-DDTHH:mm\"), newTimezone);\n  }\n  function updateEventStatus(event, status) {\n    return event.set(\"status\", status);\n  }\n  function updateEventRawInvitees(event, rawInvitees) {\n    return event.set(\"raw_invitees\", rawInvitees);\n  }\n  function updateCustomField(event, field, value) {\n    event.custom_fields[field] = value;\n  }\n  function removeReminder(event, reminder) {\n    return event.reminders.removeObject(reminder);\n  }\n  function addReminder(event) {\n    if (!event.reminders) {\n      event.set(\"reminders\", []);\n    }\n    event.reminders.pushObject(Object.assign({}, DEFAULT_REMINDER));\n  }\n  function onChangeDates(event, changes) {\n    return event.setProperties({\n      starts_at: changes.from,\n      ends_at: changes.to\n    });\n  }\n  function updateTimezone(event, newTz, startsAt, endsAt) {\n    return event.setProperties({\n      timezone: newTz,\n      starts_at: replaceTimezone(startsAt, newTz),\n      ends_at: endsAt && replaceTimezone(endsAt, newTz)\n    });\n  }\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/going-button\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"going-button\", {\n    tagName: \"button.going-button.btn.btn-default\",\n    click() {\n      this.sendWidgetAction(\"changeWatchingInviteeStatus\", \"going\");\n    },\n    template: function (attrs, state) {\n      var __h1 = __widget_helpers.iconNode;\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(__h1(\"check\"));\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      _a0.push(I18n.t(\"discourse_calendar.discourse_post_event.models.invitee.status.going\"));\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"label\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/interested-button\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"interested-button\", {\n    tagName: \"button.interested-button.btn.btn-default\",\n    click() {\n      this.sendWidgetAction(\"changeWatchingInviteeStatus\", \"interested\");\n    },\n    template: function (attrs, state) {\n      var __h1 = __widget_helpers.iconNode;\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(__h1(\"star\"));\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      _a0.push(I18n.t(\"discourse_calendar.discourse_post_event.models.invitee.status.interested\"));\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"label\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/more-dropdown\", [\"exports\", \"discourse/widgets/widget\", \"I18n\"], function (_exports, _widget, _I18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"more-dropdown\", {\n    tagName: \"div.more-dropdown\",\n    buildKey: () => \"more-dropdown\",\n    transform(attrs) {\n      return {\n        content: this._buildContent(attrs),\n        onChange: item => this.sendWidgetAction(item.id, item.param),\n        options: {}\n      };\n    },\n    template: function (attrs, state) {\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(this.attach(\"widget-dropdown\", {\n        \"id\": \"more-dropdown\",\n        \"translatedLabel\": \"More\",\n        \"icon\": \"ellipsis-h\",\n        \"content\": this.transformed.content,\n        \"onChange\": this.transformed.onChange,\n        \"options\": this.transformed.options\n      }, undefined, undefined));\n      _r.push(\"\\n  \");\n      return _r;\n    },\n    buildClasses(attrs) {\n      const content = this._buildContent(attrs);\n      if (!content.length) {\n        return [\"has-no-actions\"];\n      }\n    },\n    _buildContent(_ref2) {\n      let {\n        canActOnEvent,\n        isPublicEvent,\n        eventModel\n      } = _ref2;\n      const content = [];\n      const expiredOrClosed = eventModel.is_expired || eventModel.is_closed;\n      if (!expiredOrClosed) {\n        content.push({\n          id: \"addToCalendar\",\n          icon: \"file\",\n          label: \"discourse_calendar.discourse_post_event.event_ui.add_to_calendar\"\n        });\n      }\n      if (this.currentUser) {\n        content.push({\n          id: \"sendPMToCreator\",\n          icon: \"envelope\",\n          translatedLabel: _I18n.default.t(\"discourse_calendar.discourse_post_event.event_ui.send_pm_to_creator\", {\n            username: eventModel.creator.username\n          })\n        });\n      }\n      if (!expiredOrClosed && canActOnEvent && isPublicEvent) {\n        content.push({\n          id: \"inviteUserOrGroup\",\n          icon: \"user-plus\",\n          label: \"discourse_calendar.discourse_post_event.event_ui.invite\",\n          param: eventModel.id\n        });\n      }\n      if (eventModel.watching_invitee && isPublicEvent) {\n        content.push({\n          id: \"leaveEvent\",\n          icon: \"times\",\n          label: \"discourse_calendar.discourse_post_event.event_ui.leave\",\n          param: eventModel.id\n        });\n      }\n      if (!eventModel.is_closed && eventModel.recurrence) {\n        content.push({\n          id: \"upcomingEvents\",\n          icon: \"far-calendar-plus\",\n          label: \"discourse_post_event.event_ui.upcoming_events\"\n        });\n      }\n      if (canActOnEvent) {\n        content.push(\"separator\");\n        content.push({\n          icon: \"file-csv\",\n          id: \"exportPostEvent\",\n          label: \"discourse_calendar.discourse_post_event.event_ui.export_event\",\n          param: eventModel.id\n        });\n        if (!expiredOrClosed && !eventModel.is_standalone) {\n          content.push({\n            icon: \"file-upload\",\n            id: \"bulkInvite\",\n            label: \"discourse_calendar.discourse_post_event.event_ui.bulk_invite\",\n            param: eventModel\n          });\n        }\n        if (eventModel.is_closed) {\n          content.push({\n            icon: \"unlock\",\n            id: \"openEvent\",\n            label: \"discourse_calendar.discourse_post_event.event_ui.open_event\",\n            param: eventModel\n          });\n        } else {\n          content.push({\n            icon: \"pencil-alt\",\n            id: \"editPostEvent\",\n            label: \"discourse_calendar.discourse_post_event.event_ui.edit_event\",\n            param: eventModel.id\n          });\n          if (!eventModel.is_expired) {\n            content.push({\n              icon: \"times\",\n              id: \"closeEvent\",\n              label: \"discourse_calendar.discourse_post_event.event_ui.close_event\",\n              class: \"danger\",\n              param: eventModel\n            });\n          }\n        }\n      }\n      return content;\n    }\n  });\n});","define(\"discourse/plugins/discourse-calendar/discourse/widgets/not-going-button\", [\"exports\", \"discourse/widgets/widget\"], function (_exports, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _widget.createWidget)(\"not-going-button\", {\n    tagName: \"button.not-going-button.btn.btn-default\",\n    click() {\n      this.sendWidgetAction(\"changeWatchingInviteeStatus\", \"not_going\");\n    },\n    template: function (attrs, state) {\n      var __h1 = __widget_helpers.iconNode;\n      var _r = [];\n      _r.push(\"\\n    \");\n      _r.push(__h1(\"times\"));\n      _r.push(\"\\n    \");\n      var _a0 = [];\n      _a0.push(\"\\n      \");\n      _a0.push(I18n.t(\"discourse_calendar.discourse_post_event.models.invitee.status.not_going\"));\n      _a0.push(\"\\n    \");\n      _r.push(virtualDom.h('span', {\n        \"className\": \"label\",\n        \"attributes\": {}\n      }, _a0));\n      _r.push(\"\\n  \");\n      return _r;\n    }\n  });\n});"],"mappings":"AAAAA,OAAA,uIAAAC,EAAAC,GACA;AAEAC,OAAAC,eAAAH,EAAA,cACAI,OAAA,IAEAJ,EAAAK,aAAA;AACAL,EAAAK,QAAAJ,EAAAI,QAAAC,OAAA,CACAC,SAAA,IACA,0B,ICTAR,OAAA,kNAAAC,EAAAQ,EAAAC,GACA;AAEAP,OAAAC,eAAAH,EAAA,cACAI,OAAA,IAEAJ,EAAAK,aAAA;AACAL,EAAAK,QAAAI,EAAAJ,QAAAC,OAAA,CACA,OAAAI,CAAAC,EAAAC,EAAAC,GACA,MAAAC,EAAAC,KAA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,EAAA6e,MACA,IAEA1qB,EAAAwB,QAAAF,EAAA,UAAAR,EAAAnJ,KAAA,QACA,CACA,QACA,C,IC9EA5E,OAAA,mFAAAC,GACA;AAEAE,OAAAC,eAAAH,EAAA,cACAI,OAAA,IAEAJ,EAAA2c,oBAAA3c,EAAAuS,qBAAA;AAIAvS,EAAAuS,gBAAA,68DACAvS,EAAA2c,oBAAA,CACA,oBACA,yBACA,oBACA,2BACA,oBACA,sBACA,oBACA,oBACA,yBACA,yBACA,sCACA,mCACA,iCACA,+BACA,kCACA,iCACA,sCACA,+BACA,kCACA,kCACA,iCACA,iCACA,wBACA,qBACA,8BACA,qBACA,4BACA,yBACA,sBACA,qBACA,6BACA,4BACA,sBACA,uBACA,uBACA,yBACA,6BACA,0BACA,uBACA,sBACA,sBACA,4BACA,sBACA,uBACA,wBACA,wBACA,2BACA,yBACA,yBACA,yBACA,uBACA,0BACA,oCACA,4BACA,+BACA,kCACA,iCACA,6BACA,iCACA,+BACA,sBACA,uBACA,sBACA,mCACA,mCACA,oBACA,2BACA,sBACA,sBACA,yBACA,wBACA,yBACA,sBACA,0BACA,2BACA,uBACA,yBACA,wBACA,oBACA,uBACA,mCACA,mCACA,sCACA,uBACA,uBACA,2BACA,4BACA,4BACA,sBACA,sBACA,wBACA,0BACA,wBACA,wBACA,yBACA,qBACA,wBACA,yBACA,6BACA,uBACA,uBACA,yBACA,0BACA,wBACA,uBACA,4BACA,mBACA,mBACA,kBACA,mBACA,mBACA,oBACA,oBACA,kBACA,kBACA,sBACA,oBACA,oBACA,qBACA,sBACA,qBACA,oBACA,wBACA,yBACA,oBACA,oBACA,qBACA,mBACA,yBACA,wBACA,iBACA,iBACA,sBACA,qBACA,sBACA,mBACA,qBACA,kBACA,sBACA,0BACA,oBACA,kBACA,kBACA,qBACA,wBACA,oBACA,0BACA,uBACA,uBACA,wBACA,0BACA,0BACA,0BACA,6BACA,wBACA,uBACA,wBACA,0BACA,2BACA,2BACA,uBACA,wBACA,wBACA,wB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