   'compiled/util/fcUtil'
   'i18n!EditAppointmentGroupDetails'
   'str/htmlEscape'
+  'compiled/calendar/commonEventFactory'
   'compiled/calendar/TimeBlockList'
   'jst/calendar/editAppointmentGroup'
   'jst/calendar/genericSelect'

        # TODO: Provide UI for specifying this
        params['appointment_group[min_appointments_per_participant]'] = 1

      onSuccess = => @closeCB(true)
      onError = =>

      method = if @editing() then 'PUT' else 'POST'

  'jquery.ajaxJSON'
  'jquery.disableWhileLoading'
  'jquery.instructure_forms'
], ($, _, fcUtil, I18n, htmlEscape, commonEventFactory, TimeBlockList, editAppointmentGroupTemplate, genericSelectTemplate, sectionCheckboxesTemplate, ContextSelector, preventDefault) ->

  class EditAppointmentGroupDetails
    constructor: (selector, @apptGroup, @contexts, @closeCB) ->
